1 diff -Nur nspr-4.2.2/mozilla/nsprpub/configure nspr-4.2.2.b/mozilla/nsprpub/configure
2 --- nspr-4.2.2/mozilla/nsprpub/configure Thu Sep 19 02:16:14 2002
3 +++ nspr-4.2.2.b/mozilla/nsprpub/configure Thu Sep 26 14:46:21 2002
6 --enable-mdupdate Enable use of certain compilers' mdupdate feature"
8 + --enable-macos-target=VER (default=10.1)
9 + Set the minimum MacOS version needed at runtime"
11 --enable-strip Enable stripping of shared libs and programs"
13 --with-pthreads Use system pthreads library as thread subsystem"
17 echo $ac_n "checking host system type""... $ac_c" 1>&6
18 -echo "configure:618: checking host system type" >&5
19 +echo "configure:621: checking host system type" >&5
24 echo "$ac_t""$host" 1>&6
26 echo $ac_n "checking target system type""... $ac_c" 1>&6
27 -echo "configure:639: checking target system type" >&5
28 +echo "configure:642: checking target system type" >&5
31 case "$target_alias" in
33 echo "$ac_t""$target" 1>&6
35 echo $ac_n "checking build system type""... $ac_c" 1>&6
36 -echo "configure:657: checking build system type" >&5
37 +echo "configure:660: checking build system type" >&5
40 case "$build_alias" in
45 +MACOS_DEPLOYMENT_TARGET=
50 # Extract the first word of "$ac_prog", so it can be a program name with args.
51 set dummy $ac_prog; ac_word=$2
52 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
53 -echo "configure:723: checking for $ac_word" >&5
54 +echo "configure:727: checking for $ac_word" >&5
55 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
56 echo $ac_n "(cached) $ac_c" 1>&6
62 +# Check whether --enable-macos-target or --disable-macos-target was given.
63 +if test "${enable_macos_target+set}" = set; then
64 + enableval="$enable_macos_target"
65 + MACOS_DEPLOYMENT_TARGET_STR=$enableval
67 + MACOS_DEPLOYMENT_TARGET_STR=10.1
75 # Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
76 set dummy $WHOAMI whoami; ac_word=$2
77 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
78 -echo "configure:1000: checking for $ac_word" >&5
79 +echo "configure:1013: checking for $ac_word" >&5
80 if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
81 echo $ac_n "(cached) $ac_c" 1>&6
83 @@ -1067,14 +1080,14 @@
84 _SAVE_LDFLAGS="$LDFLAGS"
86 echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
87 -echo "configure:1071: checking for $host compiler" >&5
88 +echo "configure:1084: checking for $host compiler" >&5
89 if test -z "$HOST_CC"; then
90 for ac_prog in gcc cc /usr/ucb/cc
92 # Extract the first word of "$ac_prog", so it can be a program name with args.
93 set dummy $ac_prog; ac_word=$2
94 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
95 -echo "configure:1078: checking for $ac_word" >&5
96 +echo "configure:1091: checking for $ac_word" >&5
97 if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
98 echo $ac_n "(cached) $ac_c" 1>&6
100 @@ -1121,16 +1134,16 @@
101 LDFLAGS="$HOST_LDFLAGS"
103 echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
104 -echo "configure:1125: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
105 +echo "configure:1138: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
106 cat > conftest.$ac_ext <<EOF
107 -#line 1127 "configure"
108 +#line 1140 "configure"
109 #include "confdefs.h"
115 -if { (eval echo configure:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
116 +if { (eval echo configure:1147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
118 ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
120 @@ -1151,7 +1164,7 @@
121 # Extract the first word of "$ac_prog", so it can be a program name with args.
122 set dummy $ac_prog; ac_word=$2
123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
124 -echo "configure:1155: checking for $ac_word" >&5
125 +echo "configure:1168: checking for $ac_word" >&5
126 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
127 echo $ac_n "(cached) $ac_c" 1>&6
129 @@ -1186,7 +1199,7 @@
130 # Extract the first word of "gcc", so it can be a program name with args.
131 set dummy gcc; ac_word=$2
132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
133 -echo "configure:1190: checking for $ac_word" >&5
134 +echo "configure:1203: checking for $ac_word" >&5
135 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
136 echo $ac_n "(cached) $ac_c" 1>&6
138 @@ -1216,7 +1229,7 @@
139 # Extract the first word of "cc", so it can be a program name with args.
140 set dummy cc; ac_word=$2
141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
142 -echo "configure:1220: checking for $ac_word" >&5
143 +echo "configure:1233: checking for $ac_word" >&5
144 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
145 echo $ac_n "(cached) $ac_c" 1>&6
147 @@ -1267,7 +1280,7 @@
148 # Extract the first word of "cl", so it can be a program name with args.
149 set dummy cl; ac_word=$2
150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
151 -echo "configure:1271: checking for $ac_word" >&5
152 +echo "configure:1284: checking for $ac_word" >&5
153 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
154 echo $ac_n "(cached) $ac_c" 1>&6
156 @@ -1299,7 +1312,7 @@
159 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
160 -echo "configure:1303: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
161 +echo "configure:1316: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
165 @@ -1310,12 +1323,12 @@
167 cat > conftest.$ac_ext << EOF
169 -#line 1314 "configure"
170 +#line 1327 "configure"
171 #include "confdefs.h"
175 -if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
176 +if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
177 ac_cv_prog_cc_works=yes
178 # If we can't run a trivial program, we are probably using a cross compiler.
179 if (./conftest; exit) 2>/dev/null; then
180 @@ -1341,12 +1354,12 @@
181 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
183 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
184 -echo "configure:1345: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
185 +echo "configure:1358: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
186 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
187 cross_compiling=$ac_cv_prog_cc_cross
189 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
190 -echo "configure:1350: checking whether we are using GNU C" >&5
191 +echo "configure:1363: checking whether we are using GNU C" >&5
192 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
193 echo $ac_n "(cached) $ac_c" 1>&6
195 @@ -1355,7 +1368,7 @@
199 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
200 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
204 @@ -1374,7 +1387,7 @@
205 ac_save_CFLAGS="$CFLAGS"
207 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
208 -echo "configure:1378: checking whether ${CC-cc} accepts -g" >&5
209 +echo "configure:1391: checking whether ${CC-cc} accepts -g" >&5
210 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
211 echo $ac_n "(cached) $ac_c" 1>&6
213 @@ -1411,7 +1424,7 @@
214 # Extract the first word of "$ac_prog", so it can be a program name with args.
215 set dummy $ac_prog; ac_word=$2
216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
217 -echo "configure:1415: checking for $ac_word" >&5
218 +echo "configure:1428: checking for $ac_word" >&5
219 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
220 echo $ac_n "(cached) $ac_c" 1>&6
222 @@ -1448,7 +1461,7 @@
223 # Extract the first word of "$ac_prog", so it can be a program name with args.
224 set dummy $ac_prog; ac_word=$2
225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
226 -echo "configure:1452: checking for $ac_word" >&5
227 +echo "configure:1465: checking for $ac_word" >&5
228 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
229 echo $ac_n "(cached) $ac_c" 1>&6
231 @@ -1480,7 +1493,7 @@
234 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
235 -echo "configure:1484: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
236 +echo "configure:1497: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
240 @@ -1491,12 +1504,12 @@
242 cat > conftest.$ac_ext << EOF
244 -#line 1495 "configure"
245 +#line 1508 "configure"
246 #include "confdefs.h"
248 int main(){return(0);}
250 -if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251 +if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252 ac_cv_prog_cxx_works=yes
253 # If we can't run a trivial program, we are probably using a cross compiler.
254 if (./conftest; exit) 2>/dev/null; then
255 @@ -1522,12 +1535,12 @@
256 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
258 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
259 -echo "configure:1526: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
260 +echo "configure:1539: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
261 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
262 cross_compiling=$ac_cv_prog_cxx_cross
264 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
265 -echo "configure:1531: checking whether we are using GNU C++" >&5
266 +echo "configure:1544: checking whether we are using GNU C++" >&5
267 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
268 echo $ac_n "(cached) $ac_c" 1>&6
270 @@ -1536,7 +1549,7 @@
274 -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
275 +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
279 @@ -1555,7 +1568,7 @@
280 ac_save_CXXFLAGS="$CXXFLAGS"
282 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
283 -echo "configure:1559: checking whether ${CXX-g++} accepts -g" >&5
284 +echo "configure:1572: checking whether ${CXX-g++} accepts -g" >&5
285 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
286 echo $ac_n "(cached) $ac_c" 1>&6
288 @@ -1592,7 +1605,7 @@
289 # Extract the first word of "$ac_prog", so it can be a program name with args.
290 set dummy $ac_prog; ac_word=$2
291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
292 -echo "configure:1596: checking for $ac_word" >&5
293 +echo "configure:1609: checking for $ac_word" >&5
294 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
295 echo $ac_n "(cached) $ac_c" 1>&6
297 @@ -1629,7 +1642,7 @@
298 # Extract the first word of "$ac_prog", so it can be a program name with args.
299 set dummy $ac_prog; ac_word=$2
300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
301 -echo "configure:1633: checking for $ac_word" >&5
302 +echo "configure:1646: checking for $ac_word" >&5
303 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
304 echo $ac_n "(cached) $ac_c" 1>&6
306 @@ -1666,7 +1679,7 @@
307 # Extract the first word of "$ac_prog", so it can be a program name with args.
308 set dummy $ac_prog; ac_word=$2
309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
310 -echo "configure:1670: checking for $ac_word" >&5
311 +echo "configure:1683: checking for $ac_word" >&5
312 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
313 echo $ac_n "(cached) $ac_c" 1>&6
315 @@ -1703,7 +1716,7 @@
316 # Extract the first word of "$ac_prog", so it can be a program name with args.
317 set dummy $ac_prog; ac_word=$2
318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
319 -echo "configure:1707: checking for $ac_word" >&5
320 +echo "configure:1720: checking for $ac_word" >&5
321 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
322 echo $ac_n "(cached) $ac_c" 1>&6
324 @@ -1740,7 +1753,7 @@
325 # Extract the first word of "$ac_prog", so it can be a program name with args.
326 set dummy $ac_prog; ac_word=$2
327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
328 -echo "configure:1744: checking for $ac_word" >&5
329 +echo "configure:1757: checking for $ac_word" >&5
330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
331 echo $ac_n "(cached) $ac_c" 1>&6
333 @@ -1777,7 +1790,7 @@
334 # Extract the first word of "$ac_prog", so it can be a program name with args.
335 set dummy $ac_prog; ac_word=$2
336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
337 -echo "configure:1781: checking for $ac_word" >&5
338 +echo "configure:1794: checking for $ac_word" >&5
339 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
340 echo $ac_n "(cached) $ac_c" 1>&6
342 @@ -1814,7 +1827,7 @@
343 # Extract the first word of "$ac_prog", so it can be a program name with args.
344 set dummy $ac_prog; ac_word=$2
345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
346 -echo "configure:1818: checking for $ac_word" >&5
347 +echo "configure:1831: checking for $ac_word" >&5
348 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
349 echo $ac_n "(cached) $ac_c" 1>&6
351 @@ -1852,7 +1865,7 @@
352 # Extract the first word of "$ac_prog", so it can be a program name with args.
353 set dummy $ac_prog; ac_word=$2
354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
355 -echo "configure:1856: checking for $ac_word" >&5
356 +echo "configure:1869: checking for $ac_word" >&5
357 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
358 echo $ac_n "(cached) $ac_c" 1>&6
360 @@ -1884,7 +1897,7 @@
363 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
364 -echo "configure:1888: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
365 +echo "configure:1901: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
369 @@ -1895,12 +1908,12 @@
371 cat > conftest.$ac_ext << EOF
373 -#line 1899 "configure"
374 +#line 1912 "configure"
375 #include "confdefs.h"
377 int main(){return(0);}
379 -if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
380 +if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
381 ac_cv_prog_cxx_works=yes
382 # If we can't run a trivial program, we are probably using a cross compiler.
383 if (./conftest; exit) 2>/dev/null; then
384 @@ -1926,12 +1939,12 @@
385 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
387 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
388 -echo "configure:1930: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
389 +echo "configure:1943: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
390 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
391 cross_compiling=$ac_cv_prog_cxx_cross
393 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
394 -echo "configure:1935: checking whether we are using GNU C++" >&5
395 +echo "configure:1948: checking whether we are using GNU C++" >&5
396 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
397 echo $ac_n "(cached) $ac_c" 1>&6
399 @@ -1940,7 +1953,7 @@
403 -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
404 +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
408 @@ -1959,7 +1972,7 @@
409 ac_save_CXXFLAGS="$CXXFLAGS"
411 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
412 -echo "configure:1963: checking whether ${CXX-g++} accepts -g" >&5
413 +echo "configure:1976: checking whether ${CXX-g++} accepts -g" >&5
414 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
415 echo $ac_n "(cached) $ac_c" 1>&6
417 @@ -1996,7 +2009,7 @@
418 # Extract the first word of "gcc", so it can be a program name with args.
419 set dummy gcc; ac_word=$2
420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
421 -echo "configure:2000: checking for $ac_word" >&5
422 +echo "configure:2013: checking for $ac_word" >&5
423 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
424 echo $ac_n "(cached) $ac_c" 1>&6
426 @@ -2026,7 +2039,7 @@
427 # Extract the first word of "cc", so it can be a program name with args.
428 set dummy cc; ac_word=$2
429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
430 -echo "configure:2030: checking for $ac_word" >&5
431 +echo "configure:2043: checking for $ac_word" >&5
432 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
433 echo $ac_n "(cached) $ac_c" 1>&6
435 @@ -2077,7 +2090,7 @@
436 # Extract the first word of "cl", so it can be a program name with args.
437 set dummy cl; ac_word=$2
438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
439 -echo "configure:2081: checking for $ac_word" >&5
440 +echo "configure:2094: checking for $ac_word" >&5
441 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
442 echo $ac_n "(cached) $ac_c" 1>&6
444 @@ -2109,7 +2122,7 @@
447 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
448 -echo "configure:2113: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
449 +echo "configure:2126: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
453 @@ -2120,12 +2133,12 @@
455 cat > conftest.$ac_ext << EOF
457 -#line 2124 "configure"
458 +#line 2137 "configure"
459 #include "confdefs.h"
463 -if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
464 +if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
465 ac_cv_prog_cc_works=yes
466 # If we can't run a trivial program, we are probably using a cross compiler.
467 if (./conftest; exit) 2>/dev/null; then
468 @@ -2151,12 +2164,12 @@
469 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
471 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
472 -echo "configure:2155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
473 +echo "configure:2168: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
474 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
475 cross_compiling=$ac_cv_prog_cc_cross
477 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
478 -echo "configure:2160: checking whether we are using GNU C" >&5
479 +echo "configure:2173: checking whether we are using GNU C" >&5
480 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
481 echo $ac_n "(cached) $ac_c" 1>&6
483 @@ -2165,7 +2178,7 @@
487 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
488 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
492 @@ -2184,7 +2197,7 @@
493 ac_save_CFLAGS="$CFLAGS"
495 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
496 -echo "configure:2188: checking whether ${CC-cc} accepts -g" >&5
497 +echo "configure:2201: checking whether ${CC-cc} accepts -g" >&5
498 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
499 echo $ac_n "(cached) $ac_c" 1>&6
501 @@ -2217,7 +2230,7 @@
504 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
505 -echo "configure:2221: checking how to run the C preprocessor" >&5
506 +echo "configure:2234: checking how to run the C preprocessor" >&5
507 # On Suns, sometimes $CPP names a directory.
508 if test -n "$CPP" && test -d "$CPP"; then
510 @@ -2232,13 +2245,13 @@
511 # On the NeXT, cc -E runs the code through the compiler's parser,
512 # not just through cpp.
513 cat > conftest.$ac_ext <<EOF
514 -#line 2236 "configure"
515 +#line 2249 "configure"
516 #include "confdefs.h"
520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521 -{ (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
522 +{ (eval echo configure:2255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
524 if test -z "$ac_err"; then
526 @@ -2249,13 +2262,13 @@
528 CPP="${CC-cc} -E -traditional-cpp"
529 cat > conftest.$ac_ext <<EOF
530 -#line 2253 "configure"
531 +#line 2266 "configure"
532 #include "confdefs.h"
536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
537 -{ (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
538 +{ (eval echo configure:2272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
540 if test -z "$ac_err"; then
542 @@ -2266,13 +2279,13 @@
544 CPP="${CC-cc} -nologo -E"
545 cat > conftest.$ac_ext <<EOF
546 -#line 2270 "configure"
547 +#line 2283 "configure"
548 #include "confdefs.h"
552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
553 -{ (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
554 +{ (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
556 if test -z "$ac_err"; then
558 @@ -2299,7 +2312,7 @@
559 # Extract the first word of "ranlib", so it can be a program name with args.
560 set dummy ranlib; ac_word=$2
561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
562 -echo "configure:2303: checking for $ac_word" >&5
563 +echo "configure:2316: checking for $ac_word" >&5
564 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
567 @@ -2331,7 +2344,7 @@
568 # Extract the first word of "$ac_prog", so it can be a program name with args.
569 set dummy $ac_prog; ac_word=$2
570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
571 -echo "configure:2335: checking for $ac_word" >&5
572 +echo "configure:2348: checking for $ac_word" >&5
573 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
576 @@ -2372,7 +2385,7 @@
577 # Extract the first word of "$ac_prog", so it can be a program name with args.
578 set dummy $ac_prog; ac_word=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 -echo "configure:2376: checking for $ac_word" >&5
581 +echo "configure:2389: checking for $ac_word" >&5
582 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
583 echo $ac_n "(cached) $ac_c" 1>&6
585 @@ -2413,7 +2426,7 @@
586 # Extract the first word of "$ac_prog", so it can be a program name with args.
587 set dummy $ac_prog; ac_word=$2
588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
589 -echo "configure:2417: checking for $ac_word" >&5
590 +echo "configure:2430: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 @@ -2454,7 +2467,7 @@
595 # Extract the first word of "$ac_prog", so it can be a program name with args.
596 set dummy $ac_prog; ac_word=$2
597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598 -echo "configure:2458: checking for $ac_word" >&5
599 +echo "configure:2471: checking for $ac_word" >&5
600 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
603 @@ -2495,7 +2508,7 @@
604 # Extract the first word of "$ac_prog", so it can be a program name with args.
605 set dummy $ac_prog; ac_word=$2
606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607 -echo "configure:2499: checking for $ac_word" >&5
608 +echo "configure:2512: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 @@ -2536,7 +2549,7 @@
613 # Extract the first word of "$ac_prog", so it can be a program name with args.
614 set dummy $ac_prog; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 -echo "configure:2540: checking for $ac_word" >&5
617 +echo "configure:2553: checking for $ac_word" >&5
618 if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
621 @@ -2598,7 +2611,7 @@
624 echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
625 -echo "configure:2602: checking for gcc -pipe support" >&5
626 +echo "configure:2615: checking for gcc -pipe support" >&5
627 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
628 echo '#include <stdio.h>' > dummy-hello.c
629 echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
630 @@ -2613,14 +2626,14 @@
632 CFLAGS="$CFLAGS -pipe"
633 cat > conftest.$ac_ext <<EOF
634 -#line 2617 "configure"
635 +#line 2630 "configure"
636 #include "confdefs.h"
639 printf("Hello World\n");
642 -if { (eval echo configure:2624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
643 +if { (eval echo configure:2637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
647 @@ -2653,7 +2666,7 @@
648 # Extract the first word of "$ac_prog", so it can be a program name with args.
649 set dummy $ac_prog; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 -echo "configure:2657: checking for $ac_word" >&5
652 +echo "configure:2670: checking for $ac_word" >&5
653 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
656 @@ -2886,17 +2899,17 @@
657 DSO_LDOPTS='-brtl -bM:SRE -bnoentry -bexpall'
658 ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
659 echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
660 -echo "configure:2890: checking for sys/atomic_op.h" >&5
661 +echo "configure:2903: checking for sys/atomic_op.h" >&5
662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 cat > conftest.$ac_ext <<EOF
666 -#line 2895 "configure"
667 +#line 2908 "configure"
668 #include "confdefs.h"
669 #include <sys/atomic_op.h>
671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
672 -{ (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
673 +{ (eval echo configure:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
675 if test -z "$ac_err"; then
677 @@ -3052,7 +3065,7 @@
678 _DEBUG_FLAGS='-gdwarf-2 -O0'
679 MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
680 echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
681 -echo "configure:3056: checking for gethostbyaddr in -lbind" >&5
682 +echo "configure:3069: checking for gethostbyaddr in -lbind" >&5
683 ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686 @@ -3060,7 +3073,7 @@
689 cat > conftest.$ac_ext <<EOF
690 -#line 3064 "configure"
691 +#line 3077 "configure"
692 #include "confdefs.h"
693 /* Override any gcc2 internal prototype to avoid an error. */
694 /* We use char because int might match the return type of a gcc2
695 @@ -3071,7 +3084,7 @@
699 -if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
700 +if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
702 eval "ac_cv_lib_$ac_lib_var=yes"
704 @@ -3174,7 +3187,7 @@
705 PR_MD_ASFILES=os_BSD_OS_386_2.s
710 cat >> confdefs.h <<\EOF
711 #define _PR_SELECT_CONST_TIMEVAL 1
713 @@ -3200,7 +3213,7 @@
714 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
718 + bsdi4.2* | bsdi4.3* | bsdi5.*)
719 cat >> confdefs.h <<\EOF
720 #define _PR_HAVE_GETPROTO_R 1
722 @@ -3274,6 +3287,22 @@
724 MDCPUCFG_H=_darwin.cfg
728 + MACOS_VERSION_MAJOR=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 1`
729 + MACOS_VERSION_MINOR=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 2`
730 + MACOS_VERSION_MICRO=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 3`
731 + if test -z "$MACOS_VERSION_MINOR"; then
732 + MACOS_VERSION_MINOR=0
734 + if test -z "$MACOS_VERSION_MICRO"; then
735 + MACOS_VERSION_MICRO=0
737 + MACOS_DEPLOYMENT_TARGET=`printf "%02d%02d%02d" "$MACOS_VERSION_MAJOR" "$MACOS_VERSION_MINOR" "$MACOS_VERSION_MICRO"`
738 + cat >> confdefs.h <<EOF
739 +#define MACOS_DEPLOYMENT_TARGET $MACOS_DEPLOYMENT_TARGET
745 @@ -3763,11 +3792,8 @@
747 MKSHLIB='$(DLLTOOL) --as=$(AS) -k --dllname $*.dll --output-lib $@'
750 - *-mingw*|*-cygwin*)
751 - CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
755 + CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
756 CC='$(CYGWIN_WRAPPER) cl'
757 CXX='$(CYGWIN_WRAPPER) cl'
759 @@ -4208,17 +4234,17 @@
760 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
761 ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
762 echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
763 -echo "configure:4212: checking for machine/builtins.h" >&5
764 +echo "configure:4238: checking for machine/builtins.h" >&5
765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 cat > conftest.$ac_ext <<EOF
769 -#line 4217 "configure"
770 +#line 4243 "configure"
771 #include "confdefs.h"
772 #include <machine/builtins.h>
774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
775 -{ (eval echo configure:4222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
776 +{ (eval echo configure:4248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
778 if test -z "$ac_err"; then
780 @@ -4726,12 +4752,12 @@
781 if test -z "$SKIP_LIBRARY_CHECKS"; then
783 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
784 -echo "configure:4730: checking for dlopen" >&5
785 +echo "configure:4756: checking for dlopen" >&5
786 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 cat > conftest.$ac_ext <<EOF
790 -#line 4735 "configure"
791 +#line 4761 "configure"
792 #include "confdefs.h"
793 /* System header to define __stub macros and hopefully few prototypes,
794 which can conflict with char dlopen(); below. */
795 @@ -4754,7 +4780,7 @@
799 -if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
800 +if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
802 eval "ac_cv_func_dlopen=yes"
804 @@ -4773,7 +4799,7 @@
805 echo "$ac_t""no" 1>&6
807 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
808 -echo "configure:4777: checking for dlopen in -ldl" >&5
809 +echo "configure:4803: checking for dlopen in -ldl" >&5
810 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
813 @@ -4781,7 +4807,7 @@
816 cat > conftest.$ac_ext <<EOF
817 -#line 4785 "configure"
818 +#line 4811 "configure"
819 #include "confdefs.h"
820 /* Override any gcc2 internal prototype to avoid an error. */
821 /* We use char because int might match the return type of a gcc2
822 @@ -4792,7 +4818,7 @@
826 -if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
827 +if { (eval echo configure:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
829 eval "ac_cv_lib_$ac_lib_var=yes"
831 @@ -4820,13 +4846,13 @@
833 if test $ac_cv_prog_gcc = yes; then
834 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
835 -echo "configure:4824: checking whether ${CC-cc} needs -traditional" >&5
836 +echo "configure:4850: checking whether ${CC-cc} needs -traditional" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 ac_pattern="Autoconf.*'x'"
841 cat > conftest.$ac_ext <<EOF
842 -#line 4830 "configure"
843 +#line 4856 "configure"
844 #include "confdefs.h"
847 @@ -4844,7 +4870,7 @@
849 if test $ac_cv_prog_gcc_traditional = no; then
850 cat > conftest.$ac_ext <<EOF
851 -#line 4848 "configure"
852 +#line 4874 "configure"
853 #include "confdefs.h"
856 @@ -4868,12 +4894,12 @@
857 for ac_func in lchown strerror
859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
860 -echo "configure:4872: checking for $ac_func" >&5
861 +echo "configure:4898: checking for $ac_func" >&5
862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 cat > conftest.$ac_ext <<EOF
866 -#line 4877 "configure"
867 +#line 4903 "configure"
868 #include "confdefs.h"
869 /* System header to define __stub macros and hopefully few prototypes,
870 which can conflict with char $ac_func(); below. */
871 @@ -4896,7 +4922,7 @@
875 -if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
876 +if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
878 eval "ac_cv_func_$ac_func=yes"
880 @@ -4935,7 +4961,7 @@
881 if test -z "$GNU_CC"; then
883 echo $ac_n "checking for +Olit support""... $ac_c" 1>&6
884 -echo "configure:4939: checking for +Olit support" >&5
885 +echo "configure:4965: checking for +Olit support" >&5
886 if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 @@ -4969,7 +4995,7 @@
892 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
893 -echo "configure:4973: checking for pthread_create in -lpthreads" >&5
894 +echo "configure:4999: checking for pthread_create in -lpthreads" >&5
897 void *foo(void *v) { return v; }
898 @@ -4991,7 +5017,7 @@
899 echo "$ac_t""no" 1>&6
901 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
902 -echo "configure:4995: checking for pthread_create in -lpthread" >&5
903 +echo "configure:5021: checking for pthread_create in -lpthread" >&5
906 void *foo(void *v) { return v; }
907 @@ -5013,7 +5039,7 @@
908 echo "$ac_t""no" 1>&6
910 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
911 -echo "configure:5017: checking for pthread_create in -lc_r" >&5
912 +echo "configure:5043: checking for pthread_create in -lc_r" >&5
915 void *foo(void *v) { return v; }
916 @@ -5035,7 +5061,7 @@
917 echo "$ac_t""no" 1>&6
919 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
920 -echo "configure:5039: checking for pthread_create in -lc" >&5
921 +echo "configure:5065: checking for pthread_create in -lc" >&5
924 void *foo(void *v) { return v; }
925 @@ -5187,7 +5213,7 @@
927 ac_cv_have_dash_pthread=no
928 echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
929 -echo "configure:5191: checking whether ${CC-cc} accepts -pthread" >&5
930 +echo "configure:5217: checking whether ${CC-cc} accepts -pthread" >&5
931 echo 'int main() { return 0; }' | cat > conftest.c
932 ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
933 if test $? -eq 0; then
934 @@ -5210,7 +5236,7 @@
935 ac_cv_have_dash_pthreads=no
936 if test "$ac_cv_have_dash_pthread" = "no"; then
937 echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
938 -echo "configure:5214: checking whether ${CC-cc} accepts -pthreads" >&5
939 +echo "configure:5240: checking whether ${CC-cc} accepts -pthreads" >&5
940 echo 'int main() { return 0; }' | cat > conftest.c
941 ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
942 if test $? -eq 0; then
943 @@ -5581,6 +5607,7 @@
951 @@ -5841,6 +5868,7 @@
952 s%@OS_ARCH@%$OS_ARCH%g
953 s%@OS_RELEASE@%$OS_RELEASE%g
954 s%@OS_TEST@%$OS_TEST%g
955 +s%@MACOS_DEPLOYMENT_TARGET@%$MACOS_DEPLOYMENT_TARGET%g
956 s%@DEFINES@%$DEFINES%g
957 s%@AR_FLAGS@%$AR_FLAGS%g
958 s%@ASFLAGS@%$ASFLAGS%g
959 diff -Nur nspr-4.2.2/mozilla/nsprpub/configure.in nspr-4.2.2.b/mozilla/nsprpub/configure.in
960 --- nspr-4.2.2/mozilla/nsprpub/configure.in Thu Sep 19 02:16:13 2002
961 +++ nspr-4.2.2.b/mozilla/nsprpub/configure.in Thu Sep 26 14:46:25 2002
966 +MACOS_DEPLOYMENT_TARGET=
974 +AC_ARG_ENABLE(macos-target,
975 + [ --enable-macos-target=VER (default=10.1)
976 + Set the minimum MacOS version needed at runtime],
977 + [MACOS_DEPLOYMENT_TARGET_STR=$enableval],
978 + [MACOS_DEPLOYMENT_TARGET_STR=10.1])
980 dnl ========================================================
982 dnl = Set the threading model
984 PR_MD_ASFILES=os_BSD_OS_386_2.s
989 AC_DEFINE(_PR_SELECT_CONST_TIMEVAL)
990 AC_DEFINE(_PR_BSDI_JMPBUF_IS_STRUCT)
993 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
997 + bsdi4.2* | bsdi4.3* | bsdi5.*)
998 AC_DEFINE(_PR_HAVE_GETPROTO_R)
999 AC_DEFINE(_PR_HAVE_GETPROTO_R_POINTER)
1001 @@ -862,6 +869,22 @@
1003 MDCPUCFG_H=_darwin.cfg
1004 PR_MD_CSRCS=darwin.c
1006 + dnl The C preprocessor can only handle integers in comparisons, so
1007 + dnl convert the version to the form AABBCC where AA=major release,
1008 + dnl BB=minor release, and CC=point/micro release.
1010 + MACOS_VERSION_MAJOR=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 1`
1011 + MACOS_VERSION_MINOR=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 2`
1012 + MACOS_VERSION_MICRO=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 3`
1013 + if test -z "$MACOS_VERSION_MINOR"; then
1014 + MACOS_VERSION_MINOR=0
1016 + if test -z "$MACOS_VERSION_MICRO"; then
1017 + MACOS_VERSION_MICRO=0
1019 + MACOS_DEPLOYMENT_TARGET=`printf "%02d%02d%02d" "$MACOS_VERSION_MAJOR" "$MACOS_VERSION_MINOR" "$MACOS_VERSION_MICRO"`
1020 + AC_DEFINE_UNQUOTED(MACOS_DEPLOYMENT_TARGET, $MACOS_DEPLOYMENT_TARGET)
1024 @@ -1187,11 +1210,8 @@
1025 AC_DEFINE(NONAMELESSUNION)
1026 MKSHLIB='$(DLLTOOL) --as=$(AS) -k --dllname $*.dll --output-lib $@'
1029 - *-mingw*|*-cygwin*)
1030 - CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
1034 + CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
1035 CC='$(CYGWIN_WRAPPER) cl'
1036 CXX='$(CYGWIN_WRAPPER) cl'
1038 @@ -2335,6 +2355,7 @@
1040 AC_SUBST(OS_RELEASE)
1042 +AC_SUBST(MACOS_DEPLOYMENT_TARGET)
1046 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/include/md/_bsdi.h nspr-4.2.2.b/mozilla/nsprpub/pr/include/md/_bsdi.h
1047 --- nspr-4.2.2/mozilla/nsprpub/pr/include/md/_bsdi.h Tue Jun 20 23:22:09 2000
1048 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/include/md/_bsdi.h Thu Sep 12 16:53:38 2002
1050 * Internal configuration macros
1053 +#include <sys/param.h> /* for _BSDI_VERSION */
1055 #define PR_LINKER_ARCH "bsdi"
1056 #define _PR_SI_SYSNAME "BSDI"
1057 #if defined(__i386__)
1062 +/* BSD/OS 4.3 and newer all have IPv6 support */
1063 +#if _BSDI_VERSION >= 200105
1065 +#define _PR_HAVE_GETIPNODEBYNAME
1066 +#define _PR_HAVE_GETIPNODEBYADDR
1067 +#define _PR_INET6_PROBE
1070 #ifndef _PR_PTHREADS
1073 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/include/prtypes.h nspr-4.2.2.b/mozilla/nsprpub/pr/include/prtypes.h
1074 --- nspr-4.2.2/mozilla/nsprpub/pr/include/prtypes.h Sun Feb 3 05:34:50 2002
1075 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/include/prtypes.h Wed Sep 18 16:20:01 2002
1076 @@ -280,6 +280,18 @@
1079 /************************************************************************
1080 + * MACROS: PR_INT8_MAX
1084 + * The maximum and minimum values of a PRInt8 or PRUint8.
1085 +************************************************************************/
1087 +#define PR_INT8_MAX 127
1088 +#define PR_INT8_MIN (-128)
1089 +#define PR_UINT8_MAX 255U
1091 +/************************************************************************
1095 @@ -293,6 +305,18 @@
1098 /************************************************************************
1099 + * MACROS: PR_INT16_MAX
1103 + * The maximum and minimum values of a PRInt16 or PRUint16.
1104 +************************************************************************/
1106 +#define PR_INT16_MAX 32767
1107 +#define PR_INT16_MIN (-32768)
1108 +#define PR_UINT16_MAX 65535U
1110 +/************************************************************************
1114 @@ -313,6 +337,18 @@
1117 /************************************************************************
1118 + * MACROS: PR_INT32_MAX
1122 + * The maximum and minimum values of a PRInt32 or PRUint32.
1123 +************************************************************************/
1125 +#define PR_INT32_MAX PR_INT32(2147483647)
1126 +#define PR_INT32_MIN (-PR_INT32_MAX - 1)
1127 +#define PR_UINT32_MAX PR_UINT32(4294967295)
1129 +/************************************************************************
1133 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/src/md/beos/bfile.c nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/beos/bfile.c
1134 --- nspr-4.2.2/mozilla/nsprpub/pr/src/md/beos/bfile.c Wed Jul 17 08:04:41 2002
1135 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/beos/bfile.c Tue Sep 24 16:20:58 2002
1136 @@ -673,6 +673,10 @@
1142 + pd->out_flags = 0;
1146 if (0 != ready) return ready; /* no need to block */
1147 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/src/md/os2/os2poll.c nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/os2/os2poll.c
1148 --- nspr-4.2.2/mozilla/nsprpub/pr/src/md/os2/os2poll.c Fri Jan 18 02:27:19 2002
1149 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/os2/os2poll.c Tue Sep 24 16:21:00 2002
1150 @@ -214,6 +214,10 @@
1156 + pd->out_flags = 0;
1161 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/src/md/unix/uxpoll.c nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/unix/uxpoll.c
1162 --- nspr-4.2.2/mozilla/nsprpub/pr/src/md/unix/uxpoll.c Tue Jun 20 23:33:25 2000
1163 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/unix/uxpoll.c Tue Sep 24 16:21:02 2002
1166 /* make poll() ignore this entry */
1167 syspoll[index].fd = -1;
1168 + pds[index].out_flags = 0;
1172 @@ -384,6 +385,10 @@
1178 + pd->out_flags = 0;
1182 if (0 != ready) return ready; /* no need to block */
1183 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/src/md/windows/w32poll.c nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/windows/w32poll.c
1184 --- nspr-4.2.2/mozilla/nsprpub/pr/src/md/windows/w32poll.c Tue Jun 20 23:34:58 2000
1185 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/src/md/windows/w32poll.c Tue Sep 24 16:21:04 2002
1186 @@ -223,6 +223,10 @@
1192 + pd->out_flags = 0;
1196 if (0 != ready) return ready; /* no need to block */
1197 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/src/misc/prdtoa.c nspr-4.2.2.b/mozilla/nsprpub/pr/src/misc/prdtoa.c
1198 --- nspr-4.2.2/mozilla/nsprpub/pr/src/misc/prdtoa.c Fri Dec 28 04:35:14 2001
1199 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/src/misc/prdtoa.c Thu Sep 26 14:46:29 2002
1200 @@ -197,6 +197,16 @@
1205 + * MacOS 10.2 defines the macro FLT_ROUNDS to an internal function
1206 + * which does not exist on 10.1. We can safely #define it to 1 here
1207 + * to allow 10.2 builds to run on 10.1, since we can't use fesetround()
1208 + * (which does not exist on 10.1 either).
1210 +#if defined(MACOS_DEPLOYMENT_TARGET) && (MACOS_DEPLOYMENT_TARGET < 100200)
1212 +#define FLT_ROUNDS 1
1217 diff -Nur nspr-4.2.2/mozilla/nsprpub/pr/src/pthreads/ptio.c nspr-4.2.2.b/mozilla/nsprpub/pr/src/pthreads/ptio.c
1218 --- nspr-4.2.2/mozilla/nsprpub/pr/src/pthreads/ptio.c Thu Jun 13 20:05:26 2002
1219 +++ nspr-4.2.2.b/mozilla/nsprpub/pr/src/pthreads/ptio.c Tue Sep 24 16:21:06 2002
1220 @@ -3824,6 +3824,7 @@
1222 /* make poll() ignore this entry */
1223 syspoll[index].fd = -1;
1224 + pds[index].out_flags = 0;
1228 @@ -4085,6 +4086,10 @@
1234 + pds[index].out_flags = 0;