2014-12-05 11:35:39 +00:00
|
|
|
dnl
|
|
|
|
dnl Check for pugixml
|
|
|
|
dnl
|
|
|
|
|
2017-02-13 19:47:45 +00:00
|
|
|
PKG_CHECK_EXISTS([pugixml],[pugixml_found=yes],[pugixml_found=no])
|
2014-12-05 11:35:39 +00:00
|
|
|
|
2017-02-13 19:47:45 +00:00
|
|
|
if test x"$pugixml_found" = xyes; then
|
|
|
|
PKG_CHECK_MODULES([PUGIXML],[pugixml],[pugixml_found=yes],[pugixml_found=no])
|
2014-12-05 11:35:39 +00:00
|
|
|
fi
|
|
|
|
|
2017-02-13 19:47:45 +00:00
|
|
|
if test x"$pugixml_found" = xno; then
|
2017-02-13 20:37:29 +00:00
|
|
|
AC_LANG_PUSH(C++)
|
2017-02-13 19:47:45 +00:00
|
|
|
|
|
|
|
AC_CHECK_HEADERS([pugixml.hpp])
|
|
|
|
|
|
|
|
if test x"$ac_cv_header_pugixml_hpp" = xyes; then
|
2017-02-13 20:37:29 +00:00
|
|
|
AC_CHECK_LIB([pugixml], [main], [
|
|
|
|
PUGIXML_LIBS=-lpugixml
|
|
|
|
pugixml_found=yes
|
|
|
|
])
|
2017-02-13 19:47:45 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_LANG_POP
|
|
|
|
fi
|
2014-12-05 11:35:39 +00:00
|
|
|
|
2017-02-13 19:47:45 +00:00
|
|
|
if test $pugixml_found = yes; then
|
2014-12-05 11:35:39 +00:00
|
|
|
AC_MSG_NOTICE([Using the system version of the pugixml library])
|
|
|
|
PUGIXML_INTERNAL=no
|
|
|
|
else
|
|
|
|
AC_MSG_NOTICE([Using the internal version of the pugixml library])
|
2017-02-13 20:37:29 +00:00
|
|
|
PUGIXML_CFLAGS=
|
2014-12-05 11:35:39 +00:00
|
|
|
PUGIXML_INTERNAL=yes
|
2017-02-13 20:37:29 +00:00
|
|
|
PUGIXML_LIBS=
|
2014-12-05 11:35:39 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(PUGIXML_INTERNAL)
|