verify_krb5_pac
[metze/wireshark/wip.git] / ConfigureChecks.cmake
index f6bf312b66ce72cbf7a1f3d88eb91a06af1cecd0..e9b793ffd932a840cf15f33a29d8ef919dfa3472 100644 (file)
@@ -11,22 +11,26 @@ include(CMakePushCheckState)
 
 #check system for includes
 include(CheckIncludeFile)
-check_include_file("arpa/inet.h"         HAVE_ARPA_INET_H)
-check_include_file("fcntl.h"             HAVE_FCNTL_H)
-check_include_file("getopt.h"            HAVE_GETOPT_H)
-check_include_file("grp.h"               HAVE_GRP_H)
-check_include_file("ifaddrs.h"           HAVE_IFADDRS_H)
-check_include_file("netinet/in.h"        HAVE_NETINET_IN_H)
-check_include_file("netdb.h"             HAVE_NETDB_H)
-check_include_file("pwd.h"               HAVE_PWD_H)
-check_include_file("sys/ioctl.h"         HAVE_SYS_IOCTL_H)
-check_include_file("sys/select.h"        HAVE_SYS_SELECT_H)
-check_include_file("sys/socket.h"        HAVE_SYS_SOCKET_H)
-check_include_file("sys/sockio.h"        HAVE_SYS_SOCKIO_H)
-check_include_file("sys/time.h"          HAVE_SYS_TIME_H)
-check_include_file("sys/utsname.h"       HAVE_SYS_UTSNAME_H)
-check_include_file("sys/wait.h"          HAVE_SYS_WAIT_H)
-check_include_file("unistd.h"            HAVE_UNISTD_H)
+include(CheckIncludeFiles)
+check_include_file("arpa/inet.h"            HAVE_ARPA_INET_H)
+check_include_file("fcntl.h"                HAVE_FCNTL_H)
+check_include_file("getopt.h"               HAVE_GETOPT_H)
+check_include_file("grp.h"                  HAVE_GRP_H)
+#
+# This may require <sys/types.h> to be included
+#
+check_include_files("sys/types.h;ifaddrs.h" HAVE_IFADDRS_H)
+check_include_file("netinet/in.h"           HAVE_NETINET_IN_H)
+check_include_file("netdb.h"                HAVE_NETDB_H)
+check_include_file("pwd.h"                  HAVE_PWD_H)
+check_include_file("sys/ioctl.h"            HAVE_SYS_IOCTL_H)
+check_include_file("sys/select.h"           HAVE_SYS_SELECT_H)
+check_include_file("sys/socket.h"           HAVE_SYS_SOCKET_H)
+check_include_file("sys/sockio.h"           HAVE_SYS_SOCKIO_H)
+check_include_file("sys/time.h"             HAVE_SYS_TIME_H)
+check_include_file("sys/utsname.h"          HAVE_SYS_UTSNAME_H)
+check_include_file("sys/wait.h"             HAVE_SYS_WAIT_H)
+check_include_file("unistd.h"               HAVE_UNISTD_H)
 
 #
 # On Linux, check for some additional headers, which we need as a