From b990279304b5e2b2ee0f64480cb09eda33f76beb Mon Sep 17 00:00:00 2001 From: Ira Cooper Date: Wed, 14 Mar 2012 12:56:02 -0400 Subject: util: Add --disable-fault-handling. On some platforms you can not debug coredumps after the default signal handler gets done dumping core. This allows waf to have an option to disable our default signal handler. --- source3/configure.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index 611e1d8fb6..51e163dfb1 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -6799,6 +6799,7 @@ if test x"$enable_pthreadpool" = x"yes" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; t fi fi + ################################################# # Check to see if we should use the included iniparser @@ -6834,6 +6835,12 @@ AC_SUBST(BUILD_INIPARSER) AC_SUBST(INIPARSERLIBS) AC_SUBST(FLAGS1) +AC_ARG_ENABLE(fault-handler,[AS_HELP_STRING([--disable-fault-handler], [Disable the default handler])]) + +if test x"$enable_fault_handler" = x"no"; then + AC_DEFINE(HAVE_DISABLE_FAULT_HANDLER, 1, [Disable the default signal handler]) +fi + ################################################### # Check for different/missing (set|get|end)netgrent prototypes CFLAGS_SAVE=$CFLAGS -- cgit