From c7ed96db836509bfc933c2be08dcbd63dff54589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 13 Nov 2016 01:52:56 +0100 Subject: Kopete: Improve check for videodev header This resolves bug 2725 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kopete/libkopete/avdevice/configure.in.in | 43 ------------------------------- kopete/libkopete/avdevice/videocontrol.h | 4 +-- kopete/libkopete/avdevice/videodevice.h | 10 +++---- 3 files changed, 6 insertions(+), 51 deletions(-) delete mode 100644 kopete/libkopete/avdevice/configure.in.in (limited to 'kopete/libkopete/avdevice') diff --git a/kopete/libkopete/avdevice/configure.in.in b/kopete/libkopete/avdevice/configure.in.in deleted file mode 100644 index 4a446c03..00000000 --- a/kopete/libkopete/avdevice/configure.in.in +++ /dev/null @@ -1,43 +0,0 @@ -# -- Check for libv4l1-videodev.h presence -------------------- - -AC_MSG_CHECKING([for libv4l1-videodev.h]) - -AC_TRY_COMPILE([ -#include -], -[ -], - ac_have_libv4l1_videodev_h=yes -, - ac_have_libv4l1_videodev_h=no -) - -if test $ac_have_libv4l1_videodev_h = yes; then - AC_DEFINE(HAVE_LIBV4L1_VIDEODEV_H, 1, [Define if you have libv4l1-videodev.h installed]) -fi - -AC_MSG_RESULT($ac_have_libv4l1_videodev_h) - -# -- End libv4l1-videodev.h ---------------------------------------------- - -# -- Check for installed videodev headers -------------------- - -AC_MSG_CHECKING([for videodev.h]) - -AC_TRY_COMPILE([ -#include -], -[ -], - ac_have_videodev_h=yes -, - ac_have_videodev_h=no -) - -if test $ac_have_videodev_h = yes; then - AC_DEFINE(HAVE_LINUX_VIDEODEV_H, 1, [Define if you have videodev.h installed]) -fi - -AC_MSG_RESULT($ac_have_videodev_h) - -# -- End videodev ---------------------------------------------- diff --git a/kopete/libkopete/avdevice/videocontrol.h b/kopete/libkopete/avdevice/videocontrol.h index e2d89756..af6b5138 100644 --- a/kopete/libkopete/avdevice/videocontrol.h +++ b/kopete/libkopete/avdevice/videocontrol.h @@ -21,8 +21,8 @@ #if defined HAVE_CONFIG_H #include #endif -#if defined HAVE_LINUX_VIDEODEV_H -#include +#if defined VIDEODEV_HEADER +#include VIDEODEV_HEADER #endif #if defined(__linux__) #include diff --git a/kopete/libkopete/avdevice/videodevice.h b/kopete/libkopete/avdevice/videodevice.h index dd9047c9..970f6655 100644 --- a/kopete/libkopete/avdevice/videodevice.h +++ b/kopete/libkopete/avdevice/videodevice.h @@ -35,8 +35,8 @@ #if (defined(__linux__) || defined(__FreeBSD__)) && defined(ENABLE_AV) -#if defined HAVE_LINUX_VIDEODEV_H -#include +#if defined VIDEODEV_HEADER +#include VIDEODEV_HEADER #endif #if defined(__linux__) #include @@ -59,10 +59,8 @@ #include #include #endif -#if defined(HAVE_LIBV4L1_VIDEODEV_H) -#include -#elif defined(HAVE_LINUX_VIDEODEV_H) -#include +#if defined(VIDEODEV_HEADER) +#include VIDEODEV_HEADER #else #undef ENABLE_AV #endif -- cgit v1.2.1