]> arthur.barton.de Git - netatalk.git/commitdiff
better sys/cdefs.h fix to use sys/generic/sys/cdefs.h if not found
authorrufustfirefly <rufustfirefly>
Wed, 4 Oct 2000 15:20:41 +0000 (15:20 +0000)
committerrufustfirefly <rufustfirefly>
Wed, 4 Oct 2000 15:20:41 +0000 (15:20 +0000)
configure.in

index 5830b9d0443c2a6fd4667af1426fc18d851707af..727a32f4ed93570cf1c09d7758a744f118b92c20 100644 (file)
@@ -78,7 +78,11 @@ dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(cdefs.h fcntl.h limits.h strings.h sys/cdefs.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
+AC_CHECK_HEADER(sys/cdefs.h,,
+       AC_MSG_RESULT([enabling generic cdefs.h from tree])
+       CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
+)
 
 # Allow user to specify flags
 AC_ARG_WITH(cflags,