aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-01-01 23:50:46 +0000
committerMark Kettenis <kettenis@gnu.org>2003-01-01 23:50:46 +0000
commit9a156167759954f84d2b7adeedf78fcd05c248a1 (patch)
treee496c0ef47c318de05cc44575e13f3e1c161e5c3 /gdb/configure.in
parent0a99d725231e13b4c009c83094474cf74abff68d (diff)
downloadgdb-9a156167759954f84d2b7adeedf78fcd05c248a1.zip
gdb-9a156167759954f84d2b7adeedf78fcd05c248a1.tar.gz
gdb-9a156167759954f84d2b7adeedf78fcd05c248a1.tar.bz2
* configure.in: Create "Checks for libraries" section, and move
appropriate tests there. Cleanup check for wctype in libw. Use AC_SEARCH_LIBS to see whether we need libsocket. * configure: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in30
1 files changed, 18 insertions, 12 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 42e1177..71b54b9 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -1,5 +1,5 @@
dnl Autoconf configure script for GDB, the GNU debugger.
-dnl Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+dnl Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
dnl Free Software Foundation, Inc.
dnl
dnl This file is part of GDB.
@@ -108,6 +108,23 @@ AC_CHECK_TOOL(MIG, mig)
AC_ARG_PROGRAM
+# ---------------------- #
+# Checks for libraries. #
+# ---------------------- #
+
+# We might need to link with -lm; most simulators need it.
+AC_CHECK_LIB(m, main)
+
+# We need to link with -lw to get `wctype' on Solaris before Solaris
+# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
+# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
+# is known to have this problem). Therefore we avoid libw if we can.
+AC_CHECK_FUNC(wctype, [],
+ [AC_CHECK_LIB(w, wctype)])
+
+# Some systems (e.g. Solaris) have `socketpair' in libsocket.
+AC_SEARCH_LIBS(socketpair, socket)
+
AC_TYPE_SIGNAL
AC_HEADER_DIRENT
@@ -235,7 +252,6 @@ if test $gdb_cv_have_pt_getxmmregs = yes; then
fi
-AC_CHECK_LIB(socket, socketpair)
AC_CHECK_FUNCS(socketpair)
@@ -416,16 +432,6 @@ if test ${host} = ${target} ; then
fi
fi
-dnl See if host has libm. This is usually needed by simulators.
-AC_CHECK_LIB(m, main)
-
-dnl Solaris puts wctype in /usr/lib/libw.a before Solaris 2.6.
-dnl
-dnl A bug in GNU ld 2.9.1 causes a problem if we link in -lw
-dnl under Solaris 2.6 because it is some funky empty library.
-dnl So only link in libw if we have to.
-AC_CHECK_LIB(c, wctype,: ,AC_CHECK_LIB(w, wctype))
-
dnl See if compiler supports "long long" type.
AC_MSG_CHECKING(for long long support in compiler)