autoconf
[Top][All Lists]
Advanced

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

Re: [Vincent Lefevre] Bug#325866: autoconf: AC_COMPILE_IFELSE generates


From: Paul Eggert
Subject: Re: [Vincent Lefevre] Bug#325866: autoconf: AC_COMPILE_IFELSE generates a test that doesn't work on IRIX64
Date: Thu, 01 Sep 2005 15:46:54 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Ben Pfaff <address@hidden> writes:

> AC_COMPILE_IFELSE generates a test that only checks the exit status
> of the compiler command. But this is not sufficient:

My own feeling is that if the compiler exits with a nonzero status
and produces working object code, then it succeeded, regardless of
what diagnostics it produced.

Hmm, are you using #error to detect whether some preprocessor problem
exists?  If so, then you should redo your test programs so that they
look something like this instead.  That should fix the problem.

#ifdef FOO
error: "FOO" was defined.
#endif




reply via email to

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