summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-04-10 13:27:16 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-04-10 13:27:16 +0000
commit4c4871f13368ea5a47b607b14c620b1562aa3236 (patch)
tree2e04a9e6d3a3c09282627915473cd4aade25f7ee /configure.ac
parent1c54cab408dcdcbe2082f268cb429e0470381b25 (diff)
downloadgst-plugins-bad-4c4871f13368ea5a47b607b14c620b1562aa3236.tar.gz
gst-plugins-bad-4c4871f13368ea5a47b607b14c620b1562aa3236.tar.bz2
gst-plugins-bad-4c4871f13368ea5a47b607b14c620b1562aa3236.zip
Workaround for missing struct v4l2_buffer declaration in Suse 9 and Mandrake 10 linux/videodev2.h header file (#135919).
Original commit message from CVS: * configure.ac: * sys/v4l2/gstv4l2element.h: Workaround for missing struct v4l2_buffer declaration in Suse 9 and Mandrake 10 linux/videodev2.h header file (#135919).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7311bc78..b83f5bf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -635,6 +635,23 @@ return 0;
[ AC_MSG_WARN([video4linux2 was not found])])
])
fi
+ dnl check for missing v4l2_buffer declaration (see #135919)
+ if [ test x$HAVE_V4L2 = xyes ]; then
+ MISSING_DECL=0
+ AC_MSG_CHECKING(struct v4l2_buffer declaration)
+ AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <linux/types.h>
+#define _LINUX_TIME_H
+#include <linux/videodev2.h>
+ ],[
+struct v4l2_buffer buf;
+return 0;
+ ], [ AC_MSG_RESULT(yes) ], [ MISSING_DECL=1 && AC_MSG_RESULT(no) ])
+ if [ test x$MISSING_DECL = x1 ]; then
+ AC_DEFINE(GST_V4L2_MISSING_BUFDECL, 1, [struct v4l2_buffer missing])
+ fi
+ fi
])
dnl Next, check for the optional libraries: