Enable experimental module build on --enable-developer
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 3 Nov 2012 21:43:50 +0000 (21:43 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 3 Nov 2012 21:51:02 +0000 (21:51 +0000)
configure
configure.in

index 1b4b1e2..42d0ed5 100755 (executable)
--- a/configure
+++ b/configure
@@ -1443,7 +1443,7 @@ Optional Packages:
   --with-dhcp             Compile in DHCP support. (default=yes)
   --with-static-modules=QUOTED-MODULE-LIST
  --with-modules=QUOTED-MODULE-LIST
-  --with-experimental-modules      Use experimental and unstable modules. (default=no)
+  --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
   --with-openssl                   Use OpenSSL. (default=yes)
   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
@@ -15461,6 +15461,9 @@ if test "${with_experimental_modules+set}" = set; then :
     yes)
        EXPERIMENTAL=yes
        ;;
+    no)
+        EXPERIMENTAL=no
+       ;;
     *)
   esac
 
@@ -17975,6 +17978,10 @@ if test "x$developer" = "xyes"; then
 $as_echo "yes.  Using $devflags" >&6; }
   fi
 
+  if test "x$EXPERIMENTAL" != "xno"; then
+    EXPERIMENTAL = yes
+  fi
+
     if test "x$GIT" = "xyes"; then
        RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
   fi
index d878714..8306ef9 100644 (file)
@@ -346,11 +346,14 @@ AC_ARG_WITH(modules,
 dnl extra argument: --with-experimental-modules
 EXPERIMENTAL=
 AC_ARG_WITH(experimental-modules,
-[  --with-experimental-modules      Use experimental and unstable modules. (default=no) ],
+[  --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes) ],
 [ case "$withval" in
     yes)
        EXPERIMENTAL=yes
        ;;
+    no)
+        EXPERIMENTAL=no
+       ;;
     *)
   esac ]
 )
@@ -985,6 +988,10 @@ if test "x$developer" = "xyes"; then
     INSTALLSTRIP=""
     AC_MSG_RESULT(yes.  Using $devflags)
   fi
+
+  if test "x$EXPERIMENTAL" != "xno"; then
+    EXPERIMENTAL = yes
+  fi
   
   dnl append the current git hash onto the version string
   if test "x$GIT" = "xyes"; then