]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
--enable-auth-modules configure option, and relevant Makefile cleanup
authorhno <>
Tue, 2 May 2000 03:14:57 +0000 (03:14 +0000)
committerhno <>
Tue, 2 May 2000 03:14:57 +0000 (03:14 +0000)
configure.in

index 871946ae161a30ece6aed81fe34dd62cc36eca61..272df009fd556bce1d31f0935b6cdf0ceab39e68 100644 (file)
@@ -3,13 +3,13 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.183 2000/03/27 21:56:20 wessels Exp $
+dnl  $Id: configure.in,v 1.184 2000/05/01 21:14:57 hno Exp $
 dnl
 dnl
 dnl
 AC_INIT(src/main.c)
 AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.183 $)dnl
+AC_REVISION($Revision: 1.184 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AC_CONFIG_AUX_DIR(cfgaux)
 
@@ -554,6 +554,33 @@ AC_ARG_ENABLE(heap-replacement,
   fi
 ])
 
+dnl Select auth modules to build
+AUTH_MODULES=
+AC_ARG_ENABLE(auth-modules,
+[  --enable-auth-modules=\"list of modules\"
+                          This option selects wich proxy_auth helper modules
+                          to build and install as part of the normal build
+                          process. For a list of available modules see
+                          the auth_modules directory.],
+[ case "$enableval" in
+  yes) 
+    for module in $srcdir/auth_modules/*; do
+       if test -f $module/Makefile.in; then
+           AUTH_MODULES="$AUTH_MODULES `basename $module`"
+       fi
+    done
+    ;;
+  no)
+    ;;
+  *)
+    AUTH_MODULES="`echo $enableval| sed -e 's/,/ /g;s/  */ /g'`"
+  esac
+])
+if test -n "$AUTH_MODULES"; then
+    echo "Auth moules built: $AUTH_MODULES"
+fi
+AC_SUBST(AUTH_MODULES)
+
 dnl Enable "diskd" code
 AC_ARG_ENABLE(diskd,
 [  --enable-diskd          Uses shared memory, message queues, and external
@@ -1480,10 +1507,11 @@ AC_OUTPUT(\
        $SNMP_MAKEFILE \
        ./icons/Makefile \
        ./errors/Makefile \
-       ./auth_modules/dummy \
+       ./auth_modules/Makefile \
        ./auth_modules/NCSA/Makefile \
        ./auth_modules/PAM/Makefile \
-       ./auth_modules/SMB/Makefile
+       ./auth_modules/SMB/Makefile \
+       ./auth_modules/MSNT/Makefile \
        ./auth_modules/getpwnam/Makefile \
        ./auth_modules/LDAP/Makefile \
 )