autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exit status of conftest program


From: Assar Westerlund
Subject: Re: exit status of conftest program
Date: 30 Oct 2000 02:51:47 +0100
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6

Martin Wilck <address@hidden> writes:
> Is it ok for autoconf tests to create a C test program such as this
> 
> if ( <result of some test in C> == <expected result> ) 
>    exit (0);
> else
>    exit (1);
> 
> and check the exit status with AC_TRY_RUN, or may this fail on some
> systems?

This will obviously fail when cross-compiling, so you should
preferably try to this in some way that doesn't require figuring
things out by run-time.  If you cannot, I don't see anything wrong
with your test.

/assar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]