aboutsummaryrefslogtreecommitdiff
path: root/autoconf/configure.ac
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-05-03 15:55:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-05-03 15:55:06 +0000
commit5212b4eb71cfc28983b993a8553453b0c4e26e22 (patch)
tree203edac9d5e1278d34d89e3d669d22200c303138 /autoconf/configure.ac
parent333403abbda5722724025cda1f8f52ef36d31505 (diff)
Autoconf: Compile cxxabi.h in C++ mode.
Should fix PR15877. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r--autoconf/configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 3101e9a5a1..d1c740fa19 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1507,7 +1507,10 @@ AC_HEADER_STAT
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
-AC_CHECK_HEADERS([cxxabi.h dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
+AC_LANG_PUSH([C++])
+AC_CHECK_HEADERS([cxxabi.h])
+AC_LANG_POP([C++])
+AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h termios.h unistd.h])
AC_CHECK_HEADERS([utime.h windows.h])
AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h])