update php-apc to 3.0.16, disable pthread mutex's as they are on by default now.
[openwrt/svn-archive/archive.git] / net / dovecot / patches / configure.in.patch
1 --- ./configure.in.dovecot 2005-07-30 23:44:48.571463846 +0100
2 +++ ./configure.in 2005-07-31 00:22:17.564381142 +0100
3 @@ -529,7 +529,22 @@
4 echo "..ignoring as requested.."
5 ],[
6 AC_MSG_RESULT(no)
7 -],[])
8 +],[
9 +
10 + AC_MSG_RESULT(can't check)
11 +
12 + echo
13 + echo "You are cross compiling so I can't tell if the destination uses a signed"
14 + echo "size_t. Dovecot isn't designed to work with a signed size_t, It probably"
15 + echo "works just fine, but it's less resistant to buffer overflows."
16 + echo "You may want to manually check what your target uses for size_t."
17 + echo "To compile Dovecot anyway, set ignore_signed_size=1 environment."
18 +
19 + if test "$ignore_signed_size" = ""; then
20 + AC_MSG_ERROR([aborting])
21 + fi
22 + echo "..proceeding as requested.."
23 +])
24
25 dnl Note: we check size_t rather than ssize_t here, because on OSX 10.2
26 dnl ssize_t = int and size_t = unsigned long. We're mostly concerned about
27 @@ -659,7 +674,10 @@
28 ], [
29 AC_MSG_RESULT([check failed, assuming 31])
30 max_bits=31
31 -],[])
32 +],[
33 + AC_MSG_RESULT([cross compiling, assuming 31])
34 + max_bits=31
35 +])
36 AC_DEFINE_UNQUOTED(TIME_T_MAX_BITS, $max_bits, max. time_t bits gmtime() can handle)
37
38 dnl * do we have struct iovec
39 @@ -768,6 +786,8 @@
40 ], [
41 AC_MSG_RESULT(no)
42 AC_DEFINE(MMAP_CONFLICTS_WRITE,, [Define if shared mmaps don't get updated by write()s])
43 +], [
44 + AC_MSG_RESULT(cross-compiling so target PROBABLY isn't the buggy version of OpenBSD)
45 ])
46
47 dnl * see if fd passing works
48 @@ -831,6 +851,9 @@
49 if test $i = 2; then
50 AC_MSG_RESULT(no)
51 fi
52 + ], [
53 + CFLAGS=$old_cflags
54 + AC_MSG_RESULT(cross compiling so target probably isn't 64 bit)
55 ])
56 done
57
58 @@ -878,7 +901,7 @@
59 dnl ***
60
61 AC_CACHE_CHECK([for an implementation of va_copy()],lib_cv_va_copy,[
62 - AC_RUN_IFELSE([AC_LANG_SOURCE([[
63 + AC_LINK_IFELSE([AC_LANG_SOURCE([[
64 #include <stdarg.h>
65 void f (int i, ...) {
66 va_list args1, args2;
67 @@ -896,7 +919,7 @@
68 [lib_cv_va_copy=no],[])
69 ])
70 AC_CACHE_CHECK([for an implementation of __va_copy()],lib_cv___va_copy,[
71 - AC_RUN_IFELSE([AC_LANG_SOURCE([[
72 + AC_LINK_IFELSE([AC_LANG_SOURCE([[
73 #include <stdarg.h>
74 void f (int i, ...) {
75 va_list args1, args2;
76 @@ -941,7 +964,8 @@
77 return 0;
78 }]])],
79 [lib_cv_va_val_copy=yes],
80 - [lib_cv_va_val_copy=no],[])
81 + [lib_cv_va_val_copy=no],
82 + [lib_cv_va_val_copy=yes])
83 ])
84
85 if test "x$lib_cv_va_val_copy" = "xno"; then