Enable DHCP by default
authorAlan T. DeKok <aland@freeradius.org>
Sun, 29 Jan 2012 11:14:51 +0000 (12:14 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 29 Jan 2012 11:14:51 +0000 (12:14 +0100)
configure
configure.in
src/main/radiusd.mk

index a08792b..022ad9d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1489,7 +1489,7 @@ Optional Packages:
   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
   --with-threads          Use threads, if available.  (default=yes)
   --with-vmps             Compile in VMPS support. (default=yes)
-  --with-dhcp             Compile in DHCP support. (default=no)
+  --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)
@@ -20303,25 +20303,31 @@ _ACEOF
 
 fi
 
+WITH_DHCP=yes
 
 # Check whether --with-dhcp was given.
 if test "${with_dhcp+set}" = set; then
   withval=$with_dhcp;  case "$withval" in
     yes)
+        ;;
+    *)
+       WITH_DHCP=no
+  esac
+
+fi
+
+if test "x$WITH_DHCP" = "xyes"; then
 
 cat >>confdefs.h <<\_ACEOF
 #define WITH_DHCP 1
 _ACEOF
 
-       ;;
-    *)
-       ;;
-  esac
-
 fi
 
 
 
+
+
 STATIC_MODULES=
 
 # Check whether --with-static_modules was given.
index 0a92e9b..eace2ee 100644 (file)
@@ -259,16 +259,19 @@ if test "x$WITH_VMPS" = "xyes"; then
 fi
 
 dnl extra argument: --with-dhcp
+WITH_DHCP=yes
 AC_ARG_WITH(dhcp,
-[  --with-dhcp             Compile in DHCP support. (default=no)],
+[  --with-dhcp             Compile in DHCP support. (default=yes)],
 [ case "$withval" in
     yes)
-        AC_DEFINE(WITH_DHCP, [1], [Include experimental support for DHCP])
-       ;;
+        ;;
     *)
-       ;;
+       WITH_DHCP=no
   esac ]
 )
+if test "x$WITH_DHCP" = "xyes"; then
+       AC_DEFINE(WITH_DHCP, [1], [define if you want DHCP support])
+fi
 
 
 dnl #
index e0fcb81..ba396b0 100644 (file)
@@ -1,6 +1,6 @@
 SOURCES := acct.c auth.c client.c conffile.c crypt.c exec.c files.c \
                  listen.c log.c mainconfig.c modules.c modcall.c \
-                 radiusd.c stats.c soh.c connection.c \
+                 radiusd.c stats.c soh.c connection.c dhcpd.c \
                  session.c threads.c util.c valuepair.c version.c  \
                  xlat.c process.c realms.c evaluate.c vmps.c detail.c
 ifneq ($(OPENSSL_LIBS),)