diff options
author | Thorkil Naur <naur@post11.tele.dk> | 2011-10-19 00:20:53 +0200 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-10-19 22:38:08 +0100 |
commit | 6067f9563d1221b4afec5b52f41e48d4a31e69c2 (patch) | |
tree | e2b98acc0949a8d66a3fe66a5b496cfb1960ff7f /aclocal.m4 | |
parent | bc876206b80f060ad1bbbaa681d1171d1980cdfc (diff) | |
download | haskell-6067f9563d1221b4afec5b52f41e48d4a31e69c2.tar.gz |
FIX BUILD on OS X 10.5: Check whether ld understands -no_compact_unwind
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index bbbe7a92ac..7d0bf8681c 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -831,6 +831,31 @@ AC_SUBST([LdIsGNULd], [`echo $fp_cv_gnu_ld | sed 'y/yesno/YESNO/'`]) ])# FP_PROG_LD_IS_GNU +# FP_PROG_LD_NO_COMPACT_UNWIND +# ---------------------------- + +# Sets the output variable LdHasNoCompactUnwind to YES if ld supports +# -no_compact_unwind, or NO otherwise. +AC_DEFUN([FP_PROG_LD_NO_COMPACT_UNWIND], +[ +AC_CACHE_CHECK([whether ld understands -no_compact_unwind], [fp_cv_ld_no_compact_unwind], +[echo 'foo() {}' > conftest.c +${CC-cc} -c conftest.c +if ${LdCmd} -r -no_compact_unwind -o conftest2.o conftest.o > /dev/null 2>&1; then + fp_cv_ld_no_compact_unwind=yes +else + fp_cv_ld_no_compact_unwind=no +fi +rm -rf conftest*]) +if test "$fp_cv_ld_no_compact_unwind" = yes; then + LdHasNoCompactUnwind=YES +else + LdHasNoCompactUnwind=NO +fi +AC_SUBST([LdHasNoCompactUnwind]) +])# FP_PROG_LD_NO_COMPACT_UNWIND + + # FP_PROG_AR # ---------- # Sets fp_prog_ar_raw to the full path of ar and fp_prog_ar to a non-Cygwin |