Next: , Previous: , Up: The Macros  


ax_caolan_check_package

Synopsis

AX_caolan_CHECK_PACKAGE(PACKAGE, FUNCTION, LIBRARY , HEADERFILE [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])

Description

Provides –with-PACKAGE, –with-PACKAGE-include and –with-PACKAGE-libdir options to configure. Supports the now standard –with-PACKAGE=DIR approach where the package’s include dir and lib dir are underneath DIR, but also allows the include and lib directories to be specified separately

adds the extra -Ipath to CFLAGS if needed adds extra -Lpath to LD_FLAGS if needed searches for the FUNCTION in the LIBRARY with AC_CHECK_LIBRARY and thus adds the lib to LIBS

defines HAVE_PKG_PACKAGE if it is found, (where PACKAGE in the HAVE_PKG_PACKAGE is replaced with the actual first parameter passed) note that autoheader will complain of not having the HAVE_PKG_PACKAGE and you will have to add it to acconfig.h manually

Source Code

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

License

Copyright © 2008 Caolan McNamara caolan@skynet.ie
Copyright © 2008 Alexandre Duret-Lutz adl@gnu.org
Copyright © 2008 Matthew Mueller donut@azstarnet.com

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.