X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fconfigure.ac;h=786e43a2deec4a500e69b5c2f41aecb0b1bcfffb;hb=0084d3177b87b2a5c4ac1e7b24430b181678d966;hp=e2ac5e7f1a0243a8c88c9f69c3a6b7902095ab1b;hpb=45d58439704a99102c57e2e6324d262440fd57bc;p=citadel.git diff --git a/webcit/configure.ac b/webcit/configure.ac index e2ac5e7f1..786e43a2d 100644 --- a/webcit/configure.ac +++ b/webcit/configure.ac @@ -196,7 +196,7 @@ AC_CHECK_HEADER(libcitadel.h, - +found_ssl=no # The big search for OpenSSL if test "$with_ssl" != "no"; then saved_LIBS="$LIBS" @@ -279,6 +279,7 @@ if test "$with_ssl" != "no"; then if test "x$ac_cv_openssldir" != "xno" ; then AC_DEFINE(HAVE_OPENSSL,[],[whethe we have openssl]) + found_ssl=yes LIBS="-lssl -lcrypto $LIBS" dnl Need to recover ssldir - test above runs in subshell ssldir=$ac_cv_openssldir @@ -314,6 +315,10 @@ AC_ARG_WITH(ssldir, [ if test "x$withval" != "xno" ; then ssl_dir="$withval" + if test "$found_ssl" = "no"; then + echo "Your setup was incomplete; ssldir doesn't make sense without openssl" + exit + fi fi AC_SUBST(MAKE_SSL_DIR) ]