PR13689: Check for backtrace(3) in the cmake build.

llvm-svn: 163074
This commit is contained in:
Benjamin Kramer 2012-09-01 20:50:18 +00:00
parent d229e39a9a
commit d02949b9f5
2 changed files with 2 additions and 1 deletions

View File

@ -93,6 +93,7 @@ endif()
# function checks
check_symbol_exists(arc4random "stdlib.h" HAVE_ARC4RANDOM)
check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)

View File

@ -51,7 +51,7 @@
#cmakedefine HAVE_ASSERT_H ${HAVE_ASSERT_H}
/* Define to 1 if you have the `backtrace' function. */
#undef HAVE_BACKTRACE
#cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE}
/* Define to 1 if you have the `bcopy' function. */
#undef HAVE_BCOPY