From 1b4d33767fde9c55aa2e32f1a313688dc48a6ad4 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 13 Aug 2015 03:40:06 +0200 Subject: Added check for execinfo.h/backtrace() to the configure script - This fixes compilation on systems such as FreeBSD, where -lexecinfo is necessary, or Cygwin, where execinfo.h is not available. Signed-off-by: Haru --- configure.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d17f5b4a7..8567c6bcb 100644 --- a/configure.in +++ b/configure.in @@ -1268,6 +1268,21 @@ AC_SEARCH_LIBS([pthread_attr_destroy], [pthread], [], [AC_MSG_ERROR([pthread lib AC_SEARCH_LIBS([pthread_cancel], [pthread], [], [AC_MSG_ERROR([pthread library not found or incompatible])]) AC_SEARCH_LIBS([pthread_join], [pthread], [], [AC_MSG_ERROR([pthread library not found or incompatible])]) +# execinfo (backtrace) +AC_CHECK_HEADERS([execinfo.h], + [ + AC_SEARCH_LIBS([backtrace], + [execinfo], + [ + CFLAGS="$CFLAGS -DHAVE_EXECINFO" + ], + [ + ] + ) + ], + [ + ] +) # # MySQL library -- cgit v1.2.3-60-g2f50