X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=da482a0d3f25a72b2a713acad4f063ed25739000;hb=fce276e16071947919e1e24eaae0288cfa8edfdd;hp=372287a330380647d713b6fcca92351f2ce7c113;hpb=ede4c6f2996fce6f94c0edea7ef99da7e971396a;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index 372287a..da482a0 100644 --- a/configure.ac +++ b/configure.ac @@ -962,12 +962,6 @@ AC_SUBST(GhcLibsWithReadline) dnl ** check if it is safe to include both and AC_HEADER_TIME -dnl ** how do we get a timezone name, and UTC offset ? -AC_STRUCT_TIMEZONE - -dnl ** do we have altzone? -FP_DECL_ALTZONE - dnl ** do we have long longs? AC_CHECK_TYPES([long long]) @@ -1136,17 +1130,25 @@ dnl (.subsections-via-symbols assembler directive) AC_MSG_CHECKING(for .subsections_via_symbols) -AC_TRY_COMPILE(,[__asm__ (".subsections_via_symbols");], - [ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[1], - [Define to 1 if Apple-style dead-stripping is supported.]) +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([], [__asm__ (".subsections_via_symbols");])], + [AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[1], + [Define to 1 if Apple-style dead-stripping is supported.]) ], - [ - AC_MSG_RESULT(no) - AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[0], - [Define to 1 if Apple-style dead-stripping is supported.]) - ]) + [AC_MSG_RESULT(no)]) + +dnl *** check for GNU non-executable stack note support (ELF only) +dnl (.section .note.GNU-stack,"",@progbits) + +AC_MSG_CHECKING(for GNU non-executable stack support) +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([__asm__ (".section .note.GNU-stack,\"\",@progbits");], [0])], + [AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_GNU_NONEXEC_STACK],[1], + [Define to 1 if GNU non-executable stack notes are supported.]) + ], + [AC_MSG_RESULT(no)]) dnl ** check for librt AC_CHECK_LIB(rt, clock_gettime)