Re: simple autoconf question

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

 



On Dec 20, 2011, at 3:55 PM, Eric Blake <eblake@xxxxxxxxxx> wrote:

> On 12/20/2011 01:35 PM, Eric Gorr wrote:
> 
>> However, running this configure script does not result in "hello world" being printed.
> 
> Of course not.  m4_warn is a warning _at autoconf_ time.  If you want a
> warning _at configure_ time, then you have to use AC_WARNING.  In
> general, m4_* macros are acted on at autoconf time when doing m4
> processing to create configure, while AC_* macros cause actions when
> running the generated configure.

Interesting. 

The autoconf manual indicates that AC_WARNING is obsolete and that one should use m4_warn instead. 

But, yes, given how I was calling things, I missed that the message was being printed at autoconf time. 

As it turns out, AC_WARNING doesn't produce anything in a configure script. For the simple thing I was trying to do, it appears that AC_MSG_NOTICE is the macro to use.

Thanks again for your assistance.
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux