2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Added configure option to enable/disable epoll support.
	* configure.ac
pull/1/head
Tatsuhiro Tsujikawa 2008-06-20 12:04:49 +00:00
parent 2f99cf6b86
commit 5c28bb3beb
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added configure option to enable/disable epoll support.
* configure.ac
2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated man page.

10
configure vendored
View File

@ -1414,6 +1414,7 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-bittorrent enable BitTorrent support. Default: yes
--enable-metalink enable Metalink support. Default: yes
--enable-epoll enable epoll support. Default: yes
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--disable-xmltest Do not try to compile and run a test LIBXML program
@ -2740,6 +2741,13 @@ else
enable_metalink=yes
fi
# Check whether --enable-epoll was given.
if test "${enable_epoll+set}" = set; then
enableval=$enable_epoll; enable_epoll=$enableval
else
enable_epoll=yes
fi
# Checks for programs.
ac_ext=cpp
@ -20000,6 +20008,7 @@ fi
done
if test "x$enable_epoll" = "xyes"; then
for ac_func in epoll_create
do
@ -20094,6 +20103,7 @@ _ACEOF
fi
done
fi
for ac_func in asctime_r

View File

@ -33,6 +33,7 @@ AC_ARG_WITH([libcares], [ --with-libcares use c-ares library if inst
AC_ARG_ENABLE([bittorrent], [ --enable-bittorrent enable BitTorrent support. Default: yes], [enable_bittorrent=$enableval], [enable_bittorrent=yes])
AC_ARG_ENABLE([metalink], [ --enable-metalink enable Metalink support. Default: yes], [enable_metalink=$enableval], [enable_metalink=yes])
AC_ARG_ENABLE([epoll], [ --enable-epoll enable epoll support. Default: yes], [enable_epoll=$enableval], [enable_epoll=yes])
# Checks for programs.
AC_PROG_CXX
@ -183,7 +184,9 @@ AC_FUNC_STRFTIME
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify atexit daemon ftruncate getcwd gethostbyaddr gethostbyname getpagesize inet_ntoa memchr memmove mempcpy memset mkdir munmap nl_langinfo posix_memalign putenv rmdir select setlocale sleep socket stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull tzset unsetenv usleep])
AC_CHECK_FUNCS([epoll_create])
if test "x$enable_epoll" = "xyes"; then
AC_CHECK_FUNCS([epoll_create])
fi
AC_CHECK_FUNCS([asctime_r],
[AM_CONDITIONAL([HAVE_ASCTIME_R], true)],