Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use GNUTLS_CFLAGS when testing GnuTLS features too
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Mar 6, 2013
1 parent 0a00a44 commit 6bdf166
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -250,6 +250,8 @@ fi
if test "$with_gnutls" = "yes"; then
oldlibs="$LIBS"
LIBS="$LIBS $GNUTLS_LIBS"
oldcflags="$CFLAGS"
CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
AC_CHECK_FUNC(gnutls_dtls_set_data_mtu,
[AC_DEFINE(HAVE_GNUTLS_DTLS_SET_DATA_MTU, 1)], [])
AC_CHECK_FUNC(gnutls_certificate_set_x509_system_trust,
Expand Down Expand Up @@ -337,6 +339,7 @@ if test "$with_gnutls" = "yes"; then
AC_DEFINE(HAVE_TROUSERS, 1)],
[AC_MSG_RESULT(no)])
LIBS="$oldlibs"
CFLAGS="$oldcflags"
fi
if test "$with_openssl" = "yes" || test "$with_openssl" = "" || test "$ssl_library" = "both"; then
PKG_CHECK_MODULES(OPENSSL, openssl, [],
Expand Down

0 comments on commit 6bdf166

Please sign in to comment.