… | |
… | |
5324 | |
5324 | |
5325 | |
5325 | |
5326 | |
5326 | |
5327 | |
5327 | |
5328 | |
5328 | |
|
|
5329 | |
5329 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h |
5330 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
5330 | do |
5331 | do |
5331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5333 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5334 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
5471 | |
5472 | |
5472 | |
5473 | |
5473 | |
5474 | |
5474 | |
5475 | |
5475 | |
5476 | |
|
|
5477 | |
5476 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd |
5478 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
5477 | do |
5479 | do |
5478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5480 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5479 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5481 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5482 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5481 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5483 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5650 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5652 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5651 | if test $ac_cv_func_clock_gettime = yes; then |
5653 | if test $ac_cv_func_clock_gettime = yes; then |
5652 | : |
5654 | : |
5653 | else |
5655 | else |
5654 | |
5656 | |
5655 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5657 | if test $(uname) = Linux; then |
|
|
5658 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5659 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5660 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5661 | /* confdefs.h. */ |
|
|
5662 | _ACEOF |
|
|
5663 | cat confdefs.h >>conftest.$ac_ext |
|
|
5664 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5665 | /* end confdefs.h. */ |
|
|
5666 | #include <syscall.h> |
|
|
5667 | #include <time.h> |
|
|
5668 | int |
|
|
5669 | main () |
|
|
5670 | { |
|
|
5671 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5672 | ; |
|
|
5673 | return 0; |
|
|
5674 | } |
|
|
5675 | _ACEOF |
|
|
5676 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5677 | if { (ac_try="$ac_link" |
|
|
5678 | case "(($ac_try" in |
|
|
5679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5680 | *) ac_try_echo=$ac_try;; |
|
|
5681 | esac |
|
|
5682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5683 | (eval "$ac_link") 2>conftest.er1 |
|
|
5684 | ac_status=$? |
|
|
5685 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5686 | rm -f conftest.er1 |
|
|
5687 | cat conftest.err >&5 |
|
|
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5689 | (exit $ac_status); } && { |
|
|
5690 | test -z "$ac_cxx_werror_flag" || |
|
|
5691 | test ! -s conftest.err |
|
|
5692 | } && test -s conftest$ac_exeext && |
|
|
5693 | $as_test_x conftest$ac_exeext; then |
|
|
5694 | ac_have_clock_syscall=1 |
|
|
5695 | |
|
|
5696 | cat >>confdefs.h <<\_ACEOF |
|
|
5697 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5698 | _ACEOF |
|
|
5699 | |
|
|
5700 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5701 | echo "${ECHO_T}yes" >&6; } |
|
|
5702 | else |
|
|
5703 | echo "$as_me: failed program was:" >&5 |
|
|
5704 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5705 | |
|
|
5706 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5707 | echo "${ECHO_T}no" >&6; } |
|
|
5708 | fi |
|
|
5709 | |
|
|
5710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5711 | conftest$ac_exeext conftest.$ac_ext |
|
|
5712 | fi |
|
|
5713 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
5656 | |
5714 | |
5657 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5715 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5658 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5716 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5659 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5717 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
6149 | _ACEOF |
6207 | _ACEOF |
6150 | |
6208 | |
6151 | LIBS="-lm $LIBS" |
6209 | LIBS="-lm $LIBS" |
6152 | |
6210 | |
6153 | fi |
6211 | fi |
6154 | |
|
|
6155 | |
|
|
6156 | |
6212 | |
6157 | |
6213 | |
6158 | |
6214 | |
6159 | |
6215 | |
6160 | |
6216 | |