aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-24 15:02:10 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-24 15:02:10 +0000
commit9826ad54e0de815ca9a2b071717dc8aed1ce1a5c (patch)
tree72da2ca91f3bd6ae8ed23d8614db888a3510cd16 /configure.ac
parentdfbda8ae1ee98455a488de3a78ae4fd198e57cd4 (diff)
downloadlibmicrohttpd-9826ad54e0de815ca9a2b071717dc8aed1ce1a5c.tar.gz
libmicrohttpd-9826ad54e0de815ca9a2b071717dc8aed1ce1a5c.zip
Refactoring: do not define EPOLL_SUPPORT if epoll is disabled or not supported.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 0285bb4f..3c528754 100644
--- a/configure.ac
+++ b/configure.ac
@@ -529,10 +529,9 @@ AC_ARG_ENABLE([[epoll]],
529if test "$enable_epoll" != "no"; then 529if test "$enable_epoll" != "no"; then
530 AX_HAVE_EPOLL 530 AX_HAVE_EPOLL
531 if test "${ax_cv_have_epoll}" = "yes"; then 531 if test "${ax_cv_have_epoll}" = "yes"; then
532 AC_DEFINE([EPOLL_SUPPORT],[1],[define to 1 to enable epoll support]) 532 AC_DEFINE([[EPOLL_SUPPORT]],[[1]],[Define to 1 to enable epoll support])
533 enable_epoll='yes' 533 enable_epoll='yes'
534 else 534 else
535 AC_DEFINE([EPOLL_SUPPORT],[0],[define to 0 to disable epoll support])
536 if test "$enable_epoll" = "yes"; then 535 if test "$enable_epoll" = "yes"; then
537 AC_MSG_ERROR([[Support for epoll was explicitly requested but cannot be enabled on this platform.]]) 536 AC_MSG_ERROR([[Support for epoll was explicitly requested but cannot be enabled on this platform.]])
538 fi 537 fi