AX_caolan_SEARCH_PACKAGE(PACKAGE, FUNCTION, LIBRARY LIST, HEADERFILE [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
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 each of the LIBRARY LIST with AC_SEARCH_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
Download the latest version of ax_caolan_search_package.m4 or browse the macro’s revision history.
Copyright © 2009 Caolan McNamara firstname.lastname@example.org
Copyright © 2009 Alexandre Duret-Lutz email@example.com
Copyright © 2009 Matthew Mueller firstname.lastname@example.org
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.