ax_lib_expat

Synopsis

AX_LIB_EXPAT([MINIMUM-VERSION])

Description

This macro provides tests of availability of Expat XML Parser of particular version or newer. This macro checks for Expat XML Parser headers and libraries and defines compilation flags

Macro supports following options and their values:

1) Single-option usage:

  --with-expat      -- yes, no, or path to Expat XML Parser
                       installation prefix

2) Three-options usage (all options are required):

  --with-expat=yes
  --with-expat-inc  -- path to base directory with Expat headers
  --with-expat-lib  -- linker flags for Expat

This macro calls:

  AC_SUBST(EXPAT_CFLAGS)
  AC_SUBST(EXPAT_LIBS)
  AC_SUBST(EXPAT_LDFLAGS)
  AC_SUBST(EXPAT_VERSION)  -- only if version requirement is used

And sets:

  HAVE_EXPAT

Source Code

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

License

Copyright © 2008 Mateusz Loskot 

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.