diff --git a/moo/configure b/moo/configure index e2dfb02..3014b96 100755 --- a/moo/configure +++ b/moo/configure @@ -18384,12 +18384,13 @@ _ACEOF fi done -for ac_func in accept4 +for ac_func in accept4 pipe2 epoll_create1 do : - ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" -if test "x$ac_cv_func_accept4" = xyes; then : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF -#define HAVE_ACCEPT4 1 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi diff --git a/moo/configure.ac b/moo/configure.ac index 9d6a203..ea5be41 100644 --- a/moo/configure.ac +++ b/moo/configure.ac @@ -154,7 +154,7 @@ AC_CHECK_FUNCS([makecontext swapcontext getcontext setcontext]) AC_CHECK_FUNCS([clock_nanosleep nanosleep usleep]) AC_CHECK_FUNCS([localtime_r gmtime_r]) AC_CHECK_FUNCS([snprintf _vsnprintf _vsnwprintf strerror_r]) -AC_CHECK_FUNCS([accept4]) +AC_CHECK_FUNCS([accept4 pipe2 epoll_create1]) AC_CHECK_FUNCS([isatty mmap munmap]) save_LIBS="$LIBS" diff --git a/moo/lib/moo-cfg.h.in b/moo/lib/moo-cfg.h.in index f5c8bb1..8141ec4 100644 --- a/moo/lib/moo-cfg.h.in +++ b/moo/lib/moo-cfg.h.in @@ -60,6 +60,9 @@ /* dyncall library is available */ #undef HAVE_DYNCALL_LIB +/* Define to 1 if you have the `epoll_create1' function. */ +#undef HAVE_EPOLL_CREATE1 + /* Define to 1 if you have the header file. */ #undef HAVE_ERRNO_H @@ -141,6 +144,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_NET_IF_DL_H +/* Define to 1 if you have the `pipe2' function. */ +#undef HAVE_PIPE2 + /* Define to 1 if you have the header file. */ #undef HAVE_POLL_H