Public bug reported:
This patch fixes build failure for i386 ->
https://launchpad.net/+builds/+build/331631
#! /bin/sh /usr/share/dpatch/dpatch-run
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad pwlib-1.10.7~/plugins/configure pwlib-1.10.7/plugins/configure
--- pwlib-1.10.7~/plugins/configure 2007-02-19 17:28:42.0 -0500
+++ pwlib-1.10.7/plugins/configure 2007-05-20 09:07:06.0 -0400
@@ -4322,15 +4322,9 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#ifdef __linux__
-#include
-#include
-#else
-#ifdef __sun
-#include
-#include
-#endif
-#endif
+ #ifdef __linux__
+ #include
+ #endif
#include <$VIDEODEV>
@@ -4367,6 +4361,74 @@
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
V4L2HDR=1
+else
+
+ # We can't use AC_CHECK_HEADER again because
+# the value is cached, perhaps we have another
+# method to do this more cleanly ?
+ { echo "$as_me:$LINENO: checking for $VIDEODEV with
sys/types.h" >&5
+echo $ECHO_N "checking for $VIDEODEV with sys/types.h... $ECHO_C" >&6; }
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+ #ifdef __linux__
+ #include
+ #include
+#else
+#ifdef __sun
+#include
+#include
+#endif
+ #endif
+
+int
+main ()
+{
+
+ return 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+test -z "$ac_c_werror_flag" ||
+test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+
+ V4L2HDR=1
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
fi
@@ -4384,6 +4446,7 @@
fi
+
# Check whether --enable-bsdvideo was given.
if test "${enable_bsdvideo+set}" = set; then
enableval=$enable_bsdvideo;
diff -urNad pwlib-1.10.7~/plugins/configure.in pwlib-1.10.7/plugins/configure.in
--- pwlib-1.10.7~/plugins/configure.in 2007-02-19 17:28:42.0 -0500
+++ pwlib-1.10.7/plugins/configure.in 2007-05-20 09:06:44.0 -0400
@@ -133,18 +133,40 @@
else
VIDEODEV="linux/videodev2.h"
fi
- AC_CHECK_HEADER($VIDEODEV, [V4L2HDR=1], [],
-[
-#ifdef __linux__
-#include
-#include
-#else
-#ifdef __sun
-#include
-#include
-#endif
-#endif
-])
+ AC_CHECK_HEADER($VIDEODEV,
+ [V4L2HDR=1],
+ [
+ # We can't use AC_CHECK_HEADER again because
+# the value is cached, perhaps we have another
+# method to do this more cleanly ?
+ AC_MSG_CHECKING([for $VIDEODEV with sys/types.h])
+ AC_TRY_COMPILE([
+ #ifdef __linux__
+ #include
+ #include
+#else
+#ifdef __sun
+#include
+#include
+#endif
+ #endif
+ ],
+ [
+ return 0;
+ ],
+ [
+ V4L2HDR=1
+ AC_MSG_RESULT(yes)
+ ],
+[
+ AC_MSG_RESULT(no)
+])
+ ],
+ [
+ #ifdef __linux__
+ #i