From e80e17b3751fb7d84563c747ef90b85e1af746ed Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 29 Dec 2016 14:11:24 -0500 Subject: update config vars --- win/Makefile.in | 28 +++++++++++++++++++--------- win/configure | 5 +++-- win/configure.in | 6 ++++-- 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/win/Makefile.in b/win/Makefile.in index ecaa415..b0b23b1 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -1,6 +1,16 @@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +libdir = $(exec_prefix)/lib +#libdir = @libdir@ +includedir = @includedir@ +datarootdir = @datarootdir@ +datadir = @datadir@ +mandir = @mandir@ + OS = @OS@ ARCH = @ARCH@ -ROOT = @ROOT@ EXEEXT = @EXEEXT@ JOBS = @CORES@ @@ -9,8 +19,8 @@ ASTFLAGS =CFLAGS=-DCMINPACK_NO_DLL XPAFLAGS =CFLAGS=-DSTATIC_BUILD TCLXMLFLAGS =--with-xml-static=yes TARGET =--build=x86_64-unknown-mingw32 -WITHTCL =--with-tcl=$(ROOT)/tcl$(TCLVER)/win -WITHTK =--with-tk=$(ROOT)/tk$(TCLVER)/win $(WITHTCL) +WITHTCL =--with-tcl=$(prefix)/tcl$(TCLVER)/win +WITHTK =--with-tk=$(prefix)/tk$(TCLVER)/win $(WITHTCL) CACHE =--config-cache --cache-file=../config.cache include ./make.include @@ -40,7 +50,7 @@ tcl$(TCLVER)/win/Makefile : @echo "*** Configure tcl$(TCLVER) ***" cd tcl$(TCLVER)/win; \ ./configure \ - --prefix $(ROOT) --exec-prefix $(ROOT) \ + --prefix $(prefix) --exec-prefix $(exec_prefix) --libdir $(libdir) \ --disable-shared \ --config-cache --cache-file=../../config.cache @@ -56,7 +66,7 @@ tk$(TCLVER)/win/Makefile : ./configure \ $(WITHTCL) \ $(TKFLAGS) \ - --prefix $(ROOT) --exec-prefix $(ROOT) \ + --prefix $(prefix) --exec-prefix $(exec_prefix) --libdir $(libdir) \ --disable-shared --enable-symbols tkwin: tkwin/Makefile @@ -70,7 +80,7 @@ tkwin/Makefile : cd tkwin; \ ./configure \ $(WITHTK) \ - --prefix $(ROOT) --exec-prefix $(ROOT) \ + --prefix $(prefix) --exec-prefix $(exec_prefix) \ --disable-shared --enable-symbols \ --config-cache --cache-file=../../config.cache @@ -80,7 +90,7 @@ libxml2 : libxml2/win32/config.mingw $(MAKE) -C libxml2/win32 -j $(JOBS) -f Makefile.mingw dep $(MAKE) -C libxml2/win32 -j $(JOBS) -f Makefile.mingw libxmla $(MAKE) -C libxml2/win32 -j $(JOBS) -f Makefile.mingw install-libsa - cp libxml2/win32/xml2-config $(ROOT)/bin + cp libxml2/win32/xml2-config $(exec_prefix)/bin libxml2/win32/config.mingw : @echo "" @@ -95,7 +105,7 @@ libxslt : libxslt/win32/config.mingw $(MAKE) -C libxslt/win32 -j $(JOBS) -f Makefile.mingw libxslta $(MAKE) -C libxslt/win32 -j $(JOBS) -f Makefile.mingw libexslta $(MAKE) -C libxslt/win32 -j $(JOBS) -f Makefile.mingw install-libsa - cp libxslt/win32/xslt-config $(ROOT)/bin + cp libxslt/win32/xslt-config $(exec_prefix)/bin libxslt/win32/config.mingw : @echo "" @@ -114,7 +124,7 @@ zlib_Makefile : @echo "*** Configure zlib ***" cd zlib; \ $(CONFIGFLAGS) CFLAGS=-DSTATIC_BUILD=1 ./configure \ - --prefix $(ROOT) --eprefix $(ROOT) \ + --prefix $(prefix) -eprefix $(exec_prefix) --libdir $(libdir) \ --static #--------------------------clean diff --git a/win/configure b/win/configure index 968d925..c0959b5 100755 --- a/win/configure +++ b/win/configure @@ -584,7 +584,6 @@ PACKAGE_URL='' ac_subst_vars='LTLIBOBJS LIBOBJS CORES -ROOT ARCH OS PKG_CFLAGS @@ -1859,7 +1858,9 @@ OS="win" ARCH=$with_arch -ROOT=$ac_pwd +prefix=$ac_pwd + +exec_prefix=$ac_pwd CORES=`grep -c ^processor /proc/cpuinfo` diff --git a/win/configure.in b/win/configure.in index 150e467..25074c1 100755 --- a/win/configure.in +++ b/win/configure.in @@ -41,8 +41,10 @@ AC_SUBST(OS) ARCH=$with_arch AC_SUBST(ARCH) -ROOT=$ac_pwd -AC_SUBST(ROOT) +prefix=$ac_pwd +AC_SUBST(prefix) +exec_prefix=$ac_pwd +AC_SUBST(exec_prefix) CORES=`grep -c ^processor /proc/cpuinfo` AC_SUBST(CORES) -- cgit v0.12