From dd3dd9184149b3bb4c56a6589140853b84df45df Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Mon, 1 Dec 1997 20:53:02 +0000 Subject: [PATCH] * gdbtk.c: move include of "guitcl.h" back out of IDE ifdef (gdbtk_init): move ide_initialize_paths out of IDE ifdef * configure.in (TCL_LIBS, CONFIG_DEPS): add IDE libraries for all builds (CONFIG_OBS): remove tracepoint.o, which should always be included * configure: regenerate * Makefile.in (install-only): ALWAYS install the new gdbtk (REMOTE_OBS): add tracepoint.o --- gdb/ChangeLog | 18 +++++++++++++++++- gdb/configure | 22 +++++++++++----------- gdb/configure.in | 6 +++--- gdb/gdbtk.c | 4 ++-- 4 files changed, 33 insertions(+), 17 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be5dba5c59..40c1142002 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,19 @@ +Mon Dec 1 10:19:44 1997 Keith Seitz + + * gdbtk.c: move include of "guitcl.h" back out of IDE ifdef + (gdbtk_init): move ide_initialize_paths out of IDE ifdef + + * configure.in (TCL_LIBS, CONFIG_DEPS): add IDE libraries for all + builds + (CONFIG_OBS): remove tracepoint.o, which should always be included + + * configure: regenerate + + * Makefile.in (install-only): ALWAYS install the new gdbtk + (REMOTE_OBS): add tracepoint.o + + * ChangeLog: tidy up 11/26 entry + Thu Nov 27 09:07:18 1997 Michael Meissner * configure.in ({TCL_LIBS,CONFIG_DEPS}): Don't add IDE libraries @@ -33,7 +49,7 @@ Wed Nov 26 11:33:09 1997 Keith Seitz * tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on the directory name - * Merge (lots) with foundry-971118-build + * Merge (lots) with foundry's 11/18/97 build * Makefile.in (install-only): install the new gdbtk, not the old diff --git a/gdb/configure b/gdb/configure index 30318842ad..08e8bbb7bc 100755 --- a/gdb/configure +++ b/gdb/configure @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.1 +# Generated automatically using autoconf version 2.12 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -348,7 +348,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.1" + echo "configure generated by autoconf version 2.12" exit 0 ;; -with-* | --with-*) @@ -907,7 +907,7 @@ esac # Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : +if $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi @@ -919,14 +919,14 @@ case "$host_alias" in NONE) case $nonopt in NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : + if host_alias=`$ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` +host=`$ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` @@ -944,7 +944,7 @@ NONE) esac ;; esac -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` +target=`$ac_config_sub $target_alias` target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` @@ -962,7 +962,7 @@ NONE) esac ;; esac -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` +build=`$ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` @@ -3098,14 +3098,14 @@ fi TCL_LIBS='$(LIBIDE) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' CONFIG_DEPS='$(LIBIDE) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' else - TCL_LIBS='$(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' - CONFIG_DEPS='$(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' + TCL_LIBS='$(LIBIDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' + CONFIG_DEPS='$(LIBIDE) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' fi # Yes, the ordering seems wrong here. But it isn't. # TK_LIBS is the list of libraries that need to be linked # after Tcl/Tk. LIBS="${LIBS} ${TCL_LIBS} ${TK_LIBS}" - CONFIG_OBS="${CONFIG_OBS} gdbtk.o tracepoint.o" + CONFIG_OBS="${CONFIG_OBS} gdbtk.o" if test x$gdb_cv_os_cygwin32 = xyes; then WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32" @@ -3477,7 +3477,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.1" + echo "$CONFIG_STATUS generated by autoconf version 2.12" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; diff --git a/gdb/configure.in b/gdb/configure.in index 6fb63ea649..8512fc9326 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -354,14 +354,14 @@ if test "${enable_gdbtk}" = "yes"; then TCL_LIBS='$(LIBIDE) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' CONFIG_DEPS='$(LIBIDE) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' else - TCL_LIBS='$(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' - CONFIG_DEPS='$(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' + TCL_LIBS='$(LIBIDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' + CONFIG_DEPS='$(LIBIDE) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' fi # Yes, the ordering seems wrong here. But it isn't. # TK_LIBS is the list of libraries that need to be linked # after Tcl/Tk. LIBS="${LIBS} ${TCL_LIBS} ${TK_LIBS}" - CONFIG_OBS="${CONFIG_OBS} gdbtk.o tracepoint.o" + CONFIG_OBS="${CONFIG_OBS} gdbtk.o" if test x$gdb_cv_os_cygwin32 = xyes; then WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32" diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index f5ca636956..5ec9c408fd 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -38,10 +38,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include +#include "guitcl.h" #ifdef IDE /* start-sanitize-ide */ -#include "guitcl.h" #include "event.h" #include "idetcl.h" #include "ilutk.h" @@ -1759,10 +1759,10 @@ gdbtk_init ( argv0 ) make_final_cleanup (gdbtk_cleanup, NULL); /* Initialize the Paths variable. */ -#ifdef IDE if (ide_initialize_paths (interp, "gdbtcl") != TCL_OK) error ("ide_initialize_paths failed: %s", interp->result); +#ifdef IDE /* start-sanitize-ide */ /* Find the directory where we expect to find idemanager. We ignore errors since it doesn't really matter if this fails. */ -- 2.34.1