| Date: 2009-06-30 14:26 |
| Sender: bortz |
| |
| The patch by ametzler seems indeed to work (thanks to him). I've committed |
| it (r426) and will make a new release soon. |
| |
| http://sourceforge.net/tracker/index.php?func=detail&aid=2811861&group_id=4581&atid=104581 |
| |
| |
| --- trunk/SRC/configure.ac 2009/06/30 14:18:15 425 |
| +++ trunk/SRC/configure.ac 2009/06/30 14:19:07 426 |
| @@ -92,14 +92,21 @@ |
| AC_ARG_WITH(gnutls, |
| [ --with-gnutls[=DIR] SSL/TLS crypt support (needs GNU TLS), the argument DIR should not be necessary],dnl |
| [if test "$withval" != "no"; then |
| - AC_DEFINE(GNUTLS,,[Crypto (TLS) support]) |
| - GNUTLS=1 |
| - CPPFLAGS="${CPPFLAGS} `libgnutls-config --cflags`" |
| - LDFLAGS="${LDFLAGS} `libgnutls-config --libs`" |
| - if test "$withval" != "yes"; then |
| - GNUTLSROOT=$withval |
| - LDFLAGS="${LDFLAGS} -L$GNUTLSROOT/lib" |
| - CPPFLAGS="${CPPFLAGS} -I$GNUTLSROOT/include" |
| + if test "$withval" = "yes"; then |
| + PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.0.0], |
| + [ |
| + echo "GnuTLS found" |
| + AC_DEFINE(GNUTLS,,[Crypto (TLS) support]) |
| + GNUTLS=1 |
| + CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS" |
| + LIBS="$LIBS $LIBGNUTLS_LIBS" |
| + ],) |
| + else |
| + AC_DEFINE(GNUTLS,,[Crypto (TLS) support]) |
| + GNUTLS=1 |
| + GNUTLSROOT=$withval |
| + LDFLAGS="${LDFLAGS} -L$GNUTLSROOT/lib -lgnutls" |
| + CPPFLAGS="${CPPFLAGS} -I$GNUTLSROOT/include" |
| fi |
| fi], |
| dnl Default: disable it |