Skip to content

Commit 4613d9f

Browse files
committed
* acinclude.m4 (APACHE_CHECK_OPENSSL): Use AC_CACHE_CHECK/AC_COMPILE_IFELSE
to fix autoconf warnings.
1 parent 429c7b3 commit 4613d9f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

acinclude.m4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,17 +585,17 @@ AC_DEFUN([APACHE_CHECK_OPENSSL],[
585585
fi
586586
fi
587587
588-
AC_MSG_CHECKING([for OpenSSL version >= 0.9.8a])
589-
AC_TRY_COMPILE([#include <openssl/opensslv.h>],[
588+
AC_CACHE_CHECK([for OpenSSL version >= 0.9.8a], [ap_cv_openssl098a], [
589+
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([#include <openssl/opensslv.h>],[
590590
#if !defined(OPENSSL_VERSION_NUMBER)
591591
#error "Missing OpenSSL version"
592592
#endif
593593
#if OPENSSL_VERSION_NUMBER < 0x0090801f
594594
#error "Unsupported OpenSSL version " OPENSSL_VERSION_TEXT
595-
#endif],
596-
[AC_MSG_RESULT(yes)
597-
ac_cv_openssl=yes],
598-
[AC_MSG_RESULT(no)])
595+
#endif]), [ap_cv_openssl098a=yes], [ap_cv_openssl098a=no])])
596+
if test "x$ap_cv_openssl098a" = xyes; then
597+
ac_cv_openssl=yes
598+
fi
599599
600600
if test "x$ac_cv_openssl" = "xyes"; then
601601
ap_openssl_libs="${ap_openssl_libs:--lssl -lcrypto} `$apr_config --libs`"

0 commit comments

Comments
 (0)