Skip to content

Commit

Permalink
Fix compiling on AIX with different include priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
mbish authored and AaronAtDuo committed Jul 28, 2023
1 parent cba57b9 commit bea603c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autotools/ax_check_openssl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
for ssldir in $ssldirs; do
AC_MSG_CHECKING([for openssl/ssl.h in $ssldir])
if test -f "$ssldir/include/openssl/ssl.h"; then
OPENSSL_INCLUDES="-I$ssldir/include"
if test "x$IS_AIX" = "xyes"; then
CFLAGS="$CFLAGS -isystem $ssldir/include"
else
OPENSSL_INCLUDES="-I$ssldir/include"
fi
OPENSSL_LDFLAGS="-L$ssldir/lib"
OPENSSL_LIBS="-lssl -lcrypto"
found=true
Expand Down

0 comments on commit bea603c

Please sign in to comment.