[project @ 2005-07-09 14:35:51 by panne]
authorpanne <unknown>
Sat, 9 Jul 2005 14:35:51 +0000 (14:35 +0000)
committerpanne <unknown>
Sat, 9 Jul 2005 14:35:51 +0000 (14:35 +0000)
Silence the error message when ld doesn't understand the -x option.

aclocal.m4

index e2ad673..8f4dad6 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
 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
    fp_cv_ld_x=yes
 else
    fp_cv_ld_x=no