diff --git a/kopete/libkopete/avdevice/configure.in.in b/kopete/libkopete/avdevice/configure.in.in new file mode 100644 index 00000000..34dd7523 --- /dev/null +++ b/kopete/libkopete/avdevice/configure.in.in @@ -0,0 +1,21 @@ +# -- 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 ---------------------------------------------- diff --git a/kopete/libkopete/avdevice/videodevice.h b/kopete/libkopete/avdevice/videodevice.h index 2482c183..7bba507e 100644 --- a/kopete/libkopete/avdevice/videodevice.h +++ b/kopete/libkopete/avdevice/videodevice.h @@ -52,7 +52,11 @@ #include #include +#if defined(HAVE_LIBV4L1_VIDEODEV_H) +#include +#else #include +#endif #define VIDEO_MODE_PAL_Nc 3 #define VIDEO_MODE_PAL_M 4 #define VIDEO_MODE_PAL_N 5