X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=configure.ac;h=03b9f347ad9d63bc510d3f304a07ba0ecd1b173f;hp=6d2b5b7a20f778e9ae698c5eee525ef008650e98;hb=d4fb090b5d0d63b8fc2a8060c9869e8fa86dcbb8;hpb=1f41a1d415d2ab138050a96020ed39caa0c4e323 diff --git a/configure.ac b/configure.ac index 6d2b5b7..03b9f34 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl This file is part of the YAZ toolkit. dnl Copyright (C) 1995-2008 Index Data AC_PREREQ([2.60]) -AC_INIT([yaz],[3.0.29],[yaz-help@indexdata.dk]) +AC_INIT([yaz],[3.0.36],[yaz-help@indexdata.dk]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([1.9]) @@ -56,15 +56,16 @@ if test "$checkBoth" = "1"; then fi AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])]) dnl + dnl ------ OpenSSL AC_SUBST([SSL_CFLAGS]) AC_SUBST([SSL_LIBS]) -openssl=default +openssl=no +sslver=no AC_ARG_WITH([openssl], [ --with-openssl[=PREFIX] OpenSSL library in PREFIX], [openssl=$withval]) SSL_CFLAGS="" SSL_LIBPATH="" if test "$openssl" != "no"; then - sslver=no if test "$openssl" != "yes" -a "$openssl" != "default"; then if test -x $openssl/bin/pkg-config; then if $openssl/bin/pkg-config --exists openssl; then @@ -121,6 +122,40 @@ if test "$openssl" != "no"; then fi fi fi +dnl ------ GNU TLS +gnutls=default +AC_ARG_WITH([gnutls], [ --with-gnutls[=PREFIX] GNU TLS library in PREFIX], [gnutls=$withval]) +if test "$gnutls" != "no" -a "$sslver" = "no"; then + gnutlsver=no + if test "$gnutls" != "yes" -a "$gnutls" != "default"; then + if test -x $gnutls/bin/pkg-config; then + if $gnutls/bin/pkg-config --exists gnutls; then + SSL_CFLAGS=`$gnutls/bin/pkg-config --cflags gnutls` + SSL_LIBS="`$gnutls/bin/pkg-config --libs gnutls`" + gnutlsver=`$gnutls/bin/pkg-config --modversion gnutls` + fi + fi + else + if test "$pkgconfigpath" != "NONE"; then + if $pkgconfigpath --exists gnutls; then + SSL_CFLAGS=`$pkgconfigpath --cflags gnutls` + SSL_LIBS="`$pkgconfigpath --libs gnutls`" + gnutlsver=`$pkgconfigpath --modversion gnutls` + fi + fi + fi + AC_MSG_CHECKING([for GNU TLS]) + if test "$gnutlsver" != "no"; then + SSL_CFLAGS="-DHAVE_GNUTLS_H=1 $SSL_CFLAGS" + AC_MSG_RESULT([$gnutlsver]) + else + SSL_CFLAGS="" + AC_MSG_RESULT([None]) + if test "$gnutls" != "default"; then + AC_MSG_ERROR([GNU TLS development libraries missing]) + fi + fi +fi dnl dnl ------ GNU Readline READLINE_SHARED_LIBADD=""