Do not use v4l-utils copy of kernel headers on non Linux architectures
authorGregor Jasny <gjasny@googlemail.com>
Wed, 8 Feb 2012 20:12:03 +0000 (21:12 +0100)
committerGregor Jasny <gjasny@googlemail.com>
Wed, 8 Feb 2012 20:12:03 +0000 (21:12 +0100)
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
configure.ac

index 053f846..ba68c82 100644 (file)
@@ -174,6 +174,10 @@ AS_IF([test x$with_libv4l != xyes], [AC_SUBST([ENFORCE_LIBV4L_STATIC], ["-static
 
 # misc
 
-CPPFLAGS="-I\$(top_srcdir)/include -I\$(top_srcdir)/lib/include -Wall -Wpointer-arith -D_GNU_SOURCE $CPPFLAGS"
+if test "x$linux_os" = "xyes"; then
+  CPPFLAGS="-I\$(top_srcdir)/include $CPPFLAGS"
+fi
+
+CPPFLAGS="-I\$(top_srcdir)/lib/include -Wall -Wpointer-arith -D_GNU_SOURCE $CPPFLAGS"
 
 AC_OUTPUT