From f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 8 Oct 2007 10:05:13 +0000 Subject: r25566: Use -lexecinfo for backtraces on FreeBSD. Patch by Timur I. Bakeyev (This used to be commit 8d4a435601c1af42a4a6704b3181e194eb40f75a) --- source4/lib/util/config.mk | 2 +- source4/lib/util/fault.m4 | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'source4/lib/util') diff --git a/source4/lib/util/config.mk b/source4/lib/util/config.mk index a20f9d5dc6..0691bd7889 100644 --- a/source4/lib/util/config.mk +++ b/source4/lib/util/config.mk @@ -32,7 +32,7 @@ OBJ_FILES = xfile.o \ PUBLIC_DEPENDENCIES = \ LIBTALLOC LIBCRYPTO \ SOCKET_WRAPPER EXT_NSL \ - CHARSET + CHARSET EXECINFO [SUBSYSTEM::UNIX_PRIVS] PRIVATE_PROTO_HEADER = unix_privs.h diff --git a/source4/lib/util/fault.m4 b/source4/lib/util/fault.m4 index 6d2c4f2a6a..b24e63641c 100644 --- a/source4/lib/util/fault.m4 +++ b/source4/lib/util/fault.m4 @@ -1,2 +1,5 @@ -AC_CHECK_HEADER(execinfo.h) -AC_CHECK_FUNCS(backtrace) +AC_CHECK_HEADERS(execinfo.h) +AC_SEARCH_LIBS_EXT(backtrace, [execinfo], EXECINFO_LIBS) +AC_CHECK_FUNC_EXT(backtrace, $EXECINFO_LIBS) +SMB_EXT_LIB(EXECINFO,[${EXECINFO_LIBS}]) +SMB_ENABLE(EXECINFO) -- cgit