diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-01-02 11:14:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-01-02 11:14:33 +0000 |
commit | 5ee754fce11ec4c92da6dcddec4a3c6bfae08424 (patch) | |
tree | 7191441feee3084616811fc2cff07eeea634db11 /gdb/configure.in | |
parent | 1c43e6e58a36981a75ffd2cff92335759765f966 (diff) | |
download | gdb-5ee754fce11ec4c92da6dcddec4a3c6bfae08424.zip gdb-5ee754fce11ec4c92da6dcddec4a3c6bfae08424.tar.gz gdb-5ee754fce11ec4c92da6dcddec4a3c6bfae08424.tar.bz2 |
* acconfig.h (_MSE_INT_H): Remove.
* configure.in: Create "Checks for header files" section, and move
appropriate tests there. Don't check for objlist.h, wchar.h,
wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
misdetection fix. Also add "Checks for types", "Checks for
compiler characteristics" and "Checks for library functions"
sections.
* config.in, configure: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 76 |
1 files changed, 57 insertions, 19 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 0f417f6f..fb3d1ff 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -139,33 +139,71 @@ AC_CHECK_FUNC(wctype, [], # Some systems (e.g. Solaris) have `socketpair' in libsocket. AC_SEARCH_LIBS(socketpair, socket) -AC_TYPE_SIGNAL +# ------------------------- # +# Checks for header files. # +# ------------------------- # AC_HEADER_DIRENT +AC_HEADER_STAT AC_HEADER_STDC +AC_CHECK_HEADERS(link.h) +AC_CHECK_HEADERS(nlist.h) +AC_CHECK_HEADERS(poll.h sys/poll.h) +AC_CHECK_HEADERS(proc_service.h thread_db.h) +AC_CHECK_HEADERS(stddef.h) +AC_CHECK_HEADERS(stdlib.h) +AC_CHECK_HEADERS(stdint.h) +AC_CHECK_HEADERS(string.h memory.h strings.h) +AC_CHECK_HEADERS(sys/fault.h) +AC_CHECK_HEADERS(sys/file.h) +AC_CHECK_HEADERS(sys/filio.h) +AC_CHECK_HEADERS(sys/ioctl.h) +AC_CHECK_HEADERS(sys/param.h) +AC_CHECK_HEADERS(sys/proc.h) +AC_CHECK_HEADERS(sys/procfs.h) +AC_CHECK_HEADERS(sys/ptrace.h ptrace.h) +AC_CHECK_HEADERS(sys/reg.h sys/debugreg.h) +AC_CHECK_HEADERS(sys/select.h) +AC_CHECK_HEADERS(sys/syscall.h) +AC_CHECK_HEADERS(sys/user.h) +AC_CHECK_HEADERS(sys/wait.h wait.h) +AC_CHECK_HEADERS(termios.h termio.h sgtty.h) +AC_CHECK_HEADERS(unistd.h) + +# On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash +# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to +# think that we don't have <curses.h> if we're using GCC. +case $host_os in + solaris2.[[78]]) + if test "$GCC" = yes; then + AC_DEFINE(_MSE_INT_H, 1, + [[Define to 1 to avoid a clash between <widec.h> and <wchar.h> on + Solaris 2.[78] when using GCC. ]]) + fi ;; +esac +AC_CHECK_HEADERS(curses.h ncurses.h term.h) -dnl Solaris 7 needs _MSE_INT_H defined to avoid a clash between <widec.h> -dnl and <wchar.h> that causes AC_CHECK_HEADERS to think <curses.h> doesn't -dnl exist. - -case $host_os in solaris2.7 | solaris2.8) case "$GCC" in yes) - AC_DEFINE(_MSE_INT_H) -esac; esac - -AC_CHECK_HEADERS(ctype.h nlist.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/proc.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/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \ - sys/filio.h \ - curses.h ncurses.h \ - poll.h sys/poll.h) -AC_HEADER_STAT +# FIXME: kettenis/20030102: In most cases we include these +# unconditionally, so what's the point in checking these? +AC_CHECK_HEADERS(ctype.h time.h) + +# ------------------ # +# Checks for types. # +# ------------------ # + +AC_TYPE_SIGNAL + +# ------------------------------------- # +# Checks for compiler characteristics. # +# ------------------------------------- # AC_C_CONST AC_C_INLINE +# ------------------------------ # +# Checks for library functions. # +# ------------------------------ # + AC_CHECK_FUNCS(btowc canonicalize_file_name isascii poll \ realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask ) AC_FUNC_ALLOCA |