What the heck, look for <fcntl.h> and <sys/fcntl.h>, too.
authoraland <aland>
Fri, 12 Jul 2002 19:36:59 +0000 (19:36 +0000)
committeraland <aland>
Fri, 12 Jul 2002 19:36:59 +0000 (19:36 +0000)
It doesn't cost anything, and it might help with portability.

configure.in
src/include/autoconf.h.in

index c3b3bfb..e3d437f 100644 (file)
@@ -364,7 +364,7 @@ dnl # HP/UX requires linking with librt, too, to get the sem_* symbols.  :\
        dnl    chumminess with the autoconf internals.  -chad
        dnl PTHREADLIB="$PTHREADLIB $ac_cv_search_sem_init"
        ],
-       [],
+       [AC_MSG_ERROR(-lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz)],
        "-lpthread"
   )
 
@@ -443,6 +443,8 @@ AC_CHECK_HEADERS( \
        sys/time.h \
        sys/wait.h \
        sys/security.h \
+       fcntl.h \
+       sys/fcntl.h \
        prot.h \
        sia.h \
        siad.h
index 25016db..22d8586 100644 (file)
@@ -92,9 +92,6 @@ config.h - created by autoconf; contains defines generated by autoconf
 /* define this if we have REG_EXTENDED (from <regex.h>) */
 #undef HAVE_REG_EXTENDED
 
-/* define this if you have the <isql.h> header file */
-#undef HAVE_ISQL_H
-
 /* define to something if you don't have ut_xtime in struct utmpx */
 #undef ut_xtime
 
@@ -176,9 +173,15 @@ config.h - created by autoconf; contains defines generated by autoconf
 /* Define if you have the <dirent.h> header file.  */
 #undef HAVE_DIRENT_H
 
+/* Define if you have the <dlfcn.h> header file.  */
+#undef HAVE_DLFCN_H
+
 /* Define if you have the <errno.h> header file.  */
 #undef HAVE_ERRNO_H
 
+/* Define if you have the <fcntl.h> header file.  */
+#undef HAVE_FCNTL_H
+
 /* Define if you have the <getopt.h> header file.  */
 #undef HAVE_GETOPT_H
 
@@ -227,6 +230,9 @@ config.h - created by autoconf; contains defines generated by autoconf
 /* Define if you have the <sys/dir.h> header file.  */
 #undef HAVE_SYS_DIR_H
 
+/* Define if you have the <sys/fcntl.h> header file.  */
+#undef HAVE_SYS_FCNTL_H
+
 /* Define if you have the <syslog.h> header file.  */
 #undef HAVE_SYSLOG_H