Thu May 21 13:14:25 1998 John Metzler <jmetzler@cygnus.com>
[deliverable/binutils-gdb.git] / gdb / configure.in
index 08138bbf8410f0b332bbc1f3a4ca2de56b4ef6f7..535d393e286d8f976fc4052a8dc5d9780fb19b3b 100644 (file)
@@ -74,6 +74,7 @@ AC_HEADER_STAT
 AC_C_CONST
 
 AC_CHECK_FUNCS(setpgid sbrk select poll sigaction)
+AC_FUNC_ALLOCA
 
 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
 if test "${target}" = "${host}"; then
@@ -200,6 +201,8 @@ BFD_NEED_DECLARATION(malloc)
 BFD_NEED_DECLARATION(realloc)
 BFD_NEED_DECLARATION(free)
 
+BFD_NEED_DECLARATION(strerror)
+
 dnl See if thread_db library is around for Solaris thread debugging.  Note that
 dnl we must explicitly test for version 1 of the library because version 0
 dnl (present on Solaris 2.4 or earlier) doesn't have the same API.
@@ -354,6 +357,7 @@ fi
 
 configdir="unix"
 
+GDBTKLIBS=
 if test "${enable_gdbtk}" = "yes"; then
 
     CY_AC_PATH_TCLCONFIG
@@ -415,8 +419,10 @@ if test "${enable_gdbtk}" = "yes"; then
           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}"
+          # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
+          # were in LIBS then any link tests after this point would
+          # try to include things like `$(LIBGUI)', which wouldn't work.
+          GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
           CONFIG_OBS="${CONFIG_OBS} gdbtk.o"
 
           if test x$gdb_cv_os_cygwin32 = xyes; then
@@ -434,6 +440,7 @@ AC_SUBST(X_LDFLAGS)
 AC_SUBST(X_LIBS)
 AC_SUBST(TIXLIB)
 AC_SUBST(TIX_DEPS)
+AC_SUBST(GDBTKLIBS)
 # end-sanitize-gdbtk
 
 AC_PATH_X
This page took 0.024252 seconds and 4 git commands to generate.