]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
autoconf regeneration
authorDavid Hankins <dhankins@isc.org>
Wed, 27 Feb 2008 23:04:53 +0000 (23:04 +0000)
committerDavid Hankins <dhankins@isc.org>
Wed, 27 Feb 2008 23:04:53 +0000 (23:04 +0000)
configure

index de5dcec467a92cb8d34fa6552e92fd137d895f4b..df1f2c4a021894188ccce4bf292bc9e127bc9f15 100755 (executable)
--- a/configure
+++ b/configure
@@ -1285,6 +1285,9 @@ Optional Features:
   --disable-dependency-tracking  speeds up one-time build
   --enable-dependency-tracking   do not reject slow dependency extractors
   --enable-dhcpv6         enable support for DHCPv6 (default is yes)
+  --enable-paranoia       enable support for chroot/setuid (default is no)
+  --eanble-early-chroot   enable chrooting prior to configuration (default is
+                          no)
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -4328,6 +4331,39 @@ _ACEOF
 
 fi
 
+# PARANOIA is off by default (until we can test it with all features)
+# Check whether --enable-paranoia was given.
+if test "${enable_paranoia+set}" = set; then
+  enableval=$enable_paranoia;
+fi
+
+# Check whether --enable-early_chroot was given.
+if test "${enable_early_chroot+set}" = set; then
+  enableval=$enable_early_chroot;
+fi
+
+# If someone enables early chroot, but does not enable paranoia, do so for
+# them.
+if test "$enable_paranoia" != "yes" && \
+   test "$enable_early_chroot" = "yes" ; then
+       enable_paranoia="yes"
+fi
+
+if test "$enable_paranoia" = "yes" ; then
+
+cat >>confdefs.h <<\_ACEOF
+#define PARANOIA 1
+_ACEOF
+
+fi
+if test "$enable_early_chroot" = "yes" ; then
+
+cat >>confdefs.h <<\_ACEOF
+#define EARLY_CHROOT 1
+_ACEOF
+
+fi
+
 ###
 ### Path fun.  Older versions of DHCP were installed in /usr/sbin, so we
 ### need to look there and potentially overwrite by default (but not if