Skip to content

Commit

Permalink
update ax_check_openssl to avoid autoconf warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer committed Jan 28, 2014
1 parent a8e0a56 commit c2bcd1c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions m4/ax_check_openssl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.

#serial 7
#serial 8

AU_ALIAS([CHECK_SSL], [AX_CHECK_OPENSSL])
AC_DEFUN([AX_CHECK_OPENSSL], [
found=false
AC_ARG_WITH(openssl,
AS_HELP_STRING([--with-openssl=DIR],
[root of the OpenSSL directory]),
AC_ARG_WITH([openssl],
[AS_HELP_STRING([--with-openssl=DIR],
[root of the OpenSSL directory])],
[
case "$withval" in
"" | y | ye | yes | n | no)
Expand All @@ -51,7 +51,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
], [
# if pkg-config is installed and openssl has installed a .pc file,
# then use that information and don't search ssldirs
AC_PATH_PROG(PKG_CONFIG, pkg-config)
AC_PATH_PROG([PKG_CONFIG], [pkg-config])
if test x"$PKG_CONFIG" != x""; then
OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
if test $? = 0; then
Expand Down Expand Up @@ -106,7 +106,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
LIBS="$OPENSSL_LIBS $LIBS"
CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <openssl/ssl.h>], [SSL_new(NULL)]),
[AC_LANG_PROGRAM([#include <openssl/ssl.h>], [SSL_new(NULL)])],
[
AC_MSG_RESULT([yes])
$1
Expand Down

0 comments on commit c2bcd1c

Please sign in to comment.