| @@ -1,18 +1,18 @@ | | | @@ -1,18 +1,18 @@ |
1 | $NetBSD: patch-configure,v 1.1 2014/11/24 15:37:08 taca Exp $ | | 1 | $NetBSD: patch-configure,v 1.1.8.1 2015/10/04 14:03:38 bsiegert Exp $ |
2 | | | 2 | |
3 | --- configure.orig 2014-11-13 10:07:25.000000000 +0000 | | 3 | --- configure.orig 2015-09-30 07:18:32.000000000 +0000 |
4 | +++ configure | | 4 | +++ configure |
5 | @@ -8310,27 +8310,6 @@ EOF | | 5 | @@ -8315,27 +8315,6 @@ EOF |
6 | ;; | | 6 | ;; |
7 | esac | | 7 | esac |
8 | | | 8 | |
9 | - if test "$APACHE_VERSION" -lt 2004001; then | | 9 | - if test "$APACHE_VERSION" -lt 2004001; then |
10 | - APXS_MPM=`$APXS -q MPM_NAME` | | 10 | - APXS_MPM=`$APXS -q MPM_NAME` |
11 | - if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then | | 11 | - if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then |
12 | - | | 12 | - |
13 | - enable_maintainer_zts=yes | | 13 | - enable_maintainer_zts=yes |
14 | - if test "$pthreads_working" != "yes"; then | | 14 | - if test "$pthreads_working" != "yes"; then |
15 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 | | 15 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 |
16 | - fi | | 16 | - fi |
17 | - | | 17 | - |
18 | - fi | | 18 | - fi |
| @@ -20,27 +20,27 @@ $NetBSD: patch-configure,v 1.1 2014/11/2 | | | @@ -20,27 +20,27 @@ $NetBSD: patch-configure,v 1.1 2014/11/2 |
20 | - APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'` | | 20 | - APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'` |
21 | - if test -n "$APACHE_THREADED_MPM"; then | | 21 | - if test -n "$APACHE_THREADED_MPM"; then |
22 | - | | 22 | - |
23 | - enable_maintainer_zts=yes | | 23 | - enable_maintainer_zts=yes |
24 | - if test "$pthreads_working" != "yes"; then | | 24 | - if test "$pthreads_working" != "yes"; then |
25 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 | | 25 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 |
26 | - fi | | 26 | - fi |
27 | - | | 27 | - |
28 | - fi | | 28 | - fi |
29 | - fi | | 29 | - fi |
30 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 30 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
31 | $as_echo "yes" >&6; } | | 31 | $as_echo "yes" >&6; } |
32 | | | 32 | |
33 | @@ -9134,27 +9113,6 @@ EOF | | 33 | @@ -9139,27 +9118,6 @@ EOF |
34 | ;; | | 34 | ;; |
35 | esac | | 35 | esac |
36 | | | 36 | |
37 | - if test "$APACHE_VERSION" -lt 2004001; then | | 37 | - if test "$APACHE_VERSION" -lt 2004001; then |
38 | - APXS_MPM=`$APXS -q MPM_NAME` | | 38 | - APXS_MPM=`$APXS -q MPM_NAME` |
39 | - if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then | | 39 | - if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then |
40 | - | | 40 | - |
41 | - enable_maintainer_zts=yes | | 41 | - enable_maintainer_zts=yes |
42 | - if test "$pthreads_working" != "yes"; then | | 42 | - if test "$pthreads_working" != "yes"; then |
43 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 | | 43 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 |
44 | - fi | | 44 | - fi |
45 | - | | 45 | - |
46 | - fi | | 46 | - fi |
| @@ -48,99 +48,72 @@ $NetBSD: patch-configure,v 1.1 2014/11/2 | | | @@ -48,99 +48,72 @@ $NetBSD: patch-configure,v 1.1 2014/11/2 |
48 | - APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'` | | 48 | - APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'` |
49 | - if test -n "$APACHE_THREADED_MPM"; then | | 49 | - if test -n "$APACHE_THREADED_MPM"; then |
50 | - | | 50 | - |
51 | - enable_maintainer_zts=yes | | 51 | - enable_maintainer_zts=yes |
52 | - if test "$pthreads_working" != "yes"; then | | 52 | - if test "$pthreads_working" != "yes"; then |
53 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 | | 53 | - as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 |
54 | - fi | | 54 | - fi |
55 | - | | 55 | - |
56 | - fi | | 56 | - fi |
57 | - fi | | 57 | - fi |
58 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 58 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
59 | $as_echo "yes" >&6; } | | 59 | $as_echo "yes" >&6; } |
60 | | | 60 | |
61 | @@ -24596,7 +24554,7 @@ fi | | 61 | @@ -24712,7 +24670,7 @@ fi |
62 | if test "$found_openssl" = "no"; then | | 62 | if test "$found_openssl" = "no"; then |
63 | | | 63 | |
64 | if test "$PHP_OPENSSL_DIR" = "yes"; then | | 64 | if test "$PHP_OPENSSL_DIR" = "yes"; then |
65 | - PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" | | 65 | - PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" |
66 | + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /" | | 66 | + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /" |
67 | fi | | 67 | fi |
68 | | | 68 | |
69 | for i in $PHP_OPENSSL_DIR; do | | 69 | for i in $PHP_OPENSSL_DIR; do |
70 | @@ -26751,7 +26709,7 @@ $as_echo "yes" >&6; } | | 70 | @@ -26868,7 +26826,7 @@ $as_echo "yes" >&6; } |
71 | PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags" | | 71 | PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags" |
72 | | | 72 | |
73 | | | 73 | |
74 | - for header_file in ext/sqlite3/libsqlite/sqlite3.h; do | | 74 | - for header_file in ext/sqlite3/libsqlite/sqlite3.h; do |
75 | + for header_file; do | | 75 | + for header_file; do |
76 | | | 76 | |
77 | | | 77 | |
78 | unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` | | 78 | unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` |
79 | @@ -37864,7 +37822,7 @@ fi | | 79 | @@ -37981,7 +37939,7 @@ fi |
80 | if test "$found_openssl" = "no"; then | | 80 | if test "$found_openssl" = "no"; then |
81 | | | 81 | |
82 | if test "$PHP_OPENSSL_DIR" = "yes"; then | | 82 | if test "$PHP_OPENSSL_DIR" = "yes"; then |
83 | - PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" | | 83 | - PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" |
84 | + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /" | | 84 | + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /" |
85 | fi | | 85 | fi |
86 | | | 86 | |
87 | for i in $PHP_OPENSSL_DIR; do | | 87 | for i in $PHP_OPENSSL_DIR; do |
88 | @@ -49266,7 +49224,7 @@ fi | | 88 | @@ -49593,7 +49551,7 @@ fi |
89 | if test "$found_openssl" = "no"; then | | 89 | if test "$found_openssl" = "no"; then |
90 | | | 90 | |
91 | if test "$PHP_OPENSSL_DIR" = "yes"; then | | 91 | if test "$PHP_OPENSSL_DIR" = "yes"; then |
92 | - PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" | | 92 | - PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" |
93 | + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /" | | 93 | + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /" |
94 | fi | | 94 | fi |
95 | | | 95 | |
96 | for i in $PHP_OPENSSL_DIR; do | | 96 | for i in $PHP_OPENSSL_DIR; do |
97 | @@ -66188,7 +66146,7 @@ rm -f core *.core core.conftest.* gmon.o | | 97 | @@ -66618,7 +66576,7 @@ rm -f core *.core core.conftest.* gmon.o |
98 | fi | | 98 | fi |
99 | | | 99 | |
100 | | | 100 | |
101 | -if test "$flock_type" == "unknown"; then | | 101 | -if test "$flock_type" == "unknown"; then |
102 | +if test "$flock_type" = "unknown"; then | | 102 | +if test "$flock_type" = "unknown"; then |
103 | as_fn_error $? "Don't know how to define struct flock on this system, set --enable-opcache=no" "$LINENO" 5 | | 103 | as_fn_error $? "Don't know how to define struct flock on this system, set --enable-opcache=no" "$LINENO" 5 |
104 | fi | | 104 | fi |
105 | | | 105 | |
106 | @@ -106720,12 +106678,7 @@ old_CC=$CC | | 106 | @@ -107099,12 +107057,7 @@ old_CC=$CC |
107 | if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then | | 107 | if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then |
108 | CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags" | | 108 | CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags" |
109 | INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags" | | 109 | INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags" |
110 | - cat >meta_ccld<<EOF | | 110 | - cat >meta_ccld<<EOF |
111 | -#! /bin/sh | | 111 | -#! /bin/sh |
112 | -exec $CC $ac_cv_pthreads_cflags \$@ | | 112 | -exec $CC $ac_cv_pthreads_cflags \$@ |
113 | -EOF | | 113 | -EOF |
114 | - CC="$abs_builddir/meta_ccld" | | 114 | - CC="$abs_builddir/meta_ccld" |
115 | - chmod +x meta_ccld | | 115 | - chmod +x meta_ccld |
116 | + CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags" | | 116 | + CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags" |
117 | fi | | 117 | fi |
118 | | | 118 | |
119 | if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then | | 119 | if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then |
120 | @@ -110497,7 +110450,7 @@ freebsd* | dragonfly*) | | | |
121 | objformat=`/usr/bin/objformat` | | | |
122 | else | | | |
123 | case $host_os in | | | |
124 | - freebsd[123]*) objformat=aout ;; | | | |
125 | + freebsd[123]|freebsd[123].*) objformat=aout ;; | | | |
126 | *) objformat=elf ;; | | | |
127 | esac | | | |
128 | fi | | | |
129 | @@ -112577,7 +112530,7 @@ if test -z "$aix_libpath"; then aix_libp | | | |
130 | ;; | | | |
131 | esac | | | |
132 | ;; | | | |
133 | - freebsd[12]*) | | | |
134 | + freebsd[12]|freebsd[12].*) | | | |
135 | # C++ shared libraries reported to be fairly broken before switch to ELF | | | |
136 | ld_shlibs_CXX=no | | | |
137 | ;; | | | |
138 | @@ -114130,7 +114083,7 @@ freebsd* | dragonfly*) | | | |
139 | objformat=`/usr/bin/objformat` | | | |
140 | else | | | |
141 | case $host_os in | | | |
142 | - freebsd[123]*) objformat=aout ;; | | | |
143 | + freebsd[123]|freebsd[123].*) objformat=aout ;; | | | |
144 | *) objformat=elf ;; | | | |
145 | esac | | | |
146 | fi | | | |