From: Martin Hunt Date: Wed, 23 Jul 1997 02:45:59 +0000 (+0000) Subject: Tue Jul 22 19:45:37 1997 Martin M. Hunt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bc5b2fa96be25832c95798e3573b9d3e5225718;p=binutils-gdb.git Tue Jul 22 19:45:37 1997 Martin M. Hunt * configure.in, aclocal.m4: Another fix to find the correct Tix library name. * configure: Rebuilt. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7542565c842..ffe90743806 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +start-sanitize-gdbtk +Tue Jul 22 19:45:37 1997 Martin M. Hunt + + * configure.in, aclocal.m4: Another fix to find the + correct Tix library name. + + * configure: Rebuilt. + +end-sanitize-gdbtk + Tue Jul 22 12:11:48 1997 Michael Snyder (msnyder@cleaver.cygnus.com) * config/mips/tm-mips64.h: longs, long longs, and pointers diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 index 39cbd11a75b..e96288646b5 100644 --- a/gdb/aclocal.m4 +++ b/gdb/aclocal.m4 @@ -524,25 +524,6 @@ fi if test x"${ac_cv_c_tixh}" != x ; then TIXHDIR="-I${ac_cv_c_tixh}" fi -case "${host}" in -*-*-cygwin32*) - for i in ../tix/win/tk4.2/libtix4.1.7.6.a ../tix/win/tk4.2/libtix4176.a ; do - if test -f $i ; then - TIXLIB=${i} - break - fi - done - ;; -*) - for i in ../tix/unix/tk4.2/libtix4.1.7.6.a ../tix/unix/tk4.2/libtix4176.a ; do - if test -f ${i} ; then - TIXLIB=${i} - break - fi - done - ;; -esac AC_SUBST(TIXHDIR) -AC_SUBST(TIXLIB) ]) diff --git a/gdb/configure b/gdb/configure index b522c65a9db..aa00d75922f 100755 --- a/gdb/configure +++ b/gdb/configure @@ -3006,27 +3006,25 @@ fi if test x"${ac_cv_c_tixh}" != x ; then TIXHDIR="-I${ac_cv_c_tixh}" fi -case "${host}" in -*-*-cygwin32*) - for i in ../tix/win/tk4.2/libtix4.1.7.6.a ../tix/win/tk4.2/libtix4176.a ; do - if test -f $i ; then - TIXLIB=${i} - break - fi - done - ;; -*) - for i in ../tix/unix/tk4.2/libtix4.1.7.6.a ../tix/unix/tk4.2/libtix4176.a ; do - if test -f ${i} ; then - TIXLIB=${i} - break - fi - done - ;; -esac + # now look for tix library stuff + TIXVERSION=4.1.7.6 + . ${ac_cv_c_tclconfig}/tclConfig.sh + case "${host}" in + *-*-cygwin32*) + tixdir=../tix/win/tcl7.6 + ;; + *) + tixdir=../tix/unix/tk4.2 + ;; + esac + if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then + TIXLIB="-L${tixdir} -ltix${TIXVERSION}" + else + TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`" + fi ENABLE_GDBTK=1 @@ -3049,6 +3047,7 @@ fi + # end-sanitize-gdbtk @@ -3192,7 +3191,7 @@ links="${links} nm.h" fi # start-sanitize-gdbtk echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:3196: checking whether ln -s works" >&5 +echo "configure:3195: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3412,11 +3411,11 @@ s%@TKHDIR@%$TKHDIR%g s%@ITCLHDIR@%$ITCLHDIR%g s%@ITCLLIB@%$ITCLLIB%g s%@TIXHDIR@%$TIXHDIR%g -s%@TIXLIB@%$TIXLIB%g s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g s%@X_CFLAGS@%$X_CFLAGS%g s%@X_LDFLAGS@%$X_LDFLAGS%g s%@X_LIBS@%$X_LIBS%g +s%@TIXLIB@%$TIXLIB%g s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g s%@CONFIG_OBS@%$CONFIG_OBS%g s%@HLDFLAGS@%$HLDFLAGS%g diff --git a/gdb/configure.in b/gdb/configure.in index b4baf279879..d17a64095f7 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -305,6 +305,23 @@ if test "${enable_gdbtk}" = "yes"; then CY_AC_PATH_ITCLH CY_AC_PATH_TIX + # now look for tix library stuff + TIXVERSION=4.1.7.6 + . ${ac_cv_c_tclconfig}/tclConfig.sh + case "${host}" in + *-*-cygwin32*) + tixdir=../tix/win/tcl7.6 + ;; + *) + tixdir=../tix/unix/tk4.2 + ;; + esac + if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then + TIXLIB="-L${tixdir} -ltix${TIXVERSION}" + else + TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`" + fi + ENABLE_GDBTK=1 # Include some libraries that Tcl and Tk want. @@ -326,6 +343,7 @@ AC_SUBST(ENABLE_GDBTK) AC_SUBST(X_CFLAGS) AC_SUBST(X_LDFLAGS) AC_SUBST(X_LIBS) +AC_SUBST(TIXLIB) # end-sanitize-gdbtk AC_SUBST(ENABLE_CFLAGS)