X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=8ce485bcc4c0780ff48eda3351112639a5a6468e;hb=6a15e98b0bcb45982822fe6c8fae620f329c3ccd;hp=e2ad673bf53340bf1cea65e85c5402f49758e286;hpb=cf5526bc4dfdbbff52ca8d5d9855447892f01348;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index e2ad673..8ce485b 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -378,7 +378,7 @@ AC_DEFUN([FP_PROG_LD_X], AC_CACHE_CHECK([whether ld understands -x], [fp_cv_ld_x], [echo 'foo() {}' > conftest.c ${CC-cc} -c conftest.c -if ${LdCmd} -r -x -o conftest2.o conftest.o; then +if ${LdCmd} -r -x -o conftest2.o conftest.o > /dev/null 2>&1; then fp_cv_ld_x=yes else fp_cv_ld_x=no @@ -567,7 +567,7 @@ if test "$fp_have_gcc" = "NO" -a -d $srcdir/ghc; then fi AC_CACHE_CHECK([version of gcc], [fp_gcc_version], [if test "$fp_have_gcc" = "YES"; then - fp_gcc_version="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [[^0-9]]*\([[0-9.]]*\).*/\1/g' | sed -e 's/\([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\).*/\1/g'`" + fp_gcc_version="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [[^0-9]]*\([[0-9.]]*\).*/\1/g'`" FP_COMPARE_VERSIONS([$fp_gcc_version], [-lt], [2.0], [AC_MSG_ERROR([Need at least gcc version 2.0 (3.4+ recommended)])]) else @@ -597,9 +597,6 @@ dnl contains path to perl binary dnl AC_DEFUN(FPTOOLS_CHECK_PERL_VERSION, [$PerlCmd -v >conftest.out 2>&1 -if grep "version 5" conftest.out >/dev/null 2>&1; then - : -else if grep "v5.6" conftest.out >/dev/null 2>&1; then : else @@ -609,11 +606,10 @@ else if grep "version 6" conftest.out >/dev/null 2>&1; then : else - echo "Your version of perl probably won't work." - fi + AC_MSG_ERROR([your version of perl probably won't work, try upgrading it.]) + fi fi fi -fi rm -fr conftest* ])