summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-04 14:59:58 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-04 15:09:42 +0100
commit45648f02e06684b98fbb8a540f51908b1ca9e9d9 (patch)
tree901209dcafd92774a5901665410f2bb809dd898a /m4
parent5679d82aab5a0bc8f23fff1037992531df5d1a15 (diff)
downloadgnutls-45648f02e06684b98fbb8a540f51908b1ca9e9d9.tar.gz
use asn1_decode_simple_ber if available
Diffstat (limited to 'm4')
-rw-r--r--m4/hooks.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4
index 48c7ba5a85..318dfa2610 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -120,6 +120,13 @@ AC_MSG_ERROR([[
GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
fi
+ oldlibs="$LIBS"
+ LIBS="$LIBS $LIBTASN1_LIBS"
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS $LIBTASN1_CFLAGS"
+ AC_CHECK_FUNC(asn1_decode_simple_ber,
+ [AC_DEFINE(HAVE_ASN1_DECODE_SIMPLE_BER, 1, [Have this function])], [])
+
AC_MSG_CHECKING([whether C99 macros are supported])
AC_TRY_COMPILE(,
[