import gdb-2000-01-17 snapshot
[deliverable/binutils-gdb.git] / gdb / configure.in
index 8435420a91a82175193e3316368bb8ad31b79e08..e8d6c3bcc8cce08e4dbee911d7e08b40278b43a4 100644 (file)
@@ -79,12 +79,12 @@ AC_TYPE_SIGNAL
 
 AC_HEADER_STDC
 
-AC_CHECK_HEADERS(ctype.h curses.h endian.h link.h \
+AC_CHECK_HEADERS(ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
        memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
-       string.h sys/procfs.h sys/ptrace.h sys/reg.h \
+       string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
        term.h termio.h termios.h unistd.h wait.h sys/wait.h \
        wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
-       time.h)
+       time.h sys/ioctl.h)
 AC_HEADER_STAT
 
 AC_C_CONST
@@ -144,33 +144,24 @@ AC_MSG_RESULT($gdb_cv_hpux_sswide)
 
 # If we are configured native on GNU/Linux, work around problems with
 # sys/procfs.h
-# Also detect which type of /proc is in use, such as for Unixware.
+# Also detect which type of /proc is in use, such as for Unixware or Solaris.
 
 if test "${target}" = "${host}"; then
-  gdb_cv_hostos_is_solaris=no
   case "${host}" in
   i[[3456]]86-*-linux*)
        AC_DEFINE(START_INFERIOR_TRAPS_EXPECTED,2)
        AC_DEFINE(sys_quotactl)
        ;;
-  *-*-solaris*)
-       gdb_cv_hostos_is_solaris=yes ;;
+  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
+      AC_DEFINE(NEW_PROC_API)
+      ;;
+  # FIXME: we would like to define NEW_PROC_API for all versions of
+  # Solaris from 2.6 on... but it isn't quite working yet.  Seems
+  # to work on sparc 2.6, so let's try it out there.
+  sparc-sun-solaris2.6)
+      AC_DEFINE(NEW_PROC_API)
+      ;;
   esac
-  AC_MSG_CHECKING(for directory proc entries)
-# The [gdb_host != sun4sol2] hack is because Solaris does provide the
-# multiple procfs files as of Solaris 2.6, but GDB can't use it right now.
-  if test "$ac_cv_header_sys_procfs_h" = yes -a \
-          "$gdb_cv_hostos_is_solaris" = no \
-  -a -d /proc/$$ \
-  -a -f /proc/$$/ctl \
-  -a -f /proc/$$/as \
-  -a -f /proc/$$/map \
-  -a -f /proc/$$/status; then
-    AC_MSG_RESULT(yes)
-    AC_DEFINE(HAVE_MULTIPLE_PROC_FDS)
-  else
-    AC_MSG_RESULT(no)
-  fi
 fi
 
 if test "$ac_cv_header_sys_procfs_h" = yes; then
@@ -498,6 +489,10 @@ AC_SUBST(TERM_LIB)
 WIN32LIBS=
 if test x$gdb_cv_os_cygwin = xyes; then
     WIN32LIBS="-luser32"
+    case "${target}" in
+       *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
+       ;;
+    esac
 fi
 AC_SUBST(WIN32LIBS)
 
This page took 0.023722 seconds and 4 git commands to generate.