projects
/
NextIRCd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IOMultiplexerV2] added GnuTLS support
[NextIRCd.git]
/
src
/
IOHandler
/
IOHandler_config.h
diff --git
a/src/IOHandler/IOHandler_config.h
b/src/IOHandler/IOHandler_config.h
index 7e83d8c295d08335bf8916acec3720f5bd4ab2ca..4053a2aeec2a5ea9dbc7858648abe63817032bb9 100644
(file)
--- a/
src/IOHandler/IOHandler_config.h
+++ b/
src/IOHandler/IOHandler_config.h
@@
-21,13
+21,22
@@
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_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, [
-
AC_CHECK_LIB(crypto, X509_new
, [
-
AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h openssl/rand
.h, [
-
LIBS="$LIBS -lssl -lcrypto
"
- ])
+ 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"
+ ])
+ ])
+ ])
+ fi
AC_CHECK_LIB(pthread, pthread_create, [
AC_CHECK_HEADERS(pthread.h, [
LIBS="$LIBS -lpthread"
AC_CHECK_LIB(pthread, pthread_create, [
AC_CHECK_HEADERS(pthread.h, [
LIBS="$LIBS -lpthread"