1 --- libiberty/configure.in.old 2004-03-31 21:25:25.000000000 +0100
2 +++ libiberty/configure.in 2004-03-31 21:18:02.000000000 +0100
4 AC_CHECK_TOOL(RANLIB, ranlib, :)
10 # autoconf is lame and doesn't give us any substitution variable for this.
13 # We haven't set the list of objects yet. Use the standard autoconf
14 # tests. This will only work if the compiler works.
16 AC_REPLACE_FUNCS($funcs)
17 libiberty_AC_FUNC_C_ALLOCA
20 --- libiberty/configure.old 2003-06-19 21:05:35.000000000 +0100
21 +++ libiberty/configure 2004-03-31 21:35:12.000000000 +0100
22 @@ -1000,13 +1000,60 @@
26 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
27 +echo "configure:1005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
30 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
31 +ac_cpp='$CPP $CPPFLAGS'
32 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
33 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
34 +cross_compiling=$ac_cv_prog_cc_cross
36 +cat > conftest.$ac_ext << EOF
38 +#line 1016 "configure"
39 +#include "confdefs.h"
43 +if { (eval echo configure:1021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
44 + ac_cv_prog_cc_works=yes
45 + # If we can't run a trivial program, we are probably using a cross compiler.
46 + if (./conftest; exit) 2>/dev/null; then
47 + ac_cv_prog_cc_cross=no
49 + ac_cv_prog_cc_cross=yes
52 + echo "configure: failed program was:" >&5
53 + cat conftest.$ac_ext >&5
54 + ac_cv_prog_cc_works=no
58 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
59 +ac_cpp='$CPP $CPPFLAGS'
60 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
61 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
62 +cross_compiling=$ac_cv_prog_cc_cross
64 +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
65 +if test $ac_cv_prog_cc_works = no; then
66 + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
68 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
69 +echo "configure:1047: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
70 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
71 +cross_compiling=$ac_cv_prog_cc_cross
74 if test "x$CC" != xcc; then
75 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
76 -echo "configure:1007: checking whether $CC and cc understand -c and -o together" >&5
77 +echo "configure:1054: checking whether $CC and cc understand -c and -o together" >&5
79 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
80 -echo "configure:1010: checking whether cc understands -c and -o together" >&5
81 +echo "configure:1057: checking whether cc understands -c and -o together" >&5
83 set dummy $CC; ac_cc="`echo $2 |
84 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
85 @@ -1018,16 +1065,16 @@
86 # We do the test twice because some compilers refuse to overwrite an
87 # existing .o file with -o, though they will create one.
88 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
89 -if { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
90 - test -f conftest.o && { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
91 +if { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
92 + test -f conftest.o && { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
94 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
95 if test "x$CC" != xcc; then
96 # Test first that cc exists at all.
97 - if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
98 + if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
99 ac_try='cc -c conftest.c -o conftest.o 1>&5'
100 - if { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
101 - test -f conftest.o && { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
102 + if { (eval echo configure:1077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
103 + test -f conftest.o && { (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
107 @@ -1063,7 +1110,7 @@
110 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
111 -echo "configure:1067: checking for POSIXized ISC" >&5
112 +echo "configure:1114: checking for POSIXized ISC" >&5
113 if test -d /etc/conf/kconfig.d &&
114 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
116 @@ -1084,12 +1131,12 @@
119 echo $ac_n "checking for working const""... $ac_c" 1>&6
120 -echo "configure:1088: checking for working const" >&5
121 +echo "configure:1135: checking for working const" >&5
122 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
123 echo $ac_n "(cached) $ac_c" 1>&6
125 cat > conftest.$ac_ext <<EOF
126 -#line 1093 "configure"
127 +#line 1140 "configure"
128 #include "confdefs.h"
131 @@ -1138,7 +1185,7 @@
135 -if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
136 +if { (eval echo configure:1189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
140 @@ -1159,21 +1206,21 @@
143 echo $ac_n "checking for inline""... $ac_c" 1>&6
144 -echo "configure:1163: checking for inline" >&5
145 +echo "configure:1210: checking for inline" >&5
146 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
147 echo $ac_n "(cached) $ac_c" 1>&6
150 for ac_kw in inline __inline__ __inline; do
151 cat > conftest.$ac_ext <<EOF
152 -#line 1170 "configure"
153 +#line 1217 "configure"
154 #include "confdefs.h"
160 -if { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
161 +if { (eval echo configure:1224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
163 ac_cv_c_inline=$ac_kw; break
165 @@ -1199,14 +1246,14 @@
168 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
169 -echo "configure:1203: checking whether byte ordering is bigendian" >&5
170 +echo "configure:1250: checking whether byte ordering is bigendian" >&5
171 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
172 echo $ac_n "(cached) $ac_c" 1>&6
174 ac_cv_c_bigendian=unknown
175 # See if sys/param.h defines the BYTE_ORDER macro.
176 cat > conftest.$ac_ext <<EOF
177 -#line 1210 "configure"
178 +#line 1257 "configure"
179 #include "confdefs.h"
180 #include <sys/types.h>
181 #include <sys/param.h>
182 @@ -1217,11 +1264,11 @@
186 -if { (eval echo configure:1221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
187 +if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
189 # It does; now see whether it defined to BIG_ENDIAN or not.
190 cat > conftest.$ac_ext <<EOF
191 -#line 1225 "configure"
192 +#line 1272 "configure"
193 #include "confdefs.h"
194 #include <sys/types.h>
195 #include <sys/param.h>
196 @@ -1232,7 +1279,7 @@
200 -if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
201 +if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
203 ac_cv_c_bigendian=yes
205 @@ -1252,7 +1299,7 @@
206 echo $ac_n "cross-compiling... " 2>&6
208 cat > conftest.$ac_ext <<EOF
209 -#line 1256 "configure"
210 +#line 1303 "configure"
211 #include "confdefs.h"
213 /* Are we little or big endian? From Harbison&Steele. */
214 @@ -1265,7 +1312,7 @@
215 exit (u.c[sizeof (long) - 1] == 1);
218 -if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
219 +if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
223 @@ -1283,7 +1330,7 @@
224 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
225 if test $ac_cv_c_bigendian = unknown; then
226 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
227 -echo "configure:1287: checking to probe for byte ordering" >&5
228 +echo "configure:1334: checking to probe for byte ordering" >&5
230 cat >conftest.c <<EOF
231 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
232 @@ -1352,7 +1399,7 @@
233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
234 # ./install, which can be erroneously created by make from ./install.sh.
235 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
236 -echo "configure:1356: checking for a BSD compatible install" >&5
237 +echo "configure:1403: checking for a BSD compatible install" >&5
238 if test -z "$INSTALL"; then
239 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
240 echo $ac_n "(cached) $ac_c" 1>&6
241 @@ -1413,7 +1460,7 @@
242 # able to link anything, it had better be able to at least compile
244 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
245 -echo "configure:1417: checking how to run the C preprocessor" >&5
246 +echo "configure:1464: checking how to run the C preprocessor" >&5
247 # On Suns, sometimes $CPP names a directory.
248 if test -n "$CPP" && test -d "$CPP"; then
250 @@ -1428,13 +1475,13 @@
251 # On the NeXT, cc -E runs the code through the compiler's parser,
252 # not just through cpp.
253 cat > conftest.$ac_ext <<EOF
254 -#line 1432 "configure"
255 +#line 1479 "configure"
256 #include "confdefs.h"
260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
261 -{ (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
262 +{ (eval echo configure:1485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
264 if test -z "$ac_err"; then
266 @@ -1445,13 +1492,13 @@
268 CPP="${CC-cc} -E -traditional-cpp"
269 cat > conftest.$ac_ext <<EOF
270 -#line 1449 "configure"
271 +#line 1496 "configure"
272 #include "confdefs.h"
276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
277 -{ (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
278 +{ (eval echo configure:1502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
280 if test -z "$ac_err"; then
282 @@ -1462,13 +1509,13 @@
284 CPP="${CC-cc} -nologo -E"
285 cat > conftest.$ac_ext <<EOF
286 -#line 1466 "configure"
287 +#line 1513 "configure"
288 #include "confdefs.h"
292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
293 -{ (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
294 +{ (eval echo configure:1519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
296 if test -z "$ac_err"; then
298 @@ -1496,17 +1543,17 @@
300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
302 -echo "configure:1500: checking for $ac_hdr" >&5
303 +echo "configure:1547: checking for $ac_hdr" >&5
304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
305 echo $ac_n "(cached) $ac_c" 1>&6
307 cat > conftest.$ac_ext <<EOF
308 -#line 1505 "configure"
309 +#line 1552 "configure"
310 #include "confdefs.h"
313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
314 -{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
315 +{ (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
317 if test -z "$ac_err"; then
319 @@ -1533,12 +1580,12 @@
322 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
323 -echo "configure:1537: checking for sys/wait.h that is POSIX.1 compatible" >&5
324 +echo "configure:1584: checking for sys/wait.h that is POSIX.1 compatible" >&5
325 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
326 echo $ac_n "(cached) $ac_c" 1>&6
328 cat > conftest.$ac_ext <<EOF
329 -#line 1542 "configure"
330 +#line 1589 "configure"
331 #include "confdefs.h"
332 #include <sys/types.h>
333 #include <sys/wait.h>
334 @@ -1554,7 +1601,7 @@
335 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
338 -if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
339 +if { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
341 ac_cv_header_sys_wait_h=yes
343 @@ -1575,12 +1622,12 @@
346 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
347 -echo "configure:1579: checking whether time.h and sys/time.h may both be included" >&5
348 +echo "configure:1626: checking whether time.h and sys/time.h may both be included" >&5
349 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
350 echo $ac_n "(cached) $ac_c" 1>&6
352 cat > conftest.$ac_ext <<EOF
353 -#line 1584 "configure"
354 +#line 1631 "configure"
355 #include "confdefs.h"
356 #include <sys/types.h>
357 #include <sys/time.h>
358 @@ -1589,7 +1636,7 @@
362 -if { (eval echo configure:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
363 +if { (eval echo configure:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
365 ac_cv_header_time=yes
367 @@ -1611,19 +1658,19 @@
370 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
371 -echo "configure:1615: checking whether errno must be declared" >&5
372 +echo "configure:1662: checking whether errno must be declared" >&5
373 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
374 echo $ac_n "(cached) $ac_c" 1>&6
376 cat > conftest.$ac_ext <<EOF
377 -#line 1620 "configure"
378 +#line 1667 "configure"
379 #include "confdefs.h"
385 -if { (eval echo configure:1627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
386 +if { (eval echo configure:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
388 libiberty_cv_declare_errno=no
390 @@ -1645,12 +1692,12 @@
393 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
394 -echo "configure:1649: checking for ANSI C header files" >&5
395 +echo "configure:1696: checking for ANSI C header files" >&5
396 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
397 echo $ac_n "(cached) $ac_c" 1>&6
399 cat > conftest.$ac_ext <<EOF
400 -#line 1654 "configure"
401 +#line 1701 "configure"
402 #include "confdefs.h"
405 @@ -1658,7 +1705,7 @@
408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
409 -{ (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
410 +{ (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
412 if test -z "$ac_err"; then
414 @@ -1675,7 +1722,7 @@
415 if test $ac_cv_header_stdc = yes; then
416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
417 cat > conftest.$ac_ext <<EOF
418 -#line 1679 "configure"
419 +#line 1726 "configure"
420 #include "confdefs.h"
423 @@ -1693,7 +1740,7 @@
424 if test $ac_cv_header_stdc = yes; then
425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
426 cat > conftest.$ac_ext <<EOF
427 -#line 1697 "configure"
428 +#line 1744 "configure"
429 #include "confdefs.h"
432 @@ -1714,7 +1761,7 @@
435 cat > conftest.$ac_ext <<EOF
436 -#line 1718 "configure"
437 +#line 1765 "configure"
438 #include "confdefs.h"
440 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
441 @@ -1725,7 +1772,7 @@
445 -if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
446 +if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
450 @@ -1749,12 +1796,12 @@
453 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6
454 -echo "configure:1753: checking for uintptr_t" >&5
455 +echo "configure:1800: checking for uintptr_t" >&5
456 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then
457 echo $ac_n "(cached) $ac_c" 1>&6
459 cat > conftest.$ac_ext <<EOF
460 -#line 1758 "configure"
461 +#line 1805 "configure"
462 #include "confdefs.h"
463 #include <sys/types.h>
465 @@ -1790,12 +1837,12 @@
468 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
469 -echo "configure:1794: checking for pid_t" >&5
470 +echo "configure:1841: checking for pid_t" >&5
471 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
472 echo $ac_n "(cached) $ac_c" 1>&6
474 cat > conftest.$ac_ext <<EOF
475 -#line 1799 "configure"
476 +#line 1846 "configure"
477 #include "confdefs.h"
478 #include <sys/types.h>
480 @@ -1895,12 +1942,12 @@
481 realpath canonicalize_file_name
483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
484 -echo "configure:1899: checking for $ac_func" >&5
485 +echo "configure:1946: checking for $ac_func" >&5
486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
487 echo $ac_n "(cached) $ac_c" 1>&6
489 cat > conftest.$ac_ext <<EOF
490 -#line 1904 "configure"
491 +#line 1951 "configure"
492 #include "confdefs.h"
493 /* System header to define __stub macros and hopefully few prototypes,
494 which can conflict with char $ac_func(); below. */
495 @@ -1923,7 +1970,7 @@
499 -if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
500 +if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
502 eval "ac_cv_func_$ac_func=yes"
504 @@ -2152,53 +2199,6 @@
506 # We haven't set the list of objects yet. Use the standard autoconf
507 # tests. This will only work if the compiler works.
508 - echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
509 -echo "configure:2157: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
512 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 -ac_cpp='$CPP $CPPFLAGS'
514 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 -cross_compiling=$ac_cv_prog_cc_cross
518 -cat > conftest.$ac_ext << EOF
520 -#line 2168 "configure"
521 -#include "confdefs.h"
525 -if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
526 - ac_cv_prog_cc_works=yes
527 - # If we can't run a trivial program, we are probably using a cross compiler.
528 - if (./conftest; exit) 2>/dev/null; then
529 - ac_cv_prog_cc_cross=no
531 - ac_cv_prog_cc_cross=yes
534 - echo "configure: failed program was:" >&5
535 - cat conftest.$ac_ext >&5
536 - ac_cv_prog_cc_works=no
540 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541 -ac_cpp='$CPP $CPPFLAGS'
542 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544 -cross_compiling=$ac_cv_prog_cc_cross
546 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
547 -if test $ac_cv_prog_cc_works = no; then
548 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
550 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
551 -echo "configure:2199: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
552 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
553 -cross_compiling=$ac_cv_prog_cc_cross
555 for ac_func in $funcs
557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
558 @@ -2900,7 +2900,7 @@
562 -for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
563 +for ac_hdr in unistd.h
565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
567 @@ -3032,24 +3032,11 @@
569 #include <sys/mman.h>
571 -#if HAVE_SYS_TYPES_H
572 -# include <sys/types.h>
576 -# include <stdlib.h>
580 -# include <sys/stat.h>
584 -# include <unistd.h>
587 /* This mess was copied from the GNU getpagesize.h. */
588 #ifndef HAVE_GETPAGESIZE
589 +# ifdef HAVE_UNISTD_H
590 +# include <unistd.h>
593 /* Assume that all systems that can run configure have sys/param.h. */
594 # ifndef HAVE_SYS_PARAM_H
595 @@ -3157,7 +3144,7 @@
599 -if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
600 +if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
602 ac_cv_func_mmap_fixed_mapped=yes
604 @@ -3181,7 +3168,7 @@
607 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6
608 -echo "configure:3185: checking for working strncmp" >&5
609 +echo "configure:3172: checking for working strncmp" >&5
610 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then
611 echo $ac_n "(cached) $ac_c" 1>&6
613 @@ -3189,7 +3176,7 @@
614 ac_cv_func_strncmp_works=no
616 cat > conftest.$ac_ext <<EOF
617 -#line 3193 "configure"
618 +#line 3180 "configure"
619 #include "confdefs.h"
621 /* Test by Jim Wilson and Kaveh Ghazi.
622 @@ -3253,7 +3240,7 @@
626 -if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
627 +if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
629 ac_cv_func_strncmp_works=yes