From f75294d107cea0fe6643be80016eac1f5b398b35 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 9 Aug 2011 16:33:35 +0200 Subject: [PATCH] Fix backtrace detection in configure --- bacula/autoconf/config.h.in | 3 ++- bacula/autoconf/configure.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/autoconf/config.h.in b/bacula/autoconf/config.h.in index a3cd88fa69..edd891790f 100644 --- a/bacula/autoconf/config.h.in +++ b/bacula/autoconf/config.h.in @@ -271,7 +271,8 @@ #undef HAVE_ATTR_H /* Defines if your system have the cxxabi.h and execinfo.h header files for - backtrace() */ + * backtrace() + */ #undef HAVE_BACKTRACE /* Set if Bacula bat Qt4 GUI support enabled */ diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 0f76ee3ef0..2b358b7657 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -2107,7 +2107,7 @@ AC_MSG_RESULT($fstype) AC_CHECK_HEADER(sys/statvfs.h, [ AC_DEFINE(HAVE_SYS_STATVFS_H,1,[Defines if your system have the sys/statvfs.h header file])] , ) AC_LANG_PUSH(C++) -AC_CHECK_HEADERS([cxxabi.h execinfo.h], [ AC_DEFINE(HAVE_BACKTRACE,1,[Defines if your system have the cxxabi.h and execinfo.h header files for backtrace()])] , ) +AC_CHECK_FUNCS(backtrace) AC_LANG_POP(C++) dnl -------------------------------------------------------------------------- -- 2.39.5