Skip to content

Commit e859e39

Browse files
committed
Add backtrace test to configure.ac
1 parent 365dd01 commit e859e39

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: configure.ac

+11
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,17 @@ if test "x$enable_set_log_level_func" = xyes -a "x$enable_netcdf_4" = xyes; then
447447
fi
448448
AC_MSG_RESULT($enable_set_log_level_func)
449449

450+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
451+
[#include <execinfo.h>],
452+
[[int x = 0;]])],
453+
[havebacktrace=yes],
454+
[havebacktrace=no])
455+
AC_MSG_CHECKING([whether backtrace is defined])
456+
AC_MSG_RESULT([${havebacktrace}])
457+
if test $havebacktrace = yes; then
458+
AC_DEFINE([HAVE_BACKTRACE],[1],[Is backtrace defined])
459+
fi
460+
450461

451462
# CURLOPT_USERNAME is not defined until curl version 7.19.1
452463
# CURLOPT_PASSWORD is not defined until curl version 7.19.1

0 commit comments

Comments
 (0)