summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 118b845)
raw | patch | inline | side by side (parent: 118b845)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 26 Mar 2003 05:37:11 +0000 (05:37 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 26 Mar 2003 05:37:11 +0000 (05:37 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@464 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 5e5ee361f152aa5496c6e60202037f349d501049..994f3be3e7eaa4d09d85ec1a2c09a97bbfe67c10 100644 (file)
--- a/configure.in
+++ b/configure.in
[sets path to openssl installation]),
OPENSSL=$withval,)
-dnl Check for AF_INET6 support
+AC_CHECK_HEADERS(unistd.h)
+
+dnl Check for AF_INET6 support - unistd.h required for Darwin
AC_CACHE_CHECK([for IPv6 support], with_ipv6, [
- AC_TRY_COMPILE([#include <netinet/in.h>
+ AC_TRY_COMPILE([#ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
+ #include <netinet/in.h>
#include <sys/socket.h>],
[struct sockaddr_in6 sin6;
void *p;
AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h unistd.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h)
-AC_CHECK_HEADERS(stdarg.h sys/unistd.h unistd.h ctype.h stdlib.h)
+AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h)
+AC_CHECK_HEADERS(stdarg.h sys/unistd.h ctype.h stdlib.h)
AC_CHECK_HEADERS(limits.h sys/param.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h fcntl.h sys/statfs.h sys/dustat.h sys/statvfs.h)
# Define HAVE_INTTYPES_H if <inttypes.h> exists,