From af1f5b95a241096c7535a679351a2b3a6d4378c1 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 3 Dec 2003 12:49:29 +0000 Subject: fix X dependencies Original commit message from CVS: fix X dependencies --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8563f09f..f3704eb0 100644 --- a/configure.ac +++ b/configure.ac @@ -419,11 +419,16 @@ dnl *** Video 4 Linux *** dnl for information about the header/define, see sys/v4l/gstv4lelement.h translit(dnm, m, l) AM_CONDITIONAL(USE_V4L, true) GST_CHECK_FEATURE(V4L, [Video 4 Linux], v4lsrc v4lmjpegsrc v4lmjpegsink, [ - AC_CHECK_DECL(VID_TYPE_MPEG_ENCODER, HAVE_V4L="yes", HAVE_V4L="no", [ + # first check X + HAVE_V4L="no" + if test "$HAVE_X" == "yes" + then + AC_CHECK_DECL(VID_TYPE_MPEG_ENCODER, HAVE_V4L="yes", HAVE_V4L="no", [ #include #define _LINUX_TIME_H #include - ]) + ]) + fi ]) dnl *** Video 4 Linux 2*** -- cgit v1.2.1