]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added configure test to see if -lepoll is available when using --enable-epoll:
authorserassio <>
Tue, 8 Feb 2005 05:30:15 +0000 (05:30 +0000)
committerserassio <>
Tue, 8 Feb 2005 05:30:15 +0000 (05:30 +0000)
-lepoll is not needed (and may be not present) on kernel 2.6 platforms
with newest glibc, but may be needed on systems updated from 2.4 to 2.6
kernel still using old glibc.

configure.in

index f54a83e5dfd149a0a094a35c405411e4730e092d..ca5d4043d98f83e451e7d5b2f1a4554b8c3091f1 100644 (file)
@@ -3,7 +3,7 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.369 2005/02/07 22:17:54 serassio Exp $
+dnl  $Id: configure.in,v 1.370 2005/02/07 22:30:15 serassio Exp $
 dnl
 dnl
 dnl
@@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src/main.cc])
 AC_CONFIG_AUX_DIR(cfgaux)
 AM_INIT_AUTOMAKE(squid, 3.0-PRE3-CVS)
 AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.369 $)dnl
+AC_REVISION($Revision: 1.370 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AM_MAINTAINER_MODE
 
@@ -994,10 +994,6 @@ AC_ARG_ENABLE(epoll,
   yes)
     echo "Forcing epoll() to be enabled"
     ac_cv_func_epoll='yes'
-        if test -z "$EPOLL_LIBS"; then
-                EPOLL_LIBS="-lepoll"
-        fi
-        AC_SUBST(EPOLL_LIBS)
     ;;
   no)
     echo "Forcing epoll() to be disabled"
@@ -2184,6 +2180,8 @@ if test "$ac_cv_func_kqueue" = "yes" ; then
 elif test "$ac_cv_func_epoll" = "yes" ; then
        SELECT_TYPE="epoll"
        AC_DEFINE(USE_EPOLL,1,[Use epoll() for the IO loop])
+       AC_CHECK_LIB(epoll, epoll_create, [EPOLL_LIBS="-lepoll"])
+       AC_SUBST(EPOLL_LIBS)
 elif test "$ac_cv_func_poll" = "yes" ; then
         SELECT_TYPE="poll"
         AC_DEFINE(USE_POLL,1,[Use poll() for the IO loop])