diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/build/smb_build/core.m4 | 5 | ||||
-rw-r--r-- | source4/build/smb_build/dump.pl | 23 | ||||
-rw-r--r-- | source4/configure.in | 9 |
3 files changed, 36 insertions, 1 deletions
diff --git a/source4/build/smb_build/core.m4 b/source4/build/smb_build/core.m4 index 0005809fe6..ae990d95c3 100644 --- a/source4/build/smb_build/core.m4 +++ b/source4/build/smb_build/core.m4 @@ -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 index 0000000000..e4ee3ceea2 --- /dev/null +++ b/source4/build/smb_build/dump.pl @@ -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); diff --git a/source4/configure.in b/source4/configure.in index 5c23849ae6..eb1fd7de10 100644 --- a/source4/configure.in +++ b/source4/configure.in @@ -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 |