mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
configure: fix AC_LANG_SOURCE-related warnings when doing autogen.sh
This commit is contained in:
parent
6589c56157
commit
30fe3b7bad
2 changed files with 13 additions and 9 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit bb15f1a28b56d86380ed113cab88ed596b1ad452
|
||||
Subproject commit 4b51fb8ae1a8e2019010305cc96c8397dc68000d
|
20
configure.ac
20
configure.ac
|
@ -180,14 +180,18 @@ AC_CHECK_HEADERS([malloc.h])
|
|||
|
||||
ac_cppflags_save="$CPPFLAGS"
|
||||
CPPFLAGS="`$PKG_CONFIG --cflags libxml-2.0`"
|
||||
AC_COMPILE_IFELSE(
|
||||
AC_LANG_PROGRAM([
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
#include <libxml/HTMLparser.h>
|
||||
],[
|
||||
]],[[
|
||||
#ifndef LIBXML_HTML_ENABLED
|
||||
#error libxml2 has no HTML support
|
||||
#endif /* LIBXML_HTML_ENABLED */
|
||||
]), HAVE_LIBXML_HTML="yes", HAVE_LIBXML_HTML="no")
|
||||
]])], [
|
||||
HAVE_LIBXML_HTML="yes"
|
||||
], [
|
||||
HAVE_LIBXML_HTML="no"
|
||||
])
|
||||
CPPFLAGS="$ac_cppflags_save"
|
||||
AM_CONDITIONAL(HAVE_LIBXML_HTML, test "x$HAVE_LIBXML_HTML" = "xyes")
|
||||
|
||||
|
@ -812,14 +816,14 @@ AG_GST_CHECK_FEATURE(VORBIS, [Xiph Vorbis audio codec], vorbis, [
|
|||
|
||||
if test "x$HAVE_VORBIS" = "xyes"; then
|
||||
ac_cflags_save="$CFLAGS"
|
||||
AC_COMPILE_IFELSE(
|
||||
AC_LANG_PROGRAM([
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
#include <vorbis/codec.h>
|
||||
],[
|
||||
]],[[
|
||||
vorbis_dsp_state *v;
|
||||
|
||||
vorbis_synthesis_restart (v);
|
||||
]), HAVE_VSR=yes, HAVE_VSR=no)
|
||||
]])], HAVE_VSR=yes, HAVE_VSR=no)
|
||||
if test "x$HAVE_VSR" = "xyes"; then
|
||||
AC_DEFINE_UNQUOTED(HAVE_VORBIS_SYNTHESIS_RESTART, 1,
|
||||
[defined if vorbis_synthesis_restart is present])
|
||||
|
|
Loading…
Reference in a new issue