From a26ef5621ce07d31d905cf4ae2a148b1caaf9ff0 Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 5 Jan 2017 12:22:58 -0500 Subject: Squashed 'tclzvfs/' changes from bca825c..de869a2 de869a2 add tclzvfsConfig.sh git-subtree-dir: tclzvfs git-subtree-split: de869a292160daddefbe7916e21acecbd345c246 --- Makefile.in | 3 ++- configure | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- configure.in | 8 +++++++- 3 files changed, 57 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 74be53f..feebb54 100755 --- a/Makefile.in +++ b/Makefile.in @@ -158,7 +158,7 @@ PKG_CFLAGS = @PKG_CFLAGS@ DEFS = @DEFS@ $(PKG_CFLAGS) # Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile -CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl +CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl tclzvfsConfig.sh CLEANFILES = @CLEANFILES@ CPPFLAGS = @CPPFLAGS@ @@ -407,6 +407,7 @@ install-lib-binaries: binaries echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \ fi + $(INSTALL_DATA) tclzvfsConfig.sh $(DESTDIR)$(libdir) #======================================================================== # Install binary executables (e.g. .exe files and dependent .dll files) diff --git a/configure b/configure index 162287b..6944eae 100755 --- a/configure +++ b/configure @@ -620,6 +620,15 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS +PATCHLEVEL +MINOR_VERSION +MAJOR_VERSION +tclzvfs_STUB_LIB_PATH +tclzvfs_BUILD_STUB_LIB_PATH +tclzvfs_STUB_LIB_SPEC +tclzvfs_BUILD_STUB_LIB_SPEC +tclzvfs_LIB_SPEC +tclzvfs_BUILD_LIB_SPEC TCLSH_PROG VC_MANIFEST_EMBED_EXE VC_MANIFEST_EMBED_DLL @@ -8554,12 +8563,49 @@ $as_echo "${TCLSH_PROG}" >&6; } #TEA_PROG_WISH #-------------------------------------------------------------------- +# These are for tclzvfsConfig.sh +#-------------------------------------------------------------------- + + + #-------------------------------------------------------------------- + # These are for tclzvfsConfig.sh + #-------------------------------------------------------------------- + + # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib) + eval pkglibdir="${libdir}/tclzvfs${PACKAGE_VERSION}" + if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then + eval tclzvfs_LIB_FLAG="-ltclzvfs${PACKAGE_VERSION}${DBGX}" + eval tclzvfs_STUB_LIB_FLAG="-ltclzvfsstub${PACKAGE_VERSION}${DBGX}" + else + eval tclzvfs_LIB_FLAG="-ltclzvfs`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" + eval tclzvfs_STUB_LIB_FLAG="-ltclzvfsstub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" + fi + tclzvfs_BUILD_LIB_SPEC="-L`pwd` ${tclzvfs_LIB_FLAG}" + tclzvfs_LIB_SPEC="-L${pkglibdir} ${tclzvfs_LIB_FLAG}" + tclzvfs_BUILD_STUB_LIB_SPEC="-L`pwd` ${tclzvfs_STUB_LIB_FLAG}" + tclzvfs_STUB_LIB_SPEC="-L${pkglibdir} ${tclzvfs_STUB_LIB_FLAG}" + tclzvfs_BUILD_STUB_LIB_PATH="`pwd`/${PKG_STUB_LIB_FILE}" + tclzvfs_STUB_LIB_PATH="${pkglibdir}/${PKG_STUB_LIB_FILE}" + + + + + + + + + + + + + +#-------------------------------------------------------------------- # Finally, substitute all of the various values into the Makefile. # You may alternatively have a special pkgIndex.tcl.in or other files # which require substituting th AC variables in. Include these here. #-------------------------------------------------------------------- -ac_config_files="$ac_config_files Makefile pkgIndex.tcl" +ac_config_files="$ac_config_files Makefile pkgIndex.tcl tclzvfsConfig.sh" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -9270,6 +9316,7 @@ do case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; + "tclzvfsConfig.sh") CONFIG_FILES="$CONFIG_FILES tclzvfsConfig.sh" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac diff --git a/configure.in b/configure.in index 5a4994e..4b15adb 100755 --- a/configure.in +++ b/configure.in @@ -178,9 +178,15 @@ TEA_PROG_TCLSH #TEA_PROG_WISH #-------------------------------------------------------------------- +# These are for tclzvfsConfig.sh +#-------------------------------------------------------------------- + +TEA_EXPORT_CONFIG([tclzvfs]) + +#-------------------------------------------------------------------- # Finally, substitute all of the various values into the Makefile. # You may alternatively have a special pkgIndex.tcl.in or other files # which require substituting th AC variables in. Include these here. #-------------------------------------------------------------------- -AC_OUTPUT([Makefile pkgIndex.tcl]) +AC_OUTPUT([Makefile pkgIndex.tcl tclzvfsConfig.sh]) -- cgit v0.12