| | 11665 | |
|---|
| | 11666 | |
|---|
| | 11667 | { echo "$as_me:$LINENO: checking for event_init in -levent" >&5 |
|---|
| | 11668 | echo $ECHO_N "checking for event_init in -levent... $ECHO_C" >&6; } |
|---|
| | 11669 | if test "${ac_cv_lib_event_event_init+set}" = set; then |
|---|
| | 11670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 11671 | else |
|---|
| | 11672 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 11673 | LIBS="-levent $LIBS" |
|---|
| | 11674 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 11675 | /* confdefs.h. */ |
|---|
| | 11676 | _ACEOF |
|---|
| | 11677 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 11678 | cat >>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 |
|---|
| | 11685 | extern "C" |
|---|
| | 11686 | #endif |
|---|
| | 11687 | char event_init (); |
|---|
| | 11688 | int |
|---|
| | 11689 | main () |
|---|
| | 11690 | { |
|---|
| | 11691 | return event_init (); |
|---|
| | 11692 | ; |
|---|
| | 11693 | return 0; |
|---|
| | 11694 | } |
|---|
| | 11695 | _ACEOF |
|---|
| | 11696 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 11697 | if { (ac_try="$ac_link" |
|---|
| | 11698 | case "(($ac_try" in |
|---|
| | 11699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 11700 | *) ac_try_echo=$ac_try;; |
|---|
| | 11701 | esac |
|---|
| | 11702 | eval "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 |
|---|
| | 11715 | else |
|---|
| | 11716 | echo "$as_me: failed program was:" >&5 |
|---|
| | 11717 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 11718 | |
|---|
| | 11719 | ac_cv_lib_event_event_init=no |
|---|
| | 11720 | fi |
|---|
| | 11721 | |
|---|
| | 11722 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| | 11723 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 11724 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 11725 | fi |
|---|
| | 11726 | { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_init" >&5 |
|---|
| | 11727 | echo "${ECHO_T}$ac_cv_lib_event_event_init" >&6; } |
|---|
| | 11728 | if 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 | |
|---|
| | 11735 | fi |
|---|