-dnl ------ EXPAT
-expat=no
-AC_ARG_WITH(expat, [ --with-expat[=DIR] EXPAT library in DIR],[expat=$withval])
-if test "$expat" != "no"; then
- xLIBS="$LIBS";
- xCFLAGS="$CFLAGS";
- if test "$expat" != "yes"; then
- EXPAT_CFLAGS="-I$expat/include"
- EXPAT_LIBS="-L$expat/lib"
- CFLAGS="$EXPAT_CFLAGS $CFLAGS"
- LIBS="$EXPAT_LIBS $LIBS"
- fi
- AC_CHECK_LIB(expat,XML_ParserCreate,[LIBS="$LIBS -lexpat"])
- if test "$ac_cv_lib_expat_XML_ParserCreate" = "yes"; then
- AC_CHECK_HEADERS(expat.h)
- if test "$ac_cv_header_expat_h" = "yes"; then
- YAZ_CONF_CFLAGS="$YAZ_CONF_CFLAGS -DYAZ_HAVE_EXPAT=1"
- fi
- else
- LIBS="$xLIBS"
- CFLAGS="$xCFLAGS"
- fi
-fi
-dnl