From aadefefba88afe4acbe64454650f24e7ce7c8d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 17 Dec 2015 13:39:01 +0100 Subject: [PATCH] configure: Don't use AG_GST_CHECK_FEATURE for checking for gio-unix-2.0 It's meant to be used for external plugins that can then all be disabled via --disable-external. gio-unix-2.0 however is just an optional dependency for the TCP unit test. Also when using AG_GST_CHECK_FEATURE like this, in the --disable-external part there needs to be an AM_CONDITIONAL for the feature with FALSE. --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 8546023294..5e7ea85784 100644 --- a/configure.ac +++ b/configure.ac @@ -704,12 +704,6 @@ AG_GST_CHECK_FEATURE(VORBIS, [Xiph Vorbis audio codec], vorbis, [ AG_GST_PKG_CHECK_MODULES(VORBIS, vorbis >= 1.0 vorbisenc >= 1.0) ]) -dnl *** gio-unix-2.0 for tests/check/pipelines/tcp.c *** -translit(dnm, m, l) AM_CONDITIONAL(USE_GIO_UNIX_2_0, true) -AG_GST_CHECK_FEATURE(GIO_UNIX_2_0, [glib GIO unix], gio-unix-2.0, [ - AG_GST_PKG_CHECK_MODULES(GIO_UNIX_2_0, gio-unix-2.0 >= 2.24) -]) - if test "x$HAVE_VORBIS" = "xyes"; then ac_cflags_save="$CFLAGS" AC_COMPILE_IFELSE([ @@ -751,6 +745,12 @@ AM_CONDITIONAL(HAVE_FT2, test "x$HAVE_FT2" = "xyes") AC_SUBST(FT2_CFLAGS) AC_SUBST(FT2_LIBS) +dnl *** gio-unix-2.0 for tests/check/pipelines/tcp.c *** +PKG_CHECK_MODULES(GIO_UNIX_2_0, gio-unix-2.0 >= 2.24, + HAVE_GIO_UNIX_2_0="yes", + HAVE_GIO_UNIX_2_0="no") +AM_CONDITIONAL(USE_GIO_UNIX_2_0, test "x$HAVE_GIO_UNIX_2_0" = "xyes") + dnl *** finalize CFLAGS, LDFLAGS, LIBS dnl Overview: