Re: Supressing output from AC_CHECK_DECL

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

 



On Tue, May 08, 2007 at 02:46:53PM +0200, jcurlmail@xxxxxxxx wrote:
> When I use AC_CHECK_DECL, how can I prevent it from outputting to the console for a specific message only? I don't want to supress all messages, only one specific message (and replace it with my own, more complex reusable macro).

I would write your test in terms of the lower-level AC_COMPILE_IFELSE; a check
functionally similar to AC_CHECK_DECL looks like this:

AC_COMPILE_IFELSE([AC_LANG_PROGRAM([INCLUDES],
[#ifndef SYMBOL
  (void) SYMBOL;
#endif
])], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])

> In the end, I've done:
> pushdef([AS_MESSAGE_FD], [/dev/null])
> popdef([AS_MESSAGE_FD])

This is a decent approach, too.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://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