Damjan Jovanovic <[email protected]> writes: > @@ -676,6 +676,22 @@ AC_CHECK_HEADERS([linux/videodev.h linux/videodev2.h > libv4l1.h],,, > #include <asm/types.h> > #endif]) > > +dnl **** Check for libv4l1.h **** > +if test "x$with_v4l" != "xno" > +then > + ac_save_CPPFLAGS="$CPPFLAGS" > + if test "$PKG_CONFIG" != "false" > + then > + ac_libv4l1_libs="`$PKG_CONFIG --libs libv4l1 2>/dev/null`" > + ac_libv4l1_cflags="`$PKG_CONFIG --cflags libv4l1 2>/dev/null`" > + CPPFLAGS="$CPPFLAGS $ac_libv4l1_cflags" > + AC_CHECK_TYPES([struct video_picture],,,[#include <libv4l1.h>]) > + fi > + CPPFLAGS="$ac_save_CPPFLAGS" > + WINE_NOTICE_WITH(libv4l1,[test "x$ac_cv_type_struct_video_picture" = > "x"], > + [libv4l1 ${notice_platform}development files not found or too old.]) > +fi
It doesn't make sense to use pkg-config for the test since we don't use it when including the header. -- Alexandre Julliard [email protected]
