summaryrefslogtreecommitdiff
blob: 0700c84b06d834fd091ec2cae5d508d3d921b842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -ru nufw-2.2.21~/configure.ac nufw-2.2.21/configure.ac
--- nufw-2.2.21~/configure.ac	2009-08-02 19:39:52.000000000 +0200
+++ nufw-2.2.21/configure.ac	2009-08-02 19:42:38.000000000 +0200
@@ -87,6 +87,7 @@
 #AM_CHECK_PATH([libgcrypt], [gcry_md_open],AC_DEFINE([HAVE_LIBRARY_GCRYPT],[1],[Gcrypt lib flag]), check_gcrypt=no,[-L/usr/local/lib])
 #AM_CHECK_PATH(libgnutls], [gnutls_init],AC_DEFINE([HAVE_LIBRARY_GNUTLS],[1],[Gnutls lib flag]), check_gnutls=no)
 
+PKG_PROG_PKG_CONFIG
 
 NEED_LIBGCRYPT_VERSION=1.2.0
 AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_VERSION")
@@ -99,11 +100,7 @@
 fi
 
 NEED_LIBGNUTLS_VERSION=1.0.16
-AM_PATH_LIBGNUTLS("$NEED_LIBGNUTLS_VERSION")
-if test "x$LIBGNUTLS_LIBS" = "x"; then
-  AC_MSG_ERROR([libgnutls is needed.
-                See www.gnu.org/software/gnutls/ .])
-fi
+PKG_CHECK_MODULES(GNUTLS, gnutls >= $NEED_LIBGNUTLS_VERSION,,exit)
 
 #Configure database support, depending on user input
 AC_ARG_WITH(prelude-log,