Fix for build failure or i386 arch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pwlib (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This patch fixes build failure for i386 -> https:/
#! /bin/sh /usr/share/
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad pwlib-1.
--- pwlib-1.
+++ pwlib-1.
@@ -4322,15 +4322,9 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#ifdef __linux__
-#include <linux/types.h>
-#include <linux/time.h>
-#else
-#ifdef __sun
-#include <sys/types.h>
-#include <sys/time.h>
-#endif
-#endif
+ #ifdef __linux__
+ #include <linux/types.h>
+ #endif
#include <$VIDEODEV>
@@ -4367,6 +4361,74 @@
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_
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 <sys/types.h>
+ #include <linux/types.h>
+ #else
+ #ifdef __sun
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #endif
+ #endif
+
+int
+main ()
+{
+
+ return 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try=
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_
+ *) 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.
+
+ 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_
enableval=
diff -urNad pwlib-1.
--- pwlib-1.
+++ pwlib-1.
@@ -133,18 +133,40 @@
else
VIDEODEV=
fi
- AC_CHECK_
-[
-#ifdef __linux__
-#include <linux/types.h>
-#include <linux/time.h>
-#else
-#ifdef __sun
-#include <sys/types.h>
-#include <sys/time.h>
-#endif
-#endif
-])
+ AC_CHECK_
+ [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_
+ AC_TRY_COMPILE([
+ #ifdef __linux__
+ #include <sys/types.h>
+ #include <linux/types.h>
+ #else
+ #ifdef __sun
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #endif
+ #endif
+ ],
+ [
+ return 0;
+ ],
+ [
+ V4L2HDR=1
+ AC_MSG_RESULT(yes)
+ ],
+ [
+ AC_MSG_RESULT(no)
+ ])
+ ],
+ [
+ #ifdef __linux__
+ #include <linux/types.h>
+ #endif
+ ])
AC_MSG_
if test "${V4L2HDR}z" != "z"; then
AC_
@@ -154,6 +176,7 @@
fi
fi
+
dnl #######
dnl check for BSD video capture support
dnl #######
Here is an attached patch. Sorry about posting patch inline.