From 1a57cd09eaeb6f7f7e8779c7998f4e68d8654d8f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 24 Jan 1996 23:39:34 +0000 Subject: [PATCH] Look for -ldl or -ldld where needed by Tcl 7.5. Updated copyrights. Close backquote in 'lint' target. --- gdb/ChangeLog | 14 ++++++++ gdb/Makefile.in | 2 +- gdb/configure | 89 +++++++++++++++++++++++++++++++++++++++++++++++- gdb/configure.in | 8 +++++ gdb/gdbtk.c | 2 +- gdb/gdbtk.tcl | 2 +- 6 files changed, 113 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1cbdf9b0543..9762be15666 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +Wed Jan 24 15:42:24 1996 Tom Tromey + + * Makefile.in (lint): Close backquotes. + +start-sanitize-gdbtk +Wed Jan 24 15:28:41 1996 Tom Tromey + + * gdbtk.tcl, gdbtk.c: Updated copyrights. + + * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or + greater. + * configure: Rebuilt. + +end-sanitize-gdbtk Wed Jan 24 13:19:10 1996 Fred Fish * NEWS: Make note of new record and replay feature for diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 975eeda2d9b..6dbfdd276ea 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -845,7 +845,7 @@ m2-exp.tab.c: m2-exp.y lint: $(LINTFILES) $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \ - `echo $(DEPFILES) | sed 's/\.o /\.c /g' + `echo $(DEPFILES) | sed 's/\.o /\.c /g'` gdb.cxref: $(SFILES) cxref -I. $(SFILES) >gdb.cxref diff --git a/gdb/configure b/gdb/configure index 46d25f3abca..b95962d2eb5 100755 --- a/gdb/configure +++ b/gdb/configure @@ -1404,7 +1404,7 @@ ENABLE_GM= if test "${enable_gm+set}" = set; then enableval="$enable_gm" case "${enableval}" in -yes) ENABLE_OBS="${ENABLE_OBS} magic.o" +yes) ENABLE_OBS="${ENABLE_OBS} gmagic.o" ENABLE_CFLAGS=-DGENERAL_MAGIC ;; no) ;; @@ -2581,6 +2581,93 @@ fi + # Look for dynamic linking libraries that Tcl might need. This is + # only done for Tcl 7.5 and greater. It would be good to look for and + # use the "configInfo" file that Tcl generates, but for now that is + # beyond us. + if test $tclmajor -ge 7 -a $tclminor -ge 5 ; then + echo $ac_n "checking for -ldl""... $ac_c" 1>&6 +ac_lib_var=`echo dl | tr '.-/+' '___p'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldl $LIBS" +cat > conftest.$ac_ext <&6 + ac_tr_lib=HAVE_LIB`echo dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo $ac_n "checking for -ldld""... $ac_c" 1>&6 +ac_lib_var=`echo dld | tr '.-/+' '___p'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldld $LIBS" +cat > conftest.$ac_ext <&6 + ac_tr_lib=HAVE_LIB`echo dld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi + +fi + + fi + ENABLE_GDBTK=1 if test "x$no_x" != "xyes"; then diff --git a/gdb/configure.in b/gdb/configure.in index b21544599f0..e17dc09f4c8 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -118,6 +118,14 @@ if test "${enable_gdbtk}" = "yes"; then CY_AC_PATH_TCL CY_AC_PATH_TK + # Look for dynamic linking libraries that Tcl might need. This is + # only done for Tcl 7.5 and greater. It would be good to look for and + # use the "configInfo" file that Tcl generates, but for now that is + # beyond us. + if test $tclmajor -ge 7 -a $tclminor -ge 5 ; then + AC_CHECK_LIB(dl, main, , AC_CHECK_LIB(dld, main)) + fi + ENABLE_GDBTK=1 if test "x$no_x" != "xyes"; then diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index aaf919344bf..31903f24553 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -1,5 +1,5 @@ /* Tcl/Tk interface routines. - Copyright 1994, 1995 Free Software Foundation, Inc. + Copyright 1994, 1995, 1996 Free Software Foundation, Inc. Written by Stu Grossman of Cygnus Support. diff --git a/gdb/gdbtk.tcl b/gdb/gdbtk.tcl index c7b4ec12511..5ec2fb4837c 100644 --- a/gdb/gdbtk.tcl +++ b/gdb/gdbtk.tcl @@ -1,5 +1,5 @@ # GDB GUI setup for GDB, the GNU debugger. -# Copyright 1994, 1995 +# Copyright 1994, 1995, 1996 # Free Software Foundation, Inc. # Written by Stu Grossman of Cygnus Support. -- 2.30.2