This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Accept blanks as language separators


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]