1 | dnl this file is part of libev, do not make local modifications |
1 | dnl this file is part of libev, do not make local modifications |
2 | dnl http://software.schmorp.de/pkg/libev |
2 | dnl http://software.schmorp.de/pkg/libev |
3 | |
3 | |
4 | dnl libev support |
4 | dnl libev support |
5 | AC_CHECK_HEADERS(sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h) |
5 | AC_CHECK_HEADERS(sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h) |
6 | |
6 | |
7 | AC_CHECK_FUNCS(epoll_ctl kqueue port_create poll select) |
7 | AC_CHECK_FUNCS(inotify_init epoll_ctl kqueue port_create poll select) |
8 | |
8 | |
9 | AC_CHECK_FUNC(clock_gettime, [], [ |
9 | AC_CHECK_FUNC(clock_gettime, [], [ |
10 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
10 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
11 | AC_CHECK_LIB(rt, clock_gettime) |
11 | AC_CHECK_LIB(rt, clock_gettime) |
|
|
12 | unset ac_cv_func_clock_gettime |
12 | AC_CHECK_FUNCS(clock_gettime) |
13 | AC_CHECK_FUNCS(clock_gettime) |
13 | fi |
14 | fi |
14 | ]) |
15 | ]) |
15 | |
16 | |
16 | AC_CHECK_LIB(m, ceil) |
17 | AC_CHECK_LIB(m, ceil) |