diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-12-07 11:51:06 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-12-07 11:51:06 +0000 |
commit | 6045404cdc43fd1de2472897276345bac8f02971 (patch) | |
tree | a094b7d8e1d92f55772cb65610b7905f67ce0489 | |
parent | 414ec2186a6377cb086f4f6975fec36db68be8a5 (diff) | |
download | gst-plugins-bad-6045404cdc43fd1de2472897276345bac8f02971.tar.gz gst-plugins-bad-6045404cdc43fd1de2472897276345bac8f02971.tar.bz2 gst-plugins-bad-6045404cdc43fd1de2472897276345bac8f02971.zip |
Fix v4l detection (it requires X, but X is detected after v4l, so this needed to be swapped). Also add X requirement ...
Original commit message from CVS:
Fix v4l detection (it requires X, but X is detected after v4l, so this needed to be swapped). Also add X requirement to v4l2
-rw-r--r-- | configure.ac | 82 |
1 files changed, 44 insertions, 38 deletions
diff --git a/configure.ac b/configure.ac index db914fda..7f6ea848 100644 --- a/configure.ac +++ b/configure.ac @@ -415,44 +415,6 @@ GST_CHECK_FEATURE(QCAM, [QuickCam], qcamsrc, [ fi ]) -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, [ - # 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 <sys/types.h> -#define _LINUX_TIME_H -#include <linux/videodev.h> - ]) - fi -]) - -dnl *** Video 4 Linux 2*** -dnl for information about the header/define, see sys/v4l2/gstv4l2element.h -translit(dnm, m, l) AM_CONDITIONAL(USE_V4L2, true) -GST_CHECK_FEATURE(V4L2, [Video 4 Linux 2], v4l2src, [ - AC_MSG_CHECKING([Checking for uptodate v4l2 installation]) - AC_TRY_COMPILE([ -#include <sys/types.h> -#include <linux/types.h> -#define _LINUX_TIME_H -#include <linux/videodev2.h> -#if defined(V4L2_MAJOR_VERSION) || defined(V4L2_MINOR_VERSION) -#error too early v4l2 version or no v4l2 at all -#endif - ], [ -return 0; - ], [ HAVE_V4L2="yes" && AC_MSG_RESULT(yes)], - [ HAVE_V4L2="no" && AC_MSG_RESULT(no) && - AC_CHECK_HEADER(linux/videodev2.h, - [ AC_MSG_WARN([video4linux2 headers were found, but they're old. Please update v4l2 to compile the v4l2 plugins])], - [ AC_MSG_WARN([video4linux2 was not found])])]) -]) - dnl *** Video CD *** translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true) GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [ @@ -582,6 +544,50 @@ GST_CHECK_FEATURE(XSHM, [X Shared Memory extension], xshm, [ AC_SUBST(XSHM_LIBS) ] ) +dnl v4l/v4l2 checks have been moved down because they require X + +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, [ + # 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 <sys/types.h> +#define _LINUX_TIME_H +#include <linux/videodev.h> + ]) + fi +]) + +dnl *** Video 4 Linux 2*** +dnl for information about the header/define, see sys/v4l2/gstv4l2element.h +translit(dnm, m, l) AM_CONDITIONAL(USE_V4L2, true) +GST_CHECK_FEATURE(V4L2, [Video 4 Linux 2], v4l2src, [ + HAVE_V4L2="no" + if test "$HAVE_X" == "yes" + then + AC_MSG_CHECKING([Checking for uptodate v4l2 installation]) + AC_TRY_COMPILE([ +#include <sys/types.h> +#include <linux/types.h> +#define _LINUX_TIME_H +#include <linux/videodev2.h> +#if defined(V4L2_MAJOR_VERSION) || defined(V4L2_MINOR_VERSION) +#error too early v4l2 version or no v4l2 at all +#endif + ], [ +return 0; + ], [ HAVE_V4L2="yes" && AC_MSG_RESULT(yes)], + [ HAVE_V4L2="no" && AC_MSG_RESULT(no) && + AC_CHECK_HEADER(linux/videodev2.h, + [ AC_MSG_WARN([video4linux2 headers were found, but they're old. Please update v4l2 to compile the v4l2 plugins])], + [ AC_MSG_WARN([video4linux2 was not found])])]) + fi +]) + dnl Next, check for the optional libraries: dnl These are all libraries used in building plug-ins dnl ================================================ |