summaryrefslogtreecommitdiffstats
path: root/kstars/configure.in.in
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-23 22:01:39 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-23 22:01:39 -0500
commitab9a2a8b5e5b805595b3cf50be392c119e9af8b8 (patch)
treee7a25b018cf5cecc7034e1e7301212e1cc25e53d /kstars/configure.in.in
parentc2c964bb417a82b94a7a19da76343e95795cb6f1 (diff)
downloadtdeedu-ab9a2a8b5e5b805595b3cf50be392c119e9af8b8.tar.gz
tdeedu-ab9a2a8b5e5b805595b3cf50be392c119e9af8b8.zip
Fix kstars not detecting videodev2.h
This resolves Bug 1372
Diffstat (limited to 'kstars/configure.in.in')
-rw-r--r--kstars/configure.in.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/kstars/configure.in.in b/kstars/configure.in.in
index 19f17c3b..f5fad3c4 100644
--- a/kstars/configure.in.in
+++ b/kstars/configure.in.in
@@ -87,7 +87,18 @@ case "$target" in
[have_v4l2=true],
[have_v4l2=false],
[#include <sys/time.h>
-#include <linux/videodev.h>])
+ #include <linux/videodev2.h>])
+ if test x$have_v4l2 = xfalse; then
+ unset ac_cv_type_struct_v4l2_buffer
+ AC_CHECK_TYPE([struct v4l2_buffer],
+ [have_v4l2=true],
+ [have_v4l2=false],
+ [#include <sys/time.h>
+ #include <linux/videodev.h>])
+ if test x$have_v4l2 = xtrue; then
+ AC_DEFINE(HAVE_LINUX_ALTERNATE_VIDEODEV_H, 1, [Define to 1 if you have the <linux/videodev.h> header file.])
+ fi
+ fi
if test x$have_v4l2 = xfalse; then
KERNEL_VERSION=`uname -r`
AC_CHECK_FILE(/lib/modules/$KERNEL_VERSION/build/include/linux/videodev2.h,