[take 2] Re: configuration patch for host_exeext != ""

Alexandre Oliva oliva@dcc.unicamp.br
Wed Mar 31 18:59:00 GMT 1999


On Mar 25, 1999, Jeffrey A Law <law@upchuck.cygnus.com> wrote:

> ps.  I changed "-o" to "|| test" in a variety of places since apparently
> -o is not portable?!?

Yup; from the autoconf manual:

  If you need to make multiple checks using `test', combine them with
the shell operators `&&' and `||' instead of using the `test' operators
`-a' and `-o'.  On System V, the precedence of `-a' and `-o' is wrong
relative to the unary operators; consequently, POSIX does not specify
them, so using them is nonportable.  If you combine `&&' and `||' in
the same statement, keep in mind that they have equal precedence.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists




More information about the Gcc-patches mailing list