aboutsummaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in42
1 files changed, 20 insertions, 22 deletions
diff --git a/src/configure.in b/src/configure.in
index 43509ab..2e22470 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -272,50 +272,48 @@ AC_SUBST(PKINIT_CRYPTO_IMPL)
AC_SUBST(PKINIT_CRYPTO_IMPL_CFLAGS)
AC_SUBST(PKINIT_CRYPTO_IMPL_LIBS)
-# WITH_PROXY_TLS_IMPL
+# WITH_TLS_IMPL
-AC_ARG_WITH([proxy-tls-impl],
-AC_HELP_STRING([--with-proxy-tls-impl=IMPL],
- [use specified TLS implementation for HTTPS @<:@auto@:>@]),
-[PROXY_TLS_IMPL=$withval],[PROXY_TLS_IMPL=auto])
-case "$PROXY_TLS_IMPL" in
+AC_ARG_WITH([tls-impl],
+AC_HELP_STRING([--with-tls-impl=IMPL],
+ [use specified TLS implementation @<:@auto@:>@]),
+[TLS_IMPL=$withval],[TLS_IMPL=auto])
+case "$TLS_IMPL" in
openssl|auto)
AC_CHECK_LIB(ssl,SSL_CTX_new,[have_lib_ssl=true],[have_lib_ssl=false],
-lcrypto)
AC_MSG_CHECKING([for OpenSSL])
if test x$have_lib_ssl = xtrue ; then
- AC_DEFINE(PROXY_TLS_IMPL_OPENSSL,1,
- [Define if HTTPS TLS implementation is OpenSSL])
+ AC_DEFINE(TLS_IMPL_OPENSSL,1,[Define if TLS implementation is OpenSSL])
AC_MSG_RESULT([yes])
- PROXY_TLS_IMPL_LIBS="-lssl -lcrypto"
- PROXY_TLS_IMPL=openssl
- AC_MSG_NOTICE(HTTPS support will use TLS from '$PROXY_TLS_IMPL')
+ TLS_IMPL_LIBS="-lssl -lcrypto"
+ TLS_IMPL=openssl
+ AC_MSG_NOTICE([TLS module will use OpenSSL])
else
- if test "$PROXY_TLS_IMPL" = openssl ; then
+ if test "$TLS_IMPL" = openssl ; then
AC_MSG_ERROR([OpenSSL not found!])
else
AC_MSG_WARN([OpenSSL not found!])
fi
- PROXY_TLS_IMPL=no
- AC_MSG_NOTICE(building without HTTPS support)
+ TLS_IMPL=no
+ AC_MSG_NOTICE(building without TLS support)
fi
;;
no)
- AC_MSG_NOTICE(building without HTTPS support)
+ AC_MSG_NOTICE(building without TLS support)
;;
*)
- AC_MSG_ERROR([Unsupported HTTPS proxy TLS implementation $withval])
+ AC_MSG_ERROR([Unsupported TLS implementation $withval])
;;
esac
-if test "$PROXY_TLS_IMPL" = no; then
- AC_DEFINE(PROXY_TLS_IMPL_NONE,1,
- [Define if no HTTP TLS implementation is selected])
+if test "$TLS_IMPL" = no; then
+ AC_DEFINE(TLS_IMPL_NONE,1,[Define if no TLS implementation is selected])
fi
-AC_SUBST(PROXY_TLS_IMPL)
-AC_SUBST(PROXY_TLS_IMPL_CFLAGS)
-AC_SUBST(PROXY_TLS_IMPL_LIBS)
+AC_SUBST(TLS_IMPL)
+AC_SUBST(TLS_IMPL_CFLAGS)
+AC_SUBST(TLS_IMPL_LIBS)
AC_ARG_ENABLE([aesni],
AC_HELP_STRING([--disable-aesni],[Do not build with AES-NI support]), ,