X-Git-Url: http://git.pk910.de/?p=NextIRCd.git;a=blobdiff_plain;f=configure.ac;h=aa5b500c48416c132aef6208d20914ec46576a36;hp=4275959d2caf16b73054236bb343d5bfcd31e588;hb=e17a8a5dc929df2a5ae6169f1955fcde7c70e04b;hpb=acc7f60740ab12e2410fd3187fcb9a27995c0638 diff --git a/configure.ac b/configure.ac index 4275959..aa5b500 100644 --- a/configure.ac +++ b/configure.ac @@ -36,22 +36,14 @@ 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]) AC_CHECK_LIB(ws2_32, main, [ LIBS="$LIBS -lws2_32" ], []) -have_gnutls="no" -AC_CHECK_LIB(gnutls, gnutls_init, [ - AC_CHECK_HEADERS(gnutls/gnutls.h, [ - LIBS="$LIBS -lgnutls" - have_gnutls="yes" - ]) -]) -if test x"$have_gnutls" = xno; then - AC_CHECK_LIB(ssl, SSL_read, [ - AC_CHECK_LIB(crypto, X509_new, [ - AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h openssl/rand.h, [ - LIBS="$LIBS -lssl -lcrypto" - ]) + +AC_CHECK_LIB(ssl, SSL_read, [ + AC_CHECK_LIB(crypto, X509_new, [ + AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h openssl/rand.h, [ + LIBS="$LIBS -lssl -lcrypto" ]) ]) -fi +]) AC_CHECK_LIB(pthread, pthread_create, [ AC_CHECK_HEADERS(pthread.h, [ LIBS="$LIBS -lpthread"