Windows: indicate that roken is a dynamic library for roken.h
[openafs.git] / acinclude.m4
index 7d5d0bf..77c3caa 100644 (file)
@@ -770,6 +770,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
                 AC_CHECK_LINUX_STRUCT([inode], [i_security], [fs.h])
                 AC_CHECK_LINUX_STRUCT([file_operations], [flock], [fs.h])
                 AC_CHECK_LINUX_STRUCT([file_operations], [sendfile], [fs.h])
+                AC_CHECK_LINUX_STRUCT([file_system_type], [mount], [fs.h])
                 AC_CHECK_LINUX_STRUCT([nameidata], [path], [namei.h])
                 AC_CHECK_LINUX_STRUCT([proc_dir_entry], [owner], [proc_fs.h])
                 AC_CHECK_LINUX_STRUCT([super_block], [s_bdi], [fs.h])
@@ -1214,7 +1215,7 @@ AC_CHECK_HEADERS(windows.h direct.h sys/ipc.h sys/resource.h sys/un.h)
 AC_CHECK_HEADERS(security/pam_modules.h ucontext.h regex.h sys/statvfs.h sys/statfs.h sys/bitypes.h)
 AC_CHECK_HEADERS(sys/socket.h sys/ioctl.h errno.h time.h syslog.h)
 AC_CHECK_HEADERS(linux/errqueue.h,,,[#include <linux/types.h>])
-AC_CHECK_HEADERS(et/com_err.h)
+AC_CHECK_HEADERS(et/com_err.h stdio_ext.h)
 
 AC_CHECK_TYPES([fsblkcnt_t],,,[
 #include <sys/types.h>
@@ -1278,12 +1279,9 @@ AC_CHECK_FUNCS([ \
        setprogname \
        setvbuf \
        sigaction \
-       snprintf \
        strcasestr \
        strerror \
        timegm \
-       vsnprintf \
-       vsyslog \
 ])
 
 OPENAFS_ROKEN()
@@ -1309,8 +1307,17 @@ AC_CHECK_FUNCS([ \
        strsep \
 ])
 
-dnl Functions that we're going to try and get from libroken
+dnl Functions that are in objects that we always build from libroken
+AC_CHECK_FUNCS([ \
+       asprintf \
+       asnprintf \
+       vasprintf \
+       vasnprintf \
+       vsnprintf \
+       snprintf \
+])
 
+dnl Functions that we're going to try and get from libroken
 AC_REPLACE_FUNCS([ \
        daemon \
        ecalloc \
@@ -1324,8 +1331,10 @@ AC_REPLACE_FUNCS([ \
        strlcat \
        strnlen \
        strlcpy \
+       strsep \
        verr \
        verrx \
+       vsyslog \
        vwarn \
        vwarnx \
        warn \
@@ -1402,7 +1411,11 @@ AC_CHECK_TYPE([socklen_t],[],
 AC_CHECK_TYPES(off64_t)
 AC_CHECK_TYPES([ssize_t], [], [], [#include <unistd.h>])
 AC_CHECK_TYPES([struct winsize], [], [], [
-#include <sys/termios.h>
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+#else
+# include <sys/termios.h>
+#endif
 #include <sys/ioctl.h>])
 AC_CHECK_TYPES([sa_family_t, socklen_t, struct sockaddr,
                struct sockaddr_storage],
@@ -1420,6 +1433,7 @@ AC_CHECK_TYPES([struct addrinfo], [], [], [
 #include <netdb.h>
 #endif
 ])
+AC_CHECK_TYPES([long long], [], [], [])
 
 AC_SIZEOF_TYPE(long)