Bug 961816 - Detect unwind.h even if it's C++-only header (e.g. with Clang on FreeBSD). r=glandium
authorJan Beich <jbeich@tormail.org>
Tue, 21 Jan 2014 11:40:21 -0500
changeset 164483 d0bcf67cd2d97f8eaa9d62fcec6d92f612fd7469
parent 164482 d93e210ab3db4c748b069fbfa7b0ce9bd715eba1
child 164484 60698fb6579b810bf27ba77bdce080c02787694d
push id26048
push userkwierso@gmail.com
push dateWed, 22 Jan 2014 01:11:21 +0000
treeherdermozilla-central@92cb91891880 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs961816
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 961816 - Detect unwind.h even if it's C++-only header (e.g. with Clang on FreeBSD). r=glandium
configure.in
--- a/configure.in
+++ b/configure.in
@@ -7450,17 +7450,20 @@ if test "$HAVE_DEMANGLE" && test "$MOZ_D
     AC_DEFINE(MOZ_DEMANGLE_SYMBOLS)
 fi
 AC_SUBST(MOZ_DEMANGLE_SYMBOLS)
 
 dnl ========================================================
 dnl = Support for gcc stack unwinding (from gcc 3.3)
 dnl ========================================================
 if test -z "$SKIP_LIBRARY_CHECKS"; then
+    AC_LANG_SAVE
+    AC_LANG_CPLUSPLUS
     MOZ_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace))
+    AC_LANG_RESTORE
 fi
 
 dnl ========================================================
 dnl JIT observers
 dnl ========================================================
 
 MOZ_ARG_WITH_STRING(jitreport-granularity,
 [  --jitreport-granularity=N