[project @ 2005-07-09 14:44:06 by panne]
[ghc-hetmet.git] / aclocal.m4
index 0e9f457..900ef7f 100644 (file)
@@ -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]][[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