aboutsummaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2014-07-17 15:20:53 -0400
committerGreg Hudson <ghudson@mit.edu>2014-07-19 16:21:15 -0400
commit788e70c7c77b0c1f4a79e3f1b6c96a0cf99e0327 (patch)
tree85dd363fdeb6f6fe20035f9490126e527cdc1b02 /src/configure.in
parent472349d2a47fbc7db82e46ba46411b95c312fc1f (diff)
downloadkrb5-788e70c7c77b0c1f4a79e3f1b6c96a0cf99e0327.zip
krb5-788e70c7c77b0c1f4a79e3f1b6c96a0cf99e0327.tar.gz
krb5-788e70c7c77b0c1f4a79e3f1b6c96a0cf99e0327.tar.bz2
Rename --with-proxy-tls-impl to --with-tls-impl
Make the configure option for TLS implementation more generic, in case we use the k5tls module for something other than KDC proxy support. Rename all of the associated symbols for consistency. ticket: 7929
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]), ,