Tue Jul 22 19:45:37 1997 Martin M. Hunt <hunt@cygnus.com>
[external/binutils.git] / gdb / configure.in
index b4baf27..d17a640 100644 (file)
@@ -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)