diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-01-06 20:55:56 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-01-06 20:55:56 (GMT) |
commit | 8a9639df50fbec034cf6945c9745fdca3db95411 (patch) | |
tree | 3fc8053bd8545a4c0d2d476ad70f75c50f9eb2c6 /ds9 | |
parent | 8208808f4b86979c8d4a6bfc44ce82cf4f7df0f1 (diff) | |
download | blt-8a9639df50fbec034cf6945c9745fdca3db95411.zip blt-8a9639df50fbec034cf6945c9745fdca3db95411.tar.gz blt-8a9639df50fbec034cf6945c9745fdca3db95411.tar.bz2 |
update TEA 3.10
Diffstat (limited to 'ds9')
-rw-r--r-- | ds9/macosx/Makefile.in | 4 | ||||
-rwxr-xr-x | ds9/macosx/configure | 258 | ||||
-rwxr-xr-x | ds9/macosx/configure.in | 3 | ||||
-rw-r--r-- | ds9/unix/Makefile.in | 4 | ||||
-rwxr-xr-x | ds9/unix/configure | 258 | ||||
-rwxr-xr-x | ds9/unix/configure.in | 3 | ||||
-rwxr-xr-x | ds9/win/Makefile.in | 4 | ||||
-rwxr-xr-x | ds9/win/configure | 258 | ||||
-rwxr-xr-x | ds9/win/configure.in | 3 |
9 files changed, 792 insertions, 3 deletions
diff --git a/ds9/macosx/Makefile.in b/ds9/macosx/Makefile.in index 6b0e60a..e18738e 100644 --- a/ds9/macosx/Makefile.in +++ b/ds9/macosx/Makefile.in @@ -27,7 +27,9 @@ tkimg_LIB_SPEC = @tkimg_LIB_SPEC@ tclcheckdns_LIB_SPEC= @tclcheckdns_LIB_SPEC@ tcliis_LIB_SPEC = @tcliis_LIB_SPEC@ tclsignal_LIB_SPEC= @tclsignal_LIB_SPEC@ + tkblt_LIB_SPEC = @tkblt_LIB_SPEC@ +tkmpeg_LIB_SPEC = @tkmpeg_LIB_SPEC@ CC = @CC@ CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ @@ -67,7 +69,6 @@ LLIBS = \ $(libdir)/libast_pal.a \ $(libdir)/tksao$(TKSAOVER)/libtksao$(TKSAOVER).a \ $(libdir)/tkhtml1$(TKHTMLVER)/libtkhtml1$(TKHTMLVER).a \ - $(libdir)/tkmpeg$(TKMPEGVER)/libtkmpeg$(TKMPEGVER).a \ $(libdir)/Tclxml$(TCLXMLVER)/libTclxml$(TCLXMLVER).a \ $(libdir)/Tktable$(TKTABLEVER)/libTktable$(TKTABLEVER).a \ $(libdir)/tkimgtiff$(TKIMGVER)/libtkimgtiff$(TKIMGVER).a \ @@ -139,6 +140,7 @@ ds9base : $(OBJS) $(LLIBS) $(zlibtcl_LIB_SPEC) \ $(tkimg_LIB_SPEC) \ $(tkblt_LIB_SPEC) \ + $(tkmpeg_LIB_SPEC) \ $(TK_STUB_LIB_SPEC) $(TK_LIB_SPEC) \ $(TCL_STUB_LIB_SPEC) $(TCL_LIB_SPEC) \ $(TK_LIBS) diff --git a/ds9/macosx/configure b/ds9/macosx/configure index 12e8421..687e389 100755 --- a/ds9/macosx/configure +++ b/ds9/macosx/configure @@ -652,6 +652,14 @@ RANLIB SET_MAKE INSTALL CPP +tkmpeg_STUB_LIB_PATH +tkmpeg_STUB_LIB_SPEC +tkmpeg_STUB_LIB_FILE +tkmpeg_LIB_SPEC +tkmpeg_LIB_FILE +tkmpeg_SRC_DIR +tkmpeg_BIN_DIR +tkmpeg_VERSION tkblt_STUB_LIB_PATH tkblt_STUB_LIB_SPEC tkblt_STUB_LIB_FILE @@ -820,6 +828,7 @@ with_jpegtcl with_zlibtcl with_tkimg with_tkblt +with_tkmpeg with_tclinclude with_tkinclude with_x @@ -1476,6 +1485,7 @@ Optional Packages: --with-zlibtcl directory containing zlibtcl configuration (zlibtclConfig.sh) --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) --with-tkblt directory containing tkblt configuration (tkbltConfig.sh) + --with-tkmpeg directory containing tkmpeg configuration (tkmpegConfig.sh) --with-tclinclude directory containing the public Tcl header files --with-tkinclude directory containing the public Tk header files --with-x use the X Window System @@ -5964,6 +5974,254 @@ fi fi + + # + # Ok, lets find the tkmpeg configuration + # First, look for one uninstalled. + # the alternative search directory is invoked by --with-tkmpeg + # + + if test x"${no_tkmpeg}" = x ; then + # we reset no_tkmpeg in case something fails here + no_tkmpeg=true + +# Check whether --with-tkmpeg was given. +if test "${with_tkmpeg+set}" = set; then : + withval=$with_tkmpeg; with_tkmpegconfig=${withval} +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkmpeg configuration" >&5 +$as_echo_n "checking for tkmpeg configuration... " >&6; } + if ${ac_cv_c_tkmpegconfig+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + # First check to see if --with-tkmpeg was specified. + if test x"${with_tkmpegconfig}" != x ; then + case ${with_tkmpegconfig} in + */tkmpegConfig.sh ) + if test -f ${with_tkmpegconfig}; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tkmpeg argument should refer to directory containing tkmpegConfig.sh, not to tkmpegConfig.sh itself" >&5 +$as_echo "$as_me: WARNING: --with-tkmpeg argument should refer to directory containing tkmpegConfig.sh, not to tkmpegConfig.sh itself" >&2;} + with_tkmpegconfig=`echo ${with_tkmpegconfig} | sed 's!/tkmpegConfig\.sh$!!'` + fi;; + esac + if test -f "${with_tkmpegconfig}/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd ${with_tkmpegconfig}; pwd)` + else + as_fn_error $? "${with_tkmpegconfig} directory doesn't contain tkmpegConfig.sh" "$LINENO" 5 + fi + fi + + # then check for a private tkmpeg installation + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + for i in \ + ../tkmpeg \ + `ls -dr ../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ../../tkmpeg \ + `ls -dr ../../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ../../../tkmpeg \ + `ls -dr ../../../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ${srcdir}/../tkmpeg \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ; do + if test -f "$i/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i; pwd)` + break + fi + if test -f "$i/unix/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i/unix; pwd)` + break + fi + done + fi + + # check in a few common install locations + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + for i in `ls -d ${libdir} 2>/dev/null` \ + `ls -d ${exec_prefix}/lib 2>/dev/null` \ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + `ls -d /usr/lib64 2>/dev/null` \ + ; do + if test -f "$i/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i; pwd)` + break + fi + done + fi + +fi + + + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + tkmpeg_BIN_DIR="# no tkmpeg configs found" + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tkmpeg configuration definitions" >&5 +$as_echo "$as_me: WARNING: Cannot find tkmpeg configuration definitions" >&2;} + exit 0 + else + no_tkmpeg= + tkmpeg_BIN_DIR=${ac_cv_c_tkmpegconfig} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $tkmpeg_BIN_DIR/tkmpegConfig.sh" >&5 +$as_echo "found $tkmpeg_BIN_DIR/tkmpegConfig.sh" >&6; } + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${tkmpeg_BIN_DIR}/tkmpegConfig.sh" >&5 +$as_echo_n "checking for existence of ${tkmpeg_BIN_DIR}/tkmpegConfig.sh... " >&6; } + + if test -f "${tkmpeg_BIN_DIR}/tkmpegConfig.sh" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 +$as_echo "loading" >&6; } + . "${tkmpeg_BIN_DIR}/tkmpegConfig.sh" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + + # + # If the tkmpeg_BIN_DIR is the build directory (not the install directory), + # then set the common variable name to the value of the build variables. + # For example, the variable tkmpeg_LIB_SPEC will be set to the value + # of tkmpeg_BUILD_LIB_SPEC. An extension should make use of tkmpeg_LIB_SPEC + # instead of tkmpeg_BUILD_LIB_SPEC since it will work with both an + # installed and uninstalled version of Tcl. + # + + if test -f "${tkmpeg_BIN_DIR}/Makefile" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tkmpeg" >&5 +$as_echo "$as_me: WARNING: Found Makefile - using build library specs for tkmpeg" >&2;} + tkmpeg_LIB_SPEC=${tkmpeg_BUILD_LIB_SPEC} + tkmpeg_STUB_LIB_SPEC=${tkmpeg_BUILD_STUB_LIB_SPEC} + tkmpeg_STUB_LIB_PATH=${tkmpeg_BUILD_STUB_LIB_PATH} + tkmpeg_INCLUDE_SPEC=${tkmpeg_BUILD_INCLUDE_SPEC} + tkmpeg_LIBRARY_PATH=${tkmpeg_LIBRARY_PATH} + fi + + + + + + + + + + + + + # Allow the caller to prevent this auto-check by specifying any 2nd arg + if test "x" = x; then : + + # Check both upper and lower-case variants + # If a dev wanted non-stubs libs, this function could take an option + # to not use _STUB in the paths below + if test "x${tkmpeg_STUB_LIB_SPEC}" = x; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking For TKMPEG_STUB library for LIBS" >&5 +$as_echo_n "checking For TKMPEG_STUB library for LIBS... " >&6; } + # This simplifies the use of stub libraries by automatically adding + # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, + # but this is called before CONFIG_CFLAGS. More importantly, this adds + # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. + if test "x${TKMPEG_STUB_LIB_SPEC}" != "x" ; then + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then + + vars="\"`${CYGPATH} ${TKMPEG_STUB_LIB_PATH}`\"" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TKMPEG_STUB_LIB_PATH ${TKMPEG_STUB_LIB_PATH}" >&5 +$as_echo "using TKMPEG_STUB_LIB_PATH ${TKMPEG_STUB_LIB_PATH}" >&6; } + else + + vars="${TKMPEG_STUB_LIB_SPEC}" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TKMPEG_STUB_LIB_SPEC ${TKMPEG_STUB_LIB_SPEC}" >&5 +$as_echo "using TKMPEG_STUB_LIB_SPEC ${TKMPEG_STUB_LIB_SPEC}" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking For tkmpeg_STUB library for LIBS" >&5 +$as_echo_n "checking For tkmpeg_STUB library for LIBS... " >&6; } + # This simplifies the use of stub libraries by automatically adding + # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, + # but this is called before CONFIG_CFLAGS. More importantly, this adds + # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. + if test "x${tkmpeg_STUB_LIB_SPEC}" != "x" ; then + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then + + vars="\"`${CYGPATH} ${tkmpeg_STUB_LIB_PATH}`\"" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tkmpeg_STUB_LIB_PATH ${tkmpeg_STUB_LIB_PATH}" >&5 +$as_echo "using tkmpeg_STUB_LIB_PATH ${tkmpeg_STUB_LIB_PATH}" >&6; } + else + + vars="${tkmpeg_STUB_LIB_SPEC}" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tkmpeg_STUB_LIB_SPEC ${tkmpeg_STUB_LIB_SPEC}" >&5 +$as_echo "using tkmpeg_STUB_LIB_SPEC ${tkmpeg_STUB_LIB_SPEC}" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + +fi + +fi + + #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. diff --git a/ds9/macosx/configure.in b/ds9/macosx/configure.in index 5187e82..7925f84 100755 --- a/ds9/macosx/configure.in +++ b/ds9/macosx/configure.in @@ -76,6 +76,9 @@ TEA_LOAD_CONFIG(tkimg) TEA_PATH_CONFIG(tkblt) TEA_LOAD_CONFIG(tkblt) +TEA_PATH_CONFIG(tkmpeg) +TEA_LOAD_CONFIG(tkmpeg) + #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. diff --git a/ds9/unix/Makefile.in b/ds9/unix/Makefile.in index 17f9bba..78d6496 100644 --- a/ds9/unix/Makefile.in +++ b/ds9/unix/Makefile.in @@ -28,7 +28,9 @@ tclcheckdns_LIB_SPEC= @tclcheckdns_LIB_SPEC@ tcliis_LIB_SPEC = @tcliis_LIB_SPEC@ tclsignal_LIB_SPEC= @tclsignal_LIB_SPEC@ tclzvfs_LIB_SPEC= @tclzvfs_LIB_SPEC@ + tkblt_LIB_SPEC = @tkblt_LIB_SPEC@ +tkmpeg_LIB_SPEC = @tkmpeg_LIB_SPEC@ CC = @CC@ CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ @@ -84,7 +86,6 @@ LLIBS = \ $(libdir)/libast_pal.a \ $(libdir)/tksao$(TKSAOVER)/libtksao$(TKSAOVER).a \ $(libdir)/tkhtml1$(TKHTMLVER)/libtkhtml1$(TKHTMLVER).a \ - $(libdir)/tkmpeg$(TKMPEGVER)/libtkmpeg$(TKMPEGVER).a \ $(libdir)/Tclxml$(TCLXMLVER)/libTclxml$(TCLXMLVER).a \ $(libdir)/Tktable$(TKTABLEVER)/libTktable$(TKTABLEVER).a \ $(libdir)/tkimgtiff$(TKIMGVER)/libtkimgtiff$(TKIMGVER).a \ @@ -152,6 +153,7 @@ ds9base : $(OBJS) $(LLIBS) $(zlibtcl_LIB_SPEC) \ $(tkimg_LIB_SPEC) \ $(tkblt_LIB_SPEC) \ + $(tkmpeg_LIB_SPEC) \ $(TK_STUB_LIB_SPEC) $(TK_LIB_SPEC) \ $(TCL_STUB_LIB_SPEC) $(TCL_LIB_SPEC) \ $(TK_LIBS) diff --git a/ds9/unix/configure b/ds9/unix/configure index c570ae5..fdfd7a3 100755 --- a/ds9/unix/configure +++ b/ds9/unix/configure @@ -653,6 +653,14 @@ RANLIB SET_MAKE INSTALL CPP +tkmpeg_STUB_LIB_PATH +tkmpeg_STUB_LIB_SPEC +tkmpeg_STUB_LIB_FILE +tkmpeg_LIB_SPEC +tkmpeg_LIB_FILE +tkmpeg_SRC_DIR +tkmpeg_BIN_DIR +tkmpeg_VERSION tkblt_STUB_LIB_PATH tkblt_STUB_LIB_SPEC tkblt_STUB_LIB_FILE @@ -830,6 +838,7 @@ with_jpegtcl with_zlibtcl with_tkimg with_tkblt +with_tkmpeg with_tclinclude with_tkinclude with_x @@ -1487,6 +1496,7 @@ Optional Packages: --with-zlibtcl directory containing zlibtcl configuration (zlibtclConfig.sh) --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) --with-tkblt directory containing tkblt configuration (tkbltConfig.sh) + --with-tkmpeg directory containing tkmpeg configuration (tkmpegConfig.sh) --with-tclinclude directory containing the public Tcl header files --with-tkinclude directory containing the public Tk header files --with-x use the X Window System @@ -6223,6 +6233,254 @@ fi fi + + # + # Ok, lets find the tkmpeg configuration + # First, look for one uninstalled. + # the alternative search directory is invoked by --with-tkmpeg + # + + if test x"${no_tkmpeg}" = x ; then + # we reset no_tkmpeg in case something fails here + no_tkmpeg=true + +# Check whether --with-tkmpeg was given. +if test "${with_tkmpeg+set}" = set; then : + withval=$with_tkmpeg; with_tkmpegconfig=${withval} +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkmpeg configuration" >&5 +$as_echo_n "checking for tkmpeg configuration... " >&6; } + if ${ac_cv_c_tkmpegconfig+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + # First check to see if --with-tkmpeg was specified. + if test x"${with_tkmpegconfig}" != x ; then + case ${with_tkmpegconfig} in + */tkmpegConfig.sh ) + if test -f ${with_tkmpegconfig}; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tkmpeg argument should refer to directory containing tkmpegConfig.sh, not to tkmpegConfig.sh itself" >&5 +$as_echo "$as_me: WARNING: --with-tkmpeg argument should refer to directory containing tkmpegConfig.sh, not to tkmpegConfig.sh itself" >&2;} + with_tkmpegconfig=`echo ${with_tkmpegconfig} | sed 's!/tkmpegConfig\.sh$!!'` + fi;; + esac + if test -f "${with_tkmpegconfig}/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd ${with_tkmpegconfig}; pwd)` + else + as_fn_error $? "${with_tkmpegconfig} directory doesn't contain tkmpegConfig.sh" "$LINENO" 5 + fi + fi + + # then check for a private tkmpeg installation + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + for i in \ + ../tkmpeg \ + `ls -dr ../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ../../tkmpeg \ + `ls -dr ../../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ../../../tkmpeg \ + `ls -dr ../../../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ${srcdir}/../tkmpeg \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ; do + if test -f "$i/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i; pwd)` + break + fi + if test -f "$i/unix/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i/unix; pwd)` + break + fi + done + fi + + # check in a few common install locations + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + for i in `ls -d ${libdir} 2>/dev/null` \ + `ls -d ${exec_prefix}/lib 2>/dev/null` \ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + `ls -d /usr/lib64 2>/dev/null` \ + ; do + if test -f "$i/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i; pwd)` + break + fi + done + fi + +fi + + + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + tkmpeg_BIN_DIR="# no tkmpeg configs found" + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tkmpeg configuration definitions" >&5 +$as_echo "$as_me: WARNING: Cannot find tkmpeg configuration definitions" >&2;} + exit 0 + else + no_tkmpeg= + tkmpeg_BIN_DIR=${ac_cv_c_tkmpegconfig} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $tkmpeg_BIN_DIR/tkmpegConfig.sh" >&5 +$as_echo "found $tkmpeg_BIN_DIR/tkmpegConfig.sh" >&6; } + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${tkmpeg_BIN_DIR}/tkmpegConfig.sh" >&5 +$as_echo_n "checking for existence of ${tkmpeg_BIN_DIR}/tkmpegConfig.sh... " >&6; } + + if test -f "${tkmpeg_BIN_DIR}/tkmpegConfig.sh" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 +$as_echo "loading" >&6; } + . "${tkmpeg_BIN_DIR}/tkmpegConfig.sh" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + + # + # If the tkmpeg_BIN_DIR is the build directory (not the install directory), + # then set the common variable name to the value of the build variables. + # For example, the variable tkmpeg_LIB_SPEC will be set to the value + # of tkmpeg_BUILD_LIB_SPEC. An extension should make use of tkmpeg_LIB_SPEC + # instead of tkmpeg_BUILD_LIB_SPEC since it will work with both an + # installed and uninstalled version of Tcl. + # + + if test -f "${tkmpeg_BIN_DIR}/Makefile" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tkmpeg" >&5 +$as_echo "$as_me: WARNING: Found Makefile - using build library specs for tkmpeg" >&2;} + tkmpeg_LIB_SPEC=${tkmpeg_BUILD_LIB_SPEC} + tkmpeg_STUB_LIB_SPEC=${tkmpeg_BUILD_STUB_LIB_SPEC} + tkmpeg_STUB_LIB_PATH=${tkmpeg_BUILD_STUB_LIB_PATH} + tkmpeg_INCLUDE_SPEC=${tkmpeg_BUILD_INCLUDE_SPEC} + tkmpeg_LIBRARY_PATH=${tkmpeg_LIBRARY_PATH} + fi + + + + + + + + + + + + + # Allow the caller to prevent this auto-check by specifying any 2nd arg + if test "x" = x; then : + + # Check both upper and lower-case variants + # If a dev wanted non-stubs libs, this function could take an option + # to not use _STUB in the paths below + if test "x${tkmpeg_STUB_LIB_SPEC}" = x; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking For TKMPEG_STUB library for LIBS" >&5 +$as_echo_n "checking For TKMPEG_STUB library for LIBS... " >&6; } + # This simplifies the use of stub libraries by automatically adding + # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, + # but this is called before CONFIG_CFLAGS. More importantly, this adds + # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. + if test "x${TKMPEG_STUB_LIB_SPEC}" != "x" ; then + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then + + vars="\"`${CYGPATH} ${TKMPEG_STUB_LIB_PATH}`\"" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TKMPEG_STUB_LIB_PATH ${TKMPEG_STUB_LIB_PATH}" >&5 +$as_echo "using TKMPEG_STUB_LIB_PATH ${TKMPEG_STUB_LIB_PATH}" >&6; } + else + + vars="${TKMPEG_STUB_LIB_SPEC}" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TKMPEG_STUB_LIB_SPEC ${TKMPEG_STUB_LIB_SPEC}" >&5 +$as_echo "using TKMPEG_STUB_LIB_SPEC ${TKMPEG_STUB_LIB_SPEC}" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking For tkmpeg_STUB library for LIBS" >&5 +$as_echo_n "checking For tkmpeg_STUB library for LIBS... " >&6; } + # This simplifies the use of stub libraries by automatically adding + # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, + # but this is called before CONFIG_CFLAGS. More importantly, this adds + # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. + if test "x${tkmpeg_STUB_LIB_SPEC}" != "x" ; then + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then + + vars="\"`${CYGPATH} ${tkmpeg_STUB_LIB_PATH}`\"" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tkmpeg_STUB_LIB_PATH ${tkmpeg_STUB_LIB_PATH}" >&5 +$as_echo "using tkmpeg_STUB_LIB_PATH ${tkmpeg_STUB_LIB_PATH}" >&6; } + else + + vars="${tkmpeg_STUB_LIB_SPEC}" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tkmpeg_STUB_LIB_SPEC ${tkmpeg_STUB_LIB_SPEC}" >&5 +$as_echo "using tkmpeg_STUB_LIB_SPEC ${tkmpeg_STUB_LIB_SPEC}" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + +fi + +fi + + #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. diff --git a/ds9/unix/configure.in b/ds9/unix/configure.in index fb24fd2..02f14e3 100755 --- a/ds9/unix/configure.in +++ b/ds9/unix/configure.in @@ -79,6 +79,9 @@ TEA_LOAD_CONFIG(tkimg) TEA_PATH_CONFIG(tkblt) TEA_LOAD_CONFIG(tkblt) +TEA_PATH_CONFIG(tkmpeg) +TEA_LOAD_CONFIG(tkmpeg) + #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. diff --git a/ds9/win/Makefile.in b/ds9/win/Makefile.in index aec2d28..b4a5799 100755 --- a/ds9/win/Makefile.in +++ b/ds9/win/Makefile.in @@ -25,7 +25,9 @@ zlibtcl_LIB_SPEC= @zlibtcl_LIB_SPEC@ tkimg_LIB_SPEC = @tkimg_LIB_SPEC@ tcliis_LIB_SPEC = @tcliis_LIB_SPEC@ + tkblt_LIB_SPEC = @tkblt_LIB_SPEC@ +tkmpeg_LIB_SPEC = @tkmpeg_LIB_SPEC@ CC = @CC@ CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ @@ -65,7 +67,6 @@ LLIBS = \ $(libdir)/libast_pal.a \ $(libdir)/tksao$(TKSAOVER)/tksao10.a \ $(libdir)/tkhtml1$(TKHTMLVER)/tkhtml110.a \ - $(libdir)/tkmpeg$(TKMPEGVER)/tkmpeg10.a \ $(libdir)/Tclxml$(TCLXMLVER)/Tclxml32.a \ $(libdir)/Tktable$(TKTABLEVER)/Tktable210.a \ $(libdir)/tkimgtiff$(TKIMGVER)/libtkimgtiff146.a \ @@ -106,6 +107,7 @@ ds9Base$(EXEEXT): $(OBJS) $(LLIBS) $(zlibtcl_LIB_SPEC) \ $(tkimg_LIB_SPEC) \ $(tkblt_LIB_SPEC) \ + $(tkmpeg_LIB_SPEC) \ $(TK_STUB_LIB_SPEC) $(TK_LIB_SPEC) \ $(TCL_STUB_LIB_SPEC) $(TCL_LIB_SPEC) \ $(TK_LIBS) \ diff --git a/ds9/win/configure b/ds9/win/configure index 48f8259..7e8de5a 100755 --- a/ds9/win/configure +++ b/ds9/win/configure @@ -651,6 +651,14 @@ RANLIB SET_MAKE INSTALL CPP +tkmpeg_STUB_LIB_PATH +tkmpeg_STUB_LIB_SPEC +tkmpeg_STUB_LIB_FILE +tkmpeg_LIB_SPEC +tkmpeg_LIB_FILE +tkmpeg_SRC_DIR +tkmpeg_BIN_DIR +tkmpeg_VERSION tkblt_STUB_LIB_PATH tkblt_STUB_LIB_SPEC tkblt_STUB_LIB_FILE @@ -801,6 +809,7 @@ with_jpegtcl with_zlibtcl with_tkimg with_tkblt +with_tkmpeg with_tclinclude with_tkinclude enable_shared @@ -1449,6 +1458,7 @@ Optional Packages: --with-zlibtcl directory containing zlibtcl configuration (zlibtclConfig.sh) --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) --with-tkblt directory containing tkblt configuration (tkbltConfig.sh) + --with-tkmpeg directory containing tkmpeg configuration (tkmpegConfig.sh) --with-tclinclude directory containing the public Tcl header files --with-tkinclude directory containing the public Tk header files --with-celib=DIR use Windows/CE support library from DIR @@ -5439,6 +5449,254 @@ fi fi + + # + # Ok, lets find the tkmpeg configuration + # First, look for one uninstalled. + # the alternative search directory is invoked by --with-tkmpeg + # + + if test x"${no_tkmpeg}" = x ; then + # we reset no_tkmpeg in case something fails here + no_tkmpeg=true + +# Check whether --with-tkmpeg was given. +if test "${with_tkmpeg+set}" = set; then : + withval=$with_tkmpeg; with_tkmpegconfig=${withval} +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkmpeg configuration" >&5 +$as_echo_n "checking for tkmpeg configuration... " >&6; } + if ${ac_cv_c_tkmpegconfig+:} false; then : + $as_echo_n "(cached) " >&6 +else + + + # First check to see if --with-tkmpeg was specified. + if test x"${with_tkmpegconfig}" != x ; then + case ${with_tkmpegconfig} in + */tkmpegConfig.sh ) + if test -f ${with_tkmpegconfig}; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tkmpeg argument should refer to directory containing tkmpegConfig.sh, not to tkmpegConfig.sh itself" >&5 +$as_echo "$as_me: WARNING: --with-tkmpeg argument should refer to directory containing tkmpegConfig.sh, not to tkmpegConfig.sh itself" >&2;} + with_tkmpegconfig=`echo ${with_tkmpegconfig} | sed 's!/tkmpegConfig\.sh$!!'` + fi;; + esac + if test -f "${with_tkmpegconfig}/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd ${with_tkmpegconfig}; pwd)` + else + as_fn_error $? "${with_tkmpegconfig} directory doesn't contain tkmpegConfig.sh" "$LINENO" 5 + fi + fi + + # then check for a private tkmpeg installation + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + for i in \ + ../tkmpeg \ + `ls -dr ../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ../../tkmpeg \ + `ls -dr ../../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ../../../tkmpeg \ + `ls -dr ../../../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ../../../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ${srcdir}/../tkmpeg \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9][0-9] 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9] 2>/dev/null` \ + `ls -dr ${srcdir}/../tkmpeg*[0-9].[0-9]* 2>/dev/null` \ + ; do + if test -f "$i/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i; pwd)` + break + fi + if test -f "$i/unix/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i/unix; pwd)` + break + fi + done + fi + + # check in a few common install locations + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + for i in `ls -d ${libdir} 2>/dev/null` \ + `ls -d ${exec_prefix}/lib 2>/dev/null` \ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + `ls -d /usr/lib64 2>/dev/null` \ + ; do + if test -f "$i/tkmpegConfig.sh" ; then + ac_cv_c_tkmpegconfig=`(cd $i; pwd)` + break + fi + done + fi + +fi + + + if test x"${ac_cv_c_tkmpegconfig}" = x ; then + tkmpeg_BIN_DIR="# no tkmpeg configs found" + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tkmpeg configuration definitions" >&5 +$as_echo "$as_me: WARNING: Cannot find tkmpeg configuration definitions" >&2;} + exit 0 + else + no_tkmpeg= + tkmpeg_BIN_DIR=${ac_cv_c_tkmpegconfig} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $tkmpeg_BIN_DIR/tkmpegConfig.sh" >&5 +$as_echo "found $tkmpeg_BIN_DIR/tkmpegConfig.sh" >&6; } + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${tkmpeg_BIN_DIR}/tkmpegConfig.sh" >&5 +$as_echo_n "checking for existence of ${tkmpeg_BIN_DIR}/tkmpegConfig.sh... " >&6; } + + if test -f "${tkmpeg_BIN_DIR}/tkmpegConfig.sh" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 +$as_echo "loading" >&6; } + . "${tkmpeg_BIN_DIR}/tkmpegConfig.sh" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + + # + # If the tkmpeg_BIN_DIR is the build directory (not the install directory), + # then set the common variable name to the value of the build variables. + # For example, the variable tkmpeg_LIB_SPEC will be set to the value + # of tkmpeg_BUILD_LIB_SPEC. An extension should make use of tkmpeg_LIB_SPEC + # instead of tkmpeg_BUILD_LIB_SPEC since it will work with both an + # installed and uninstalled version of Tcl. + # + + if test -f "${tkmpeg_BIN_DIR}/Makefile" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tkmpeg" >&5 +$as_echo "$as_me: WARNING: Found Makefile - using build library specs for tkmpeg" >&2;} + tkmpeg_LIB_SPEC=${tkmpeg_BUILD_LIB_SPEC} + tkmpeg_STUB_LIB_SPEC=${tkmpeg_BUILD_STUB_LIB_SPEC} + tkmpeg_STUB_LIB_PATH=${tkmpeg_BUILD_STUB_LIB_PATH} + tkmpeg_INCLUDE_SPEC=${tkmpeg_BUILD_INCLUDE_SPEC} + tkmpeg_LIBRARY_PATH=${tkmpeg_LIBRARY_PATH} + fi + + + + + + + + + + + + + # Allow the caller to prevent this auto-check by specifying any 2nd arg + if test "x" = x; then : + + # Check both upper and lower-case variants + # If a dev wanted non-stubs libs, this function could take an option + # to not use _STUB in the paths below + if test "x${tkmpeg_STUB_LIB_SPEC}" = x; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking For TKMPEG_STUB library for LIBS" >&5 +$as_echo_n "checking For TKMPEG_STUB library for LIBS... " >&6; } + # This simplifies the use of stub libraries by automatically adding + # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, + # but this is called before CONFIG_CFLAGS. More importantly, this adds + # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. + if test "x${TKMPEG_STUB_LIB_SPEC}" != "x" ; then + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then + + vars="\"`${CYGPATH} ${TKMPEG_STUB_LIB_PATH}`\"" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TKMPEG_STUB_LIB_PATH ${TKMPEG_STUB_LIB_PATH}" >&5 +$as_echo "using TKMPEG_STUB_LIB_PATH ${TKMPEG_STUB_LIB_PATH}" >&6; } + else + + vars="${TKMPEG_STUB_LIB_SPEC}" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using TKMPEG_STUB_LIB_SPEC ${TKMPEG_STUB_LIB_SPEC}" >&5 +$as_echo "using TKMPEG_STUB_LIB_SPEC ${TKMPEG_STUB_LIB_SPEC}" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking For tkmpeg_STUB library for LIBS" >&5 +$as_echo_n "checking For tkmpeg_STUB library for LIBS... " >&6; } + # This simplifies the use of stub libraries by automatically adding + # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, + # but this is called before CONFIG_CFLAGS. More importantly, this adds + # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. + if test "x${tkmpeg_STUB_LIB_SPEC}" != "x" ; then + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then + + vars="\"`${CYGPATH} ${tkmpeg_STUB_LIB_PATH}`\"" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tkmpeg_STUB_LIB_PATH ${tkmpeg_STUB_LIB_PATH}" >&5 +$as_echo "using tkmpeg_STUB_LIB_PATH ${tkmpeg_STUB_LIB_PATH}" >&6; } + else + + vars="${tkmpeg_STUB_LIB_SPEC}" + for i in $vars; do + if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then + # Convert foo.lib to -lfoo for GCC. No-op if not *.lib + i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` + fi + PKG_LIBS="$PKG_LIBS $i" + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tkmpeg_STUB_LIB_SPEC ${tkmpeg_STUB_LIB_SPEC}" >&5 +$as_echo "using tkmpeg_STUB_LIB_SPEC ${tkmpeg_STUB_LIB_SPEC}" >&6; } + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 +$as_echo "file not found" >&6; } + fi + +fi + +fi + + #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. diff --git a/ds9/win/configure.in b/ds9/win/configure.in index d2eeb9c..e1bb79e 100755 --- a/ds9/win/configure.in +++ b/ds9/win/configure.in @@ -70,6 +70,9 @@ TEA_LOAD_CONFIG(tkimg) TEA_PATH_CONFIG(tkblt) TEA_LOAD_CONFIG(tkblt) +TEA_PATH_CONFIG(tkmpeg) +TEA_LOAD_CONFIG(tkmpeg) + #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. |