llvm.org GIT mirror llvm / ba3fe69
Add support for detecting <mach-o/getsect.h> and the getsect() function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108737 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 9 years ago
1 changed file(s) with 19 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
12861286 dnl Try to find Darwin specific crash reporting library.
12871287 AC_CHECK_HEADERS([CrashReporterClient.h])
12881288
1289 dnl Try to find Darwin specific linker-section library.
1290 AC_CHECK_HEADERS([mach-o/getsect.h])
1291
12891292 dnl===-----------------------------------------------------------------------===
12901293 dnl===
12911294 dnl=== SECTION 7: Check for types and structures
13601363 AC_MSG_RESULT(no)
13611364 AC_DEFINE(LLVM_MULTITHREADED, 0, Build multithreading support into LLVM)
13621365 AC_MSG_WARN([LLVM will be built thread-unsafe because atomic builtins are missing]))
1366
1367 dnl Check for Darwin-specific getsect().
1368 AC_MSG_CHECKING(for getsect())
1369 AC_COMPILE_IFELSE(
1370 AC_LANG_SOURCE(
1371 [[#include
1372 int main() {
1373 unsigned long p;
1374 return (int)getsect("__DATA","ยด__pass_info", &p);
1375 }
1376 ]]),
1377 AC_MSG_RESULT(yes)
1378 AC_DEFINE(HAVE_GETSECT, 1, Have Darwin getsect() support),
1379 AC_MSG_RESULT(no)
1380 AC_DEFINE(HAVE_GETSECT, 1, Have Darwin getsect() support)
1381 )
13631382
13641383
13651384 dnl===-----------------------------------------------------------------------===