From 29d169fdb241d53b13945600a743edbc082a0c79 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 21 Feb 2011 18:51:39 +0100 Subject: [PATCH] Add HAVE_BACKTRACE in configure.in --- bacula/autoconf/config.h.in | 2 ++ bacula/autoconf/configure.in | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/bacula/autoconf/config.h.in b/bacula/autoconf/config.h.in index c84e7e8b12..c0fe5e92a3 100644 --- a/bacula/autoconf/config.h.in +++ b/bacula/autoconf/config.h.in @@ -1104,3 +1104,5 @@ /* Define to the type of an unsigned integer type wide enough to hold a pointer, if such a type exists, and if the system does not define it. */ #undef uintptr_t + +#undef HAVE_BACKTRACE diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 690b548e60..df417d386d 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -2104,6 +2104,10 @@ 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_LANG_POP(C++) + dnl -------------------------------------------------------------------------- dnl CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS. dnl -------------------------------------------------------------------------- -- 2.39.5