aria2/m4/libexpat.m4
Tatsuhiro Tsujikawa 7e5814f0f9 Check with pkg-config only: c-ares, openssl, sqlite3 and zlib.
Removed --with-*-prefix configure option for c-ares, openssl, sqlite3,
zlib and expat. Use CPPFLAGS and/or PKG_CONFIG_PATH instead.
2012-04-07 21:30:32 +09:00

18 lines
359 B
Plaintext

AC_DEFUN([AM_PATH_LIBEXPAT],
[
LIBS_save=$LIBS
CPPFLAGS_save=$CPPFLAGS
LIBS="-lexpat $LIBS"
AC_CHECK_LIB([expat], [XML_ParserCreate], [have_libexpat=yes])
if test "x$have_libexpat" = "xyes"; then
AC_DEFINE([HAVE_LIBEXPAT], [1], [Define to 1 if you have libexpat.])
EXPAT_LIBS=-lexpat
EXPAT_CFLAGS=
fi
LIBS=$LIBS_save
CPPFLAGS=$CPPFLAGS_save
])