Changeset 453

Show
Ignore:
Timestamp:
11/08/06 11:46:25 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r452 r453  
     12006-11-08  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * configure.in: Added a new --disable-epoll parameter. By default, 
     4        when it's cross compiling, it'll assume that epoll() works without 
     5        testing it (it cannot execute a test program to check it out), so 
     6        if your system doesn't support it, use the new --disable-epoll 
     7        flag. 
     8         
     9        * configure.in: A few changes to make it work in cross compiling 
     10        environments.  
     11 
    1122006-11-03  A.D.F  <adefacc@tin.it> 
    213 
  • cherokee/trunk/configure.in

    r447 r453  
    273273AC_CHECK_HEADER(sys/epoll.h, have_epoll_include=yes, have_epoll_include=no) 
    274274 
     275AC_ARG_ENABLE(epoll, AC_HELP_STRING([--disable-epoll],[Disable epoll() support]), 
     276                    wants_epoll="$enableval", wants_epoll="yes") 
     277 
    275278have_epoll=no 
    276 if test "x$have_epoll_include" = "xyes"; then 
     279if test "x$have_epoll_include" = "xyes" && test "x$wants_epoll" == "xyes"; then 
    277280        AC_MSG_CHECKING(for epoll system call) 
    278281 
    279      AC_TRY_RUN([ 
     282     AC_RUN_IFELSE([ 
    280283                #include <stdint.h> 
    281284                #include <sys/param.h> 
     
    294297                   exit (epfd == -1 ? 1 : 0); 
    295298                } 
    296         ], have_epoll=yes) 
     299        ],  
     300        have_epoll=yes, 
     301        have_epoll=no, 
     302        have_epoll=yes) 
    297303        AC_MSG_RESULT($have_epoll) 
    298304fi 
     
    307313        AC_MSG_CHECKING(for event ports support) 
    308314 
    309      AC_TRY_RUN([ 
     315     AC_RUN_IFELSE([ 
    310316                #include <stdint.h> 
    311317                #include <unistd.h> 
     
    317323                   exit (port < 0 ? 1 : 0); 
    318324                } 
    319         ], have_port=yes) 
     325        ],  
     326        have_port=yes, 
     327        have_port=no, 
     328        have_port=cross) 
    320329        AC_MSG_RESULT($have_port) 
    321330fi 
     
    623632# Is sendfile broken? 
    624633AC_MSG_CHECKING(if sendfile works) 
    625 AC_TRY_RUN([#include <errno.h> 
     634AC_RUN_IFELSE([#include <errno.h> 
    626635            int main() { 
    627636               int o = 0; 
     
    631640            AC_MSG_RESULT(yes),  
    632641            [ AC_MSG_RESULT(no)  
    633               AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile]) ]) 
     642              AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile])], 
     643                  AC_MSG_RESULT(cross, assuming: yes)) 
    634644 
    635645# readdir_r()