This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH : exporting NO_MINUS_C_MINUS_O
- To: gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org)
- Subject: PATCH : exporting NO_MINUS_C_MINUS_O
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Mon, 22 May 2000 14:30:29 +0200 (CEST)
My previous fix was enough to prevent configure to abort, but not
to really export NO_MINUS_C_MINUS_O when needed. Actually it merely tested
if the string "${ac_cc}_c_o" was equal to "yes", and of course that is never
true.
Here is the real fix : some shell hackery copied from autoconf.
Philippe De Muyter <phdm@macqel.be>
* configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
* configure: Regenerated.
Index: gcc/configure
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure,v
retrieving revision 1.367
diff -u -p -r1.367 configure
--- configure 2000/05/18 23:06:18 1.367
+++ configure 2000/05/22 09:39:39
@@ -1302,7 +1302,7 @@ EOF
fi
-if test $ac_cv_prog_cc_${ac_cc}_c_o = no; then
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
NO_MINUS_C_MINUS_O=yes
fi
Index: gcc/configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.372
diff -u -p -r1.372 configure.in
--- configure.in 2000/05/18 23:06:19 1.372
+++ configure.in 2000/05/22 09:39:42
@@ -322,7 +322,7 @@ AC_CANONICAL_SYSTEM
# Find the native compiler
AC_PROG_CC
AC_PROG_CC_C_O
-if test $ac_cv_prog_cc_${ac_cc}_c_o = no; then
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
NO_MINUS_C_MINUS_O=yes
fi
AC_SUBST(NO_MINUS_C_MINUS_O)