diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-09 10:29:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-09 10:29:58 +0000 |
commit | 090b53c17d70324947a49e8f5feb9cdc577cc989 (patch) | |
tree | ec0cd116b154399c850f6f89240e5e6b47d79519 /configure.ac | |
parent | cleanup whitespace and comments -- no functional changes (diff) | |
download | sandbox-090b53c17d70324947a49e8f5feb9cdc577cc989.tar.gz sandbox-090b53c17d70324947a49e8f5feb9cdc577cc989.tar.bz2 sandbox-090b53c17d70324947a49e8f5feb9cdc577cc989.zip |
headers.h: consolidate all random system includes into one file
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 9493fc6..92b0976 100644 --- a/configure.ac +++ b/configure.ac @@ -28,10 +28,30 @@ AC_FUNC_ALLOCA AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([ \ - fcntl.h limits.h memory.h stddef.h \ - stdlib.h string.h strings.h sys/file.h \ - sys/param.h sys/time.h unistd.h utime.h \ +AC_CHECK_HEADERS_ONCE([ \ + dirent.h \ + dlfcn.h \ + errno.h \ + fcntl.h \ + libgen.h \ + limits.h \ + memory.h \ + signal.h \ + stdarg.h \ + stddef.h \ + stdio.h \ + stdlib.h \ + string.h \ + strings.h \ + unistd.h \ + utime.h \ + sys/file.h \ + sys/mman.h \ + sys/param.h \ + sys/stat.h \ + sys/time.h \ + sys/types.h \ + sys/wait.h \ ]) dnl Checks for typedefs, structures, and compiler characteristics. @@ -149,6 +169,7 @@ AC_TRY_COMPILE([ ) AC_MSG_RESULT([$have_rtld_next]) if test x"$have_rtld_next" = xyes ; then + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" AC_DEFINE([HAVE_RTLD_NEXT], [1], [Have RTLD_NEXT enabled libc]) fi |