dnl Check if --with-expat[=PREFIX] is specified and dnl Expat >= 1.95.0 is installed in the system. dnl If yes, substitute EXPAT_CFLAGS, EXPAT_LIBS with regard to dnl the specified PREFIX and set with_expat to PREFIX, or 'yes' if PREFIX dnl has not been specified. Also HAVE_LIBEXPAT, HAVE_EXPAT_H are defined. dnl If --with-expat has not been specified, set with_expat to 'no'. dnl In addition, an Automake conditional EXPAT_INSTALLED is set accordingly. dnl This is necessary to adapt a whole lot of packages that have expat dnl bundled as a static library. AC_DEFUN([AM_WITH_EXPAT], [ AC_ARG_WITH(expat, [ --with-expat=PREFIX Use system Expat library], , with_expat=no) AM_CONDITIONAL(EXPAT_INSTALLED, test $with_expat != no) EXPAT_CFLAGS= EXPAT_LIBS= if test $with_expat != no; then if test $with_expat != yes; then EXPAT_CFLAGS="-I$with_expat/include" EXPAT_LIBS="-L$with_expat/lib" fi AC_CHECK_LIB(expat, XML_ParserCreate, [ EXPAT_LIBS="$EXPAT_LIBS -lexpat" expat_found=yes ], [ expat_found=no ], "$EXPAT_LIBS") if test $expat_found = no; then AC_MSG_ERROR([Could not find the Expat library]) fi expat_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $EXPAT_CFLAGS" AC_CHECK_HEADERS(expat.h, , expat_found=no) if test $expat_found = no; then AC_MSG_ERROR([Could not find expat.h]) fi CFLAGS="$expat_save_CFLAGS" fi AC_SUBST(EXPAT_CFLAGS) AC_SUBST(EXPAT_LIBS) ])
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
codeset.m4 | File | 842 B | 0644 |
|
expat.m4 | File | 1.41 KB | 0644 |
|
extern-inline.m4 | File | 4.27 KB | 0644 |
|
fcntl-o.m4 | File | 4.56 KB | 0644 |
|
fontutil.m4 | File | 13.83 KB | 0644 |
|
freetype2.m4 | File | 6.18 KB | 0644 |
|
gettext.m4 | File | 15.49 KB | 0644 |
|
glib-2.0.m4 | File | 8.12 KB | 0644 |
|
glib-gettext.m4 | File | 15.38 KB | 0644 |
|
glibc2.m4 | File | 830 B | 0644 |
|
glibc21.m4 | File | 907 B | 0644 |
|
gsettings.m4 | File | 3.36 KB | 0644 |
|
iconv.m4 | File | 9.06 KB | 0644 |
|
intdiv0.m4 | File | 2.35 KB | 0644 |
|
intl.m4 | File | 11.84 KB | 0644 |
|
intldir.m4 | File | 917 B | 0644 |
|
intlmacosx.m4 | File | 2.47 KB | 0644 |
|
intmax.m4 | File | 1.1 KB | 0644 |
|
inttypes-pri.m4 | File | 1.22 KB | 0644 |
|
inttypes_h.m4 | File | 1020 B | 0644 |
|
lcmessage.m4 | File | 1.33 KB | 0644 |
|
lib-ld.m4 | File | 3.6 KB | 0644 |
|
lib-link.m4 | File | 32.28 KB | 0644 |
|
lib-prefix.m4 | File | 8.27 KB | 0644 |
|
libtool.m4 | File | 299.12 KB | 0644 |
|
libxml2.m4 | File | 7.7 KB | 0644 |
|
libxslt.m4 | File | 7.93 KB | 0644 |
|
lock.m4 | File | 1.43 KB | 0644 |
|
longlong.m4 | File | 4.63 KB | 0644 |
|
ltargz.m4 | File | 2.51 KB | 0644 |
|
ltdl.m4 | File | 29.34 KB | 0644 |
|
ltoptions.m4 | File | 14.17 KB | 0644 |
|
ltsugar.m4 | File | 4.28 KB | 0644 |
|
ltversion.m4 | File | 699 B | 0644 |
|
lt~obsolete.m4 | File | 6 KB | 0644 |
|
nls.m4 | File | 1.19 KB | 0644 |
|
pkg.m4 | File | 10.01 KB | 0644 |
|
po.m4 | File | 18.52 KB | 0644 |
|
printf-posix.m4 | File | 1.54 KB | 0644 |
|
progtest.m4 | File | 3.02 KB | 0644 |
|
size_max.m4 | File | 2.99 KB | 0644 |
|
stdint_h.m4 | File | 995 B | 0644 |
|
threadlib.m4 | File | 14.8 KB | 0644 |
|
uintmax_t.m4 | File | 1.09 KB | 0644 |
|
visibility.m4 | File | 3.27 KB | 0644 |
|
wchar_t.m4 | File | 818 B | 0644 |
|
wint_t.m4 | File | 1.03 KB | 0644 |
|
xsize.m4 | File | 406 B | 0644 |
|