mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
8b295e1332
Another part of the implementation of #1891.
37 lines
776 B
Plaintext
37 lines
776 B
Plaintext
dnl
|
|
dnl Check for pugixml
|
|
dnl
|
|
|
|
PKG_CHECK_EXISTS([pugixml],[pugixml_found=yes],[pugixml_found=no])
|
|
|
|
if test x"$pugixml_found" = xyes; then
|
|
PKG_CHECK_MODULES([PUGIXML],[pugixml],[pugixml_found=yes],[pugixml_found=no])
|
|
fi
|
|
|
|
if test x"$pugixml_found" = xno; then
|
|
AC_LANG_PUSH(C++)
|
|
|
|
AC_CHECK_HEADERS([pugixml.hpp])
|
|
|
|
if test x"$ac_cv_header_pugixml_hpp" = xyes; then
|
|
AC_CHECK_LIB([pugixml], [main], [
|
|
PUGIXML_LIBS=-lpugixml
|
|
pugixml_found=yes
|
|
])
|
|
fi
|
|
|
|
AC_LANG_POP
|
|
fi
|
|
|
|
if test $pugixml_found = yes; then
|
|
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])
|
|
PUGIXML_CFLAGS=
|
|
PUGIXML_INTERNAL=yes
|
|
PUGIXML_LIBS=
|
|
fi
|
|
|
|
AC_SUBST(PUGIXML_INTERNAL)
|