diff options
Diffstat (limited to 'packages/libetpan/libetpan-0.36/etpan_configure.patch')
-rw-r--r-- | packages/libetpan/libetpan-0.36/etpan_configure.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/packages/libetpan/libetpan-0.36/etpan_configure.patch b/packages/libetpan/libetpan-0.36/etpan_configure.patch index e69de29bb2..3572339010 100644 --- a/packages/libetpan/libetpan-0.36/etpan_configure.patch +++ b/packages/libetpan/libetpan-0.36/etpan_configure.patch @@ -0,0 +1,55 @@ + +# +# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher +# + +--- libetpan/configure.in~etpan_configure 2005-03-10 10:11:29.000000000 +0100 ++++ libetpan/configure.in 2005-03-11 13:57:00.232491234 +0100 +@@ -76,6 +76,38 @@ + esac + fi + ++dnl GNUTLS ++AC_ARG_WITH(gnutls, [ --with-gnutls[=DIR] include GnuTLS support (default=no)], ++ [], [with_gnutls=no]) ++if test "x$with_gnutls" != "xno"; then ++ OCPPFLAGS="$CPPFLAGS" ++ OLDFLAGS="$LDFLAGS" ++ if test "x$with_gnutls" != "xyes" ; then ++ CPPFLAGS="CRPPFLAGS -I$with_gnutls/include" ++ LDFLAGS="$LDFLAGS -L$with_gnutls/lib" ++ fi ++ GNUTLSLIBS="" ++ AC_CHECK_HEADER(gnutls/gnutls.h, [ ++ AC_CHECK_LIB(gnutls, gnutls_global_deinit, with_gnutls=yes,[GNUTLSLIBS="-lgnutls -lgnutls-openssl"]) ++ ]) ++ if test "x$with_gnutls" != "xyes"; then ++ CPPFLAGS="$OCPPFLAGS" ++ LDFLAGS="$OLDFLAGS" ++ else ++ with_openssl="no" ++ fi ++fi ++ ++if test "x$with_gnutls" = "xyes"; then ++ AC_DEFINE([USE_GNUTLS],1, [Define to use GnuTLS]) ++ AC_DEFINE([USE_SSL], 1, [Define to use OpenSSL]) ++ GNUTLSLIBS="-lgnutls -lgnutls-openssl" ++else ++ AC_MSG_WARN([GnuTLS support disabled.]) ++ GNUTLSLIBS="" ++fi ++AC_SUBST(GNUTLSLIBS) ++ + dnl OpenSSL -- very primitive right now + AC_ARG_WITH(openssl, [ --with-openssl[=DIR] include OpenSSL support (default=auto)], + [], [with_openssl=yes]) +@@ -336,7 +368,7 @@ + REENTRANT=1 + else + REENTRANT=0 +- LIBSUFFIX=-no-mt ++ LIBSUFFIX= + fi + AC_SUBST(LIBSUFFIX) + AC_SUBST(REENTRANT) |