summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authoryuangongji <82787816@qq.com>2019-10-26 22:31:18 +0800
committeryuangongji <82787816@qq.com>2019-10-26 22:43:26 +0800
commit53b3be4ee9e814a22876675c0ee004f0ebfb8535 (patch)
tree3c81965ab47b9c589300409789dc4144d5671516 /m4
parent5fe83d7433022e29a401753f64ec78faaf25e0a7 (diff)
downloadlibevent-53b3be4ee9e814a22876675c0ee004f0ebfb8535.tar.gz
autotools: fails build when need but can not find openssl
Diffstat (limited to 'm4')
-rw-r--r--m4/libevent_openssl.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/libevent_openssl.m4 b/m4/libevent_openssl.m4
index 19811981..a5ea6762 100644
--- a/m4/libevent_openssl.m4
+++ b/m4/libevent_openssl.m4
@@ -47,6 +47,11 @@ case "$enable_openssl" in
AC_SUBST(OPENSSL_LIBS)
case "$have_openssl" in
yes) AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl]) ;;
+ *) AC_MSG_ERROR([openssl is a must but can not be found. You should add the \
+directory containing `openssl.pc' to the `PKG_CONFIG_PATH' environment variable, \
+or set `CFLAGS' and `LDFLAGS' directly for openssl, or use `--disable-openssl' \
+to disable support for openssl encryption])
+ ;;
esac
;;
esac