summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2015-10-11 14:55:46 +0200
committerTreeki <treeki@gmail.com>2015-10-11 14:55:46 +0200
commit5445c84684f0c12e4dc0ec06445117418d679105 (patch)
tree2e663bc8aa085d84c82731a7c38513fe11db697a /configure
parent800c3a250c410150a4560ddaf6a1853c75a516f8 (diff)
downloadtinyproxy-ninji-patches.tar.gz
tinyproxy-ninji-patches.zip
add crummy authentication supportninji-patches
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