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: libiberty for $build


On Jul 10, 2001, DJ Delorie <dj@redhat.com> wrote:

>> Some shells don't like it when a command results in a non-zero exit
>> status.  Use `test "x$build" = "x$host" || echo "/$build"` instead.

> We really need a list of what we're allowed to use and what we're not
> allowed to use.

Have a look at the shell portability guide in autoconf 2.50's manual.
I'm not sure it covers this particular issue, since it applies mostly
to Makefiles, but it's still good read every now and then, for one who
has to write portable shell code.

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