added check for pipe2 and epoll_create1 to configure.ac

This commit is contained in:
hyunghwan.chung 2018-11-13 07:36:04 +00:00
parent 6939433ff0
commit 210e022d92
3 changed files with 12 additions and 5 deletions

9
moo/configure vendored
View File

@ -18384,12 +18384,13 @@ _ACEOF
fi fi
done done
for ac_func in accept4 for ac_func in accept4 pipe2 epoll_create1
do : do :
ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
if test "x$ac_cv_func_accept4" = xyes; then : 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 cat >>confdefs.h <<_ACEOF
#define HAVE_ACCEPT4 1 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF _ACEOF
fi fi

View File

@ -154,7 +154,7 @@ AC_CHECK_FUNCS([makecontext swapcontext getcontext setcontext])
AC_CHECK_FUNCS([clock_nanosleep nanosleep usleep]) AC_CHECK_FUNCS([clock_nanosleep nanosleep usleep])
AC_CHECK_FUNCS([localtime_r gmtime_r]) AC_CHECK_FUNCS([localtime_r gmtime_r])
AC_CHECK_FUNCS([snprintf _vsnprintf _vsnwprintf strerror_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]) AC_CHECK_FUNCS([isatty mmap munmap])
save_LIBS="$LIBS" save_LIBS="$LIBS"

View File

@ -60,6 +60,9 @@
/* dyncall library is available */ /* dyncall library is available */
#undef HAVE_DYNCALL_LIB #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 <errno.h> header file. */ /* Define to 1 if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H #undef HAVE_ERRNO_H
@ -141,6 +144,9 @@
/* Define to 1 if you have the <net/if_dl.h> header file. */ /* Define to 1 if you have the <net/if_dl.h> header file. */
#undef HAVE_NET_IF_DL_H #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 <poll.h> header file. */ /* Define to 1 if you have the <poll.h> header file. */
#undef HAVE_POLL_H #undef HAVE_POLL_H