summaryrefslogtreecommitdiffstats
path: root/ds9/macosx
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-01-05 22:29:53 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-01-05 22:29:53 (GMT)
commit82f04f7de8cab4d4f3c14c1c59ff8731ce21950d (patch)
tree9e758374585e79d87a708efc01dff31e05e4da05 /ds9/macosx
parent7e5818f6148377753994f45b532a36e62bc67606 (diff)
downloadblt-82f04f7de8cab4d4f3c14c1c59ff8731ce21950d.zip
blt-82f04f7de8cab4d4f3c14c1c59ff8731ce21950d.tar.gz
blt-82f04f7de8cab4d4f3c14c1c59ff8731ce21950d.tar.bz2
update TEA 3.10
Diffstat (limited to 'ds9/macosx')
-rw-r--r--ds9/macosx/Makefile.in3
-rwxr-xr-xds9/macosx/configure258
-rwxr-xr-xds9/macosx/configure.in3
3 files changed, 263 insertions, 1 deletions
diff --git a/ds9/macosx/Makefile.in b/ds9/macosx/Makefile.in
index e5d0ee0..fa30c5b 100644
--- a/ds9/macosx/Makefile.in
+++ b/ds9/macosx/Makefile.in
@@ -24,6 +24,7 @@ jpegtcl_LIB_SPEC= @jpegtcl_LIB_SPEC@
zlibtcl_LIB_SPEC= @zlibtcl_LIB_SPEC@
tkimg_LIB_SPEC = @tkimg_LIB_SPEC@
+tclcheckdns_LIB_SPEC= @tclcheckdns_LIB_SPEC@
tkblt_LIB_SPEC = @tkblt_LIB_SPEC@
CC = @CC@
@@ -74,7 +75,6 @@ LLIBS = \
$(libdir)/tkimgwindow$(TKIMGVER)/libtkimgwindow$(TKIMGVER).a \
$(libdir)/libxpa.a \
$(libdir)/tcliis$(TCLIISVER)/libtcliis$(TCLIISVER).a \
- $(libdir)/tclcheckdns$(TCLCHECKDNSVER)/libtclcheckdns$(TCLCHECKDNSVER).a \
$(libdir)/tclsignal$(TCLSIGNALVER)/libtclsignal$(TCLSIGNALVER).a \
$(libdir)/tkmacosx$(TKMACOSXVER)/libtkmacosx$(TKMACOSXVER).a
@@ -130,6 +130,7 @@ ds9base : $(OBJS) $(LLIBS)
$(OBJS) \
$(LLIBS) \
$(LIBS) \
+ $(tclcheckdns_LIB_SPEC) \
$(tifftcl_LIB_SPEC) \
$(pngtcl_LIB_SPEC) \
$(jpegtcl_LIB_SPEC) \
diff --git a/ds9/macosx/configure b/ds9/macosx/configure
index 769e0d7..fce7463 100755
--- a/ds9/macosx/configure
+++ b/ds9/macosx/configure
@@ -700,6 +700,14 @@ tifftcl_LIB_FILE
tifftcl_SRC_DIR
tifftcl_BIN_DIR
tifftcl_VERSION
+tclcheckdns_STUB_LIB_PATH
+tclcheckdns_STUB_LIB_SPEC
+tclcheckdns_STUB_LIB_FILE
+tclcheckdns_LIB_SPEC
+tclcheckdns_LIB_FILE
+tclcheckdns_SRC_DIR
+tclcheckdns_BIN_DIR
+tclcheckdns_VERSION
TK_XINCLUDES
TK_LIBS
TK_STUB_LIB_SPEC
@@ -787,6 +795,7 @@ ac_user_opts='
enable_option_checking
with_tcl
with_tk
+with_tclcheckdns
with_tifftcl
with_pngtcl
with_jpegtcl
@@ -1440,6 +1449,7 @@ Optional Packages:
--with-tcl directory containing tcl configuration
(tclConfig.sh)
--with-tk directory containing tk configuration (tkConfig.sh)
+ --with-tclcheckdns directory containing tclcheckdns configuration (tclcheckdnsConfig.sh)
--with-tifftcl directory containing tifftcl configuration (tifftclConfig.sh)
--with-pngtcl directory containing pngtcl configuration (pngtclConfig.sh)
--with-jpegtcl directory containing jpegtcl configuration (jpegtclConfig.sh)
@@ -3704,6 +3714,254 @@ $as_echo "#define MAC_OSX_TK 1" >>confdefs.h
#
+ # Ok, lets find the tclcheckdns configuration
+ # First, look for one uninstalled.
+ # the alternative search directory is invoked by --with-tclcheckdns
+ #
+
+ if test x"${no_tclcheckdns}" = x ; then
+ # we reset no_tclcheckdns in case something fails here
+ no_tclcheckdns=true
+
+# Check whether --with-tclcheckdns was given.
+if test "${with_tclcheckdns+set}" = set; then :
+ withval=$with_tclcheckdns; with_tclcheckdnsconfig=${withval}
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclcheckdns configuration" >&5
+$as_echo_n "checking for tclcheckdns configuration... " >&6; }
+ if ${ac_cv_c_tclcheckdnsconfig+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+
+ # First check to see if --with-tclcheckdns was specified.
+ if test x"${with_tclcheckdnsconfig}" != x ; then
+ case ${with_tclcheckdnsconfig} in
+ */tclcheckdnsConfig.sh )
+ if test -f ${with_tclcheckdnsconfig}; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tclcheckdns argument should refer to directory containing tclcheckdnsConfig.sh, not to tclcheckdnsConfig.sh itself" >&5
+$as_echo "$as_me: WARNING: --with-tclcheckdns argument should refer to directory containing tclcheckdnsConfig.sh, not to tclcheckdnsConfig.sh itself" >&2;}
+ with_tclcheckdnsconfig=`echo ${with_tclcheckdnsconfig} | sed 's!/tclcheckdnsConfig\.sh$!!'`
+ fi;;
+ esac
+ if test -f "${with_tclcheckdnsconfig}/tclcheckdnsConfig.sh" ; then
+ ac_cv_c_tclcheckdnsconfig=`(cd ${with_tclcheckdnsconfig}; pwd)`
+ else
+ as_fn_error $? "${with_tclcheckdnsconfig} directory doesn't contain tclcheckdnsConfig.sh" "$LINENO" 5
+ fi
+ fi
+
+ # then check for a private tclcheckdns installation
+ if test x"${ac_cv_c_tclcheckdnsconfig}" = x ; then
+ for i in \
+ ../tclcheckdns \
+ `ls -dr ../tclcheckdns*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ../tclcheckdns*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ../tclcheckdns*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ../tclcheckdns*[0-9].[0-9]* 2>/dev/null` \
+ ../../tclcheckdns \
+ `ls -dr ../../tclcheckdns*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ../../tclcheckdns*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ../../tclcheckdns*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ../../tclcheckdns*[0-9].[0-9]* 2>/dev/null` \
+ ../../../tclcheckdns \
+ `ls -dr ../../../tclcheckdns*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ../../../tclcheckdns*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ../../../tclcheckdns*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ../../../tclcheckdns*[0-9].[0-9]* 2>/dev/null` \
+ ${srcdir}/../tclcheckdns \
+ `ls -dr ${srcdir}/../tclcheckdns*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
+ `ls -dr ${srcdir}/../tclcheckdns*[0-9].[0-9][0-9] 2>/dev/null` \
+ `ls -dr ${srcdir}/../tclcheckdns*[0-9].[0-9] 2>/dev/null` \
+ `ls -dr ${srcdir}/../tclcheckdns*[0-9].[0-9]* 2>/dev/null` \
+ ; do
+ if test -f "$i/tclcheckdnsConfig.sh" ; then
+ ac_cv_c_tclcheckdnsconfig=`(cd $i; pwd)`
+ break
+ fi
+ if test -f "$i/unix/tclcheckdnsConfig.sh" ; then
+ ac_cv_c_tclcheckdnsconfig=`(cd $i/unix; pwd)`
+ break
+ fi
+ done
+ fi
+
+ # check in a few common install locations
+ if test x"${ac_cv_c_tclcheckdnsconfig}" = 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/tclcheckdnsConfig.sh" ; then
+ ac_cv_c_tclcheckdnsconfig=`(cd $i; pwd)`
+ break
+ fi
+ done
+ fi
+
+fi
+
+
+ if test x"${ac_cv_c_tclcheckdnsconfig}" = x ; then
+ tclcheckdns_BIN_DIR="# no tclcheckdns configs found"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tclcheckdns configuration definitions" >&5
+$as_echo "$as_me: WARNING: Cannot find tclcheckdns configuration definitions" >&2;}
+ exit 0
+ else
+ no_tclcheckdns=
+ tclcheckdns_BIN_DIR=${ac_cv_c_tclcheckdnsconfig}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $tclcheckdns_BIN_DIR/tclcheckdnsConfig.sh" >&5
+$as_echo "found $tclcheckdns_BIN_DIR/tclcheckdnsConfig.sh" >&6; }
+ fi
+ fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${tclcheckdns_BIN_DIR}/tclcheckdnsConfig.sh" >&5
+$as_echo_n "checking for existence of ${tclcheckdns_BIN_DIR}/tclcheckdnsConfig.sh... " >&6; }
+
+ if test -f "${tclcheckdns_BIN_DIR}/tclcheckdnsConfig.sh" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
+$as_echo "loading" >&6; }
+ . "${tclcheckdns_BIN_DIR}/tclcheckdnsConfig.sh"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
+$as_echo "file not found" >&6; }
+ fi
+
+ #
+ # If the tclcheckdns_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 tclcheckdns_LIB_SPEC will be set to the value
+ # of tclcheckdns_BUILD_LIB_SPEC. An extension should make use of tclcheckdns_LIB_SPEC
+ # instead of tclcheckdns_BUILD_LIB_SPEC since it will work with both an
+ # installed and uninstalled version of Tcl.
+ #
+
+ if test -f "${tclcheckdns_BIN_DIR}/Makefile" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tclcheckdns" >&5
+$as_echo "$as_me: WARNING: Found Makefile - using build library specs for tclcheckdns" >&2;}
+ tclcheckdns_LIB_SPEC=${tclcheckdns_BUILD_LIB_SPEC}
+ tclcheckdns_STUB_LIB_SPEC=${tclcheckdns_BUILD_STUB_LIB_SPEC}
+ tclcheckdns_STUB_LIB_PATH=${tclcheckdns_BUILD_STUB_LIB_PATH}
+ tclcheckdns_INCLUDE_SPEC=${tclcheckdns_BUILD_INCLUDE_SPEC}
+ tclcheckdns_LIBRARY_PATH=${tclcheckdns_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${tclcheckdns_STUB_LIB_SPEC}" = x; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking For TCLCHECKDNS_STUB library for LIBS" >&5
+$as_echo_n "checking For TCLCHECKDNS_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${TCLCHECKDNS_STUB_LIB_SPEC}" != "x" ; then
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
+
+ vars="\"`${CYGPATH} ${TCLCHECKDNS_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 TCLCHECKDNS_STUB_LIB_PATH ${TCLCHECKDNS_STUB_LIB_PATH}" >&5
+$as_echo "using TCLCHECKDNS_STUB_LIB_PATH ${TCLCHECKDNS_STUB_LIB_PATH}" >&6; }
+ else
+
+ vars="${TCLCHECKDNS_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 TCLCHECKDNS_STUB_LIB_SPEC ${TCLCHECKDNS_STUB_LIB_SPEC}" >&5
+$as_echo "using TCLCHECKDNS_STUB_LIB_SPEC ${TCLCHECKDNS_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 tclcheckdns_STUB library for LIBS" >&5
+$as_echo_n "checking For tclcheckdns_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${tclcheckdns_STUB_LIB_SPEC}" != "x" ; then
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
+
+ vars="\"`${CYGPATH} ${tclcheckdns_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 tclcheckdns_STUB_LIB_PATH ${tclcheckdns_STUB_LIB_PATH}" >&5
+$as_echo "using tclcheckdns_STUB_LIB_PATH ${tclcheckdns_STUB_LIB_PATH}" >&6; }
+ else
+
+ vars="${tclcheckdns_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 tclcheckdns_STUB_LIB_SPEC ${tclcheckdns_STUB_LIB_SPEC}" >&5
+$as_echo "using tclcheckdns_STUB_LIB_SPEC ${tclcheckdns_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
+
+
+
+ #
# Ok, lets find the tifftcl configuration
# First, look for one uninstalled.
# the alternative search directory is invoked by --with-tifftcl
diff --git a/ds9/macosx/configure.in b/ds9/macosx/configure.in
index 3748e30..3d7f275 100755
--- a/ds9/macosx/configure.in
+++ b/ds9/macosx/configure.in
@@ -49,6 +49,9 @@ TEA_LOAD_TKCONFIG
# Load the *.sh file if necessary
#--------------------------------------------------------------------
+TEA_PATH_CONFIG(tclcheckdns)
+TEA_LOAD_CONFIG(tclcheckdns)
+
TEA_PATH_CONFIG(tifftcl)
TEA_LOAD_CONFIG(tifftcl)