+# todo: result for NEED_... is wrong (inverted)\r
+\r
#check system for includes\r
include(CheckIncludeFile)\r
check_include_file("arpa/inet.h" HAVE_ARPA_INET_H)\r
check_include_file("dirent.h" HAVE_DIRENT_H)\r
check_include_file("dlfcn.h" HAVE_DLFCN_H)\r
check_include_file("fcntl.h" HAVE_FCNTL_H)\r
-check_include_file("getopt.h" NEED_GETOPT_H)\r
+check_include_file("getopt.h" HAVE_GETOPT_H)\r
check_include_file("grp.h" HAVE_GRP_H)\r
check_include_file("g_ascii_strtoull.h" NEED_G_ASCII_STRTOULL_H)\r
check_include_file("inet/aton.h" NEED_INET_ATON_H)\r
check_function_exists("issetugid" HAVE_ISSETUGID)\r
check_function_exists("mmap" HAVE_MMAP)\r
check_function_exists("mprotect" HAVE_MPROTECT)\r
+check_function_exists("mkdtemp" HAVE_MKDTEMP)\r
+check_function_exists("mkstemp" HAVE_MKSTEMP)\r
check_function_exists("sysconf" HAVE_SYSCONF)\r