Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use OPENSSL_CFLAGS when testing OpenSSL 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 7acf307 commit 96d9179
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -502,6 +502,8 @@ AC_CHECK_HEADER([if_tun.h],
if test "$ssl_library" = "openssl" || test "$ssl_library" = "both"; then
oldLIBS="$LIBS"
LIBS="$LIBS $OPENSSL_LIBS"
oldCFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $OPENSSL_CFLAGS"

if test "$ssl_library" = "openssl"; then
AC_MSG_CHECKING([for ENGINE_by_id() in OpenSSL])
Expand All @@ -522,6 +524,7 @@ if test "$ssl_library" = "openssl" || test "$ssl_library" = "both"; then
AC_DEFINE(HAVE_DTLS1_STOP_TIMER, [1], [OpenSSL has dtls1_stop_timer() function])],
[AC_MSG_RESULT(no)])
LIBS="$oldLIBS"
CFLAGS="$oldCFLAGS"
fi

AC_PATH_PROG(PYTHON, [python], [], $PATH:/bin:/usr/bin)
Expand Down

0 comments on commit 96d9179

Please sign in to comment.