diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-08 10:05:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:57 -0500 |
commit | f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad (patch) | |
tree | 8589169c6e0e76d7aa5ae334350ae0963a0bd179 /source4/lib/util/fault.m4 | |
parent | 0df01cee47c07df1238b24eb94b3d7fac1c59973 (diff) | |
download | samba-f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad.tar.gz samba-f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad.tar.bz2 samba-f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad.zip |
r25566: Use -lexecinfo for backtraces on FreeBSD. Patch by Timur I. Bakeyev <timur@com.bat.ru>
(This used to be commit 8d4a435601c1af42a4a6704b3181e194eb40f75a)
Diffstat (limited to 'source4/lib/util/fault.m4')
-rw-r--r-- | source4/lib/util/fault.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
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) |