If configured with --enable-maintainer-mode, then on receipt of a
[rsync.git] / configure.in
index cf9ab4bbe57a25e8a6fbb82d7350844c7caecc01..b3de501fda10fa030d0f14f3a82d39623f78f8b0 100644 (file)
@@ -65,6 +65,17 @@ then
 fi
 
 
+# Specifically, this turns on panic_action handling.
+AC_ARG_ENABLE(maintainer-mode,
+       AC_HELP_STRING([--enable-maintainer-mode],      
+               [turn on extra debug features],
+               [], []))
+if test x"$enable_maintainer_mode" = xyes
+then
+       CFLAGS="$CFLAGS -DMAINTAINER_MODE"
+fi
+
+
 # This is needed for our included version of popt.  Kind of silly, but
 # I don't want our version too far out of sync.
 CFLAGS="$CFLAGS -DHAVE_CONFIG_H"