From 58171591deaa58372d92dbc9fe8223cceb6bae26 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Oct 2015 18:50:39 +0100 Subject: [PATCH] Check for async IO support. --- CMakeLists.txt | 4 ++++ config.h.in | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cfaa632da..edcfade07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -758,6 +758,8 @@ CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H) CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H) CHECK_INCLUDE_FILES(cpuid.h HAVE_CPUID_H) CHECK_INCLUDE_FILES(dirent.h HAVE_DIRENT_H) +CHECK_INCLUDE_FILES(stropts.h HAVE_STROPS_H) +CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL_H) # Check platform API CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE) @@ -819,6 +821,8 @@ CHECK_SYMBOL_EXISTS(sched_yield "sched.h" HAVE_SCHED_YIELD) CHECK_SYMBOL_EXISTS(__get_cpuid "cpuid.h" HAVE_GET_CPUID) CHECK_SYMBOL_EXISTS(PCRE_CONFIG_JIT "pcre.h" HAVE_PCRE_JIT) CHECK_SYMBOL_EXISTS(SOCK_SEQPACKET "sys/types.h;sys/socket.h" HAVE_SOCK_SEQPACKET) +CHECK_SYMBOL_EXISTS(I_SETSIG "sys/types.h;sys/ioctl.h" HAVE_SETSIG) +CHECK_SYMBOL_EXISTS(O_ASYNC "sys/types.h;sys/fcntl.h" HAVE_OASYNC) # Some PCRE implementations are lacking of pcre_jit_exec fast path SET(_PCRE_FAST_TEST " diff --git a/config.h.in b/config.h.in index 472c6bced..04e6416ae 100644 --- a/config.h.in +++ b/config.h.in @@ -232,6 +232,10 @@ #cmakedefine HAVE_CPUID_H 1 #cmakedefine HAVE_DIRENT_H 1 #cmakedefine HAVE_SOCK_SEQPACKET 1 +#cmakedefine HAVE_SYS_IOCTL_H 1 +#cmakedefine HAVE_STROPS_H 1 +#cmakedefine HAVE_SETSIG 1 +#cmakedefine HAVE_OASYNC 1 /* Configure allocator */ #define uthash_malloc(sz) g_slice_alloc(sz) -- 2.39.5