X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fconfigure.in;h=e8d6c3bcc8cce08e4dbee911d7e08b40278b43a4;hb=c5394b80aefdea6b2f589723a4b79bcbc1942629;hp=3dae4a3070c6b5973106fd658a525c2e4f2208b3;hpb=c2d11a7da0372ef052af1c74d56e264d8aae4743;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/configure.in b/gdb/configure.in index 3dae4a3070..e8d6c3bcc8 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -79,9 +79,9 @@ 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 sys/ioctl.h) @@ -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)