patches/kino-01-configure.diff
author drdoug007
Tue, 04 Sep 2007 11:25:04 +0000
changeset 446 6c4d4de60f5e
permissions -rw-r--r--
2007-09-04 Doug Scott <[email protected]> * SFEkino.spec: *NEW* DV editing utility * SFEdvgrab.spec: Added devel package * base-specs/kino.spec: base spec * patches/kino-03-oss.diff: OSSV4 API patch * patches/kino-01-configure.diff: configure patch * patches/kino-05-headers.diff: Add Solaris headers * patches/kino-02-u_int.diff: add u_int types * patches/kino-04-v4l.diff: hack v4l stuf to make kino happy * patches/kino-06-tar.diff: use gtar * include/endian-compat.h: updated

--- kino-1.1.1/configure.in.orig	2007-09-04 15:28:00.511661355 +0700
+++ kino-1.1.1/configure.in	2007-09-04 15:30:25.101623938 +0700
@@ -32,6 +32,29 @@
 AC_SYS_LARGEFILE
 AC_DEFINE(_REENTRANT, 1, [multi-threading.])
 
+AC_CHECK_HEADERS(inttypes.h stdbool.h linux/input.h asm/types.h signal.h libgen.h)
+
+AC_MSG_CHECKING([if inttypes has u_int32_t etc])
+AC_COMPILE_IFELSE(
+    [AC_LANG_PROGRAM(
+        [[
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+        ]],[[
+    u_int32_t  s;
+    sleep((unsigned int)s);
+        ]]
+    )],
+    [AC_DEFINE(HAVE_U_INT_TYPES, 1, [Define to 1 if have u_int32_t types etc])
+    AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
+
 # ######################################################################
 # checks for critical DV and IEEE 1394 packages
 # ######################################################################