The following macros check for the presence of certain C, C++ or Fortran 77 library archive files.
action-if-found is a list of shell commands to run if the link
with the library succeeds; action-if-not-found is a list of
shell commands to run if the link fails. If action-if-found is
not specified, the default action will add `-llibrary' to
LIBS
and define `HAVE_LIBlibrary' (in all capitals).
If linking with library results in unresolved symbols, which would be resolved by linking with additional libraries, give those libraries as the other-libraries argument, separated by spaces: `-lXt -lX11'. Otherwise this macro will fail to detect that library is present, because linking the test program will always fail with unresolved symbols.
AC_CHECK_LIB
with a
function argument of main
. In addition, library can
be written as any of `foo', `-lfoo', or `libfoo.a'. In
all of those cases, the compiler is passed `-lfoo'. However,
library can not be a shell variable; it must be a literal name.
This macro is considered obsolete.
AC_TRY_LINK_FUNC
first
with no libraries, then for each library listed in search-libs.
If the function is found, run action-if-found, otherwise run action-if-not-found.
If linking with library results in unresolved symbols, which would be resolved by linking with additional libraries, give those libraries as the other-libraries argument, separated by spaces: `-lXt -lX11'. Otherwise this macro will fail to detect that function is present, because linking the test program will always fail with unresolved symbols.
AC_TRY_LINK_FUNC
once for each
library listed in search-libs. Add `-llibrary' to
LIBS
for the first library found to contain function, and
execute action-if-found. Otherwise execute
action-if-not-found.
Go to the first, previous, next, last section, table of contents.