summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3c162f0..3d2ab70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,6 +87,17 @@ if test x"$xtinyproxy_enabled" = x"yes"; then
AC_DEFINE(XTINYPROXY_ENABLE)
fi
+dnl Include proxy authentication
+AH_TEMPLATE([AUTH_SUPPORT],
+ [Include support for proxy authentication.])
+TP_ARG_ENABLE(auth,
+ [Enable proxy authentication support (requires OpenSSL, default is YES)],
+ yes)
+
+if test x"$auth_enabled" = x"yes"; then
+ AC_DEFINE(AUTH_SUPPORT)
+fi
+
dnl Include filtering for domain/URLs
AH_TEMPLATE([FILTER_ENABLE],
[Defined if you would like filtering code included.])
@@ -160,6 +171,10 @@ fi
AC_CHECK_LIB(resolv, inet_aton)
+if test x"$auth_enabled" = x"yes"; then
+ AC_CHECK_LIB([crypto], [MD5_Init], [], [AC_MSG_FAILURE([could not find OpenSSL])])
+fi
+
dnl
dnl Checks for headers
dnl