summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-10-12 06:17:41 -0400
committerGlenn Morris <rgm@gnu.org>2013-10-12 06:17:41 -0400
commit18f19af2a797ac472dee3bd226fbd8c327f04fb6 (patch)
tree84ce6190280966a4985949db966fea6787a67199
parent713588454799718dd83b39bfd2a19329d123682c (diff)
Auto-commit of generated files.
-rw-r--r--autogen/config.in3
-rwxr-xr-xautogen/configure59
2 files changed, 62 insertions, 0 deletions
diff --git a/autogen/config.in b/autogen/config.in
index 930a7b4e3d..d57d157511 100644
--- a/autogen/config.in
+++ b/autogen/config.in
@@ -576,6 +576,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* Define if using GnuTLS. */
#undef HAVE_GNUTLS
+/* Define if using GnuTLS v3. */
+#undef HAVE_GNUTLS3
+
/* Define to 1 if you have the gpm library (-lgpm). */
#undef HAVE_GPM
diff --git a/autogen/configure b/autogen/configure
index d57fae081f..ef21aa8cab 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -12253,11 +12253,69 @@ fi
HAVE_GNUTLS=no
+HAVE_GNUTLS3=no
if test "${with_gnutls}" = "yes" ; then
succeeded=no
if test "$PKG_CONFIG" = "no" ; then
+ HAVE_GNUTLS3=no
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+ if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.0.0" >&5
+$as_echo_n "checking for gnutls >= 3.0.0... " >&6; }
+
+ if "$PKG_CONFIG" --exists "gnutls >= 3.0.0" 2>&5 &&
+ LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 3.0.0" 2>&5` &&
+ LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 3.0.0" 2>&5`; then
+ edit_cflags="
+ s,///*,/,g
+ s/^/ /
+ s/ -I/ $isystem/g
+ s/^ //
+ "
+ LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
+ LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
+$as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
+ succeeded=yes
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ LIBGNUTLS_CFLAGS=""
+ LIBGNUTLS_LIBS=""
+ ## If we have a custom action on failure, don't print errors, but
+ ## do set a variable so people can do so. Do it in a subshell
+ ## to capture any diagnostics in invoking pkg-config.
+ LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 3.0.0") 2>&1`
+
+ fi
+
+
+
+ else
+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ fi
+ fi
+
+ if test $succeeded = yes; then
+ HAVE_GNUTLS3=yes
+ else
+ HAVE_GNUTLS3=no
+ fi
+
+ if test "${HAVE_GNUTLS3}" = "yes"; then
+
+$as_echo "#define HAVE_GNUTLS3 1" >>confdefs.h
+
+ HAVE_GNUTLS="yes"
+ else
+
+ succeeded=no
+
+ if test "$PKG_CONFIG" = "no" ; then
HAVE_GNUTLS=no
else
PKG_CONFIG_MIN_VERSION=0.9.0
@@ -12305,6 +12363,7 @@ $as_echo "no" >&6; }
HAVE_GNUTLS=no
fi
+ fi
if test "${HAVE_GNUTLS}" = "yes"; then
$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h