Next: , Previous: , Up: The Macros  



AX_EXT_CHECK_HEADER(<header>, <paths>).


Check for <header> with -I<path> for each path in <paths> if need be. The first sucecssful path is chosen (eg if you say AX_EXT_CHECK_HEADER(foo.h, bar baz qux) and -Ibaz works then -Iqux will not be tested.

Any -I flags that locate a header are added to CFLAGS and CPPFLAGS. AS with AC_CHECK_HEADERS it causes HAVE_<header>_H to be defined as 1.


 AX_EXT_HAVE_HEADER(openssl/rsa.h, /usr/local/include /usr/local/ssl/include /usr/local/openssl/include)

Source Code

Download the latest version of ax_ext_check_header.m4 or browse the macro’s revision history.


Copyright © 2008 Duncan Simpson

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.