# on a build system. On the other hand, we know that linux has stupid | # on a build system. On the other hand, we know that linux has stupid | ||||
# but compatible shmem support, so we assume this macro as true | # but compatible shmem support, so we assume this macro as true | ||||
SET(HAVE_SANE_SHMEM 1) | SET(HAVE_SANE_SHMEM 1) | ||||
CHECK_C_SOURCE_COMPILES ("#define _GNU_SOURCE | |||||
#include <sys/socket.h> | |||||
int main (int argc, char **argv) { | |||||
return ((int*)(&recvmmsg))[argc]; | |||||
}" HAVE_RECVMMSG) | |||||
ELSE() | ELSE() | ||||
CHECK_C_SOURCE_RUNS(" | CHECK_C_SOURCE_RUNS(" | ||||
#include <sys/mman.h> | #include <sys/mman.h> |
#cmakedefine HAVE_PWD_H 1 | #cmakedefine HAVE_PWD_H 1 | ||||
#cmakedefine HAVE_RDTSC 1 | #cmakedefine HAVE_RDTSC 1 | ||||
#cmakedefine HAVE_READPASSPHRASE_H 1 | #cmakedefine HAVE_READPASSPHRASE_H 1 | ||||
#cmakedefine HAVE_RECVMMSG 1 | |||||
#cmakedefine HAVE_RUSAGE_SELF 1 | #cmakedefine HAVE_RUSAGE_SELF 1 | ||||
#cmakedefine HAVE_SA_SIGINFO 1 | #cmakedefine HAVE_SA_SIGINFO 1 | ||||
#cmakedefine HAVE_SANE_SHMEM 1 | #cmakedefine HAVE_SANE_SHMEM 1 |