configure.ac: Remove default executable files before AC_PROG_CC.
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Mon, 9 Feb 2004 17:40:32 +0000 (17:40 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 9 Feb 2004 17:40:32 +0000 (17:40 +0000)
* configure.ac: Remove default executable files before AC_PROG_CC.
* configure: Regenerate.

From-SVN: r77542

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 8872a66..b972181 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * configure.ac: Remove default executable files before AC_PROG_CC.
+       * configure: Regenerate.
+
 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
 
        PR target/13721
index 74cdd7c..9812c90 100755 (executable)
@@ -1739,6 +1739,15 @@ fi
 # Find C compiler
 # ---------------
 
+# If a non-executable a.out is present (e.g. created by GNU as above even if
+# invoked with -v only), the IRIX 6 native ld just overwrites the existing
+# file, even when creating an executable, so an execution test fails.
+# Remove possible default executable files to avoid this.
+#
+# FIXME: This really belongs into AC_PROG_CC and can be removed once
+# Autoconf includes it.
+rm -f a.out a.exe b.out
+
 # Find the native compiler
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
@@ -4997,7 +5006,7 @@ if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
 else
     ac_prog_version=`$MAKEINFO --version 2>&1 |
                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
-  echo "configure:5000: version of makeinfo is $ac_prog_version" >&5
+  echo "configure:5009: version of makeinfo is $ac_prog_version" >&5
   case $ac_prog_version in
     '')     gcc_cv_prog_makeinfo_modern=no;;
     4.[2-9]*)
index 304bfe9..b0ee990 100644 (file)
@@ -249,6 +249,15 @@ fi
 # Find C compiler
 # ---------------
 
+# If a non-executable a.out is present (e.g. created by GNU as above even if
+# invoked with -v only), the IRIX 6 native ld just overwrites the existing
+# file, even when creating an executable, so an execution test fails.
+# Remove possible default executable files to avoid this.
+#
+# FIXME: This really belongs into AC_PROG_CC and can be removed once
+# Autoconf includes it.
+rm -f a.out a.exe b.out
+
 # Find the native compiler
 AC_PROG_CC
 AC_PROG_CC_C_O