mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Fixed issue where AC_CHECK_LIB was polluting LIBS with -lxml.
Original commit message from CVS: Fixed issue where AC_CHECK_LIB was polluting LIBS with -lxml.
This commit is contained in:
parent
f867411c2e
commit
4078620947
1 changed files with 6 additions and 0 deletions
|
@ -208,11 +208,17 @@ AC_PATH_PROG(XML_CONFIG, xml-config, no)
|
|||
if test x$XML_CONFIG = xno; then
|
||||
AC_MSG_ERROR(Couldn't find xml-config)
|
||||
fi
|
||||
xml_save_LIBS=$LIBS
|
||||
xml_save_CFLAGS=$CFLAGS
|
||||
XML_LIBS=`xml-config --libs`
|
||||
XML_CFLAGS=`xml-config --cflags`
|
||||
LIBS=$XML_LIBS
|
||||
CFLAGS=$XML_CFLAGS
|
||||
AC_CHECK_LIB(xml, xmlDocGetRootElement, ,
|
||||
[ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ],
|
||||
$XML_LIBS)
|
||||
LIBS=$xml_save_LIBS
|
||||
CFLAGS=$xml_save_CFLAGS
|
||||
AC_SUBST(XML_LIBS)
|
||||
AC_SUBST(XML_CFLAGS)
|
||||
CORE_LIBS="$CORE_LIBS $XML_LIBS"
|
||||
|
|
Loading…
Reference in a new issue