summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorpaul <paul>2003-06-04 09:40:54 +0000
committerpaul <paul>2003-06-04 09:40:54 +0000
commitfb2d1502bb0893f2aaccb49fb39521974078d96a (patch)
tree0d3059d875d2be20913eaceaed12c8c09ec2b481 /configure.in
parent97e34b88b39abdef4ba0581574d315ef7ddb1a86 (diff)
Paul Jakma:
lib/debug.{c,h}: glibc backtrace printing function (from the glibc info page) configure.ac: check for glibc backtrace and set define lib/zebra.h: glibc backtrace support
Diffstat (limited to 'configure.in')
-rwxr-xr-xconfigure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 4c30bcee..be371fcb 100755
--- a/configure.in
+++ b/configure.in
@@ -856,6 +856,18 @@ AC_TRY_COMPILE([#include <sys/resource.h>
AC_DEFINE(HAVE_RUSAGE,,rusage)],
AC_MSG_RESULT(no))
+dnl ---------------------------
+dnl check for glibc 'backtrace'
+dnl ---------------------------
+if test "${glibc}" = "yes"; then
+ AC_CHECK_HEADER(execinfo.h)
+fi
+if test x"${ac_cv_header_execinfo_h}" = x"yes"; then
+ AC_CHECK_FUNC(backtrace,
+ [AC_DEFINE(HAVE_GLIBC_BACKTRACE,,Glibc backtrace)]
+ )
+fi
+
dnl -------------
dnl check version
dnl -------------