[PATCH] When specifying the MODULES to build

Martin Gadbois martin.gadbois at colubris.com
Fri Feb 23 17:20:18 CET 2007


Here's a small patch for configure.in:

diff -ur freeradius-1.1.4-org/configure.in freeradius-1.1.4/configure.in
--- freeradius-1.1.4-org/configure.in   2007-01-04 18:42:28.000000000 -0500
+++ freeradius-1.1.4/configure.in       2007-02-22 14:59:06.000000000 -0500
@@ -1057,17 +1057,19 @@
 dnl ############################################################
 dnl # make modules by list
 dnl #############################################################
-if test "x$EXPERIMENTAL" = "xyes"; then
-  for foo in `ls -1 src/modules | grep rlm_`; do
-    MODULES="$MODULES $foo"
-  done
-else
-   dnl #
-   dnl # make ONLY the stable modules
-   dnl #
-   for foo in `cat src/modules/stable`; do
-    MODULES="$MODULES $foo"
-   done
+if [ -z "$MODULES" ]; then
+       if test "x$EXPERIMENTAL" = "xyes"; then
+         for foo in `ls -1 src/modules | grep rlm_`; do
+               MODULES="$MODULES $foo"
+         done
+       else
+          dnl #
+          dnl # make ONLY the stable modules
+          dnl #
+          for foo in `cat src/modules/stable`; do
+               MODULES="$MODULES $foo"
+          done
+       fi
 fi

 dnl #

If not applied, calling "configure --with-modules=eap sql" would not do
what it is supposed to do.


-- 
==============         +----------------------------------------------+
Martin Gadbois         | "Windows might take you from 0 to 60 faster, |
S/W Developer          |  but to go to 100 you need Unix."            |
Colubris Networks Inc. +----------------------------------------------+



More information about the Freeradius-Users mailing list