X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=configure.ac;h=d6522e1ca29d3a137e8325d9a728875f1b5f1ce0;hb=dd213e78a5e4f6b69cacb3e8fe1fb536795081da;hp=09c3ada2ca367ab76f34f0206db1845063099b68;hpb=d1112e33f9cd36560650f28a77d8d0b9716a1cea;p=NextIRCd.git diff --git a/configure.ac b/configure.ac index 09c3ada..d6522e1 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ CFLAGS="$CFLAGS -D_GNU_SOURCE" AC_FUNC_MALLOC AC_CHECK_FUNCS([usleep select socket inet_pton inet_ntop]) -AC_CHECK_HEADERS([fcntl.h sys/socket.h sys/select.h sys/time.h sys/types.h unistd.h windows.h winsock2.h errno.h sys/epoll.h sys/event.h ares.h]) +AC_CHECK_HEADERS([fcntl.h sys/socket.h sys/select.h sys/time.h sys/types.h unistd.h windows.h winsock2.h errno.h sys/epoll.h sys/event.h]) AC_CHECK_LIB(ws2_32, main, [ LIBS="$LIBS -lws2_32" ], []) AC_CHECK_LIB(ssl, SSL_read, [ @@ -48,6 +48,11 @@ AC_CHECK_LIB(pthread, pthread_create, [ LIBS="$LIBS -lpthread" ]) ]) +AC_CHECK_LIB(cares, ares_init, [ + AC_CHECK_HEADERS(ares.h, [ + LIBS="$LIBS -lcares" + ]) +]) -AC_CONFIG_FILES([Makefile src/Makefile src/IOHandler/Makefile src/IOHandler++/Makefile src/IOHandler_test/Makefile src/IOHandler_test/socket/Makefile src/IOHandler_test/socket++/Makefile src/IOHandler_test/timer/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile src/IOHandler/Makefile src/IOHandler++/Makefile src/IOHandler_test/Makefile src/IOHandler_test/socket/Makefile src/IOHandler_test/socket++/Makefile src/IOHandler_test/timer/Makefile src/IOHandler_test/resolv/Makefile]) AC_OUTPUT