On Fri, Jul 07, 2000 at 05:10:33PM -0700, Ian Lance Taylor wrote:
> From: Assar Westerlund <[EMAIL PROTECTED]>
> Date: 08 Jul 2000 01:59:53 +0200
>
> What happens if the string is included in the object file header or
> something like that? It might be unprobable enough.
>
> My suggestion was to search for both possible strings. If both are
> found, the test has failed. In that case, the program must test at
> run time, or must require the user to specify an option to the
> configure script.
But what if the string is found in the header, but neither string is found
in the body. Won't that still give you a false answer?
Of course, I'd argue that programs should be written so that endianness
doesn't matter.
mrc
--
Mike Castle Life is like a clock: You can work constantly
[EMAIL PROTECTED] and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
We are all of us living in the shadow of Manhattan. -- Watchmen