Back to the Main Page. | ax_auto_include_headers |
Download the M4 Source. |
AX_AUTO_INCLUDE_HEADERS(INCLUDE-FILE ...)
1.1 (2004/12/24) 0.5.65 : other
Scott Pakin <scott+ac@pakin.org>
AH_BOTTOM([
AX_AUTO_INCLUDE_HEADERS([sys/resource.h invent.h sys/sysinfo.h])dnl
])
#ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h>
#endif
#ifdef HAVE_INVENT_H
# include <invent.h>
#endif
#ifdef HAVE_SYS_SYSINFO_H
# include <sys/sysinfo.h>
#endif
cat config.h | perl -ane '/ HAVE_\S+_H / && do {$_=$F[$#F-1]; s/^HAVE_//; s/_H/.h/; s|_|/|g; tr/A-Z/a-z/; print "$_ "}'
AC_DEFUN([AX_AUTO_INCLUDE_HEADERS], [dnl AC_FOREACH([AX_Header], [$1], [dnl m4_pushdef([AX_IfDef], AS_TR_CPP(HAVE_[]AX_Header))dnl [#]ifdef AX_IfDef [#] include <AX_Header> [#]endif m4_popdef([AX_IfDef])dnl ])])