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]

Re: AIX /bin/sh weirdness with toplevel configure.in


On Aug 12, 2000, Manfred Hollstein <manfredh@redhat.com> wrote:

> On Friday, 11 August 2000, 13:41:55 -0700, geoffk@thief.cygnus.com wrote:
>> 
>> This fixes a problem with the AIX /bin/sh.  If this is still not
>> portable everywhere, I think this bit of the shell script needs to be
>> rethought.  The problem was introduced with:

> You need to apply a similar patch to gcc/configure.in, too; it is
> using the same procedure to convert blanks into commas at line 4689.

But not within the some amount of quoting, which is the source of the
problem.

A more portable solution would be:

if test -d ${topsrcdir}/gcc &&
   { test "x${enable_languages+set}" != xset ||
     echo ,$LANGUAGES, | tr ' ' ',' | grep ',<lang>,' > /dev/null; };
then
  ...
  
but Jason Merrill seems to have ``fixed'' the problem in a far simpler
way: by wiping out the language test.  I wonder if this won't break
C++-disabled builds, when configuring libstdc++ or libio (assuming
there isn't some magic to skip them in C++-disabled builds).

-- 
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]