X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.in;h=47c7929401c409f8d9308cfee042e7bef5a3b4bb;hb=fd69bf5b6c8f12583489115ae1b06a3d0a2f56dd;hp=5d7d475f16befcc240afc953c9a8775677566d23;hpb=0ea05ad5f28052268be08b324a1e09c907fc88c6;p=openldap diff --git a/configure.in b/configure.in index 5d7d475f16..47c7929401 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl $OpenLDAP$ dnl This work is part of OpenLDAP Software . dnl -dnl Copyright 1998-2012 The OpenLDAP Foundation. +dnl Copyright 1998-2015 The OpenLDAP Foundation. dnl All rights reserved. dnl dnl Redistribution and use in source and binary forms, with or without @@ -23,7 +23,7 @@ define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])dnl dnl ================================================================ dnl Configure.in for OpenLDAP -AC_COPYRIGHT([[Copyright 1998-2012 The OpenLDAP Foundation. All rights reserved. +AC_COPYRIGHT([[Copyright 1998-2015 The OpenLDAP Foundation. All rights reserved. Restrictions apply, see COPYRIGHT and LICENSE files.]]) AC_REVISION([$Id$]) AC_INIT([OpenLDAP],,[http://www.openldap.org/its/]) @@ -98,7 +98,7 @@ AH_TOP([ /* begin of portable.h.pre */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2012 The OpenLDAP Foundation + * Copyright 1998-2015 The OpenLDAP Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -1207,6 +1207,13 @@ if test $ol_link_tls = no ; then AC_CHECK_HEADERS(gnutls/gnutls.h) if test $ac_cv_header_gnutls_gnutls_h = yes ; then + AC_PREPROC_IFELSE( + [[#include ] +[#if GNUTLS_VERSION_NUMBER < 0x020c00] +[#error "GnuTLS 2.12.0 or newer required"] +[#endif]], + , [AC_MSG_FAILURE([GnuTLS is too old])]) + AC_CHECK_LIB(gnutls, gnutls_init, [have_gnutls=yes], [have_gnutls=no]) @@ -1242,7 +1249,9 @@ if test $ol_link_tls = no ; then [define if you have MozNSS]) TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4" else + if test $ol_with_tls = moznss ; then AC_MSG_ERROR([MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)]) + fi fi fi fi @@ -1970,7 +1979,7 @@ if test $ol_enable_sql != no ; then ]) sql_LIBS="$LIBS" - LIBS="$LTHREAD_LIBS" + LIBS="$LTHREAD_LIBS $LIBS" if test $ol_with_odbc = auto ; then ol_with_odbc="iodbc unixodbc odbc32" @@ -3220,7 +3229,7 @@ rm -f $BACKENDSC cat > $BACKENDSC << ENDX /* This work is part of OpenLDAP Software . * - * Copyright 1998-2012 The OpenLDAP Foundation. + * Copyright 1998-2015 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -3271,7 +3280,7 @@ rm -f $OVERLAYSC cat > $OVERLAYSC << ENDX /* This work is part of OpenLDAP Software . * - * Copyright 1998-2012 The OpenLDAP Foundation. + * Copyright 1998-2015 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without