[#3174] Send error message oif libyaml or yaml.h not present in configuration

This commit is contained in:
Alexandre Savard
2010-07-15 17:11:52 -04:00
parent ccac7e7307
commit 2970fbd30d

View File

@ -269,11 +269,11 @@ AC_SUBST(xml_CFLAGS)
AC_SUBST(xml_LIBS)
AC_CHECK_LIB([yaml], yaml_parser_initialize,
[AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false)],
[AC_CHECK_HEADERS(yaml.h, have_yaml=true, have_yaml=false)],
have_yaml = false)
if ! $have_yaml; then
AC_MSG_ERROR([You need the eXpat xml parser]
AC_MSG_ERROR([You need the libyaml yaml parser]
[http://expat.sourceforge.net/])
fi