summaryrefslogtreecommitdiff
path: root/source3/configure.in
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-23 12:22:23 +0200
committerVolker Lendecke <vl@samba.org>2010-07-26 16:06:21 +0200
commitb6c4eb3c5204a5d43af10ba349fedc5f40796607 (patch)
treef80e120279e91a8b10bffd5fa7f68e1a583b02ce /source3/configure.in
parent2ef87d8ec00f70aa8714c739525c487e44142853 (diff)
downloadsamba-b6c4eb3c5204a5d43af10ba349fedc5f40796607.tar.gz
samba-b6c4eb3c5204a5d43af10ba349fedc5f40796607.tar.bz2
samba-b6c4eb3c5204a5d43af10ba349fedc5f40796607.zip
s3: Log the correct core path on Linux if core_pattern is set
Contributions from Bill Hymas, IBM
Diffstat (limited to 'source3/configure.in')
-rw-r--r--source3/configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 26e98f5333..905ad23efc 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1105,6 +1105,15 @@ AC_CHECK_LIB(exc, trace_back_stack)
# check for sysctlbyname for BSD systems
AC_CHECK_FUNCS(sysctlbyname)
+#################################################
+# Check to see if core dump directory is defined in linux
+# with /proc/sys/kernel/core_pattern
+
+AC_CHECK_FILE([/proc/sys/kernel/core_pattern],
+ AC_DEFINE(HAVE_SYS_KERNEL_PROC_CORE_PATTERN, 1,
+ [Whether Linux kernel uses core_pattern for core files]),
+ [])
+
#############################
# check if building with gpfs
AC_CHECK_HEADERS(gpfs_gpl.h)