This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Accept blanks as language separators
- To: gcc-patches at gcc dot gnu dot org
- Subject: Accept blanks as language separators
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 01 Aug 2000 11:32:46 -0300
- Organization: GCC Team, Red Hat
Marc Espie was using blanks instead of commas as language separators,
so CXX_FOR_TARGET failed to be configured properly. This patch fixes
this problem. Ok to install?
Index: ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Accept both ` '
and `,' as separators in enable_languages.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/configure.in,v
retrieving revision 1.57
diff -u -r1.57 configure.in
--- configure.in 2000/08/01 04:10:47 1.57
+++ configure.in 2000/08/01 14:30:09
@@ -1287,7 +1287,7 @@
:
elif test -d ${topsrcdir}/gcc &&
echo ",${enable_languages-${LANGUAGES-CHILL}}," |
- grep ,CHILL, > /dev/null ; then
+ grep '[ ,]CHILL[ ,]' > /dev/null ; then
CHILL_FOR_TARGET='$$r/gcc/xgcc -L$$r/gcc/ch/runtime/'
elif test "$host" = "$target"; then
CHILL_FOR_TARGET='$(CC)'
@@ -1303,7 +1303,7 @@
:
elif test -d ${topsrcdir}/gcc &&
echo ",${enable_languages-${LANGUAGES-c++}}," |
- grep ',c[+][+],' > /dev/null ; then
+ grep '[ ,]c[+][+][ ,]' > /dev/null ; then
CXX_FOR_TARGET='$$r/gcc/g++ -nostdinc++ '$libstdcxx_flags
elif test "$host" = "$target"; then
CXX_FOR_TARGET='$(CXX)'
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me