summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrij Tejblum <tejblum@yandex-team.ru>2011-09-15 20:00:33 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-09-25 18:16:27 +0400
commitdda8187956966b2cc977855603a5beeeada3cc76 (patch)
tree1235a3c869d5f5916ef67fa3854982c0e35c6a8a
parent254f118d8671926f946a0b7221f89794cf4bf732 (diff)
configure: test for glibc backtrace even without glibc.
Other platform may have compatible facilities.
-rwxr-xr-xconfigure.ac14
1 files changed, 6 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 75f99a64..4ea873b2 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1440,14 +1440,12 @@ AC_SUBST(LIBCAP)
dnl ---------------------------
dnl check for glibc 'backtrace'
dnl ---------------------------
-if test "${glibc}" = "yes"; then
- AC_CHECK_HEADER([execinfo.h],
- [AC_CHECK_FUNC([backtrace],
- [AC_DEFINE(HAVE_GLIBC_BACKTRACE,,[Glibc backtrace])
- AC_DEFINE(HAVE_STACK_TRACE,,[Stack symbol decoding])
- ])
- ])
-fi
+AC_CHECK_HEADER([execinfo.h],
+ [AC_CHECK_FUNC([backtrace],
+ [AC_DEFINE(HAVE_GLIBC_BACKTRACE,,[Glibc backtrace])
+ AC_DEFINE(HAVE_STACK_TRACE,,[Stack symbol decoding])
+ ])
+])
dnl -----------------------------------------
dnl check for malloc mallinfo struct and call