]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Use the pkg-config macro to find libtasn1.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 16 Sep 2012 19:20:04 +0000 (21:20 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 16 Sep 2012 19:20:04 +0000 (21:20 +0200)
lib/Makefile.am
m4/hooks.m4

index 8df6d9b4d86e97a1a9f7e2a70e24db541b2f50de..d0951d44d2dc6221c03012b3dcabcb19a76a6559 100644 (file)
@@ -37,6 +37,7 @@ AM_CPPFLAGS = \
        -I$(srcdir)/includes                    \
        -I$(builddir)/includes                  \
        -I$(srcdir)/x509                        \
+       $(LIBTASN1_CFLAGS)                      \
        $(P11_KIT_CFLAGS)
 
 if ENABLE_OPENPGP
@@ -142,7 +143,7 @@ endif
 if ENABLE_MINITASN1
 libgnutls_la_LIBADD += minitasn1/libminitasn1.la
 else
-libgnutls_la_LDFLAGS += $(LTLIBTASN1)
+libgnutls_la_LDFLAGS += $(LIBTASN1_LIBS)
 endif
 
 if ENABLE_NETTLE
index ed5cb2fe6d9d85430ac49cf561a0cbc90d5d66b4..b38c27e8ccfec0e5b1458bcbab7f19de9d3bb71f 100644 (file)
@@ -99,10 +99,8 @@ fi
       included_libtasn1=$withval,
       included_libtasn1=no)
   if test "$included_libtasn1" = "no"; then
-    AC_LIB_HAVE_LINKFLAGS(tasn1,, [#include <libtasn1.h>],
-                          [asn1_check_version (NULL)])
-    if test "$ac_cv_libtasn1" != yes; then
-      included_libtasn1=yes
+    PKG_CHECK_MODULES(LIBTASN1, [libtasn1 >= 2.14], [], [included_libtasn1=yes])
+    if test "$included_libtasn1" = yes; then
       AC_MSG_WARN([[
   *** 
   *** Libtasn1 was not found. Will use the included one.