PennMUSH Community
Show
Ignore:
Timestamp:
02/19/08 20:12:59 (10 months ago)
Author:
shawnw
Message:

ssl: Added checks for libevent to configure

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/ssl_slave/config.h.in

    r1167 r1222  
    7272 
    7373#undef HAVE_SYS_SELECT_H 
     74 
     75#undef HAVE_EVENT_H 
    7476 
    7577/* C99ish headers. The first two are really really nice to have. */ 
  • 1.8.3/branches/ssl_slave/configure

    r1167 r1222  
    73087308 
    73097309 
    7310 for ac_header in poll.h sys/epoll.h sys/select.h 
     7310 
     7311for ac_header in poll.h sys/epoll.h sys/select.h event.h 
    73117312do 
    73127313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 
     
    1166211663fi 
    1166311664 
     11665 
     11666 
     11667{ echo "$as_me:$LINENO: checking for event_init in -levent" >&5 
     11668echo $ECHO_N "checking for event_init in -levent... $ECHO_C" >&6; } 
     11669if test "${ac_cv_lib_event_event_init+set}" = set; then 
     11670  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11671else 
     11672  ac_check_lib_save_LIBS=$LIBS 
     11673LIBS="-levent  $LIBS" 
     11674cat >conftest.$ac_ext <<_ACEOF 
     11675/* confdefs.h.  */ 
     11676_ACEOF 
     11677cat confdefs.h >>conftest.$ac_ext 
     11678cat >>conftest.$ac_ext <<_ACEOF 
     11679/* end confdefs.h.  */ 
     11680 
     11681/* Override any GCC internal prototype to avoid an error. 
     11682   Use char because int might match the return type of a GCC 
     11683   builtin and then its argument prototype would still apply.  */ 
     11684#ifdef __cplusplus 
     11685extern "C" 
     11686#endif 
     11687char event_init (); 
     11688int 
     11689main () 
     11690{ 
     11691return event_init (); 
     11692  ; 
     11693  return 0; 
     11694} 
     11695_ACEOF 
     11696rm -f conftest.$ac_objext conftest$ac_exeext 
     11697if { (ac_try="$ac_link" 
     11698case "(($ac_try" in 
     11699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11700  *) ac_try_echo=$ac_try;; 
     11701esac 
     11702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     11703  (eval "$ac_link") 2>conftest.er1 
     11704  ac_status=$? 
     11705  grep -v '^ *+' conftest.er1 >conftest.err 
     11706  rm -f conftest.er1 
     11707  cat conftest.err >&5 
     11708  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     11709  (exit $ac_status); } && { 
     11710     test -z "$ac_c_werror_flag" || 
     11711     test ! -s conftest.err 
     11712       } && test -s conftest$ac_exeext && 
     11713       $as_test_x conftest$ac_exeext; then 
     11714  ac_cv_lib_event_event_init=yes 
     11715else 
     11716  echo "$as_me: failed program was:" >&5 
     11717sed 's/^/| /' conftest.$ac_ext >&5 
     11718 
     11719    ac_cv_lib_event_event_init=no 
     11720fi 
     11721 
     11722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     11723      conftest$ac_exeext conftest.$ac_ext 
     11724LIBS=$ac_check_lib_save_LIBS 
     11725fi 
     11726{ echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_init" >&5 
     11727echo "${ECHO_T}$ac_cv_lib_event_event_init" >&6; } 
     11728if test $ac_cv_lib_event_event_init = yes; then 
     11729  cat >>confdefs.h <<_ACEOF 
     11730#define HAVE_LIBEVENT 1 
     11731_ACEOF 
     11732 
     11733  LIBS="-levent $LIBS" 
     11734 
     11735fi 
    1166411736 
    1166511737 
  • 1.8.3/branches/ssl_slave/configure.in

    r1167 r1222  
    106106AC_CHECK_HEADER(sys/types.h, [AC_DEFINE(I_SYS_TYPES)]) 
    107107AC_CHECK_HEADERS([sys/un.h ieeefp.h sys/resource.h sys/event.h sys/uio.h]) 
    108 AC_CHECK_HEADERS([poll.h sys/epoll.h sys/select.h]) 
     108AC_CHECK_HEADERS([poll.h sys/epoll.h sys/select.h event.h]) 
    109109### C language support 
    110110# Only need to check C99 and GNU extensions 
     
    145145AC_CHECK_LIB(crypt, crypt) 
    146146LIB_SOCKET_NSL 
     147AC_CHECK_LIB(event, event_init) 
    147148 
    148149# with_ssl=set