Navigation Menu

Skip to content

Commit

Permalink
configure: error out if OpenSSL wasn't detected when asked for
Browse files Browse the repository at this point in the history
If --with-ssl is used and configure still couldn't enable SSL this
creates an error instead of just silently ignoring the fact.

Suggested-by: Isaiah Norton
Fixes #3824
  • Loading branch information
bagder committed May 2, 2019
1 parent 5c9487a commit 76a706f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Expand Up @@ -1889,6 +1889,11 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
fi

if test X"$with_ssl" != Xno &&
test "$OPENSSL_ENABLED" != "1"; then
AC_MSG_ERROR([--with-ssl was given but OpenSSL could not be detected])
fi

dnl **********************************************************************
dnl Check for the random seed preferences
dnl **********************************************************************
Expand Down

0 comments on commit 76a706f

Please sign in to comment.