r688: add --enable-experimental
authorStefan Metzmacher <metze@samba.org>
Thu, 13 May 2004 16:09:34 +0000 (16:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:53:42 +0000 (12:53 -0500)
use Data::Dumper for config.smb_build.dump
when --enable-debug

metze
(This used to be commit 0fd558de796e5798279e8252a7f0d4efdd3a86e6)

source4/build/smb_build/core.m4
source4/build/smb_build/dump.pl [new file with mode: 0644]
source4/configure.in

index 0005809fe666ccbdb01f9428a411530d45c014af..ae990d95c3ad1fecf623f6bc0140c27565db31c2 100644 (file)
@@ -68,9 +68,12 @@ $SMB_INFO_BINARIES
 
 smb_build_main(\$SMB_BUILD_CTX);
 
-0;
 _SMB_ACEOF
 
+if test x"$debug" = x"yes";then
+       cat >> config.smb_build.pl < build/smb_build/dump.pl
+fi
+
 $PERL ./config.smb_build.pl || exit $?
 
 ])
diff --git a/source4/build/smb_build/dump.pl b/source4/build/smb_build/dump.pl
new file mode 100644 (file)
index 0000000..e4ee3ce
--- /dev/null
@@ -0,0 +1,23 @@
+###########################################################
+### SMB Build System                                   ###
+### - the dump & debug functions                       ###
+###                                                    ###
+###  Copyright (C) Stefan (metze) Metzmacher 2004      ###
+###  Released under the GNU GPL                                ###
+###########################################################
+
+use Data::Dumper;
+sub _dump_ctx($)
+{
+       my $ctx = shift;
+
+       open (DUMP,"> config.smb_build.dump");
+       
+       print DUMP Dumper($ctx);
+
+       close(DUMP);
+
+       return;
+}
+
+_dump_ctx($SMB_BUILD_CTX);
index 5c23849ae67d1ddbab97509896f977d382584282..eb1fd7de1062825f4998b4c7d7944f54fae7ba66 100644 (file)
@@ -146,12 +146,15 @@ AC_SUBST(EXTRA_BIN_PROGS)
 AC_SUBST(EXTRA_SBIN_PROGS)
 AC_SUBST(EXTRA_ALL_TARGETS)
 
+debug=no
 AC_ARG_ENABLE(debug, 
 [  --enable-debug          Turn on compiler debugging information (default=no)],
     [if eval "test x$enable_debug = xyes"; then
+        debug=yes
        CFLAGS="${CFLAGS} -gstabs"
     fi])
 
+developer=no
 AC_ARG_ENABLE(developer, [  --enable-developer      Turn on developer warnings and debugging (default=no)],
     [if eval "test x$enable_developer = xyes"; then
         developer=yes
@@ -164,6 +167,12 @@ AC_ARG_ENABLE(krb5developer, [  --enable-krb5developer  Turn on developer warnin
        CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
     fi])
 
+experimental=no
+AC_ARG_ENABLE(experimental, [  --enable-experimental Turn on experimental features (default=no)],
+    [if eval "test x$enable_experimental = xyes"; then
+        experimental=yes
+    fi])
+
 sinclude(build/m4/rewrite.m4)
 
 dnl exclude these modules