aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1997-07-10 07:15:26 +0000
committerMartin Hunt <hunt@redhat.com>1997-07-10 07:15:26 +0000
commit2476848aafa495e6b9fee09cf15f451a3b5afb41 (patch)
treeab00963ab366ddf788e1e4457a9532349a4a7378 /gdb/aclocal.m4
parentAdd coffswap.h to file list for TIc80 sanitization. (diff)
downloadbinutils-gdb-2476848aafa495e6b9fee09cf15f451a3b5afb41.tar.gz
binutils-gdb-2476848aafa495e6b9fee09cf15f451a3b5afb41.tar.bz2
binutils-gdb-2476848aafa495e6b9fee09cf15f451a3b5afb41.zip
Thu Jul 10 00:02:41 1997 Martin M. Hunt <hunt@cygnus.com>
* Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and IDE configuration information. * gdbtk.c (breakpoint_notify): Send address, linenumber and filename when a breakpoint is set. Avoids call to bp_info. (gdbtk_init): Call Tcl_FindExecutable(). Add code to handle Itcl, Tix and IDE initialization. * defs.h (init_ui_hook): Change prototype to accept one arg. * main.c (gdb_init): Change prototype to accept one arg. * top.c (gdb_init): Accepts one argument which it uses to call (*init_ui_hook), which will be gdbtk_init(). This is used for calling Tcl_FindExecutable(). * gdbtcl/breakpoint.tcl (gdbtk_tcl_breakpoint): Change to accept variable number of args for compatibility with cchanges in gdbtk.c. * configure: Regenerated. * gdbtcl/tclIndex: Regenerated.
Diffstat (limited to 'gdb/aclocal.m4')
-rw-r--r--gdb/aclocal.m456
1 files changed, 56 insertions, 0 deletions
diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4
index 2c134ccdf69..50fb1f02616 100644
--- a/gdb/aclocal.m4
+++ b/gdb/aclocal.m4
@@ -479,3 +479,59 @@ dnl AC_SUBST(TK_EXEC_PREFIX)
AC_SUBST(TK_LIB_SPEC)
])
+
+# check for Itcl headers.
+
+AC_DEFUN(CY_AC_PATH_ITCLH, [
+AC_MSG_CHECKING(for Itcl private headers. srcdir=${srcdir})
+if test x"${ac_cv_c_itclh}" = x ; then
+ for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do
+ if test -f $i/src/itcl.h ; then
+ ac_cv_c_itclh=`(cd $i/src; pwd)`
+ break
+ fi
+ done
+fi
+if test x"${ac_cv_c_itclh}" = x ; then
+ ITCLHDIR="# no Itcl private headers found"
+ AC_MSG_ERROR([Can't find Itcl private headers])
+fi
+if test x"${ac_cv_c_itclh}" != x ; then
+ ITCLHDIR="-I${ac_cv_c_itclh}"
+fi
+# should always be here
+ ITCLLIB="../itcl/src/libitcl.a"
+AC_SUBST(ITCLHDIR)
+AC_SUBST(ITCLLIB)
+])
+
+# check for Tix headers.
+
+AC_DEFUN(CY_AC_PATH_TIX, [
+AC_MSG_CHECKING(for Tix private headers. srcdir=${srcdir})
+if test x"${ac_cv_c_tixh}" = x ; then
+ for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
+ if test -f $i/generic/tix.h ; then
+ ac_cv_c_tixh=`(cd $i/generic; pwd)`
+ break
+ fi
+ done
+fi
+if test x"${ac_cv_c_tixh}" = x ; then
+ TIXHDIR="# no Tix private headers found"
+ AC_MSG_ERROR([Can't find Tix private headers])
+fi
+if test x"${ac_cv_c_tixh}" != x ; then
+ TIXHDIR="-I${ac_cv_c_tixh}"
+fi
+# need to do better than this...
+case "${host}" in
+*-*-cygwin32*)
+ TIXLIB="../tix/win/tk4.2/libtix4.1.7.6.a" ;;
+*)
+ TIXLIB="../tix/unix/tk4.2/libtix4.1.7.6.a" ;;
+esac
+AC_SUBST(TIXHDIR)
+AC_SUBST(TIXLIB)
+])
+