Mercurial > hg-old > index.cgi
comparison configure @ 283:2cb097e760a5 2.3
Added various generated files in prep for release
author | lost |
---|---|
date | Fri, 24 Apr 2009 22:18:16 +0000 |
parents | |
children | 701132971855 |
comparison
equal
deleted
inserted
replaced
282:2ca46690162b | 283:2cb097e760a5 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.63 for LWTOOLS 2.3. | |
4 # | |
5 # Report bugs to <lost@l-w.ca>. | |
6 # | |
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
9 # This configure script is free software; the Free Software Foundation | |
10 # gives unlimited permission to copy, distribute and modify it. | |
11 ## --------------------- ## | |
12 ## M4sh Initialization. ## | |
13 ## --------------------- ## | |
14 | |
15 # Be more Bourne compatible | |
16 DUALCASE=1; export DUALCASE # for MKS sh | |
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 emulate sh | |
19 NULLCMD=: | |
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 # is contrary to our usage. Disable this feature. | |
22 alias -g '${1+"$@"}'='"$@"' | |
23 setopt NO_GLOB_SUBST | |
24 else | |
25 case `(set -o) 2>/dev/null` in | |
26 *posix*) set -o posix ;; | |
27 esac | |
28 | |
29 fi | |
30 | |
31 | |
32 | |
33 | |
34 # PATH needs CR | |
35 # Avoid depending upon Character Ranges. | |
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 as_cr_digits='0123456789' | |
40 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | |
42 as_nl=' | |
43 ' | |
44 export as_nl | |
45 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 as_echo='printf %s\n' | |
51 as_echo_n='printf %s' | |
52 else | |
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 as_echo_n='/usr/ucb/echo -n' | |
56 else | |
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 as_echo_n_body='eval | |
59 arg=$1; | |
60 case $arg in | |
61 *"$as_nl"*) | |
62 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 esac; | |
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 ' | |
67 export as_echo_n_body | |
68 as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 fi | |
70 export as_echo_body | |
71 as_echo='sh -c $as_echo_body as_echo' | |
72 fi | |
73 | |
74 # The user is always right. | |
75 if test "${PATH_SEPARATOR+set}" != set; then | |
76 PATH_SEPARATOR=: | |
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 PATH_SEPARATOR=';' | |
80 } | |
81 fi | |
82 | |
83 # Support unset when possible. | |
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 as_unset=unset | |
86 else | |
87 as_unset=false | |
88 fi | |
89 | |
90 | |
91 # IFS | |
92 # We need space, tab and new line, in precisely that order. Quoting is | |
93 # there to prevent editors from complaining about space-tab. | |
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 # splitting by setting IFS to empty value.) | |
96 IFS=" "" $as_nl" | |
97 | |
98 # Find who we are. Look in the path if we contain no directory separator. | |
99 case $0 in | |
100 *[\\/]* ) as_myself=$0 ;; | |
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 for as_dir in $PATH | |
103 do | |
104 IFS=$as_save_IFS | |
105 test -z "$as_dir" && as_dir=. | |
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
107 done | |
108 IFS=$as_save_IFS | |
109 | |
110 ;; | |
111 esac | |
112 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 # in which case we are not to be found in the path. | |
114 if test "x$as_myself" = x; then | |
115 as_myself=$0 | |
116 fi | |
117 if test ! -f "$as_myself"; then | |
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
119 { (exit 1); exit 1; } | |
120 fi | |
121 | |
122 # Work around bugs in pre-3.0 UWIN ksh. | |
123 for as_var in ENV MAIL MAILPATH | |
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 done | |
126 PS1='$ ' | |
127 PS2='> ' | |
128 PS4='+ ' | |
129 | |
130 # NLS nuisances. | |
131 LC_ALL=C | |
132 export LC_ALL | |
133 LANGUAGE=C | |
134 export LANGUAGE | |
135 | |
136 # Required to use basename. | |
137 if expr a : '\(a\)' >/dev/null 2>&1 && | |
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
139 as_expr=expr | |
140 else | |
141 as_expr=false | |
142 fi | |
143 | |
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
145 as_basename=basename | |
146 else | |
147 as_basename=false | |
148 fi | |
149 | |
150 | |
151 # Name of the executable. | |
152 as_me=`$as_basename -- "$0" || | |
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
154 X"$0" : 'X\(//\)$' \| \ | |
155 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
156 $as_echo X/"$0" | | |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
158 s//\1/ | |
159 q | |
160 } | |
161 /^X\/\(\/\/\)$/{ | |
162 s//\1/ | |
163 q | |
164 } | |
165 /^X\/\(\/\).*/{ | |
166 s//\1/ | |
167 q | |
168 } | |
169 s/.*/./; q'` | |
170 | |
171 # CDPATH. | |
172 $as_unset CDPATH | |
173 | |
174 | |
175 if test "x$CONFIG_SHELL" = x; then | |
176 if (eval ":") 2>/dev/null; then | |
177 as_have_required=yes | |
178 else | |
179 as_have_required=no | |
180 fi | |
181 | |
182 if test $as_have_required = yes && (eval ": | |
183 (as_func_return () { | |
184 (exit \$1) | |
185 } | |
186 as_func_success () { | |
187 as_func_return 0 | |
188 } | |
189 as_func_failure () { | |
190 as_func_return 1 | |
191 } | |
192 as_func_ret_success () { | |
193 return 0 | |
194 } | |
195 as_func_ret_failure () { | |
196 return 1 | |
197 } | |
198 | |
199 exitcode=0 | |
200 if as_func_success; then | |
201 : | |
202 else | |
203 exitcode=1 | |
204 echo as_func_success failed. | |
205 fi | |
206 | |
207 if as_func_failure; then | |
208 exitcode=1 | |
209 echo as_func_failure succeeded. | |
210 fi | |
211 | |
212 if as_func_ret_success; then | |
213 : | |
214 else | |
215 exitcode=1 | |
216 echo as_func_ret_success failed. | |
217 fi | |
218 | |
219 if as_func_ret_failure; then | |
220 exitcode=1 | |
221 echo as_func_ret_failure succeeded. | |
222 fi | |
223 | |
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 : | |
226 else | |
227 exitcode=1 | |
228 echo positional parameters were not saved. | |
229 fi | |
230 | |
231 test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | |
233 ( | |
234 as_lineno_1=\$LINENO | |
235 as_lineno_2=\$LINENO | |
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 ") 2> /dev/null; then | |
239 : | |
240 else | |
241 as_candidate_shells= | |
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 do | |
245 IFS=$as_save_IFS | |
246 test -z "$as_dir" && as_dir=. | |
247 case $as_dir in | |
248 /*) | |
249 for as_base in sh bash ksh sh5; do | |
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 done;; | |
252 esac | |
253 done | |
254 IFS=$as_save_IFS | |
255 | |
256 | |
257 for as_shell in $as_candidate_shells $SHELL; do | |
258 # Try only shells that exist, to save several forks. | |
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 emulate sh | |
263 NULLCMD=: | |
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
265 # is contrary to our usage. Disable this feature. | |
266 alias -g '${1+"$@"}'='"$@"' | |
267 setopt NO_GLOB_SUBST | |
268 else | |
269 case `(set -o) 2>/dev/null` in | |
270 *posix*) set -o posix ;; | |
271 esac | |
272 | |
273 fi | |
274 | |
275 | |
276 : | |
277 _ASEOF | |
278 }; then | |
279 CONFIG_SHELL=$as_shell | |
280 as_have_required=yes | |
281 if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 emulate sh | |
284 NULLCMD=: | |
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
286 # is contrary to our usage. Disable this feature. | |
287 alias -g '${1+"$@"}'='"$@"' | |
288 setopt NO_GLOB_SUBST | |
289 else | |
290 case `(set -o) 2>/dev/null` in | |
291 *posix*) set -o posix ;; | |
292 esac | |
293 | |
294 fi | |
295 | |
296 | |
297 : | |
298 (as_func_return () { | |
299 (exit $1) | |
300 } | |
301 as_func_success () { | |
302 as_func_return 0 | |
303 } | |
304 as_func_failure () { | |
305 as_func_return 1 | |
306 } | |
307 as_func_ret_success () { | |
308 return 0 | |
309 } | |
310 as_func_ret_failure () { | |
311 return 1 | |
312 } | |
313 | |
314 exitcode=0 | |
315 if as_func_success; then | |
316 : | |
317 else | |
318 exitcode=1 | |
319 echo as_func_success failed. | |
320 fi | |
321 | |
322 if as_func_failure; then | |
323 exitcode=1 | |
324 echo as_func_failure succeeded. | |
325 fi | |
326 | |
327 if as_func_ret_success; then | |
328 : | |
329 else | |
330 exitcode=1 | |
331 echo as_func_ret_success failed. | |
332 fi | |
333 | |
334 if as_func_ret_failure; then | |
335 exitcode=1 | |
336 echo as_func_ret_failure succeeded. | |
337 fi | |
338 | |
339 if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 : | |
341 else | |
342 exitcode=1 | |
343 echo positional parameters were not saved. | |
344 fi | |
345 | |
346 test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | |
348 ( | |
349 as_lineno_1=$LINENO | |
350 as_lineno_2=$LINENO | |
351 test "x$as_lineno_1" != "x$as_lineno_2" && | |
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
353 | |
354 _ASEOF | |
355 }; then | |
356 break | |
357 fi | |
358 | |
359 fi | |
360 | |
361 done | |
362 | |
363 if test "x$CONFIG_SHELL" != x; then | |
364 for as_var in BASH_ENV ENV | |
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
366 done | |
367 export CONFIG_SHELL | |
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
369 fi | |
370 | |
371 | |
372 if test $as_have_required = no; then | |
373 echo This script requires a shell more modern than all the | |
374 echo shells that I found on your system. Please install a | |
375 echo modern shell, or manually run the script under such a | |
376 echo shell if you do have one. | |
377 { (exit 1); exit 1; } | |
378 fi | |
379 | |
380 | |
381 fi | |
382 | |
383 fi | |
384 | |
385 | |
386 | |
387 (eval "as_func_return () { | |
388 (exit \$1) | |
389 } | |
390 as_func_success () { | |
391 as_func_return 0 | |
392 } | |
393 as_func_failure () { | |
394 as_func_return 1 | |
395 } | |
396 as_func_ret_success () { | |
397 return 0 | |
398 } | |
399 as_func_ret_failure () { | |
400 return 1 | |
401 } | |
402 | |
403 exitcode=0 | |
404 if as_func_success; then | |
405 : | |
406 else | |
407 exitcode=1 | |
408 echo as_func_success failed. | |
409 fi | |
410 | |
411 if as_func_failure; then | |
412 exitcode=1 | |
413 echo as_func_failure succeeded. | |
414 fi | |
415 | |
416 if as_func_ret_success; then | |
417 : | |
418 else | |
419 exitcode=1 | |
420 echo as_func_ret_success failed. | |
421 fi | |
422 | |
423 if as_func_ret_failure; then | |
424 exitcode=1 | |
425 echo as_func_ret_failure succeeded. | |
426 fi | |
427 | |
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 : | |
430 else | |
431 exitcode=1 | |
432 echo positional parameters were not saved. | |
433 fi | |
434 | |
435 test \$exitcode = 0") || { | |
436 echo No shell found that supports shell functions. | |
437 echo Please tell bug-autoconf@gnu.org about your system, | |
438 echo including any error possibly output before this message. | |
439 echo This can help us improve future autoconf versions. | |
440 echo Configuration will now proceed without shell functions. | |
441 } | |
442 | |
443 | |
444 | |
445 as_lineno_1=$LINENO | |
446 as_lineno_2=$LINENO | |
447 test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
449 | |
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 # uniformly replaced by the line number. The first 'sed' inserts a | |
452 # line-number line after each line using $LINENO; the second 'sed' | |
453 # does the real work. The second script uses 'N' to pair each | |
454 # line-number line with the line containing $LINENO, and appends | |
455 # trailing '-' during substitution so that $LINENO is not a special | |
456 # case at line end. | |
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
458 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
459 # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 sed -n ' | |
461 p | |
462 /[$]LINENO/= | |
463 ' <$as_myself | | |
464 sed ' | |
465 s/[$]LINENO.*/&-/ | |
466 t lineno | |
467 b | |
468 :lineno | |
469 N | |
470 :loop | |
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
472 t loop | |
473 s/-\n.*// | |
474 ' >$as_me.lineno && | |
475 chmod +x "$as_me.lineno" || | |
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
477 { (exit 1); exit 1; }; } | |
478 | |
479 # Don't try to exec as it changes $[0], causing all sort of problems | |
480 # (the dirname of $[0] is not the place where we might find the | |
481 # original and so on. Autoconf is especially sensitive to this). | |
482 . "./$as_me.lineno" | |
483 # Exit status is that of the last command. | |
484 exit | |
485 } | |
486 | |
487 | |
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
489 as_dirname=dirname | |
490 else | |
491 as_dirname=false | |
492 fi | |
493 | |
494 ECHO_C= ECHO_N= ECHO_T= | |
495 case `echo -n x` in | |
496 -n*) | |
497 case `echo 'x\c'` in | |
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 *) ECHO_C='\c';; | |
500 esac;; | |
501 *) | |
502 ECHO_N='-n';; | |
503 esac | |
504 if expr a : '\(a\)' >/dev/null 2>&1 && | |
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
506 as_expr=expr | |
507 else | |
508 as_expr=false | |
509 fi | |
510 | |
511 rm -f conf$$ conf$$.exe conf$$.file | |
512 if test -d conf$$.dir; then | |
513 rm -f conf$$.dir/conf$$.file | |
514 else | |
515 rm -f conf$$.dir | |
516 mkdir conf$$.dir 2>/dev/null | |
517 fi | |
518 if (echo >conf$$.file) 2>/dev/null; then | |
519 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 as_ln_s='ln -s' | |
521 # ... but there are two gotchas: | |
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 # In both cases, we have to default to `cp -p'. | |
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 as_ln_s='cp -p' | |
527 elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 as_ln_s=ln | |
529 else | |
530 as_ln_s='cp -p' | |
531 fi | |
532 else | |
533 as_ln_s='cp -p' | |
534 fi | |
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
536 rmdir conf$$.dir 2>/dev/null | |
537 | |
538 if mkdir -p . 2>/dev/null; then | |
539 as_mkdir_p=: | |
540 else | |
541 test -d ./-p && rmdir ./-p | |
542 as_mkdir_p=false | |
543 fi | |
544 | |
545 if test -x / >/dev/null 2>&1; then | |
546 as_test_x='test -x' | |
547 else | |
548 if ls -dL / >/dev/null 2>&1; then | |
549 as_ls_L_option=L | |
550 else | |
551 as_ls_L_option= | |
552 fi | |
553 as_test_x=' | |
554 eval sh -c '\'' | |
555 if test -d "$1"; then | |
556 test -d "$1/."; | |
557 else | |
558 case $1 in | |
559 -*)set "./$1";; | |
560 esac; | |
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 ???[sx]*):;;*)false;;esac;fi | |
563 '\'' sh | |
564 ' | |
565 fi | |
566 as_executable_p=$as_test_x | |
567 | |
568 # Sed expression to map a string onto a valid CPP name. | |
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | |
571 # Sed expression to map a string onto a valid variable name. | |
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | |
574 | |
575 | |
576 exec 7<&0 </dev/null 6>&1 | |
577 | |
578 # Name of the host. | |
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
580 # so uname gets run too. | |
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
582 | |
583 # | |
584 # Initializations. | |
585 # | |
586 ac_default_prefix=/usr/local | |
587 ac_clean_files= | |
588 ac_config_libobj_dir=. | |
589 LIBOBJS= | |
590 cross_compiling=no | |
591 subdirs= | |
592 MFLAGS= | |
593 MAKEFLAGS= | |
594 SHELL=${CONFIG_SHELL-/bin/sh} | |
595 | |
596 # Identity of this package. | |
597 PACKAGE_NAME='LWTOOLS' | |
598 PACKAGE_TARNAME='lwtools' | |
599 PACKAGE_VERSION='2.3' | |
600 PACKAGE_STRING='LWTOOLS 2.3' | |
601 PACKAGE_BUGREPORT='lost@l-w.ca' | |
602 | |
603 # Factoring default headers for most tests. | |
604 ac_includes_default="\ | |
605 #include <stdio.h> | |
606 #ifdef HAVE_SYS_TYPES_H | |
607 # include <sys/types.h> | |
608 #endif | |
609 #ifdef HAVE_SYS_STAT_H | |
610 # include <sys/stat.h> | |
611 #endif | |
612 #ifdef STDC_HEADERS | |
613 # include <stdlib.h> | |
614 # include <stddef.h> | |
615 #else | |
616 # ifdef HAVE_STDLIB_H | |
617 # include <stdlib.h> | |
618 # endif | |
619 #endif | |
620 #ifdef HAVE_STRING_H | |
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
622 # include <memory.h> | |
623 # endif | |
624 # include <string.h> | |
625 #endif | |
626 #ifdef HAVE_STRINGS_H | |
627 # include <strings.h> | |
628 #endif | |
629 #ifdef HAVE_INTTYPES_H | |
630 # include <inttypes.h> | |
631 #endif | |
632 #ifdef HAVE_STDINT_H | |
633 # include <stdint.h> | |
634 #endif | |
635 #ifdef HAVE_UNISTD_H | |
636 # include <unistd.h> | |
637 #endif" | |
638 | |
639 gl_func_list= | |
640 gl_header_list= | |
641 ac_subst_vars='gltests_LTLIBOBJS | |
642 gltests_LIBOBJS | |
643 gl_LTLIBOBJS | |
644 gl_LIBOBJS | |
645 LTLIBOBJS | |
646 LIBOBJS | |
647 LIBGNU_LTLIBDEPS | |
648 LIBGNU_LIBDEPS | |
649 NEXT_WCHAR_H | |
650 HAVE_WCHAR_H | |
651 HAVE_WINT_T | |
652 WCHAR_H | |
653 REPLACE_WCWIDTH | |
654 REPLACE_WCSRTOMBS | |
655 REPLACE_WCRTOMB | |
656 REPLACE_MBSNRTOWCS | |
657 REPLACE_MBSRTOWCS | |
658 REPLACE_MBRLEN | |
659 REPLACE_MBRTOWC | |
660 REPLACE_MBSINIT | |
661 REPLACE_WCTOB | |
662 REPLACE_BTOWC | |
663 REPLACE_MBSTATE_T | |
664 HAVE_DECL_WCWIDTH | |
665 HAVE_DECL_WCTOB | |
666 HAVE_WCSNRTOMBS | |
667 HAVE_WCSRTOMBS | |
668 HAVE_WCRTOMB | |
669 HAVE_MBSNRTOWCS | |
670 HAVE_MBSRTOWCS | |
671 HAVE_MBRLEN | |
672 HAVE_MBRTOWC | |
673 HAVE_MBSINIT | |
674 HAVE_BTOWC | |
675 GNULIB_WCWIDTH | |
676 GNULIB_WCSNRTOMBS | |
677 GNULIB_WCSRTOMBS | |
678 GNULIB_WCRTOMB | |
679 GNULIB_MBSNRTOWCS | |
680 GNULIB_MBSRTOWCS | |
681 GNULIB_MBRLEN | |
682 GNULIB_MBRTOWC | |
683 GNULIB_MBSINIT | |
684 GNULIB_WCTOB | |
685 GNULIB_BTOWC | |
686 HAVE_UNISTD_H | |
687 NEXT_UNISTD_H | |
688 SYSEXITS_H | |
689 HAVE_SYSEXITS_H | |
690 NEXT_SYSEXITS_H | |
691 NEXT_STRINGS_H | |
692 NEXT_STRING_H | |
693 HAVE_DECL_STRNCASECMP | |
694 HAVE_STRCASECMP | |
695 NEXT_STDLIB_H | |
696 NEXT_STDIO_H | |
697 REPLACE_PERROR | |
698 REPLACE_GETLINE | |
699 HAVE_DECL_GETLINE | |
700 HAVE_DECL_GETDELIM | |
701 REPLACE_FCLOSE | |
702 REPLACE_FFLUSH | |
703 REPLACE_FTELL | |
704 REPLACE_FTELLO | |
705 HAVE_FTELLO | |
706 REPLACE_FSEEK | |
707 REPLACE_FSEEKO | |
708 HAVE_FSEEKO | |
709 REPLACE_FREOPEN | |
710 REPLACE_FOPEN | |
711 REPLACE_OBSTACK_PRINTF | |
712 HAVE_DECL_OBSTACK_PRINTF | |
713 REPLACE_VASPRINTF | |
714 HAVE_VASPRINTF | |
715 REPLACE_VSPRINTF | |
716 REPLACE_SPRINTF | |
717 HAVE_DECL_VSNPRINTF | |
718 REPLACE_VSNPRINTF | |
719 HAVE_DECL_SNPRINTF | |
720 REPLACE_SNPRINTF | |
721 REPLACE_VPRINTF | |
722 REPLACE_PRINTF | |
723 REPLACE_VFPRINTF | |
724 REPLACE_FPRINTF | |
725 REPLACE_STDIO_WRITE_FUNCS | |
726 GNULIB_STDIO_H_SIGPIPE | |
727 GNULIB_PERROR | |
728 GNULIB_GETLINE | |
729 GNULIB_GETDELIM | |
730 GNULIB_FWRITE | |
731 GNULIB_PUTS | |
732 GNULIB_FPUTS | |
733 GNULIB_PUTCHAR | |
734 GNULIB_PUTC | |
735 GNULIB_FPUTC | |
736 GNULIB_FCLOSE | |
737 GNULIB_FFLUSH | |
738 GNULIB_FTELLO | |
739 GNULIB_FTELL | |
740 GNULIB_FSEEKO | |
741 GNULIB_FSEEK | |
742 GNULIB_FREOPEN | |
743 GNULIB_FOPEN | |
744 GNULIB_OBSTACK_PRINTF_POSIX | |
745 GNULIB_OBSTACK_PRINTF | |
746 GNULIB_VASPRINTF | |
747 GNULIB_VSPRINTF_POSIX | |
748 GNULIB_VSNPRINTF | |
749 GNULIB_VPRINTF_POSIX | |
750 GNULIB_VPRINTF | |
751 GNULIB_VFPRINTF_POSIX | |
752 GNULIB_VFPRINTF | |
753 GNULIB_SPRINTF_POSIX | |
754 GNULIB_SNPRINTF | |
755 GNULIB_PRINTF_POSIX | |
756 GNULIB_PRINTF | |
757 GNULIB_FPRINTF_POSIX | |
758 GNULIB_FPRINTF | |
759 STDINT_H | |
760 WINT_T_SUFFIX | |
761 WCHAR_T_SUFFIX | |
762 SIG_ATOMIC_T_SUFFIX | |
763 SIZE_T_SUFFIX | |
764 PTRDIFF_T_SUFFIX | |
765 HAVE_SIGNED_WINT_T | |
766 HAVE_SIGNED_WCHAR_T | |
767 HAVE_SIGNED_SIG_ATOMIC_T | |
768 BITSIZEOF_WINT_T | |
769 BITSIZEOF_WCHAR_T | |
770 BITSIZEOF_SIG_ATOMIC_T | |
771 BITSIZEOF_SIZE_T | |
772 BITSIZEOF_PTRDIFF_T | |
773 HAVE_SYS_BITYPES_H | |
774 HAVE_SYS_INTTYPES_H | |
775 HAVE_STDINT_H | |
776 NEXT_STDINT_H | |
777 HAVE_SYS_TYPES_H | |
778 HAVE_INTTYPES_H | |
779 HAVE_UNSIGNED_LONG_LONG_INT | |
780 HAVE_LONG_LONG_INT | |
781 HAVE__BOOL | |
782 STDBOOL_H | |
783 UNISTD_H_HAVE_WINSOCK2_H | |
784 REPLACE_WRITE | |
785 REPLACE_LSEEK | |
786 REPLACE_LCHOWN | |
787 REPLACE_GETPAGESIZE | |
788 REPLACE_GETCWD | |
789 REPLACE_FCHDIR | |
790 REPLACE_CLOSE | |
791 REPLACE_CHOWN | |
792 HAVE_SYS_PARAM_H | |
793 HAVE_OS_H | |
794 HAVE_DECL_GETLOGIN_R | |
795 HAVE_DECL_ENVIRON | |
796 HAVE_SLEEP | |
797 HAVE_READLINK | |
798 HAVE_GETUSERSHELL | |
799 HAVE_GETPAGESIZE | |
800 HAVE_GETHOSTNAME | |
801 HAVE_GETDTABLESIZE | |
802 HAVE_GETDOMAINNAME | |
803 HAVE_FTRUNCATE | |
804 HAVE_FSYNC | |
805 HAVE_EUIDACCESS | |
806 HAVE_DUP2 | |
807 GNULIB_WRITE | |
808 GNULIB_UNISTD_H_SIGPIPE | |
809 GNULIB_SLEEP | |
810 GNULIB_READLINK | |
811 GNULIB_LSEEK | |
812 GNULIB_LCHOWN | |
813 GNULIB_GETUSERSHELL | |
814 GNULIB_GETPAGESIZE | |
815 GNULIB_GETLOGIN_R | |
816 GNULIB_GETHOSTNAME | |
817 GNULIB_GETDTABLESIZE | |
818 GNULIB_GETDOMAINNAME | |
819 GNULIB_GETCWD | |
820 GNULIB_FTRUNCATE | |
821 GNULIB_FSYNC | |
822 GNULIB_FCHDIR | |
823 GNULIB_EUIDACCESS | |
824 GNULIB_ENVIRON | |
825 GNULIB_DUP2 | |
826 GNULIB_CLOSE | |
827 GNULIB_CHOWN | |
828 APPLE_UNIVERSAL_BUILD | |
829 REPLACE_STRSIGNAL | |
830 REPLACE_STRERROR | |
831 REPLACE_STRCASESTR | |
832 REPLACE_STRSTR | |
833 REPLACE_STRDUP | |
834 REPLACE_MEMMEM | |
835 HAVE_STRVERSCMP | |
836 HAVE_DECL_STRSIGNAL | |
837 HAVE_DECL_STRERROR | |
838 HAVE_DECL_STRTOK_R | |
839 HAVE_STRCASESTR | |
840 HAVE_STRSEP | |
841 HAVE_STRPBRK | |
842 HAVE_DECL_STRNLEN | |
843 HAVE_DECL_STRNDUP | |
844 HAVE_STRNDUP | |
845 HAVE_DECL_STRDUP | |
846 HAVE_STRCHRNUL | |
847 HAVE_STPNCPY | |
848 HAVE_STPCPY | |
849 HAVE_RAWMEMCHR | |
850 HAVE_DECL_MEMRCHR | |
851 HAVE_MEMPCPY | |
852 HAVE_DECL_MEMMEM | |
853 GNULIB_STRVERSCMP | |
854 GNULIB_STRSIGNAL | |
855 GNULIB_STRERROR | |
856 GNULIB_MBSTOK_R | |
857 GNULIB_MBSSEP | |
858 GNULIB_MBSSPN | |
859 GNULIB_MBSPBRK | |
860 GNULIB_MBSCSPN | |
861 GNULIB_MBSCASESTR | |
862 GNULIB_MBSPCASECMP | |
863 GNULIB_MBSNCASECMP | |
864 GNULIB_MBSCASECMP | |
865 GNULIB_MBSSTR | |
866 GNULIB_MBSRCHR | |
867 GNULIB_MBSCHR | |
868 GNULIB_MBSNLEN | |
869 GNULIB_MBSLEN | |
870 GNULIB_STRTOK_R | |
871 GNULIB_STRCASESTR | |
872 GNULIB_STRSTR | |
873 GNULIB_STRSEP | |
874 GNULIB_STRPBRK | |
875 GNULIB_STRNLEN | |
876 GNULIB_STRNDUP | |
877 GNULIB_STRDUP | |
878 GNULIB_STRCHRNUL | |
879 GNULIB_STPNCPY | |
880 GNULIB_STPCPY | |
881 GNULIB_RAWMEMCHR | |
882 GNULIB_MEMRCHR | |
883 GNULIB_MEMPCPY | |
884 GNULIB_MEMMEM | |
885 VOID_UNSETENV | |
886 REPLACE_STRTOD | |
887 REPLACE_PUTENV | |
888 REPLACE_MKSTEMP | |
889 HAVE_DECL_GETLOADAVG | |
890 HAVE_UNSETENV | |
891 HAVE_SYS_LOADAVG_H | |
892 HAVE_STRUCT_RANDOM_DATA | |
893 HAVE_STRTOULL | |
894 HAVE_STRTOLL | |
895 HAVE_STRTOD | |
896 HAVE_SETENV | |
897 HAVE_RPMATCH | |
898 HAVE_RANDOM_R | |
899 HAVE_REALLOC_POSIX | |
900 HAVE_MKDTEMP | |
901 HAVE_GETSUBOPT | |
902 HAVE_CALLOC_POSIX | |
903 HAVE_ATOLL | |
904 GNULIB_UNSETENV | |
905 GNULIB_STRTOULL | |
906 GNULIB_STRTOLL | |
907 GNULIB_STRTOD | |
908 GNULIB_SETENV | |
909 GNULIB_RPMATCH | |
910 GNULIB_RANDOM_R | |
911 GNULIB_PUTENV | |
912 GNULIB_MKSTEMP | |
913 GNULIB_MKDTEMP | |
914 GNULIB_GETSUBOPT | |
915 GNULIB_GETLOADAVG | |
916 GNULIB_ATOLL | |
917 GNULIB_CALLOC_POSIX | |
918 GNULIB_REALLOC_POSIX | |
919 GNULIB_MALLOC_POSIX | |
920 HAVE_MALLOC_POSIX | |
921 LTLIBINTL | |
922 LIBINTL | |
923 FLOAT_H | |
924 NEXT_FLOAT_H | |
925 EOVERFLOW_VALUE | |
926 EOVERFLOW_HIDDEN | |
927 ENOLINK_VALUE | |
928 ENOLINK_HIDDEN | |
929 EMULTIHOP_VALUE | |
930 EMULTIHOP_HIDDEN | |
931 ERRNO_H | |
932 NEXT_ERRNO_H | |
933 PRAGMA_SYSTEM_HEADER | |
934 INCLUDE_NEXT_AS_FIRST_DIRECTIVE | |
935 INCLUDE_NEXT | |
936 GETOPT_H | |
937 ALLOCA_H | |
938 ALLOCA | |
939 GL_COND_LIBTOOL_FALSE | |
940 GL_COND_LIBTOOL_TRUE | |
941 EGREP | |
942 GREP | |
943 CPP | |
944 host_os | |
945 host_vendor | |
946 host_cpu | |
947 host | |
948 build_os | |
949 build_vendor | |
950 build_cpu | |
951 build | |
952 RANLIB | |
953 am__fastdepCC_FALSE | |
954 am__fastdepCC_TRUE | |
955 CCDEPMODE | |
956 AMDEPBACKSLASH | |
957 AMDEP_FALSE | |
958 AMDEP_TRUE | |
959 am__quote | |
960 am__include | |
961 DEPDIR | |
962 OBJEXT | |
963 EXEEXT | |
964 ac_ct_CC | |
965 CPPFLAGS | |
966 LDFLAGS | |
967 CFLAGS | |
968 CC | |
969 am__untar | |
970 am__tar | |
971 AMTAR | |
972 am__leading_dot | |
973 SET_MAKE | |
974 AWK | |
975 mkdir_p | |
976 MKDIR_P | |
977 INSTALL_STRIP_PROGRAM | |
978 STRIP | |
979 install_sh | |
980 MAKEINFO | |
981 AUTOHEADER | |
982 AUTOMAKE | |
983 AUTOCONF | |
984 ACLOCAL | |
985 VERSION | |
986 PACKAGE | |
987 CYGPATH_W | |
988 am__isrc | |
989 INSTALL_DATA | |
990 INSTALL_SCRIPT | |
991 INSTALL_PROGRAM | |
992 target_alias | |
993 host_alias | |
994 build_alias | |
995 LIBS | |
996 ECHO_T | |
997 ECHO_N | |
998 ECHO_C | |
999 DEFS | |
1000 mandir | |
1001 localedir | |
1002 libdir | |
1003 psdir | |
1004 pdfdir | |
1005 dvidir | |
1006 htmldir | |
1007 infodir | |
1008 docdir | |
1009 oldincludedir | |
1010 includedir | |
1011 localstatedir | |
1012 sharedstatedir | |
1013 sysconfdir | |
1014 datadir | |
1015 datarootdir | |
1016 libexecdir | |
1017 sbindir | |
1018 bindir | |
1019 program_transform_name | |
1020 prefix | |
1021 exec_prefix | |
1022 PACKAGE_BUGREPORT | |
1023 PACKAGE_STRING | |
1024 PACKAGE_VERSION | |
1025 PACKAGE_TARNAME | |
1026 PACKAGE_NAME | |
1027 PATH_SEPARATOR | |
1028 SHELL' | |
1029 ac_subst_files='' | |
1030 ac_user_opts=' | |
1031 enable_option_checking | |
1032 enable_dependency_tracking | |
1033 ' | |
1034 ac_precious_vars='build_alias | |
1035 host_alias | |
1036 target_alias | |
1037 CC | |
1038 CFLAGS | |
1039 LDFLAGS | |
1040 LIBS | |
1041 CPPFLAGS | |
1042 CPP' | |
1043 | |
1044 | |
1045 # Initialize some variables set by options. | |
1046 ac_init_help= | |
1047 ac_init_version=false | |
1048 ac_unrecognized_opts= | |
1049 ac_unrecognized_sep= | |
1050 # The variables have the same names as the options, with | |
1051 # dashes changed to underlines. | |
1052 cache_file=/dev/null | |
1053 exec_prefix=NONE | |
1054 no_create= | |
1055 no_recursion= | |
1056 prefix=NONE | |
1057 program_prefix=NONE | |
1058 program_suffix=NONE | |
1059 program_transform_name=s,x,x, | |
1060 silent= | |
1061 site= | |
1062 srcdir= | |
1063 verbose= | |
1064 x_includes=NONE | |
1065 x_libraries=NONE | |
1066 | |
1067 # Installation directory options. | |
1068 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1069 # and all the variables that are supposed to be based on exec_prefix | |
1070 # by default will actually change. | |
1071 # Use braces instead of parens because sh, perl, etc. also accept them. | |
1072 # (The list follows the same order as the GNU Coding Standards.) | |
1073 bindir='${exec_prefix}/bin' | |
1074 sbindir='${exec_prefix}/sbin' | |
1075 libexecdir='${exec_prefix}/libexec' | |
1076 datarootdir='${prefix}/share' | |
1077 datadir='${datarootdir}' | |
1078 sysconfdir='${prefix}/etc' | |
1079 sharedstatedir='${prefix}/com' | |
1080 localstatedir='${prefix}/var' | |
1081 includedir='${prefix}/include' | |
1082 oldincludedir='/usr/include' | |
1083 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
1084 infodir='${datarootdir}/info' | |
1085 htmldir='${docdir}' | |
1086 dvidir='${docdir}' | |
1087 pdfdir='${docdir}' | |
1088 psdir='${docdir}' | |
1089 libdir='${exec_prefix}/lib' | |
1090 localedir='${datarootdir}/locale' | |
1091 mandir='${datarootdir}/man' | |
1092 | |
1093 ac_prev= | |
1094 ac_dashdash= | |
1095 for ac_option | |
1096 do | |
1097 # If the previous option needs an argument, assign it. | |
1098 if test -n "$ac_prev"; then | |
1099 eval $ac_prev=\$ac_option | |
1100 ac_prev= | |
1101 continue | |
1102 fi | |
1103 | |
1104 case $ac_option in | |
1105 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1106 *) ac_optarg=yes ;; | |
1107 esac | |
1108 | |
1109 # Accept the important Cygnus configure options, so we can diagnose typos. | |
1110 | |
1111 case $ac_dashdash$ac_option in | |
1112 --) | |
1113 ac_dashdash=yes ;; | |
1114 | |
1115 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1116 ac_prev=bindir ;; | |
1117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1118 bindir=$ac_optarg ;; | |
1119 | |
1120 -build | --build | --buil | --bui | --bu) | |
1121 ac_prev=build_alias ;; | |
1122 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1123 build_alias=$ac_optarg ;; | |
1124 | |
1125 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1127 ac_prev=cache_file ;; | |
1128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1130 cache_file=$ac_optarg ;; | |
1131 | |
1132 --config-cache | -C) | |
1133 cache_file=config.cache ;; | |
1134 | |
1135 -datadir | --datadir | --datadi | --datad) | |
1136 ac_prev=datadir ;; | |
1137 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1138 datadir=$ac_optarg ;; | |
1139 | |
1140 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1141 | --dataroo | --dataro | --datar) | |
1142 ac_prev=datarootdir ;; | |
1143 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1144 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1145 datarootdir=$ac_optarg ;; | |
1146 | |
1147 -disable-* | --disable-*) | |
1148 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1149 # Reject names that are not valid shell variable names. | |
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1151 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1152 { (exit 1); exit 1; }; } | |
1153 ac_useropt_orig=$ac_useropt | |
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1155 case $ac_user_opts in | |
1156 *" | |
1157 "enable_$ac_useropt" | |
1158 "*) ;; | |
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1160 ac_unrecognized_sep=', ';; | |
1161 esac | |
1162 eval enable_$ac_useropt=no ;; | |
1163 | |
1164 -docdir | --docdir | --docdi | --doc | --do) | |
1165 ac_prev=docdir ;; | |
1166 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1167 docdir=$ac_optarg ;; | |
1168 | |
1169 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1170 ac_prev=dvidir ;; | |
1171 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1172 dvidir=$ac_optarg ;; | |
1173 | |
1174 -enable-* | --enable-*) | |
1175 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1176 # Reject names that are not valid shell variable names. | |
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1178 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1179 { (exit 1); exit 1; }; } | |
1180 ac_useropt_orig=$ac_useropt | |
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1182 case $ac_user_opts in | |
1183 *" | |
1184 "enable_$ac_useropt" | |
1185 "*) ;; | |
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1187 ac_unrecognized_sep=', ';; | |
1188 esac | |
1189 eval enable_$ac_useropt=\$ac_optarg ;; | |
1190 | |
1191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1193 | --exec | --exe | --ex) | |
1194 ac_prev=exec_prefix ;; | |
1195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1197 | --exec=* | --exe=* | --ex=*) | |
1198 exec_prefix=$ac_optarg ;; | |
1199 | |
1200 -gas | --gas | --ga | --g) | |
1201 # Obsolete; use --with-gas. | |
1202 with_gas=yes ;; | |
1203 | |
1204 -help | --help | --hel | --he | -h) | |
1205 ac_init_help=long ;; | |
1206 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1207 ac_init_help=recursive ;; | |
1208 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1209 ac_init_help=short ;; | |
1210 | |
1211 -host | --host | --hos | --ho) | |
1212 ac_prev=host_alias ;; | |
1213 -host=* | --host=* | --hos=* | --ho=*) | |
1214 host_alias=$ac_optarg ;; | |
1215 | |
1216 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1217 ac_prev=htmldir ;; | |
1218 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1219 | --ht=*) | |
1220 htmldir=$ac_optarg ;; | |
1221 | |
1222 -includedir | --includedir | --includedi | --included | --include \ | |
1223 | --includ | --inclu | --incl | --inc) | |
1224 ac_prev=includedir ;; | |
1225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1226 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1227 includedir=$ac_optarg ;; | |
1228 | |
1229 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1230 ac_prev=infodir ;; | |
1231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1232 infodir=$ac_optarg ;; | |
1233 | |
1234 -libdir | --libdir | --libdi | --libd) | |
1235 ac_prev=libdir ;; | |
1236 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1237 libdir=$ac_optarg ;; | |
1238 | |
1239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1240 | --libexe | --libex | --libe) | |
1241 ac_prev=libexecdir ;; | |
1242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1243 | --libexe=* | --libex=* | --libe=*) | |
1244 libexecdir=$ac_optarg ;; | |
1245 | |
1246 -localedir | --localedir | --localedi | --localed | --locale) | |
1247 ac_prev=localedir ;; | |
1248 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1249 localedir=$ac_optarg ;; | |
1250 | |
1251 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1252 | --localstate | --localstat | --localsta | --localst | --locals) | |
1253 ac_prev=localstatedir ;; | |
1254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1255 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1256 localstatedir=$ac_optarg ;; | |
1257 | |
1258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1259 ac_prev=mandir ;; | |
1260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1261 mandir=$ac_optarg ;; | |
1262 | |
1263 -nfp | --nfp | --nf) | |
1264 # Obsolete; use --without-fp. | |
1265 with_fp=no ;; | |
1266 | |
1267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1268 | --no-cr | --no-c | -n) | |
1269 no_create=yes ;; | |
1270 | |
1271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1273 no_recursion=yes ;; | |
1274 | |
1275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1277 | --oldin | --oldi | --old | --ol | --o) | |
1278 ac_prev=oldincludedir ;; | |
1279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1282 oldincludedir=$ac_optarg ;; | |
1283 | |
1284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1285 ac_prev=prefix ;; | |
1286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1287 prefix=$ac_optarg ;; | |
1288 | |
1289 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1290 | --program-pre | --program-pr | --program-p) | |
1291 ac_prev=program_prefix ;; | |
1292 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1294 program_prefix=$ac_optarg ;; | |
1295 | |
1296 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1297 | --program-suf | --program-su | --program-s) | |
1298 ac_prev=program_suffix ;; | |
1299 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1301 program_suffix=$ac_optarg ;; | |
1302 | |
1303 -program-transform-name | --program-transform-name \ | |
1304 | --program-transform-nam | --program-transform-na \ | |
1305 | --program-transform-n | --program-transform- \ | |
1306 | --program-transform | --program-transfor \ | |
1307 | --program-transfo | --program-transf \ | |
1308 | --program-trans | --program-tran \ | |
1309 | --progr-tra | --program-tr | --program-t) | |
1310 ac_prev=program_transform_name ;; | |
1311 -program-transform-name=* | --program-transform-name=* \ | |
1312 | --program-transform-nam=* | --program-transform-na=* \ | |
1313 | --program-transform-n=* | --program-transform-=* \ | |
1314 | --program-transform=* | --program-transfor=* \ | |
1315 | --program-transfo=* | --program-transf=* \ | |
1316 | --program-trans=* | --program-tran=* \ | |
1317 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1318 program_transform_name=$ac_optarg ;; | |
1319 | |
1320 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1321 ac_prev=pdfdir ;; | |
1322 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1323 pdfdir=$ac_optarg ;; | |
1324 | |
1325 -psdir | --psdir | --psdi | --psd | --ps) | |
1326 ac_prev=psdir ;; | |
1327 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1328 psdir=$ac_optarg ;; | |
1329 | |
1330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1331 | -silent | --silent | --silen | --sile | --sil) | |
1332 silent=yes ;; | |
1333 | |
1334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1335 ac_prev=sbindir ;; | |
1336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1337 | --sbi=* | --sb=*) | |
1338 sbindir=$ac_optarg ;; | |
1339 | |
1340 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1342 | --sharedst | --shareds | --shared | --share | --shar \ | |
1343 | --sha | --sh) | |
1344 ac_prev=sharedstatedir ;; | |
1345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1348 | --sha=* | --sh=*) | |
1349 sharedstatedir=$ac_optarg ;; | |
1350 | |
1351 -site | --site | --sit) | |
1352 ac_prev=site ;; | |
1353 -site=* | --site=* | --sit=*) | |
1354 site=$ac_optarg ;; | |
1355 | |
1356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1357 ac_prev=srcdir ;; | |
1358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1359 srcdir=$ac_optarg ;; | |
1360 | |
1361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1362 | --syscon | --sysco | --sysc | --sys | --sy) | |
1363 ac_prev=sysconfdir ;; | |
1364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1366 sysconfdir=$ac_optarg ;; | |
1367 | |
1368 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1369 ac_prev=target_alias ;; | |
1370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1371 target_alias=$ac_optarg ;; | |
1372 | |
1373 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1374 verbose=yes ;; | |
1375 | |
1376 -version | --version | --versio | --versi | --vers | -V) | |
1377 ac_init_version=: ;; | |
1378 | |
1379 -with-* | --with-*) | |
1380 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1381 # Reject names that are not valid shell variable names. | |
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1383 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1384 { (exit 1); exit 1; }; } | |
1385 ac_useropt_orig=$ac_useropt | |
1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1387 case $ac_user_opts in | |
1388 *" | |
1389 "with_$ac_useropt" | |
1390 "*) ;; | |
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1392 ac_unrecognized_sep=', ';; | |
1393 esac | |
1394 eval with_$ac_useropt=\$ac_optarg ;; | |
1395 | |
1396 -without-* | --without-*) | |
1397 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1398 # Reject names that are not valid shell variable names. | |
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1400 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1401 { (exit 1); exit 1; }; } | |
1402 ac_useropt_orig=$ac_useropt | |
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1404 case $ac_user_opts in | |
1405 *" | |
1406 "with_$ac_useropt" | |
1407 "*) ;; | |
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1409 ac_unrecognized_sep=', ';; | |
1410 esac | |
1411 eval with_$ac_useropt=no ;; | |
1412 | |
1413 --x) | |
1414 # Obsolete; use --with-x. | |
1415 with_x=yes ;; | |
1416 | |
1417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1418 | --x-incl | --x-inc | --x-in | --x-i) | |
1419 ac_prev=x_includes ;; | |
1420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1422 x_includes=$ac_optarg ;; | |
1423 | |
1424 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1426 ac_prev=x_libraries ;; | |
1427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1429 x_libraries=$ac_optarg ;; | |
1430 | |
1431 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1432 Try \`$0 --help' for more information." >&2 | |
1433 { (exit 1); exit 1; }; } | |
1434 ;; | |
1435 | |
1436 *=*) | |
1437 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1438 # Reject names that are not valid shell variable names. | |
1439 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1440 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1441 { (exit 1); exit 1; }; } | |
1442 eval $ac_envvar=\$ac_optarg | |
1443 export $ac_envvar ;; | |
1444 | |
1445 *) | |
1446 # FIXME: should be removed in autoconf 3.0. | |
1447 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1448 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1449 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1450 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1451 ;; | |
1452 | |
1453 esac | |
1454 done | |
1455 | |
1456 if test -n "$ac_prev"; then | |
1457 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1458 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1459 { (exit 1); exit 1; }; } | |
1460 fi | |
1461 | |
1462 if test -n "$ac_unrecognized_opts"; then | |
1463 case $enable_option_checking in | |
1464 no) ;; | |
1465 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1466 { (exit 1); exit 1; }; } ;; | |
1467 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1468 esac | |
1469 fi | |
1470 | |
1471 # Check all directory arguments for consistency. | |
1472 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1473 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1474 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1475 libdir localedir mandir | |
1476 do | |
1477 eval ac_val=\$$ac_var | |
1478 # Remove trailing slashes. | |
1479 case $ac_val in | |
1480 */ ) | |
1481 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1482 eval $ac_var=\$ac_val;; | |
1483 esac | |
1484 # Be sure to have absolute directory names. | |
1485 case $ac_val in | |
1486 [\\/$]* | ?:[\\/]* ) continue;; | |
1487 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1488 esac | |
1489 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1490 { (exit 1); exit 1; }; } | |
1491 done | |
1492 | |
1493 # There might be people who depend on the old broken behavior: `$host' | |
1494 # used to hold the argument of --host etc. | |
1495 # FIXME: To remove some day. | |
1496 build=$build_alias | |
1497 host=$host_alias | |
1498 target=$target_alias | |
1499 | |
1500 # FIXME: To remove some day. | |
1501 if test "x$host_alias" != x; then | |
1502 if test "x$build_alias" = x; then | |
1503 cross_compiling=maybe | |
1504 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1505 If a cross compiler is detected then cross compile mode will be used." >&2 | |
1506 elif test "x$build_alias" != "x$host_alias"; then | |
1507 cross_compiling=yes | |
1508 fi | |
1509 fi | |
1510 | |
1511 ac_tool_prefix= | |
1512 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1513 | |
1514 test "$silent" = yes && exec 6>/dev/null | |
1515 | |
1516 | |
1517 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1518 ac_ls_di=`ls -di .` && | |
1519 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1520 { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1521 { (exit 1); exit 1; }; } | |
1522 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1523 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1524 { (exit 1); exit 1; }; } | |
1525 | |
1526 | |
1527 # Find the source files, if location was not specified. | |
1528 if test -z "$srcdir"; then | |
1529 ac_srcdir_defaulted=yes | |
1530 # Try the directory containing this script, then the parent directory. | |
1531 ac_confdir=`$as_dirname -- "$as_myself" || | |
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1533 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1534 X"$as_myself" : 'X\(//\)$' \| \ | |
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1536 $as_echo X"$as_myself" | | |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1538 s//\1/ | |
1539 q | |
1540 } | |
1541 /^X\(\/\/\)[^/].*/{ | |
1542 s//\1/ | |
1543 q | |
1544 } | |
1545 /^X\(\/\/\)$/{ | |
1546 s//\1/ | |
1547 q | |
1548 } | |
1549 /^X\(\/\).*/{ | |
1550 s//\1/ | |
1551 q | |
1552 } | |
1553 s/.*/./; q'` | |
1554 srcdir=$ac_confdir | |
1555 if test ! -r "$srcdir/$ac_unique_file"; then | |
1556 srcdir=.. | |
1557 fi | |
1558 else | |
1559 ac_srcdir_defaulted=no | |
1560 fi | |
1561 if test ! -r "$srcdir/$ac_unique_file"; then | |
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1563 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1564 { (exit 1); exit 1; }; } | |
1565 fi | |
1566 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1567 ac_abs_confdir=`( | |
1568 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1569 { (exit 1); exit 1; }; } | |
1570 pwd)` | |
1571 # When building in place, set srcdir=. | |
1572 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1573 srcdir=. | |
1574 fi | |
1575 # Remove unnecessary trailing slashes from srcdir. | |
1576 # Double slashes in file names in object file debugging info | |
1577 # mess up M-x gdb in Emacs. | |
1578 case $srcdir in | |
1579 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1580 esac | |
1581 for ac_var in $ac_precious_vars; do | |
1582 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1583 eval ac_env_${ac_var}_value=\$${ac_var} | |
1584 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1585 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1586 done | |
1587 | |
1588 # | |
1589 # Report the --help message. | |
1590 # | |
1591 if test "$ac_init_help" = "long"; then | |
1592 # Omit some internal or obsolete options to make the list less imposing. | |
1593 # This message is too long to be a string in the A/UX 3.1 sh. | |
1594 cat <<_ACEOF | |
1595 \`configure' configures LWTOOLS 2.3 to adapt to many kinds of systems. | |
1596 | |
1597 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1598 | |
1599 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1600 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1601 | |
1602 Defaults for the options are specified in brackets. | |
1603 | |
1604 Configuration: | |
1605 -h, --help display this help and exit | |
1606 --help=short display options specific to this package | |
1607 --help=recursive display the short help of all the included packages | |
1608 -V, --version display version information and exit | |
1609 -q, --quiet, --silent do not print \`checking...' messages | |
1610 --cache-file=FILE cache test results in FILE [disabled] | |
1611 -C, --config-cache alias for \`--cache-file=config.cache' | |
1612 -n, --no-create do not create output files | |
1613 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1614 | |
1615 Installation directories: | |
1616 --prefix=PREFIX install architecture-independent files in PREFIX | |
1617 [$ac_default_prefix] | |
1618 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1619 [PREFIX] | |
1620 | |
1621 By default, \`make install' will install all the files in | |
1622 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1623 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1624 for instance \`--prefix=\$HOME'. | |
1625 | |
1626 For better control, use the options below. | |
1627 | |
1628 Fine tuning of the installation directories: | |
1629 --bindir=DIR user executables [EPREFIX/bin] | |
1630 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1631 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1632 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1633 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1634 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1635 --libdir=DIR object code libraries [EPREFIX/lib] | |
1636 --includedir=DIR C header files [PREFIX/include] | |
1637 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1638 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1639 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1640 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1641 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1642 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1643 --docdir=DIR documentation root [DATAROOTDIR/doc/lwtools] | |
1644 --htmldir=DIR html documentation [DOCDIR] | |
1645 --dvidir=DIR dvi documentation [DOCDIR] | |
1646 --pdfdir=DIR pdf documentation [DOCDIR] | |
1647 --psdir=DIR ps documentation [DOCDIR] | |
1648 _ACEOF | |
1649 | |
1650 cat <<\_ACEOF | |
1651 | |
1652 Program names: | |
1653 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1654 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1655 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1656 | |
1657 System types: | |
1658 --build=BUILD configure for building on BUILD [guessed] | |
1659 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1660 _ACEOF | |
1661 fi | |
1662 | |
1663 if test -n "$ac_init_help"; then | |
1664 case $ac_init_help in | |
1665 short | recursive ) echo "Configuration of LWTOOLS 2.3:";; | |
1666 esac | |
1667 cat <<\_ACEOF | |
1668 | |
1669 Optional Features: | |
1670 --disable-option-checking ignore unrecognized --enable/--with options | |
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1673 --disable-dependency-tracking speeds up one-time build | |
1674 --enable-dependency-tracking do not reject slow dependency extractors | |
1675 | |
1676 Some influential environment variables: | |
1677 CC C compiler command | |
1678 CFLAGS C compiler flags | |
1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1680 nonstandard directory <lib dir> | |
1681 LIBS libraries to pass to the linker, e.g. -l<library> | |
1682 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1683 you have headers in a nonstandard directory <include dir> | |
1684 CPP C preprocessor | |
1685 | |
1686 Use these variables to override the choices made by `configure' or to help | |
1687 it to find libraries and programs with nonstandard names/locations. | |
1688 | |
1689 Report bugs to <lost@l-w.ca>. | |
1690 _ACEOF | |
1691 ac_status=$? | |
1692 fi | |
1693 | |
1694 if test "$ac_init_help" = "recursive"; then | |
1695 # If there are subdirs, report their specific --help. | |
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1697 test -d "$ac_dir" || | |
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1699 continue | |
1700 ac_builddir=. | |
1701 | |
1702 case "$ac_dir" in | |
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1704 *) | |
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1706 # A ".." for each directory in $ac_dir_suffix. | |
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1708 case $ac_top_builddir_sub in | |
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1711 esac ;; | |
1712 esac | |
1713 ac_abs_top_builddir=$ac_pwd | |
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1715 # for backward compatibility: | |
1716 ac_top_builddir=$ac_top_build_prefix | |
1717 | |
1718 case $srcdir in | |
1719 .) # We are building in place. | |
1720 ac_srcdir=. | |
1721 ac_top_srcdir=$ac_top_builddir_sub | |
1722 ac_abs_top_srcdir=$ac_pwd ;; | |
1723 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1724 ac_srcdir=$srcdir$ac_dir_suffix; | |
1725 ac_top_srcdir=$srcdir | |
1726 ac_abs_top_srcdir=$srcdir ;; | |
1727 *) # Relative name. | |
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1731 esac | |
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1733 | |
1734 cd "$ac_dir" || { ac_status=$?; continue; } | |
1735 # Check for guested configure. | |
1736 if test -f "$ac_srcdir/configure.gnu"; then | |
1737 echo && | |
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1739 elif test -f "$ac_srcdir/configure"; then | |
1740 echo && | |
1741 $SHELL "$ac_srcdir/configure" --help=recursive | |
1742 else | |
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1744 fi || ac_status=$? | |
1745 cd "$ac_pwd" || { ac_status=$?; break; } | |
1746 done | |
1747 fi | |
1748 | |
1749 test -n "$ac_init_help" && exit $ac_status | |
1750 if $ac_init_version; then | |
1751 cat <<\_ACEOF | |
1752 LWTOOLS configure 2.3 | |
1753 generated by GNU Autoconf 2.63 | |
1754 | |
1755 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1756 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1757 This configure script is free software; the Free Software Foundation | |
1758 gives unlimited permission to copy, distribute and modify it. | |
1759 _ACEOF | |
1760 exit | |
1761 fi | |
1762 cat >config.log <<_ACEOF | |
1763 This file contains any messages produced by compilers while | |
1764 running configure, to aid debugging if configure makes a mistake. | |
1765 | |
1766 It was created by LWTOOLS $as_me 2.3, which was | |
1767 generated by GNU Autoconf 2.63. Invocation command line was | |
1768 | |
1769 $ $0 $@ | |
1770 | |
1771 _ACEOF | |
1772 exec 5>>config.log | |
1773 { | |
1774 cat <<_ASUNAME | |
1775 ## --------- ## | |
1776 ## Platform. ## | |
1777 ## --------- ## | |
1778 | |
1779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1780 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1781 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1782 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1783 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1784 | |
1785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1787 | |
1788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1795 | |
1796 _ASUNAME | |
1797 | |
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1799 for as_dir in $PATH | |
1800 do | |
1801 IFS=$as_save_IFS | |
1802 test -z "$as_dir" && as_dir=. | |
1803 $as_echo "PATH: $as_dir" | |
1804 done | |
1805 IFS=$as_save_IFS | |
1806 | |
1807 } >&5 | |
1808 | |
1809 cat >&5 <<_ACEOF | |
1810 | |
1811 | |
1812 ## ----------- ## | |
1813 ## Core tests. ## | |
1814 ## ----------- ## | |
1815 | |
1816 _ACEOF | |
1817 | |
1818 | |
1819 # Keep a trace of the command line. | |
1820 # Strip out --no-create and --no-recursion so they do not pile up. | |
1821 # Strip out --silent because we don't want to record it for future runs. | |
1822 # Also quote any args containing shell meta-characters. | |
1823 # Make two passes to allow for proper duplicate-argument suppression. | |
1824 ac_configure_args= | |
1825 ac_configure_args0= | |
1826 ac_configure_args1= | |
1827 ac_must_keep_next=false | |
1828 for ac_pass in 1 2 | |
1829 do | |
1830 for ac_arg | |
1831 do | |
1832 case $ac_arg in | |
1833 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1835 | -silent | --silent | --silen | --sile | --sil) | |
1836 continue ;; | |
1837 *\'*) | |
1838 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1839 esac | |
1840 case $ac_pass in | |
1841 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1842 2) | |
1843 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1844 if test $ac_must_keep_next = true; then | |
1845 ac_must_keep_next=false # Got value, back to normal. | |
1846 else | |
1847 case $ac_arg in | |
1848 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1851 | -with-* | --with-* | -without-* | --without-* | --x) | |
1852 case "$ac_configure_args0 " in | |
1853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1854 esac | |
1855 ;; | |
1856 -* ) ac_must_keep_next=true ;; | |
1857 esac | |
1858 fi | |
1859 ac_configure_args="$ac_configure_args '$ac_arg'" | |
1860 ;; | |
1861 esac | |
1862 done | |
1863 done | |
1864 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1865 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1866 | |
1867 # When interrupted or exit'd, cleanup temporary files, and complete | |
1868 # config.log. We remove comments because anyway the quotes in there | |
1869 # would cause problems or look ugly. | |
1870 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1872 trap 'exit_status=$? | |
1873 # Save into config.log some information that might help in debugging. | |
1874 { | |
1875 echo | |
1876 | |
1877 cat <<\_ASBOX | |
1878 ## ---------------- ## | |
1879 ## Cache variables. ## | |
1880 ## ---------------- ## | |
1881 _ASBOX | |
1882 echo | |
1883 # The following way of writing the cache mishandles newlines in values, | |
1884 ( | |
1885 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1886 eval ac_val=\$$ac_var | |
1887 case $ac_val in #( | |
1888 *${as_nl}*) | |
1889 case $ac_var in #( | |
1890 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1892 esac | |
1893 case $ac_var in #( | |
1894 _ | IFS | as_nl) ;; #( | |
1895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1896 *) $as_unset $ac_var ;; | |
1897 esac ;; | |
1898 esac | |
1899 done | |
1900 (set) 2>&1 | | |
1901 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1902 *${as_nl}ac_space=\ *) | |
1903 sed -n \ | |
1904 "s/'\''/'\''\\\\'\'''\''/g; | |
1905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1906 ;; #( | |
1907 *) | |
1908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1909 ;; | |
1910 esac | | |
1911 sort | |
1912 ) | |
1913 echo | |
1914 | |
1915 cat <<\_ASBOX | |
1916 ## ----------------- ## | |
1917 ## Output variables. ## | |
1918 ## ----------------- ## | |
1919 _ASBOX | |
1920 echo | |
1921 for ac_var in $ac_subst_vars | |
1922 do | |
1923 eval ac_val=\$$ac_var | |
1924 case $ac_val in | |
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1926 esac | |
1927 $as_echo "$ac_var='\''$ac_val'\''" | |
1928 done | sort | |
1929 echo | |
1930 | |
1931 if test -n "$ac_subst_files"; then | |
1932 cat <<\_ASBOX | |
1933 ## ------------------- ## | |
1934 ## File substitutions. ## | |
1935 ## ------------------- ## | |
1936 _ASBOX | |
1937 echo | |
1938 for ac_var in $ac_subst_files | |
1939 do | |
1940 eval ac_val=\$$ac_var | |
1941 case $ac_val in | |
1942 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1943 esac | |
1944 $as_echo "$ac_var='\''$ac_val'\''" | |
1945 done | sort | |
1946 echo | |
1947 fi | |
1948 | |
1949 if test -s confdefs.h; then | |
1950 cat <<\_ASBOX | |
1951 ## ----------- ## | |
1952 ## confdefs.h. ## | |
1953 ## ----------- ## | |
1954 _ASBOX | |
1955 echo | |
1956 cat confdefs.h | |
1957 echo | |
1958 fi | |
1959 test "$ac_signal" != 0 && | |
1960 $as_echo "$as_me: caught signal $ac_signal" | |
1961 $as_echo "$as_me: exit $exit_status" | |
1962 } >&5 | |
1963 rm -f core *.core core.conftest.* && | |
1964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1965 exit $exit_status | |
1966 ' 0 | |
1967 for ac_signal in 1 2 13 15; do | |
1968 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1969 done | |
1970 ac_signal=0 | |
1971 | |
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1973 rm -f -r conftest* confdefs.h | |
1974 | |
1975 # Predefined preprocessor variables. | |
1976 | |
1977 cat >>confdefs.h <<_ACEOF | |
1978 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1979 _ACEOF | |
1980 | |
1981 | |
1982 cat >>confdefs.h <<_ACEOF | |
1983 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1984 _ACEOF | |
1985 | |
1986 | |
1987 cat >>confdefs.h <<_ACEOF | |
1988 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1989 _ACEOF | |
1990 | |
1991 | |
1992 cat >>confdefs.h <<_ACEOF | |
1993 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1994 _ACEOF | |
1995 | |
1996 | |
1997 cat >>confdefs.h <<_ACEOF | |
1998 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1999 _ACEOF | |
2000 | |
2001 | |
2002 # Let the site file select an alternate cache file if it wants to. | |
2003 # Prefer an explicitly selected file to automatically selected ones. | |
2004 ac_site_file1=NONE | |
2005 ac_site_file2=NONE | |
2006 if test -n "$CONFIG_SITE"; then | |
2007 ac_site_file1=$CONFIG_SITE | |
2008 elif test "x$prefix" != xNONE; then | |
2009 ac_site_file1=$prefix/share/config.site | |
2010 ac_site_file2=$prefix/etc/config.site | |
2011 else | |
2012 ac_site_file1=$ac_default_prefix/share/config.site | |
2013 ac_site_file2=$ac_default_prefix/etc/config.site | |
2014 fi | |
2015 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2016 do | |
2017 test "x$ac_site_file" = xNONE && continue | |
2018 if test -r "$ac_site_file"; then | |
2019 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
2020 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2021 sed 's/^/| /' "$ac_site_file" >&5 | |
2022 . "$ac_site_file" | |
2023 fi | |
2024 done | |
2025 | |
2026 if test -r "$cache_file"; then | |
2027 # Some versions of bash will fail to source /dev/null (special | |
2028 # files actually), so we avoid doing that. | |
2029 if test -f "$cache_file"; then | |
2030 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
2031 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2032 case $cache_file in | |
2033 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2034 *) . "./$cache_file";; | |
2035 esac | |
2036 fi | |
2037 else | |
2038 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
2039 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2040 >$cache_file | |
2041 fi | |
2042 | |
2043 gl_func_list="$gl_func_list flockfile" | |
2044 gl_func_list="$gl_func_list funlockfile" | |
2045 gl_header_list="$gl_header_list features.h" | |
2046 gl_header_list="$gl_header_list linewrap.h" | |
2047 gl_header_list="$gl_header_list errno.h" | |
2048 gl_header_list="$gl_header_list float.h" | |
2049 gl_header_list="$gl_header_list stdint.h" | |
2050 gl_header_list="$gl_header_list wchar.h" | |
2051 gl_header_list="$gl_header_list stdio.h" | |
2052 gl_header_list="$gl_header_list stdlib.h" | |
2053 gl_header_list="$gl_header_list sys/socket.h" | |
2054 gl_header_list="$gl_header_list string.h" | |
2055 gl_header_list="$gl_header_list strings.h" | |
2056 gl_header_list="$gl_header_list sysexits.h" | |
2057 gl_header_list="$gl_header_list unistd.h" | |
2058 gl_func_list="$gl_func_list vasnprintf" | |
2059 # Check that the precious variables saved in the cache have kept the same | |
2060 # value. | |
2061 ac_cache_corrupted=false | |
2062 for ac_var in $ac_precious_vars; do | |
2063 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2064 eval ac_new_set=\$ac_env_${ac_var}_set | |
2065 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2066 eval ac_new_val=\$ac_env_${ac_var}_value | |
2067 case $ac_old_set,$ac_new_set in | |
2068 set,) | |
2069 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2070 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2071 ac_cache_corrupted=: ;; | |
2072 ,set) | |
2073 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
2074 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2075 ac_cache_corrupted=: ;; | |
2076 ,);; | |
2077 *) | |
2078 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2079 # differences in whitespace do not lead to failure. | |
2080 ac_old_val_w=`echo x $ac_old_val` | |
2081 ac_new_val_w=`echo x $ac_new_val` | |
2082 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2083 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2084 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2085 ac_cache_corrupted=: | |
2086 else | |
2087 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2088 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2089 eval $ac_var=\$ac_old_val | |
2090 fi | |
2091 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2092 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2093 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2094 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2095 fi;; | |
2096 esac | |
2097 # Pass precious variables to config.status. | |
2098 if test "$ac_new_set" = set; then | |
2099 case $ac_new_val in | |
2100 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2101 *) ac_arg=$ac_var=$ac_new_val ;; | |
2102 esac | |
2103 case " $ac_configure_args " in | |
2104 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2105 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2106 esac | |
2107 fi | |
2108 done | |
2109 if $ac_cache_corrupted; then | |
2110 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2112 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2113 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2114 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2115 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
2116 { (exit 1); exit 1; }; } | |
2117 fi | |
2118 | |
2119 | |
2120 | |
2121 | |
2122 | |
2123 | |
2124 | |
2125 | |
2126 | |
2127 | |
2128 | |
2129 | |
2130 | |
2131 | |
2132 | |
2133 | |
2134 | |
2135 | |
2136 | |
2137 | |
2138 | |
2139 | |
2140 | |
2141 | |
2142 | |
2143 ac_ext=c | |
2144 ac_cpp='$CPP $CPPFLAGS' | |
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2148 | |
2149 | |
2150 am__api_version='1.10' | |
2151 | |
2152 ac_aux_dir= | |
2153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2154 if test -f "$ac_dir/install-sh"; then | |
2155 ac_aux_dir=$ac_dir | |
2156 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2157 break | |
2158 elif test -f "$ac_dir/install.sh"; then | |
2159 ac_aux_dir=$ac_dir | |
2160 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2161 break | |
2162 elif test -f "$ac_dir/shtool"; then | |
2163 ac_aux_dir=$ac_dir | |
2164 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2165 break | |
2166 fi | |
2167 done | |
2168 if test -z "$ac_aux_dir"; then | |
2169 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2170 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2171 { (exit 1); exit 1; }; } | |
2172 fi | |
2173 | |
2174 # These three variables are undocumented and unsupported, | |
2175 # and are intended to be withdrawn in a future Autoconf release. | |
2176 # They can cause serious problems if a builder's source tree is in a directory | |
2177 # whose full name contains unusual characters. | |
2178 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2179 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2180 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2181 | |
2182 | |
2183 # Find a good install program. We prefer a C program (faster), | |
2184 # so one script is as good as another. But avoid the broken or | |
2185 # incompatible versions: | |
2186 # SysV /etc/install, /usr/sbin/install | |
2187 # SunOS /usr/etc/install | |
2188 # IRIX /sbin/install | |
2189 # AIX /bin/install | |
2190 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2194 # OS/2's system install, which has a completely different semantic | |
2195 # ./install, which can be erroneously created by make from ./install.sh. | |
2196 # Reject install programs that cannot install multiple files. | |
2197 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2198 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2199 if test -z "$INSTALL"; then | |
2200 if test "${ac_cv_path_install+set}" = set; then | |
2201 $as_echo_n "(cached) " >&6 | |
2202 else | |
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2204 for as_dir in $PATH | |
2205 do | |
2206 IFS=$as_save_IFS | |
2207 test -z "$as_dir" && as_dir=. | |
2208 # Account for people who put trailing slashes in PATH elements. | |
2209 case $as_dir/ in | |
2210 ./ | .// | /cC/* | \ | |
2211 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2212 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2213 /usr/ucb/* ) ;; | |
2214 *) | |
2215 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2216 # Don't use installbsd from OSF since it installs stuff as root | |
2217 # by default. | |
2218 for ac_prog in ginstall scoinst install; do | |
2219 for ac_exec_ext in '' $ac_executable_extensions; do | |
2220 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2221 if test $ac_prog = install && | |
2222 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2223 # AIX install. It has an incompatible calling convention. | |
2224 : | |
2225 elif test $ac_prog = install && | |
2226 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2227 # program-specific install script used by HP pwplus--don't use. | |
2228 : | |
2229 else | |
2230 rm -rf conftest.one conftest.two conftest.dir | |
2231 echo one > conftest.one | |
2232 echo two > conftest.two | |
2233 mkdir conftest.dir | |
2234 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2235 test -s conftest.one && test -s conftest.two && | |
2236 test -s conftest.dir/conftest.one && | |
2237 test -s conftest.dir/conftest.two | |
2238 then | |
2239 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2240 break 3 | |
2241 fi | |
2242 fi | |
2243 fi | |
2244 done | |
2245 done | |
2246 ;; | |
2247 esac | |
2248 | |
2249 done | |
2250 IFS=$as_save_IFS | |
2251 | |
2252 rm -rf conftest.one conftest.two conftest.dir | |
2253 | |
2254 fi | |
2255 if test "${ac_cv_path_install+set}" = set; then | |
2256 INSTALL=$ac_cv_path_install | |
2257 else | |
2258 # As a last resort, use the slow shell script. Don't cache a | |
2259 # value for INSTALL within a source directory, because that will | |
2260 # break other packages using the cache if that directory is | |
2261 # removed, or if the value is a relative name. | |
2262 INSTALL=$ac_install_sh | |
2263 fi | |
2264 fi | |
2265 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2266 $as_echo "$INSTALL" >&6; } | |
2267 | |
2268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2269 # It thinks the first close brace ends the variable substitution. | |
2270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2271 | |
2272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2273 | |
2274 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2275 | |
2276 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2277 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2278 # Just in case | |
2279 sleep 1 | |
2280 echo timestamp > conftest.file | |
2281 # Do `set' in a subshell so we don't clobber the current shell's | |
2282 # arguments. Must try -L first in case configure is actually a | |
2283 # symlink; some systems play weird games with the mod time of symlinks | |
2284 # (eg FreeBSD returns the mod time of the symlink's containing | |
2285 # directory). | |
2286 if ( | |
2287 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2288 if test "$*" = "X"; then | |
2289 # -L didn't work. | |
2290 set X `ls -t $srcdir/configure conftest.file` | |
2291 fi | |
2292 rm -f conftest.file | |
2293 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2294 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2295 | |
2296 # If neither matched, then we have a broken ls. This can happen | |
2297 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2298 # broken ls alias from the environment. This has actually | |
2299 # happened. Such a system could not be considered "sane". | |
2300 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2301 alias in your environment" >&5 | |
2302 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2303 alias in your environment" >&2;} | |
2304 { (exit 1); exit 1; }; } | |
2305 fi | |
2306 | |
2307 test "$2" = conftest.file | |
2308 ) | |
2309 then | |
2310 # Ok. | |
2311 : | |
2312 else | |
2313 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2314 Check your system clock" >&5 | |
2315 $as_echo "$as_me: error: newly created file is older than distributed files! | |
2316 Check your system clock" >&2;} | |
2317 { (exit 1); exit 1; }; } | |
2318 fi | |
2319 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2320 $as_echo "yes" >&6; } | |
2321 test "$program_prefix" != NONE && | |
2322 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2323 # Use a double $ so make ignores it. | |
2324 test "$program_suffix" != NONE && | |
2325 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2326 # Double any \ or $. | |
2327 # By default was `s,x,x', remove it if useless. | |
2328 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2329 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2330 | |
2331 # expand $ac_aux_dir to an absolute path | |
2332 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2333 | |
2334 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2335 # Use eval to expand $SHELL | |
2336 if eval "$MISSING --run true"; then | |
2337 am_missing_run="$MISSING --run " | |
2338 else | |
2339 am_missing_run= | |
2340 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2341 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2342 fi | |
2343 | |
2344 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2345 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2346 if test -z "$MKDIR_P"; then | |
2347 if test "${ac_cv_path_mkdir+set}" = set; then | |
2348 $as_echo_n "(cached) " >&6 | |
2349 else | |
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2351 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2352 do | |
2353 IFS=$as_save_IFS | |
2354 test -z "$as_dir" && as_dir=. | |
2355 for ac_prog in mkdir gmkdir; do | |
2356 for ac_exec_ext in '' $ac_executable_extensions; do | |
2357 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2358 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2359 'mkdir (GNU coreutils) '* | \ | |
2360 'mkdir (coreutils) '* | \ | |
2361 'mkdir (fileutils) '4.1*) | |
2362 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2363 break 3;; | |
2364 esac | |
2365 done | |
2366 done | |
2367 done | |
2368 IFS=$as_save_IFS | |
2369 | |
2370 fi | |
2371 | |
2372 if test "${ac_cv_path_mkdir+set}" = set; then | |
2373 MKDIR_P="$ac_cv_path_mkdir -p" | |
2374 else | |
2375 # As a last resort, use the slow shell script. Don't cache a | |
2376 # value for MKDIR_P within a source directory, because that will | |
2377 # break other packages using the cache if that directory is | |
2378 # removed, or if the value is a relative name. | |
2379 test -d ./--version && rmdir ./--version | |
2380 MKDIR_P="$ac_install_sh -d" | |
2381 fi | |
2382 fi | |
2383 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
2384 $as_echo "$MKDIR_P" >&6; } | |
2385 | |
2386 mkdir_p="$MKDIR_P" | |
2387 case $mkdir_p in | |
2388 [\\/$]* | ?:[\\/]*) ;; | |
2389 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2390 esac | |
2391 | |
2392 for ac_prog in gawk mawk nawk awk | |
2393 do | |
2394 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2395 set dummy $ac_prog; ac_word=$2 | |
2396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2397 $as_echo_n "checking for $ac_word... " >&6; } | |
2398 if test "${ac_cv_prog_AWK+set}" = set; then | |
2399 $as_echo_n "(cached) " >&6 | |
2400 else | |
2401 if test -n "$AWK"; then | |
2402 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2403 else | |
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2405 for as_dir in $PATH | |
2406 do | |
2407 IFS=$as_save_IFS | |
2408 test -z "$as_dir" && as_dir=. | |
2409 for ac_exec_ext in '' $ac_executable_extensions; do | |
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2411 ac_cv_prog_AWK="$ac_prog" | |
2412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2413 break 2 | |
2414 fi | |
2415 done | |
2416 done | |
2417 IFS=$as_save_IFS | |
2418 | |
2419 fi | |
2420 fi | |
2421 AWK=$ac_cv_prog_AWK | |
2422 if test -n "$AWK"; then | |
2423 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 | |
2424 $as_echo "$AWK" >&6; } | |
2425 else | |
2426 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2427 $as_echo "no" >&6; } | |
2428 fi | |
2429 | |
2430 | |
2431 test -n "$AWK" && break | |
2432 done | |
2433 | |
2434 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2435 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2436 set x ${MAKE-make} | |
2437 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2438 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2439 $as_echo_n "(cached) " >&6 | |
2440 else | |
2441 cat >conftest.make <<\_ACEOF | |
2442 SHELL = /bin/sh | |
2443 all: | |
2444 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2445 _ACEOF | |
2446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2447 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2448 *@@@%%%=?*=@@@%%%*) | |
2449 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2450 *) | |
2451 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2452 esac | |
2453 rm -f conftest.make | |
2454 fi | |
2455 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2456 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2457 $as_echo "yes" >&6; } | |
2458 SET_MAKE= | |
2459 else | |
2460 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2461 $as_echo "no" >&6; } | |
2462 SET_MAKE="MAKE=${MAKE-make}" | |
2463 fi | |
2464 | |
2465 rm -rf .tst 2>/dev/null | |
2466 mkdir .tst 2>/dev/null | |
2467 if test -d .tst; then | |
2468 am__leading_dot=. | |
2469 else | |
2470 am__leading_dot=_ | |
2471 fi | |
2472 rmdir .tst 2>/dev/null | |
2473 | |
2474 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2475 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2476 # is not polluted with repeated "-I." | |
2477 am__isrc=' -I$(srcdir)' | |
2478 # test to see if srcdir already configured | |
2479 if test -f $srcdir/config.status; then | |
2480 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2481 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2482 { (exit 1); exit 1; }; } | |
2483 fi | |
2484 fi | |
2485 | |
2486 # test whether we have cygpath | |
2487 if test -z "$CYGPATH_W"; then | |
2488 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2489 CYGPATH_W='cygpath -w' | |
2490 else | |
2491 CYGPATH_W=echo | |
2492 fi | |
2493 fi | |
2494 | |
2495 | |
2496 # Define the identity of the package. | |
2497 PACKAGE='lwtools' | |
2498 VERSION='2.3' | |
2499 | |
2500 | |
2501 cat >>confdefs.h <<_ACEOF | |
2502 #define PACKAGE "$PACKAGE" | |
2503 _ACEOF | |
2504 | |
2505 | |
2506 cat >>confdefs.h <<_ACEOF | |
2507 #define VERSION "$VERSION" | |
2508 _ACEOF | |
2509 | |
2510 # Some tools Automake needs. | |
2511 | |
2512 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2513 | |
2514 | |
2515 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2516 | |
2517 | |
2518 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2519 | |
2520 | |
2521 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2522 | |
2523 | |
2524 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2525 | |
2526 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
2527 | |
2528 # Installed binaries are usually stripped using `strip' when the user | |
2529 # run `make install-strip'. However `strip' might not be the right | |
2530 # tool to use in cross-compilation environments, therefore Automake | |
2531 # will honor the `STRIP' environment variable to overrule this program. | |
2532 if test "$cross_compiling" != no; then | |
2533 if test -n "$ac_tool_prefix"; then | |
2534 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2535 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2537 $as_echo_n "checking for $ac_word... " >&6; } | |
2538 if test "${ac_cv_prog_STRIP+set}" = set; then | |
2539 $as_echo_n "(cached) " >&6 | |
2540 else | |
2541 if test -n "$STRIP"; then | |
2542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2543 else | |
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2545 for as_dir in $PATH | |
2546 do | |
2547 IFS=$as_save_IFS | |
2548 test -z "$as_dir" && as_dir=. | |
2549 for ac_exec_ext in '' $ac_executable_extensions; do | |
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2551 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2553 break 2 | |
2554 fi | |
2555 done | |
2556 done | |
2557 IFS=$as_save_IFS | |
2558 | |
2559 fi | |
2560 fi | |
2561 STRIP=$ac_cv_prog_STRIP | |
2562 if test -n "$STRIP"; then | |
2563 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2564 $as_echo "$STRIP" >&6; } | |
2565 else | |
2566 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2567 $as_echo "no" >&6; } | |
2568 fi | |
2569 | |
2570 | |
2571 fi | |
2572 if test -z "$ac_cv_prog_STRIP"; then | |
2573 ac_ct_STRIP=$STRIP | |
2574 # Extract the first word of "strip", so it can be a program name with args. | |
2575 set dummy strip; ac_word=$2 | |
2576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2577 $as_echo_n "checking for $ac_word... " >&6; } | |
2578 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2579 $as_echo_n "(cached) " >&6 | |
2580 else | |
2581 if test -n "$ac_ct_STRIP"; then | |
2582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2583 else | |
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2585 for as_dir in $PATH | |
2586 do | |
2587 IFS=$as_save_IFS | |
2588 test -z "$as_dir" && as_dir=. | |
2589 for ac_exec_ext in '' $ac_executable_extensions; do | |
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2591 ac_cv_prog_ac_ct_STRIP="strip" | |
2592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2593 break 2 | |
2594 fi | |
2595 done | |
2596 done | |
2597 IFS=$as_save_IFS | |
2598 | |
2599 fi | |
2600 fi | |
2601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2602 if test -n "$ac_ct_STRIP"; then | |
2603 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2604 $as_echo "$ac_ct_STRIP" >&6; } | |
2605 else | |
2606 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2607 $as_echo "no" >&6; } | |
2608 fi | |
2609 | |
2610 if test "x$ac_ct_STRIP" = x; then | |
2611 STRIP=":" | |
2612 else | |
2613 case $cross_compiling:$ac_tool_warned in | |
2614 yes:) | |
2615 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2617 ac_tool_warned=yes ;; | |
2618 esac | |
2619 STRIP=$ac_ct_STRIP | |
2620 fi | |
2621 else | |
2622 STRIP="$ac_cv_prog_STRIP" | |
2623 fi | |
2624 | |
2625 fi | |
2626 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2627 | |
2628 # We need awk for the "check" target. The system "awk" is bad on | |
2629 # some platforms. | |
2630 # Always define AMTAR for backward compatibility. | |
2631 | |
2632 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2633 | |
2634 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2635 | |
2636 | |
2637 | |
2638 | |
2639 | |
2640 ac_ext=c | |
2641 ac_cpp='$CPP $CPPFLAGS' | |
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2645 if test -n "$ac_tool_prefix"; then | |
2646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2647 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2649 $as_echo_n "checking for $ac_word... " >&6; } | |
2650 if test "${ac_cv_prog_CC+set}" = set; then | |
2651 $as_echo_n "(cached) " >&6 | |
2652 else | |
2653 if test -n "$CC"; then | |
2654 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2655 else | |
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2657 for as_dir in $PATH | |
2658 do | |
2659 IFS=$as_save_IFS | |
2660 test -z "$as_dir" && as_dir=. | |
2661 for ac_exec_ext in '' $ac_executable_extensions; do | |
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2663 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2665 break 2 | |
2666 fi | |
2667 done | |
2668 done | |
2669 IFS=$as_save_IFS | |
2670 | |
2671 fi | |
2672 fi | |
2673 CC=$ac_cv_prog_CC | |
2674 if test -n "$CC"; then | |
2675 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2676 $as_echo "$CC" >&6; } | |
2677 else | |
2678 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2679 $as_echo "no" >&6; } | |
2680 fi | |
2681 | |
2682 | |
2683 fi | |
2684 if test -z "$ac_cv_prog_CC"; then | |
2685 ac_ct_CC=$CC | |
2686 # Extract the first word of "gcc", so it can be a program name with args. | |
2687 set dummy gcc; ac_word=$2 | |
2688 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2689 $as_echo_n "checking for $ac_word... " >&6; } | |
2690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2691 $as_echo_n "(cached) " >&6 | |
2692 else | |
2693 if test -n "$ac_ct_CC"; then | |
2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2695 else | |
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2697 for as_dir in $PATH | |
2698 do | |
2699 IFS=$as_save_IFS | |
2700 test -z "$as_dir" && as_dir=. | |
2701 for ac_exec_ext in '' $ac_executable_extensions; do | |
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2703 ac_cv_prog_ac_ct_CC="gcc" | |
2704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2705 break 2 | |
2706 fi | |
2707 done | |
2708 done | |
2709 IFS=$as_save_IFS | |
2710 | |
2711 fi | |
2712 fi | |
2713 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2714 if test -n "$ac_ct_CC"; then | |
2715 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2716 $as_echo "$ac_ct_CC" >&6; } | |
2717 else | |
2718 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2719 $as_echo "no" >&6; } | |
2720 fi | |
2721 | |
2722 if test "x$ac_ct_CC" = x; then | |
2723 CC="" | |
2724 else | |
2725 case $cross_compiling:$ac_tool_warned in | |
2726 yes:) | |
2727 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2729 ac_tool_warned=yes ;; | |
2730 esac | |
2731 CC=$ac_ct_CC | |
2732 fi | |
2733 else | |
2734 CC="$ac_cv_prog_CC" | |
2735 fi | |
2736 | |
2737 if test -z "$CC"; then | |
2738 if test -n "$ac_tool_prefix"; then | |
2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2740 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2742 $as_echo_n "checking for $ac_word... " >&6; } | |
2743 if test "${ac_cv_prog_CC+set}" = set; then | |
2744 $as_echo_n "(cached) " >&6 | |
2745 else | |
2746 if test -n "$CC"; then | |
2747 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2748 else | |
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2750 for as_dir in $PATH | |
2751 do | |
2752 IFS=$as_save_IFS | |
2753 test -z "$as_dir" && as_dir=. | |
2754 for ac_exec_ext in '' $ac_executable_extensions; do | |
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2756 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2758 break 2 | |
2759 fi | |
2760 done | |
2761 done | |
2762 IFS=$as_save_IFS | |
2763 | |
2764 fi | |
2765 fi | |
2766 CC=$ac_cv_prog_CC | |
2767 if test -n "$CC"; then | |
2768 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2769 $as_echo "$CC" >&6; } | |
2770 else | |
2771 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2772 $as_echo "no" >&6; } | |
2773 fi | |
2774 | |
2775 | |
2776 fi | |
2777 fi | |
2778 if test -z "$CC"; then | |
2779 # Extract the first word of "cc", so it can be a program name with args. | |
2780 set dummy cc; ac_word=$2 | |
2781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2782 $as_echo_n "checking for $ac_word... " >&6; } | |
2783 if test "${ac_cv_prog_CC+set}" = set; then | |
2784 $as_echo_n "(cached) " >&6 | |
2785 else | |
2786 if test -n "$CC"; then | |
2787 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2788 else | |
2789 ac_prog_rejected=no | |
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2791 for as_dir in $PATH | |
2792 do | |
2793 IFS=$as_save_IFS | |
2794 test -z "$as_dir" && as_dir=. | |
2795 for ac_exec_ext in '' $ac_executable_extensions; do | |
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2798 ac_prog_rejected=yes | |
2799 continue | |
2800 fi | |
2801 ac_cv_prog_CC="cc" | |
2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2803 break 2 | |
2804 fi | |
2805 done | |
2806 done | |
2807 IFS=$as_save_IFS | |
2808 | |
2809 if test $ac_prog_rejected = yes; then | |
2810 # We found a bogon in the path, so make sure we never use it. | |
2811 set dummy $ac_cv_prog_CC | |
2812 shift | |
2813 if test $# != 0; then | |
2814 # We chose a different compiler from the bogus one. | |
2815 # However, it has the same basename, so the bogon will be chosen | |
2816 # first if we set CC to just the basename; use the full file name. | |
2817 shift | |
2818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2819 fi | |
2820 fi | |
2821 fi | |
2822 fi | |
2823 CC=$ac_cv_prog_CC | |
2824 if test -n "$CC"; then | |
2825 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2826 $as_echo "$CC" >&6; } | |
2827 else | |
2828 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2829 $as_echo "no" >&6; } | |
2830 fi | |
2831 | |
2832 | |
2833 fi | |
2834 if test -z "$CC"; then | |
2835 if test -n "$ac_tool_prefix"; then | |
2836 for ac_prog in cl.exe | |
2837 do | |
2838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2841 $as_echo_n "checking for $ac_word... " >&6; } | |
2842 if test "${ac_cv_prog_CC+set}" = set; then | |
2843 $as_echo_n "(cached) " >&6 | |
2844 else | |
2845 if test -n "$CC"; then | |
2846 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2847 else | |
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2849 for as_dir in $PATH | |
2850 do | |
2851 IFS=$as_save_IFS | |
2852 test -z "$as_dir" && as_dir=. | |
2853 for ac_exec_ext in '' $ac_executable_extensions; do | |
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2857 break 2 | |
2858 fi | |
2859 done | |
2860 done | |
2861 IFS=$as_save_IFS | |
2862 | |
2863 fi | |
2864 fi | |
2865 CC=$ac_cv_prog_CC | |
2866 if test -n "$CC"; then | |
2867 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2868 $as_echo "$CC" >&6; } | |
2869 else | |
2870 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2871 $as_echo "no" >&6; } | |
2872 fi | |
2873 | |
2874 | |
2875 test -n "$CC" && break | |
2876 done | |
2877 fi | |
2878 if test -z "$CC"; then | |
2879 ac_ct_CC=$CC | |
2880 for ac_prog in cl.exe | |
2881 do | |
2882 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2883 set dummy $ac_prog; ac_word=$2 | |
2884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2885 $as_echo_n "checking for $ac_word... " >&6; } | |
2886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2887 $as_echo_n "(cached) " >&6 | |
2888 else | |
2889 if test -n "$ac_ct_CC"; then | |
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2891 else | |
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2893 for as_dir in $PATH | |
2894 do | |
2895 IFS=$as_save_IFS | |
2896 test -z "$as_dir" && as_dir=. | |
2897 for ac_exec_ext in '' $ac_executable_extensions; do | |
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2899 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2901 break 2 | |
2902 fi | |
2903 done | |
2904 done | |
2905 IFS=$as_save_IFS | |
2906 | |
2907 fi | |
2908 fi | |
2909 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2910 if test -n "$ac_ct_CC"; then | |
2911 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2912 $as_echo "$ac_ct_CC" >&6; } | |
2913 else | |
2914 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2915 $as_echo "no" >&6; } | |
2916 fi | |
2917 | |
2918 | |
2919 test -n "$ac_ct_CC" && break | |
2920 done | |
2921 | |
2922 if test "x$ac_ct_CC" = x; then | |
2923 CC="" | |
2924 else | |
2925 case $cross_compiling:$ac_tool_warned in | |
2926 yes:) | |
2927 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2929 ac_tool_warned=yes ;; | |
2930 esac | |
2931 CC=$ac_ct_CC | |
2932 fi | |
2933 fi | |
2934 | |
2935 fi | |
2936 | |
2937 | |
2938 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2940 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2941 See \`config.log' for more details." >&5 | |
2942 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2943 See \`config.log' for more details." >&2;} | |
2944 { (exit 1); exit 1; }; }; } | |
2945 | |
2946 # Provide some information about the compiler. | |
2947 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2948 set X $ac_compile | |
2949 ac_compiler=$2 | |
2950 { (ac_try="$ac_compiler --version >&5" | |
2951 case "(($ac_try" in | |
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2953 *) ac_try_echo=$ac_try;; | |
2954 esac | |
2955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2956 $as_echo "$ac_try_echo") >&5 | |
2957 (eval "$ac_compiler --version >&5") 2>&5 | |
2958 ac_status=$? | |
2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2960 (exit $ac_status); } | |
2961 { (ac_try="$ac_compiler -v >&5" | |
2962 case "(($ac_try" in | |
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2964 *) ac_try_echo=$ac_try;; | |
2965 esac | |
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2967 $as_echo "$ac_try_echo") >&5 | |
2968 (eval "$ac_compiler -v >&5") 2>&5 | |
2969 ac_status=$? | |
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2971 (exit $ac_status); } | |
2972 { (ac_try="$ac_compiler -V >&5" | |
2973 case "(($ac_try" in | |
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2975 *) ac_try_echo=$ac_try;; | |
2976 esac | |
2977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2978 $as_echo "$ac_try_echo") >&5 | |
2979 (eval "$ac_compiler -V >&5") 2>&5 | |
2980 ac_status=$? | |
2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2982 (exit $ac_status); } | |
2983 | |
2984 cat >conftest.$ac_ext <<_ACEOF | |
2985 /* confdefs.h. */ | |
2986 _ACEOF | |
2987 cat confdefs.h >>conftest.$ac_ext | |
2988 cat >>conftest.$ac_ext <<_ACEOF | |
2989 /* end confdefs.h. */ | |
2990 | |
2991 int | |
2992 main () | |
2993 { | |
2994 | |
2995 ; | |
2996 return 0; | |
2997 } | |
2998 _ACEOF | |
2999 ac_clean_files_save=$ac_clean_files | |
3000 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3001 # Try to create an executable without -o first, disregard a.out. | |
3002 # It will help us diagnose broken compilers, and finding out an intuition | |
3003 # of exeext. | |
3004 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
3005 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3006 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3007 | |
3008 # The possible output files: | |
3009 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3010 | |
3011 ac_rmfiles= | |
3012 for ac_file in $ac_files | |
3013 do | |
3014 case $ac_file in | |
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3016 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3017 esac | |
3018 done | |
3019 rm -f $ac_rmfiles | |
3020 | |
3021 if { (ac_try="$ac_link_default" | |
3022 case "(($ac_try" in | |
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3024 *) ac_try_echo=$ac_try;; | |
3025 esac | |
3026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3027 $as_echo "$ac_try_echo") >&5 | |
3028 (eval "$ac_link_default") 2>&5 | |
3029 ac_status=$? | |
3030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3031 (exit $ac_status); }; then | |
3032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3033 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3034 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3035 # so that the user can short-circuit this test for compilers unknown to | |
3036 # Autoconf. | |
3037 for ac_file in $ac_files '' | |
3038 do | |
3039 test -f "$ac_file" || continue | |
3040 case $ac_file in | |
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3042 ;; | |
3043 [ab].out ) | |
3044 # We found the default executable, but exeext='' is most | |
3045 # certainly right. | |
3046 break;; | |
3047 *.* ) | |
3048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3049 then :; else | |
3050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3051 fi | |
3052 # We set ac_cv_exeext here because the later test for it is not | |
3053 # safe: cross compilers may not add the suffix if given an `-o' | |
3054 # argument, so we may need to know it at that point already. | |
3055 # Even if this section looks crufty: it has the advantage of | |
3056 # actually working. | |
3057 break;; | |
3058 * ) | |
3059 break;; | |
3060 esac | |
3061 done | |
3062 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3063 | |
3064 else | |
3065 ac_file='' | |
3066 fi | |
3067 | |
3068 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3069 $as_echo "$ac_file" >&6; } | |
3070 if test -z "$ac_file"; then | |
3071 $as_echo "$as_me: failed program was:" >&5 | |
3072 sed 's/^/| /' conftest.$ac_ext >&5 | |
3073 | |
3074 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3076 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3077 See \`config.log' for more details." >&5 | |
3078 $as_echo "$as_me: error: C compiler cannot create executables | |
3079 See \`config.log' for more details." >&2;} | |
3080 { (exit 77); exit 77; }; }; } | |
3081 fi | |
3082 | |
3083 ac_exeext=$ac_cv_exeext | |
3084 | |
3085 # Check that the compiler produces executables we can run. If not, either | |
3086 # the compiler is broken, or we cross compile. | |
3087 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3088 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3089 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3090 # If not cross compiling, check that we can run a simple program. | |
3091 if test "$cross_compiling" != yes; then | |
3092 if { ac_try='./$ac_file' | |
3093 { (case "(($ac_try" in | |
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3095 *) ac_try_echo=$ac_try;; | |
3096 esac | |
3097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3098 $as_echo "$ac_try_echo") >&5 | |
3099 (eval "$ac_try") 2>&5 | |
3100 ac_status=$? | |
3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3102 (exit $ac_status); }; }; then | |
3103 cross_compiling=no | |
3104 else | |
3105 if test "$cross_compiling" = maybe; then | |
3106 cross_compiling=yes | |
3107 else | |
3108 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3110 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3111 If you meant to cross compile, use \`--host'. | |
3112 See \`config.log' for more details." >&5 | |
3113 $as_echo "$as_me: error: cannot run C compiled programs. | |
3114 If you meant to cross compile, use \`--host'. | |
3115 See \`config.log' for more details." >&2;} | |
3116 { (exit 1); exit 1; }; }; } | |
3117 fi | |
3118 fi | |
3119 fi | |
3120 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3121 $as_echo "yes" >&6; } | |
3122 | |
3123 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3124 ac_clean_files=$ac_clean_files_save | |
3125 # Check that the compiler produces executables we can run. If not, either | |
3126 # the compiler is broken, or we cross compile. | |
3127 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3128 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3129 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3130 $as_echo "$cross_compiling" >&6; } | |
3131 | |
3132 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3133 $as_echo_n "checking for suffix of executables... " >&6; } | |
3134 if { (ac_try="$ac_link" | |
3135 case "(($ac_try" in | |
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3137 *) ac_try_echo=$ac_try;; | |
3138 esac | |
3139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3140 $as_echo "$ac_try_echo") >&5 | |
3141 (eval "$ac_link") 2>&5 | |
3142 ac_status=$? | |
3143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3144 (exit $ac_status); }; then | |
3145 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3148 # `rm'. | |
3149 for ac_file in conftest.exe conftest conftest.*; do | |
3150 test -f "$ac_file" || continue | |
3151 case $ac_file in | |
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3154 break;; | |
3155 * ) break;; | |
3156 esac | |
3157 done | |
3158 else | |
3159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3161 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3162 See \`config.log' for more details." >&5 | |
3163 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3164 See \`config.log' for more details." >&2;} | |
3165 { (exit 1); exit 1; }; }; } | |
3166 fi | |
3167 | |
3168 rm -f conftest$ac_cv_exeext | |
3169 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3170 $as_echo "$ac_cv_exeext" >&6; } | |
3171 | |
3172 rm -f conftest.$ac_ext | |
3173 EXEEXT=$ac_cv_exeext | |
3174 ac_exeext=$EXEEXT | |
3175 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3176 $as_echo_n "checking for suffix of object files... " >&6; } | |
3177 if test "${ac_cv_objext+set}" = set; then | |
3178 $as_echo_n "(cached) " >&6 | |
3179 else | |
3180 cat >conftest.$ac_ext <<_ACEOF | |
3181 /* confdefs.h. */ | |
3182 _ACEOF | |
3183 cat confdefs.h >>conftest.$ac_ext | |
3184 cat >>conftest.$ac_ext <<_ACEOF | |
3185 /* end confdefs.h. */ | |
3186 | |
3187 int | |
3188 main () | |
3189 { | |
3190 | |
3191 ; | |
3192 return 0; | |
3193 } | |
3194 _ACEOF | |
3195 rm -f conftest.o conftest.obj | |
3196 if { (ac_try="$ac_compile" | |
3197 case "(($ac_try" in | |
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3199 *) ac_try_echo=$ac_try;; | |
3200 esac | |
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3202 $as_echo "$ac_try_echo") >&5 | |
3203 (eval "$ac_compile") 2>&5 | |
3204 ac_status=$? | |
3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3206 (exit $ac_status); }; then | |
3207 for ac_file in conftest.o conftest.obj conftest.*; do | |
3208 test -f "$ac_file" || continue; | |
3209 case $ac_file in | |
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3212 break;; | |
3213 esac | |
3214 done | |
3215 else | |
3216 $as_echo "$as_me: failed program was:" >&5 | |
3217 sed 's/^/| /' conftest.$ac_ext >&5 | |
3218 | |
3219 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3221 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3222 See \`config.log' for more details." >&5 | |
3223 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3224 See \`config.log' for more details." >&2;} | |
3225 { (exit 1); exit 1; }; }; } | |
3226 fi | |
3227 | |
3228 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3229 fi | |
3230 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3231 $as_echo "$ac_cv_objext" >&6; } | |
3232 OBJEXT=$ac_cv_objext | |
3233 ac_objext=$OBJEXT | |
3234 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3235 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3236 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3237 $as_echo_n "(cached) " >&6 | |
3238 else | |
3239 cat >conftest.$ac_ext <<_ACEOF | |
3240 /* confdefs.h. */ | |
3241 _ACEOF | |
3242 cat confdefs.h >>conftest.$ac_ext | |
3243 cat >>conftest.$ac_ext <<_ACEOF | |
3244 /* end confdefs.h. */ | |
3245 | |
3246 int | |
3247 main () | |
3248 { | |
3249 #ifndef __GNUC__ | |
3250 choke me | |
3251 #endif | |
3252 | |
3253 ; | |
3254 return 0; | |
3255 } | |
3256 _ACEOF | |
3257 rm -f conftest.$ac_objext | |
3258 if { (ac_try="$ac_compile" | |
3259 case "(($ac_try" in | |
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3261 *) ac_try_echo=$ac_try;; | |
3262 esac | |
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3264 $as_echo "$ac_try_echo") >&5 | |
3265 (eval "$ac_compile") 2>conftest.er1 | |
3266 ac_status=$? | |
3267 grep -v '^ *+' conftest.er1 >conftest.err | |
3268 rm -f conftest.er1 | |
3269 cat conftest.err >&5 | |
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3271 (exit $ac_status); } && { | |
3272 test -z "$ac_c_werror_flag" || | |
3273 test ! -s conftest.err | |
3274 } && test -s conftest.$ac_objext; then | |
3275 ac_compiler_gnu=yes | |
3276 else | |
3277 $as_echo "$as_me: failed program was:" >&5 | |
3278 sed 's/^/| /' conftest.$ac_ext >&5 | |
3279 | |
3280 ac_compiler_gnu=no | |
3281 fi | |
3282 | |
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3284 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3285 | |
3286 fi | |
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3288 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3289 if test $ac_compiler_gnu = yes; then | |
3290 GCC=yes | |
3291 else | |
3292 GCC= | |
3293 fi | |
3294 ac_test_CFLAGS=${CFLAGS+set} | |
3295 ac_save_CFLAGS=$CFLAGS | |
3296 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3297 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3298 if test "${ac_cv_prog_cc_g+set}" = set; then | |
3299 $as_echo_n "(cached) " >&6 | |
3300 else | |
3301 ac_save_c_werror_flag=$ac_c_werror_flag | |
3302 ac_c_werror_flag=yes | |
3303 ac_cv_prog_cc_g=no | |
3304 CFLAGS="-g" | |
3305 cat >conftest.$ac_ext <<_ACEOF | |
3306 /* confdefs.h. */ | |
3307 _ACEOF | |
3308 cat confdefs.h >>conftest.$ac_ext | |
3309 cat >>conftest.$ac_ext <<_ACEOF | |
3310 /* end confdefs.h. */ | |
3311 | |
3312 int | |
3313 main () | |
3314 { | |
3315 | |
3316 ; | |
3317 return 0; | |
3318 } | |
3319 _ACEOF | |
3320 rm -f conftest.$ac_objext | |
3321 if { (ac_try="$ac_compile" | |
3322 case "(($ac_try" in | |
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3324 *) ac_try_echo=$ac_try;; | |
3325 esac | |
3326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3327 $as_echo "$ac_try_echo") >&5 | |
3328 (eval "$ac_compile") 2>conftest.er1 | |
3329 ac_status=$? | |
3330 grep -v '^ *+' conftest.er1 >conftest.err | |
3331 rm -f conftest.er1 | |
3332 cat conftest.err >&5 | |
3333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3334 (exit $ac_status); } && { | |
3335 test -z "$ac_c_werror_flag" || | |
3336 test ! -s conftest.err | |
3337 } && test -s conftest.$ac_objext; then | |
3338 ac_cv_prog_cc_g=yes | |
3339 else | |
3340 $as_echo "$as_me: failed program was:" >&5 | |
3341 sed 's/^/| /' conftest.$ac_ext >&5 | |
3342 | |
3343 CFLAGS="" | |
3344 cat >conftest.$ac_ext <<_ACEOF | |
3345 /* confdefs.h. */ | |
3346 _ACEOF | |
3347 cat confdefs.h >>conftest.$ac_ext | |
3348 cat >>conftest.$ac_ext <<_ACEOF | |
3349 /* end confdefs.h. */ | |
3350 | |
3351 int | |
3352 main () | |
3353 { | |
3354 | |
3355 ; | |
3356 return 0; | |
3357 } | |
3358 _ACEOF | |
3359 rm -f conftest.$ac_objext | |
3360 if { (ac_try="$ac_compile" | |
3361 case "(($ac_try" in | |
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3363 *) ac_try_echo=$ac_try;; | |
3364 esac | |
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3366 $as_echo "$ac_try_echo") >&5 | |
3367 (eval "$ac_compile") 2>conftest.er1 | |
3368 ac_status=$? | |
3369 grep -v '^ *+' conftest.er1 >conftest.err | |
3370 rm -f conftest.er1 | |
3371 cat conftest.err >&5 | |
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3373 (exit $ac_status); } && { | |
3374 test -z "$ac_c_werror_flag" || | |
3375 test ! -s conftest.err | |
3376 } && test -s conftest.$ac_objext; then | |
3377 : | |
3378 else | |
3379 $as_echo "$as_me: failed program was:" >&5 | |
3380 sed 's/^/| /' conftest.$ac_ext >&5 | |
3381 | |
3382 ac_c_werror_flag=$ac_save_c_werror_flag | |
3383 CFLAGS="-g" | |
3384 cat >conftest.$ac_ext <<_ACEOF | |
3385 /* confdefs.h. */ | |
3386 _ACEOF | |
3387 cat confdefs.h >>conftest.$ac_ext | |
3388 cat >>conftest.$ac_ext <<_ACEOF | |
3389 /* end confdefs.h. */ | |
3390 | |
3391 int | |
3392 main () | |
3393 { | |
3394 | |
3395 ; | |
3396 return 0; | |
3397 } | |
3398 _ACEOF | |
3399 rm -f conftest.$ac_objext | |
3400 if { (ac_try="$ac_compile" | |
3401 case "(($ac_try" in | |
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3403 *) ac_try_echo=$ac_try;; | |
3404 esac | |
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3406 $as_echo "$ac_try_echo") >&5 | |
3407 (eval "$ac_compile") 2>conftest.er1 | |
3408 ac_status=$? | |
3409 grep -v '^ *+' conftest.er1 >conftest.err | |
3410 rm -f conftest.er1 | |
3411 cat conftest.err >&5 | |
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3413 (exit $ac_status); } && { | |
3414 test -z "$ac_c_werror_flag" || | |
3415 test ! -s conftest.err | |
3416 } && test -s conftest.$ac_objext; then | |
3417 ac_cv_prog_cc_g=yes | |
3418 else | |
3419 $as_echo "$as_me: failed program was:" >&5 | |
3420 sed 's/^/| /' conftest.$ac_ext >&5 | |
3421 | |
3422 | |
3423 fi | |
3424 | |
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3426 fi | |
3427 | |
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3429 fi | |
3430 | |
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3432 ac_c_werror_flag=$ac_save_c_werror_flag | |
3433 fi | |
3434 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3435 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3436 if test "$ac_test_CFLAGS" = set; then | |
3437 CFLAGS=$ac_save_CFLAGS | |
3438 elif test $ac_cv_prog_cc_g = yes; then | |
3439 if test "$GCC" = yes; then | |
3440 CFLAGS="-g -O2" | |
3441 else | |
3442 CFLAGS="-g" | |
3443 fi | |
3444 else | |
3445 if test "$GCC" = yes; then | |
3446 CFLAGS="-O2" | |
3447 else | |
3448 CFLAGS= | |
3449 fi | |
3450 fi | |
3451 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3453 if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3454 $as_echo_n "(cached) " >&6 | |
3455 else | |
3456 ac_cv_prog_cc_c89=no | |
3457 ac_save_CC=$CC | |
3458 cat >conftest.$ac_ext <<_ACEOF | |
3459 /* confdefs.h. */ | |
3460 _ACEOF | |
3461 cat confdefs.h >>conftest.$ac_ext | |
3462 cat >>conftest.$ac_ext <<_ACEOF | |
3463 /* end confdefs.h. */ | |
3464 #include <stdarg.h> | |
3465 #include <stdio.h> | |
3466 #include <sys/types.h> | |
3467 #include <sys/stat.h> | |
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3469 struct buf { int x; }; | |
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3471 static char *e (p, i) | |
3472 char **p; | |
3473 int i; | |
3474 { | |
3475 return p[i]; | |
3476 } | |
3477 static char *f (char * (*g) (char **, int), char **p, ...) | |
3478 { | |
3479 char *s; | |
3480 va_list v; | |
3481 va_start (v,p); | |
3482 s = g (p, va_arg (v,int)); | |
3483 va_end (v); | |
3484 return s; | |
3485 } | |
3486 | |
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3488 function prototypes and stuff, but not '\xHH' hex character constants. | |
3489 These don't provoke an error unfortunately, instead are silently treated | |
3490 as 'x'. The following induces an error, until -std is added to get | |
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3492 array size at least. It's necessary to write '\x00'==0 to get something | |
3493 that's true only with -std. */ | |
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3495 | |
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3497 inside strings and character constants. */ | |
3498 #define FOO(x) 'x' | |
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3500 | |
3501 int test (int i, double x); | |
3502 struct s1 {int (*f) (int a);}; | |
3503 struct s2 {int (*f) (double a);}; | |
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3505 int argc; | |
3506 char **argv; | |
3507 int | |
3508 main () | |
3509 { | |
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3511 ; | |
3512 return 0; | |
3513 } | |
3514 _ACEOF | |
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3517 do | |
3518 CC="$ac_save_CC $ac_arg" | |
3519 rm -f conftest.$ac_objext | |
3520 if { (ac_try="$ac_compile" | |
3521 case "(($ac_try" in | |
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3523 *) ac_try_echo=$ac_try;; | |
3524 esac | |
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3526 $as_echo "$ac_try_echo") >&5 | |
3527 (eval "$ac_compile") 2>conftest.er1 | |
3528 ac_status=$? | |
3529 grep -v '^ *+' conftest.er1 >conftest.err | |
3530 rm -f conftest.er1 | |
3531 cat conftest.err >&5 | |
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3533 (exit $ac_status); } && { | |
3534 test -z "$ac_c_werror_flag" || | |
3535 test ! -s conftest.err | |
3536 } && test -s conftest.$ac_objext; then | |
3537 ac_cv_prog_cc_c89=$ac_arg | |
3538 else | |
3539 $as_echo "$as_me: failed program was:" >&5 | |
3540 sed 's/^/| /' conftest.$ac_ext >&5 | |
3541 | |
3542 | |
3543 fi | |
3544 | |
3545 rm -f core conftest.err conftest.$ac_objext | |
3546 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3547 done | |
3548 rm -f conftest.$ac_ext | |
3549 CC=$ac_save_CC | |
3550 | |
3551 fi | |
3552 # AC_CACHE_VAL | |
3553 case "x$ac_cv_prog_cc_c89" in | |
3554 x) | |
3555 { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3556 $as_echo "none needed" >&6; } ;; | |
3557 xno) | |
3558 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3559 $as_echo "unsupported" >&6; } ;; | |
3560 *) | |
3561 CC="$CC $ac_cv_prog_cc_c89" | |
3562 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3564 esac | |
3565 | |
3566 | |
3567 ac_ext=c | |
3568 ac_cpp='$CPP $CPPFLAGS' | |
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3572 DEPDIR="${am__leading_dot}deps" | |
3573 | |
3574 ac_config_commands="$ac_config_commands depfiles" | |
3575 | |
3576 | |
3577 am_make=${MAKE-make} | |
3578 cat > confinc << 'END' | |
3579 am__doit: | |
3580 @echo done | |
3581 .PHONY: am__doit | |
3582 END | |
3583 # If we don't find an include directive, just comment out the code. | |
3584 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3585 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3586 am__include="#" | |
3587 am__quote= | |
3588 _am_result=none | |
3589 # First try GNU make style include. | |
3590 echo "include confinc" > confmf | |
3591 # We grep out `Entering directory' and `Leaving directory' | |
3592 # messages which can occur if `w' ends up in MAKEFLAGS. | |
3593 # In particular we don't look at `^make:' because GNU make might | |
3594 # be invoked under some other name (usually "gmake"), in which | |
3595 # case it prints its new name instead of `make'. | |
3596 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3597 am__include=include | |
3598 am__quote= | |
3599 _am_result=GNU | |
3600 fi | |
3601 # Now try BSD make style include. | |
3602 if test "$am__include" = "#"; then | |
3603 echo '.include "confinc"' > confmf | |
3604 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3605 am__include=.include | |
3606 am__quote="\"" | |
3607 _am_result=BSD | |
3608 fi | |
3609 fi | |
3610 | |
3611 | |
3612 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3613 $as_echo "$_am_result" >&6; } | |
3614 rm -f confinc confmf | |
3615 | |
3616 # Check whether --enable-dependency-tracking was given. | |
3617 if test "${enable_dependency_tracking+set}" = set; then | |
3618 enableval=$enable_dependency_tracking; | |
3619 fi | |
3620 | |
3621 if test "x$enable_dependency_tracking" != xno; then | |
3622 am_depcomp="$ac_aux_dir/depcomp" | |
3623 AMDEPBACKSLASH='\' | |
3624 fi | |
3625 if test "x$enable_dependency_tracking" != xno; then | |
3626 AMDEP_TRUE= | |
3627 AMDEP_FALSE='#' | |
3628 else | |
3629 AMDEP_TRUE='#' | |
3630 AMDEP_FALSE= | |
3631 fi | |
3632 | |
3633 | |
3634 | |
3635 depcc="$CC" am_compiler_list= | |
3636 | |
3637 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3638 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3639 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3640 $as_echo_n "(cached) " >&6 | |
3641 else | |
3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3643 # We make a subdir and do the tests there. Otherwise we can end up | |
3644 # making bogus files that we don't know about and never remove. For | |
3645 # instance it was reported that on HP-UX the gcc test will end up | |
3646 # making a dummy file named `D' -- because `-MD' means `put the output | |
3647 # in D'. | |
3648 mkdir conftest.dir | |
3649 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3650 # using a relative directory. | |
3651 cp "$am_depcomp" conftest.dir | |
3652 cd conftest.dir | |
3653 # We will build objects and dependencies in a subdirectory because | |
3654 # it helps to detect inapplicable dependency modes. For instance | |
3655 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3656 # side effect of compilation, but ICC will put the dependencies in | |
3657 # the current directory while Tru64 will put them in the object | |
3658 # directory. | |
3659 mkdir sub | |
3660 | |
3661 am_cv_CC_dependencies_compiler_type=none | |
3662 if test "$am_compiler_list" = ""; then | |
3663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3664 fi | |
3665 for depmode in $am_compiler_list; do | |
3666 # Setup a source with many dependencies, because some compilers | |
3667 # like to wrap large dependency lists on column 80 (with \), and | |
3668 # we should not choose a depcomp mode which is confused by this. | |
3669 # | |
3670 # We need to recreate these files for each test, as the compiler may | |
3671 # overwrite some of them when testing with obscure command lines. | |
3672 # This happens at least with the AIX C compiler. | |
3673 : > sub/conftest.c | |
3674 for i in 1 2 3 4 5 6; do | |
3675 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3676 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3677 # Solaris 8's {/usr,}/bin/sh. | |
3678 touch sub/conftst$i.h | |
3679 done | |
3680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3681 | |
3682 case $depmode in | |
3683 nosideeffect) | |
3684 # after this tag, mechanisms are not by side-effect, so they'll | |
3685 # only be used when explicitly requested | |
3686 if test "x$enable_dependency_tracking" = xyes; then | |
3687 continue | |
3688 else | |
3689 break | |
3690 fi | |
3691 ;; | |
3692 none) break ;; | |
3693 esac | |
3694 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3695 # mode. It turns out that the SunPro C++ compiler does not properly | |
3696 # handle `-M -o', and we need to detect this. | |
3697 if depmode=$depmode \ | |
3698 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3700 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3701 >/dev/null 2>conftest.err && | |
3702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3704 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3706 # icc doesn't choke on unknown options, it will just issue warnings | |
3707 # or remarks (even with -Werror). So we grep stderr for any message | |
3708 # that says an option was ignored or not supported. | |
3709 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3710 # icc: Command line warning: ignoring option '-M'; no argument required | |
3711 # The diagnosis changed in icc 8.0: | |
3712 # icc: Command line remark: option '-MP' not supported | |
3713 if (grep 'ignoring option' conftest.err || | |
3714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3715 am_cv_CC_dependencies_compiler_type=$depmode | |
3716 break | |
3717 fi | |
3718 fi | |
3719 done | |
3720 | |
3721 cd .. | |
3722 rm -rf conftest.dir | |
3723 else | |
3724 am_cv_CC_dependencies_compiler_type=none | |
3725 fi | |
3726 | |
3727 fi | |
3728 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3729 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3731 | |
3732 if | |
3733 test "x$enable_dependency_tracking" != xno \ | |
3734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3735 am__fastdepCC_TRUE= | |
3736 am__fastdepCC_FALSE='#' | |
3737 else | |
3738 am__fastdepCC_TRUE='#' | |
3739 am__fastdepCC_FALSE= | |
3740 fi | |
3741 | |
3742 | |
3743 if test -n "$ac_tool_prefix"; then | |
3744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3747 $as_echo_n "checking for $ac_word... " >&6; } | |
3748 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3749 $as_echo_n "(cached) " >&6 | |
3750 else | |
3751 if test -n "$RANLIB"; then | |
3752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3753 else | |
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3755 for as_dir in $PATH | |
3756 do | |
3757 IFS=$as_save_IFS | |
3758 test -z "$as_dir" && as_dir=. | |
3759 for ac_exec_ext in '' $ac_executable_extensions; do | |
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3763 break 2 | |
3764 fi | |
3765 done | |
3766 done | |
3767 IFS=$as_save_IFS | |
3768 | |
3769 fi | |
3770 fi | |
3771 RANLIB=$ac_cv_prog_RANLIB | |
3772 if test -n "$RANLIB"; then | |
3773 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3774 $as_echo "$RANLIB" >&6; } | |
3775 else | |
3776 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3777 $as_echo "no" >&6; } | |
3778 fi | |
3779 | |
3780 | |
3781 fi | |
3782 if test -z "$ac_cv_prog_RANLIB"; then | |
3783 ac_ct_RANLIB=$RANLIB | |
3784 # Extract the first word of "ranlib", so it can be a program name with args. | |
3785 set dummy ranlib; ac_word=$2 | |
3786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3787 $as_echo_n "checking for $ac_word... " >&6; } | |
3788 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3789 $as_echo_n "(cached) " >&6 | |
3790 else | |
3791 if test -n "$ac_ct_RANLIB"; then | |
3792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3793 else | |
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3795 for as_dir in $PATH | |
3796 do | |
3797 IFS=$as_save_IFS | |
3798 test -z "$as_dir" && as_dir=. | |
3799 for ac_exec_ext in '' $ac_executable_extensions; do | |
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3801 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3803 break 2 | |
3804 fi | |
3805 done | |
3806 done | |
3807 IFS=$as_save_IFS | |
3808 | |
3809 fi | |
3810 fi | |
3811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3812 if test -n "$ac_ct_RANLIB"; then | |
3813 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3814 $as_echo "$ac_ct_RANLIB" >&6; } | |
3815 else | |
3816 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3817 $as_echo "no" >&6; } | |
3818 fi | |
3819 | |
3820 if test "x$ac_ct_RANLIB" = x; then | |
3821 RANLIB=":" | |
3822 else | |
3823 case $cross_compiling:$ac_tool_warned in | |
3824 yes:) | |
3825 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3827 ac_tool_warned=yes ;; | |
3828 esac | |
3829 RANLIB=$ac_ct_RANLIB | |
3830 fi | |
3831 else | |
3832 RANLIB="$ac_cv_prog_RANLIB" | |
3833 fi | |
3834 | |
3835 # Make sure we can run config.sub. | |
3836 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3837 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
3838 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
3839 { (exit 1); exit 1; }; } | |
3840 | |
3841 { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
3842 $as_echo_n "checking build system type... " >&6; } | |
3843 if test "${ac_cv_build+set}" = set; then | |
3844 $as_echo_n "(cached) " >&6 | |
3845 else | |
3846 ac_build_alias=$build_alias | |
3847 test "x$ac_build_alias" = x && | |
3848 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3849 test "x$ac_build_alias" = x && | |
3850 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3851 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3852 { (exit 1); exit 1; }; } | |
3853 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3854 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
3855 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
3856 { (exit 1); exit 1; }; } | |
3857 | |
3858 fi | |
3859 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3860 $as_echo "$ac_cv_build" >&6; } | |
3861 case $ac_cv_build in | |
3862 *-*-*) ;; | |
3863 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
3864 $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
3865 { (exit 1); exit 1; }; };; | |
3866 esac | |
3867 build=$ac_cv_build | |
3868 ac_save_IFS=$IFS; IFS='-' | |
3869 set x $ac_cv_build | |
3870 shift | |
3871 build_cpu=$1 | |
3872 build_vendor=$2 | |
3873 shift; shift | |
3874 # Remember, the first character of IFS is used to create $*, | |
3875 # except with old shells: | |
3876 build_os=$* | |
3877 IFS=$ac_save_IFS | |
3878 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3879 | |
3880 | |
3881 { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
3882 $as_echo_n "checking host system type... " >&6; } | |
3883 if test "${ac_cv_host+set}" = set; then | |
3884 $as_echo_n "(cached) " >&6 | |
3885 else | |
3886 if test "x$host_alias" = x; then | |
3887 ac_cv_host=$ac_cv_build | |
3888 else | |
3889 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3890 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
3891 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
3892 { (exit 1); exit 1; }; } | |
3893 fi | |
3894 | |
3895 fi | |
3896 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3897 $as_echo "$ac_cv_host" >&6; } | |
3898 case $ac_cv_host in | |
3899 *-*-*) ;; | |
3900 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
3901 $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
3902 { (exit 1); exit 1; }; };; | |
3903 esac | |
3904 host=$ac_cv_host | |
3905 ac_save_IFS=$IFS; IFS='-' | |
3906 set x $ac_cv_host | |
3907 shift | |
3908 host_cpu=$1 | |
3909 host_vendor=$2 | |
3910 shift; shift | |
3911 # Remember, the first character of IFS is used to create $*, | |
3912 # except with old shells: | |
3913 host_os=$* | |
3914 IFS=$ac_save_IFS | |
3915 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3916 | |
3917 | |
3918 | |
3919 ac_ext=c | |
3920 ac_cpp='$CPP $CPPFLAGS' | |
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3924 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3925 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3926 # On Suns, sometimes $CPP names a directory. | |
3927 if test -n "$CPP" && test -d "$CPP"; then | |
3928 CPP= | |
3929 fi | |
3930 if test -z "$CPP"; then | |
3931 if test "${ac_cv_prog_CPP+set}" = set; then | |
3932 $as_echo_n "(cached) " >&6 | |
3933 else | |
3934 # Double quotes because CPP needs to be expanded | |
3935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3936 do | |
3937 ac_preproc_ok=false | |
3938 for ac_c_preproc_warn_flag in '' yes | |
3939 do | |
3940 # Use a header file that comes with gcc, so configuring glibc | |
3941 # with a fresh cross-compiler works. | |
3942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3943 # <limits.h> exists even on freestanding compilers. | |
3944 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3945 # not just through cpp. "Syntax error" is here to catch this case. | |
3946 cat >conftest.$ac_ext <<_ACEOF | |
3947 /* confdefs.h. */ | |
3948 _ACEOF | |
3949 cat confdefs.h >>conftest.$ac_ext | |
3950 cat >>conftest.$ac_ext <<_ACEOF | |
3951 /* end confdefs.h. */ | |
3952 #ifdef __STDC__ | |
3953 # include <limits.h> | |
3954 #else | |
3955 # include <assert.h> | |
3956 #endif | |
3957 Syntax error | |
3958 _ACEOF | |
3959 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3960 case "(($ac_try" in | |
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3962 *) ac_try_echo=$ac_try;; | |
3963 esac | |
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3965 $as_echo "$ac_try_echo") >&5 | |
3966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3967 ac_status=$? | |
3968 grep -v '^ *+' conftest.er1 >conftest.err | |
3969 rm -f conftest.er1 | |
3970 cat conftest.err >&5 | |
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3972 (exit $ac_status); } >/dev/null && { | |
3973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3974 test ! -s conftest.err | |
3975 }; then | |
3976 : | |
3977 else | |
3978 $as_echo "$as_me: failed program was:" >&5 | |
3979 sed 's/^/| /' conftest.$ac_ext >&5 | |
3980 | |
3981 # Broken: fails on valid input. | |
3982 continue | |
3983 fi | |
3984 | |
3985 rm -f conftest.err conftest.$ac_ext | |
3986 | |
3987 # OK, works on sane cases. Now check whether nonexistent headers | |
3988 # can be detected and how. | |
3989 cat >conftest.$ac_ext <<_ACEOF | |
3990 /* confdefs.h. */ | |
3991 _ACEOF | |
3992 cat confdefs.h >>conftest.$ac_ext | |
3993 cat >>conftest.$ac_ext <<_ACEOF | |
3994 /* end confdefs.h. */ | |
3995 #include <ac_nonexistent.h> | |
3996 _ACEOF | |
3997 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3998 case "(($ac_try" in | |
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4000 *) ac_try_echo=$ac_try;; | |
4001 esac | |
4002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4003 $as_echo "$ac_try_echo") >&5 | |
4004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4005 ac_status=$? | |
4006 grep -v '^ *+' conftest.er1 >conftest.err | |
4007 rm -f conftest.er1 | |
4008 cat conftest.err >&5 | |
4009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4010 (exit $ac_status); } >/dev/null && { | |
4011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4012 test ! -s conftest.err | |
4013 }; then | |
4014 # Broken: success on invalid input. | |
4015 continue | |
4016 else | |
4017 $as_echo "$as_me: failed program was:" >&5 | |
4018 sed 's/^/| /' conftest.$ac_ext >&5 | |
4019 | |
4020 # Passes both tests. | |
4021 ac_preproc_ok=: | |
4022 break | |
4023 fi | |
4024 | |
4025 rm -f conftest.err conftest.$ac_ext | |
4026 | |
4027 done | |
4028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4029 rm -f conftest.err conftest.$ac_ext | |
4030 if $ac_preproc_ok; then | |
4031 break | |
4032 fi | |
4033 | |
4034 done | |
4035 ac_cv_prog_CPP=$CPP | |
4036 | |
4037 fi | |
4038 CPP=$ac_cv_prog_CPP | |
4039 else | |
4040 ac_cv_prog_CPP=$CPP | |
4041 fi | |
4042 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
4043 $as_echo "$CPP" >&6; } | |
4044 ac_preproc_ok=false | |
4045 for ac_c_preproc_warn_flag in '' yes | |
4046 do | |
4047 # Use a header file that comes with gcc, so configuring glibc | |
4048 # with a fresh cross-compiler works. | |
4049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4050 # <limits.h> exists even on freestanding compilers. | |
4051 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4052 # not just through cpp. "Syntax error" is here to catch this case. | |
4053 cat >conftest.$ac_ext <<_ACEOF | |
4054 /* confdefs.h. */ | |
4055 _ACEOF | |
4056 cat confdefs.h >>conftest.$ac_ext | |
4057 cat >>conftest.$ac_ext <<_ACEOF | |
4058 /* end confdefs.h. */ | |
4059 #ifdef __STDC__ | |
4060 # include <limits.h> | |
4061 #else | |
4062 # include <assert.h> | |
4063 #endif | |
4064 Syntax error | |
4065 _ACEOF | |
4066 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4067 case "(($ac_try" in | |
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4069 *) ac_try_echo=$ac_try;; | |
4070 esac | |
4071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4072 $as_echo "$ac_try_echo") >&5 | |
4073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4074 ac_status=$? | |
4075 grep -v '^ *+' conftest.er1 >conftest.err | |
4076 rm -f conftest.er1 | |
4077 cat conftest.err >&5 | |
4078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4079 (exit $ac_status); } >/dev/null && { | |
4080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4081 test ! -s conftest.err | |
4082 }; then | |
4083 : | |
4084 else | |
4085 $as_echo "$as_me: failed program was:" >&5 | |
4086 sed 's/^/| /' conftest.$ac_ext >&5 | |
4087 | |
4088 # Broken: fails on valid input. | |
4089 continue | |
4090 fi | |
4091 | |
4092 rm -f conftest.err conftest.$ac_ext | |
4093 | |
4094 # OK, works on sane cases. Now check whether nonexistent headers | |
4095 # can be detected and how. | |
4096 cat >conftest.$ac_ext <<_ACEOF | |
4097 /* confdefs.h. */ | |
4098 _ACEOF | |
4099 cat confdefs.h >>conftest.$ac_ext | |
4100 cat >>conftest.$ac_ext <<_ACEOF | |
4101 /* end confdefs.h. */ | |
4102 #include <ac_nonexistent.h> | |
4103 _ACEOF | |
4104 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4105 case "(($ac_try" in | |
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4107 *) ac_try_echo=$ac_try;; | |
4108 esac | |
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4110 $as_echo "$ac_try_echo") >&5 | |
4111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4112 ac_status=$? | |
4113 grep -v '^ *+' conftest.er1 >conftest.err | |
4114 rm -f conftest.er1 | |
4115 cat conftest.err >&5 | |
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4117 (exit $ac_status); } >/dev/null && { | |
4118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4119 test ! -s conftest.err | |
4120 }; then | |
4121 # Broken: success on invalid input. | |
4122 continue | |
4123 else | |
4124 $as_echo "$as_me: failed program was:" >&5 | |
4125 sed 's/^/| /' conftest.$ac_ext >&5 | |
4126 | |
4127 # Passes both tests. | |
4128 ac_preproc_ok=: | |
4129 break | |
4130 fi | |
4131 | |
4132 rm -f conftest.err conftest.$ac_ext | |
4133 | |
4134 done | |
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4136 rm -f conftest.err conftest.$ac_ext | |
4137 if $ac_preproc_ok; then | |
4138 : | |
4139 else | |
4140 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4142 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4143 See \`config.log' for more details." >&5 | |
4144 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4145 See \`config.log' for more details." >&2;} | |
4146 { (exit 1); exit 1; }; }; } | |
4147 fi | |
4148 | |
4149 ac_ext=c | |
4150 ac_cpp='$CPP $CPPFLAGS' | |
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4154 | |
4155 | |
4156 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4157 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4158 if test "${ac_cv_path_GREP+set}" = set; then | |
4159 $as_echo_n "(cached) " >&6 | |
4160 else | |
4161 if test -z "$GREP"; then | |
4162 ac_path_GREP_found=false | |
4163 # Loop through the user's path and test for each of PROGNAME-LIST | |
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4166 do | |
4167 IFS=$as_save_IFS | |
4168 test -z "$as_dir" && as_dir=. | |
4169 for ac_prog in grep ggrep; do | |
4170 for ac_exec_ext in '' $ac_executable_extensions; do | |
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4173 # Check for GNU ac_path_GREP and select it if it is found. | |
4174 # Check for GNU $ac_path_GREP | |
4175 case `"$ac_path_GREP" --version 2>&1` in | |
4176 *GNU*) | |
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4178 *) | |
4179 ac_count=0 | |
4180 $as_echo_n 0123456789 >"conftest.in" | |
4181 while : | |
4182 do | |
4183 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4184 mv "conftest.tmp" "conftest.in" | |
4185 cp "conftest.in" "conftest.nl" | |
4186 $as_echo 'GREP' >> "conftest.nl" | |
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4189 ac_count=`expr $ac_count + 1` | |
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4191 # Best one so far, save it but keep looking for a better one | |
4192 ac_cv_path_GREP="$ac_path_GREP" | |
4193 ac_path_GREP_max=$ac_count | |
4194 fi | |
4195 # 10*(2^10) chars as input seems more than enough | |
4196 test $ac_count -gt 10 && break | |
4197 done | |
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4199 esac | |
4200 | |
4201 $ac_path_GREP_found && break 3 | |
4202 done | |
4203 done | |
4204 done | |
4205 IFS=$as_save_IFS | |
4206 if test -z "$ac_cv_path_GREP"; then | |
4207 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4208 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4209 { (exit 1); exit 1; }; } | |
4210 fi | |
4211 else | |
4212 ac_cv_path_GREP=$GREP | |
4213 fi | |
4214 | |
4215 fi | |
4216 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4217 $as_echo "$ac_cv_path_GREP" >&6; } | |
4218 GREP="$ac_cv_path_GREP" | |
4219 | |
4220 | |
4221 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
4222 $as_echo_n "checking for egrep... " >&6; } | |
4223 if test "${ac_cv_path_EGREP+set}" = set; then | |
4224 $as_echo_n "(cached) " >&6 | |
4225 else | |
4226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4227 then ac_cv_path_EGREP="$GREP -E" | |
4228 else | |
4229 if test -z "$EGREP"; then | |
4230 ac_path_EGREP_found=false | |
4231 # Loop through the user's path and test for each of PROGNAME-LIST | |
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4234 do | |
4235 IFS=$as_save_IFS | |
4236 test -z "$as_dir" && as_dir=. | |
4237 for ac_prog in egrep; do | |
4238 for ac_exec_ext in '' $ac_executable_extensions; do | |
4239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4240 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4241 # Check for GNU ac_path_EGREP and select it if it is found. | |
4242 # Check for GNU $ac_path_EGREP | |
4243 case `"$ac_path_EGREP" --version 2>&1` in | |
4244 *GNU*) | |
4245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4246 *) | |
4247 ac_count=0 | |
4248 $as_echo_n 0123456789 >"conftest.in" | |
4249 while : | |
4250 do | |
4251 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4252 mv "conftest.tmp" "conftest.in" | |
4253 cp "conftest.in" "conftest.nl" | |
4254 $as_echo 'EGREP' >> "conftest.nl" | |
4255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4257 ac_count=`expr $ac_count + 1` | |
4258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4259 # Best one so far, save it but keep looking for a better one | |
4260 ac_cv_path_EGREP="$ac_path_EGREP" | |
4261 ac_path_EGREP_max=$ac_count | |
4262 fi | |
4263 # 10*(2^10) chars as input seems more than enough | |
4264 test $ac_count -gt 10 && break | |
4265 done | |
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4267 esac | |
4268 | |
4269 $ac_path_EGREP_found && break 3 | |
4270 done | |
4271 done | |
4272 done | |
4273 IFS=$as_save_IFS | |
4274 if test -z "$ac_cv_path_EGREP"; then | |
4275 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4276 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4277 { (exit 1); exit 1; }; } | |
4278 fi | |
4279 else | |
4280 ac_cv_path_EGREP=$EGREP | |
4281 fi | |
4282 | |
4283 fi | |
4284 fi | |
4285 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4286 $as_echo "$ac_cv_path_EGREP" >&6; } | |
4287 EGREP="$ac_cv_path_EGREP" | |
4288 | |
4289 | |
4290 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4291 $as_echo_n "checking for ANSI C header files... " >&6; } | |
4292 if test "${ac_cv_header_stdc+set}" = set; then | |
4293 $as_echo_n "(cached) " >&6 | |
4294 else | |
4295 cat >conftest.$ac_ext <<_ACEOF | |
4296 /* confdefs.h. */ | |
4297 _ACEOF | |
4298 cat confdefs.h >>conftest.$ac_ext | |
4299 cat >>conftest.$ac_ext <<_ACEOF | |
4300 /* end confdefs.h. */ | |
4301 #include <stdlib.h> | |
4302 #include <stdarg.h> | |
4303 #include <string.h> | |
4304 #include <float.h> | |
4305 | |
4306 int | |
4307 main () | |
4308 { | |
4309 | |
4310 ; | |
4311 return 0; | |
4312 } | |
4313 _ACEOF | |
4314 rm -f conftest.$ac_objext | |
4315 if { (ac_try="$ac_compile" | |
4316 case "(($ac_try" in | |
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4318 *) ac_try_echo=$ac_try;; | |
4319 esac | |
4320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4321 $as_echo "$ac_try_echo") >&5 | |
4322 (eval "$ac_compile") 2>conftest.er1 | |
4323 ac_status=$? | |
4324 grep -v '^ *+' conftest.er1 >conftest.err | |
4325 rm -f conftest.er1 | |
4326 cat conftest.err >&5 | |
4327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4328 (exit $ac_status); } && { | |
4329 test -z "$ac_c_werror_flag" || | |
4330 test ! -s conftest.err | |
4331 } && test -s conftest.$ac_objext; then | |
4332 ac_cv_header_stdc=yes | |
4333 else | |
4334 $as_echo "$as_me: failed program was:" >&5 | |
4335 sed 's/^/| /' conftest.$ac_ext >&5 | |
4336 | |
4337 ac_cv_header_stdc=no | |
4338 fi | |
4339 | |
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4341 | |
4342 if test $ac_cv_header_stdc = yes; then | |
4343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4344 cat >conftest.$ac_ext <<_ACEOF | |
4345 /* confdefs.h. */ | |
4346 _ACEOF | |
4347 cat confdefs.h >>conftest.$ac_ext | |
4348 cat >>conftest.$ac_ext <<_ACEOF | |
4349 /* end confdefs.h. */ | |
4350 #include <string.h> | |
4351 | |
4352 _ACEOF | |
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4354 $EGREP "memchr" >/dev/null 2>&1; then | |
4355 : | |
4356 else | |
4357 ac_cv_header_stdc=no | |
4358 fi | |
4359 rm -f conftest* | |
4360 | |
4361 fi | |
4362 | |
4363 if test $ac_cv_header_stdc = yes; then | |
4364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4365 cat >conftest.$ac_ext <<_ACEOF | |
4366 /* confdefs.h. */ | |
4367 _ACEOF | |
4368 cat confdefs.h >>conftest.$ac_ext | |
4369 cat >>conftest.$ac_ext <<_ACEOF | |
4370 /* end confdefs.h. */ | |
4371 #include <stdlib.h> | |
4372 | |
4373 _ACEOF | |
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4375 $EGREP "free" >/dev/null 2>&1; then | |
4376 : | |
4377 else | |
4378 ac_cv_header_stdc=no | |
4379 fi | |
4380 rm -f conftest* | |
4381 | |
4382 fi | |
4383 | |
4384 if test $ac_cv_header_stdc = yes; then | |
4385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4386 if test "$cross_compiling" = yes; then | |
4387 : | |
4388 else | |
4389 cat >conftest.$ac_ext <<_ACEOF | |
4390 /* confdefs.h. */ | |
4391 _ACEOF | |
4392 cat confdefs.h >>conftest.$ac_ext | |
4393 cat >>conftest.$ac_ext <<_ACEOF | |
4394 /* end confdefs.h. */ | |
4395 #include <ctype.h> | |
4396 #include <stdlib.h> | |
4397 #if ((' ' & 0x0FF) == 0x020) | |
4398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4400 #else | |
4401 # define ISLOWER(c) \ | |
4402 (('a' <= (c) && (c) <= 'i') \ | |
4403 || ('j' <= (c) && (c) <= 'r') \ | |
4404 || ('s' <= (c) && (c) <= 'z')) | |
4405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4406 #endif | |
4407 | |
4408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4409 int | |
4410 main () | |
4411 { | |
4412 int i; | |
4413 for (i = 0; i < 256; i++) | |
4414 if (XOR (islower (i), ISLOWER (i)) | |
4415 || toupper (i) != TOUPPER (i)) | |
4416 return 2; | |
4417 return 0; | |
4418 } | |
4419 _ACEOF | |
4420 rm -f conftest$ac_exeext | |
4421 if { (ac_try="$ac_link" | |
4422 case "(($ac_try" in | |
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4424 *) ac_try_echo=$ac_try;; | |
4425 esac | |
4426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4427 $as_echo "$ac_try_echo") >&5 | |
4428 (eval "$ac_link") 2>&5 | |
4429 ac_status=$? | |
4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4432 { (case "(($ac_try" in | |
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4434 *) ac_try_echo=$ac_try;; | |
4435 esac | |
4436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4437 $as_echo "$ac_try_echo") >&5 | |
4438 (eval "$ac_try") 2>&5 | |
4439 ac_status=$? | |
4440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4441 (exit $ac_status); }; }; then | |
4442 : | |
4443 else | |
4444 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
4445 $as_echo "$as_me: failed program was:" >&5 | |
4446 sed 's/^/| /' conftest.$ac_ext >&5 | |
4447 | |
4448 ( exit $ac_status ) | |
4449 ac_cv_header_stdc=no | |
4450 fi | |
4451 rm -rf conftest.dSYM | |
4452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4453 fi | |
4454 | |
4455 | |
4456 fi | |
4457 fi | |
4458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4459 $as_echo "$ac_cv_header_stdc" >&6; } | |
4460 if test $ac_cv_header_stdc = yes; then | |
4461 | |
4462 cat >>confdefs.h <<\_ACEOF | |
4463 #define STDC_HEADERS 1 | |
4464 _ACEOF | |
4465 | |
4466 fi | |
4467 | |
4468 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4469 | |
4470 | |
4471 | |
4472 | |
4473 | |
4474 | |
4475 | |
4476 | |
4477 | |
4478 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4479 inttypes.h stdint.h unistd.h | |
4480 do | |
4481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4483 $as_echo_n "checking for $ac_header... " >&6; } | |
4484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4485 $as_echo_n "(cached) " >&6 | |
4486 else | |
4487 cat >conftest.$ac_ext <<_ACEOF | |
4488 /* confdefs.h. */ | |
4489 _ACEOF | |
4490 cat confdefs.h >>conftest.$ac_ext | |
4491 cat >>conftest.$ac_ext <<_ACEOF | |
4492 /* end confdefs.h. */ | |
4493 $ac_includes_default | |
4494 | |
4495 #include <$ac_header> | |
4496 _ACEOF | |
4497 rm -f conftest.$ac_objext | |
4498 if { (ac_try="$ac_compile" | |
4499 case "(($ac_try" in | |
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4501 *) ac_try_echo=$ac_try;; | |
4502 esac | |
4503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4504 $as_echo "$ac_try_echo") >&5 | |
4505 (eval "$ac_compile") 2>conftest.er1 | |
4506 ac_status=$? | |
4507 grep -v '^ *+' conftest.er1 >conftest.err | |
4508 rm -f conftest.er1 | |
4509 cat conftest.err >&5 | |
4510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4511 (exit $ac_status); } && { | |
4512 test -z "$ac_c_werror_flag" || | |
4513 test ! -s conftest.err | |
4514 } && test -s conftest.$ac_objext; then | |
4515 eval "$as_ac_Header=yes" | |
4516 else | |
4517 $as_echo "$as_me: failed program was:" >&5 | |
4518 sed 's/^/| /' conftest.$ac_ext >&5 | |
4519 | |
4520 eval "$as_ac_Header=no" | |
4521 fi | |
4522 | |
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4524 fi | |
4525 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4526 $as_echo "$as_val"'` | |
4527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4528 $as_echo "$ac_res" >&6; } | |
4529 as_val=`eval 'as_val=${'$as_ac_Header'} | |
4530 $as_echo "$as_val"'` | |
4531 if test "x$as_val" = x""yes; then | |
4532 cat >>confdefs.h <<_ACEOF | |
4533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4534 _ACEOF | |
4535 | |
4536 fi | |
4537 | |
4538 done | |
4539 | |
4540 | |
4541 | |
4542 | |
4543 | |
4544 if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4545 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4546 $as_echo_n "checking for minix/config.h... " >&6; } | |
4547 if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4548 $as_echo_n "(cached) " >&6 | |
4549 fi | |
4550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4551 $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4552 else | |
4553 # Is the header compilable? | |
4554 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4555 $as_echo_n "checking minix/config.h usability... " >&6; } | |
4556 cat >conftest.$ac_ext <<_ACEOF | |
4557 /* confdefs.h. */ | |
4558 _ACEOF | |
4559 cat confdefs.h >>conftest.$ac_ext | |
4560 cat >>conftest.$ac_ext <<_ACEOF | |
4561 /* end confdefs.h. */ | |
4562 $ac_includes_default | |
4563 #include <minix/config.h> | |
4564 _ACEOF | |
4565 rm -f conftest.$ac_objext | |
4566 if { (ac_try="$ac_compile" | |
4567 case "(($ac_try" in | |
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4569 *) ac_try_echo=$ac_try;; | |
4570 esac | |
4571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4572 $as_echo "$ac_try_echo") >&5 | |
4573 (eval "$ac_compile") 2>conftest.er1 | |
4574 ac_status=$? | |
4575 grep -v '^ *+' conftest.er1 >conftest.err | |
4576 rm -f conftest.er1 | |
4577 cat conftest.err >&5 | |
4578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4579 (exit $ac_status); } && { | |
4580 test -z "$ac_c_werror_flag" || | |
4581 test ! -s conftest.err | |
4582 } && test -s conftest.$ac_objext; then | |
4583 ac_header_compiler=yes | |
4584 else | |
4585 $as_echo "$as_me: failed program was:" >&5 | |
4586 sed 's/^/| /' conftest.$ac_ext >&5 | |
4587 | |
4588 ac_header_compiler=no | |
4589 fi | |
4590 | |
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4593 $as_echo "$ac_header_compiler" >&6; } | |
4594 | |
4595 # Is the header present? | |
4596 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4597 $as_echo_n "checking minix/config.h presence... " >&6; } | |
4598 cat >conftest.$ac_ext <<_ACEOF | |
4599 /* confdefs.h. */ | |
4600 _ACEOF | |
4601 cat confdefs.h >>conftest.$ac_ext | |
4602 cat >>conftest.$ac_ext <<_ACEOF | |
4603 /* end confdefs.h. */ | |
4604 #include <minix/config.h> | |
4605 _ACEOF | |
4606 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4607 case "(($ac_try" in | |
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4609 *) ac_try_echo=$ac_try;; | |
4610 esac | |
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4612 $as_echo "$ac_try_echo") >&5 | |
4613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4614 ac_status=$? | |
4615 grep -v '^ *+' conftest.er1 >conftest.err | |
4616 rm -f conftest.er1 | |
4617 cat conftest.err >&5 | |
4618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 (exit $ac_status); } >/dev/null && { | |
4620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4621 test ! -s conftest.err | |
4622 }; then | |
4623 ac_header_preproc=yes | |
4624 else | |
4625 $as_echo "$as_me: failed program was:" >&5 | |
4626 sed 's/^/| /' conftest.$ac_ext >&5 | |
4627 | |
4628 ac_header_preproc=no | |
4629 fi | |
4630 | |
4631 rm -f conftest.err conftest.$ac_ext | |
4632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4633 $as_echo "$ac_header_preproc" >&6; } | |
4634 | |
4635 # So? What about this header? | |
4636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4637 yes:no: ) | |
4638 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4639 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4640 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4641 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4642 ac_header_preproc=yes | |
4643 ;; | |
4644 no:yes:* ) | |
4645 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4646 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4647 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4648 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4649 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4650 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4651 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4652 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4653 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4654 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4655 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4656 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4657 ( cat <<\_ASBOX | |
4658 ## -------------------------- ## | |
4659 ## Report this to lost@l-w.ca ## | |
4660 ## -------------------------- ## | |
4661 _ASBOX | |
4662 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
4663 ;; | |
4664 esac | |
4665 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4666 $as_echo_n "checking for minix/config.h... " >&6; } | |
4667 if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4668 $as_echo_n "(cached) " >&6 | |
4669 else | |
4670 ac_cv_header_minix_config_h=$ac_header_preproc | |
4671 fi | |
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4673 $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4674 | |
4675 fi | |
4676 if test "x$ac_cv_header_minix_config_h" = x""yes; then | |
4677 MINIX=yes | |
4678 else | |
4679 MINIX= | |
4680 fi | |
4681 | |
4682 | |
4683 if test "$MINIX" = yes; then | |
4684 | |
4685 cat >>confdefs.h <<\_ACEOF | |
4686 #define _POSIX_SOURCE 1 | |
4687 _ACEOF | |
4688 | |
4689 | |
4690 cat >>confdefs.h <<\_ACEOF | |
4691 #define _POSIX_1_SOURCE 2 | |
4692 _ACEOF | |
4693 | |
4694 | |
4695 cat >>confdefs.h <<\_ACEOF | |
4696 #define _MINIX 1 | |
4697 _ACEOF | |
4698 | |
4699 fi | |
4700 | |
4701 case "$host_os" in | |
4702 hpux*) | |
4703 | |
4704 cat >>confdefs.h <<\_ACEOF | |
4705 #define _XOPEN_SOURCE 500 | |
4706 _ACEOF | |
4707 | |
4708 ;; | |
4709 esac | |
4710 | |
4711 | |
4712 | |
4713 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4714 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4715 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4716 $as_echo_n "(cached) " >&6 | |
4717 else | |
4718 cat >conftest.$ac_ext <<_ACEOF | |
4719 /* confdefs.h. */ | |
4720 _ACEOF | |
4721 cat confdefs.h >>conftest.$ac_ext | |
4722 cat >>conftest.$ac_ext <<_ACEOF | |
4723 /* end confdefs.h. */ | |
4724 | |
4725 # define __EXTENSIONS__ 1 | |
4726 $ac_includes_default | |
4727 int | |
4728 main () | |
4729 { | |
4730 | |
4731 ; | |
4732 return 0; | |
4733 } | |
4734 _ACEOF | |
4735 rm -f conftest.$ac_objext | |
4736 if { (ac_try="$ac_compile" | |
4737 case "(($ac_try" in | |
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4739 *) ac_try_echo=$ac_try;; | |
4740 esac | |
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4742 $as_echo "$ac_try_echo") >&5 | |
4743 (eval "$ac_compile") 2>conftest.er1 | |
4744 ac_status=$? | |
4745 grep -v '^ *+' conftest.er1 >conftest.err | |
4746 rm -f conftest.er1 | |
4747 cat conftest.err >&5 | |
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4749 (exit $ac_status); } && { | |
4750 test -z "$ac_c_werror_flag" || | |
4751 test ! -s conftest.err | |
4752 } && test -s conftest.$ac_objext; then | |
4753 ac_cv_safe_to_define___extensions__=yes | |
4754 else | |
4755 $as_echo "$as_me: failed program was:" >&5 | |
4756 sed 's/^/| /' conftest.$ac_ext >&5 | |
4757 | |
4758 ac_cv_safe_to_define___extensions__=no | |
4759 fi | |
4760 | |
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4762 fi | |
4763 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4764 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4765 test $ac_cv_safe_to_define___extensions__ = yes && | |
4766 cat >>confdefs.h <<\_ACEOF | |
4767 #define __EXTENSIONS__ 1 | |
4768 _ACEOF | |
4769 | |
4770 cat >>confdefs.h <<\_ACEOF | |
4771 #define _ALL_SOURCE 1 | |
4772 _ACEOF | |
4773 | |
4774 cat >>confdefs.h <<\_ACEOF | |
4775 #define _GNU_SOURCE 1 | |
4776 _ACEOF | |
4777 | |
4778 cat >>confdefs.h <<\_ACEOF | |
4779 #define _POSIX_PTHREAD_SEMANTICS 1 | |
4780 _ACEOF | |
4781 | |
4782 cat >>confdefs.h <<\_ACEOF | |
4783 #define _TANDEM_SOURCE 1 | |
4784 _ACEOF | |
4785 | |
4786 | |
4787 | |
4788 | |
4789 | |
4790 | |
4791 | |
4792 # for gnulib | |
4793 | |
4794 | |
4795 | |
4796 | |
4797 | |
4798 | |
4799 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4800 # for constant arguments. Useless! | |
4801 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
4802 $as_echo_n "checking for working alloca.h... " >&6; } | |
4803 if test "${ac_cv_working_alloca_h+set}" = set; then | |
4804 $as_echo_n "(cached) " >&6 | |
4805 else | |
4806 cat >conftest.$ac_ext <<_ACEOF | |
4807 /* confdefs.h. */ | |
4808 _ACEOF | |
4809 cat confdefs.h >>conftest.$ac_ext | |
4810 cat >>conftest.$ac_ext <<_ACEOF | |
4811 /* end confdefs.h. */ | |
4812 #include <alloca.h> | |
4813 int | |
4814 main () | |
4815 { | |
4816 char *p = (char *) alloca (2 * sizeof (int)); | |
4817 if (p) return 0; | |
4818 ; | |
4819 return 0; | |
4820 } | |
4821 _ACEOF | |
4822 rm -f conftest.$ac_objext conftest$ac_exeext | |
4823 if { (ac_try="$ac_link" | |
4824 case "(($ac_try" in | |
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4826 *) ac_try_echo=$ac_try;; | |
4827 esac | |
4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4829 $as_echo "$ac_try_echo") >&5 | |
4830 (eval "$ac_link") 2>conftest.er1 | |
4831 ac_status=$? | |
4832 grep -v '^ *+' conftest.er1 >conftest.err | |
4833 rm -f conftest.er1 | |
4834 cat conftest.err >&5 | |
4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4836 (exit $ac_status); } && { | |
4837 test -z "$ac_c_werror_flag" || | |
4838 test ! -s conftest.err | |
4839 } && test -s conftest$ac_exeext && { | |
4840 test "$cross_compiling" = yes || | |
4841 $as_test_x conftest$ac_exeext | |
4842 }; then | |
4843 ac_cv_working_alloca_h=yes | |
4844 else | |
4845 $as_echo "$as_me: failed program was:" >&5 | |
4846 sed 's/^/| /' conftest.$ac_ext >&5 | |
4847 | |
4848 ac_cv_working_alloca_h=no | |
4849 fi | |
4850 | |
4851 rm -rf conftest.dSYM | |
4852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4853 conftest$ac_exeext conftest.$ac_ext | |
4854 fi | |
4855 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
4856 $as_echo "$ac_cv_working_alloca_h" >&6; } | |
4857 if test $ac_cv_working_alloca_h = yes; then | |
4858 | |
4859 cat >>confdefs.h <<\_ACEOF | |
4860 #define HAVE_ALLOCA_H 1 | |
4861 _ACEOF | |
4862 | |
4863 fi | |
4864 | |
4865 { $as_echo "$as_me:$LINENO: checking for alloca" >&5 | |
4866 $as_echo_n "checking for alloca... " >&6; } | |
4867 if test "${ac_cv_func_alloca_works+set}" = set; then | |
4868 $as_echo_n "(cached) " >&6 | |
4869 else | |
4870 cat >conftest.$ac_ext <<_ACEOF | |
4871 /* confdefs.h. */ | |
4872 _ACEOF | |
4873 cat confdefs.h >>conftest.$ac_ext | |
4874 cat >>conftest.$ac_ext <<_ACEOF | |
4875 /* end confdefs.h. */ | |
4876 #ifdef __GNUC__ | |
4877 # define alloca __builtin_alloca | |
4878 #else | |
4879 # ifdef _MSC_VER | |
4880 # include <malloc.h> | |
4881 # define alloca _alloca | |
4882 # else | |
4883 # ifdef HAVE_ALLOCA_H | |
4884 # include <alloca.h> | |
4885 # else | |
4886 # ifdef _AIX | |
4887 #pragma alloca | |
4888 # else | |
4889 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4890 char *alloca (); | |
4891 # endif | |
4892 # endif | |
4893 # endif | |
4894 # endif | |
4895 #endif | |
4896 | |
4897 int | |
4898 main () | |
4899 { | |
4900 char *p = (char *) alloca (1); | |
4901 if (p) return 0; | |
4902 ; | |
4903 return 0; | |
4904 } | |
4905 _ACEOF | |
4906 rm -f conftest.$ac_objext conftest$ac_exeext | |
4907 if { (ac_try="$ac_link" | |
4908 case "(($ac_try" in | |
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4910 *) ac_try_echo=$ac_try;; | |
4911 esac | |
4912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4913 $as_echo "$ac_try_echo") >&5 | |
4914 (eval "$ac_link") 2>conftest.er1 | |
4915 ac_status=$? | |
4916 grep -v '^ *+' conftest.er1 >conftest.err | |
4917 rm -f conftest.er1 | |
4918 cat conftest.err >&5 | |
4919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4920 (exit $ac_status); } && { | |
4921 test -z "$ac_c_werror_flag" || | |
4922 test ! -s conftest.err | |
4923 } && test -s conftest$ac_exeext && { | |
4924 test "$cross_compiling" = yes || | |
4925 $as_test_x conftest$ac_exeext | |
4926 }; then | |
4927 ac_cv_func_alloca_works=yes | |
4928 else | |
4929 $as_echo "$as_me: failed program was:" >&5 | |
4930 sed 's/^/| /' conftest.$ac_ext >&5 | |
4931 | |
4932 ac_cv_func_alloca_works=no | |
4933 fi | |
4934 | |
4935 rm -rf conftest.dSYM | |
4936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4937 conftest$ac_exeext conftest.$ac_ext | |
4938 fi | |
4939 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
4940 $as_echo "$ac_cv_func_alloca_works" >&6; } | |
4941 | |
4942 if test $ac_cv_func_alloca_works = yes; then | |
4943 | |
4944 cat >>confdefs.h <<\_ACEOF | |
4945 #define HAVE_ALLOCA 1 | |
4946 _ACEOF | |
4947 | |
4948 else | |
4949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4950 # that cause trouble. Some versions do not even contain alloca or | |
4951 # contain a buggy version. If you still want to use their alloca, | |
4952 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4953 | |
4954 | |
4955 | |
4956 | |
4957 | |
4958 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
4959 | |
4960 cat >>confdefs.h <<\_ACEOF | |
4961 #define C_ALLOCA 1 | |
4962 _ACEOF | |
4963 | |
4964 | |
4965 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
4966 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
4967 if test "${ac_cv_os_cray+set}" = set; then | |
4968 $as_echo_n "(cached) " >&6 | |
4969 else | |
4970 cat >conftest.$ac_ext <<_ACEOF | |
4971 /* confdefs.h. */ | |
4972 _ACEOF | |
4973 cat confdefs.h >>conftest.$ac_ext | |
4974 cat >>conftest.$ac_ext <<_ACEOF | |
4975 /* end confdefs.h. */ | |
4976 #if defined CRAY && ! defined CRAY2 | |
4977 webecray | |
4978 #else | |
4979 wenotbecray | |
4980 #endif | |
4981 | |
4982 _ACEOF | |
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4984 $EGREP "webecray" >/dev/null 2>&1; then | |
4985 ac_cv_os_cray=yes | |
4986 else | |
4987 ac_cv_os_cray=no | |
4988 fi | |
4989 rm -f conftest* | |
4990 | |
4991 fi | |
4992 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
4993 $as_echo "$ac_cv_os_cray" >&6; } | |
4994 if test $ac_cv_os_cray = yes; then | |
4995 for ac_func in _getb67 GETB67 getb67; do | |
4996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4998 $as_echo_n "checking for $ac_func... " >&6; } | |
4999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
5000 $as_echo_n "(cached) " >&6 | |
5001 else | |
5002 cat >conftest.$ac_ext <<_ACEOF | |
5003 /* confdefs.h. */ | |
5004 _ACEOF | |
5005 cat confdefs.h >>conftest.$ac_ext | |
5006 cat >>conftest.$ac_ext <<_ACEOF | |
5007 /* end confdefs.h. */ | |
5008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5009 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5010 #define $ac_func innocuous_$ac_func | |
5011 | |
5012 /* System header to define __stub macros and hopefully few prototypes, | |
5013 which can conflict with char $ac_func (); below. | |
5014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5015 <limits.h> exists even on freestanding compilers. */ | |
5016 | |
5017 #ifdef __STDC__ | |
5018 # include <limits.h> | |
5019 #else | |
5020 # include <assert.h> | |
5021 #endif | |
5022 | |
5023 #undef $ac_func | |
5024 | |
5025 /* Override any GCC internal prototype to avoid an error. | |
5026 Use char because int might match the return type of a GCC | |
5027 builtin and then its argument prototype would still apply. */ | |
5028 #ifdef __cplusplus | |
5029 extern "C" | |
5030 #endif | |
5031 char $ac_func (); | |
5032 /* The GNU C library defines this for functions which it implements | |
5033 to always fail with ENOSYS. Some functions are actually named | |
5034 something starting with __ and the normal name is an alias. */ | |
5035 #if defined __stub_$ac_func || defined __stub___$ac_func | |
5036 choke me | |
5037 #endif | |
5038 | |
5039 int | |
5040 main () | |
5041 { | |
5042 return $ac_func (); | |
5043 ; | |
5044 return 0; | |
5045 } | |
5046 _ACEOF | |
5047 rm -f conftest.$ac_objext conftest$ac_exeext | |
5048 if { (ac_try="$ac_link" | |
5049 case "(($ac_try" in | |
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5051 *) ac_try_echo=$ac_try;; | |
5052 esac | |
5053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5054 $as_echo "$ac_try_echo") >&5 | |
5055 (eval "$ac_link") 2>conftest.er1 | |
5056 ac_status=$? | |
5057 grep -v '^ *+' conftest.er1 >conftest.err | |
5058 rm -f conftest.er1 | |
5059 cat conftest.err >&5 | |
5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5061 (exit $ac_status); } && { | |
5062 test -z "$ac_c_werror_flag" || | |
5063 test ! -s conftest.err | |
5064 } && test -s conftest$ac_exeext && { | |
5065 test "$cross_compiling" = yes || | |
5066 $as_test_x conftest$ac_exeext | |
5067 }; then | |
5068 eval "$as_ac_var=yes" | |
5069 else | |
5070 $as_echo "$as_me: failed program was:" >&5 | |
5071 sed 's/^/| /' conftest.$ac_ext >&5 | |
5072 | |
5073 eval "$as_ac_var=no" | |
5074 fi | |
5075 | |
5076 rm -rf conftest.dSYM | |
5077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5078 conftest$ac_exeext conftest.$ac_ext | |
5079 fi | |
5080 ac_res=`eval 'as_val=${'$as_ac_var'} | |
5081 $as_echo "$as_val"'` | |
5082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5083 $as_echo "$ac_res" >&6; } | |
5084 as_val=`eval 'as_val=${'$as_ac_var'} | |
5085 $as_echo "$as_val"'` | |
5086 if test "x$as_val" = x""yes; then | |
5087 | |
5088 cat >>confdefs.h <<_ACEOF | |
5089 #define CRAY_STACKSEG_END $ac_func | |
5090 _ACEOF | |
5091 | |
5092 break | |
5093 fi | |
5094 | |
5095 done | |
5096 fi | |
5097 | |
5098 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5099 $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5100 if test "${ac_cv_c_stack_direction+set}" = set; then | |
5101 $as_echo_n "(cached) " >&6 | |
5102 else | |
5103 if test "$cross_compiling" = yes; then | |
5104 ac_cv_c_stack_direction=0 | |
5105 else | |
5106 cat >conftest.$ac_ext <<_ACEOF | |
5107 /* confdefs.h. */ | |
5108 _ACEOF | |
5109 cat confdefs.h >>conftest.$ac_ext | |
5110 cat >>conftest.$ac_ext <<_ACEOF | |
5111 /* end confdefs.h. */ | |
5112 $ac_includes_default | |
5113 int | |
5114 find_stack_direction () | |
5115 { | |
5116 static char *addr = 0; | |
5117 auto char dummy; | |
5118 if (addr == 0) | |
5119 { | |
5120 addr = &dummy; | |
5121 return find_stack_direction (); | |
5122 } | |
5123 else | |
5124 return (&dummy > addr) ? 1 : -1; | |
5125 } | |
5126 | |
5127 int | |
5128 main () | |
5129 { | |
5130 return find_stack_direction () < 0; | |
5131 } | |
5132 _ACEOF | |
5133 rm -f conftest$ac_exeext | |
5134 if { (ac_try="$ac_link" | |
5135 case "(($ac_try" in | |
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5137 *) ac_try_echo=$ac_try;; | |
5138 esac | |
5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5140 $as_echo "$ac_try_echo") >&5 | |
5141 (eval "$ac_link") 2>&5 | |
5142 ac_status=$? | |
5143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5145 { (case "(($ac_try" in | |
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5147 *) ac_try_echo=$ac_try;; | |
5148 esac | |
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5150 $as_echo "$ac_try_echo") >&5 | |
5151 (eval "$ac_try") 2>&5 | |
5152 ac_status=$? | |
5153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5154 (exit $ac_status); }; }; then | |
5155 ac_cv_c_stack_direction=1 | |
5156 else | |
5157 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5158 $as_echo "$as_me: failed program was:" >&5 | |
5159 sed 's/^/| /' conftest.$ac_ext >&5 | |
5160 | |
5161 ( exit $ac_status ) | |
5162 ac_cv_c_stack_direction=-1 | |
5163 fi | |
5164 rm -rf conftest.dSYM | |
5165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5166 fi | |
5167 | |
5168 | |
5169 fi | |
5170 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5171 $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5172 | |
5173 cat >>confdefs.h <<_ACEOF | |
5174 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5175 _ACEOF | |
5176 | |
5177 | |
5178 fi | |
5179 | |
5180 { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
5181 $as_echo_n "checking for inline... " >&6; } | |
5182 if test "${ac_cv_c_inline+set}" = set; then | |
5183 $as_echo_n "(cached) " >&6 | |
5184 else | |
5185 ac_cv_c_inline=no | |
5186 for ac_kw in inline __inline__ __inline; do | |
5187 cat >conftest.$ac_ext <<_ACEOF | |
5188 /* confdefs.h. */ | |
5189 _ACEOF | |
5190 cat confdefs.h >>conftest.$ac_ext | |
5191 cat >>conftest.$ac_ext <<_ACEOF | |
5192 /* end confdefs.h. */ | |
5193 #ifndef __cplusplus | |
5194 typedef int foo_t; | |
5195 static $ac_kw foo_t static_foo () {return 0; } | |
5196 $ac_kw foo_t foo () {return 0; } | |
5197 #endif | |
5198 | |
5199 _ACEOF | |
5200 rm -f conftest.$ac_objext | |
5201 if { (ac_try="$ac_compile" | |
5202 case "(($ac_try" in | |
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5204 *) ac_try_echo=$ac_try;; | |
5205 esac | |
5206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5207 $as_echo "$ac_try_echo") >&5 | |
5208 (eval "$ac_compile") 2>conftest.er1 | |
5209 ac_status=$? | |
5210 grep -v '^ *+' conftest.er1 >conftest.err | |
5211 rm -f conftest.er1 | |
5212 cat conftest.err >&5 | |
5213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5214 (exit $ac_status); } && { | |
5215 test -z "$ac_c_werror_flag" || | |
5216 test ! -s conftest.err | |
5217 } && test -s conftest.$ac_objext; then | |
5218 ac_cv_c_inline=$ac_kw | |
5219 else | |
5220 $as_echo "$as_me: failed program was:" >&5 | |
5221 sed 's/^/| /' conftest.$ac_ext >&5 | |
5222 | |
5223 | |
5224 fi | |
5225 | |
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5227 test "$ac_cv_c_inline" != no && break | |
5228 done | |
5229 | |
5230 fi | |
5231 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
5232 $as_echo "$ac_cv_c_inline" >&6; } | |
5233 | |
5234 | |
5235 case $ac_cv_c_inline in | |
5236 inline | yes) ;; | |
5237 *) | |
5238 case $ac_cv_c_inline in | |
5239 no) ac_val=;; | |
5240 *) ac_val=$ac_cv_c_inline;; | |
5241 esac | |
5242 cat >>confdefs.h <<_ACEOF | |
5243 #ifndef __cplusplus | |
5244 #define inline $ac_val | |
5245 #endif | |
5246 _ACEOF | |
5247 ;; | |
5248 esac | |
5249 | |
5250 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 | |
5251 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | |
5252 if test "${ac_cv_c_restrict+set}" = set; then | |
5253 $as_echo_n "(cached) " >&6 | |
5254 else | |
5255 ac_cv_c_restrict=no | |
5256 # The order here caters to the fact that C++ does not require restrict. | |
5257 for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
5258 cat >conftest.$ac_ext <<_ACEOF | |
5259 /* confdefs.h. */ | |
5260 _ACEOF | |
5261 cat confdefs.h >>conftest.$ac_ext | |
5262 cat >>conftest.$ac_ext <<_ACEOF | |
5263 /* end confdefs.h. */ | |
5264 typedef int * int_ptr; | |
5265 int foo (int_ptr $ac_kw ip) { | |
5266 return ip[0]; | |
5267 } | |
5268 int | |
5269 main () | |
5270 { | |
5271 int s[1]; | |
5272 int * $ac_kw t = s; | |
5273 t[0] = 0; | |
5274 return foo(t) | |
5275 ; | |
5276 return 0; | |
5277 } | |
5278 _ACEOF | |
5279 rm -f conftest.$ac_objext | |
5280 if { (ac_try="$ac_compile" | |
5281 case "(($ac_try" in | |
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5283 *) ac_try_echo=$ac_try;; | |
5284 esac | |
5285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5286 $as_echo "$ac_try_echo") >&5 | |
5287 (eval "$ac_compile") 2>conftest.er1 | |
5288 ac_status=$? | |
5289 grep -v '^ *+' conftest.er1 >conftest.err | |
5290 rm -f conftest.er1 | |
5291 cat conftest.err >&5 | |
5292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5293 (exit $ac_status); } && { | |
5294 test -z "$ac_c_werror_flag" || | |
5295 test ! -s conftest.err | |
5296 } && test -s conftest.$ac_objext; then | |
5297 ac_cv_c_restrict=$ac_kw | |
5298 else | |
5299 $as_echo "$as_me: failed program was:" >&5 | |
5300 sed 's/^/| /' conftest.$ac_ext >&5 | |
5301 | |
5302 | |
5303 fi | |
5304 | |
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5306 test "$ac_cv_c_restrict" != no && break | |
5307 done | |
5308 | |
5309 fi | |
5310 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 | |
5311 $as_echo "$ac_cv_c_restrict" >&6; } | |
5312 | |
5313 | |
5314 case $ac_cv_c_restrict in | |
5315 restrict) ;; | |
5316 no) cat >>confdefs.h <<\_ACEOF | |
5317 #define restrict /**/ | |
5318 _ACEOF | |
5319 ;; | |
5320 *) cat >>confdefs.h <<_ACEOF | |
5321 #define restrict $ac_cv_c_restrict | |
5322 _ACEOF | |
5323 ;; | |
5324 esac | |
5325 | |
5326 | |
5327 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
5328 $as_echo_n "checking whether getenv is declared... " >&6; } | |
5329 if test "${ac_cv_have_decl_getenv+set}" = set; then | |
5330 $as_echo_n "(cached) " >&6 | |
5331 else | |
5332 cat >conftest.$ac_ext <<_ACEOF | |
5333 /* confdefs.h. */ | |
5334 _ACEOF | |
5335 cat confdefs.h >>conftest.$ac_ext | |
5336 cat >>conftest.$ac_ext <<_ACEOF | |
5337 /* end confdefs.h. */ | |
5338 $ac_includes_default | |
5339 int | |
5340 main () | |
5341 { | |
5342 #ifndef getenv | |
5343 (void) getenv; | |
5344 #endif | |
5345 | |
5346 ; | |
5347 return 0; | |
5348 } | |
5349 _ACEOF | |
5350 rm -f conftest.$ac_objext | |
5351 if { (ac_try="$ac_compile" | |
5352 case "(($ac_try" in | |
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5354 *) ac_try_echo=$ac_try;; | |
5355 esac | |
5356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5357 $as_echo "$ac_try_echo") >&5 | |
5358 (eval "$ac_compile") 2>conftest.er1 | |
5359 ac_status=$? | |
5360 grep -v '^ *+' conftest.er1 >conftest.err | |
5361 rm -f conftest.er1 | |
5362 cat conftest.err >&5 | |
5363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5364 (exit $ac_status); } && { | |
5365 test -z "$ac_c_werror_flag" || | |
5366 test ! -s conftest.err | |
5367 } && test -s conftest.$ac_objext; then | |
5368 ac_cv_have_decl_getenv=yes | |
5369 else | |
5370 $as_echo "$as_me: failed program was:" >&5 | |
5371 sed 's/^/| /' conftest.$ac_ext >&5 | |
5372 | |
5373 ac_cv_have_decl_getenv=no | |
5374 fi | |
5375 | |
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5377 fi | |
5378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 | |
5379 $as_echo "$ac_cv_have_decl_getenv" >&6; } | |
5380 if test "x$ac_cv_have_decl_getenv" = x""yes; then | |
5381 | |
5382 cat >>confdefs.h <<_ACEOF | |
5383 #define HAVE_DECL_GETENV 1 | |
5384 _ACEOF | |
5385 | |
5386 | |
5387 else | |
5388 cat >>confdefs.h <<_ACEOF | |
5389 #define HAVE_DECL_GETENV 0 | |
5390 _ACEOF | |
5391 | |
5392 | |
5393 fi | |
5394 | |
5395 | |
5396 | |
5397 | |
5398 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5 | |
5399 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; } | |
5400 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then | |
5401 $as_echo_n "(cached) " >&6 | |
5402 else | |
5403 cat >conftest.$ac_ext <<_ACEOF | |
5404 /* confdefs.h. */ | |
5405 _ACEOF | |
5406 cat confdefs.h >>conftest.$ac_ext | |
5407 cat >>conftest.$ac_ext <<_ACEOF | |
5408 /* end confdefs.h. */ | |
5409 $ac_includes_default | |
5410 int | |
5411 main () | |
5412 { | |
5413 #ifndef clearerr_unlocked | |
5414 (void) clearerr_unlocked; | |
5415 #endif | |
5416 | |
5417 ; | |
5418 return 0; | |
5419 } | |
5420 _ACEOF | |
5421 rm -f conftest.$ac_objext | |
5422 if { (ac_try="$ac_compile" | |
5423 case "(($ac_try" in | |
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5425 *) ac_try_echo=$ac_try;; | |
5426 esac | |
5427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5428 $as_echo "$ac_try_echo") >&5 | |
5429 (eval "$ac_compile") 2>conftest.er1 | |
5430 ac_status=$? | |
5431 grep -v '^ *+' conftest.er1 >conftest.err | |
5432 rm -f conftest.er1 | |
5433 cat conftest.err >&5 | |
5434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5435 (exit $ac_status); } && { | |
5436 test -z "$ac_c_werror_flag" || | |
5437 test ! -s conftest.err | |
5438 } && test -s conftest.$ac_objext; then | |
5439 ac_cv_have_decl_clearerr_unlocked=yes | |
5440 else | |
5441 $as_echo "$as_me: failed program was:" >&5 | |
5442 sed 's/^/| /' conftest.$ac_ext >&5 | |
5443 | |
5444 ac_cv_have_decl_clearerr_unlocked=no | |
5445 fi | |
5446 | |
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5448 fi | |
5449 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5 | |
5450 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; } | |
5451 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then | |
5452 | |
5453 cat >>confdefs.h <<_ACEOF | |
5454 #define HAVE_DECL_CLEARERR_UNLOCKED 1 | |
5455 _ACEOF | |
5456 | |
5457 | |
5458 else | |
5459 cat >>confdefs.h <<_ACEOF | |
5460 #define HAVE_DECL_CLEARERR_UNLOCKED 0 | |
5461 _ACEOF | |
5462 | |
5463 | |
5464 fi | |
5465 | |
5466 | |
5467 | |
5468 | |
5469 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 | |
5470 $as_echo_n "checking whether feof_unlocked is declared... " >&6; } | |
5471 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then | |
5472 $as_echo_n "(cached) " >&6 | |
5473 else | |
5474 cat >conftest.$ac_ext <<_ACEOF | |
5475 /* confdefs.h. */ | |
5476 _ACEOF | |
5477 cat confdefs.h >>conftest.$ac_ext | |
5478 cat >>conftest.$ac_ext <<_ACEOF | |
5479 /* end confdefs.h. */ | |
5480 $ac_includes_default | |
5481 int | |
5482 main () | |
5483 { | |
5484 #ifndef feof_unlocked | |
5485 (void) feof_unlocked; | |
5486 #endif | |
5487 | |
5488 ; | |
5489 return 0; | |
5490 } | |
5491 _ACEOF | |
5492 rm -f conftest.$ac_objext | |
5493 if { (ac_try="$ac_compile" | |
5494 case "(($ac_try" in | |
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5496 *) ac_try_echo=$ac_try;; | |
5497 esac | |
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5499 $as_echo "$ac_try_echo") >&5 | |
5500 (eval "$ac_compile") 2>conftest.er1 | |
5501 ac_status=$? | |
5502 grep -v '^ *+' conftest.er1 >conftest.err | |
5503 rm -f conftest.er1 | |
5504 cat conftest.err >&5 | |
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5506 (exit $ac_status); } && { | |
5507 test -z "$ac_c_werror_flag" || | |
5508 test ! -s conftest.err | |
5509 } && test -s conftest.$ac_objext; then | |
5510 ac_cv_have_decl_feof_unlocked=yes | |
5511 else | |
5512 $as_echo "$as_me: failed program was:" >&5 | |
5513 sed 's/^/| /' conftest.$ac_ext >&5 | |
5514 | |
5515 ac_cv_have_decl_feof_unlocked=no | |
5516 fi | |
5517 | |
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5519 fi | |
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 | |
5521 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } | |
5522 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then | |
5523 | |
5524 cat >>confdefs.h <<_ACEOF | |
5525 #define HAVE_DECL_FEOF_UNLOCKED 1 | |
5526 _ACEOF | |
5527 | |
5528 | |
5529 else | |
5530 cat >>confdefs.h <<_ACEOF | |
5531 #define HAVE_DECL_FEOF_UNLOCKED 0 | |
5532 _ACEOF | |
5533 | |
5534 | |
5535 fi | |
5536 | |
5537 | |
5538 | |
5539 | |
5540 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5 | |
5541 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; } | |
5542 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then | |
5543 $as_echo_n "(cached) " >&6 | |
5544 else | |
5545 cat >conftest.$ac_ext <<_ACEOF | |
5546 /* confdefs.h. */ | |
5547 _ACEOF | |
5548 cat confdefs.h >>conftest.$ac_ext | |
5549 cat >>conftest.$ac_ext <<_ACEOF | |
5550 /* end confdefs.h. */ | |
5551 $ac_includes_default | |
5552 int | |
5553 main () | |
5554 { | |
5555 #ifndef ferror_unlocked | |
5556 (void) ferror_unlocked; | |
5557 #endif | |
5558 | |
5559 ; | |
5560 return 0; | |
5561 } | |
5562 _ACEOF | |
5563 rm -f conftest.$ac_objext | |
5564 if { (ac_try="$ac_compile" | |
5565 case "(($ac_try" in | |
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5567 *) ac_try_echo=$ac_try;; | |
5568 esac | |
5569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5570 $as_echo "$ac_try_echo") >&5 | |
5571 (eval "$ac_compile") 2>conftest.er1 | |
5572 ac_status=$? | |
5573 grep -v '^ *+' conftest.er1 >conftest.err | |
5574 rm -f conftest.er1 | |
5575 cat conftest.err >&5 | |
5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5577 (exit $ac_status); } && { | |
5578 test -z "$ac_c_werror_flag" || | |
5579 test ! -s conftest.err | |
5580 } && test -s conftest.$ac_objext; then | |
5581 ac_cv_have_decl_ferror_unlocked=yes | |
5582 else | |
5583 $as_echo "$as_me: failed program was:" >&5 | |
5584 sed 's/^/| /' conftest.$ac_ext >&5 | |
5585 | |
5586 ac_cv_have_decl_ferror_unlocked=no | |
5587 fi | |
5588 | |
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5590 fi | |
5591 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5 | |
5592 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; } | |
5593 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then | |
5594 | |
5595 cat >>confdefs.h <<_ACEOF | |
5596 #define HAVE_DECL_FERROR_UNLOCKED 1 | |
5597 _ACEOF | |
5598 | |
5599 | |
5600 else | |
5601 cat >>confdefs.h <<_ACEOF | |
5602 #define HAVE_DECL_FERROR_UNLOCKED 0 | |
5603 _ACEOF | |
5604 | |
5605 | |
5606 fi | |
5607 | |
5608 | |
5609 | |
5610 | |
5611 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5 | |
5612 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; } | |
5613 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then | |
5614 $as_echo_n "(cached) " >&6 | |
5615 else | |
5616 cat >conftest.$ac_ext <<_ACEOF | |
5617 /* confdefs.h. */ | |
5618 _ACEOF | |
5619 cat confdefs.h >>conftest.$ac_ext | |
5620 cat >>conftest.$ac_ext <<_ACEOF | |
5621 /* end confdefs.h. */ | |
5622 $ac_includes_default | |
5623 int | |
5624 main () | |
5625 { | |
5626 #ifndef fflush_unlocked | |
5627 (void) fflush_unlocked; | |
5628 #endif | |
5629 | |
5630 ; | |
5631 return 0; | |
5632 } | |
5633 _ACEOF | |
5634 rm -f conftest.$ac_objext | |
5635 if { (ac_try="$ac_compile" | |
5636 case "(($ac_try" in | |
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5638 *) ac_try_echo=$ac_try;; | |
5639 esac | |
5640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5641 $as_echo "$ac_try_echo") >&5 | |
5642 (eval "$ac_compile") 2>conftest.er1 | |
5643 ac_status=$? | |
5644 grep -v '^ *+' conftest.er1 >conftest.err | |
5645 rm -f conftest.er1 | |
5646 cat conftest.err >&5 | |
5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5648 (exit $ac_status); } && { | |
5649 test -z "$ac_c_werror_flag" || | |
5650 test ! -s conftest.err | |
5651 } && test -s conftest.$ac_objext; then | |
5652 ac_cv_have_decl_fflush_unlocked=yes | |
5653 else | |
5654 $as_echo "$as_me: failed program was:" >&5 | |
5655 sed 's/^/| /' conftest.$ac_ext >&5 | |
5656 | |
5657 ac_cv_have_decl_fflush_unlocked=no | |
5658 fi | |
5659 | |
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5661 fi | |
5662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5 | |
5663 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; } | |
5664 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then | |
5665 | |
5666 cat >>confdefs.h <<_ACEOF | |
5667 #define HAVE_DECL_FFLUSH_UNLOCKED 1 | |
5668 _ACEOF | |
5669 | |
5670 | |
5671 else | |
5672 cat >>confdefs.h <<_ACEOF | |
5673 #define HAVE_DECL_FFLUSH_UNLOCKED 0 | |
5674 _ACEOF | |
5675 | |
5676 | |
5677 fi | |
5678 | |
5679 | |
5680 | |
5681 | |
5682 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 | |
5683 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } | |
5684 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then | |
5685 $as_echo_n "(cached) " >&6 | |
5686 else | |
5687 cat >conftest.$ac_ext <<_ACEOF | |
5688 /* confdefs.h. */ | |
5689 _ACEOF | |
5690 cat confdefs.h >>conftest.$ac_ext | |
5691 cat >>conftest.$ac_ext <<_ACEOF | |
5692 /* end confdefs.h. */ | |
5693 $ac_includes_default | |
5694 int | |
5695 main () | |
5696 { | |
5697 #ifndef fgets_unlocked | |
5698 (void) fgets_unlocked; | |
5699 #endif | |
5700 | |
5701 ; | |
5702 return 0; | |
5703 } | |
5704 _ACEOF | |
5705 rm -f conftest.$ac_objext | |
5706 if { (ac_try="$ac_compile" | |
5707 case "(($ac_try" in | |
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5709 *) ac_try_echo=$ac_try;; | |
5710 esac | |
5711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5712 $as_echo "$ac_try_echo") >&5 | |
5713 (eval "$ac_compile") 2>conftest.er1 | |
5714 ac_status=$? | |
5715 grep -v '^ *+' conftest.er1 >conftest.err | |
5716 rm -f conftest.er1 | |
5717 cat conftest.err >&5 | |
5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5719 (exit $ac_status); } && { | |
5720 test -z "$ac_c_werror_flag" || | |
5721 test ! -s conftest.err | |
5722 } && test -s conftest.$ac_objext; then | |
5723 ac_cv_have_decl_fgets_unlocked=yes | |
5724 else | |
5725 $as_echo "$as_me: failed program was:" >&5 | |
5726 sed 's/^/| /' conftest.$ac_ext >&5 | |
5727 | |
5728 ac_cv_have_decl_fgets_unlocked=no | |
5729 fi | |
5730 | |
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5732 fi | |
5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 | |
5734 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } | |
5735 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then | |
5736 | |
5737 cat >>confdefs.h <<_ACEOF | |
5738 #define HAVE_DECL_FGETS_UNLOCKED 1 | |
5739 _ACEOF | |
5740 | |
5741 | |
5742 else | |
5743 cat >>confdefs.h <<_ACEOF | |
5744 #define HAVE_DECL_FGETS_UNLOCKED 0 | |
5745 _ACEOF | |
5746 | |
5747 | |
5748 fi | |
5749 | |
5750 | |
5751 | |
5752 | |
5753 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5 | |
5754 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; } | |
5755 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then | |
5756 $as_echo_n "(cached) " >&6 | |
5757 else | |
5758 cat >conftest.$ac_ext <<_ACEOF | |
5759 /* confdefs.h. */ | |
5760 _ACEOF | |
5761 cat confdefs.h >>conftest.$ac_ext | |
5762 cat >>conftest.$ac_ext <<_ACEOF | |
5763 /* end confdefs.h. */ | |
5764 $ac_includes_default | |
5765 int | |
5766 main () | |
5767 { | |
5768 #ifndef fputc_unlocked | |
5769 (void) fputc_unlocked; | |
5770 #endif | |
5771 | |
5772 ; | |
5773 return 0; | |
5774 } | |
5775 _ACEOF | |
5776 rm -f conftest.$ac_objext | |
5777 if { (ac_try="$ac_compile" | |
5778 case "(($ac_try" in | |
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5780 *) ac_try_echo=$ac_try;; | |
5781 esac | |
5782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5783 $as_echo "$ac_try_echo") >&5 | |
5784 (eval "$ac_compile") 2>conftest.er1 | |
5785 ac_status=$? | |
5786 grep -v '^ *+' conftest.er1 >conftest.err | |
5787 rm -f conftest.er1 | |
5788 cat conftest.err >&5 | |
5789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5790 (exit $ac_status); } && { | |
5791 test -z "$ac_c_werror_flag" || | |
5792 test ! -s conftest.err | |
5793 } && test -s conftest.$ac_objext; then | |
5794 ac_cv_have_decl_fputc_unlocked=yes | |
5795 else | |
5796 $as_echo "$as_me: failed program was:" >&5 | |
5797 sed 's/^/| /' conftest.$ac_ext >&5 | |
5798 | |
5799 ac_cv_have_decl_fputc_unlocked=no | |
5800 fi | |
5801 | |
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5803 fi | |
5804 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5 | |
5805 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; } | |
5806 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then | |
5807 | |
5808 cat >>confdefs.h <<_ACEOF | |
5809 #define HAVE_DECL_FPUTC_UNLOCKED 1 | |
5810 _ACEOF | |
5811 | |
5812 | |
5813 else | |
5814 cat >>confdefs.h <<_ACEOF | |
5815 #define HAVE_DECL_FPUTC_UNLOCKED 0 | |
5816 _ACEOF | |
5817 | |
5818 | |
5819 fi | |
5820 | |
5821 | |
5822 | |
5823 | |
5824 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5 | |
5825 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; } | |
5826 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then | |
5827 $as_echo_n "(cached) " >&6 | |
5828 else | |
5829 cat >conftest.$ac_ext <<_ACEOF | |
5830 /* confdefs.h. */ | |
5831 _ACEOF | |
5832 cat confdefs.h >>conftest.$ac_ext | |
5833 cat >>conftest.$ac_ext <<_ACEOF | |
5834 /* end confdefs.h. */ | |
5835 $ac_includes_default | |
5836 int | |
5837 main () | |
5838 { | |
5839 #ifndef fputs_unlocked | |
5840 (void) fputs_unlocked; | |
5841 #endif | |
5842 | |
5843 ; | |
5844 return 0; | |
5845 } | |
5846 _ACEOF | |
5847 rm -f conftest.$ac_objext | |
5848 if { (ac_try="$ac_compile" | |
5849 case "(($ac_try" in | |
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5851 *) ac_try_echo=$ac_try;; | |
5852 esac | |
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5854 $as_echo "$ac_try_echo") >&5 | |
5855 (eval "$ac_compile") 2>conftest.er1 | |
5856 ac_status=$? | |
5857 grep -v '^ *+' conftest.er1 >conftest.err | |
5858 rm -f conftest.er1 | |
5859 cat conftest.err >&5 | |
5860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5861 (exit $ac_status); } && { | |
5862 test -z "$ac_c_werror_flag" || | |
5863 test ! -s conftest.err | |
5864 } && test -s conftest.$ac_objext; then | |
5865 ac_cv_have_decl_fputs_unlocked=yes | |
5866 else | |
5867 $as_echo "$as_me: failed program was:" >&5 | |
5868 sed 's/^/| /' conftest.$ac_ext >&5 | |
5869 | |
5870 ac_cv_have_decl_fputs_unlocked=no | |
5871 fi | |
5872 | |
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5874 fi | |
5875 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5 | |
5876 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; } | |
5877 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then | |
5878 | |
5879 cat >>confdefs.h <<_ACEOF | |
5880 #define HAVE_DECL_FPUTS_UNLOCKED 1 | |
5881 _ACEOF | |
5882 | |
5883 | |
5884 else | |
5885 cat >>confdefs.h <<_ACEOF | |
5886 #define HAVE_DECL_FPUTS_UNLOCKED 0 | |
5887 _ACEOF | |
5888 | |
5889 | |
5890 fi | |
5891 | |
5892 | |
5893 | |
5894 | |
5895 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5 | |
5896 $as_echo_n "checking whether fread_unlocked is declared... " >&6; } | |
5897 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then | |
5898 $as_echo_n "(cached) " >&6 | |
5899 else | |
5900 cat >conftest.$ac_ext <<_ACEOF | |
5901 /* confdefs.h. */ | |
5902 _ACEOF | |
5903 cat confdefs.h >>conftest.$ac_ext | |
5904 cat >>conftest.$ac_ext <<_ACEOF | |
5905 /* end confdefs.h. */ | |
5906 $ac_includes_default | |
5907 int | |
5908 main () | |
5909 { | |
5910 #ifndef fread_unlocked | |
5911 (void) fread_unlocked; | |
5912 #endif | |
5913 | |
5914 ; | |
5915 return 0; | |
5916 } | |
5917 _ACEOF | |
5918 rm -f conftest.$ac_objext | |
5919 if { (ac_try="$ac_compile" | |
5920 case "(($ac_try" in | |
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5922 *) ac_try_echo=$ac_try;; | |
5923 esac | |
5924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5925 $as_echo "$ac_try_echo") >&5 | |
5926 (eval "$ac_compile") 2>conftest.er1 | |
5927 ac_status=$? | |
5928 grep -v '^ *+' conftest.er1 >conftest.err | |
5929 rm -f conftest.er1 | |
5930 cat conftest.err >&5 | |
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5932 (exit $ac_status); } && { | |
5933 test -z "$ac_c_werror_flag" || | |
5934 test ! -s conftest.err | |
5935 } && test -s conftest.$ac_objext; then | |
5936 ac_cv_have_decl_fread_unlocked=yes | |
5937 else | |
5938 $as_echo "$as_me: failed program was:" >&5 | |
5939 sed 's/^/| /' conftest.$ac_ext >&5 | |
5940 | |
5941 ac_cv_have_decl_fread_unlocked=no | |
5942 fi | |
5943 | |
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5945 fi | |
5946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5 | |
5947 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; } | |
5948 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then | |
5949 | |
5950 cat >>confdefs.h <<_ACEOF | |
5951 #define HAVE_DECL_FREAD_UNLOCKED 1 | |
5952 _ACEOF | |
5953 | |
5954 | |
5955 else | |
5956 cat >>confdefs.h <<_ACEOF | |
5957 #define HAVE_DECL_FREAD_UNLOCKED 0 | |
5958 _ACEOF | |
5959 | |
5960 | |
5961 fi | |
5962 | |
5963 | |
5964 | |
5965 | |
5966 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5 | |
5967 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; } | |
5968 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then | |
5969 $as_echo_n "(cached) " >&6 | |
5970 else | |
5971 cat >conftest.$ac_ext <<_ACEOF | |
5972 /* confdefs.h. */ | |
5973 _ACEOF | |
5974 cat confdefs.h >>conftest.$ac_ext | |
5975 cat >>conftest.$ac_ext <<_ACEOF | |
5976 /* end confdefs.h. */ | |
5977 $ac_includes_default | |
5978 int | |
5979 main () | |
5980 { | |
5981 #ifndef fwrite_unlocked | |
5982 (void) fwrite_unlocked; | |
5983 #endif | |
5984 | |
5985 ; | |
5986 return 0; | |
5987 } | |
5988 _ACEOF | |
5989 rm -f conftest.$ac_objext | |
5990 if { (ac_try="$ac_compile" | |
5991 case "(($ac_try" in | |
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5993 *) ac_try_echo=$ac_try;; | |
5994 esac | |
5995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5996 $as_echo "$ac_try_echo") >&5 | |
5997 (eval "$ac_compile") 2>conftest.er1 | |
5998 ac_status=$? | |
5999 grep -v '^ *+' conftest.er1 >conftest.err | |
6000 rm -f conftest.er1 | |
6001 cat conftest.err >&5 | |
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6003 (exit $ac_status); } && { | |
6004 test -z "$ac_c_werror_flag" || | |
6005 test ! -s conftest.err | |
6006 } && test -s conftest.$ac_objext; then | |
6007 ac_cv_have_decl_fwrite_unlocked=yes | |
6008 else | |
6009 $as_echo "$as_me: failed program was:" >&5 | |
6010 sed 's/^/| /' conftest.$ac_ext >&5 | |
6011 | |
6012 ac_cv_have_decl_fwrite_unlocked=no | |
6013 fi | |
6014 | |
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6016 fi | |
6017 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5 | |
6018 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; } | |
6019 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then | |
6020 | |
6021 cat >>confdefs.h <<_ACEOF | |
6022 #define HAVE_DECL_FWRITE_UNLOCKED 1 | |
6023 _ACEOF | |
6024 | |
6025 | |
6026 else | |
6027 cat >>confdefs.h <<_ACEOF | |
6028 #define HAVE_DECL_FWRITE_UNLOCKED 0 | |
6029 _ACEOF | |
6030 | |
6031 | |
6032 fi | |
6033 | |
6034 | |
6035 | |
6036 | |
6037 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 | |
6038 $as_echo_n "checking whether getc_unlocked is declared... " >&6; } | |
6039 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then | |
6040 $as_echo_n "(cached) " >&6 | |
6041 else | |
6042 cat >conftest.$ac_ext <<_ACEOF | |
6043 /* confdefs.h. */ | |
6044 _ACEOF | |
6045 cat confdefs.h >>conftest.$ac_ext | |
6046 cat >>conftest.$ac_ext <<_ACEOF | |
6047 /* end confdefs.h. */ | |
6048 $ac_includes_default | |
6049 int | |
6050 main () | |
6051 { | |
6052 #ifndef getc_unlocked | |
6053 (void) getc_unlocked; | |
6054 #endif | |
6055 | |
6056 ; | |
6057 return 0; | |
6058 } | |
6059 _ACEOF | |
6060 rm -f conftest.$ac_objext | |
6061 if { (ac_try="$ac_compile" | |
6062 case "(($ac_try" in | |
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6064 *) ac_try_echo=$ac_try;; | |
6065 esac | |
6066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6067 $as_echo "$ac_try_echo") >&5 | |
6068 (eval "$ac_compile") 2>conftest.er1 | |
6069 ac_status=$? | |
6070 grep -v '^ *+' conftest.er1 >conftest.err | |
6071 rm -f conftest.er1 | |
6072 cat conftest.err >&5 | |
6073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6074 (exit $ac_status); } && { | |
6075 test -z "$ac_c_werror_flag" || | |
6076 test ! -s conftest.err | |
6077 } && test -s conftest.$ac_objext; then | |
6078 ac_cv_have_decl_getc_unlocked=yes | |
6079 else | |
6080 $as_echo "$as_me: failed program was:" >&5 | |
6081 sed 's/^/| /' conftest.$ac_ext >&5 | |
6082 | |
6083 ac_cv_have_decl_getc_unlocked=no | |
6084 fi | |
6085 | |
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6087 fi | |
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 | |
6089 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } | |
6090 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then | |
6091 | |
6092 cat >>confdefs.h <<_ACEOF | |
6093 #define HAVE_DECL_GETC_UNLOCKED 1 | |
6094 _ACEOF | |
6095 | |
6096 | |
6097 else | |
6098 cat >>confdefs.h <<_ACEOF | |
6099 #define HAVE_DECL_GETC_UNLOCKED 0 | |
6100 _ACEOF | |
6101 | |
6102 | |
6103 fi | |
6104 | |
6105 | |
6106 | |
6107 | |
6108 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5 | |
6109 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; } | |
6110 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then | |
6111 $as_echo_n "(cached) " >&6 | |
6112 else | |
6113 cat >conftest.$ac_ext <<_ACEOF | |
6114 /* confdefs.h. */ | |
6115 _ACEOF | |
6116 cat confdefs.h >>conftest.$ac_ext | |
6117 cat >>conftest.$ac_ext <<_ACEOF | |
6118 /* end confdefs.h. */ | |
6119 $ac_includes_default | |
6120 int | |
6121 main () | |
6122 { | |
6123 #ifndef getchar_unlocked | |
6124 (void) getchar_unlocked; | |
6125 #endif | |
6126 | |
6127 ; | |
6128 return 0; | |
6129 } | |
6130 _ACEOF | |
6131 rm -f conftest.$ac_objext | |
6132 if { (ac_try="$ac_compile" | |
6133 case "(($ac_try" in | |
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6135 *) ac_try_echo=$ac_try;; | |
6136 esac | |
6137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6138 $as_echo "$ac_try_echo") >&5 | |
6139 (eval "$ac_compile") 2>conftest.er1 | |
6140 ac_status=$? | |
6141 grep -v '^ *+' conftest.er1 >conftest.err | |
6142 rm -f conftest.er1 | |
6143 cat conftest.err >&5 | |
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6145 (exit $ac_status); } && { | |
6146 test -z "$ac_c_werror_flag" || | |
6147 test ! -s conftest.err | |
6148 } && test -s conftest.$ac_objext; then | |
6149 ac_cv_have_decl_getchar_unlocked=yes | |
6150 else | |
6151 $as_echo "$as_me: failed program was:" >&5 | |
6152 sed 's/^/| /' conftest.$ac_ext >&5 | |
6153 | |
6154 ac_cv_have_decl_getchar_unlocked=no | |
6155 fi | |
6156 | |
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6158 fi | |
6159 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5 | |
6160 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; } | |
6161 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then | |
6162 | |
6163 cat >>confdefs.h <<_ACEOF | |
6164 #define HAVE_DECL_GETCHAR_UNLOCKED 1 | |
6165 _ACEOF | |
6166 | |
6167 | |
6168 else | |
6169 cat >>confdefs.h <<_ACEOF | |
6170 #define HAVE_DECL_GETCHAR_UNLOCKED 0 | |
6171 _ACEOF | |
6172 | |
6173 | |
6174 fi | |
6175 | |
6176 | |
6177 | |
6178 | |
6179 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5 | |
6180 $as_echo_n "checking whether putc_unlocked is declared... " >&6; } | |
6181 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then | |
6182 $as_echo_n "(cached) " >&6 | |
6183 else | |
6184 cat >conftest.$ac_ext <<_ACEOF | |
6185 /* confdefs.h. */ | |
6186 _ACEOF | |
6187 cat confdefs.h >>conftest.$ac_ext | |
6188 cat >>conftest.$ac_ext <<_ACEOF | |
6189 /* end confdefs.h. */ | |
6190 $ac_includes_default | |
6191 int | |
6192 main () | |
6193 { | |
6194 #ifndef putc_unlocked | |
6195 (void) putc_unlocked; | |
6196 #endif | |
6197 | |
6198 ; | |
6199 return 0; | |
6200 } | |
6201 _ACEOF | |
6202 rm -f conftest.$ac_objext | |
6203 if { (ac_try="$ac_compile" | |
6204 case "(($ac_try" in | |
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6206 *) ac_try_echo=$ac_try;; | |
6207 esac | |
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6209 $as_echo "$ac_try_echo") >&5 | |
6210 (eval "$ac_compile") 2>conftest.er1 | |
6211 ac_status=$? | |
6212 grep -v '^ *+' conftest.er1 >conftest.err | |
6213 rm -f conftest.er1 | |
6214 cat conftest.err >&5 | |
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6216 (exit $ac_status); } && { | |
6217 test -z "$ac_c_werror_flag" || | |
6218 test ! -s conftest.err | |
6219 } && test -s conftest.$ac_objext; then | |
6220 ac_cv_have_decl_putc_unlocked=yes | |
6221 else | |
6222 $as_echo "$as_me: failed program was:" >&5 | |
6223 sed 's/^/| /' conftest.$ac_ext >&5 | |
6224 | |
6225 ac_cv_have_decl_putc_unlocked=no | |
6226 fi | |
6227 | |
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6229 fi | |
6230 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5 | |
6231 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; } | |
6232 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then | |
6233 | |
6234 cat >>confdefs.h <<_ACEOF | |
6235 #define HAVE_DECL_PUTC_UNLOCKED 1 | |
6236 _ACEOF | |
6237 | |
6238 | |
6239 else | |
6240 cat >>confdefs.h <<_ACEOF | |
6241 #define HAVE_DECL_PUTC_UNLOCKED 0 | |
6242 _ACEOF | |
6243 | |
6244 | |
6245 fi | |
6246 | |
6247 | |
6248 | |
6249 | |
6250 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5 | |
6251 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; } | |
6252 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then | |
6253 $as_echo_n "(cached) " >&6 | |
6254 else | |
6255 cat >conftest.$ac_ext <<_ACEOF | |
6256 /* confdefs.h. */ | |
6257 _ACEOF | |
6258 cat confdefs.h >>conftest.$ac_ext | |
6259 cat >>conftest.$ac_ext <<_ACEOF | |
6260 /* end confdefs.h. */ | |
6261 $ac_includes_default | |
6262 int | |
6263 main () | |
6264 { | |
6265 #ifndef putchar_unlocked | |
6266 (void) putchar_unlocked; | |
6267 #endif | |
6268 | |
6269 ; | |
6270 return 0; | |
6271 } | |
6272 _ACEOF | |
6273 rm -f conftest.$ac_objext | |
6274 if { (ac_try="$ac_compile" | |
6275 case "(($ac_try" in | |
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6277 *) ac_try_echo=$ac_try;; | |
6278 esac | |
6279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6280 $as_echo "$ac_try_echo") >&5 | |
6281 (eval "$ac_compile") 2>conftest.er1 | |
6282 ac_status=$? | |
6283 grep -v '^ *+' conftest.er1 >conftest.err | |
6284 rm -f conftest.er1 | |
6285 cat conftest.err >&5 | |
6286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6287 (exit $ac_status); } && { | |
6288 test -z "$ac_c_werror_flag" || | |
6289 test ! -s conftest.err | |
6290 } && test -s conftest.$ac_objext; then | |
6291 ac_cv_have_decl_putchar_unlocked=yes | |
6292 else | |
6293 $as_echo "$as_me: failed program was:" >&5 | |
6294 sed 's/^/| /' conftest.$ac_ext >&5 | |
6295 | |
6296 ac_cv_have_decl_putchar_unlocked=no | |
6297 fi | |
6298 | |
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6300 fi | |
6301 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5 | |
6302 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; } | |
6303 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then | |
6304 | |
6305 cat >>confdefs.h <<_ACEOF | |
6306 #define HAVE_DECL_PUTCHAR_UNLOCKED 1 | |
6307 _ACEOF | |
6308 | |
6309 | |
6310 else | |
6311 cat >>confdefs.h <<_ACEOF | |
6312 #define HAVE_DECL_PUTCHAR_UNLOCKED 0 | |
6313 _ACEOF | |
6314 | |
6315 | |
6316 fi | |
6317 | |
6318 | |
6319 | |
6320 | |
6321 | |
6322 | |
6323 | |
6324 | |
6325 for ac_func in $gl_func_list | |
6326 do | |
6327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6329 $as_echo_n "checking for $ac_func... " >&6; } | |
6330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6331 $as_echo_n "(cached) " >&6 | |
6332 else | |
6333 cat >conftest.$ac_ext <<_ACEOF | |
6334 /* confdefs.h. */ | |
6335 _ACEOF | |
6336 cat confdefs.h >>conftest.$ac_ext | |
6337 cat >>conftest.$ac_ext <<_ACEOF | |
6338 /* end confdefs.h. */ | |
6339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6340 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6341 #define $ac_func innocuous_$ac_func | |
6342 | |
6343 /* System header to define __stub macros and hopefully few prototypes, | |
6344 which can conflict with char $ac_func (); below. | |
6345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6346 <limits.h> exists even on freestanding compilers. */ | |
6347 | |
6348 #ifdef __STDC__ | |
6349 # include <limits.h> | |
6350 #else | |
6351 # include <assert.h> | |
6352 #endif | |
6353 | |
6354 #undef $ac_func | |
6355 | |
6356 /* Override any GCC internal prototype to avoid an error. | |
6357 Use char because int might match the return type of a GCC | |
6358 builtin and then its argument prototype would still apply. */ | |
6359 #ifdef __cplusplus | |
6360 extern "C" | |
6361 #endif | |
6362 char $ac_func (); | |
6363 /* The GNU C library defines this for functions which it implements | |
6364 to always fail with ENOSYS. Some functions are actually named | |
6365 something starting with __ and the normal name is an alias. */ | |
6366 #if defined __stub_$ac_func || defined __stub___$ac_func | |
6367 choke me | |
6368 #endif | |
6369 | |
6370 int | |
6371 main () | |
6372 { | |
6373 return $ac_func (); | |
6374 ; | |
6375 return 0; | |
6376 } | |
6377 _ACEOF | |
6378 rm -f conftest.$ac_objext conftest$ac_exeext | |
6379 if { (ac_try="$ac_link" | |
6380 case "(($ac_try" in | |
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6382 *) ac_try_echo=$ac_try;; | |
6383 esac | |
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6385 $as_echo "$ac_try_echo") >&5 | |
6386 (eval "$ac_link") 2>conftest.er1 | |
6387 ac_status=$? | |
6388 grep -v '^ *+' conftest.er1 >conftest.err | |
6389 rm -f conftest.er1 | |
6390 cat conftest.err >&5 | |
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6392 (exit $ac_status); } && { | |
6393 test -z "$ac_c_werror_flag" || | |
6394 test ! -s conftest.err | |
6395 } && test -s conftest$ac_exeext && { | |
6396 test "$cross_compiling" = yes || | |
6397 $as_test_x conftest$ac_exeext | |
6398 }; then | |
6399 eval "$as_ac_var=yes" | |
6400 else | |
6401 $as_echo "$as_me: failed program was:" >&5 | |
6402 sed 's/^/| /' conftest.$ac_ext >&5 | |
6403 | |
6404 eval "$as_ac_var=no" | |
6405 fi | |
6406 | |
6407 rm -rf conftest.dSYM | |
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6409 conftest$ac_exeext conftest.$ac_ext | |
6410 fi | |
6411 ac_res=`eval 'as_val=${'$as_ac_var'} | |
6412 $as_echo "$as_val"'` | |
6413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6414 $as_echo "$ac_res" >&6; } | |
6415 as_val=`eval 'as_val=${'$as_ac_var'} | |
6416 $as_echo "$as_val"'` | |
6417 if test "x$as_val" = x""yes; then | |
6418 cat >>confdefs.h <<_ACEOF | |
6419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6420 _ACEOF | |
6421 | |
6422 fi | |
6423 done | |
6424 | |
6425 | |
6426 | |
6427 | |
6428 | |
6429 | |
6430 | |
6431 | |
6432 | |
6433 | |
6434 | |
6435 | |
6436 | |
6437 | |
6438 | |
6439 | |
6440 | |
6441 for ac_header in $gl_header_list | |
6442 do | |
6443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6446 $as_echo_n "checking for $ac_header... " >&6; } | |
6447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6448 $as_echo_n "(cached) " >&6 | |
6449 fi | |
6450 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6451 $as_echo "$as_val"'` | |
6452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6453 $as_echo "$ac_res" >&6; } | |
6454 else | |
6455 # Is the header compilable? | |
6456 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6457 $as_echo_n "checking $ac_header usability... " >&6; } | |
6458 cat >conftest.$ac_ext <<_ACEOF | |
6459 /* confdefs.h. */ | |
6460 _ACEOF | |
6461 cat confdefs.h >>conftest.$ac_ext | |
6462 cat >>conftest.$ac_ext <<_ACEOF | |
6463 /* end confdefs.h. */ | |
6464 $ac_includes_default | |
6465 #include <$ac_header> | |
6466 _ACEOF | |
6467 rm -f conftest.$ac_objext | |
6468 if { (ac_try="$ac_compile" | |
6469 case "(($ac_try" in | |
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6471 *) ac_try_echo=$ac_try;; | |
6472 esac | |
6473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6474 $as_echo "$ac_try_echo") >&5 | |
6475 (eval "$ac_compile") 2>conftest.er1 | |
6476 ac_status=$? | |
6477 grep -v '^ *+' conftest.er1 >conftest.err | |
6478 rm -f conftest.er1 | |
6479 cat conftest.err >&5 | |
6480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6481 (exit $ac_status); } && { | |
6482 test -z "$ac_c_werror_flag" || | |
6483 test ! -s conftest.err | |
6484 } && test -s conftest.$ac_objext; then | |
6485 ac_header_compiler=yes | |
6486 else | |
6487 $as_echo "$as_me: failed program was:" >&5 | |
6488 sed 's/^/| /' conftest.$ac_ext >&5 | |
6489 | |
6490 ac_header_compiler=no | |
6491 fi | |
6492 | |
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6495 $as_echo "$ac_header_compiler" >&6; } | |
6496 | |
6497 # Is the header present? | |
6498 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6499 $as_echo_n "checking $ac_header presence... " >&6; } | |
6500 cat >conftest.$ac_ext <<_ACEOF | |
6501 /* confdefs.h. */ | |
6502 _ACEOF | |
6503 cat confdefs.h >>conftest.$ac_ext | |
6504 cat >>conftest.$ac_ext <<_ACEOF | |
6505 /* end confdefs.h. */ | |
6506 #include <$ac_header> | |
6507 _ACEOF | |
6508 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6509 case "(($ac_try" in | |
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6511 *) ac_try_echo=$ac_try;; | |
6512 esac | |
6513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6514 $as_echo "$ac_try_echo") >&5 | |
6515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6516 ac_status=$? | |
6517 grep -v '^ *+' conftest.er1 >conftest.err | |
6518 rm -f conftest.er1 | |
6519 cat conftest.err >&5 | |
6520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6521 (exit $ac_status); } >/dev/null && { | |
6522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6523 test ! -s conftest.err | |
6524 }; then | |
6525 ac_header_preproc=yes | |
6526 else | |
6527 $as_echo "$as_me: failed program was:" >&5 | |
6528 sed 's/^/| /' conftest.$ac_ext >&5 | |
6529 | |
6530 ac_header_preproc=no | |
6531 fi | |
6532 | |
6533 rm -f conftest.err conftest.$ac_ext | |
6534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6535 $as_echo "$ac_header_preproc" >&6; } | |
6536 | |
6537 # So? What about this header? | |
6538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6539 yes:no: ) | |
6540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6541 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6544 ac_header_preproc=yes | |
6545 ;; | |
6546 no:yes:* ) | |
6547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6548 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6550 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6552 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6554 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6556 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6558 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6559 ( cat <<\_ASBOX | |
6560 ## -------------------------- ## | |
6561 ## Report this to lost@l-w.ca ## | |
6562 ## -------------------------- ## | |
6563 _ASBOX | |
6564 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
6565 ;; | |
6566 esac | |
6567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6568 $as_echo_n "checking for $ac_header... " >&6; } | |
6569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6570 $as_echo_n "(cached) " >&6 | |
6571 else | |
6572 eval "$as_ac_Header=\$ac_header_preproc" | |
6573 fi | |
6574 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6575 $as_echo "$as_val"'` | |
6576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6577 $as_echo "$ac_res" >&6; } | |
6578 | |
6579 fi | |
6580 as_val=`eval 'as_val=${'$as_ac_Header'} | |
6581 $as_echo "$as_val"'` | |
6582 if test "x$as_val" = x""yes; then | |
6583 cat >>confdefs.h <<_ACEOF | |
6584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6585 _ACEOF | |
6586 | |
6587 fi | |
6588 | |
6589 done | |
6590 | |
6591 | |
6592 | |
6593 | |
6594 | |
6595 | |
6596 | |
6597 | |
6598 | |
6599 | |
6600 | |
6601 | |
6602 | |
6603 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5 | |
6604 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; } | |
6605 if test "${ac_cv_win_or_dos+set}" = set; then | |
6606 $as_echo_n "(cached) " >&6 | |
6607 else | |
6608 | |
6609 cat >conftest.$ac_ext <<_ACEOF | |
6610 /* confdefs.h. */ | |
6611 _ACEOF | |
6612 cat confdefs.h >>conftest.$ac_ext | |
6613 cat >>conftest.$ac_ext <<_ACEOF | |
6614 /* end confdefs.h. */ | |
6615 | |
6616 int | |
6617 main () | |
6618 { | |
6619 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ | |
6620 neither MSDOS nor Windows | |
6621 #endif | |
6622 ; | |
6623 return 0; | |
6624 } | |
6625 _ACEOF | |
6626 rm -f conftest.$ac_objext | |
6627 if { (ac_try="$ac_compile" | |
6628 case "(($ac_try" in | |
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6630 *) ac_try_echo=$ac_try;; | |
6631 esac | |
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6633 $as_echo "$ac_try_echo") >&5 | |
6634 (eval "$ac_compile") 2>conftest.er1 | |
6635 ac_status=$? | |
6636 grep -v '^ *+' conftest.er1 >conftest.err | |
6637 rm -f conftest.er1 | |
6638 cat conftest.err >&5 | |
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6640 (exit $ac_status); } && { | |
6641 test -z "$ac_c_werror_flag" || | |
6642 test ! -s conftest.err | |
6643 } && test -s conftest.$ac_objext; then | |
6644 ac_cv_win_or_dos=yes | |
6645 else | |
6646 $as_echo "$as_me: failed program was:" >&5 | |
6647 sed 's/^/| /' conftest.$ac_ext >&5 | |
6648 | |
6649 ac_cv_win_or_dos=no | |
6650 fi | |
6651 | |
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6653 | |
6654 fi | |
6655 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5 | |
6656 $as_echo "$ac_cv_win_or_dos" >&6; } | |
6657 | |
6658 if test x"$ac_cv_win_or_dos" = xyes; then | |
6659 ac_fs_accepts_drive_letter_prefix=1 | |
6660 ac_fs_backslash_is_file_name_separator=1 | |
6661 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5 | |
6662 $as_echo_n "checking whether drive letter can start relative path... " >&6; } | |
6663 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then | |
6664 $as_echo_n "(cached) " >&6 | |
6665 else | |
6666 | |
6667 cat >conftest.$ac_ext <<_ACEOF | |
6668 /* confdefs.h. */ | |
6669 _ACEOF | |
6670 cat confdefs.h >>conftest.$ac_ext | |
6671 cat >>conftest.$ac_ext <<_ACEOF | |
6672 /* end confdefs.h. */ | |
6673 | |
6674 int | |
6675 main () | |
6676 { | |
6677 #if defined __CYGWIN__ | |
6678 drive letters are always absolute | |
6679 #endif | |
6680 ; | |
6681 return 0; | |
6682 } | |
6683 _ACEOF | |
6684 rm -f conftest.$ac_objext | |
6685 if { (ac_try="$ac_compile" | |
6686 case "(($ac_try" in | |
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6688 *) ac_try_echo=$ac_try;; | |
6689 esac | |
6690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6691 $as_echo "$ac_try_echo") >&5 | |
6692 (eval "$ac_compile") 2>conftest.er1 | |
6693 ac_status=$? | |
6694 grep -v '^ *+' conftest.er1 >conftest.err | |
6695 rm -f conftest.er1 | |
6696 cat conftest.err >&5 | |
6697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6698 (exit $ac_status); } && { | |
6699 test -z "$ac_c_werror_flag" || | |
6700 test ! -s conftest.err | |
6701 } && test -s conftest.$ac_objext; then | |
6702 ac_cv_drive_letter_can_be_relative=yes | |
6703 else | |
6704 $as_echo "$as_me: failed program was:" >&5 | |
6705 sed 's/^/| /' conftest.$ac_ext >&5 | |
6706 | |
6707 ac_cv_drive_letter_can_be_relative=no | |
6708 fi | |
6709 | |
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6711 | |
6712 fi | |
6713 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5 | |
6714 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; } | |
6715 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then | |
6716 ac_fs_drive_letter_can_be_relative=1 | |
6717 else | |
6718 ac_fs_drive_letter_can_be_relative=0 | |
6719 fi | |
6720 else | |
6721 ac_fs_accepts_drive_letter_prefix=0 | |
6722 ac_fs_backslash_is_file_name_separator=0 | |
6723 ac_fs_drive_letter_can_be_relative=0 | |
6724 fi | |
6725 | |
6726 | |
6727 cat >>confdefs.h <<_ACEOF | |
6728 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix | |
6729 _ACEOF | |
6730 | |
6731 | |
6732 | |
6733 | |
6734 | |
6735 | |
6736 cat >>confdefs.h <<_ACEOF | |
6737 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator | |
6738 _ACEOF | |
6739 | |
6740 | |
6741 | |
6742 cat >>confdefs.h <<_ACEOF | |
6743 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative | |
6744 _ACEOF | |
6745 | |
6746 | |
6747 | |
6748 | |
6749 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5 | |
6750 $as_echo_n "checking whether // is distinct from /... " >&6; } | |
6751 if test "${gl_cv_double_slash_root+set}" = set; then | |
6752 $as_echo_n "(cached) " >&6 | |
6753 else | |
6754 if test x"$cross_compiling" = xyes ; then | |
6755 # When cross-compiling, there is no way to tell whether // is special | |
6756 # short of a list of hosts. However, the only known hosts to date | |
6757 # that have a distinct // are Apollo DomainOS (too old to port to), | |
6758 # Cygwin, and z/OS. If anyone knows of another system for which // has | |
6759 # special semantics and is distinct from /, please report it to | |
6760 # <bug-gnulib@gnu.org>. | |
6761 case $host in | |
6762 *-cygwin | i370-ibm-openedition) | |
6763 gl_cv_double_slash_root=yes ;; | |
6764 *) | |
6765 # Be optimistic and assume that / and // are the same when we | |
6766 # don't know. | |
6767 gl_cv_double_slash_root='unknown, assuming no' ;; | |
6768 esac | |
6769 else | |
6770 set x `ls -di / // 2>/dev/null` | |
6771 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then | |
6772 gl_cv_double_slash_root=no | |
6773 else | |
6774 gl_cv_double_slash_root=yes | |
6775 fi | |
6776 fi | |
6777 fi | |
6778 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5 | |
6779 $as_echo "$gl_cv_double_slash_root" >&6; } | |
6780 if test "$gl_cv_double_slash_root" = yes; then | |
6781 | |
6782 cat >>confdefs.h <<\_ACEOF | |
6783 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1 | |
6784 _ACEOF | |
6785 | |
6786 fi | |
6787 | |
6788 | |
6789 | |
6790 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 | |
6791 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } | |
6792 if test "${gl_cv_have_include_next+set}" = set; then | |
6793 $as_echo_n "(cached) " >&6 | |
6794 else | |
6795 rm -rf conftestd1a conftestd1b conftestd2 | |
6796 mkdir conftestd1a conftestd1b conftestd2 | |
6797 cat <<EOF > conftestd1a/conftest.h | |
6798 #define DEFINED_IN_CONFTESTD1 | |
6799 #include_next <conftest.h> | |
6800 #ifdef DEFINED_IN_CONFTESTD2 | |
6801 int foo; | |
6802 #else | |
6803 #error "include_next doesn't work" | |
6804 #endif | |
6805 EOF | |
6806 cat <<EOF > conftestd1b/conftest.h | |
6807 #define DEFINED_IN_CONFTESTD1 | |
6808 #include <stdio.h> | |
6809 #include_next <conftest.h> | |
6810 #ifdef DEFINED_IN_CONFTESTD2 | |
6811 int foo; | |
6812 #else | |
6813 #error "include_next doesn't work" | |
6814 #endif | |
6815 EOF | |
6816 cat <<EOF > conftestd2/conftest.h | |
6817 #ifndef DEFINED_IN_CONFTESTD1 | |
6818 #error "include_next test doesn't work" | |
6819 #endif | |
6820 #define DEFINED_IN_CONFTESTD2 | |
6821 EOF | |
6822 gl_save_CPPFLAGS="$CPPFLAGS" | |
6823 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" | |
6824 cat >conftest.$ac_ext <<_ACEOF | |
6825 #include <conftest.h> | |
6826 _ACEOF | |
6827 rm -f conftest.$ac_objext | |
6828 if { (ac_try="$ac_compile" | |
6829 case "(($ac_try" in | |
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6831 *) ac_try_echo=$ac_try;; | |
6832 esac | |
6833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6834 $as_echo "$ac_try_echo") >&5 | |
6835 (eval "$ac_compile") 2>conftest.er1 | |
6836 ac_status=$? | |
6837 grep -v '^ *+' conftest.er1 >conftest.err | |
6838 rm -f conftest.er1 | |
6839 cat conftest.err >&5 | |
6840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6841 (exit $ac_status); } && { | |
6842 test -z "$ac_c_werror_flag" || | |
6843 test ! -s conftest.err | |
6844 } && test -s conftest.$ac_objext; then | |
6845 gl_cv_have_include_next=yes | |
6846 else | |
6847 $as_echo "$as_me: failed program was:" >&5 | |
6848 sed 's/^/| /' conftest.$ac_ext >&5 | |
6849 | |
6850 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" | |
6851 cat >conftest.$ac_ext <<_ACEOF | |
6852 #include <conftest.h> | |
6853 _ACEOF | |
6854 rm -f conftest.$ac_objext | |
6855 if { (ac_try="$ac_compile" | |
6856 case "(($ac_try" in | |
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6858 *) ac_try_echo=$ac_try;; | |
6859 esac | |
6860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6861 $as_echo "$ac_try_echo") >&5 | |
6862 (eval "$ac_compile") 2>conftest.er1 | |
6863 ac_status=$? | |
6864 grep -v '^ *+' conftest.er1 >conftest.err | |
6865 rm -f conftest.er1 | |
6866 cat conftest.err >&5 | |
6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6868 (exit $ac_status); } && { | |
6869 test -z "$ac_c_werror_flag" || | |
6870 test ! -s conftest.err | |
6871 } && test -s conftest.$ac_objext; then | |
6872 gl_cv_have_include_next=buggy | |
6873 else | |
6874 $as_echo "$as_me: failed program was:" >&5 | |
6875 sed 's/^/| /' conftest.$ac_ext >&5 | |
6876 | |
6877 gl_cv_have_include_next=no | |
6878 fi | |
6879 | |
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6881 | |
6882 fi | |
6883 | |
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6885 CPPFLAGS="$gl_save_CPPFLAGS" | |
6886 rm -rf conftestd1a conftestd1b conftestd2 | |
6887 | |
6888 fi | |
6889 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 | |
6890 $as_echo "$gl_cv_have_include_next" >&6; } | |
6891 PRAGMA_SYSTEM_HEADER= | |
6892 if test $gl_cv_have_include_next = yes; then | |
6893 INCLUDE_NEXT=include_next | |
6894 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | |
6895 if test -n "$GCC"; then | |
6896 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' | |
6897 fi | |
6898 else | |
6899 if test $gl_cv_have_include_next = buggy; then | |
6900 INCLUDE_NEXT=include | |
6901 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | |
6902 else | |
6903 INCLUDE_NEXT=include | |
6904 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include | |
6905 fi | |
6906 fi | |
6907 | |
6908 | |
6909 | |
6910 | |
6911 | |
6912 | |
6913 | |
6914 | |
6915 | |
6916 | |
6917 | |
6918 | |
6919 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5 | |
6920 $as_echo_n "checking for complete errno.h... " >&6; } | |
6921 if test "${gl_cv_header_errno_h_complete+set}" = set; then | |
6922 $as_echo_n "(cached) " >&6 | |
6923 else | |
6924 | |
6925 cat >conftest.$ac_ext <<_ACEOF | |
6926 /* confdefs.h. */ | |
6927 _ACEOF | |
6928 cat confdefs.h >>conftest.$ac_ext | |
6929 cat >>conftest.$ac_ext <<_ACEOF | |
6930 /* end confdefs.h. */ | |
6931 | |
6932 #include <errno.h> | |
6933 #if !defined ENOMSG | |
6934 booboo | |
6935 #endif | |
6936 #if !defined EIDRM | |
6937 booboo | |
6938 #endif | |
6939 #if !defined ENOLINK | |
6940 booboo | |
6941 #endif | |
6942 #if !defined EPROTO | |
6943 booboo | |
6944 #endif | |
6945 #if !defined EMULTIHOP | |
6946 booboo | |
6947 #endif | |
6948 #if !defined EBADMSG | |
6949 booboo | |
6950 #endif | |
6951 #if !defined EOVERFLOW | |
6952 booboo | |
6953 #endif | |
6954 #if !defined ENOTSUP | |
6955 booboo | |
6956 #endif | |
6957 #if !defined ECANCELED | |
6958 booboo | |
6959 #endif | |
6960 | |
6961 _ACEOF | |
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6963 $EGREP "booboo" >/dev/null 2>&1; then | |
6964 gl_cv_header_errno_h_complete=no | |
6965 else | |
6966 gl_cv_header_errno_h_complete=yes | |
6967 fi | |
6968 rm -f conftest* | |
6969 | |
6970 | |
6971 fi | |
6972 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5 | |
6973 $as_echo "$gl_cv_header_errno_h_complete" >&6; } | |
6974 if test $gl_cv_header_errno_h_complete = yes; then | |
6975 ERRNO_H='' | |
6976 else | |
6977 | |
6978 | |
6979 | |
6980 | |
6981 : | |
6982 | |
6983 | |
6984 | |
6985 | |
6986 | |
6987 | |
6988 | |
6989 if test $gl_cv_have_include_next = yes; then | |
6990 gl_cv_next_errno_h='<'errno.h'>' | |
6991 else | |
6992 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5 | |
6993 $as_echo_n "checking absolute name of <errno.h>... " >&6; } | |
6994 if test "${gl_cv_next_errno_h+set}" = set; then | |
6995 $as_echo_n "(cached) " >&6 | |
6996 else | |
6997 | |
6998 if test $ac_cv_header_errno_h = yes; then | |
6999 cat >conftest.$ac_ext <<_ACEOF | |
7000 /* confdefs.h. */ | |
7001 _ACEOF | |
7002 cat confdefs.h >>conftest.$ac_ext | |
7003 cat >>conftest.$ac_ext <<_ACEOF | |
7004 /* end confdefs.h. */ | |
7005 #include <errno.h> | |
7006 | |
7007 _ACEOF | |
7008 case "$host_os" in | |
7009 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
7010 *) gl_absname_cpp="$ac_cpp" ;; | |
7011 esac | |
7012 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
7013 sed -n '\#/errno.h#{ | |
7014 s#.*"\(.*/errno.h\)".*#\1# | |
7015 s#^/[^/]#//&# | |
7016 p | |
7017 q | |
7018 }'`'"' | |
7019 else | |
7020 gl_cv_next_errno_h='<'errno.h'>' | |
7021 fi | |
7022 | |
7023 fi | |
7024 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5 | |
7025 $as_echo "$gl_cv_next_errno_h" >&6; } | |
7026 fi | |
7027 NEXT_ERRNO_H=$gl_cv_next_errno_h | |
7028 | |
7029 | |
7030 | |
7031 ERRNO_H='errno.h' | |
7032 fi | |
7033 | |
7034 | |
7035 if test -n "$ERRNO_H"; then | |
7036 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5 | |
7037 $as_echo_n "checking for EMULTIHOP value... " >&6; } | |
7038 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then | |
7039 $as_echo_n "(cached) " >&6 | |
7040 else | |
7041 | |
7042 cat >conftest.$ac_ext <<_ACEOF | |
7043 /* confdefs.h. */ | |
7044 _ACEOF | |
7045 cat confdefs.h >>conftest.$ac_ext | |
7046 cat >>conftest.$ac_ext <<_ACEOF | |
7047 /* end confdefs.h. */ | |
7048 | |
7049 #include <errno.h> | |
7050 #ifdef EMULTIHOP | |
7051 yes | |
7052 #endif | |
7053 | |
7054 _ACEOF | |
7055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7056 $EGREP "yes" >/dev/null 2>&1; then | |
7057 gl_cv_header_errno_h_EMULTIHOP=yes | |
7058 else | |
7059 gl_cv_header_errno_h_EMULTIHOP=no | |
7060 fi | |
7061 rm -f conftest* | |
7062 | |
7063 if test $gl_cv_header_errno_h_EMULTIHOP = no; then | |
7064 cat >conftest.$ac_ext <<_ACEOF | |
7065 /* confdefs.h. */ | |
7066 _ACEOF | |
7067 cat confdefs.h >>conftest.$ac_ext | |
7068 cat >>conftest.$ac_ext <<_ACEOF | |
7069 /* end confdefs.h. */ | |
7070 | |
7071 #define _XOPEN_SOURCE_EXTENDED 1 | |
7072 #include <errno.h> | |
7073 #ifdef EMULTIHOP | |
7074 yes | |
7075 #endif | |
7076 | |
7077 _ACEOF | |
7078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7079 $EGREP "yes" >/dev/null 2>&1; then | |
7080 gl_cv_header_errno_h_EMULTIHOP=hidden | |
7081 fi | |
7082 rm -f conftest* | |
7083 | |
7084 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then | |
7085 if test "$cross_compiling" = yes; then | |
7086 # Depending upon the size, compute the lo and hi bounds. | |
7087 cat >conftest.$ac_ext <<_ACEOF | |
7088 /* confdefs.h. */ | |
7089 _ACEOF | |
7090 cat confdefs.h >>conftest.$ac_ext | |
7091 cat >>conftest.$ac_ext <<_ACEOF | |
7092 /* end confdefs.h. */ | |
7093 | |
7094 #define _XOPEN_SOURCE_EXTENDED 1 | |
7095 #include <errno.h> | |
7096 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7097 #include <stdio.h> | |
7098 #include <stdlib.h> | |
7099 | |
7100 int | |
7101 main () | |
7102 { | |
7103 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)]; | |
7104 test_array [0] = 0 | |
7105 | |
7106 ; | |
7107 return 0; | |
7108 } | |
7109 _ACEOF | |
7110 rm -f conftest.$ac_objext | |
7111 if { (ac_try="$ac_compile" | |
7112 case "(($ac_try" in | |
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7114 *) ac_try_echo=$ac_try;; | |
7115 esac | |
7116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7117 $as_echo "$ac_try_echo") >&5 | |
7118 (eval "$ac_compile") 2>conftest.er1 | |
7119 ac_status=$? | |
7120 grep -v '^ *+' conftest.er1 >conftest.err | |
7121 rm -f conftest.er1 | |
7122 cat conftest.err >&5 | |
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7124 (exit $ac_status); } && { | |
7125 test -z "$ac_c_werror_flag" || | |
7126 test ! -s conftest.err | |
7127 } && test -s conftest.$ac_objext; then | |
7128 ac_lo=0 ac_mid=0 | |
7129 while :; do | |
7130 cat >conftest.$ac_ext <<_ACEOF | |
7131 /* confdefs.h. */ | |
7132 _ACEOF | |
7133 cat confdefs.h >>conftest.$ac_ext | |
7134 cat >>conftest.$ac_ext <<_ACEOF | |
7135 /* end confdefs.h. */ | |
7136 | |
7137 #define _XOPEN_SOURCE_EXTENDED 1 | |
7138 #include <errno.h> | |
7139 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7140 #include <stdio.h> | |
7141 #include <stdlib.h> | |
7142 | |
7143 int | |
7144 main () | |
7145 { | |
7146 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)]; | |
7147 test_array [0] = 0 | |
7148 | |
7149 ; | |
7150 return 0; | |
7151 } | |
7152 _ACEOF | |
7153 rm -f conftest.$ac_objext | |
7154 if { (ac_try="$ac_compile" | |
7155 case "(($ac_try" in | |
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7157 *) ac_try_echo=$ac_try;; | |
7158 esac | |
7159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7160 $as_echo "$ac_try_echo") >&5 | |
7161 (eval "$ac_compile") 2>conftest.er1 | |
7162 ac_status=$? | |
7163 grep -v '^ *+' conftest.er1 >conftest.err | |
7164 rm -f conftest.er1 | |
7165 cat conftest.err >&5 | |
7166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7167 (exit $ac_status); } && { | |
7168 test -z "$ac_c_werror_flag" || | |
7169 test ! -s conftest.err | |
7170 } && test -s conftest.$ac_objext; then | |
7171 ac_hi=$ac_mid; break | |
7172 else | |
7173 $as_echo "$as_me: failed program was:" >&5 | |
7174 sed 's/^/| /' conftest.$ac_ext >&5 | |
7175 | |
7176 ac_lo=`expr $ac_mid + 1` | |
7177 if test $ac_lo -le $ac_mid; then | |
7178 ac_lo= ac_hi= | |
7179 break | |
7180 fi | |
7181 ac_mid=`expr 2 '*' $ac_mid + 1` | |
7182 fi | |
7183 | |
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7185 done | |
7186 else | |
7187 $as_echo "$as_me: failed program was:" >&5 | |
7188 sed 's/^/| /' conftest.$ac_ext >&5 | |
7189 | |
7190 cat >conftest.$ac_ext <<_ACEOF | |
7191 /* confdefs.h. */ | |
7192 _ACEOF | |
7193 cat confdefs.h >>conftest.$ac_ext | |
7194 cat >>conftest.$ac_ext <<_ACEOF | |
7195 /* end confdefs.h. */ | |
7196 | |
7197 #define _XOPEN_SOURCE_EXTENDED 1 | |
7198 #include <errno.h> | |
7199 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7200 #include <stdio.h> | |
7201 #include <stdlib.h> | |
7202 | |
7203 int | |
7204 main () | |
7205 { | |
7206 static int test_array [1 - 2 * !((EMULTIHOP) < 0)]; | |
7207 test_array [0] = 0 | |
7208 | |
7209 ; | |
7210 return 0; | |
7211 } | |
7212 _ACEOF | |
7213 rm -f conftest.$ac_objext | |
7214 if { (ac_try="$ac_compile" | |
7215 case "(($ac_try" in | |
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7217 *) ac_try_echo=$ac_try;; | |
7218 esac | |
7219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7220 $as_echo "$ac_try_echo") >&5 | |
7221 (eval "$ac_compile") 2>conftest.er1 | |
7222 ac_status=$? | |
7223 grep -v '^ *+' conftest.er1 >conftest.err | |
7224 rm -f conftest.er1 | |
7225 cat conftest.err >&5 | |
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7227 (exit $ac_status); } && { | |
7228 test -z "$ac_c_werror_flag" || | |
7229 test ! -s conftest.err | |
7230 } && test -s conftest.$ac_objext; then | |
7231 ac_hi=-1 ac_mid=-1 | |
7232 while :; do | |
7233 cat >conftest.$ac_ext <<_ACEOF | |
7234 /* confdefs.h. */ | |
7235 _ACEOF | |
7236 cat confdefs.h >>conftest.$ac_ext | |
7237 cat >>conftest.$ac_ext <<_ACEOF | |
7238 /* end confdefs.h. */ | |
7239 | |
7240 #define _XOPEN_SOURCE_EXTENDED 1 | |
7241 #include <errno.h> | |
7242 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7243 #include <stdio.h> | |
7244 #include <stdlib.h> | |
7245 | |
7246 int | |
7247 main () | |
7248 { | |
7249 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)]; | |
7250 test_array [0] = 0 | |
7251 | |
7252 ; | |
7253 return 0; | |
7254 } | |
7255 _ACEOF | |
7256 rm -f conftest.$ac_objext | |
7257 if { (ac_try="$ac_compile" | |
7258 case "(($ac_try" in | |
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7260 *) ac_try_echo=$ac_try;; | |
7261 esac | |
7262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7263 $as_echo "$ac_try_echo") >&5 | |
7264 (eval "$ac_compile") 2>conftest.er1 | |
7265 ac_status=$? | |
7266 grep -v '^ *+' conftest.er1 >conftest.err | |
7267 rm -f conftest.er1 | |
7268 cat conftest.err >&5 | |
7269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7270 (exit $ac_status); } && { | |
7271 test -z "$ac_c_werror_flag" || | |
7272 test ! -s conftest.err | |
7273 } && test -s conftest.$ac_objext; then | |
7274 ac_lo=$ac_mid; break | |
7275 else | |
7276 $as_echo "$as_me: failed program was:" >&5 | |
7277 sed 's/^/| /' conftest.$ac_ext >&5 | |
7278 | |
7279 ac_hi=`expr '(' $ac_mid ')' - 1` | |
7280 if test $ac_mid -le $ac_hi; then | |
7281 ac_lo= ac_hi= | |
7282 break | |
7283 fi | |
7284 ac_mid=`expr 2 '*' $ac_mid` | |
7285 fi | |
7286 | |
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7288 done | |
7289 else | |
7290 $as_echo "$as_me: failed program was:" >&5 | |
7291 sed 's/^/| /' conftest.$ac_ext >&5 | |
7292 | |
7293 ac_lo= ac_hi= | |
7294 fi | |
7295 | |
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7297 fi | |
7298 | |
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7300 # Binary search between lo and hi bounds. | |
7301 while test "x$ac_lo" != "x$ac_hi"; do | |
7302 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7303 cat >conftest.$ac_ext <<_ACEOF | |
7304 /* confdefs.h. */ | |
7305 _ACEOF | |
7306 cat confdefs.h >>conftest.$ac_ext | |
7307 cat >>conftest.$ac_ext <<_ACEOF | |
7308 /* end confdefs.h. */ | |
7309 | |
7310 #define _XOPEN_SOURCE_EXTENDED 1 | |
7311 #include <errno.h> | |
7312 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7313 #include <stdio.h> | |
7314 #include <stdlib.h> | |
7315 | |
7316 int | |
7317 main () | |
7318 { | |
7319 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)]; | |
7320 test_array [0] = 0 | |
7321 | |
7322 ; | |
7323 return 0; | |
7324 } | |
7325 _ACEOF | |
7326 rm -f conftest.$ac_objext | |
7327 if { (ac_try="$ac_compile" | |
7328 case "(($ac_try" in | |
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7330 *) ac_try_echo=$ac_try;; | |
7331 esac | |
7332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7333 $as_echo "$ac_try_echo") >&5 | |
7334 (eval "$ac_compile") 2>conftest.er1 | |
7335 ac_status=$? | |
7336 grep -v '^ *+' conftest.er1 >conftest.err | |
7337 rm -f conftest.er1 | |
7338 cat conftest.err >&5 | |
7339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7340 (exit $ac_status); } && { | |
7341 test -z "$ac_c_werror_flag" || | |
7342 test ! -s conftest.err | |
7343 } && test -s conftest.$ac_objext; then | |
7344 ac_hi=$ac_mid | |
7345 else | |
7346 $as_echo "$as_me: failed program was:" >&5 | |
7347 sed 's/^/| /' conftest.$ac_ext >&5 | |
7348 | |
7349 ac_lo=`expr '(' $ac_mid ')' + 1` | |
7350 fi | |
7351 | |
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7353 done | |
7354 case $ac_lo in | |
7355 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;; | |
7356 '') ;; | |
7357 esac | |
7358 else | |
7359 cat >conftest.$ac_ext <<_ACEOF | |
7360 /* confdefs.h. */ | |
7361 _ACEOF | |
7362 cat confdefs.h >>conftest.$ac_ext | |
7363 cat >>conftest.$ac_ext <<_ACEOF | |
7364 /* end confdefs.h. */ | |
7365 | |
7366 #define _XOPEN_SOURCE_EXTENDED 1 | |
7367 #include <errno.h> | |
7368 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7369 #include <stdio.h> | |
7370 #include <stdlib.h> | |
7371 | |
7372 static long int longval () { return EMULTIHOP; } | |
7373 static unsigned long int ulongval () { return EMULTIHOP; } | |
7374 #include <stdio.h> | |
7375 #include <stdlib.h> | |
7376 int | |
7377 main () | |
7378 { | |
7379 | |
7380 FILE *f = fopen ("conftest.val", "w"); | |
7381 if (! f) | |
7382 return 1; | |
7383 if ((EMULTIHOP) < 0) | |
7384 { | |
7385 long int i = longval (); | |
7386 if (i != (EMULTIHOP)) | |
7387 return 1; | |
7388 fprintf (f, "%ld", i); | |
7389 } | |
7390 else | |
7391 { | |
7392 unsigned long int i = ulongval (); | |
7393 if (i != (EMULTIHOP)) | |
7394 return 1; | |
7395 fprintf (f, "%lu", i); | |
7396 } | |
7397 /* Do not output a trailing newline, as this causes \r\n confusion | |
7398 on some platforms. */ | |
7399 return ferror (f) || fclose (f) != 0; | |
7400 | |
7401 ; | |
7402 return 0; | |
7403 } | |
7404 _ACEOF | |
7405 rm -f conftest$ac_exeext | |
7406 if { (ac_try="$ac_link" | |
7407 case "(($ac_try" in | |
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7409 *) ac_try_echo=$ac_try;; | |
7410 esac | |
7411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7412 $as_echo "$ac_try_echo") >&5 | |
7413 (eval "$ac_link") 2>&5 | |
7414 ac_status=$? | |
7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7417 { (case "(($ac_try" in | |
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7419 *) ac_try_echo=$ac_try;; | |
7420 esac | |
7421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7422 $as_echo "$ac_try_echo") >&5 | |
7423 (eval "$ac_try") 2>&5 | |
7424 ac_status=$? | |
7425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7426 (exit $ac_status); }; }; then | |
7427 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val` | |
7428 else | |
7429 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7430 $as_echo "$as_me: failed program was:" >&5 | |
7431 sed 's/^/| /' conftest.$ac_ext >&5 | |
7432 | |
7433 fi | |
7434 rm -rf conftest.dSYM | |
7435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7436 fi | |
7437 rm -f conftest.val | |
7438 fi | |
7439 fi | |
7440 | |
7441 fi | |
7442 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 | |
7443 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } | |
7444 case $gl_cv_header_errno_h_EMULTIHOP in | |
7445 yes | no) | |
7446 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= | |
7447 ;; | |
7448 *) | |
7449 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" | |
7450 ;; | |
7451 esac | |
7452 | |
7453 | |
7454 fi | |
7455 | |
7456 | |
7457 if test -n "$ERRNO_H"; then | |
7458 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5 | |
7459 $as_echo_n "checking for ENOLINK value... " >&6; } | |
7460 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then | |
7461 $as_echo_n "(cached) " >&6 | |
7462 else | |
7463 | |
7464 cat >conftest.$ac_ext <<_ACEOF | |
7465 /* confdefs.h. */ | |
7466 _ACEOF | |
7467 cat confdefs.h >>conftest.$ac_ext | |
7468 cat >>conftest.$ac_ext <<_ACEOF | |
7469 /* end confdefs.h. */ | |
7470 | |
7471 #include <errno.h> | |
7472 #ifdef ENOLINK | |
7473 yes | |
7474 #endif | |
7475 | |
7476 _ACEOF | |
7477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7478 $EGREP "yes" >/dev/null 2>&1; then | |
7479 gl_cv_header_errno_h_ENOLINK=yes | |
7480 else | |
7481 gl_cv_header_errno_h_ENOLINK=no | |
7482 fi | |
7483 rm -f conftest* | |
7484 | |
7485 if test $gl_cv_header_errno_h_ENOLINK = no; then | |
7486 cat >conftest.$ac_ext <<_ACEOF | |
7487 /* confdefs.h. */ | |
7488 _ACEOF | |
7489 cat confdefs.h >>conftest.$ac_ext | |
7490 cat >>conftest.$ac_ext <<_ACEOF | |
7491 /* end confdefs.h. */ | |
7492 | |
7493 #define _XOPEN_SOURCE_EXTENDED 1 | |
7494 #include <errno.h> | |
7495 #ifdef ENOLINK | |
7496 yes | |
7497 #endif | |
7498 | |
7499 _ACEOF | |
7500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7501 $EGREP "yes" >/dev/null 2>&1; then | |
7502 gl_cv_header_errno_h_ENOLINK=hidden | |
7503 fi | |
7504 rm -f conftest* | |
7505 | |
7506 if test $gl_cv_header_errno_h_ENOLINK = hidden; then | |
7507 if test "$cross_compiling" = yes; then | |
7508 # Depending upon the size, compute the lo and hi bounds. | |
7509 cat >conftest.$ac_ext <<_ACEOF | |
7510 /* confdefs.h. */ | |
7511 _ACEOF | |
7512 cat confdefs.h >>conftest.$ac_ext | |
7513 cat >>conftest.$ac_ext <<_ACEOF | |
7514 /* end confdefs.h. */ | |
7515 | |
7516 #define _XOPEN_SOURCE_EXTENDED 1 | |
7517 #include <errno.h> | |
7518 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7519 #include <stdio.h> | |
7520 #include <stdlib.h> | |
7521 | |
7522 int | |
7523 main () | |
7524 { | |
7525 static int test_array [1 - 2 * !((ENOLINK) >= 0)]; | |
7526 test_array [0] = 0 | |
7527 | |
7528 ; | |
7529 return 0; | |
7530 } | |
7531 _ACEOF | |
7532 rm -f conftest.$ac_objext | |
7533 if { (ac_try="$ac_compile" | |
7534 case "(($ac_try" in | |
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7536 *) ac_try_echo=$ac_try;; | |
7537 esac | |
7538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7539 $as_echo "$ac_try_echo") >&5 | |
7540 (eval "$ac_compile") 2>conftest.er1 | |
7541 ac_status=$? | |
7542 grep -v '^ *+' conftest.er1 >conftest.err | |
7543 rm -f conftest.er1 | |
7544 cat conftest.err >&5 | |
7545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7546 (exit $ac_status); } && { | |
7547 test -z "$ac_c_werror_flag" || | |
7548 test ! -s conftest.err | |
7549 } && test -s conftest.$ac_objext; then | |
7550 ac_lo=0 ac_mid=0 | |
7551 while :; do | |
7552 cat >conftest.$ac_ext <<_ACEOF | |
7553 /* confdefs.h. */ | |
7554 _ACEOF | |
7555 cat confdefs.h >>conftest.$ac_ext | |
7556 cat >>conftest.$ac_ext <<_ACEOF | |
7557 /* end confdefs.h. */ | |
7558 | |
7559 #define _XOPEN_SOURCE_EXTENDED 1 | |
7560 #include <errno.h> | |
7561 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7562 #include <stdio.h> | |
7563 #include <stdlib.h> | |
7564 | |
7565 int | |
7566 main () | |
7567 { | |
7568 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)]; | |
7569 test_array [0] = 0 | |
7570 | |
7571 ; | |
7572 return 0; | |
7573 } | |
7574 _ACEOF | |
7575 rm -f conftest.$ac_objext | |
7576 if { (ac_try="$ac_compile" | |
7577 case "(($ac_try" in | |
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7579 *) ac_try_echo=$ac_try;; | |
7580 esac | |
7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7582 $as_echo "$ac_try_echo") >&5 | |
7583 (eval "$ac_compile") 2>conftest.er1 | |
7584 ac_status=$? | |
7585 grep -v '^ *+' conftest.er1 >conftest.err | |
7586 rm -f conftest.er1 | |
7587 cat conftest.err >&5 | |
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7589 (exit $ac_status); } && { | |
7590 test -z "$ac_c_werror_flag" || | |
7591 test ! -s conftest.err | |
7592 } && test -s conftest.$ac_objext; then | |
7593 ac_hi=$ac_mid; break | |
7594 else | |
7595 $as_echo "$as_me: failed program was:" >&5 | |
7596 sed 's/^/| /' conftest.$ac_ext >&5 | |
7597 | |
7598 ac_lo=`expr $ac_mid + 1` | |
7599 if test $ac_lo -le $ac_mid; then | |
7600 ac_lo= ac_hi= | |
7601 break | |
7602 fi | |
7603 ac_mid=`expr 2 '*' $ac_mid + 1` | |
7604 fi | |
7605 | |
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7607 done | |
7608 else | |
7609 $as_echo "$as_me: failed program was:" >&5 | |
7610 sed 's/^/| /' conftest.$ac_ext >&5 | |
7611 | |
7612 cat >conftest.$ac_ext <<_ACEOF | |
7613 /* confdefs.h. */ | |
7614 _ACEOF | |
7615 cat confdefs.h >>conftest.$ac_ext | |
7616 cat >>conftest.$ac_ext <<_ACEOF | |
7617 /* end confdefs.h. */ | |
7618 | |
7619 #define _XOPEN_SOURCE_EXTENDED 1 | |
7620 #include <errno.h> | |
7621 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7622 #include <stdio.h> | |
7623 #include <stdlib.h> | |
7624 | |
7625 int | |
7626 main () | |
7627 { | |
7628 static int test_array [1 - 2 * !((ENOLINK) < 0)]; | |
7629 test_array [0] = 0 | |
7630 | |
7631 ; | |
7632 return 0; | |
7633 } | |
7634 _ACEOF | |
7635 rm -f conftest.$ac_objext | |
7636 if { (ac_try="$ac_compile" | |
7637 case "(($ac_try" in | |
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7639 *) ac_try_echo=$ac_try;; | |
7640 esac | |
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7642 $as_echo "$ac_try_echo") >&5 | |
7643 (eval "$ac_compile") 2>conftest.er1 | |
7644 ac_status=$? | |
7645 grep -v '^ *+' conftest.er1 >conftest.err | |
7646 rm -f conftest.er1 | |
7647 cat conftest.err >&5 | |
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7649 (exit $ac_status); } && { | |
7650 test -z "$ac_c_werror_flag" || | |
7651 test ! -s conftest.err | |
7652 } && test -s conftest.$ac_objext; then | |
7653 ac_hi=-1 ac_mid=-1 | |
7654 while :; do | |
7655 cat >conftest.$ac_ext <<_ACEOF | |
7656 /* confdefs.h. */ | |
7657 _ACEOF | |
7658 cat confdefs.h >>conftest.$ac_ext | |
7659 cat >>conftest.$ac_ext <<_ACEOF | |
7660 /* end confdefs.h. */ | |
7661 | |
7662 #define _XOPEN_SOURCE_EXTENDED 1 | |
7663 #include <errno.h> | |
7664 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7665 #include <stdio.h> | |
7666 #include <stdlib.h> | |
7667 | |
7668 int | |
7669 main () | |
7670 { | |
7671 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)]; | |
7672 test_array [0] = 0 | |
7673 | |
7674 ; | |
7675 return 0; | |
7676 } | |
7677 _ACEOF | |
7678 rm -f conftest.$ac_objext | |
7679 if { (ac_try="$ac_compile" | |
7680 case "(($ac_try" in | |
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7682 *) ac_try_echo=$ac_try;; | |
7683 esac | |
7684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7685 $as_echo "$ac_try_echo") >&5 | |
7686 (eval "$ac_compile") 2>conftest.er1 | |
7687 ac_status=$? | |
7688 grep -v '^ *+' conftest.er1 >conftest.err | |
7689 rm -f conftest.er1 | |
7690 cat conftest.err >&5 | |
7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7692 (exit $ac_status); } && { | |
7693 test -z "$ac_c_werror_flag" || | |
7694 test ! -s conftest.err | |
7695 } && test -s conftest.$ac_objext; then | |
7696 ac_lo=$ac_mid; break | |
7697 else | |
7698 $as_echo "$as_me: failed program was:" >&5 | |
7699 sed 's/^/| /' conftest.$ac_ext >&5 | |
7700 | |
7701 ac_hi=`expr '(' $ac_mid ')' - 1` | |
7702 if test $ac_mid -le $ac_hi; then | |
7703 ac_lo= ac_hi= | |
7704 break | |
7705 fi | |
7706 ac_mid=`expr 2 '*' $ac_mid` | |
7707 fi | |
7708 | |
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7710 done | |
7711 else | |
7712 $as_echo "$as_me: failed program was:" >&5 | |
7713 sed 's/^/| /' conftest.$ac_ext >&5 | |
7714 | |
7715 ac_lo= ac_hi= | |
7716 fi | |
7717 | |
7718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7719 fi | |
7720 | |
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7722 # Binary search between lo and hi bounds. | |
7723 while test "x$ac_lo" != "x$ac_hi"; do | |
7724 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7725 cat >conftest.$ac_ext <<_ACEOF | |
7726 /* confdefs.h. */ | |
7727 _ACEOF | |
7728 cat confdefs.h >>conftest.$ac_ext | |
7729 cat >>conftest.$ac_ext <<_ACEOF | |
7730 /* end confdefs.h. */ | |
7731 | |
7732 #define _XOPEN_SOURCE_EXTENDED 1 | |
7733 #include <errno.h> | |
7734 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7735 #include <stdio.h> | |
7736 #include <stdlib.h> | |
7737 | |
7738 int | |
7739 main () | |
7740 { | |
7741 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)]; | |
7742 test_array [0] = 0 | |
7743 | |
7744 ; | |
7745 return 0; | |
7746 } | |
7747 _ACEOF | |
7748 rm -f conftest.$ac_objext | |
7749 if { (ac_try="$ac_compile" | |
7750 case "(($ac_try" in | |
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7752 *) ac_try_echo=$ac_try;; | |
7753 esac | |
7754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7755 $as_echo "$ac_try_echo") >&5 | |
7756 (eval "$ac_compile") 2>conftest.er1 | |
7757 ac_status=$? | |
7758 grep -v '^ *+' conftest.er1 >conftest.err | |
7759 rm -f conftest.er1 | |
7760 cat conftest.err >&5 | |
7761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7762 (exit $ac_status); } && { | |
7763 test -z "$ac_c_werror_flag" || | |
7764 test ! -s conftest.err | |
7765 } && test -s conftest.$ac_objext; then | |
7766 ac_hi=$ac_mid | |
7767 else | |
7768 $as_echo "$as_me: failed program was:" >&5 | |
7769 sed 's/^/| /' conftest.$ac_ext >&5 | |
7770 | |
7771 ac_lo=`expr '(' $ac_mid ')' + 1` | |
7772 fi | |
7773 | |
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7775 done | |
7776 case $ac_lo in | |
7777 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;; | |
7778 '') ;; | |
7779 esac | |
7780 else | |
7781 cat >conftest.$ac_ext <<_ACEOF | |
7782 /* confdefs.h. */ | |
7783 _ACEOF | |
7784 cat confdefs.h >>conftest.$ac_ext | |
7785 cat >>conftest.$ac_ext <<_ACEOF | |
7786 /* end confdefs.h. */ | |
7787 | |
7788 #define _XOPEN_SOURCE_EXTENDED 1 | |
7789 #include <errno.h> | |
7790 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7791 #include <stdio.h> | |
7792 #include <stdlib.h> | |
7793 | |
7794 static long int longval () { return ENOLINK; } | |
7795 static unsigned long int ulongval () { return ENOLINK; } | |
7796 #include <stdio.h> | |
7797 #include <stdlib.h> | |
7798 int | |
7799 main () | |
7800 { | |
7801 | |
7802 FILE *f = fopen ("conftest.val", "w"); | |
7803 if (! f) | |
7804 return 1; | |
7805 if ((ENOLINK) < 0) | |
7806 { | |
7807 long int i = longval (); | |
7808 if (i != (ENOLINK)) | |
7809 return 1; | |
7810 fprintf (f, "%ld", i); | |
7811 } | |
7812 else | |
7813 { | |
7814 unsigned long int i = ulongval (); | |
7815 if (i != (ENOLINK)) | |
7816 return 1; | |
7817 fprintf (f, "%lu", i); | |
7818 } | |
7819 /* Do not output a trailing newline, as this causes \r\n confusion | |
7820 on some platforms. */ | |
7821 return ferror (f) || fclose (f) != 0; | |
7822 | |
7823 ; | |
7824 return 0; | |
7825 } | |
7826 _ACEOF | |
7827 rm -f conftest$ac_exeext | |
7828 if { (ac_try="$ac_link" | |
7829 case "(($ac_try" in | |
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7831 *) ac_try_echo=$ac_try;; | |
7832 esac | |
7833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7834 $as_echo "$ac_try_echo") >&5 | |
7835 (eval "$ac_link") 2>&5 | |
7836 ac_status=$? | |
7837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7839 { (case "(($ac_try" in | |
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7841 *) ac_try_echo=$ac_try;; | |
7842 esac | |
7843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7844 $as_echo "$ac_try_echo") >&5 | |
7845 (eval "$ac_try") 2>&5 | |
7846 ac_status=$? | |
7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7848 (exit $ac_status); }; }; then | |
7849 gl_cv_header_errno_h_ENOLINK=`cat conftest.val` | |
7850 else | |
7851 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7852 $as_echo "$as_me: failed program was:" >&5 | |
7853 sed 's/^/| /' conftest.$ac_ext >&5 | |
7854 | |
7855 fi | |
7856 rm -rf conftest.dSYM | |
7857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7858 fi | |
7859 rm -f conftest.val | |
7860 fi | |
7861 fi | |
7862 | |
7863 fi | |
7864 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5 | |
7865 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } | |
7866 case $gl_cv_header_errno_h_ENOLINK in | |
7867 yes | no) | |
7868 ENOLINK_HIDDEN=0; ENOLINK_VALUE= | |
7869 ;; | |
7870 *) | |
7871 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" | |
7872 ;; | |
7873 esac | |
7874 | |
7875 | |
7876 fi | |
7877 | |
7878 | |
7879 if test -n "$ERRNO_H"; then | |
7880 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5 | |
7881 $as_echo_n "checking for EOVERFLOW value... " >&6; } | |
7882 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then | |
7883 $as_echo_n "(cached) " >&6 | |
7884 else | |
7885 | |
7886 cat >conftest.$ac_ext <<_ACEOF | |
7887 /* confdefs.h. */ | |
7888 _ACEOF | |
7889 cat confdefs.h >>conftest.$ac_ext | |
7890 cat >>conftest.$ac_ext <<_ACEOF | |
7891 /* end confdefs.h. */ | |
7892 | |
7893 #include <errno.h> | |
7894 #ifdef EOVERFLOW | |
7895 yes | |
7896 #endif | |
7897 | |
7898 _ACEOF | |
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7900 $EGREP "yes" >/dev/null 2>&1; then | |
7901 gl_cv_header_errno_h_EOVERFLOW=yes | |
7902 else | |
7903 gl_cv_header_errno_h_EOVERFLOW=no | |
7904 fi | |
7905 rm -f conftest* | |
7906 | |
7907 if test $gl_cv_header_errno_h_EOVERFLOW = no; then | |
7908 cat >conftest.$ac_ext <<_ACEOF | |
7909 /* confdefs.h. */ | |
7910 _ACEOF | |
7911 cat confdefs.h >>conftest.$ac_ext | |
7912 cat >>conftest.$ac_ext <<_ACEOF | |
7913 /* end confdefs.h. */ | |
7914 | |
7915 #define _XOPEN_SOURCE_EXTENDED 1 | |
7916 #include <errno.h> | |
7917 #ifdef EOVERFLOW | |
7918 yes | |
7919 #endif | |
7920 | |
7921 _ACEOF | |
7922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7923 $EGREP "yes" >/dev/null 2>&1; then | |
7924 gl_cv_header_errno_h_EOVERFLOW=hidden | |
7925 fi | |
7926 rm -f conftest* | |
7927 | |
7928 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then | |
7929 if test "$cross_compiling" = yes; then | |
7930 # Depending upon the size, compute the lo and hi bounds. | |
7931 cat >conftest.$ac_ext <<_ACEOF | |
7932 /* confdefs.h. */ | |
7933 _ACEOF | |
7934 cat confdefs.h >>conftest.$ac_ext | |
7935 cat >>conftest.$ac_ext <<_ACEOF | |
7936 /* end confdefs.h. */ | |
7937 | |
7938 #define _XOPEN_SOURCE_EXTENDED 1 | |
7939 #include <errno.h> | |
7940 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7941 #include <stdio.h> | |
7942 #include <stdlib.h> | |
7943 | |
7944 int | |
7945 main () | |
7946 { | |
7947 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)]; | |
7948 test_array [0] = 0 | |
7949 | |
7950 ; | |
7951 return 0; | |
7952 } | |
7953 _ACEOF | |
7954 rm -f conftest.$ac_objext | |
7955 if { (ac_try="$ac_compile" | |
7956 case "(($ac_try" in | |
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7958 *) ac_try_echo=$ac_try;; | |
7959 esac | |
7960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7961 $as_echo "$ac_try_echo") >&5 | |
7962 (eval "$ac_compile") 2>conftest.er1 | |
7963 ac_status=$? | |
7964 grep -v '^ *+' conftest.er1 >conftest.err | |
7965 rm -f conftest.er1 | |
7966 cat conftest.err >&5 | |
7967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7968 (exit $ac_status); } && { | |
7969 test -z "$ac_c_werror_flag" || | |
7970 test ! -s conftest.err | |
7971 } && test -s conftest.$ac_objext; then | |
7972 ac_lo=0 ac_mid=0 | |
7973 while :; do | |
7974 cat >conftest.$ac_ext <<_ACEOF | |
7975 /* confdefs.h. */ | |
7976 _ACEOF | |
7977 cat confdefs.h >>conftest.$ac_ext | |
7978 cat >>conftest.$ac_ext <<_ACEOF | |
7979 /* end confdefs.h. */ | |
7980 | |
7981 #define _XOPEN_SOURCE_EXTENDED 1 | |
7982 #include <errno.h> | |
7983 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
7984 #include <stdio.h> | |
7985 #include <stdlib.h> | |
7986 | |
7987 int | |
7988 main () | |
7989 { | |
7990 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; | |
7991 test_array [0] = 0 | |
7992 | |
7993 ; | |
7994 return 0; | |
7995 } | |
7996 _ACEOF | |
7997 rm -f conftest.$ac_objext | |
7998 if { (ac_try="$ac_compile" | |
7999 case "(($ac_try" in | |
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8001 *) ac_try_echo=$ac_try;; | |
8002 esac | |
8003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8004 $as_echo "$ac_try_echo") >&5 | |
8005 (eval "$ac_compile") 2>conftest.er1 | |
8006 ac_status=$? | |
8007 grep -v '^ *+' conftest.er1 >conftest.err | |
8008 rm -f conftest.er1 | |
8009 cat conftest.err >&5 | |
8010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8011 (exit $ac_status); } && { | |
8012 test -z "$ac_c_werror_flag" || | |
8013 test ! -s conftest.err | |
8014 } && test -s conftest.$ac_objext; then | |
8015 ac_hi=$ac_mid; break | |
8016 else | |
8017 $as_echo "$as_me: failed program was:" >&5 | |
8018 sed 's/^/| /' conftest.$ac_ext >&5 | |
8019 | |
8020 ac_lo=`expr $ac_mid + 1` | |
8021 if test $ac_lo -le $ac_mid; then | |
8022 ac_lo= ac_hi= | |
8023 break | |
8024 fi | |
8025 ac_mid=`expr 2 '*' $ac_mid + 1` | |
8026 fi | |
8027 | |
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8029 done | |
8030 else | |
8031 $as_echo "$as_me: failed program was:" >&5 | |
8032 sed 's/^/| /' conftest.$ac_ext >&5 | |
8033 | |
8034 cat >conftest.$ac_ext <<_ACEOF | |
8035 /* confdefs.h. */ | |
8036 _ACEOF | |
8037 cat confdefs.h >>conftest.$ac_ext | |
8038 cat >>conftest.$ac_ext <<_ACEOF | |
8039 /* end confdefs.h. */ | |
8040 | |
8041 #define _XOPEN_SOURCE_EXTENDED 1 | |
8042 #include <errno.h> | |
8043 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
8044 #include <stdio.h> | |
8045 #include <stdlib.h> | |
8046 | |
8047 int | |
8048 main () | |
8049 { | |
8050 static int test_array [1 - 2 * !((EOVERFLOW) < 0)]; | |
8051 test_array [0] = 0 | |
8052 | |
8053 ; | |
8054 return 0; | |
8055 } | |
8056 _ACEOF | |
8057 rm -f conftest.$ac_objext | |
8058 if { (ac_try="$ac_compile" | |
8059 case "(($ac_try" in | |
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8061 *) ac_try_echo=$ac_try;; | |
8062 esac | |
8063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8064 $as_echo "$ac_try_echo") >&5 | |
8065 (eval "$ac_compile") 2>conftest.er1 | |
8066 ac_status=$? | |
8067 grep -v '^ *+' conftest.er1 >conftest.err | |
8068 rm -f conftest.er1 | |
8069 cat conftest.err >&5 | |
8070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8071 (exit $ac_status); } && { | |
8072 test -z "$ac_c_werror_flag" || | |
8073 test ! -s conftest.err | |
8074 } && test -s conftest.$ac_objext; then | |
8075 ac_hi=-1 ac_mid=-1 | |
8076 while :; do | |
8077 cat >conftest.$ac_ext <<_ACEOF | |
8078 /* confdefs.h. */ | |
8079 _ACEOF | |
8080 cat confdefs.h >>conftest.$ac_ext | |
8081 cat >>conftest.$ac_ext <<_ACEOF | |
8082 /* end confdefs.h. */ | |
8083 | |
8084 #define _XOPEN_SOURCE_EXTENDED 1 | |
8085 #include <errno.h> | |
8086 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
8087 #include <stdio.h> | |
8088 #include <stdlib.h> | |
8089 | |
8090 int | |
8091 main () | |
8092 { | |
8093 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)]; | |
8094 test_array [0] = 0 | |
8095 | |
8096 ; | |
8097 return 0; | |
8098 } | |
8099 _ACEOF | |
8100 rm -f conftest.$ac_objext | |
8101 if { (ac_try="$ac_compile" | |
8102 case "(($ac_try" in | |
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8104 *) ac_try_echo=$ac_try;; | |
8105 esac | |
8106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8107 $as_echo "$ac_try_echo") >&5 | |
8108 (eval "$ac_compile") 2>conftest.er1 | |
8109 ac_status=$? | |
8110 grep -v '^ *+' conftest.er1 >conftest.err | |
8111 rm -f conftest.er1 | |
8112 cat conftest.err >&5 | |
8113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8114 (exit $ac_status); } && { | |
8115 test -z "$ac_c_werror_flag" || | |
8116 test ! -s conftest.err | |
8117 } && test -s conftest.$ac_objext; then | |
8118 ac_lo=$ac_mid; break | |
8119 else | |
8120 $as_echo "$as_me: failed program was:" >&5 | |
8121 sed 's/^/| /' conftest.$ac_ext >&5 | |
8122 | |
8123 ac_hi=`expr '(' $ac_mid ')' - 1` | |
8124 if test $ac_mid -le $ac_hi; then | |
8125 ac_lo= ac_hi= | |
8126 break | |
8127 fi | |
8128 ac_mid=`expr 2 '*' $ac_mid` | |
8129 fi | |
8130 | |
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8132 done | |
8133 else | |
8134 $as_echo "$as_me: failed program was:" >&5 | |
8135 sed 's/^/| /' conftest.$ac_ext >&5 | |
8136 | |
8137 ac_lo= ac_hi= | |
8138 fi | |
8139 | |
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8141 fi | |
8142 | |
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8144 # Binary search between lo and hi bounds. | |
8145 while test "x$ac_lo" != "x$ac_hi"; do | |
8146 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8147 cat >conftest.$ac_ext <<_ACEOF | |
8148 /* confdefs.h. */ | |
8149 _ACEOF | |
8150 cat confdefs.h >>conftest.$ac_ext | |
8151 cat >>conftest.$ac_ext <<_ACEOF | |
8152 /* end confdefs.h. */ | |
8153 | |
8154 #define _XOPEN_SOURCE_EXTENDED 1 | |
8155 #include <errno.h> | |
8156 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
8157 #include <stdio.h> | |
8158 #include <stdlib.h> | |
8159 | |
8160 int | |
8161 main () | |
8162 { | |
8163 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; | |
8164 test_array [0] = 0 | |
8165 | |
8166 ; | |
8167 return 0; | |
8168 } | |
8169 _ACEOF | |
8170 rm -f conftest.$ac_objext | |
8171 if { (ac_try="$ac_compile" | |
8172 case "(($ac_try" in | |
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8174 *) ac_try_echo=$ac_try;; | |
8175 esac | |
8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8177 $as_echo "$ac_try_echo") >&5 | |
8178 (eval "$ac_compile") 2>conftest.er1 | |
8179 ac_status=$? | |
8180 grep -v '^ *+' conftest.er1 >conftest.err | |
8181 rm -f conftest.er1 | |
8182 cat conftest.err >&5 | |
8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8184 (exit $ac_status); } && { | |
8185 test -z "$ac_c_werror_flag" || | |
8186 test ! -s conftest.err | |
8187 } && test -s conftest.$ac_objext; then | |
8188 ac_hi=$ac_mid | |
8189 else | |
8190 $as_echo "$as_me: failed program was:" >&5 | |
8191 sed 's/^/| /' conftest.$ac_ext >&5 | |
8192 | |
8193 ac_lo=`expr '(' $ac_mid ')' + 1` | |
8194 fi | |
8195 | |
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8197 done | |
8198 case $ac_lo in | |
8199 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;; | |
8200 '') ;; | |
8201 esac | |
8202 else | |
8203 cat >conftest.$ac_ext <<_ACEOF | |
8204 /* confdefs.h. */ | |
8205 _ACEOF | |
8206 cat confdefs.h >>conftest.$ac_ext | |
8207 cat >>conftest.$ac_ext <<_ACEOF | |
8208 /* end confdefs.h. */ | |
8209 | |
8210 #define _XOPEN_SOURCE_EXTENDED 1 | |
8211 #include <errno.h> | |
8212 /* The following two lines are a workaround against an autoconf-2.52 bug. */ | |
8213 #include <stdio.h> | |
8214 #include <stdlib.h> | |
8215 | |
8216 static long int longval () { return EOVERFLOW; } | |
8217 static unsigned long int ulongval () { return EOVERFLOW; } | |
8218 #include <stdio.h> | |
8219 #include <stdlib.h> | |
8220 int | |
8221 main () | |
8222 { | |
8223 | |
8224 FILE *f = fopen ("conftest.val", "w"); | |
8225 if (! f) | |
8226 return 1; | |
8227 if ((EOVERFLOW) < 0) | |
8228 { | |
8229 long int i = longval (); | |
8230 if (i != (EOVERFLOW)) | |
8231 return 1; | |
8232 fprintf (f, "%ld", i); | |
8233 } | |
8234 else | |
8235 { | |
8236 unsigned long int i = ulongval (); | |
8237 if (i != (EOVERFLOW)) | |
8238 return 1; | |
8239 fprintf (f, "%lu", i); | |
8240 } | |
8241 /* Do not output a trailing newline, as this causes \r\n confusion | |
8242 on some platforms. */ | |
8243 return ferror (f) || fclose (f) != 0; | |
8244 | |
8245 ; | |
8246 return 0; | |
8247 } | |
8248 _ACEOF | |
8249 rm -f conftest$ac_exeext | |
8250 if { (ac_try="$ac_link" | |
8251 case "(($ac_try" in | |
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8253 *) ac_try_echo=$ac_try;; | |
8254 esac | |
8255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8256 $as_echo "$ac_try_echo") >&5 | |
8257 (eval "$ac_link") 2>&5 | |
8258 ac_status=$? | |
8259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8261 { (case "(($ac_try" in | |
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8263 *) ac_try_echo=$ac_try;; | |
8264 esac | |
8265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8266 $as_echo "$ac_try_echo") >&5 | |
8267 (eval "$ac_try") 2>&5 | |
8268 ac_status=$? | |
8269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8270 (exit $ac_status); }; }; then | |
8271 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val` | |
8272 else | |
8273 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8274 $as_echo "$as_me: failed program was:" >&5 | |
8275 sed 's/^/| /' conftest.$ac_ext >&5 | |
8276 | |
8277 fi | |
8278 rm -rf conftest.dSYM | |
8279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8280 fi | |
8281 rm -f conftest.val | |
8282 fi | |
8283 fi | |
8284 | |
8285 fi | |
8286 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 | |
8287 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } | |
8288 case $gl_cv_header_errno_h_EOVERFLOW in | |
8289 yes | no) | |
8290 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= | |
8291 ;; | |
8292 *) | |
8293 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" | |
8294 ;; | |
8295 esac | |
8296 | |
8297 | |
8298 fi | |
8299 | |
8300 | |
8301 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 | |
8302 $as_echo_n "checking whether strerror_r is declared... " >&6; } | |
8303 if test "${ac_cv_have_decl_strerror_r+set}" = set; then | |
8304 $as_echo_n "(cached) " >&6 | |
8305 else | |
8306 cat >conftest.$ac_ext <<_ACEOF | |
8307 /* confdefs.h. */ | |
8308 _ACEOF | |
8309 cat confdefs.h >>conftest.$ac_ext | |
8310 cat >>conftest.$ac_ext <<_ACEOF | |
8311 /* end confdefs.h. */ | |
8312 $ac_includes_default | |
8313 int | |
8314 main () | |
8315 { | |
8316 #ifndef strerror_r | |
8317 (void) strerror_r; | |
8318 #endif | |
8319 | |
8320 ; | |
8321 return 0; | |
8322 } | |
8323 _ACEOF | |
8324 rm -f conftest.$ac_objext | |
8325 if { (ac_try="$ac_compile" | |
8326 case "(($ac_try" in | |
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8328 *) ac_try_echo=$ac_try;; | |
8329 esac | |
8330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8331 $as_echo "$ac_try_echo") >&5 | |
8332 (eval "$ac_compile") 2>conftest.er1 | |
8333 ac_status=$? | |
8334 grep -v '^ *+' conftest.er1 >conftest.err | |
8335 rm -f conftest.er1 | |
8336 cat conftest.err >&5 | |
8337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8338 (exit $ac_status); } && { | |
8339 test -z "$ac_c_werror_flag" || | |
8340 test ! -s conftest.err | |
8341 } && test -s conftest.$ac_objext; then | |
8342 ac_cv_have_decl_strerror_r=yes | |
8343 else | |
8344 $as_echo "$as_me: failed program was:" >&5 | |
8345 sed 's/^/| /' conftest.$ac_ext >&5 | |
8346 | |
8347 ac_cv_have_decl_strerror_r=no | |
8348 fi | |
8349 | |
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8351 fi | |
8352 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 | |
8353 $as_echo "$ac_cv_have_decl_strerror_r" >&6; } | |
8354 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then | |
8355 | |
8356 cat >>confdefs.h <<_ACEOF | |
8357 #define HAVE_DECL_STRERROR_R 1 | |
8358 _ACEOF | |
8359 | |
8360 | |
8361 else | |
8362 cat >>confdefs.h <<_ACEOF | |
8363 #define HAVE_DECL_STRERROR_R 0 | |
8364 _ACEOF | |
8365 | |
8366 | |
8367 fi | |
8368 | |
8369 | |
8370 | |
8371 for ac_func in strerror_r | |
8372 do | |
8373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8375 $as_echo_n "checking for $ac_func... " >&6; } | |
8376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8377 $as_echo_n "(cached) " >&6 | |
8378 else | |
8379 cat >conftest.$ac_ext <<_ACEOF | |
8380 /* confdefs.h. */ | |
8381 _ACEOF | |
8382 cat confdefs.h >>conftest.$ac_ext | |
8383 cat >>conftest.$ac_ext <<_ACEOF | |
8384 /* end confdefs.h. */ | |
8385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8386 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8387 #define $ac_func innocuous_$ac_func | |
8388 | |
8389 /* System header to define __stub macros and hopefully few prototypes, | |
8390 which can conflict with char $ac_func (); below. | |
8391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8392 <limits.h> exists even on freestanding compilers. */ | |
8393 | |
8394 #ifdef __STDC__ | |
8395 # include <limits.h> | |
8396 #else | |
8397 # include <assert.h> | |
8398 #endif | |
8399 | |
8400 #undef $ac_func | |
8401 | |
8402 /* Override any GCC internal prototype to avoid an error. | |
8403 Use char because int might match the return type of a GCC | |
8404 builtin and then its argument prototype would still apply. */ | |
8405 #ifdef __cplusplus | |
8406 extern "C" | |
8407 #endif | |
8408 char $ac_func (); | |
8409 /* The GNU C library defines this for functions which it implements | |
8410 to always fail with ENOSYS. Some functions are actually named | |
8411 something starting with __ and the normal name is an alias. */ | |
8412 #if defined __stub_$ac_func || defined __stub___$ac_func | |
8413 choke me | |
8414 #endif | |
8415 | |
8416 int | |
8417 main () | |
8418 { | |
8419 return $ac_func (); | |
8420 ; | |
8421 return 0; | |
8422 } | |
8423 _ACEOF | |
8424 rm -f conftest.$ac_objext conftest$ac_exeext | |
8425 if { (ac_try="$ac_link" | |
8426 case "(($ac_try" in | |
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8428 *) ac_try_echo=$ac_try;; | |
8429 esac | |
8430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8431 $as_echo "$ac_try_echo") >&5 | |
8432 (eval "$ac_link") 2>conftest.er1 | |
8433 ac_status=$? | |
8434 grep -v '^ *+' conftest.er1 >conftest.err | |
8435 rm -f conftest.er1 | |
8436 cat conftest.err >&5 | |
8437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8438 (exit $ac_status); } && { | |
8439 test -z "$ac_c_werror_flag" || | |
8440 test ! -s conftest.err | |
8441 } && test -s conftest$ac_exeext && { | |
8442 test "$cross_compiling" = yes || | |
8443 $as_test_x conftest$ac_exeext | |
8444 }; then | |
8445 eval "$as_ac_var=yes" | |
8446 else | |
8447 $as_echo "$as_me: failed program was:" >&5 | |
8448 sed 's/^/| /' conftest.$ac_ext >&5 | |
8449 | |
8450 eval "$as_ac_var=no" | |
8451 fi | |
8452 | |
8453 rm -rf conftest.dSYM | |
8454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8455 conftest$ac_exeext conftest.$ac_ext | |
8456 fi | |
8457 ac_res=`eval 'as_val=${'$as_ac_var'} | |
8458 $as_echo "$as_val"'` | |
8459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8460 $as_echo "$ac_res" >&6; } | |
8461 as_val=`eval 'as_val=${'$as_ac_var'} | |
8462 $as_echo "$as_val"'` | |
8463 if test "x$as_val" = x""yes; then | |
8464 cat >>confdefs.h <<_ACEOF | |
8465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8466 _ACEOF | |
8467 | |
8468 fi | |
8469 done | |
8470 | |
8471 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 | |
8472 $as_echo_n "checking whether strerror_r returns char *... " >&6; } | |
8473 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then | |
8474 $as_echo_n "(cached) " >&6 | |
8475 else | |
8476 | |
8477 ac_cv_func_strerror_r_char_p=no | |
8478 if test $ac_cv_have_decl_strerror_r = yes; then | |
8479 cat >conftest.$ac_ext <<_ACEOF | |
8480 /* confdefs.h. */ | |
8481 _ACEOF | |
8482 cat confdefs.h >>conftest.$ac_ext | |
8483 cat >>conftest.$ac_ext <<_ACEOF | |
8484 /* end confdefs.h. */ | |
8485 $ac_includes_default | |
8486 int | |
8487 main () | |
8488 { | |
8489 | |
8490 char buf[100]; | |
8491 char x = *strerror_r (0, buf, sizeof buf); | |
8492 char *p = strerror_r (0, buf, sizeof buf); | |
8493 return !p || x; | |
8494 | |
8495 ; | |
8496 return 0; | |
8497 } | |
8498 _ACEOF | |
8499 rm -f conftest.$ac_objext | |
8500 if { (ac_try="$ac_compile" | |
8501 case "(($ac_try" in | |
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8503 *) ac_try_echo=$ac_try;; | |
8504 esac | |
8505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8506 $as_echo "$ac_try_echo") >&5 | |
8507 (eval "$ac_compile") 2>conftest.er1 | |
8508 ac_status=$? | |
8509 grep -v '^ *+' conftest.er1 >conftest.err | |
8510 rm -f conftest.er1 | |
8511 cat conftest.err >&5 | |
8512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8513 (exit $ac_status); } && { | |
8514 test -z "$ac_c_werror_flag" || | |
8515 test ! -s conftest.err | |
8516 } && test -s conftest.$ac_objext; then | |
8517 ac_cv_func_strerror_r_char_p=yes | |
8518 else | |
8519 $as_echo "$as_me: failed program was:" >&5 | |
8520 sed 's/^/| /' conftest.$ac_ext >&5 | |
8521 | |
8522 | |
8523 fi | |
8524 | |
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8526 else | |
8527 # strerror_r is not declared. Choose between | |
8528 # systems that have relatively inaccessible declarations for the | |
8529 # function. BeOS and DEC UNIX 4.0 fall in this category, but the | |
8530 # former has a strerror_r that returns char*, while the latter | |
8531 # has a strerror_r that returns `int'. | |
8532 # This test should segfault on the DEC system. | |
8533 if test "$cross_compiling" = yes; then | |
8534 : | |
8535 else | |
8536 cat >conftest.$ac_ext <<_ACEOF | |
8537 /* confdefs.h. */ | |
8538 _ACEOF | |
8539 cat confdefs.h >>conftest.$ac_ext | |
8540 cat >>conftest.$ac_ext <<_ACEOF | |
8541 /* end confdefs.h. */ | |
8542 $ac_includes_default | |
8543 extern char *strerror_r (); | |
8544 int | |
8545 main () | |
8546 { | |
8547 char buf[100]; | |
8548 char x = *strerror_r (0, buf, sizeof buf); | |
8549 return ! isalpha (x); | |
8550 ; | |
8551 return 0; | |
8552 } | |
8553 _ACEOF | |
8554 rm -f conftest$ac_exeext | |
8555 if { (ac_try="$ac_link" | |
8556 case "(($ac_try" in | |
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8558 *) ac_try_echo=$ac_try;; | |
8559 esac | |
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8561 $as_echo "$ac_try_echo") >&5 | |
8562 (eval "$ac_link") 2>&5 | |
8563 ac_status=$? | |
8564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8566 { (case "(($ac_try" in | |
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8568 *) ac_try_echo=$ac_try;; | |
8569 esac | |
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8571 $as_echo "$ac_try_echo") >&5 | |
8572 (eval "$ac_try") 2>&5 | |
8573 ac_status=$? | |
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8575 (exit $ac_status); }; }; then | |
8576 ac_cv_func_strerror_r_char_p=yes | |
8577 else | |
8578 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8579 $as_echo "$as_me: failed program was:" >&5 | |
8580 sed 's/^/| /' conftest.$ac_ext >&5 | |
8581 | |
8582 fi | |
8583 rm -rf conftest.dSYM | |
8584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8585 fi | |
8586 | |
8587 | |
8588 fi | |
8589 | |
8590 fi | |
8591 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 | |
8592 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } | |
8593 if test $ac_cv_func_strerror_r_char_p = yes; then | |
8594 | |
8595 cat >>confdefs.h <<\_ACEOF | |
8596 #define STRERROR_R_CHAR_P 1 | |
8597 _ACEOF | |
8598 | |
8599 fi | |
8600 | |
8601 | |
8602 | |
8603 | |
8604 | |
8605 | |
8606 | |
8607 | |
8608 if test -z "$GETOPT_H"; then | |
8609 | |
8610 for ac_header in getopt.h | |
8611 do | |
8612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8615 $as_echo_n "checking for $ac_header... " >&6; } | |
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8617 $as_echo_n "(cached) " >&6 | |
8618 fi | |
8619 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8620 $as_echo "$as_val"'` | |
8621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8622 $as_echo "$ac_res" >&6; } | |
8623 else | |
8624 # Is the header compilable? | |
8625 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8626 $as_echo_n "checking $ac_header usability... " >&6; } | |
8627 cat >conftest.$ac_ext <<_ACEOF | |
8628 /* confdefs.h. */ | |
8629 _ACEOF | |
8630 cat confdefs.h >>conftest.$ac_ext | |
8631 cat >>conftest.$ac_ext <<_ACEOF | |
8632 /* end confdefs.h. */ | |
8633 $ac_includes_default | |
8634 #include <$ac_header> | |
8635 _ACEOF | |
8636 rm -f conftest.$ac_objext | |
8637 if { (ac_try="$ac_compile" | |
8638 case "(($ac_try" in | |
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8640 *) ac_try_echo=$ac_try;; | |
8641 esac | |
8642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8643 $as_echo "$ac_try_echo") >&5 | |
8644 (eval "$ac_compile") 2>conftest.er1 | |
8645 ac_status=$? | |
8646 grep -v '^ *+' conftest.er1 >conftest.err | |
8647 rm -f conftest.er1 | |
8648 cat conftest.err >&5 | |
8649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8650 (exit $ac_status); } && { | |
8651 test -z "$ac_c_werror_flag" || | |
8652 test ! -s conftest.err | |
8653 } && test -s conftest.$ac_objext; then | |
8654 ac_header_compiler=yes | |
8655 else | |
8656 $as_echo "$as_me: failed program was:" >&5 | |
8657 sed 's/^/| /' conftest.$ac_ext >&5 | |
8658 | |
8659 ac_header_compiler=no | |
8660 fi | |
8661 | |
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8663 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8664 $as_echo "$ac_header_compiler" >&6; } | |
8665 | |
8666 # Is the header present? | |
8667 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8668 $as_echo_n "checking $ac_header presence... " >&6; } | |
8669 cat >conftest.$ac_ext <<_ACEOF | |
8670 /* confdefs.h. */ | |
8671 _ACEOF | |
8672 cat confdefs.h >>conftest.$ac_ext | |
8673 cat >>conftest.$ac_ext <<_ACEOF | |
8674 /* end confdefs.h. */ | |
8675 #include <$ac_header> | |
8676 _ACEOF | |
8677 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8678 case "(($ac_try" in | |
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8680 *) ac_try_echo=$ac_try;; | |
8681 esac | |
8682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8683 $as_echo "$ac_try_echo") >&5 | |
8684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8685 ac_status=$? | |
8686 grep -v '^ *+' conftest.er1 >conftest.err | |
8687 rm -f conftest.er1 | |
8688 cat conftest.err >&5 | |
8689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8690 (exit $ac_status); } >/dev/null && { | |
8691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8692 test ! -s conftest.err | |
8693 }; then | |
8694 ac_header_preproc=yes | |
8695 else | |
8696 $as_echo "$as_me: failed program was:" >&5 | |
8697 sed 's/^/| /' conftest.$ac_ext >&5 | |
8698 | |
8699 ac_header_preproc=no | |
8700 fi | |
8701 | |
8702 rm -f conftest.err conftest.$ac_ext | |
8703 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8704 $as_echo "$ac_header_preproc" >&6; } | |
8705 | |
8706 # So? What about this header? | |
8707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8708 yes:no: ) | |
8709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8710 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8713 ac_header_preproc=yes | |
8714 ;; | |
8715 no:yes:* ) | |
8716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8717 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8719 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8721 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8723 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8725 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8727 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8728 ( cat <<\_ASBOX | |
8729 ## -------------------------- ## | |
8730 ## Report this to lost@l-w.ca ## | |
8731 ## -------------------------- ## | |
8732 _ASBOX | |
8733 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
8734 ;; | |
8735 esac | |
8736 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8737 $as_echo_n "checking for $ac_header... " >&6; } | |
8738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8739 $as_echo_n "(cached) " >&6 | |
8740 else | |
8741 eval "$as_ac_Header=\$ac_header_preproc" | |
8742 fi | |
8743 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8744 $as_echo "$as_val"'` | |
8745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8746 $as_echo "$ac_res" >&6; } | |
8747 | |
8748 fi | |
8749 as_val=`eval 'as_val=${'$as_ac_Header'} | |
8750 $as_echo "$as_val"'` | |
8751 if test "x$as_val" = x""yes; then | |
8752 cat >>confdefs.h <<_ACEOF | |
8753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8754 _ACEOF | |
8755 | |
8756 else | |
8757 GETOPT_H=getopt.h | |
8758 fi | |
8759 | |
8760 done | |
8761 | |
8762 fi | |
8763 | |
8764 if test -z "$GETOPT_H"; then | |
8765 | |
8766 for ac_func in getopt_long_only | |
8767 do | |
8768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8770 $as_echo_n "checking for $ac_func... " >&6; } | |
8771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8772 $as_echo_n "(cached) " >&6 | |
8773 else | |
8774 cat >conftest.$ac_ext <<_ACEOF | |
8775 /* confdefs.h. */ | |
8776 _ACEOF | |
8777 cat confdefs.h >>conftest.$ac_ext | |
8778 cat >>conftest.$ac_ext <<_ACEOF | |
8779 /* end confdefs.h. */ | |
8780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8781 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8782 #define $ac_func innocuous_$ac_func | |
8783 | |
8784 /* System header to define __stub macros and hopefully few prototypes, | |
8785 which can conflict with char $ac_func (); below. | |
8786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8787 <limits.h> exists even on freestanding compilers. */ | |
8788 | |
8789 #ifdef __STDC__ | |
8790 # include <limits.h> | |
8791 #else | |
8792 # include <assert.h> | |
8793 #endif | |
8794 | |
8795 #undef $ac_func | |
8796 | |
8797 /* Override any GCC internal prototype to avoid an error. | |
8798 Use char because int might match the return type of a GCC | |
8799 builtin and then its argument prototype would still apply. */ | |
8800 #ifdef __cplusplus | |
8801 extern "C" | |
8802 #endif | |
8803 char $ac_func (); | |
8804 /* The GNU C library defines this for functions which it implements | |
8805 to always fail with ENOSYS. Some functions are actually named | |
8806 something starting with __ and the normal name is an alias. */ | |
8807 #if defined __stub_$ac_func || defined __stub___$ac_func | |
8808 choke me | |
8809 #endif | |
8810 | |
8811 int | |
8812 main () | |
8813 { | |
8814 return $ac_func (); | |
8815 ; | |
8816 return 0; | |
8817 } | |
8818 _ACEOF | |
8819 rm -f conftest.$ac_objext conftest$ac_exeext | |
8820 if { (ac_try="$ac_link" | |
8821 case "(($ac_try" in | |
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8823 *) ac_try_echo=$ac_try;; | |
8824 esac | |
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8826 $as_echo "$ac_try_echo") >&5 | |
8827 (eval "$ac_link") 2>conftest.er1 | |
8828 ac_status=$? | |
8829 grep -v '^ *+' conftest.er1 >conftest.err | |
8830 rm -f conftest.er1 | |
8831 cat conftest.err >&5 | |
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8833 (exit $ac_status); } && { | |
8834 test -z "$ac_c_werror_flag" || | |
8835 test ! -s conftest.err | |
8836 } && test -s conftest$ac_exeext && { | |
8837 test "$cross_compiling" = yes || | |
8838 $as_test_x conftest$ac_exeext | |
8839 }; then | |
8840 eval "$as_ac_var=yes" | |
8841 else | |
8842 $as_echo "$as_me: failed program was:" >&5 | |
8843 sed 's/^/| /' conftest.$ac_ext >&5 | |
8844 | |
8845 eval "$as_ac_var=no" | |
8846 fi | |
8847 | |
8848 rm -rf conftest.dSYM | |
8849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8850 conftest$ac_exeext conftest.$ac_ext | |
8851 fi | |
8852 ac_res=`eval 'as_val=${'$as_ac_var'} | |
8853 $as_echo "$as_val"'` | |
8854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8855 $as_echo "$ac_res" >&6; } | |
8856 as_val=`eval 'as_val=${'$as_ac_var'} | |
8857 $as_echo "$as_val"'` | |
8858 if test "x$as_val" = x""yes; then | |
8859 cat >>confdefs.h <<_ACEOF | |
8860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8861 _ACEOF | |
8862 | |
8863 else | |
8864 GETOPT_H=getopt.h | |
8865 fi | |
8866 done | |
8867 | |
8868 fi | |
8869 | |
8870 if test -z "$GETOPT_H"; then | |
8871 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5 | |
8872 $as_echo_n "checking whether optreset is declared... " >&6; } | |
8873 if test "${ac_cv_have_decl_optreset+set}" = set; then | |
8874 $as_echo_n "(cached) " >&6 | |
8875 else | |
8876 cat >conftest.$ac_ext <<_ACEOF | |
8877 /* confdefs.h. */ | |
8878 _ACEOF | |
8879 cat confdefs.h >>conftest.$ac_ext | |
8880 cat >>conftest.$ac_ext <<_ACEOF | |
8881 /* end confdefs.h. */ | |
8882 #include <getopt.h> | |
8883 | |
8884 int | |
8885 main () | |
8886 { | |
8887 #ifndef optreset | |
8888 (void) optreset; | |
8889 #endif | |
8890 | |
8891 ; | |
8892 return 0; | |
8893 } | |
8894 _ACEOF | |
8895 rm -f conftest.$ac_objext | |
8896 if { (ac_try="$ac_compile" | |
8897 case "(($ac_try" in | |
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8899 *) ac_try_echo=$ac_try;; | |
8900 esac | |
8901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8902 $as_echo "$ac_try_echo") >&5 | |
8903 (eval "$ac_compile") 2>conftest.er1 | |
8904 ac_status=$? | |
8905 grep -v '^ *+' conftest.er1 >conftest.err | |
8906 rm -f conftest.er1 | |
8907 cat conftest.err >&5 | |
8908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8909 (exit $ac_status); } && { | |
8910 test -z "$ac_c_werror_flag" || | |
8911 test ! -s conftest.err | |
8912 } && test -s conftest.$ac_objext; then | |
8913 ac_cv_have_decl_optreset=yes | |
8914 else | |
8915 $as_echo "$as_me: failed program was:" >&5 | |
8916 sed 's/^/| /' conftest.$ac_ext >&5 | |
8917 | |
8918 ac_cv_have_decl_optreset=no | |
8919 fi | |
8920 | |
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8922 fi | |
8923 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 | |
8924 $as_echo "$ac_cv_have_decl_optreset" >&6; } | |
8925 if test "x$ac_cv_have_decl_optreset" = x""yes; then | |
8926 GETOPT_H=getopt.h | |
8927 fi | |
8928 | |
8929 fi | |
8930 | |
8931 if test -z "$GETOPT_H"; then | |
8932 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 | |
8933 $as_echo_n "checking for working GNU getopt function... " >&6; } | |
8934 if test "${gl_cv_func_gnu_getopt+set}" = set; then | |
8935 $as_echo_n "(cached) " >&6 | |
8936 else | |
8937 if test "$cross_compiling" = yes; then | |
8938 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 | |
8939 $as_echo_n "checking whether getopt_clip is declared... " >&6; } | |
8940 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then | |
8941 $as_echo_n "(cached) " >&6 | |
8942 else | |
8943 cat >conftest.$ac_ext <<_ACEOF | |
8944 /* confdefs.h. */ | |
8945 _ACEOF | |
8946 cat confdefs.h >>conftest.$ac_ext | |
8947 cat >>conftest.$ac_ext <<_ACEOF | |
8948 /* end confdefs.h. */ | |
8949 #include <getopt.h> | |
8950 | |
8951 int | |
8952 main () | |
8953 { | |
8954 #ifndef getopt_clip | |
8955 (void) getopt_clip; | |
8956 #endif | |
8957 | |
8958 ; | |
8959 return 0; | |
8960 } | |
8961 _ACEOF | |
8962 rm -f conftest.$ac_objext | |
8963 if { (ac_try="$ac_compile" | |
8964 case "(($ac_try" in | |
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8966 *) ac_try_echo=$ac_try;; | |
8967 esac | |
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8969 $as_echo "$ac_try_echo") >&5 | |
8970 (eval "$ac_compile") 2>conftest.er1 | |
8971 ac_status=$? | |
8972 grep -v '^ *+' conftest.er1 >conftest.err | |
8973 rm -f conftest.er1 | |
8974 cat conftest.err >&5 | |
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8976 (exit $ac_status); } && { | |
8977 test -z "$ac_c_werror_flag" || | |
8978 test ! -s conftest.err | |
8979 } && test -s conftest.$ac_objext; then | |
8980 ac_cv_have_decl_getopt_clip=yes | |
8981 else | |
8982 $as_echo "$as_me: failed program was:" >&5 | |
8983 sed 's/^/| /' conftest.$ac_ext >&5 | |
8984 | |
8985 ac_cv_have_decl_getopt_clip=no | |
8986 fi | |
8987 | |
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8989 fi | |
8990 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 | |
8991 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; } | |
8992 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then | |
8993 gl_cv_func_gnu_getopt=no | |
8994 else | |
8995 gl_cv_func_gnu_getopt=yes | |
8996 fi | |
8997 | |
8998 else | |
8999 cat >conftest.$ac_ext <<_ACEOF | |
9000 /* confdefs.h. */ | |
9001 _ACEOF | |
9002 cat confdefs.h >>conftest.$ac_ext | |
9003 cat >>conftest.$ac_ext <<_ACEOF | |
9004 /* end confdefs.h. */ | |
9005 #include <getopt.h> | |
9006 int | |
9007 main () | |
9008 { | |
9009 | |
9010 char *myargv[3]; | |
9011 myargv[0] = "conftest"; | |
9012 myargv[1] = "-+"; | |
9013 myargv[2] = 0; | |
9014 return getopt (2, myargv, "+a") != '?'; | |
9015 | |
9016 ; | |
9017 return 0; | |
9018 } | |
9019 _ACEOF | |
9020 rm -f conftest$ac_exeext | |
9021 if { (ac_try="$ac_link" | |
9022 case "(($ac_try" in | |
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9024 *) ac_try_echo=$ac_try;; | |
9025 esac | |
9026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9027 $as_echo "$ac_try_echo") >&5 | |
9028 (eval "$ac_link") 2>&5 | |
9029 ac_status=$? | |
9030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9032 { (case "(($ac_try" in | |
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9034 *) ac_try_echo=$ac_try;; | |
9035 esac | |
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9037 $as_echo "$ac_try_echo") >&5 | |
9038 (eval "$ac_try") 2>&5 | |
9039 ac_status=$? | |
9040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9041 (exit $ac_status); }; }; then | |
9042 gl_cv_func_gnu_getopt=yes | |
9043 else | |
9044 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
9045 $as_echo "$as_me: failed program was:" >&5 | |
9046 sed 's/^/| /' conftest.$ac_ext >&5 | |
9047 | |
9048 ( exit $ac_status ) | |
9049 gl_cv_func_gnu_getopt=no | |
9050 fi | |
9051 rm -rf conftest.dSYM | |
9052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9053 fi | |
9054 | |
9055 | |
9056 fi | |
9057 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 | |
9058 $as_echo "$gl_cv_func_gnu_getopt" >&6; } | |
9059 if test "$gl_cv_func_gnu_getopt" = "no"; then | |
9060 GETOPT_H=getopt.h | |
9061 fi | |
9062 fi | |
9063 | |
9064 | |
9065 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5 | |
9066 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } | |
9067 if test "${gl_cv_func_malloc_posix+set}" = set; then | |
9068 $as_echo_n "(cached) " >&6 | |
9069 else | |
9070 | |
9071 cat >conftest.$ac_ext <<_ACEOF | |
9072 /* confdefs.h. */ | |
9073 _ACEOF | |
9074 cat confdefs.h >>conftest.$ac_ext | |
9075 cat >>conftest.$ac_ext <<_ACEOF | |
9076 /* end confdefs.h. */ | |
9077 | |
9078 int | |
9079 main () | |
9080 { | |
9081 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ | |
9082 choke me | |
9083 #endif | |
9084 | |
9085 ; | |
9086 return 0; | |
9087 } | |
9088 _ACEOF | |
9089 rm -f conftest.$ac_objext | |
9090 if { (ac_try="$ac_compile" | |
9091 case "(($ac_try" in | |
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9093 *) ac_try_echo=$ac_try;; | |
9094 esac | |
9095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9096 $as_echo "$ac_try_echo") >&5 | |
9097 (eval "$ac_compile") 2>conftest.er1 | |
9098 ac_status=$? | |
9099 grep -v '^ *+' conftest.er1 >conftest.err | |
9100 rm -f conftest.er1 | |
9101 cat conftest.err >&5 | |
9102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9103 (exit $ac_status); } && { | |
9104 test -z "$ac_c_werror_flag" || | |
9105 test ! -s conftest.err | |
9106 } && test -s conftest.$ac_objext; then | |
9107 gl_cv_func_malloc_posix=yes | |
9108 else | |
9109 $as_echo "$as_me: failed program was:" >&5 | |
9110 sed 's/^/| /' conftest.$ac_ext >&5 | |
9111 | |
9112 gl_cv_func_malloc_posix=no | |
9113 fi | |
9114 | |
9115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9116 | |
9117 fi | |
9118 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5 | |
9119 $as_echo "$gl_cv_func_malloc_posix" >&6; } | |
9120 | |
9121 | |
9122 GNULIB_MALLOC_POSIX=0; | |
9123 GNULIB_REALLOC_POSIX=0; | |
9124 GNULIB_CALLOC_POSIX=0; | |
9125 GNULIB_ATOLL=0; | |
9126 GNULIB_GETLOADAVG=0; | |
9127 GNULIB_GETSUBOPT=0; | |
9128 GNULIB_MKDTEMP=0; | |
9129 GNULIB_MKSTEMP=0; | |
9130 GNULIB_PUTENV=0; | |
9131 GNULIB_RANDOM_R=0; | |
9132 GNULIB_RPMATCH=0; | |
9133 GNULIB_SETENV=0; | |
9134 GNULIB_STRTOD=0; | |
9135 GNULIB_STRTOLL=0; | |
9136 GNULIB_STRTOULL=0; | |
9137 GNULIB_UNSETENV=0; | |
9138 HAVE_ATOLL=1; | |
9139 HAVE_CALLOC_POSIX=1; | |
9140 HAVE_GETSUBOPT=1; | |
9141 HAVE_MALLOC_POSIX=1; | |
9142 HAVE_MKDTEMP=1; | |
9143 HAVE_REALLOC_POSIX=1; | |
9144 HAVE_RANDOM_R=1; | |
9145 HAVE_RPMATCH=1; | |
9146 HAVE_SETENV=1; | |
9147 HAVE_STRTOD=1; | |
9148 HAVE_STRTOLL=1; | |
9149 HAVE_STRTOULL=1; | |
9150 HAVE_STRUCT_RANDOM_DATA=1; | |
9151 HAVE_SYS_LOADAVG_H=0; | |
9152 HAVE_UNSETENV=1; | |
9153 HAVE_DECL_GETLOADAVG=1; | |
9154 REPLACE_MKSTEMP=0; | |
9155 REPLACE_PUTENV=0; | |
9156 REPLACE_STRTOD=0; | |
9157 VOID_UNSETENV=0; | |
9158 | |
9159 | |
9160 GNULIB_MEMMEM=0; | |
9161 GNULIB_MEMPCPY=0; | |
9162 GNULIB_MEMRCHR=0; | |
9163 GNULIB_RAWMEMCHR=0; | |
9164 GNULIB_STPCPY=0; | |
9165 GNULIB_STPNCPY=0; | |
9166 GNULIB_STRCHRNUL=0; | |
9167 GNULIB_STRDUP=0; | |
9168 GNULIB_STRNDUP=0; | |
9169 GNULIB_STRNLEN=0; | |
9170 GNULIB_STRPBRK=0; | |
9171 GNULIB_STRSEP=0; | |
9172 GNULIB_STRSTR=0; | |
9173 GNULIB_STRCASESTR=0; | |
9174 GNULIB_STRTOK_R=0; | |
9175 GNULIB_MBSLEN=0; | |
9176 GNULIB_MBSNLEN=0; | |
9177 GNULIB_MBSCHR=0; | |
9178 GNULIB_MBSRCHR=0; | |
9179 GNULIB_MBSSTR=0; | |
9180 GNULIB_MBSCASECMP=0; | |
9181 GNULIB_MBSNCASECMP=0; | |
9182 GNULIB_MBSPCASECMP=0; | |
9183 GNULIB_MBSCASESTR=0; | |
9184 GNULIB_MBSCSPN=0; | |
9185 GNULIB_MBSPBRK=0; | |
9186 GNULIB_MBSSPN=0; | |
9187 GNULIB_MBSSEP=0; | |
9188 GNULIB_MBSTOK_R=0; | |
9189 GNULIB_STRERROR=0; | |
9190 GNULIB_STRSIGNAL=0; | |
9191 GNULIB_STRVERSCMP=0; | |
9192 HAVE_DECL_MEMMEM=1; | |
9193 HAVE_MEMPCPY=1; | |
9194 HAVE_DECL_MEMRCHR=1; | |
9195 HAVE_RAWMEMCHR=1; | |
9196 HAVE_STPCPY=1; | |
9197 HAVE_STPNCPY=1; | |
9198 HAVE_STRCHRNUL=1; | |
9199 HAVE_DECL_STRDUP=1; | |
9200 HAVE_STRNDUP=1; | |
9201 HAVE_DECL_STRNDUP=1; | |
9202 HAVE_DECL_STRNLEN=1; | |
9203 HAVE_STRPBRK=1; | |
9204 HAVE_STRSEP=1; | |
9205 HAVE_STRCASESTR=1; | |
9206 HAVE_DECL_STRTOK_R=1; | |
9207 HAVE_DECL_STRERROR=1; | |
9208 HAVE_DECL_STRSIGNAL=1; | |
9209 HAVE_STRVERSCMP=1; | |
9210 REPLACE_MEMMEM=0; | |
9211 REPLACE_STRDUP=0; | |
9212 REPLACE_STRSTR=0; | |
9213 REPLACE_STRCASESTR=0; | |
9214 REPLACE_STRERROR=0; | |
9215 REPLACE_STRSIGNAL=0; | |
9216 | |
9217 | |
9218 gl_cv_c_multiarch=no | |
9219 cat >conftest.$ac_ext <<_ACEOF | |
9220 /* confdefs.h. */ | |
9221 _ACEOF | |
9222 cat confdefs.h >>conftest.$ac_ext | |
9223 cat >>conftest.$ac_ext <<_ACEOF | |
9224 /* end confdefs.h. */ | |
9225 #ifndef __APPLE_CC__ | |
9226 not a universal capable compiler | |
9227 #endif | |
9228 typedef int dummy; | |
9229 | |
9230 _ACEOF | |
9231 rm -f conftest.$ac_objext | |
9232 if { (ac_try="$ac_compile" | |
9233 case "(($ac_try" in | |
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9235 *) ac_try_echo=$ac_try;; | |
9236 esac | |
9237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9238 $as_echo "$ac_try_echo") >&5 | |
9239 (eval "$ac_compile") 2>conftest.er1 | |
9240 ac_status=$? | |
9241 grep -v '^ *+' conftest.er1 >conftest.err | |
9242 rm -f conftest.er1 | |
9243 cat conftest.err >&5 | |
9244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9245 (exit $ac_status); } && { | |
9246 test -z "$ac_c_werror_flag" || | |
9247 test ! -s conftest.err | |
9248 } && test -s conftest.$ac_objext; then | |
9249 | |
9250 arch= | |
9251 prev= | |
9252 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do | |
9253 if test -n "$prev"; then | |
9254 case $word in | |
9255 i?86 | x86_64 | ppc | ppc64) | |
9256 if test -z "$arch" || test "$arch" = "$word"; then | |
9257 arch="$word" | |
9258 else | |
9259 gl_cv_c_multiarch=yes | |
9260 fi | |
9261 ;; | |
9262 esac | |
9263 prev= | |
9264 else | |
9265 if test "x$word" = "x-arch"; then | |
9266 prev=arch | |
9267 fi | |
9268 fi | |
9269 done | |
9270 | |
9271 else | |
9272 $as_echo "$as_me: failed program was:" >&5 | |
9273 sed 's/^/| /' conftest.$ac_ext >&5 | |
9274 | |
9275 | |
9276 fi | |
9277 | |
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9279 if test $gl_cv_c_multiarch = yes; then | |
9280 | |
9281 cat >>confdefs.h <<\_ACEOF | |
9282 #define AA_APPLE_UNIVERSAL_BUILD 1 | |
9283 _ACEOF | |
9284 | |
9285 APPLE_UNIVERSAL_BUILD=1 | |
9286 else | |
9287 APPLE_UNIVERSAL_BUILD=0 | |
9288 fi | |
9289 | |
9290 | |
9291 | |
9292 GNULIB_CHOWN=0; | |
9293 GNULIB_CLOSE=0; | |
9294 GNULIB_DUP2=0; | |
9295 GNULIB_ENVIRON=0; | |
9296 GNULIB_EUIDACCESS=0; | |
9297 GNULIB_FCHDIR=0; | |
9298 GNULIB_FSYNC=0; | |
9299 GNULIB_FTRUNCATE=0; | |
9300 GNULIB_GETCWD=0; | |
9301 GNULIB_GETDOMAINNAME=0; | |
9302 GNULIB_GETDTABLESIZE=0; | |
9303 GNULIB_GETHOSTNAME=0; | |
9304 GNULIB_GETLOGIN_R=0; | |
9305 GNULIB_GETPAGESIZE=0; | |
9306 GNULIB_GETUSERSHELL=0; | |
9307 GNULIB_LCHOWN=0; | |
9308 GNULIB_LSEEK=0; | |
9309 GNULIB_READLINK=0; | |
9310 GNULIB_SLEEP=0; | |
9311 GNULIB_UNISTD_H_SIGPIPE=0; | |
9312 GNULIB_WRITE=0; | |
9313 HAVE_DUP2=1; | |
9314 HAVE_EUIDACCESS=1; | |
9315 HAVE_FSYNC=1; | |
9316 HAVE_FTRUNCATE=1; | |
9317 HAVE_GETDOMAINNAME=1; | |
9318 HAVE_GETDTABLESIZE=1; | |
9319 HAVE_GETHOSTNAME=1; | |
9320 HAVE_GETPAGESIZE=1; | |
9321 HAVE_GETUSERSHELL=1; | |
9322 HAVE_READLINK=1; | |
9323 HAVE_SLEEP=1; | |
9324 HAVE_DECL_ENVIRON=1; | |
9325 HAVE_DECL_GETLOGIN_R=1; | |
9326 HAVE_OS_H=0; | |
9327 HAVE_SYS_PARAM_H=0; | |
9328 REPLACE_CHOWN=0; | |
9329 REPLACE_CLOSE=0; | |
9330 REPLACE_FCHDIR=0; | |
9331 REPLACE_GETCWD=0; | |
9332 REPLACE_GETPAGESIZE=0; | |
9333 REPLACE_LCHOWN=0; | |
9334 REPLACE_LSEEK=0; | |
9335 REPLACE_WRITE=0; | |
9336 UNISTD_H_HAVE_WINSOCK2_H=0; | |
9337 | |
9338 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 | |
9339 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | |
9340 if test "${ac_cv_header_stdbool_h+set}" = set; then | |
9341 $as_echo_n "(cached) " >&6 | |
9342 else | |
9343 cat >conftest.$ac_ext <<_ACEOF | |
9344 /* confdefs.h. */ | |
9345 _ACEOF | |
9346 cat confdefs.h >>conftest.$ac_ext | |
9347 cat >>conftest.$ac_ext <<_ACEOF | |
9348 /* end confdefs.h. */ | |
9349 | |
9350 #include <stdbool.h> | |
9351 #ifndef bool | |
9352 "error: bool is not defined" | |
9353 #endif | |
9354 #ifndef false | |
9355 "error: false is not defined" | |
9356 #endif | |
9357 #if false | |
9358 "error: false is not 0" | |
9359 #endif | |
9360 #ifndef true | |
9361 "error: true is not defined" | |
9362 #endif | |
9363 #if true != 1 | |
9364 "error: true is not 1" | |
9365 #endif | |
9366 #ifndef __bool_true_false_are_defined | |
9367 "error: __bool_true_false_are_defined is not defined" | |
9368 #endif | |
9369 | |
9370 struct s { _Bool s: 1; _Bool t; } s; | |
9371 | |
9372 char a[true == 1 ? 1 : -1]; | |
9373 char b[false == 0 ? 1 : -1]; | |
9374 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | |
9375 char d[(bool) 0.5 == true ? 1 : -1]; | |
9376 bool e = &s; | |
9377 char f[(_Bool) 0.0 == false ? 1 : -1]; | |
9378 char g[true]; | |
9379 char h[sizeof (_Bool)]; | |
9380 char i[sizeof s.t]; | |
9381 enum { j = false, k = true, l = false * true, m = true * 256 }; | |
9382 _Bool n[m]; | |
9383 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | |
9384 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | |
9385 #if defined __xlc__ || defined __GNUC__ | |
9386 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 | |
9387 reported by James Lemley on 2005-10-05; see | |
9388 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html | |
9389 This test is not quite right, since xlc is allowed to | |
9390 reject this program, as the initializer for xlcbug is | |
9391 not one of the forms that C requires support for. | |
9392 However, doing the test right would require a run-time | |
9393 test, and that would make cross-compilation harder. | |
9394 Let us hope that IBM fixes the xlc bug, and also adds | |
9395 support for this kind of constant expression. In the | |
9396 meantime, this test will reject xlc, which is OK, since | |
9397 our stdbool.h substitute should suffice. We also test | |
9398 this with GCC, where it should work, to detect more | |
9399 quickly whether someone messes up the test in the | |
9400 future. */ | |
9401 char digs[] = "0123456789"; | |
9402 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); | |
9403 #endif | |
9404 /* Catch a bug in an HP-UX C compiler. See | |
9405 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | |
9406 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | |
9407 */ | |
9408 _Bool q = true; | |
9409 _Bool *pq = &q; | |
9410 | |
9411 int | |
9412 main () | |
9413 { | |
9414 | |
9415 *pq |= q; | |
9416 *pq |= ! q; | |
9417 /* Refer to every declared value, to avoid compiler optimizations. */ | |
9418 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | |
9419 + !m + !n + !o + !p + !q + !pq); | |
9420 | |
9421 ; | |
9422 return 0; | |
9423 } | |
9424 _ACEOF | |
9425 rm -f conftest.$ac_objext | |
9426 if { (ac_try="$ac_compile" | |
9427 case "(($ac_try" in | |
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9429 *) ac_try_echo=$ac_try;; | |
9430 esac | |
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9432 $as_echo "$ac_try_echo") >&5 | |
9433 (eval "$ac_compile") 2>conftest.er1 | |
9434 ac_status=$? | |
9435 grep -v '^ *+' conftest.er1 >conftest.err | |
9436 rm -f conftest.er1 | |
9437 cat conftest.err >&5 | |
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9439 (exit $ac_status); } && { | |
9440 test -z "$ac_c_werror_flag" || | |
9441 test ! -s conftest.err | |
9442 } && test -s conftest.$ac_objext; then | |
9443 ac_cv_header_stdbool_h=yes | |
9444 else | |
9445 $as_echo "$as_me: failed program was:" >&5 | |
9446 sed 's/^/| /' conftest.$ac_ext >&5 | |
9447 | |
9448 ac_cv_header_stdbool_h=no | |
9449 fi | |
9450 | |
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9452 fi | |
9453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 | |
9454 $as_echo "$ac_cv_header_stdbool_h" >&6; } | |
9455 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5 | |
9456 $as_echo_n "checking for _Bool... " >&6; } | |
9457 if test "${ac_cv_type__Bool+set}" = set; then | |
9458 $as_echo_n "(cached) " >&6 | |
9459 else | |
9460 ac_cv_type__Bool=no | |
9461 cat >conftest.$ac_ext <<_ACEOF | |
9462 /* confdefs.h. */ | |
9463 _ACEOF | |
9464 cat confdefs.h >>conftest.$ac_ext | |
9465 cat >>conftest.$ac_ext <<_ACEOF | |
9466 /* end confdefs.h. */ | |
9467 $ac_includes_default | |
9468 int | |
9469 main () | |
9470 { | |
9471 if (sizeof (_Bool)) | |
9472 return 0; | |
9473 ; | |
9474 return 0; | |
9475 } | |
9476 _ACEOF | |
9477 rm -f conftest.$ac_objext | |
9478 if { (ac_try="$ac_compile" | |
9479 case "(($ac_try" in | |
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9481 *) ac_try_echo=$ac_try;; | |
9482 esac | |
9483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9484 $as_echo "$ac_try_echo") >&5 | |
9485 (eval "$ac_compile") 2>conftest.er1 | |
9486 ac_status=$? | |
9487 grep -v '^ *+' conftest.er1 >conftest.err | |
9488 rm -f conftest.er1 | |
9489 cat conftest.err >&5 | |
9490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9491 (exit $ac_status); } && { | |
9492 test -z "$ac_c_werror_flag" || | |
9493 test ! -s conftest.err | |
9494 } && test -s conftest.$ac_objext; then | |
9495 cat >conftest.$ac_ext <<_ACEOF | |
9496 /* confdefs.h. */ | |
9497 _ACEOF | |
9498 cat confdefs.h >>conftest.$ac_ext | |
9499 cat >>conftest.$ac_ext <<_ACEOF | |
9500 /* end confdefs.h. */ | |
9501 $ac_includes_default | |
9502 int | |
9503 main () | |
9504 { | |
9505 if (sizeof ((_Bool))) | |
9506 return 0; | |
9507 ; | |
9508 return 0; | |
9509 } | |
9510 _ACEOF | |
9511 rm -f conftest.$ac_objext | |
9512 if { (ac_try="$ac_compile" | |
9513 case "(($ac_try" in | |
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9515 *) ac_try_echo=$ac_try;; | |
9516 esac | |
9517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9518 $as_echo "$ac_try_echo") >&5 | |
9519 (eval "$ac_compile") 2>conftest.er1 | |
9520 ac_status=$? | |
9521 grep -v '^ *+' conftest.er1 >conftest.err | |
9522 rm -f conftest.er1 | |
9523 cat conftest.err >&5 | |
9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9525 (exit $ac_status); } && { | |
9526 test -z "$ac_c_werror_flag" || | |
9527 test ! -s conftest.err | |
9528 } && test -s conftest.$ac_objext; then | |
9529 : | |
9530 else | |
9531 $as_echo "$as_me: failed program was:" >&5 | |
9532 sed 's/^/| /' conftest.$ac_ext >&5 | |
9533 | |
9534 ac_cv_type__Bool=yes | |
9535 fi | |
9536 | |
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9538 else | |
9539 $as_echo "$as_me: failed program was:" >&5 | |
9540 sed 's/^/| /' conftest.$ac_ext >&5 | |
9541 | |
9542 | |
9543 fi | |
9544 | |
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9546 fi | |
9547 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 | |
9548 $as_echo "$ac_cv_type__Bool" >&6; } | |
9549 if test "x$ac_cv_type__Bool" = x""yes; then | |
9550 | |
9551 cat >>confdefs.h <<_ACEOF | |
9552 #define HAVE__BOOL 1 | |
9553 _ACEOF | |
9554 | |
9555 | |
9556 fi | |
9557 | |
9558 if test $ac_cv_header_stdbool_h = yes; then | |
9559 | |
9560 cat >>confdefs.h <<\_ACEOF | |
9561 #define HAVE_STDBOOL_H 1 | |
9562 _ACEOF | |
9563 | |
9564 fi | |
9565 | |
9566 { $as_echo "$as_me:$LINENO: checking for long long int" >&5 | |
9567 $as_echo_n "checking for long long int... " >&6; } | |
9568 if test "${ac_cv_type_long_long_int+set}" = set; then | |
9569 $as_echo_n "(cached) " >&6 | |
9570 else | |
9571 cat >conftest.$ac_ext <<_ACEOF | |
9572 | |
9573 /* confdefs.h. */ | |
9574 _ACEOF | |
9575 cat confdefs.h >>conftest.$ac_ext | |
9576 cat >>conftest.$ac_ext <<_ACEOF | |
9577 /* end confdefs.h. */ | |
9578 /* For now, do not test the preprocessor; as of 2007 there are too many | |
9579 implementations with broken preprocessors. Perhaps this can | |
9580 be revisited in 2012. In the meantime, code should not expect | |
9581 #if to work with literals wider than 32 bits. */ | |
9582 /* Test literals. */ | |
9583 long long int ll = 9223372036854775807ll; | |
9584 long long int nll = -9223372036854775807LL; | |
9585 unsigned long long int ull = 18446744073709551615ULL; | |
9586 /* Test constant expressions. */ | |
9587 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
9588 ? 1 : -1)]; | |
9589 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
9590 ? 1 : -1)]; | |
9591 int i = 63; | |
9592 int | |
9593 main () | |
9594 { | |
9595 /* Test availability of runtime routines for shift and division. */ | |
9596 long long int llmax = 9223372036854775807ll; | |
9597 unsigned long long int ullmax = 18446744073709551615ull; | |
9598 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
9599 | (llmax / ll) | (llmax % ll) | |
9600 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
9601 | (ullmax / ull) | (ullmax % ull)); | |
9602 ; | |
9603 return 0; | |
9604 } | |
9605 | |
9606 _ACEOF | |
9607 rm -f conftest.$ac_objext conftest$ac_exeext | |
9608 if { (ac_try="$ac_link" | |
9609 case "(($ac_try" in | |
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9611 *) ac_try_echo=$ac_try;; | |
9612 esac | |
9613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9614 $as_echo "$ac_try_echo") >&5 | |
9615 (eval "$ac_link") 2>conftest.er1 | |
9616 ac_status=$? | |
9617 grep -v '^ *+' conftest.er1 >conftest.err | |
9618 rm -f conftest.er1 | |
9619 cat conftest.err >&5 | |
9620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9621 (exit $ac_status); } && { | |
9622 test -z "$ac_c_werror_flag" || | |
9623 test ! -s conftest.err | |
9624 } && test -s conftest$ac_exeext && { | |
9625 test "$cross_compiling" = yes || | |
9626 $as_test_x conftest$ac_exeext | |
9627 }; then | |
9628 if test "$cross_compiling" = yes; then | |
9629 ac_cv_type_long_long_int=yes | |
9630 else | |
9631 cat >conftest.$ac_ext <<_ACEOF | |
9632 /* confdefs.h. */ | |
9633 _ACEOF | |
9634 cat confdefs.h >>conftest.$ac_ext | |
9635 cat >>conftest.$ac_ext <<_ACEOF | |
9636 /* end confdefs.h. */ | |
9637 #include <limits.h> | |
9638 #ifndef LLONG_MAX | |
9639 # define HALF \ | |
9640 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
9641 # define LLONG_MAX (HALF - 1 + HALF) | |
9642 #endif | |
9643 int | |
9644 main () | |
9645 { | |
9646 long long int n = 1; | |
9647 int i; | |
9648 for (i = 0; ; i++) | |
9649 { | |
9650 long long int m = n << i; | |
9651 if (m >> i != n) | |
9652 return 1; | |
9653 if (LLONG_MAX / 2 < m) | |
9654 break; | |
9655 } | |
9656 return 0; | |
9657 ; | |
9658 return 0; | |
9659 } | |
9660 _ACEOF | |
9661 rm -f conftest$ac_exeext | |
9662 if { (ac_try="$ac_link" | |
9663 case "(($ac_try" in | |
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9665 *) ac_try_echo=$ac_try;; | |
9666 esac | |
9667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9668 $as_echo "$ac_try_echo") >&5 | |
9669 (eval "$ac_link") 2>&5 | |
9670 ac_status=$? | |
9671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9673 { (case "(($ac_try" in | |
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9675 *) ac_try_echo=$ac_try;; | |
9676 esac | |
9677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9678 $as_echo "$ac_try_echo") >&5 | |
9679 (eval "$ac_try") 2>&5 | |
9680 ac_status=$? | |
9681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9682 (exit $ac_status); }; }; then | |
9683 ac_cv_type_long_long_int=yes | |
9684 else | |
9685 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
9686 $as_echo "$as_me: failed program was:" >&5 | |
9687 sed 's/^/| /' conftest.$ac_ext >&5 | |
9688 | |
9689 ( exit $ac_status ) | |
9690 ac_cv_type_long_long_int=no | |
9691 fi | |
9692 rm -rf conftest.dSYM | |
9693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9694 fi | |
9695 | |
9696 | |
9697 else | |
9698 $as_echo "$as_me: failed program was:" >&5 | |
9699 sed 's/^/| /' conftest.$ac_ext >&5 | |
9700 | |
9701 ac_cv_type_long_long_int=no | |
9702 fi | |
9703 | |
9704 rm -rf conftest.dSYM | |
9705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9706 conftest$ac_exeext conftest.$ac_ext | |
9707 fi | |
9708 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | |
9709 $as_echo "$ac_cv_type_long_long_int" >&6; } | |
9710 if test $ac_cv_type_long_long_int = yes; then | |
9711 | |
9712 cat >>confdefs.h <<\_ACEOF | |
9713 #define HAVE_LONG_LONG_INT 1 | |
9714 _ACEOF | |
9715 | |
9716 fi | |
9717 | |
9718 | |
9719 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5 | |
9720 $as_echo_n "checking for unsigned long long int... " >&6; } | |
9721 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then | |
9722 $as_echo_n "(cached) " >&6 | |
9723 else | |
9724 cat >conftest.$ac_ext <<_ACEOF | |
9725 | |
9726 /* confdefs.h. */ | |
9727 _ACEOF | |
9728 cat confdefs.h >>conftest.$ac_ext | |
9729 cat >>conftest.$ac_ext <<_ACEOF | |
9730 /* end confdefs.h. */ | |
9731 /* For now, do not test the preprocessor; as of 2007 there are too many | |
9732 implementations with broken preprocessors. Perhaps this can | |
9733 be revisited in 2012. In the meantime, code should not expect | |
9734 #if to work with literals wider than 32 bits. */ | |
9735 /* Test literals. */ | |
9736 long long int ll = 9223372036854775807ll; | |
9737 long long int nll = -9223372036854775807LL; | |
9738 unsigned long long int ull = 18446744073709551615ULL; | |
9739 /* Test constant expressions. */ | |
9740 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
9741 ? 1 : -1)]; | |
9742 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
9743 ? 1 : -1)]; | |
9744 int i = 63; | |
9745 int | |
9746 main () | |
9747 { | |
9748 /* Test availability of runtime routines for shift and division. */ | |
9749 long long int llmax = 9223372036854775807ll; | |
9750 unsigned long long int ullmax = 18446744073709551615ull; | |
9751 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
9752 | (llmax / ll) | (llmax % ll) | |
9753 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
9754 | (ullmax / ull) | (ullmax % ull)); | |
9755 ; | |
9756 return 0; | |
9757 } | |
9758 | |
9759 _ACEOF | |
9760 rm -f conftest.$ac_objext conftest$ac_exeext | |
9761 if { (ac_try="$ac_link" | |
9762 case "(($ac_try" in | |
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9764 *) ac_try_echo=$ac_try;; | |
9765 esac | |
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9767 $as_echo "$ac_try_echo") >&5 | |
9768 (eval "$ac_link") 2>conftest.er1 | |
9769 ac_status=$? | |
9770 grep -v '^ *+' conftest.er1 >conftest.err | |
9771 rm -f conftest.er1 | |
9772 cat conftest.err >&5 | |
9773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9774 (exit $ac_status); } && { | |
9775 test -z "$ac_c_werror_flag" || | |
9776 test ! -s conftest.err | |
9777 } && test -s conftest$ac_exeext && { | |
9778 test "$cross_compiling" = yes || | |
9779 $as_test_x conftest$ac_exeext | |
9780 }; then | |
9781 ac_cv_type_unsigned_long_long_int=yes | |
9782 else | |
9783 $as_echo "$as_me: failed program was:" >&5 | |
9784 sed 's/^/| /' conftest.$ac_ext >&5 | |
9785 | |
9786 ac_cv_type_unsigned_long_long_int=no | |
9787 fi | |
9788 | |
9789 rm -rf conftest.dSYM | |
9790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9791 conftest$ac_exeext conftest.$ac_ext | |
9792 fi | |
9793 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 | |
9794 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
9795 if test $ac_cv_type_unsigned_long_long_int = yes; then | |
9796 | |
9797 cat >>confdefs.h <<\_ACEOF | |
9798 #define HAVE_UNSIGNED_LONG_LONG_INT 1 | |
9799 _ACEOF | |
9800 | |
9801 fi | |
9802 | |
9803 | |
9804 | |
9805 | |
9806 | |
9807 | |
9808 | |
9809 | |
9810 | |
9811 | |
9812 | |
9813 | |
9814 | |
9815 | |
9816 GNULIB_FPRINTF=0; | |
9817 GNULIB_FPRINTF_POSIX=0; | |
9818 GNULIB_PRINTF=0; | |
9819 GNULIB_PRINTF_POSIX=0; | |
9820 GNULIB_SNPRINTF=0; | |
9821 GNULIB_SPRINTF_POSIX=0; | |
9822 GNULIB_VFPRINTF=0; | |
9823 GNULIB_VFPRINTF_POSIX=0; | |
9824 GNULIB_VPRINTF=0; | |
9825 GNULIB_VPRINTF_POSIX=0; | |
9826 GNULIB_VSNPRINTF=0; | |
9827 GNULIB_VSPRINTF_POSIX=0; | |
9828 GNULIB_VASPRINTF=0; | |
9829 GNULIB_OBSTACK_PRINTF=0; | |
9830 GNULIB_OBSTACK_PRINTF_POSIX=0; | |
9831 GNULIB_FOPEN=0; | |
9832 GNULIB_FREOPEN=0; | |
9833 GNULIB_FSEEK=0; | |
9834 GNULIB_FSEEKO=0; | |
9835 GNULIB_FTELL=0; | |
9836 GNULIB_FTELLO=0; | |
9837 GNULIB_FFLUSH=0; | |
9838 GNULIB_FCLOSE=0; | |
9839 GNULIB_FPUTC=0; | |
9840 GNULIB_PUTC=0; | |
9841 GNULIB_PUTCHAR=0; | |
9842 GNULIB_FPUTS=0; | |
9843 GNULIB_PUTS=0; | |
9844 GNULIB_FWRITE=0; | |
9845 GNULIB_GETDELIM=0; | |
9846 GNULIB_GETLINE=0; | |
9847 GNULIB_PERROR=0; | |
9848 GNULIB_STDIO_H_SIGPIPE=0; | |
9849 REPLACE_STDIO_WRITE_FUNCS=0; | |
9850 REPLACE_FPRINTF=0; | |
9851 REPLACE_VFPRINTF=0; | |
9852 REPLACE_PRINTF=0; | |
9853 REPLACE_VPRINTF=0; | |
9854 REPLACE_SNPRINTF=0; | |
9855 HAVE_DECL_SNPRINTF=1; | |
9856 REPLACE_VSNPRINTF=0; | |
9857 HAVE_DECL_VSNPRINTF=1; | |
9858 REPLACE_SPRINTF=0; | |
9859 REPLACE_VSPRINTF=0; | |
9860 HAVE_VASPRINTF=1; | |
9861 REPLACE_VASPRINTF=0; | |
9862 HAVE_DECL_OBSTACK_PRINTF=1; | |
9863 REPLACE_OBSTACK_PRINTF=0; | |
9864 REPLACE_FOPEN=0; | |
9865 REPLACE_FREOPEN=0; | |
9866 HAVE_FSEEKO=1; | |
9867 REPLACE_FSEEKO=0; | |
9868 REPLACE_FSEEK=0; | |
9869 HAVE_FTELLO=1; | |
9870 REPLACE_FTELLO=0; | |
9871 REPLACE_FTELL=0; | |
9872 REPLACE_FFLUSH=0; | |
9873 REPLACE_FCLOSE=0; | |
9874 HAVE_DECL_GETDELIM=1; | |
9875 HAVE_DECL_GETLINE=1; | |
9876 REPLACE_GETLINE=0; | |
9877 REPLACE_PERROR=0; | |
9878 | |
9879 | |
9880 | |
9881 | |
9882 | |
9883 | |
9884 | |
9885 | |
9886 | |
9887 | |
9888 | |
9889 | |
9890 | |
9891 | |
9892 HAVE_STRCASECMP=1; | |
9893 HAVE_DECL_STRNCASECMP=1; | |
9894 | |
9895 | |
9896 | |
9897 | |
9898 | |
9899 | |
9900 | |
9901 | |
9902 | |
9903 | |
9904 if test -z "$ERRNO_H"; then | |
9905 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5 | |
9906 $as_echo_n "checking for working strerror function... " >&6; } | |
9907 if test "${gl_cv_func_working_strerror+set}" = set; then | |
9908 $as_echo_n "(cached) " >&6 | |
9909 else | |
9910 if test "$cross_compiling" = yes; then | |
9911 cat >conftest.$ac_ext <<_ACEOF | |
9912 /* confdefs.h. */ | |
9913 _ACEOF | |
9914 cat confdefs.h >>conftest.$ac_ext | |
9915 cat >>conftest.$ac_ext <<_ACEOF | |
9916 /* end confdefs.h. */ | |
9917 #include <string.h> | |
9918 | |
9919 int | |
9920 main () | |
9921 { | |
9922 return !*strerror (-2); | |
9923 ; | |
9924 return 0; | |
9925 } | |
9926 _ACEOF | |
9927 rm -f conftest.$ac_objext | |
9928 if { (ac_try="$ac_compile" | |
9929 case "(($ac_try" in | |
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9931 *) ac_try_echo=$ac_try;; | |
9932 esac | |
9933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9934 $as_echo "$ac_try_echo") >&5 | |
9935 (eval "$ac_compile") 2>conftest.er1 | |
9936 ac_status=$? | |
9937 grep -v '^ *+' conftest.er1 >conftest.err | |
9938 rm -f conftest.er1 | |
9939 cat conftest.err >&5 | |
9940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9941 (exit $ac_status); } && { | |
9942 test -z "$ac_c_werror_flag" || | |
9943 test ! -s conftest.err | |
9944 } && test -s conftest.$ac_objext; then | |
9945 gl_cv_func_working_strerror=yes | |
9946 else | |
9947 $as_echo "$as_me: failed program was:" >&5 | |
9948 sed 's/^/| /' conftest.$ac_ext >&5 | |
9949 | |
9950 gl_cv_func_working_strerror=no | |
9951 fi | |
9952 | |
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9954 | |
9955 else | |
9956 cat >conftest.$ac_ext <<_ACEOF | |
9957 /* confdefs.h. */ | |
9958 _ACEOF | |
9959 cat confdefs.h >>conftest.$ac_ext | |
9960 cat >>conftest.$ac_ext <<_ACEOF | |
9961 /* end confdefs.h. */ | |
9962 #include <string.h> | |
9963 | |
9964 int | |
9965 main () | |
9966 { | |
9967 return !*strerror (-2); | |
9968 ; | |
9969 return 0; | |
9970 } | |
9971 _ACEOF | |
9972 rm -f conftest$ac_exeext | |
9973 if { (ac_try="$ac_link" | |
9974 case "(($ac_try" in | |
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9976 *) ac_try_echo=$ac_try;; | |
9977 esac | |
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9979 $as_echo "$ac_try_echo") >&5 | |
9980 (eval "$ac_link") 2>&5 | |
9981 ac_status=$? | |
9982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9984 { (case "(($ac_try" in | |
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9986 *) ac_try_echo=$ac_try;; | |
9987 esac | |
9988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9989 $as_echo "$ac_try_echo") >&5 | |
9990 (eval "$ac_try") 2>&5 | |
9991 ac_status=$? | |
9992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9993 (exit $ac_status); }; }; then | |
9994 gl_cv_func_working_strerror=yes | |
9995 else | |
9996 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
9997 $as_echo "$as_me: failed program was:" >&5 | |
9998 sed 's/^/| /' conftest.$ac_ext >&5 | |
9999 | |
10000 ( exit $ac_status ) | |
10001 gl_cv_func_working_strerror=no | |
10002 fi | |
10003 rm -rf conftest.dSYM | |
10004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10005 fi | |
10006 | |
10007 | |
10008 | |
10009 fi | |
10010 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5 | |
10011 $as_echo "$gl_cv_func_working_strerror" >&6; } | |
10012 if test $gl_cv_func_working_strerror = no; then | |
10013 REPLACE_STRERROR=1 | |
10014 fi | |
10015 else | |
10016 REPLACE_STRERROR=1 | |
10017 fi | |
10018 if test $REPLACE_STRERROR = 1; then | |
10019 | |
10020 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5 | |
10021 $as_echo_n "checking whether strerror is declared... " >&6; } | |
10022 if test "${ac_cv_have_decl_strerror+set}" = set; then | |
10023 $as_echo_n "(cached) " >&6 | |
10024 else | |
10025 cat >conftest.$ac_ext <<_ACEOF | |
10026 /* confdefs.h. */ | |
10027 _ACEOF | |
10028 cat confdefs.h >>conftest.$ac_ext | |
10029 cat >>conftest.$ac_ext <<_ACEOF | |
10030 /* end confdefs.h. */ | |
10031 $ac_includes_default | |
10032 int | |
10033 main () | |
10034 { | |
10035 #ifndef strerror | |
10036 (void) strerror; | |
10037 #endif | |
10038 | |
10039 ; | |
10040 return 0; | |
10041 } | |
10042 _ACEOF | |
10043 rm -f conftest.$ac_objext | |
10044 if { (ac_try="$ac_compile" | |
10045 case "(($ac_try" in | |
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10047 *) ac_try_echo=$ac_try;; | |
10048 esac | |
10049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10050 $as_echo "$ac_try_echo") >&5 | |
10051 (eval "$ac_compile") 2>conftest.er1 | |
10052 ac_status=$? | |
10053 grep -v '^ *+' conftest.er1 >conftest.err | |
10054 rm -f conftest.er1 | |
10055 cat conftest.err >&5 | |
10056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10057 (exit $ac_status); } && { | |
10058 test -z "$ac_c_werror_flag" || | |
10059 test ! -s conftest.err | |
10060 } && test -s conftest.$ac_objext; then | |
10061 ac_cv_have_decl_strerror=yes | |
10062 else | |
10063 $as_echo "$as_me: failed program was:" >&5 | |
10064 sed 's/^/| /' conftest.$ac_ext >&5 | |
10065 | |
10066 ac_cv_have_decl_strerror=no | |
10067 fi | |
10068 | |
10069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10070 fi | |
10071 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 | |
10072 $as_echo "$ac_cv_have_decl_strerror" >&6; } | |
10073 if test "x$ac_cv_have_decl_strerror" = x""yes; then | |
10074 | |
10075 cat >>confdefs.h <<_ACEOF | |
10076 #define HAVE_DECL_STRERROR 1 | |
10077 _ACEOF | |
10078 | |
10079 | |
10080 else | |
10081 cat >>confdefs.h <<_ACEOF | |
10082 #define HAVE_DECL_STRERROR 0 | |
10083 _ACEOF | |
10084 | |
10085 | |
10086 fi | |
10087 | |
10088 | |
10089 | |
10090 : | |
10091 | |
10092 | |
10093 | |
10094 | |
10095 | |
10096 if test $ac_cv_header_sys_socket_h != yes; then | |
10097 | |
10098 for ac_header in winsock2.h | |
10099 do | |
10100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10103 $as_echo_n "checking for $ac_header... " >&6; } | |
10104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10105 $as_echo_n "(cached) " >&6 | |
10106 fi | |
10107 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10108 $as_echo "$as_val"'` | |
10109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10110 $as_echo "$ac_res" >&6; } | |
10111 else | |
10112 # Is the header compilable? | |
10113 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10114 $as_echo_n "checking $ac_header usability... " >&6; } | |
10115 cat >conftest.$ac_ext <<_ACEOF | |
10116 /* confdefs.h. */ | |
10117 _ACEOF | |
10118 cat confdefs.h >>conftest.$ac_ext | |
10119 cat >>conftest.$ac_ext <<_ACEOF | |
10120 /* end confdefs.h. */ | |
10121 $ac_includes_default | |
10122 #include <$ac_header> | |
10123 _ACEOF | |
10124 rm -f conftest.$ac_objext | |
10125 if { (ac_try="$ac_compile" | |
10126 case "(($ac_try" in | |
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10128 *) ac_try_echo=$ac_try;; | |
10129 esac | |
10130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10131 $as_echo "$ac_try_echo") >&5 | |
10132 (eval "$ac_compile") 2>conftest.er1 | |
10133 ac_status=$? | |
10134 grep -v '^ *+' conftest.er1 >conftest.err | |
10135 rm -f conftest.er1 | |
10136 cat conftest.err >&5 | |
10137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10138 (exit $ac_status); } && { | |
10139 test -z "$ac_c_werror_flag" || | |
10140 test ! -s conftest.err | |
10141 } && test -s conftest.$ac_objext; then | |
10142 ac_header_compiler=yes | |
10143 else | |
10144 $as_echo "$as_me: failed program was:" >&5 | |
10145 sed 's/^/| /' conftest.$ac_ext >&5 | |
10146 | |
10147 ac_header_compiler=no | |
10148 fi | |
10149 | |
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10151 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10152 $as_echo "$ac_header_compiler" >&6; } | |
10153 | |
10154 # Is the header present? | |
10155 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10156 $as_echo_n "checking $ac_header presence... " >&6; } | |
10157 cat >conftest.$ac_ext <<_ACEOF | |
10158 /* confdefs.h. */ | |
10159 _ACEOF | |
10160 cat confdefs.h >>conftest.$ac_ext | |
10161 cat >>conftest.$ac_ext <<_ACEOF | |
10162 /* end confdefs.h. */ | |
10163 #include <$ac_header> | |
10164 _ACEOF | |
10165 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10166 case "(($ac_try" in | |
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10168 *) ac_try_echo=$ac_try;; | |
10169 esac | |
10170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10171 $as_echo "$ac_try_echo") >&5 | |
10172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10173 ac_status=$? | |
10174 grep -v '^ *+' conftest.er1 >conftest.err | |
10175 rm -f conftest.er1 | |
10176 cat conftest.err >&5 | |
10177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10178 (exit $ac_status); } >/dev/null && { | |
10179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10180 test ! -s conftest.err | |
10181 }; then | |
10182 ac_header_preproc=yes | |
10183 else | |
10184 $as_echo "$as_me: failed program was:" >&5 | |
10185 sed 's/^/| /' conftest.$ac_ext >&5 | |
10186 | |
10187 ac_header_preproc=no | |
10188 fi | |
10189 | |
10190 rm -f conftest.err conftest.$ac_ext | |
10191 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10192 $as_echo "$ac_header_preproc" >&6; } | |
10193 | |
10194 # So? What about this header? | |
10195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10196 yes:no: ) | |
10197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10198 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10201 ac_header_preproc=yes | |
10202 ;; | |
10203 no:yes:* ) | |
10204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10205 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10207 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10209 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10211 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10215 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10216 ( cat <<\_ASBOX | |
10217 ## -------------------------- ## | |
10218 ## Report this to lost@l-w.ca ## | |
10219 ## -------------------------- ## | |
10220 _ASBOX | |
10221 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
10222 ;; | |
10223 esac | |
10224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10225 $as_echo_n "checking for $ac_header... " >&6; } | |
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10227 $as_echo_n "(cached) " >&6 | |
10228 else | |
10229 eval "$as_ac_Header=\$ac_header_preproc" | |
10230 fi | |
10231 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10232 $as_echo "$as_val"'` | |
10233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10234 $as_echo "$ac_res" >&6; } | |
10235 | |
10236 fi | |
10237 as_val=`eval 'as_val=${'$as_ac_Header'} | |
10238 $as_echo "$as_val"'` | |
10239 if test "x$as_val" = x""yes; then | |
10240 cat >>confdefs.h <<_ACEOF | |
10241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10242 _ACEOF | |
10243 | |
10244 fi | |
10245 | |
10246 done | |
10247 | |
10248 fi | |
10249 | |
10250 fi | |
10251 | |
10252 | |
10253 | |
10254 | |
10255 | |
10256 | |
10257 | |
10258 | |
10259 | |
10260 | |
10261 | |
10262 | |
10263 | |
10264 | |
10265 : | |
10266 | |
10267 | |
10268 | |
10269 | |
10270 | |
10271 | |
10272 | |
10273 if test $gl_cv_have_include_next = yes; then | |
10274 gl_cv_next_string_h='<'string.h'>' | |
10275 else | |
10276 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5 | |
10277 $as_echo_n "checking absolute name of <string.h>... " >&6; } | |
10278 if test "${gl_cv_next_string_h+set}" = set; then | |
10279 $as_echo_n "(cached) " >&6 | |
10280 else | |
10281 | |
10282 if test $ac_cv_header_string_h = yes; then | |
10283 cat >conftest.$ac_ext <<_ACEOF | |
10284 /* confdefs.h. */ | |
10285 _ACEOF | |
10286 cat confdefs.h >>conftest.$ac_ext | |
10287 cat >>conftest.$ac_ext <<_ACEOF | |
10288 /* end confdefs.h. */ | |
10289 #include <string.h> | |
10290 | |
10291 _ACEOF | |
10292 case "$host_os" in | |
10293 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
10294 *) gl_absname_cpp="$ac_cpp" ;; | |
10295 esac | |
10296 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
10297 sed -n '\#/string.h#{ | |
10298 s#.*"\(.*/string.h\)".*#\1# | |
10299 s#^/[^/]#//&# | |
10300 p | |
10301 q | |
10302 }'`'"' | |
10303 else | |
10304 gl_cv_next_string_h='<'string.h'>' | |
10305 fi | |
10306 | |
10307 fi | |
10308 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 | |
10309 $as_echo "$gl_cv_next_string_h" >&6; } | |
10310 fi | |
10311 NEXT_STRING_H=$gl_cv_next_string_h | |
10312 | |
10313 | |
10314 | |
10315 | |
10316 | |
10317 | |
10318 | |
10319 | |
10320 | |
10321 | |
10322 | |
10323 | |
10324 | |
10325 | |
10326 | |
10327 | |
10328 : | |
10329 | |
10330 | |
10331 | |
10332 | |
10333 | |
10334 | |
10335 | |
10336 if test $gl_cv_have_include_next = yes; then | |
10337 gl_cv_next_strings_h='<'strings.h'>' | |
10338 else | |
10339 { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5 | |
10340 $as_echo_n "checking absolute name of <strings.h>... " >&6; } | |
10341 if test "${gl_cv_next_strings_h+set}" = set; then | |
10342 $as_echo_n "(cached) " >&6 | |
10343 else | |
10344 | |
10345 if test $ac_cv_header_strings_h = yes; then | |
10346 cat >conftest.$ac_ext <<_ACEOF | |
10347 /* confdefs.h. */ | |
10348 _ACEOF | |
10349 cat confdefs.h >>conftest.$ac_ext | |
10350 cat >>conftest.$ac_ext <<_ACEOF | |
10351 /* end confdefs.h. */ | |
10352 #include <strings.h> | |
10353 | |
10354 _ACEOF | |
10355 case "$host_os" in | |
10356 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
10357 *) gl_absname_cpp="$ac_cpp" ;; | |
10358 esac | |
10359 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
10360 sed -n '\#/strings.h#{ | |
10361 s#.*"\(.*/strings.h\)".*#\1# | |
10362 s#^/[^/]#//&# | |
10363 p | |
10364 q | |
10365 }'`'"' | |
10366 else | |
10367 gl_cv_next_strings_h='<'strings.h'>' | |
10368 fi | |
10369 | |
10370 fi | |
10371 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5 | |
10372 $as_echo "$gl_cv_next_strings_h" >&6; } | |
10373 fi | |
10374 NEXT_STRINGS_H=$gl_cv_next_strings_h | |
10375 | |
10376 | |
10377 | |
10378 | |
10379 | |
10380 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5 | |
10381 $as_echo_n "checking whether strndup is declared... " >&6; } | |
10382 if test "${ac_cv_have_decl_strndup+set}" = set; then | |
10383 $as_echo_n "(cached) " >&6 | |
10384 else | |
10385 cat >conftest.$ac_ext <<_ACEOF | |
10386 /* confdefs.h. */ | |
10387 _ACEOF | |
10388 cat confdefs.h >>conftest.$ac_ext | |
10389 cat >>conftest.$ac_ext <<_ACEOF | |
10390 /* end confdefs.h. */ | |
10391 $ac_includes_default | |
10392 int | |
10393 main () | |
10394 { | |
10395 #ifndef strndup | |
10396 (void) strndup; | |
10397 #endif | |
10398 | |
10399 ; | |
10400 return 0; | |
10401 } | |
10402 _ACEOF | |
10403 rm -f conftest.$ac_objext | |
10404 if { (ac_try="$ac_compile" | |
10405 case "(($ac_try" in | |
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10407 *) ac_try_echo=$ac_try;; | |
10408 esac | |
10409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10410 $as_echo "$ac_try_echo") >&5 | |
10411 (eval "$ac_compile") 2>conftest.er1 | |
10412 ac_status=$? | |
10413 grep -v '^ *+' conftest.er1 >conftest.err | |
10414 rm -f conftest.er1 | |
10415 cat conftest.err >&5 | |
10416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10417 (exit $ac_status); } && { | |
10418 test -z "$ac_c_werror_flag" || | |
10419 test ! -s conftest.err | |
10420 } && test -s conftest.$ac_objext; then | |
10421 ac_cv_have_decl_strndup=yes | |
10422 else | |
10423 $as_echo "$as_me: failed program was:" >&5 | |
10424 sed 's/^/| /' conftest.$ac_ext >&5 | |
10425 | |
10426 ac_cv_have_decl_strndup=no | |
10427 fi | |
10428 | |
10429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10430 fi | |
10431 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5 | |
10432 $as_echo "$ac_cv_have_decl_strndup" >&6; } | |
10433 if test "x$ac_cv_have_decl_strndup" = x""yes; then | |
10434 | |
10435 cat >>confdefs.h <<_ACEOF | |
10436 #define HAVE_DECL_STRNDUP 1 | |
10437 _ACEOF | |
10438 | |
10439 | |
10440 else | |
10441 cat >>confdefs.h <<_ACEOF | |
10442 #define HAVE_DECL_STRNDUP 0 | |
10443 _ACEOF | |
10444 | |
10445 | |
10446 fi | |
10447 | |
10448 | |
10449 | |
10450 | |
10451 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5 | |
10452 $as_echo_n "checking whether strnlen is declared... " >&6; } | |
10453 if test "${ac_cv_have_decl_strnlen+set}" = set; then | |
10454 $as_echo_n "(cached) " >&6 | |
10455 else | |
10456 cat >conftest.$ac_ext <<_ACEOF | |
10457 /* confdefs.h. */ | |
10458 _ACEOF | |
10459 cat confdefs.h >>conftest.$ac_ext | |
10460 cat >>conftest.$ac_ext <<_ACEOF | |
10461 /* end confdefs.h. */ | |
10462 $ac_includes_default | |
10463 int | |
10464 main () | |
10465 { | |
10466 #ifndef strnlen | |
10467 (void) strnlen; | |
10468 #endif | |
10469 | |
10470 ; | |
10471 return 0; | |
10472 } | |
10473 _ACEOF | |
10474 rm -f conftest.$ac_objext | |
10475 if { (ac_try="$ac_compile" | |
10476 case "(($ac_try" in | |
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10478 *) ac_try_echo=$ac_try;; | |
10479 esac | |
10480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10481 $as_echo "$ac_try_echo") >&5 | |
10482 (eval "$ac_compile") 2>conftest.er1 | |
10483 ac_status=$? | |
10484 grep -v '^ *+' conftest.er1 >conftest.err | |
10485 rm -f conftest.er1 | |
10486 cat conftest.err >&5 | |
10487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10488 (exit $ac_status); } && { | |
10489 test -z "$ac_c_werror_flag" || | |
10490 test ! -s conftest.err | |
10491 } && test -s conftest.$ac_objext; then | |
10492 ac_cv_have_decl_strnlen=yes | |
10493 else | |
10494 $as_echo "$as_me: failed program was:" >&5 | |
10495 sed 's/^/| /' conftest.$ac_ext >&5 | |
10496 | |
10497 ac_cv_have_decl_strnlen=no | |
10498 fi | |
10499 | |
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10501 fi | |
10502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5 | |
10503 $as_echo "$ac_cv_have_decl_strnlen" >&6; } | |
10504 if test "x$ac_cv_have_decl_strnlen" = x""yes; then | |
10505 | |
10506 cat >>confdefs.h <<_ACEOF | |
10507 #define HAVE_DECL_STRNLEN 1 | |
10508 _ACEOF | |
10509 | |
10510 | |
10511 else | |
10512 cat >>confdefs.h <<_ACEOF | |
10513 #define HAVE_DECL_STRNLEN 0 | |
10514 _ACEOF | |
10515 | |
10516 | |
10517 fi | |
10518 | |
10519 | |
10520 | |
10521 | |
10522 | |
10523 | |
10524 | |
10525 | |
10526 | |
10527 | |
10528 | |
10529 | |
10530 | |
10531 | |
10532 | |
10533 | |
10534 | |
10535 | |
10536 | |
10537 | |
10538 | |
10539 | |
10540 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 | |
10541 $as_echo_n "checking for wchar_t... " >&6; } | |
10542 if test "${gt_cv_c_wchar_t+set}" = set; then | |
10543 $as_echo_n "(cached) " >&6 | |
10544 else | |
10545 cat >conftest.$ac_ext <<_ACEOF | |
10546 /* confdefs.h. */ | |
10547 _ACEOF | |
10548 cat confdefs.h >>conftest.$ac_ext | |
10549 cat >>conftest.$ac_ext <<_ACEOF | |
10550 /* end confdefs.h. */ | |
10551 #include <stddef.h> | |
10552 wchar_t foo = (wchar_t)'\0'; | |
10553 int | |
10554 main () | |
10555 { | |
10556 | |
10557 ; | |
10558 return 0; | |
10559 } | |
10560 _ACEOF | |
10561 rm -f conftest.$ac_objext | |
10562 if { (ac_try="$ac_compile" | |
10563 case "(($ac_try" in | |
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10565 *) ac_try_echo=$ac_try;; | |
10566 esac | |
10567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10568 $as_echo "$ac_try_echo") >&5 | |
10569 (eval "$ac_compile") 2>conftest.er1 | |
10570 ac_status=$? | |
10571 grep -v '^ *+' conftest.er1 >conftest.err | |
10572 rm -f conftest.er1 | |
10573 cat conftest.err >&5 | |
10574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10575 (exit $ac_status); } && { | |
10576 test -z "$ac_c_werror_flag" || | |
10577 test ! -s conftest.err | |
10578 } && test -s conftest.$ac_objext; then | |
10579 gt_cv_c_wchar_t=yes | |
10580 else | |
10581 $as_echo "$as_me: failed program was:" >&5 | |
10582 sed 's/^/| /' conftest.$ac_ext >&5 | |
10583 | |
10584 gt_cv_c_wchar_t=no | |
10585 fi | |
10586 | |
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10588 fi | |
10589 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 | |
10590 $as_echo "$gt_cv_c_wchar_t" >&6; } | |
10591 if test $gt_cv_c_wchar_t = yes; then | |
10592 | |
10593 cat >>confdefs.h <<\_ACEOF | |
10594 #define HAVE_WCHAR_T 1 | |
10595 _ACEOF | |
10596 | |
10597 fi | |
10598 | |
10599 | |
10600 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5 | |
10601 $as_echo_n "checking for wint_t... " >&6; } | |
10602 if test "${gt_cv_c_wint_t+set}" = set; then | |
10603 $as_echo_n "(cached) " >&6 | |
10604 else | |
10605 cat >conftest.$ac_ext <<_ACEOF | |
10606 /* confdefs.h. */ | |
10607 _ACEOF | |
10608 cat confdefs.h >>conftest.$ac_ext | |
10609 cat >>conftest.$ac_ext <<_ACEOF | |
10610 /* end confdefs.h. */ | |
10611 | |
10612 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | |
10613 <wchar.h>. | |
10614 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included | |
10615 before <wchar.h>. */ | |
10616 #include <stddef.h> | |
10617 #include <stdio.h> | |
10618 #include <time.h> | |
10619 #include <wchar.h> | |
10620 wint_t foo = (wchar_t)'\0'; | |
10621 int | |
10622 main () | |
10623 { | |
10624 | |
10625 ; | |
10626 return 0; | |
10627 } | |
10628 _ACEOF | |
10629 rm -f conftest.$ac_objext | |
10630 if { (ac_try="$ac_compile" | |
10631 case "(($ac_try" in | |
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10633 *) ac_try_echo=$ac_try;; | |
10634 esac | |
10635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10636 $as_echo "$ac_try_echo") >&5 | |
10637 (eval "$ac_compile") 2>conftest.er1 | |
10638 ac_status=$? | |
10639 grep -v '^ *+' conftest.er1 >conftest.err | |
10640 rm -f conftest.er1 | |
10641 cat conftest.err >&5 | |
10642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10643 (exit $ac_status); } && { | |
10644 test -z "$ac_c_werror_flag" || | |
10645 test ! -s conftest.err | |
10646 } && test -s conftest.$ac_objext; then | |
10647 gt_cv_c_wint_t=yes | |
10648 else | |
10649 $as_echo "$as_me: failed program was:" >&5 | |
10650 sed 's/^/| /' conftest.$ac_ext >&5 | |
10651 | |
10652 gt_cv_c_wint_t=no | |
10653 fi | |
10654 | |
10655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10656 fi | |
10657 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 | |
10658 $as_echo "$gt_cv_c_wint_t" >&6; } | |
10659 if test $gt_cv_c_wint_t = yes; then | |
10660 | |
10661 cat >>confdefs.h <<\_ACEOF | |
10662 #define HAVE_WINT_T 1 | |
10663 _ACEOF | |
10664 | |
10665 fi | |
10666 | |
10667 { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
10668 $as_echo_n "checking for size_t... " >&6; } | |
10669 if test "${ac_cv_type_size_t+set}" = set; then | |
10670 $as_echo_n "(cached) " >&6 | |
10671 else | |
10672 ac_cv_type_size_t=no | |
10673 cat >conftest.$ac_ext <<_ACEOF | |
10674 /* confdefs.h. */ | |
10675 _ACEOF | |
10676 cat confdefs.h >>conftest.$ac_ext | |
10677 cat >>conftest.$ac_ext <<_ACEOF | |
10678 /* end confdefs.h. */ | |
10679 $ac_includes_default | |
10680 int | |
10681 main () | |
10682 { | |
10683 if (sizeof (size_t)) | |
10684 return 0; | |
10685 ; | |
10686 return 0; | |
10687 } | |
10688 _ACEOF | |
10689 rm -f conftest.$ac_objext | |
10690 if { (ac_try="$ac_compile" | |
10691 case "(($ac_try" in | |
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10693 *) ac_try_echo=$ac_try;; | |
10694 esac | |
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10696 $as_echo "$ac_try_echo") >&5 | |
10697 (eval "$ac_compile") 2>conftest.er1 | |
10698 ac_status=$? | |
10699 grep -v '^ *+' conftest.er1 >conftest.err | |
10700 rm -f conftest.er1 | |
10701 cat conftest.err >&5 | |
10702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10703 (exit $ac_status); } && { | |
10704 test -z "$ac_c_werror_flag" || | |
10705 test ! -s conftest.err | |
10706 } && test -s conftest.$ac_objext; then | |
10707 cat >conftest.$ac_ext <<_ACEOF | |
10708 /* confdefs.h. */ | |
10709 _ACEOF | |
10710 cat confdefs.h >>conftest.$ac_ext | |
10711 cat >>conftest.$ac_ext <<_ACEOF | |
10712 /* end confdefs.h. */ | |
10713 $ac_includes_default | |
10714 int | |
10715 main () | |
10716 { | |
10717 if (sizeof ((size_t))) | |
10718 return 0; | |
10719 ; | |
10720 return 0; | |
10721 } | |
10722 _ACEOF | |
10723 rm -f conftest.$ac_objext | |
10724 if { (ac_try="$ac_compile" | |
10725 case "(($ac_try" in | |
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10727 *) ac_try_echo=$ac_try;; | |
10728 esac | |
10729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10730 $as_echo "$ac_try_echo") >&5 | |
10731 (eval "$ac_compile") 2>conftest.er1 | |
10732 ac_status=$? | |
10733 grep -v '^ *+' conftest.er1 >conftest.err | |
10734 rm -f conftest.er1 | |
10735 cat conftest.err >&5 | |
10736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10737 (exit $ac_status); } && { | |
10738 test -z "$ac_c_werror_flag" || | |
10739 test ! -s conftest.err | |
10740 } && test -s conftest.$ac_objext; then | |
10741 : | |
10742 else | |
10743 $as_echo "$as_me: failed program was:" >&5 | |
10744 sed 's/^/| /' conftest.$ac_ext >&5 | |
10745 | |
10746 ac_cv_type_size_t=yes | |
10747 fi | |
10748 | |
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10750 else | |
10751 $as_echo "$as_me: failed program was:" >&5 | |
10752 sed 's/^/| /' conftest.$ac_ext >&5 | |
10753 | |
10754 | |
10755 fi | |
10756 | |
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10758 fi | |
10759 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
10760 $as_echo "$ac_cv_type_size_t" >&6; } | |
10761 if test "x$ac_cv_type_size_t" = x""yes; then | |
10762 : | |
10763 else | |
10764 | |
10765 cat >>confdefs.h <<_ACEOF | |
10766 #define size_t unsigned int | |
10767 _ACEOF | |
10768 | |
10769 fi | |
10770 | |
10771 | |
10772 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 | |
10773 $as_echo_n "checking for inttypes.h... " >&6; } | |
10774 if test "${gl_cv_header_inttypes_h+set}" = set; then | |
10775 $as_echo_n "(cached) " >&6 | |
10776 else | |
10777 cat >conftest.$ac_ext <<_ACEOF | |
10778 /* confdefs.h. */ | |
10779 _ACEOF | |
10780 cat confdefs.h >>conftest.$ac_ext | |
10781 cat >>conftest.$ac_ext <<_ACEOF | |
10782 /* end confdefs.h. */ | |
10783 #include <sys/types.h> | |
10784 #include <inttypes.h> | |
10785 int | |
10786 main () | |
10787 { | |
10788 uintmax_t i = (uintmax_t) -1; return !i; | |
10789 ; | |
10790 return 0; | |
10791 } | |
10792 _ACEOF | |
10793 rm -f conftest.$ac_objext | |
10794 if { (ac_try="$ac_compile" | |
10795 case "(($ac_try" in | |
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10797 *) ac_try_echo=$ac_try;; | |
10798 esac | |
10799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10800 $as_echo "$ac_try_echo") >&5 | |
10801 (eval "$ac_compile") 2>conftest.er1 | |
10802 ac_status=$? | |
10803 grep -v '^ *+' conftest.er1 >conftest.err | |
10804 rm -f conftest.er1 | |
10805 cat conftest.err >&5 | |
10806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10807 (exit $ac_status); } && { | |
10808 test -z "$ac_c_werror_flag" || | |
10809 test ! -s conftest.err | |
10810 } && test -s conftest.$ac_objext; then | |
10811 gl_cv_header_inttypes_h=yes | |
10812 else | |
10813 $as_echo "$as_me: failed program was:" >&5 | |
10814 sed 's/^/| /' conftest.$ac_ext >&5 | |
10815 | |
10816 gl_cv_header_inttypes_h=no | |
10817 fi | |
10818 | |
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10820 fi | |
10821 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 | |
10822 $as_echo "$gl_cv_header_inttypes_h" >&6; } | |
10823 if test $gl_cv_header_inttypes_h = yes; then | |
10824 | |
10825 cat >>confdefs.h <<_ACEOF | |
10826 #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
10827 _ACEOF | |
10828 | |
10829 fi | |
10830 | |
10831 | |
10832 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 | |
10833 $as_echo_n "checking for stdint.h... " >&6; } | |
10834 if test "${gl_cv_header_stdint_h+set}" = set; then | |
10835 $as_echo_n "(cached) " >&6 | |
10836 else | |
10837 cat >conftest.$ac_ext <<_ACEOF | |
10838 /* confdefs.h. */ | |
10839 _ACEOF | |
10840 cat confdefs.h >>conftest.$ac_ext | |
10841 cat >>conftest.$ac_ext <<_ACEOF | |
10842 /* end confdefs.h. */ | |
10843 #include <sys/types.h> | |
10844 #include <stdint.h> | |
10845 int | |
10846 main () | |
10847 { | |
10848 uintmax_t i = (uintmax_t) -1; return !i; | |
10849 ; | |
10850 return 0; | |
10851 } | |
10852 _ACEOF | |
10853 rm -f conftest.$ac_objext | |
10854 if { (ac_try="$ac_compile" | |
10855 case "(($ac_try" in | |
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10857 *) ac_try_echo=$ac_try;; | |
10858 esac | |
10859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10860 $as_echo "$ac_try_echo") >&5 | |
10861 (eval "$ac_compile") 2>conftest.er1 | |
10862 ac_status=$? | |
10863 grep -v '^ *+' conftest.er1 >conftest.err | |
10864 rm -f conftest.er1 | |
10865 cat conftest.err >&5 | |
10866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10867 (exit $ac_status); } && { | |
10868 test -z "$ac_c_werror_flag" || | |
10869 test ! -s conftest.err | |
10870 } && test -s conftest.$ac_objext; then | |
10871 gl_cv_header_stdint_h=yes | |
10872 else | |
10873 $as_echo "$as_me: failed program was:" >&5 | |
10874 sed 's/^/| /' conftest.$ac_ext >&5 | |
10875 | |
10876 gl_cv_header_stdint_h=no | |
10877 fi | |
10878 | |
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10880 fi | |
10881 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 | |
10882 $as_echo "$gl_cv_header_stdint_h" >&6; } | |
10883 if test $gl_cv_header_stdint_h = yes; then | |
10884 | |
10885 cat >>confdefs.h <<_ACEOF | |
10886 #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
10887 _ACEOF | |
10888 | |
10889 fi | |
10890 | |
10891 | |
10892 | |
10893 | |
10894 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 | |
10895 $as_echo_n "checking for intmax_t... " >&6; } | |
10896 if test "${gt_cv_c_intmax_t+set}" = set; then | |
10897 $as_echo_n "(cached) " >&6 | |
10898 else | |
10899 cat >conftest.$ac_ext <<_ACEOF | |
10900 /* confdefs.h. */ | |
10901 _ACEOF | |
10902 cat confdefs.h >>conftest.$ac_ext | |
10903 cat >>conftest.$ac_ext <<_ACEOF | |
10904 /* end confdefs.h. */ | |
10905 | |
10906 #include <stddef.h> | |
10907 #include <stdlib.h> | |
10908 #if HAVE_STDINT_H_WITH_UINTMAX | |
10909 #include <stdint.h> | |
10910 #endif | |
10911 #if HAVE_INTTYPES_H_WITH_UINTMAX | |
10912 #include <inttypes.h> | |
10913 #endif | |
10914 | |
10915 int | |
10916 main () | |
10917 { | |
10918 intmax_t x = -1; return !x; | |
10919 ; | |
10920 return 0; | |
10921 } | |
10922 _ACEOF | |
10923 rm -f conftest.$ac_objext | |
10924 if { (ac_try="$ac_compile" | |
10925 case "(($ac_try" in | |
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10927 *) ac_try_echo=$ac_try;; | |
10928 esac | |
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10930 $as_echo "$ac_try_echo") >&5 | |
10931 (eval "$ac_compile") 2>conftest.er1 | |
10932 ac_status=$? | |
10933 grep -v '^ *+' conftest.er1 >conftest.err | |
10934 rm -f conftest.er1 | |
10935 cat conftest.err >&5 | |
10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10937 (exit $ac_status); } && { | |
10938 test -z "$ac_c_werror_flag" || | |
10939 test ! -s conftest.err | |
10940 } && test -s conftest.$ac_objext; then | |
10941 gt_cv_c_intmax_t=yes | |
10942 else | |
10943 $as_echo "$as_me: failed program was:" >&5 | |
10944 sed 's/^/| /' conftest.$ac_ext >&5 | |
10945 | |
10946 gt_cv_c_intmax_t=no | |
10947 fi | |
10948 | |
10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10950 fi | |
10951 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 | |
10952 $as_echo "$gt_cv_c_intmax_t" >&6; } | |
10953 if test $gt_cv_c_intmax_t = yes; then | |
10954 | |
10955 cat >>confdefs.h <<\_ACEOF | |
10956 #define HAVE_INTMAX_T 1 | |
10957 _ACEOF | |
10958 | |
10959 else | |
10960 | |
10961 test $ac_cv_type_long_long_int = yes \ | |
10962 && ac_type='long long' \ | |
10963 || ac_type='long' | |
10964 | |
10965 cat >>confdefs.h <<_ACEOF | |
10966 #define intmax_t $ac_type | |
10967 _ACEOF | |
10968 | |
10969 fi | |
10970 | |
10971 | |
10972 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
10973 $as_echo_n "checking whether vsnprintf is declared... " >&6; } | |
10974 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
10975 $as_echo_n "(cached) " >&6 | |
10976 else | |
10977 cat >conftest.$ac_ext <<_ACEOF | |
10978 /* confdefs.h. */ | |
10979 _ACEOF | |
10980 cat confdefs.h >>conftest.$ac_ext | |
10981 cat >>conftest.$ac_ext <<_ACEOF | |
10982 /* end confdefs.h. */ | |
10983 $ac_includes_default | |
10984 int | |
10985 main () | |
10986 { | |
10987 #ifndef vsnprintf | |
10988 (void) vsnprintf; | |
10989 #endif | |
10990 | |
10991 ; | |
10992 return 0; | |
10993 } | |
10994 _ACEOF | |
10995 rm -f conftest.$ac_objext | |
10996 if { (ac_try="$ac_compile" | |
10997 case "(($ac_try" in | |
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10999 *) ac_try_echo=$ac_try;; | |
11000 esac | |
11001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11002 $as_echo "$ac_try_echo") >&5 | |
11003 (eval "$ac_compile") 2>conftest.er1 | |
11004 ac_status=$? | |
11005 grep -v '^ *+' conftest.er1 >conftest.err | |
11006 rm -f conftest.er1 | |
11007 cat conftest.err >&5 | |
11008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11009 (exit $ac_status); } && { | |
11010 test -z "$ac_c_werror_flag" || | |
11011 test ! -s conftest.err | |
11012 } && test -s conftest.$ac_objext; then | |
11013 ac_cv_have_decl_vsnprintf=yes | |
11014 else | |
11015 $as_echo "$as_me: failed program was:" >&5 | |
11016 sed 's/^/| /' conftest.$ac_ext >&5 | |
11017 | |
11018 ac_cv_have_decl_vsnprintf=no | |
11019 fi | |
11020 | |
11021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11022 fi | |
11023 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
11024 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; } | |
11025 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then | |
11026 | |
11027 cat >>confdefs.h <<_ACEOF | |
11028 #define HAVE_DECL_VSNPRINTF 1 | |
11029 _ACEOF | |
11030 | |
11031 | |
11032 else | |
11033 cat >>confdefs.h <<_ACEOF | |
11034 #define HAVE_DECL_VSNPRINTF 0 | |
11035 _ACEOF | |
11036 | |
11037 | |
11038 fi | |
11039 | |
11040 | |
11041 | |
11042 | |
11043 GNULIB_BTOWC=0; | |
11044 GNULIB_WCTOB=0; | |
11045 GNULIB_MBSINIT=0; | |
11046 GNULIB_MBRTOWC=0; | |
11047 GNULIB_MBRLEN=0; | |
11048 GNULIB_MBSRTOWCS=0; | |
11049 GNULIB_MBSNRTOWCS=0; | |
11050 GNULIB_WCRTOMB=0; | |
11051 GNULIB_WCSRTOMBS=0; | |
11052 GNULIB_WCSNRTOMBS=0; | |
11053 GNULIB_WCWIDTH=0; | |
11054 HAVE_BTOWC=1; | |
11055 HAVE_MBSINIT=1; | |
11056 HAVE_MBRTOWC=1; | |
11057 HAVE_MBRLEN=1; | |
11058 HAVE_MBSRTOWCS=1; | |
11059 HAVE_MBSNRTOWCS=1; | |
11060 HAVE_WCRTOMB=1; | |
11061 HAVE_WCSRTOMBS=1; | |
11062 HAVE_WCSNRTOMBS=1; | |
11063 HAVE_DECL_WCTOB=1; | |
11064 HAVE_DECL_WCWIDTH=1; | |
11065 REPLACE_MBSTATE_T=0; | |
11066 REPLACE_BTOWC=0; | |
11067 REPLACE_WCTOB=0; | |
11068 REPLACE_MBSINIT=0; | |
11069 REPLACE_MBRTOWC=0; | |
11070 REPLACE_MBRLEN=0; | |
11071 REPLACE_MBSRTOWCS=0; | |
11072 REPLACE_MBSNRTOWCS=0; | |
11073 REPLACE_WCRTOMB=0; | |
11074 REPLACE_WCSRTOMBS=0; | |
11075 REPLACE_WCWIDTH=0; | |
11076 WCHAR_H=''; | |
11077 | |
11078 | |
11079 if false; then | |
11080 GL_COND_LIBTOOL_TRUE= | |
11081 GL_COND_LIBTOOL_FALSE='#' | |
11082 else | |
11083 GL_COND_LIBTOOL_TRUE='#' | |
11084 GL_COND_LIBTOOL_FALSE= | |
11085 fi | |
11086 | |
11087 gl_cond_libtool=false | |
11088 gl_libdeps= | |
11089 gl_ltlibdeps= | |
11090 | |
11091 | |
11092 | |
11093 | |
11094 | |
11095 | |
11096 | |
11097 | |
11098 gl_source_base='lib' | |
11099 | |
11100 | |
11101 | |
11102 | |
11103 | |
11104 if test $ac_cv_func_alloca_works = no; then | |
11105 : | |
11106 fi | |
11107 | |
11108 # Define an additional variable used in the Makefile substitution. | |
11109 if test $ac_cv_working_alloca_h = yes; then | |
11110 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5 | |
11111 $as_echo_n "checking for alloca as a compiler built-in... " >&6; } | |
11112 if test "${gl_cv_rpl_alloca+set}" = set; then | |
11113 $as_echo_n "(cached) " >&6 | |
11114 else | |
11115 | |
11116 cat >conftest.$ac_ext <<_ACEOF | |
11117 /* confdefs.h. */ | |
11118 _ACEOF | |
11119 cat confdefs.h >>conftest.$ac_ext | |
11120 cat >>conftest.$ac_ext <<_ACEOF | |
11121 /* end confdefs.h. */ | |
11122 | |
11123 #if defined __GNUC__ || defined _AIX || defined _MSC_VER | |
11124 Need own alloca | |
11125 #endif | |
11126 | |
11127 _ACEOF | |
11128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11129 $EGREP "Need own alloca" >/dev/null 2>&1; then | |
11130 gl_cv_rpl_alloca=yes | |
11131 else | |
11132 gl_cv_rpl_alloca=no | |
11133 fi | |
11134 rm -f conftest* | |
11135 | |
11136 | |
11137 fi | |
11138 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5 | |
11139 $as_echo "$gl_cv_rpl_alloca" >&6; } | |
11140 if test $gl_cv_rpl_alloca = yes; then | |
11141 | |
11142 cat >>confdefs.h <<\_ACEOF | |
11143 #define HAVE_ALLOCA 1 | |
11144 _ACEOF | |
11145 | |
11146 ALLOCA_H=alloca.h | |
11147 else | |
11148 ALLOCA_H= | |
11149 fi | |
11150 else | |
11151 ALLOCA_H=alloca.h | |
11152 fi | |
11153 | |
11154 | |
11155 | |
11156 | |
11157 | |
11158 | |
11159 | |
11160 | |
11161 | |
11162 | |
11163 | |
11164 | |
11165 | |
11166 | |
11167 | |
11168 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | |
11169 | |
11170 | |
11171 | |
11172 | |
11173 | |
11174 | |
11175 | |
11176 | |
11177 | |
11178 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | |
11179 | |
11180 | |
11181 GETOPT_H=getopt.h | |
11182 | |
11183 cat >>confdefs.h <<\_ACEOF | |
11184 #define __GETOPT_PREFIX rpl_ | |
11185 _ACEOF | |
11186 | |
11187 | |
11188 | |
11189 | |
11190 | |
11191 : | |
11192 | |
11193 | |
11194 | |
11195 | |
11196 | |
11197 | |
11198 | |
11199 | |
11200 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5 | |
11201 $as_echo_n "checking whether program_invocation_name is declared... " >&6; } | |
11202 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then | |
11203 $as_echo_n "(cached) " >&6 | |
11204 else | |
11205 cat >conftest.$ac_ext <<_ACEOF | |
11206 /* confdefs.h. */ | |
11207 _ACEOF | |
11208 cat confdefs.h >>conftest.$ac_ext | |
11209 cat >>conftest.$ac_ext <<_ACEOF | |
11210 /* end confdefs.h. */ | |
11211 #include <errno.h> | |
11212 | |
11213 int | |
11214 main () | |
11215 { | |
11216 #ifndef program_invocation_name | |
11217 (void) program_invocation_name; | |
11218 #endif | |
11219 | |
11220 ; | |
11221 return 0; | |
11222 } | |
11223 _ACEOF | |
11224 rm -f conftest.$ac_objext | |
11225 if { (ac_try="$ac_compile" | |
11226 case "(($ac_try" in | |
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11228 *) ac_try_echo=$ac_try;; | |
11229 esac | |
11230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11231 $as_echo "$ac_try_echo") >&5 | |
11232 (eval "$ac_compile") 2>conftest.er1 | |
11233 ac_status=$? | |
11234 grep -v '^ *+' conftest.er1 >conftest.err | |
11235 rm -f conftest.er1 | |
11236 cat conftest.err >&5 | |
11237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11238 (exit $ac_status); } && { | |
11239 test -z "$ac_c_werror_flag" || | |
11240 test ! -s conftest.err | |
11241 } && test -s conftest.$ac_objext; then | |
11242 ac_cv_have_decl_program_invocation_name=yes | |
11243 else | |
11244 $as_echo "$as_me: failed program was:" >&5 | |
11245 sed 's/^/| /' conftest.$ac_ext >&5 | |
11246 | |
11247 ac_cv_have_decl_program_invocation_name=no | |
11248 fi | |
11249 | |
11250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11251 fi | |
11252 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5 | |
11253 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; } | |
11254 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then | |
11255 | |
11256 cat >>confdefs.h <<\_ACEOF | |
11257 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1 | |
11258 _ACEOF | |
11259 | |
11260 else | |
11261 | |
11262 cat >>confdefs.h <<\_ACEOF | |
11263 #define GNULIB_PROGRAM_INVOCATION_NAME 1 | |
11264 _ACEOF | |
11265 | |
11266 fi | |
11267 | |
11268 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5 | |
11269 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; } | |
11270 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then | |
11271 $as_echo_n "(cached) " >&6 | |
11272 else | |
11273 cat >conftest.$ac_ext <<_ACEOF | |
11274 /* confdefs.h. */ | |
11275 _ACEOF | |
11276 cat confdefs.h >>conftest.$ac_ext | |
11277 cat >>conftest.$ac_ext <<_ACEOF | |
11278 /* end confdefs.h. */ | |
11279 #include <errno.h> | |
11280 | |
11281 int | |
11282 main () | |
11283 { | |
11284 #ifndef program_invocation_short_name | |
11285 (void) program_invocation_short_name; | |
11286 #endif | |
11287 | |
11288 ; | |
11289 return 0; | |
11290 } | |
11291 _ACEOF | |
11292 rm -f conftest.$ac_objext | |
11293 if { (ac_try="$ac_compile" | |
11294 case "(($ac_try" in | |
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11296 *) ac_try_echo=$ac_try;; | |
11297 esac | |
11298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11299 $as_echo "$ac_try_echo") >&5 | |
11300 (eval "$ac_compile") 2>conftest.er1 | |
11301 ac_status=$? | |
11302 grep -v '^ *+' conftest.er1 >conftest.err | |
11303 rm -f conftest.er1 | |
11304 cat conftest.err >&5 | |
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11306 (exit $ac_status); } && { | |
11307 test -z "$ac_c_werror_flag" || | |
11308 test ! -s conftest.err | |
11309 } && test -s conftest.$ac_objext; then | |
11310 ac_cv_have_decl_program_invocation_short_name=yes | |
11311 else | |
11312 $as_echo "$as_me: failed program was:" >&5 | |
11313 sed 's/^/| /' conftest.$ac_ext >&5 | |
11314 | |
11315 ac_cv_have_decl_program_invocation_short_name=no | |
11316 fi | |
11317 | |
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11319 fi | |
11320 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5 | |
11321 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; } | |
11322 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then | |
11323 | |
11324 cat >>confdefs.h <<\_ACEOF | |
11325 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1 | |
11326 _ACEOF | |
11327 | |
11328 else | |
11329 | |
11330 cat >>confdefs.h <<\_ACEOF | |
11331 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1 | |
11332 _ACEOF | |
11333 | |
11334 fi | |
11335 | |
11336 | |
11337 # Check if program_invocation_name and program_invocation_short_name | |
11338 # are defined elsewhere. It is improbable that only one of them will | |
11339 # be defined and other not, I prefer to stay on the safe side and to | |
11340 # test each one separately. | |
11341 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5 | |
11342 $as_echo_n "checking whether program_invocation_name is defined... " >&6; } | |
11343 cat >conftest.$ac_ext <<_ACEOF | |
11344 /* confdefs.h. */ | |
11345 _ACEOF | |
11346 cat confdefs.h >>conftest.$ac_ext | |
11347 cat >>conftest.$ac_ext <<_ACEOF | |
11348 /* end confdefs.h. */ | |
11349 #include <argp.h> | |
11350 int | |
11351 main () | |
11352 { | |
11353 program_invocation_name = "test"; | |
11354 ; | |
11355 return 0; | |
11356 } | |
11357 _ACEOF | |
11358 rm -f conftest.$ac_objext conftest$ac_exeext | |
11359 if { (ac_try="$ac_link" | |
11360 case "(($ac_try" in | |
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11362 *) ac_try_echo=$ac_try;; | |
11363 esac | |
11364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11365 $as_echo "$ac_try_echo") >&5 | |
11366 (eval "$ac_link") 2>conftest.er1 | |
11367 ac_status=$? | |
11368 grep -v '^ *+' conftest.er1 >conftest.err | |
11369 rm -f conftest.er1 | |
11370 cat conftest.err >&5 | |
11371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11372 (exit $ac_status); } && { | |
11373 test -z "$ac_c_werror_flag" || | |
11374 test ! -s conftest.err | |
11375 } && test -s conftest$ac_exeext && { | |
11376 test "$cross_compiling" = yes || | |
11377 $as_test_x conftest$ac_exeext | |
11378 }; then | |
11379 | |
11380 cat >>confdefs.h <<\_ACEOF | |
11381 #define HAVE_PROGRAM_INVOCATION_NAME 1 | |
11382 _ACEOF | |
11383 | |
11384 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11385 $as_echo "yes" >&6; } | |
11386 else | |
11387 $as_echo "$as_me: failed program was:" >&5 | |
11388 sed 's/^/| /' conftest.$ac_ext >&5 | |
11389 | |
11390 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11391 $as_echo "no" >&6; } | |
11392 fi | |
11393 | |
11394 rm -rf conftest.dSYM | |
11395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11396 conftest$ac_exeext conftest.$ac_ext | |
11397 | |
11398 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5 | |
11399 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; } | |
11400 cat >conftest.$ac_ext <<_ACEOF | |
11401 /* confdefs.h. */ | |
11402 _ACEOF | |
11403 cat confdefs.h >>conftest.$ac_ext | |
11404 cat >>conftest.$ac_ext <<_ACEOF | |
11405 /* end confdefs.h. */ | |
11406 #include <argp.h> | |
11407 int | |
11408 main () | |
11409 { | |
11410 program_invocation_short_name = "test"; | |
11411 ; | |
11412 return 0; | |
11413 } | |
11414 _ACEOF | |
11415 rm -f conftest.$ac_objext conftest$ac_exeext | |
11416 if { (ac_try="$ac_link" | |
11417 case "(($ac_try" in | |
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11419 *) ac_try_echo=$ac_try;; | |
11420 esac | |
11421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11422 $as_echo "$ac_try_echo") >&5 | |
11423 (eval "$ac_link") 2>conftest.er1 | |
11424 ac_status=$? | |
11425 grep -v '^ *+' conftest.er1 >conftest.err | |
11426 rm -f conftest.er1 | |
11427 cat conftest.err >&5 | |
11428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11429 (exit $ac_status); } && { | |
11430 test -z "$ac_c_werror_flag" || | |
11431 test ! -s conftest.err | |
11432 } && test -s conftest$ac_exeext && { | |
11433 test "$cross_compiling" = yes || | |
11434 $as_test_x conftest$ac_exeext | |
11435 }; then | |
11436 | |
11437 cat >>confdefs.h <<\_ACEOF | |
11438 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1 | |
11439 _ACEOF | |
11440 | |
11441 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11442 $as_echo "yes" >&6; } | |
11443 else | |
11444 $as_echo "$as_me: failed program was:" >&5 | |
11445 sed 's/^/| /' conftest.$ac_ext >&5 | |
11446 | |
11447 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11448 $as_echo "no" >&6; } | |
11449 fi | |
11450 | |
11451 rm -rf conftest.dSYM | |
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11453 conftest$ac_exeext conftest.$ac_ext | |
11454 | |
11455 | |
11456 : | |
11457 | |
11458 | |
11459 | |
11460 | |
11461 | |
11462 | |
11463 : | |
11464 | |
11465 | |
11466 | |
11467 | |
11468 | |
11469 | |
11470 : | |
11471 | |
11472 | |
11473 | |
11474 | |
11475 | |
11476 | |
11477 : | |
11478 | |
11479 | |
11480 | |
11481 | |
11482 | |
11483 | |
11484 : | |
11485 | |
11486 | |
11487 | |
11488 | |
11489 | |
11490 | |
11491 : | |
11492 | |
11493 | |
11494 | |
11495 | |
11496 | |
11497 | |
11498 : | |
11499 | |
11500 | |
11501 | |
11502 | |
11503 | |
11504 | |
11505 : | |
11506 | |
11507 | |
11508 | |
11509 | |
11510 | |
11511 | |
11512 : | |
11513 | |
11514 | |
11515 | |
11516 | |
11517 | |
11518 | |
11519 : | |
11520 | |
11521 | |
11522 | |
11523 | |
11524 | |
11525 | |
11526 : | |
11527 | |
11528 | |
11529 | |
11530 | |
11531 | |
11532 | |
11533 : | |
11534 | |
11535 | |
11536 | |
11537 | |
11538 | |
11539 | |
11540 : | |
11541 | |
11542 | |
11543 | |
11544 | |
11545 | |
11546 | |
11547 : | |
11548 | |
11549 | |
11550 | |
11551 | |
11552 | |
11553 | |
11554 | |
11555 | |
11556 | |
11557 : | |
11558 | |
11559 | |
11560 | |
11561 | |
11562 | |
11563 | |
11564 | |
11565 | |
11566 | |
11567 | |
11568 | |
11569 | |
11570 | |
11571 | |
11572 | |
11573 | |
11574 | |
11575 | |
11576 | |
11577 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext" | |
11578 | |
11579 | |
11580 | |
11581 | |
11582 | |
11583 | |
11584 | |
11585 | |
11586 | |
11587 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext" | |
11588 | |
11589 | |
11590 | |
11591 | |
11592 | |
11593 | |
11594 | |
11595 | |
11596 | |
11597 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext" | |
11598 | |
11599 | |
11600 | |
11601 | |
11602 | |
11603 | |
11604 | |
11605 | |
11606 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5 | |
11607 $as_echo_n "checking whether // is distinct from /... " >&6; } | |
11608 if test "${gl_cv_double_slash_root+set}" = set; then | |
11609 $as_echo_n "(cached) " >&6 | |
11610 else | |
11611 if test x"$cross_compiling" = xyes ; then | |
11612 # When cross-compiling, there is no way to tell whether // is special | |
11613 # short of a list of hosts. However, the only known hosts to date | |
11614 # that have a distinct // are Apollo DomainOS (too old to port to), | |
11615 # Cygwin, and z/OS. If anyone knows of another system for which // has | |
11616 # special semantics and is distinct from /, please report it to | |
11617 # <bug-gnulib@gnu.org>. | |
11618 case $host in | |
11619 *-cygwin | i370-ibm-openedition) | |
11620 gl_cv_double_slash_root=yes ;; | |
11621 *) | |
11622 # Be optimistic and assume that / and // are the same when we | |
11623 # don't know. | |
11624 gl_cv_double_slash_root='unknown, assuming no' ;; | |
11625 esac | |
11626 else | |
11627 set x `ls -di / // 2>/dev/null` | |
11628 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then | |
11629 gl_cv_double_slash_root=no | |
11630 else | |
11631 gl_cv_double_slash_root=yes | |
11632 fi | |
11633 fi | |
11634 fi | |
11635 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5 | |
11636 $as_echo "$gl_cv_double_slash_root" >&6; } | |
11637 if test "$gl_cv_double_slash_root" = yes; then | |
11638 | |
11639 cat >>confdefs.h <<\_ACEOF | |
11640 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1 | |
11641 _ACEOF | |
11642 | |
11643 fi | |
11644 | |
11645 | |
11646 | |
11647 | |
11648 | |
11649 | |
11650 | |
11651 | |
11652 | |
11653 | |
11654 | |
11655 | |
11656 | |
11657 | |
11658 | |
11659 | |
11660 | |
11661 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5 | |
11662 $as_echo_n "checking for error_at_line... " >&6; } | |
11663 if test "${ac_cv_lib_error_at_line+set}" = set; then | |
11664 $as_echo_n "(cached) " >&6 | |
11665 else | |
11666 cat >conftest.$ac_ext <<_ACEOF | |
11667 /* confdefs.h. */ | |
11668 _ACEOF | |
11669 cat confdefs.h >>conftest.$ac_ext | |
11670 cat >>conftest.$ac_ext <<_ACEOF | |
11671 /* end confdefs.h. */ | |
11672 #include <error.h> | |
11673 int | |
11674 main () | |
11675 { | |
11676 error_at_line (0, 0, "", 0, "an error occurred"); | |
11677 ; | |
11678 return 0; | |
11679 } | |
11680 _ACEOF | |
11681 rm -f conftest.$ac_objext conftest$ac_exeext | |
11682 if { (ac_try="$ac_link" | |
11683 case "(($ac_try" in | |
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11685 *) ac_try_echo=$ac_try;; | |
11686 esac | |
11687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11688 $as_echo "$ac_try_echo") >&5 | |
11689 (eval "$ac_link") 2>conftest.er1 | |
11690 ac_status=$? | |
11691 grep -v '^ *+' conftest.er1 >conftest.err | |
11692 rm -f conftest.er1 | |
11693 cat conftest.err >&5 | |
11694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11695 (exit $ac_status); } && { | |
11696 test -z "$ac_c_werror_flag" || | |
11697 test ! -s conftest.err | |
11698 } && test -s conftest$ac_exeext && { | |
11699 test "$cross_compiling" = yes || | |
11700 $as_test_x conftest$ac_exeext | |
11701 }; then | |
11702 ac_cv_lib_error_at_line=yes | |
11703 else | |
11704 $as_echo "$as_me: failed program was:" >&5 | |
11705 sed 's/^/| /' conftest.$ac_ext >&5 | |
11706 | |
11707 ac_cv_lib_error_at_line=no | |
11708 fi | |
11709 | |
11710 rm -rf conftest.dSYM | |
11711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11712 conftest$ac_exeext conftest.$ac_ext | |
11713 fi | |
11714 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 | |
11715 $as_echo "$ac_cv_lib_error_at_line" >&6; } | |
11716 if test $ac_cv_lib_error_at_line = no; then | |
11717 | |
11718 | |
11719 | |
11720 | |
11721 | |
11722 | |
11723 | |
11724 | |
11725 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" | |
11726 | |
11727 fi | |
11728 | |
11729 | |
11730 | |
11731 : | |
11732 | |
11733 | |
11734 | |
11735 | |
11736 | |
11737 | |
11738 | |
11739 | |
11740 | |
11741 | |
11742 | |
11743 | |
11744 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext" | |
11745 | |
11746 | |
11747 : | |
11748 | |
11749 | |
11750 | |
11751 | |
11752 FLOAT_H= | |
11753 case "$host_os" in | |
11754 beos* | openbsd*) | |
11755 FLOAT_H=float.h | |
11756 | |
11757 | |
11758 | |
11759 | |
11760 : | |
11761 | |
11762 | |
11763 | |
11764 | |
11765 | |
11766 | |
11767 | |
11768 if test $gl_cv_have_include_next = yes; then | |
11769 gl_cv_next_float_h='<'float.h'>' | |
11770 else | |
11771 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5 | |
11772 $as_echo_n "checking absolute name of <float.h>... " >&6; } | |
11773 if test "${gl_cv_next_float_h+set}" = set; then | |
11774 $as_echo_n "(cached) " >&6 | |
11775 else | |
11776 | |
11777 if test $ac_cv_header_float_h = yes; then | |
11778 cat >conftest.$ac_ext <<_ACEOF | |
11779 /* confdefs.h. */ | |
11780 _ACEOF | |
11781 cat confdefs.h >>conftest.$ac_ext | |
11782 cat >>conftest.$ac_ext <<_ACEOF | |
11783 /* end confdefs.h. */ | |
11784 #include <float.h> | |
11785 | |
11786 _ACEOF | |
11787 case "$host_os" in | |
11788 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
11789 *) gl_absname_cpp="$ac_cpp" ;; | |
11790 esac | |
11791 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
11792 sed -n '\#/float.h#{ | |
11793 s#.*"\(.*/float.h\)".*#\1# | |
11794 s#^/[^/]#//&# | |
11795 p | |
11796 q | |
11797 }'`'"' | |
11798 else | |
11799 gl_cv_next_float_h='<'float.h'>' | |
11800 fi | |
11801 | |
11802 fi | |
11803 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5 | |
11804 $as_echo "$gl_cv_next_float_h" >&6; } | |
11805 fi | |
11806 NEXT_FLOAT_H=$gl_cv_next_float_h | |
11807 | |
11808 | |
11809 | |
11810 ;; | |
11811 esac | |
11812 | |
11813 | |
11814 | |
11815 | |
11816 if test -n "$GETOPT_H"; then | |
11817 | |
11818 | |
11819 | |
11820 | |
11821 | |
11822 | |
11823 | |
11824 | |
11825 | |
11826 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | |
11827 | |
11828 | |
11829 | |
11830 | |
11831 | |
11832 | |
11833 | |
11834 | |
11835 | |
11836 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | |
11837 | |
11838 | |
11839 GETOPT_H=getopt.h | |
11840 | |
11841 cat >>confdefs.h <<\_ACEOF | |
11842 #define __GETOPT_PREFIX rpl_ | |
11843 _ACEOF | |
11844 | |
11845 | |
11846 | |
11847 | |
11848 | |
11849 : | |
11850 | |
11851 | |
11852 | |
11853 | |
11854 | |
11855 | |
11856 | |
11857 fi | |
11858 | |
11859 | |
11860 | |
11861 | |
11862 | |
11863 | |
11864 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5 | |
11865 $as_echo_n "checking whether the compiler generally respects inline... " >&6; } | |
11866 if test "${gl_cv_c_inline_effective+set}" = set; then | |
11867 $as_echo_n "(cached) " >&6 | |
11868 else | |
11869 if test $ac_cv_c_inline = no; then | |
11870 gl_cv_c_inline_effective=no | |
11871 else | |
11872 cat >conftest.$ac_ext <<_ACEOF | |
11873 /* confdefs.h. */ | |
11874 _ACEOF | |
11875 cat confdefs.h >>conftest.$ac_ext | |
11876 cat >>conftest.$ac_ext <<_ACEOF | |
11877 /* end confdefs.h. */ | |
11878 | |
11879 int | |
11880 main () | |
11881 { | |
11882 #ifdef __NO_INLINE__ | |
11883 #error "inline is not effective" | |
11884 #endif | |
11885 ; | |
11886 return 0; | |
11887 } | |
11888 _ACEOF | |
11889 rm -f conftest.$ac_objext | |
11890 if { (ac_try="$ac_compile" | |
11891 case "(($ac_try" in | |
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11893 *) ac_try_echo=$ac_try;; | |
11894 esac | |
11895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11896 $as_echo "$ac_try_echo") >&5 | |
11897 (eval "$ac_compile") 2>conftest.er1 | |
11898 ac_status=$? | |
11899 grep -v '^ *+' conftest.er1 >conftest.err | |
11900 rm -f conftest.er1 | |
11901 cat conftest.err >&5 | |
11902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11903 (exit $ac_status); } && { | |
11904 test -z "$ac_c_werror_flag" || | |
11905 test ! -s conftest.err | |
11906 } && test -s conftest.$ac_objext; then | |
11907 gl_cv_c_inline_effective=yes | |
11908 else | |
11909 $as_echo "$as_me: failed program was:" >&5 | |
11910 sed 's/^/| /' conftest.$ac_ext >&5 | |
11911 | |
11912 gl_cv_c_inline_effective=no | |
11913 fi | |
11914 | |
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11916 fi | |
11917 | |
11918 fi | |
11919 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5 | |
11920 $as_echo "$gl_cv_c_inline_effective" >&6; } | |
11921 if test $gl_cv_c_inline_effective = yes; then | |
11922 | |
11923 cat >>confdefs.h <<\_ACEOF | |
11924 #define HAVE_INLINE 1 | |
11925 _ACEOF | |
11926 | |
11927 fi | |
11928 | |
11929 | |
11930 for ac_header in stdlib.h | |
11931 do | |
11932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11935 $as_echo_n "checking for $ac_header... " >&6; } | |
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11937 $as_echo_n "(cached) " >&6 | |
11938 fi | |
11939 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11940 $as_echo "$as_val"'` | |
11941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11942 $as_echo "$ac_res" >&6; } | |
11943 else | |
11944 # Is the header compilable? | |
11945 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11946 $as_echo_n "checking $ac_header usability... " >&6; } | |
11947 cat >conftest.$ac_ext <<_ACEOF | |
11948 /* confdefs.h. */ | |
11949 _ACEOF | |
11950 cat confdefs.h >>conftest.$ac_ext | |
11951 cat >>conftest.$ac_ext <<_ACEOF | |
11952 /* end confdefs.h. */ | |
11953 $ac_includes_default | |
11954 #include <$ac_header> | |
11955 _ACEOF | |
11956 rm -f conftest.$ac_objext | |
11957 if { (ac_try="$ac_compile" | |
11958 case "(($ac_try" in | |
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11960 *) ac_try_echo=$ac_try;; | |
11961 esac | |
11962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11963 $as_echo "$ac_try_echo") >&5 | |
11964 (eval "$ac_compile") 2>conftest.er1 | |
11965 ac_status=$? | |
11966 grep -v '^ *+' conftest.er1 >conftest.err | |
11967 rm -f conftest.er1 | |
11968 cat conftest.err >&5 | |
11969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11970 (exit $ac_status); } && { | |
11971 test -z "$ac_c_werror_flag" || | |
11972 test ! -s conftest.err | |
11973 } && test -s conftest.$ac_objext; then | |
11974 ac_header_compiler=yes | |
11975 else | |
11976 $as_echo "$as_me: failed program was:" >&5 | |
11977 sed 's/^/| /' conftest.$ac_ext >&5 | |
11978 | |
11979 ac_header_compiler=no | |
11980 fi | |
11981 | |
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11983 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11984 $as_echo "$ac_header_compiler" >&6; } | |
11985 | |
11986 # Is the header present? | |
11987 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11988 $as_echo_n "checking $ac_header presence... " >&6; } | |
11989 cat >conftest.$ac_ext <<_ACEOF | |
11990 /* confdefs.h. */ | |
11991 _ACEOF | |
11992 cat confdefs.h >>conftest.$ac_ext | |
11993 cat >>conftest.$ac_ext <<_ACEOF | |
11994 /* end confdefs.h. */ | |
11995 #include <$ac_header> | |
11996 _ACEOF | |
11997 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11998 case "(($ac_try" in | |
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12000 *) ac_try_echo=$ac_try;; | |
12001 esac | |
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12003 $as_echo "$ac_try_echo") >&5 | |
12004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12005 ac_status=$? | |
12006 grep -v '^ *+' conftest.er1 >conftest.err | |
12007 rm -f conftest.er1 | |
12008 cat conftest.err >&5 | |
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12010 (exit $ac_status); } >/dev/null && { | |
12011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12012 test ! -s conftest.err | |
12013 }; then | |
12014 ac_header_preproc=yes | |
12015 else | |
12016 $as_echo "$as_me: failed program was:" >&5 | |
12017 sed 's/^/| /' conftest.$ac_ext >&5 | |
12018 | |
12019 ac_header_preproc=no | |
12020 fi | |
12021 | |
12022 rm -f conftest.err conftest.$ac_ext | |
12023 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12024 $as_echo "$ac_header_preproc" >&6; } | |
12025 | |
12026 # So? What about this header? | |
12027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12028 yes:no: ) | |
12029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12030 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12032 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12033 ac_header_preproc=yes | |
12034 ;; | |
12035 no:yes:* ) | |
12036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12037 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12039 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12041 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12043 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12045 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12047 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12048 ( cat <<\_ASBOX | |
12049 ## -------------------------- ## | |
12050 ## Report this to lost@l-w.ca ## | |
12051 ## -------------------------- ## | |
12052 _ASBOX | |
12053 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
12054 ;; | |
12055 esac | |
12056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12057 $as_echo_n "checking for $ac_header... " >&6; } | |
12058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12059 $as_echo_n "(cached) " >&6 | |
12060 else | |
12061 eval "$as_ac_Header=\$ac_header_preproc" | |
12062 fi | |
12063 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12064 $as_echo "$as_val"'` | |
12065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12066 $as_echo "$ac_res" >&6; } | |
12067 | |
12068 fi | |
12069 as_val=`eval 'as_val=${'$as_ac_Header'} | |
12070 $as_echo "$as_val"'` | |
12071 if test "x$as_val" = x""yes; then | |
12072 cat >>confdefs.h <<_ACEOF | |
12073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12074 _ACEOF | |
12075 | |
12076 fi | |
12077 | |
12078 done | |
12079 | |
12080 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
12081 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
12082 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
12083 $as_echo_n "(cached) " >&6 | |
12084 else | |
12085 if test "$cross_compiling" = yes; then | |
12086 ac_cv_func_malloc_0_nonnull=no | |
12087 else | |
12088 cat >conftest.$ac_ext <<_ACEOF | |
12089 /* confdefs.h. */ | |
12090 _ACEOF | |
12091 cat confdefs.h >>conftest.$ac_ext | |
12092 cat >>conftest.$ac_ext <<_ACEOF | |
12093 /* end confdefs.h. */ | |
12094 #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
12095 # include <stdlib.h> | |
12096 #else | |
12097 char *malloc (); | |
12098 #endif | |
12099 | |
12100 int | |
12101 main () | |
12102 { | |
12103 return ! malloc (0); | |
12104 ; | |
12105 return 0; | |
12106 } | |
12107 _ACEOF | |
12108 rm -f conftest$ac_exeext | |
12109 if { (ac_try="$ac_link" | |
12110 case "(($ac_try" in | |
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12112 *) ac_try_echo=$ac_try;; | |
12113 esac | |
12114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12115 $as_echo "$ac_try_echo") >&5 | |
12116 (eval "$ac_link") 2>&5 | |
12117 ac_status=$? | |
12118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12120 { (case "(($ac_try" in | |
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12122 *) ac_try_echo=$ac_try;; | |
12123 esac | |
12124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12125 $as_echo "$ac_try_echo") >&5 | |
12126 (eval "$ac_try") 2>&5 | |
12127 ac_status=$? | |
12128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12129 (exit $ac_status); }; }; then | |
12130 ac_cv_func_malloc_0_nonnull=yes | |
12131 else | |
12132 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
12133 $as_echo "$as_me: failed program was:" >&5 | |
12134 sed 's/^/| /' conftest.$ac_ext >&5 | |
12135 | |
12136 ( exit $ac_status ) | |
12137 ac_cv_func_malloc_0_nonnull=no | |
12138 fi | |
12139 rm -rf conftest.dSYM | |
12140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12141 fi | |
12142 | |
12143 | |
12144 fi | |
12145 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
12146 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
12147 if test $ac_cv_func_malloc_0_nonnull = yes; then | |
12148 | |
12149 cat >>confdefs.h <<\_ACEOF | |
12150 #define HAVE_MALLOC 1 | |
12151 _ACEOF | |
12152 | |
12153 else | |
12154 cat >>confdefs.h <<\_ACEOF | |
12155 #define HAVE_MALLOC 0 | |
12156 _ACEOF | |
12157 | |
12158 | |
12159 | |
12160 | |
12161 | |
12162 | |
12163 | |
12164 | |
12165 | |
12166 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" | |
12167 | |
12168 | |
12169 cat >>confdefs.h <<\_ACEOF | |
12170 #define malloc rpl_malloc | |
12171 _ACEOF | |
12172 | |
12173 fi | |
12174 | |
12175 | |
12176 | |
12177 | |
12178 cat >>confdefs.h <<\_ACEOF | |
12179 #define GNULIB_MALLOC_GNU 1 | |
12180 _ACEOF | |
12181 | |
12182 | |
12183 | |
12184 if test $gl_cv_func_malloc_posix = yes; then | |
12185 HAVE_MALLOC_POSIX=1 | |
12186 | |
12187 cat >>confdefs.h <<\_ACEOF | |
12188 #define HAVE_MALLOC_POSIX 1 | |
12189 _ACEOF | |
12190 | |
12191 else | |
12192 | |
12193 | |
12194 | |
12195 | |
12196 | |
12197 | |
12198 | |
12199 | |
12200 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" | |
12201 | |
12202 HAVE_MALLOC_POSIX=0 | |
12203 fi | |
12204 | |
12205 | |
12206 | |
12207 | |
12208 GNULIB_MALLOC_POSIX=1 | |
12209 | |
12210 | |
12211 | |
12212 | |
12213 | |
12214 | |
12215 | |
12216 | |
12217 | |
12218 | |
12219 | |
12220 | |
12221 | |
12222 | |
12223 | |
12224 | |
12225 for ac_func in mempcpy | |
12226 do | |
12227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12228 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12229 $as_echo_n "checking for $ac_func... " >&6; } | |
12230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12231 $as_echo_n "(cached) " >&6 | |
12232 else | |
12233 cat >conftest.$ac_ext <<_ACEOF | |
12234 /* confdefs.h. */ | |
12235 _ACEOF | |
12236 cat confdefs.h >>conftest.$ac_ext | |
12237 cat >>conftest.$ac_ext <<_ACEOF | |
12238 /* end confdefs.h. */ | |
12239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12240 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12241 #define $ac_func innocuous_$ac_func | |
12242 | |
12243 /* System header to define __stub macros and hopefully few prototypes, | |
12244 which can conflict with char $ac_func (); below. | |
12245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12246 <limits.h> exists even on freestanding compilers. */ | |
12247 | |
12248 #ifdef __STDC__ | |
12249 # include <limits.h> | |
12250 #else | |
12251 # include <assert.h> | |
12252 #endif | |
12253 | |
12254 #undef $ac_func | |
12255 | |
12256 /* Override any GCC internal prototype to avoid an error. | |
12257 Use char because int might match the return type of a GCC | |
12258 builtin and then its argument prototype would still apply. */ | |
12259 #ifdef __cplusplus | |
12260 extern "C" | |
12261 #endif | |
12262 char $ac_func (); | |
12263 /* The GNU C library defines this for functions which it implements | |
12264 to always fail with ENOSYS. Some functions are actually named | |
12265 something starting with __ and the normal name is an alias. */ | |
12266 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12267 choke me | |
12268 #endif | |
12269 | |
12270 int | |
12271 main () | |
12272 { | |
12273 return $ac_func (); | |
12274 ; | |
12275 return 0; | |
12276 } | |
12277 _ACEOF | |
12278 rm -f conftest.$ac_objext conftest$ac_exeext | |
12279 if { (ac_try="$ac_link" | |
12280 case "(($ac_try" in | |
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12282 *) ac_try_echo=$ac_try;; | |
12283 esac | |
12284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12285 $as_echo "$ac_try_echo") >&5 | |
12286 (eval "$ac_link") 2>conftest.er1 | |
12287 ac_status=$? | |
12288 grep -v '^ *+' conftest.er1 >conftest.err | |
12289 rm -f conftest.er1 | |
12290 cat conftest.err >&5 | |
12291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12292 (exit $ac_status); } && { | |
12293 test -z "$ac_c_werror_flag" || | |
12294 test ! -s conftest.err | |
12295 } && test -s conftest$ac_exeext && { | |
12296 test "$cross_compiling" = yes || | |
12297 $as_test_x conftest$ac_exeext | |
12298 }; then | |
12299 eval "$as_ac_var=yes" | |
12300 else | |
12301 $as_echo "$as_me: failed program was:" >&5 | |
12302 sed 's/^/| /' conftest.$ac_ext >&5 | |
12303 | |
12304 eval "$as_ac_var=no" | |
12305 fi | |
12306 | |
12307 rm -rf conftest.dSYM | |
12308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12309 conftest$ac_exeext conftest.$ac_ext | |
12310 fi | |
12311 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12312 $as_echo "$as_val"'` | |
12313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12314 $as_echo "$ac_res" >&6; } | |
12315 as_val=`eval 'as_val=${'$as_ac_var'} | |
12316 $as_echo "$as_val"'` | |
12317 if test "x$as_val" = x""yes; then | |
12318 cat >>confdefs.h <<_ACEOF | |
12319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12320 _ACEOF | |
12321 | |
12322 else | |
12323 | |
12324 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
12325 | |
12326 fi | |
12327 done | |
12328 | |
12329 | |
12330 if test $ac_cv_func_mempcpy = no; then | |
12331 HAVE_MEMPCPY=0 | |
12332 | |
12333 : | |
12334 | |
12335 fi | |
12336 | |
12337 | |
12338 | |
12339 GNULIB_MEMPCPY=1 | |
12340 | |
12341 | |
12342 | |
12343 | |
12344 | |
12345 | |
12346 | |
12347 | |
12348 | |
12349 | |
12350 | |
12351 | |
12352 | |
12353 | |
12354 | |
12355 | |
12356 | |
12357 for ac_func in rawmemchr | |
12358 do | |
12359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12360 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12361 $as_echo_n "checking for $ac_func... " >&6; } | |
12362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12363 $as_echo_n "(cached) " >&6 | |
12364 else | |
12365 cat >conftest.$ac_ext <<_ACEOF | |
12366 /* confdefs.h. */ | |
12367 _ACEOF | |
12368 cat confdefs.h >>conftest.$ac_ext | |
12369 cat >>conftest.$ac_ext <<_ACEOF | |
12370 /* end confdefs.h. */ | |
12371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12372 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12373 #define $ac_func innocuous_$ac_func | |
12374 | |
12375 /* System header to define __stub macros and hopefully few prototypes, | |
12376 which can conflict with char $ac_func (); below. | |
12377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12378 <limits.h> exists even on freestanding compilers. */ | |
12379 | |
12380 #ifdef __STDC__ | |
12381 # include <limits.h> | |
12382 #else | |
12383 # include <assert.h> | |
12384 #endif | |
12385 | |
12386 #undef $ac_func | |
12387 | |
12388 /* Override any GCC internal prototype to avoid an error. | |
12389 Use char because int might match the return type of a GCC | |
12390 builtin and then its argument prototype would still apply. */ | |
12391 #ifdef __cplusplus | |
12392 extern "C" | |
12393 #endif | |
12394 char $ac_func (); | |
12395 /* The GNU C library defines this for functions which it implements | |
12396 to always fail with ENOSYS. Some functions are actually named | |
12397 something starting with __ and the normal name is an alias. */ | |
12398 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12399 choke me | |
12400 #endif | |
12401 | |
12402 int | |
12403 main () | |
12404 { | |
12405 return $ac_func (); | |
12406 ; | |
12407 return 0; | |
12408 } | |
12409 _ACEOF | |
12410 rm -f conftest.$ac_objext conftest$ac_exeext | |
12411 if { (ac_try="$ac_link" | |
12412 case "(($ac_try" in | |
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12414 *) ac_try_echo=$ac_try;; | |
12415 esac | |
12416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12417 $as_echo "$ac_try_echo") >&5 | |
12418 (eval "$ac_link") 2>conftest.er1 | |
12419 ac_status=$? | |
12420 grep -v '^ *+' conftest.er1 >conftest.err | |
12421 rm -f conftest.er1 | |
12422 cat conftest.err >&5 | |
12423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12424 (exit $ac_status); } && { | |
12425 test -z "$ac_c_werror_flag" || | |
12426 test ! -s conftest.err | |
12427 } && test -s conftest$ac_exeext && { | |
12428 test "$cross_compiling" = yes || | |
12429 $as_test_x conftest$ac_exeext | |
12430 }; then | |
12431 eval "$as_ac_var=yes" | |
12432 else | |
12433 $as_echo "$as_me: failed program was:" >&5 | |
12434 sed 's/^/| /' conftest.$ac_ext >&5 | |
12435 | |
12436 eval "$as_ac_var=no" | |
12437 fi | |
12438 | |
12439 rm -rf conftest.dSYM | |
12440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12441 conftest$ac_exeext conftest.$ac_ext | |
12442 fi | |
12443 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12444 $as_echo "$as_val"'` | |
12445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12446 $as_echo "$ac_res" >&6; } | |
12447 as_val=`eval 'as_val=${'$as_ac_var'} | |
12448 $as_echo "$as_val"'` | |
12449 if test "x$as_val" = x""yes; then | |
12450 cat >>confdefs.h <<_ACEOF | |
12451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12452 _ACEOF | |
12453 | |
12454 else | |
12455 | |
12456 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
12457 | |
12458 fi | |
12459 done | |
12460 | |
12461 | |
12462 if test $ac_cv_func_rawmemchr = no; then | |
12463 HAVE_RAWMEMCHR=0 | |
12464 : | |
12465 fi | |
12466 | |
12467 | |
12468 | |
12469 GNULIB_RAWMEMCHR=1 | |
12470 | |
12471 | |
12472 | |
12473 for ac_header in stdint.h | |
12474 do | |
12475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12477 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12478 $as_echo_n "checking for $ac_header... " >&6; } | |
12479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12480 $as_echo_n "(cached) " >&6 | |
12481 fi | |
12482 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12483 $as_echo "$as_val"'` | |
12484 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12485 $as_echo "$ac_res" >&6; } | |
12486 else | |
12487 # Is the header compilable? | |
12488 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12489 $as_echo_n "checking $ac_header usability... " >&6; } | |
12490 cat >conftest.$ac_ext <<_ACEOF | |
12491 /* confdefs.h. */ | |
12492 _ACEOF | |
12493 cat confdefs.h >>conftest.$ac_ext | |
12494 cat >>conftest.$ac_ext <<_ACEOF | |
12495 /* end confdefs.h. */ | |
12496 $ac_includes_default | |
12497 #include <$ac_header> | |
12498 _ACEOF | |
12499 rm -f conftest.$ac_objext | |
12500 if { (ac_try="$ac_compile" | |
12501 case "(($ac_try" in | |
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12503 *) ac_try_echo=$ac_try;; | |
12504 esac | |
12505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12506 $as_echo "$ac_try_echo") >&5 | |
12507 (eval "$ac_compile") 2>conftest.er1 | |
12508 ac_status=$? | |
12509 grep -v '^ *+' conftest.er1 >conftest.err | |
12510 rm -f conftest.er1 | |
12511 cat conftest.err >&5 | |
12512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12513 (exit $ac_status); } && { | |
12514 test -z "$ac_c_werror_flag" || | |
12515 test ! -s conftest.err | |
12516 } && test -s conftest.$ac_objext; then | |
12517 ac_header_compiler=yes | |
12518 else | |
12519 $as_echo "$as_me: failed program was:" >&5 | |
12520 sed 's/^/| /' conftest.$ac_ext >&5 | |
12521 | |
12522 ac_header_compiler=no | |
12523 fi | |
12524 | |
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12526 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12527 $as_echo "$ac_header_compiler" >&6; } | |
12528 | |
12529 # Is the header present? | |
12530 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12531 $as_echo_n "checking $ac_header presence... " >&6; } | |
12532 cat >conftest.$ac_ext <<_ACEOF | |
12533 /* confdefs.h. */ | |
12534 _ACEOF | |
12535 cat confdefs.h >>conftest.$ac_ext | |
12536 cat >>conftest.$ac_ext <<_ACEOF | |
12537 /* end confdefs.h. */ | |
12538 #include <$ac_header> | |
12539 _ACEOF | |
12540 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12541 case "(($ac_try" in | |
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12543 *) ac_try_echo=$ac_try;; | |
12544 esac | |
12545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12546 $as_echo "$ac_try_echo") >&5 | |
12547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12548 ac_status=$? | |
12549 grep -v '^ *+' conftest.er1 >conftest.err | |
12550 rm -f conftest.er1 | |
12551 cat conftest.err >&5 | |
12552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12553 (exit $ac_status); } >/dev/null && { | |
12554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12555 test ! -s conftest.err | |
12556 }; then | |
12557 ac_header_preproc=yes | |
12558 else | |
12559 $as_echo "$as_me: failed program was:" >&5 | |
12560 sed 's/^/| /' conftest.$ac_ext >&5 | |
12561 | |
12562 ac_header_preproc=no | |
12563 fi | |
12564 | |
12565 rm -f conftest.err conftest.$ac_ext | |
12566 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12567 $as_echo "$ac_header_preproc" >&6; } | |
12568 | |
12569 # So? What about this header? | |
12570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12571 yes:no: ) | |
12572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12573 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12575 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12576 ac_header_preproc=yes | |
12577 ;; | |
12578 no:yes:* ) | |
12579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12580 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12582 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12584 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12586 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12590 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12591 ( cat <<\_ASBOX | |
12592 ## -------------------------- ## | |
12593 ## Report this to lost@l-w.ca ## | |
12594 ## -------------------------- ## | |
12595 _ASBOX | |
12596 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
12597 ;; | |
12598 esac | |
12599 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12600 $as_echo_n "checking for $ac_header... " >&6; } | |
12601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12602 $as_echo_n "(cached) " >&6 | |
12603 else | |
12604 eval "$as_ac_Header=\$ac_header_preproc" | |
12605 fi | |
12606 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12607 $as_echo "$as_val"'` | |
12608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12609 $as_echo "$ac_res" >&6; } | |
12610 | |
12611 fi | |
12612 as_val=`eval 'as_val=${'$as_ac_Header'} | |
12613 $as_echo "$as_val"'` | |
12614 if test "x$as_val" = x""yes; then | |
12615 cat >>confdefs.h <<_ACEOF | |
12616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12617 _ACEOF | |
12618 | |
12619 fi | |
12620 | |
12621 done | |
12622 | |
12623 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 | |
12624 $as_echo_n "checking for SIZE_MAX... " >&6; } | |
12625 if test "${gl_cv_size_max+set}" = set; then | |
12626 $as_echo_n "(cached) " >&6 | |
12627 else | |
12628 | |
12629 gl_cv_size_max= | |
12630 cat >conftest.$ac_ext <<_ACEOF | |
12631 /* confdefs.h. */ | |
12632 _ACEOF | |
12633 cat confdefs.h >>conftest.$ac_ext | |
12634 cat >>conftest.$ac_ext <<_ACEOF | |
12635 /* end confdefs.h. */ | |
12636 | |
12637 #include <limits.h> | |
12638 #if HAVE_STDINT_H | |
12639 #include <stdint.h> | |
12640 #endif | |
12641 #ifdef SIZE_MAX | |
12642 Found it | |
12643 #endif | |
12644 | |
12645 _ACEOF | |
12646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12647 $EGREP "Found it" >/dev/null 2>&1; then | |
12648 gl_cv_size_max=yes | |
12649 fi | |
12650 rm -f conftest* | |
12651 | |
12652 if test -z "$gl_cv_size_max"; then | |
12653 if test "$cross_compiling" = yes; then | |
12654 # Depending upon the size, compute the lo and hi bounds. | |
12655 cat >conftest.$ac_ext <<_ACEOF | |
12656 /* confdefs.h. */ | |
12657 _ACEOF | |
12658 cat confdefs.h >>conftest.$ac_ext | |
12659 cat >>conftest.$ac_ext <<_ACEOF | |
12660 /* end confdefs.h. */ | |
12661 #include <stddef.h> | |
12662 #include <limits.h> | |
12663 int | |
12664 main () | |
12665 { | |
12666 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; | |
12667 test_array [0] = 0 | |
12668 | |
12669 ; | |
12670 return 0; | |
12671 } | |
12672 _ACEOF | |
12673 rm -f conftest.$ac_objext | |
12674 if { (ac_try="$ac_compile" | |
12675 case "(($ac_try" in | |
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12677 *) ac_try_echo=$ac_try;; | |
12678 esac | |
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12680 $as_echo "$ac_try_echo") >&5 | |
12681 (eval "$ac_compile") 2>conftest.er1 | |
12682 ac_status=$? | |
12683 grep -v '^ *+' conftest.er1 >conftest.err | |
12684 rm -f conftest.er1 | |
12685 cat conftest.err >&5 | |
12686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12687 (exit $ac_status); } && { | |
12688 test -z "$ac_c_werror_flag" || | |
12689 test ! -s conftest.err | |
12690 } && test -s conftest.$ac_objext; then | |
12691 ac_lo=0 ac_mid=0 | |
12692 while :; do | |
12693 cat >conftest.$ac_ext <<_ACEOF | |
12694 /* confdefs.h. */ | |
12695 _ACEOF | |
12696 cat confdefs.h >>conftest.$ac_ext | |
12697 cat >>conftest.$ac_ext <<_ACEOF | |
12698 /* end confdefs.h. */ | |
12699 #include <stddef.h> | |
12700 #include <limits.h> | |
12701 int | |
12702 main () | |
12703 { | |
12704 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; | |
12705 test_array [0] = 0 | |
12706 | |
12707 ; | |
12708 return 0; | |
12709 } | |
12710 _ACEOF | |
12711 rm -f conftest.$ac_objext | |
12712 if { (ac_try="$ac_compile" | |
12713 case "(($ac_try" in | |
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12715 *) ac_try_echo=$ac_try;; | |
12716 esac | |
12717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12718 $as_echo "$ac_try_echo") >&5 | |
12719 (eval "$ac_compile") 2>conftest.er1 | |
12720 ac_status=$? | |
12721 grep -v '^ *+' conftest.er1 >conftest.err | |
12722 rm -f conftest.er1 | |
12723 cat conftest.err >&5 | |
12724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12725 (exit $ac_status); } && { | |
12726 test -z "$ac_c_werror_flag" || | |
12727 test ! -s conftest.err | |
12728 } && test -s conftest.$ac_objext; then | |
12729 ac_hi=$ac_mid; break | |
12730 else | |
12731 $as_echo "$as_me: failed program was:" >&5 | |
12732 sed 's/^/| /' conftest.$ac_ext >&5 | |
12733 | |
12734 ac_lo=`expr $ac_mid + 1` | |
12735 if test $ac_lo -le $ac_mid; then | |
12736 ac_lo= ac_hi= | |
12737 break | |
12738 fi | |
12739 ac_mid=`expr 2 '*' $ac_mid + 1` | |
12740 fi | |
12741 | |
12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12743 done | |
12744 else | |
12745 $as_echo "$as_me: failed program was:" >&5 | |
12746 sed 's/^/| /' conftest.$ac_ext >&5 | |
12747 | |
12748 cat >conftest.$ac_ext <<_ACEOF | |
12749 /* confdefs.h. */ | |
12750 _ACEOF | |
12751 cat confdefs.h >>conftest.$ac_ext | |
12752 cat >>conftest.$ac_ext <<_ACEOF | |
12753 /* end confdefs.h. */ | |
12754 #include <stddef.h> | |
12755 #include <limits.h> | |
12756 int | |
12757 main () | |
12758 { | |
12759 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; | |
12760 test_array [0] = 0 | |
12761 | |
12762 ; | |
12763 return 0; | |
12764 } | |
12765 _ACEOF | |
12766 rm -f conftest.$ac_objext | |
12767 if { (ac_try="$ac_compile" | |
12768 case "(($ac_try" in | |
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12770 *) ac_try_echo=$ac_try;; | |
12771 esac | |
12772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12773 $as_echo "$ac_try_echo") >&5 | |
12774 (eval "$ac_compile") 2>conftest.er1 | |
12775 ac_status=$? | |
12776 grep -v '^ *+' conftest.er1 >conftest.err | |
12777 rm -f conftest.er1 | |
12778 cat conftest.err >&5 | |
12779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12780 (exit $ac_status); } && { | |
12781 test -z "$ac_c_werror_flag" || | |
12782 test ! -s conftest.err | |
12783 } && test -s conftest.$ac_objext; then | |
12784 ac_hi=-1 ac_mid=-1 | |
12785 while :; do | |
12786 cat >conftest.$ac_ext <<_ACEOF | |
12787 /* confdefs.h. */ | |
12788 _ACEOF | |
12789 cat confdefs.h >>conftest.$ac_ext | |
12790 cat >>conftest.$ac_ext <<_ACEOF | |
12791 /* end confdefs.h. */ | |
12792 #include <stddef.h> | |
12793 #include <limits.h> | |
12794 int | |
12795 main () | |
12796 { | |
12797 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; | |
12798 test_array [0] = 0 | |
12799 | |
12800 ; | |
12801 return 0; | |
12802 } | |
12803 _ACEOF | |
12804 rm -f conftest.$ac_objext | |
12805 if { (ac_try="$ac_compile" | |
12806 case "(($ac_try" in | |
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12808 *) ac_try_echo=$ac_try;; | |
12809 esac | |
12810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12811 $as_echo "$ac_try_echo") >&5 | |
12812 (eval "$ac_compile") 2>conftest.er1 | |
12813 ac_status=$? | |
12814 grep -v '^ *+' conftest.er1 >conftest.err | |
12815 rm -f conftest.er1 | |
12816 cat conftest.err >&5 | |
12817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12818 (exit $ac_status); } && { | |
12819 test -z "$ac_c_werror_flag" || | |
12820 test ! -s conftest.err | |
12821 } && test -s conftest.$ac_objext; then | |
12822 ac_lo=$ac_mid; break | |
12823 else | |
12824 $as_echo "$as_me: failed program was:" >&5 | |
12825 sed 's/^/| /' conftest.$ac_ext >&5 | |
12826 | |
12827 ac_hi=`expr '(' $ac_mid ')' - 1` | |
12828 if test $ac_mid -le $ac_hi; then | |
12829 ac_lo= ac_hi= | |
12830 break | |
12831 fi | |
12832 ac_mid=`expr 2 '*' $ac_mid` | |
12833 fi | |
12834 | |
12835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12836 done | |
12837 else | |
12838 $as_echo "$as_me: failed program was:" >&5 | |
12839 sed 's/^/| /' conftest.$ac_ext >&5 | |
12840 | |
12841 ac_lo= ac_hi= | |
12842 fi | |
12843 | |
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12845 fi | |
12846 | |
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12848 # Binary search between lo and hi bounds. | |
12849 while test "x$ac_lo" != "x$ac_hi"; do | |
12850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12851 cat >conftest.$ac_ext <<_ACEOF | |
12852 /* confdefs.h. */ | |
12853 _ACEOF | |
12854 cat confdefs.h >>conftest.$ac_ext | |
12855 cat >>conftest.$ac_ext <<_ACEOF | |
12856 /* end confdefs.h. */ | |
12857 #include <stddef.h> | |
12858 #include <limits.h> | |
12859 int | |
12860 main () | |
12861 { | |
12862 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; | |
12863 test_array [0] = 0 | |
12864 | |
12865 ; | |
12866 return 0; | |
12867 } | |
12868 _ACEOF | |
12869 rm -f conftest.$ac_objext | |
12870 if { (ac_try="$ac_compile" | |
12871 case "(($ac_try" in | |
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12873 *) ac_try_echo=$ac_try;; | |
12874 esac | |
12875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12876 $as_echo "$ac_try_echo") >&5 | |
12877 (eval "$ac_compile") 2>conftest.er1 | |
12878 ac_status=$? | |
12879 grep -v '^ *+' conftest.er1 >conftest.err | |
12880 rm -f conftest.er1 | |
12881 cat conftest.err >&5 | |
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12883 (exit $ac_status); } && { | |
12884 test -z "$ac_c_werror_flag" || | |
12885 test ! -s conftest.err | |
12886 } && test -s conftest.$ac_objext; then | |
12887 ac_hi=$ac_mid | |
12888 else | |
12889 $as_echo "$as_me: failed program was:" >&5 | |
12890 sed 's/^/| /' conftest.$ac_ext >&5 | |
12891 | |
12892 ac_lo=`expr '(' $ac_mid ')' + 1` | |
12893 fi | |
12894 | |
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12896 done | |
12897 case $ac_lo in | |
12898 ?*) size_t_bits_minus_1=$ac_lo;; | |
12899 '') size_t_bits_minus_1= ;; | |
12900 esac | |
12901 else | |
12902 cat >conftest.$ac_ext <<_ACEOF | |
12903 /* confdefs.h. */ | |
12904 _ACEOF | |
12905 cat confdefs.h >>conftest.$ac_ext | |
12906 cat >>conftest.$ac_ext <<_ACEOF | |
12907 /* end confdefs.h. */ | |
12908 #include <stddef.h> | |
12909 #include <limits.h> | |
12910 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } | |
12911 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } | |
12912 #include <stdio.h> | |
12913 #include <stdlib.h> | |
12914 int | |
12915 main () | |
12916 { | |
12917 | |
12918 FILE *f = fopen ("conftest.val", "w"); | |
12919 if (! f) | |
12920 return 1; | |
12921 if ((sizeof (size_t) * CHAR_BIT - 1) < 0) | |
12922 { | |
12923 long int i = longval (); | |
12924 if (i != (sizeof (size_t) * CHAR_BIT - 1)) | |
12925 return 1; | |
12926 fprintf (f, "%ld", i); | |
12927 } | |
12928 else | |
12929 { | |
12930 unsigned long int i = ulongval (); | |
12931 if (i != (sizeof (size_t) * CHAR_BIT - 1)) | |
12932 return 1; | |
12933 fprintf (f, "%lu", i); | |
12934 } | |
12935 /* Do not output a trailing newline, as this causes \r\n confusion | |
12936 on some platforms. */ | |
12937 return ferror (f) || fclose (f) != 0; | |
12938 | |
12939 ; | |
12940 return 0; | |
12941 } | |
12942 _ACEOF | |
12943 rm -f conftest$ac_exeext | |
12944 if { (ac_try="$ac_link" | |
12945 case "(($ac_try" in | |
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12947 *) ac_try_echo=$ac_try;; | |
12948 esac | |
12949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12950 $as_echo "$ac_try_echo") >&5 | |
12951 (eval "$ac_link") 2>&5 | |
12952 ac_status=$? | |
12953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12955 { (case "(($ac_try" in | |
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12957 *) ac_try_echo=$ac_try;; | |
12958 esac | |
12959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12960 $as_echo "$ac_try_echo") >&5 | |
12961 (eval "$ac_try") 2>&5 | |
12962 ac_status=$? | |
12963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12964 (exit $ac_status); }; }; then | |
12965 size_t_bits_minus_1=`cat conftest.val` | |
12966 else | |
12967 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
12968 $as_echo "$as_me: failed program was:" >&5 | |
12969 sed 's/^/| /' conftest.$ac_ext >&5 | |
12970 | |
12971 ( exit $ac_status ) | |
12972 size_t_bits_minus_1= | |
12973 fi | |
12974 rm -rf conftest.dSYM | |
12975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12976 fi | |
12977 rm -f conftest.val | |
12978 if test "$cross_compiling" = yes; then | |
12979 # Depending upon the size, compute the lo and hi bounds. | |
12980 cat >conftest.$ac_ext <<_ACEOF | |
12981 /* confdefs.h. */ | |
12982 _ACEOF | |
12983 cat confdefs.h >>conftest.$ac_ext | |
12984 cat >>conftest.$ac_ext <<_ACEOF | |
12985 /* end confdefs.h. */ | |
12986 #include <stddef.h> | |
12987 int | |
12988 main () | |
12989 { | |
12990 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; | |
12991 test_array [0] = 0 | |
12992 | |
12993 ; | |
12994 return 0; | |
12995 } | |
12996 _ACEOF | |
12997 rm -f conftest.$ac_objext | |
12998 if { (ac_try="$ac_compile" | |
12999 case "(($ac_try" in | |
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13001 *) ac_try_echo=$ac_try;; | |
13002 esac | |
13003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13004 $as_echo "$ac_try_echo") >&5 | |
13005 (eval "$ac_compile") 2>conftest.er1 | |
13006 ac_status=$? | |
13007 grep -v '^ *+' conftest.er1 >conftest.err | |
13008 rm -f conftest.er1 | |
13009 cat conftest.err >&5 | |
13010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13011 (exit $ac_status); } && { | |
13012 test -z "$ac_c_werror_flag" || | |
13013 test ! -s conftest.err | |
13014 } && test -s conftest.$ac_objext; then | |
13015 ac_lo=0 ac_mid=0 | |
13016 while :; do | |
13017 cat >conftest.$ac_ext <<_ACEOF | |
13018 /* confdefs.h. */ | |
13019 _ACEOF | |
13020 cat confdefs.h >>conftest.$ac_ext | |
13021 cat >>conftest.$ac_ext <<_ACEOF | |
13022 /* end confdefs.h. */ | |
13023 #include <stddef.h> | |
13024 int | |
13025 main () | |
13026 { | |
13027 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
13028 test_array [0] = 0 | |
13029 | |
13030 ; | |
13031 return 0; | |
13032 } | |
13033 _ACEOF | |
13034 rm -f conftest.$ac_objext | |
13035 if { (ac_try="$ac_compile" | |
13036 case "(($ac_try" in | |
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13038 *) ac_try_echo=$ac_try;; | |
13039 esac | |
13040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13041 $as_echo "$ac_try_echo") >&5 | |
13042 (eval "$ac_compile") 2>conftest.er1 | |
13043 ac_status=$? | |
13044 grep -v '^ *+' conftest.er1 >conftest.err | |
13045 rm -f conftest.er1 | |
13046 cat conftest.err >&5 | |
13047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13048 (exit $ac_status); } && { | |
13049 test -z "$ac_c_werror_flag" || | |
13050 test ! -s conftest.err | |
13051 } && test -s conftest.$ac_objext; then | |
13052 ac_hi=$ac_mid; break | |
13053 else | |
13054 $as_echo "$as_me: failed program was:" >&5 | |
13055 sed 's/^/| /' conftest.$ac_ext >&5 | |
13056 | |
13057 ac_lo=`expr $ac_mid + 1` | |
13058 if test $ac_lo -le $ac_mid; then | |
13059 ac_lo= ac_hi= | |
13060 break | |
13061 fi | |
13062 ac_mid=`expr 2 '*' $ac_mid + 1` | |
13063 fi | |
13064 | |
13065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13066 done | |
13067 else | |
13068 $as_echo "$as_me: failed program was:" >&5 | |
13069 sed 's/^/| /' conftest.$ac_ext >&5 | |
13070 | |
13071 cat >conftest.$ac_ext <<_ACEOF | |
13072 /* confdefs.h. */ | |
13073 _ACEOF | |
13074 cat confdefs.h >>conftest.$ac_ext | |
13075 cat >>conftest.$ac_ext <<_ACEOF | |
13076 /* end confdefs.h. */ | |
13077 #include <stddef.h> | |
13078 int | |
13079 main () | |
13080 { | |
13081 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; | |
13082 test_array [0] = 0 | |
13083 | |
13084 ; | |
13085 return 0; | |
13086 } | |
13087 _ACEOF | |
13088 rm -f conftest.$ac_objext | |
13089 if { (ac_try="$ac_compile" | |
13090 case "(($ac_try" in | |
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13092 *) ac_try_echo=$ac_try;; | |
13093 esac | |
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13095 $as_echo "$ac_try_echo") >&5 | |
13096 (eval "$ac_compile") 2>conftest.er1 | |
13097 ac_status=$? | |
13098 grep -v '^ *+' conftest.er1 >conftest.err | |
13099 rm -f conftest.er1 | |
13100 cat conftest.err >&5 | |
13101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13102 (exit $ac_status); } && { | |
13103 test -z "$ac_c_werror_flag" || | |
13104 test ! -s conftest.err | |
13105 } && test -s conftest.$ac_objext; then | |
13106 ac_hi=-1 ac_mid=-1 | |
13107 while :; do | |
13108 cat >conftest.$ac_ext <<_ACEOF | |
13109 /* confdefs.h. */ | |
13110 _ACEOF | |
13111 cat confdefs.h >>conftest.$ac_ext | |
13112 cat >>conftest.$ac_ext <<_ACEOF | |
13113 /* end confdefs.h. */ | |
13114 #include <stddef.h> | |
13115 int | |
13116 main () | |
13117 { | |
13118 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; | |
13119 test_array [0] = 0 | |
13120 | |
13121 ; | |
13122 return 0; | |
13123 } | |
13124 _ACEOF | |
13125 rm -f conftest.$ac_objext | |
13126 if { (ac_try="$ac_compile" | |
13127 case "(($ac_try" in | |
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13129 *) ac_try_echo=$ac_try;; | |
13130 esac | |
13131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13132 $as_echo "$ac_try_echo") >&5 | |
13133 (eval "$ac_compile") 2>conftest.er1 | |
13134 ac_status=$? | |
13135 grep -v '^ *+' conftest.er1 >conftest.err | |
13136 rm -f conftest.er1 | |
13137 cat conftest.err >&5 | |
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13139 (exit $ac_status); } && { | |
13140 test -z "$ac_c_werror_flag" || | |
13141 test ! -s conftest.err | |
13142 } && test -s conftest.$ac_objext; then | |
13143 ac_lo=$ac_mid; break | |
13144 else | |
13145 $as_echo "$as_me: failed program was:" >&5 | |
13146 sed 's/^/| /' conftest.$ac_ext >&5 | |
13147 | |
13148 ac_hi=`expr '(' $ac_mid ')' - 1` | |
13149 if test $ac_mid -le $ac_hi; then | |
13150 ac_lo= ac_hi= | |
13151 break | |
13152 fi | |
13153 ac_mid=`expr 2 '*' $ac_mid` | |
13154 fi | |
13155 | |
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13157 done | |
13158 else | |
13159 $as_echo "$as_me: failed program was:" >&5 | |
13160 sed 's/^/| /' conftest.$ac_ext >&5 | |
13161 | |
13162 ac_lo= ac_hi= | |
13163 fi | |
13164 | |
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13166 fi | |
13167 | |
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13169 # Binary search between lo and hi bounds. | |
13170 while test "x$ac_lo" != "x$ac_hi"; do | |
13171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13172 cat >conftest.$ac_ext <<_ACEOF | |
13173 /* confdefs.h. */ | |
13174 _ACEOF | |
13175 cat confdefs.h >>conftest.$ac_ext | |
13176 cat >>conftest.$ac_ext <<_ACEOF | |
13177 /* end confdefs.h. */ | |
13178 #include <stddef.h> | |
13179 int | |
13180 main () | |
13181 { | |
13182 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; | |
13183 test_array [0] = 0 | |
13184 | |
13185 ; | |
13186 return 0; | |
13187 } | |
13188 _ACEOF | |
13189 rm -f conftest.$ac_objext | |
13190 if { (ac_try="$ac_compile" | |
13191 case "(($ac_try" in | |
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13193 *) ac_try_echo=$ac_try;; | |
13194 esac | |
13195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13196 $as_echo "$ac_try_echo") >&5 | |
13197 (eval "$ac_compile") 2>conftest.er1 | |
13198 ac_status=$? | |
13199 grep -v '^ *+' conftest.er1 >conftest.err | |
13200 rm -f conftest.er1 | |
13201 cat conftest.err >&5 | |
13202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13203 (exit $ac_status); } && { | |
13204 test -z "$ac_c_werror_flag" || | |
13205 test ! -s conftest.err | |
13206 } && test -s conftest.$ac_objext; then | |
13207 ac_hi=$ac_mid | |
13208 else | |
13209 $as_echo "$as_me: failed program was:" >&5 | |
13210 sed 's/^/| /' conftest.$ac_ext >&5 | |
13211 | |
13212 ac_lo=`expr '(' $ac_mid ')' + 1` | |
13213 fi | |
13214 | |
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13216 done | |
13217 case $ac_lo in | |
13218 ?*) fits_in_uint=$ac_lo;; | |
13219 '') fits_in_uint= ;; | |
13220 esac | |
13221 else | |
13222 cat >conftest.$ac_ext <<_ACEOF | |
13223 /* confdefs.h. */ | |
13224 _ACEOF | |
13225 cat confdefs.h >>conftest.$ac_ext | |
13226 cat >>conftest.$ac_ext <<_ACEOF | |
13227 /* end confdefs.h. */ | |
13228 #include <stddef.h> | |
13229 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
13230 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } | |
13231 #include <stdio.h> | |
13232 #include <stdlib.h> | |
13233 int | |
13234 main () | |
13235 { | |
13236 | |
13237 FILE *f = fopen ("conftest.val", "w"); | |
13238 if (! f) | |
13239 return 1; | |
13240 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) | |
13241 { | |
13242 long int i = longval (); | |
13243 if (i != (sizeof (size_t) <= sizeof (unsigned int))) | |
13244 return 1; | |
13245 fprintf (f, "%ld", i); | |
13246 } | |
13247 else | |
13248 { | |
13249 unsigned long int i = ulongval (); | |
13250 if (i != (sizeof (size_t) <= sizeof (unsigned int))) | |
13251 return 1; | |
13252 fprintf (f, "%lu", i); | |
13253 } | |
13254 /* Do not output a trailing newline, as this causes \r\n confusion | |
13255 on some platforms. */ | |
13256 return ferror (f) || fclose (f) != 0; | |
13257 | |
13258 ; | |
13259 return 0; | |
13260 } | |
13261 _ACEOF | |
13262 rm -f conftest$ac_exeext | |
13263 if { (ac_try="$ac_link" | |
13264 case "(($ac_try" in | |
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13266 *) ac_try_echo=$ac_try;; | |
13267 esac | |
13268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13269 $as_echo "$ac_try_echo") >&5 | |
13270 (eval "$ac_link") 2>&5 | |
13271 ac_status=$? | |
13272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13274 { (case "(($ac_try" in | |
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13276 *) ac_try_echo=$ac_try;; | |
13277 esac | |
13278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13279 $as_echo "$ac_try_echo") >&5 | |
13280 (eval "$ac_try") 2>&5 | |
13281 ac_status=$? | |
13282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13283 (exit $ac_status); }; }; then | |
13284 fits_in_uint=`cat conftest.val` | |
13285 else | |
13286 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
13287 $as_echo "$as_me: failed program was:" >&5 | |
13288 sed 's/^/| /' conftest.$ac_ext >&5 | |
13289 | |
13290 ( exit $ac_status ) | |
13291 fits_in_uint= | |
13292 fi | |
13293 rm -rf conftest.dSYM | |
13294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13295 fi | |
13296 rm -f conftest.val | |
13297 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then | |
13298 if test $fits_in_uint = 1; then | |
13299 cat >conftest.$ac_ext <<_ACEOF | |
13300 /* confdefs.h. */ | |
13301 _ACEOF | |
13302 cat confdefs.h >>conftest.$ac_ext | |
13303 cat >>conftest.$ac_ext <<_ACEOF | |
13304 /* end confdefs.h. */ | |
13305 #include <stddef.h> | |
13306 extern size_t foo; | |
13307 extern unsigned long foo; | |
13308 | |
13309 int | |
13310 main () | |
13311 { | |
13312 | |
13313 ; | |
13314 return 0; | |
13315 } | |
13316 _ACEOF | |
13317 rm -f conftest.$ac_objext | |
13318 if { (ac_try="$ac_compile" | |
13319 case "(($ac_try" in | |
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13321 *) ac_try_echo=$ac_try;; | |
13322 esac | |
13323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13324 $as_echo "$ac_try_echo") >&5 | |
13325 (eval "$ac_compile") 2>conftest.er1 | |
13326 ac_status=$? | |
13327 grep -v '^ *+' conftest.er1 >conftest.err | |
13328 rm -f conftest.er1 | |
13329 cat conftest.err >&5 | |
13330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13331 (exit $ac_status); } && { | |
13332 test -z "$ac_c_werror_flag" || | |
13333 test ! -s conftest.err | |
13334 } && test -s conftest.$ac_objext; then | |
13335 fits_in_uint=0 | |
13336 else | |
13337 $as_echo "$as_me: failed program was:" >&5 | |
13338 sed 's/^/| /' conftest.$ac_ext >&5 | |
13339 | |
13340 | |
13341 fi | |
13342 | |
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13344 fi | |
13345 if test $fits_in_uint = 1; then | |
13346 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
13347 else | |
13348 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
13349 fi | |
13350 else | |
13351 gl_cv_size_max='((size_t)~(size_t)0)' | |
13352 fi | |
13353 fi | |
13354 | |
13355 fi | |
13356 | |
13357 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 | |
13358 $as_echo "$gl_cv_size_max" >&6; } | |
13359 if test "$gl_cv_size_max" != yes; then | |
13360 | |
13361 cat >>confdefs.h <<_ACEOF | |
13362 #define SIZE_MAX $gl_cv_size_max | |
13363 _ACEOF | |
13364 | |
13365 fi | |
13366 | |
13367 | |
13368 | |
13369 { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5 | |
13370 $as_echo_n "checking whether sleep is declared... " >&6; } | |
13371 if test "${ac_cv_have_decl_sleep+set}" = set; then | |
13372 $as_echo_n "(cached) " >&6 | |
13373 else | |
13374 cat >conftest.$ac_ext <<_ACEOF | |
13375 /* confdefs.h. */ | |
13376 _ACEOF | |
13377 cat confdefs.h >>conftest.$ac_ext | |
13378 cat >>conftest.$ac_ext <<_ACEOF | |
13379 /* end confdefs.h. */ | |
13380 #include <unistd.h> | |
13381 | |
13382 int | |
13383 main () | |
13384 { | |
13385 #ifndef sleep | |
13386 (void) sleep; | |
13387 #endif | |
13388 | |
13389 ; | |
13390 return 0; | |
13391 } | |
13392 _ACEOF | |
13393 rm -f conftest.$ac_objext | |
13394 if { (ac_try="$ac_compile" | |
13395 case "(($ac_try" in | |
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13397 *) ac_try_echo=$ac_try;; | |
13398 esac | |
13399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13400 $as_echo "$ac_try_echo") >&5 | |
13401 (eval "$ac_compile") 2>conftest.er1 | |
13402 ac_status=$? | |
13403 grep -v '^ *+' conftest.er1 >conftest.err | |
13404 rm -f conftest.er1 | |
13405 cat conftest.err >&5 | |
13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13407 (exit $ac_status); } && { | |
13408 test -z "$ac_c_werror_flag" || | |
13409 test ! -s conftest.err | |
13410 } && test -s conftest.$ac_objext; then | |
13411 ac_cv_have_decl_sleep=yes | |
13412 else | |
13413 $as_echo "$as_me: failed program was:" >&5 | |
13414 sed 's/^/| /' conftest.$ac_ext >&5 | |
13415 | |
13416 ac_cv_have_decl_sleep=no | |
13417 fi | |
13418 | |
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13420 fi | |
13421 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5 | |
13422 $as_echo "$ac_cv_have_decl_sleep" >&6; } | |
13423 if test "x$ac_cv_have_decl_sleep" = x""yes; then | |
13424 | |
13425 cat >>confdefs.h <<_ACEOF | |
13426 #define HAVE_DECL_SLEEP 1 | |
13427 _ACEOF | |
13428 | |
13429 | |
13430 else | |
13431 cat >>confdefs.h <<_ACEOF | |
13432 #define HAVE_DECL_SLEEP 0 | |
13433 _ACEOF | |
13434 | |
13435 | |
13436 fi | |
13437 | |
13438 | |
13439 if test $ac_cv_have_decl_sleep != yes; then | |
13440 HAVE_SLEEP=0 | |
13441 | |
13442 | |
13443 | |
13444 | |
13445 | |
13446 | |
13447 | |
13448 | |
13449 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext" | |
13450 | |
13451 : | |
13452 fi | |
13453 | |
13454 | |
13455 | |
13456 GNULIB_SLEEP=1 | |
13457 | |
13458 | |
13459 | |
13460 | |
13461 # Define two additional variables used in the Makefile substitution. | |
13462 | |
13463 if test "$ac_cv_header_stdbool_h" = yes; then | |
13464 STDBOOL_H='' | |
13465 else | |
13466 STDBOOL_H='stdbool.h' | |
13467 fi | |
13468 | |
13469 | |
13470 if test "$ac_cv_type__Bool" = yes; then | |
13471 HAVE__BOOL=1 | |
13472 else | |
13473 HAVE__BOOL=0 | |
13474 fi | |
13475 | |
13476 | |
13477 | |
13478 | |
13479 | |
13480 if test $ac_cv_type_long_long_int = yes; then | |
13481 HAVE_LONG_LONG_INT=1 | |
13482 else | |
13483 HAVE_LONG_LONG_INT=0 | |
13484 fi | |
13485 | |
13486 | |
13487 if test $ac_cv_type_unsigned_long_long_int = yes; then | |
13488 HAVE_UNSIGNED_LONG_LONG_INT=1 | |
13489 else | |
13490 HAVE_UNSIGNED_LONG_LONG_INT=0 | |
13491 fi | |
13492 | |
13493 | |
13494 if test $ac_cv_header_inttypes_h = yes; then | |
13495 HAVE_INTTYPES_H=1 | |
13496 else | |
13497 HAVE_INTTYPES_H=0 | |
13498 fi | |
13499 | |
13500 | |
13501 if test $ac_cv_header_sys_types_h = yes; then | |
13502 HAVE_SYS_TYPES_H=1 | |
13503 else | |
13504 HAVE_SYS_TYPES_H=0 | |
13505 fi | |
13506 | |
13507 | |
13508 | |
13509 | |
13510 | |
13511 | |
13512 : | |
13513 | |
13514 | |
13515 | |
13516 | |
13517 | |
13518 | |
13519 | |
13520 if test $gl_cv_have_include_next = yes; then | |
13521 gl_cv_next_stdint_h='<'stdint.h'>' | |
13522 else | |
13523 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5 | |
13524 $as_echo_n "checking absolute name of <stdint.h>... " >&6; } | |
13525 if test "${gl_cv_next_stdint_h+set}" = set; then | |
13526 $as_echo_n "(cached) " >&6 | |
13527 else | |
13528 | |
13529 if test $ac_cv_header_stdint_h = yes; then | |
13530 cat >conftest.$ac_ext <<_ACEOF | |
13531 /* confdefs.h. */ | |
13532 _ACEOF | |
13533 cat confdefs.h >>conftest.$ac_ext | |
13534 cat >>conftest.$ac_ext <<_ACEOF | |
13535 /* end confdefs.h. */ | |
13536 #include <stdint.h> | |
13537 | |
13538 _ACEOF | |
13539 case "$host_os" in | |
13540 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
13541 *) gl_absname_cpp="$ac_cpp" ;; | |
13542 esac | |
13543 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
13544 sed -n '\#/stdint.h#{ | |
13545 s#.*"\(.*/stdint.h\)".*#\1# | |
13546 s#^/[^/]#//&# | |
13547 p | |
13548 q | |
13549 }'`'"' | |
13550 else | |
13551 gl_cv_next_stdint_h='<'stdint.h'>' | |
13552 fi | |
13553 | |
13554 fi | |
13555 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 | |
13556 $as_echo "$gl_cv_next_stdint_h" >&6; } | |
13557 fi | |
13558 NEXT_STDINT_H=$gl_cv_next_stdint_h | |
13559 | |
13560 | |
13561 | |
13562 if test $ac_cv_header_stdint_h = yes; then | |
13563 HAVE_STDINT_H=1 | |
13564 else | |
13565 HAVE_STDINT_H=0 | |
13566 fi | |
13567 | |
13568 | |
13569 if test $ac_cv_header_stdint_h = yes; then | |
13570 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 | |
13571 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } | |
13572 if test "${gl_cv_header_working_stdint_h+set}" = set; then | |
13573 $as_echo_n "(cached) " >&6 | |
13574 else | |
13575 gl_cv_header_working_stdint_h=no | |
13576 cat >conftest.$ac_ext <<_ACEOF | |
13577 | |
13578 /* confdefs.h. */ | |
13579 _ACEOF | |
13580 cat confdefs.h >>conftest.$ac_ext | |
13581 cat >>conftest.$ac_ext <<_ACEOF | |
13582 /* end confdefs.h. */ | |
13583 | |
13584 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
13585 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
13586 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
13587 #include <stdint.h> | |
13588 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | |
13589 #if !(defined WCHAR_MIN && defined WCHAR_MAX) | |
13590 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | |
13591 #endif | |
13592 | |
13593 | |
13594 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
13595 included before <wchar.h>. */ | |
13596 #include <stddef.h> | |
13597 #include <signal.h> | |
13598 #if HAVE_WCHAR_H | |
13599 # include <stdio.h> | |
13600 # include <time.h> | |
13601 # include <wchar.h> | |
13602 #endif | |
13603 | |
13604 | |
13605 #ifdef INT8_MAX | |
13606 int8_t a1 = INT8_MAX; | |
13607 int8_t a1min = INT8_MIN; | |
13608 #endif | |
13609 #ifdef INT16_MAX | |
13610 int16_t a2 = INT16_MAX; | |
13611 int16_t a2min = INT16_MIN; | |
13612 #endif | |
13613 #ifdef INT32_MAX | |
13614 int32_t a3 = INT32_MAX; | |
13615 int32_t a3min = INT32_MIN; | |
13616 #endif | |
13617 #ifdef INT64_MAX | |
13618 int64_t a4 = INT64_MAX; | |
13619 int64_t a4min = INT64_MIN; | |
13620 #endif | |
13621 #ifdef UINT8_MAX | |
13622 uint8_t b1 = UINT8_MAX; | |
13623 #else | |
13624 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | |
13625 #endif | |
13626 #ifdef UINT16_MAX | |
13627 uint16_t b2 = UINT16_MAX; | |
13628 #endif | |
13629 #ifdef UINT32_MAX | |
13630 uint32_t b3 = UINT32_MAX; | |
13631 #endif | |
13632 #ifdef UINT64_MAX | |
13633 uint64_t b4 = UINT64_MAX; | |
13634 #endif | |
13635 int_least8_t c1 = INT8_C (0x7f); | |
13636 int_least8_t c1max = INT_LEAST8_MAX; | |
13637 int_least8_t c1min = INT_LEAST8_MIN; | |
13638 int_least16_t c2 = INT16_C (0x7fff); | |
13639 int_least16_t c2max = INT_LEAST16_MAX; | |
13640 int_least16_t c2min = INT_LEAST16_MIN; | |
13641 int_least32_t c3 = INT32_C (0x7fffffff); | |
13642 int_least32_t c3max = INT_LEAST32_MAX; | |
13643 int_least32_t c3min = INT_LEAST32_MIN; | |
13644 int_least64_t c4 = INT64_C (0x7fffffffffffffff); | |
13645 int_least64_t c4max = INT_LEAST64_MAX; | |
13646 int_least64_t c4min = INT_LEAST64_MIN; | |
13647 uint_least8_t d1 = UINT8_C (0xff); | |
13648 uint_least8_t d1max = UINT_LEAST8_MAX; | |
13649 uint_least16_t d2 = UINT16_C (0xffff); | |
13650 uint_least16_t d2max = UINT_LEAST16_MAX; | |
13651 uint_least32_t d3 = UINT32_C (0xffffffff); | |
13652 uint_least32_t d3max = UINT_LEAST32_MAX; | |
13653 uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | |
13654 uint_least64_t d4max = UINT_LEAST64_MAX; | |
13655 int_fast8_t e1 = INT_FAST8_MAX; | |
13656 int_fast8_t e1min = INT_FAST8_MIN; | |
13657 int_fast16_t e2 = INT_FAST16_MAX; | |
13658 int_fast16_t e2min = INT_FAST16_MIN; | |
13659 int_fast32_t e3 = INT_FAST32_MAX; | |
13660 int_fast32_t e3min = INT_FAST32_MIN; | |
13661 int_fast64_t e4 = INT_FAST64_MAX; | |
13662 int_fast64_t e4min = INT_FAST64_MIN; | |
13663 uint_fast8_t f1 = UINT_FAST8_MAX; | |
13664 uint_fast16_t f2 = UINT_FAST16_MAX; | |
13665 uint_fast32_t f3 = UINT_FAST32_MAX; | |
13666 uint_fast64_t f4 = UINT_FAST64_MAX; | |
13667 #ifdef INTPTR_MAX | |
13668 intptr_t g = INTPTR_MAX; | |
13669 intptr_t gmin = INTPTR_MIN; | |
13670 #endif | |
13671 #ifdef UINTPTR_MAX | |
13672 uintptr_t h = UINTPTR_MAX; | |
13673 #endif | |
13674 intmax_t i = INTMAX_MAX; | |
13675 uintmax_t j = UINTMAX_MAX; | |
13676 | |
13677 #include <limits.h> /* for CHAR_BIT */ | |
13678 #define TYPE_MINIMUM(t) \ | |
13679 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) | |
13680 #define TYPE_MAXIMUM(t) \ | |
13681 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) | |
13682 struct s { | |
13683 int check_PTRDIFF: | |
13684 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | |
13685 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | |
13686 ? 1 : -1; | |
13687 /* Detect bug in FreeBSD 6.0 / ia64. */ | |
13688 int check_SIG_ATOMIC: | |
13689 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | |
13690 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | |
13691 ? 1 : -1; | |
13692 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | |
13693 int check_WCHAR: | |
13694 WCHAR_MIN == TYPE_MINIMUM (wchar_t) | |
13695 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | |
13696 ? 1 : -1; | |
13697 /* Detect bug in mingw. */ | |
13698 int check_WINT: | |
13699 WINT_MIN == TYPE_MINIMUM (wint_t) | |
13700 && WINT_MAX == TYPE_MAXIMUM (wint_t) | |
13701 ? 1 : -1; | |
13702 | |
13703 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | |
13704 int check_UINT8_C: | |
13705 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | |
13706 int check_UINT16_C: | |
13707 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | |
13708 | |
13709 /* Detect bugs in OpenBSD 3.9 stdint.h. */ | |
13710 #ifdef UINT8_MAX | |
13711 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | |
13712 #endif | |
13713 #ifdef UINT16_MAX | |
13714 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | |
13715 #endif | |
13716 #ifdef UINT32_MAX | |
13717 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | |
13718 #endif | |
13719 #ifdef UINT64_MAX | |
13720 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | |
13721 #endif | |
13722 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | |
13723 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | |
13724 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | |
13725 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | |
13726 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | |
13727 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | |
13728 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | |
13729 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | |
13730 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | |
13731 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | |
13732 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | |
13733 }; | |
13734 | |
13735 int | |
13736 main () | |
13737 { | |
13738 | |
13739 ; | |
13740 return 0; | |
13741 } | |
13742 _ACEOF | |
13743 rm -f conftest.$ac_objext | |
13744 if { (ac_try="$ac_compile" | |
13745 case "(($ac_try" in | |
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13747 *) ac_try_echo=$ac_try;; | |
13748 esac | |
13749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13750 $as_echo "$ac_try_echo") >&5 | |
13751 (eval "$ac_compile") 2>conftest.er1 | |
13752 ac_status=$? | |
13753 grep -v '^ *+' conftest.er1 >conftest.err | |
13754 rm -f conftest.er1 | |
13755 cat conftest.err >&5 | |
13756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13757 (exit $ac_status); } && { | |
13758 test -z "$ac_c_werror_flag" || | |
13759 test ! -s conftest.err | |
13760 } && test -s conftest.$ac_objext; then | |
13761 gl_cv_header_working_stdint_h=yes | |
13762 else | |
13763 $as_echo "$as_me: failed program was:" >&5 | |
13764 sed 's/^/| /' conftest.$ac_ext >&5 | |
13765 | |
13766 | |
13767 fi | |
13768 | |
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13770 fi | |
13771 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 | |
13772 $as_echo "$gl_cv_header_working_stdint_h" >&6; } | |
13773 fi | |
13774 if test "$gl_cv_header_working_stdint_h" = yes; then | |
13775 STDINT_H= | |
13776 else | |
13777 | |
13778 | |
13779 for ac_header in sys/inttypes.h sys/bitypes.h | |
13780 do | |
13781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13783 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13784 $as_echo_n "checking for $ac_header... " >&6; } | |
13785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13786 $as_echo_n "(cached) " >&6 | |
13787 fi | |
13788 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13789 $as_echo "$as_val"'` | |
13790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13791 $as_echo "$ac_res" >&6; } | |
13792 else | |
13793 # Is the header compilable? | |
13794 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13795 $as_echo_n "checking $ac_header usability... " >&6; } | |
13796 cat >conftest.$ac_ext <<_ACEOF | |
13797 /* confdefs.h. */ | |
13798 _ACEOF | |
13799 cat confdefs.h >>conftest.$ac_ext | |
13800 cat >>conftest.$ac_ext <<_ACEOF | |
13801 /* end confdefs.h. */ | |
13802 $ac_includes_default | |
13803 #include <$ac_header> | |
13804 _ACEOF | |
13805 rm -f conftest.$ac_objext | |
13806 if { (ac_try="$ac_compile" | |
13807 case "(($ac_try" in | |
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13809 *) ac_try_echo=$ac_try;; | |
13810 esac | |
13811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13812 $as_echo "$ac_try_echo") >&5 | |
13813 (eval "$ac_compile") 2>conftest.er1 | |
13814 ac_status=$? | |
13815 grep -v '^ *+' conftest.er1 >conftest.err | |
13816 rm -f conftest.er1 | |
13817 cat conftest.err >&5 | |
13818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13819 (exit $ac_status); } && { | |
13820 test -z "$ac_c_werror_flag" || | |
13821 test ! -s conftest.err | |
13822 } && test -s conftest.$ac_objext; then | |
13823 ac_header_compiler=yes | |
13824 else | |
13825 $as_echo "$as_me: failed program was:" >&5 | |
13826 sed 's/^/| /' conftest.$ac_ext >&5 | |
13827 | |
13828 ac_header_compiler=no | |
13829 fi | |
13830 | |
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13832 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13833 $as_echo "$ac_header_compiler" >&6; } | |
13834 | |
13835 # Is the header present? | |
13836 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13837 $as_echo_n "checking $ac_header presence... " >&6; } | |
13838 cat >conftest.$ac_ext <<_ACEOF | |
13839 /* confdefs.h. */ | |
13840 _ACEOF | |
13841 cat confdefs.h >>conftest.$ac_ext | |
13842 cat >>conftest.$ac_ext <<_ACEOF | |
13843 /* end confdefs.h. */ | |
13844 #include <$ac_header> | |
13845 _ACEOF | |
13846 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13847 case "(($ac_try" in | |
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13849 *) ac_try_echo=$ac_try;; | |
13850 esac | |
13851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13852 $as_echo "$ac_try_echo") >&5 | |
13853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13854 ac_status=$? | |
13855 grep -v '^ *+' conftest.er1 >conftest.err | |
13856 rm -f conftest.er1 | |
13857 cat conftest.err >&5 | |
13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13859 (exit $ac_status); } >/dev/null && { | |
13860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13861 test ! -s conftest.err | |
13862 }; then | |
13863 ac_header_preproc=yes | |
13864 else | |
13865 $as_echo "$as_me: failed program was:" >&5 | |
13866 sed 's/^/| /' conftest.$ac_ext >&5 | |
13867 | |
13868 ac_header_preproc=no | |
13869 fi | |
13870 | |
13871 rm -f conftest.err conftest.$ac_ext | |
13872 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13873 $as_echo "$ac_header_preproc" >&6; } | |
13874 | |
13875 # So? What about this header? | |
13876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13877 yes:no: ) | |
13878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13879 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13882 ac_header_preproc=yes | |
13883 ;; | |
13884 no:yes:* ) | |
13885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13886 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13888 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13890 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13892 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13896 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13897 ( cat <<\_ASBOX | |
13898 ## -------------------------- ## | |
13899 ## Report this to lost@l-w.ca ## | |
13900 ## -------------------------- ## | |
13901 _ASBOX | |
13902 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
13903 ;; | |
13904 esac | |
13905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13906 $as_echo_n "checking for $ac_header... " >&6; } | |
13907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13908 $as_echo_n "(cached) " >&6 | |
13909 else | |
13910 eval "$as_ac_Header=\$ac_header_preproc" | |
13911 fi | |
13912 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13913 $as_echo "$as_val"'` | |
13914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13915 $as_echo "$ac_res" >&6; } | |
13916 | |
13917 fi | |
13918 as_val=`eval 'as_val=${'$as_ac_Header'} | |
13919 $as_echo "$as_val"'` | |
13920 if test "x$as_val" = x""yes; then | |
13921 cat >>confdefs.h <<_ACEOF | |
13922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13923 _ACEOF | |
13924 | |
13925 fi | |
13926 | |
13927 done | |
13928 | |
13929 if test $ac_cv_header_sys_inttypes_h = yes; then | |
13930 HAVE_SYS_INTTYPES_H=1 | |
13931 else | |
13932 HAVE_SYS_INTTYPES_H=0 | |
13933 fi | |
13934 | |
13935 if test $ac_cv_header_sys_bitypes_h = yes; then | |
13936 HAVE_SYS_BITYPES_H=1 | |
13937 else | |
13938 HAVE_SYS_BITYPES_H=0 | |
13939 fi | |
13940 | |
13941 | |
13942 | |
13943 : | |
13944 | |
13945 | |
13946 | |
13947 | |
13948 | |
13949 | |
13950 | |
13951 | |
13952 if test $APPLE_UNIVERSAL_BUILD = 0; then | |
13953 | |
13954 | |
13955 | |
13956 | |
13957 for gltype in ptrdiff_t size_t ; do | |
13958 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 | |
13959 $as_echo_n "checking for bit size of $gltype... " >&6; } | |
13960 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then | |
13961 $as_echo_n "(cached) " >&6 | |
13962 else | |
13963 if test "$cross_compiling" = yes; then | |
13964 # Depending upon the size, compute the lo and hi bounds. | |
13965 cat >conftest.$ac_ext <<_ACEOF | |
13966 /* confdefs.h. */ | |
13967 _ACEOF | |
13968 cat confdefs.h >>conftest.$ac_ext | |
13969 cat >>conftest.$ac_ext <<_ACEOF | |
13970 /* end confdefs.h. */ | |
13971 | |
13972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
13973 included before <wchar.h>. */ | |
13974 #include <stddef.h> | |
13975 #include <signal.h> | |
13976 #if HAVE_WCHAR_H | |
13977 # include <stdio.h> | |
13978 # include <time.h> | |
13979 # include <wchar.h> | |
13980 #endif | |
13981 | |
13982 #include <limits.h> | |
13983 int | |
13984 main () | |
13985 { | |
13986 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; | |
13987 test_array [0] = 0 | |
13988 | |
13989 ; | |
13990 return 0; | |
13991 } | |
13992 _ACEOF | |
13993 rm -f conftest.$ac_objext | |
13994 if { (ac_try="$ac_compile" | |
13995 case "(($ac_try" in | |
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13997 *) ac_try_echo=$ac_try;; | |
13998 esac | |
13999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14000 $as_echo "$ac_try_echo") >&5 | |
14001 (eval "$ac_compile") 2>conftest.er1 | |
14002 ac_status=$? | |
14003 grep -v '^ *+' conftest.er1 >conftest.err | |
14004 rm -f conftest.er1 | |
14005 cat conftest.err >&5 | |
14006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14007 (exit $ac_status); } && { | |
14008 test -z "$ac_c_werror_flag" || | |
14009 test ! -s conftest.err | |
14010 } && test -s conftest.$ac_objext; then | |
14011 ac_lo=0 ac_mid=0 | |
14012 while :; do | |
14013 cat >conftest.$ac_ext <<_ACEOF | |
14014 /* confdefs.h. */ | |
14015 _ACEOF | |
14016 cat confdefs.h >>conftest.$ac_ext | |
14017 cat >>conftest.$ac_ext <<_ACEOF | |
14018 /* end confdefs.h. */ | |
14019 | |
14020 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14021 included before <wchar.h>. */ | |
14022 #include <stddef.h> | |
14023 #include <signal.h> | |
14024 #if HAVE_WCHAR_H | |
14025 # include <stdio.h> | |
14026 # include <time.h> | |
14027 # include <wchar.h> | |
14028 #endif | |
14029 | |
14030 #include <limits.h> | |
14031 int | |
14032 main () | |
14033 { | |
14034 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
14035 test_array [0] = 0 | |
14036 | |
14037 ; | |
14038 return 0; | |
14039 } | |
14040 _ACEOF | |
14041 rm -f conftest.$ac_objext | |
14042 if { (ac_try="$ac_compile" | |
14043 case "(($ac_try" in | |
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14045 *) ac_try_echo=$ac_try;; | |
14046 esac | |
14047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14048 $as_echo "$ac_try_echo") >&5 | |
14049 (eval "$ac_compile") 2>conftest.er1 | |
14050 ac_status=$? | |
14051 grep -v '^ *+' conftest.er1 >conftest.err | |
14052 rm -f conftest.er1 | |
14053 cat conftest.err >&5 | |
14054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14055 (exit $ac_status); } && { | |
14056 test -z "$ac_c_werror_flag" || | |
14057 test ! -s conftest.err | |
14058 } && test -s conftest.$ac_objext; then | |
14059 ac_hi=$ac_mid; break | |
14060 else | |
14061 $as_echo "$as_me: failed program was:" >&5 | |
14062 sed 's/^/| /' conftest.$ac_ext >&5 | |
14063 | |
14064 ac_lo=`expr $ac_mid + 1` | |
14065 if test $ac_lo -le $ac_mid; then | |
14066 ac_lo= ac_hi= | |
14067 break | |
14068 fi | |
14069 ac_mid=`expr 2 '*' $ac_mid + 1` | |
14070 fi | |
14071 | |
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14073 done | |
14074 else | |
14075 $as_echo "$as_me: failed program was:" >&5 | |
14076 sed 's/^/| /' conftest.$ac_ext >&5 | |
14077 | |
14078 cat >conftest.$ac_ext <<_ACEOF | |
14079 /* confdefs.h. */ | |
14080 _ACEOF | |
14081 cat confdefs.h >>conftest.$ac_ext | |
14082 cat >>conftest.$ac_ext <<_ACEOF | |
14083 /* end confdefs.h. */ | |
14084 | |
14085 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14086 included before <wchar.h>. */ | |
14087 #include <stddef.h> | |
14088 #include <signal.h> | |
14089 #if HAVE_WCHAR_H | |
14090 # include <stdio.h> | |
14091 # include <time.h> | |
14092 # include <wchar.h> | |
14093 #endif | |
14094 | |
14095 #include <limits.h> | |
14096 int | |
14097 main () | |
14098 { | |
14099 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; | |
14100 test_array [0] = 0 | |
14101 | |
14102 ; | |
14103 return 0; | |
14104 } | |
14105 _ACEOF | |
14106 rm -f conftest.$ac_objext | |
14107 if { (ac_try="$ac_compile" | |
14108 case "(($ac_try" in | |
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14110 *) ac_try_echo=$ac_try;; | |
14111 esac | |
14112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14113 $as_echo "$ac_try_echo") >&5 | |
14114 (eval "$ac_compile") 2>conftest.er1 | |
14115 ac_status=$? | |
14116 grep -v '^ *+' conftest.er1 >conftest.err | |
14117 rm -f conftest.er1 | |
14118 cat conftest.err >&5 | |
14119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14120 (exit $ac_status); } && { | |
14121 test -z "$ac_c_werror_flag" || | |
14122 test ! -s conftest.err | |
14123 } && test -s conftest.$ac_objext; then | |
14124 ac_hi=-1 ac_mid=-1 | |
14125 while :; do | |
14126 cat >conftest.$ac_ext <<_ACEOF | |
14127 /* confdefs.h. */ | |
14128 _ACEOF | |
14129 cat confdefs.h >>conftest.$ac_ext | |
14130 cat >>conftest.$ac_ext <<_ACEOF | |
14131 /* end confdefs.h. */ | |
14132 | |
14133 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14134 included before <wchar.h>. */ | |
14135 #include <stddef.h> | |
14136 #include <signal.h> | |
14137 #if HAVE_WCHAR_H | |
14138 # include <stdio.h> | |
14139 # include <time.h> | |
14140 # include <wchar.h> | |
14141 #endif | |
14142 | |
14143 #include <limits.h> | |
14144 int | |
14145 main () | |
14146 { | |
14147 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; | |
14148 test_array [0] = 0 | |
14149 | |
14150 ; | |
14151 return 0; | |
14152 } | |
14153 _ACEOF | |
14154 rm -f conftest.$ac_objext | |
14155 if { (ac_try="$ac_compile" | |
14156 case "(($ac_try" in | |
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14158 *) ac_try_echo=$ac_try;; | |
14159 esac | |
14160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14161 $as_echo "$ac_try_echo") >&5 | |
14162 (eval "$ac_compile") 2>conftest.er1 | |
14163 ac_status=$? | |
14164 grep -v '^ *+' conftest.er1 >conftest.err | |
14165 rm -f conftest.er1 | |
14166 cat conftest.err >&5 | |
14167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14168 (exit $ac_status); } && { | |
14169 test -z "$ac_c_werror_flag" || | |
14170 test ! -s conftest.err | |
14171 } && test -s conftest.$ac_objext; then | |
14172 ac_lo=$ac_mid; break | |
14173 else | |
14174 $as_echo "$as_me: failed program was:" >&5 | |
14175 sed 's/^/| /' conftest.$ac_ext >&5 | |
14176 | |
14177 ac_hi=`expr '(' $ac_mid ')' - 1` | |
14178 if test $ac_mid -le $ac_hi; then | |
14179 ac_lo= ac_hi= | |
14180 break | |
14181 fi | |
14182 ac_mid=`expr 2 '*' $ac_mid` | |
14183 fi | |
14184 | |
14185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14186 done | |
14187 else | |
14188 $as_echo "$as_me: failed program was:" >&5 | |
14189 sed 's/^/| /' conftest.$ac_ext >&5 | |
14190 | |
14191 ac_lo= ac_hi= | |
14192 fi | |
14193 | |
14194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14195 fi | |
14196 | |
14197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14198 # Binary search between lo and hi bounds. | |
14199 while test "x$ac_lo" != "x$ac_hi"; do | |
14200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14201 cat >conftest.$ac_ext <<_ACEOF | |
14202 /* confdefs.h. */ | |
14203 _ACEOF | |
14204 cat confdefs.h >>conftest.$ac_ext | |
14205 cat >>conftest.$ac_ext <<_ACEOF | |
14206 /* end confdefs.h. */ | |
14207 | |
14208 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14209 included before <wchar.h>. */ | |
14210 #include <stddef.h> | |
14211 #include <signal.h> | |
14212 #if HAVE_WCHAR_H | |
14213 # include <stdio.h> | |
14214 # include <time.h> | |
14215 # include <wchar.h> | |
14216 #endif | |
14217 | |
14218 #include <limits.h> | |
14219 int | |
14220 main () | |
14221 { | |
14222 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
14223 test_array [0] = 0 | |
14224 | |
14225 ; | |
14226 return 0; | |
14227 } | |
14228 _ACEOF | |
14229 rm -f conftest.$ac_objext | |
14230 if { (ac_try="$ac_compile" | |
14231 case "(($ac_try" in | |
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14233 *) ac_try_echo=$ac_try;; | |
14234 esac | |
14235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14236 $as_echo "$ac_try_echo") >&5 | |
14237 (eval "$ac_compile") 2>conftest.er1 | |
14238 ac_status=$? | |
14239 grep -v '^ *+' conftest.er1 >conftest.err | |
14240 rm -f conftest.er1 | |
14241 cat conftest.err >&5 | |
14242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14243 (exit $ac_status); } && { | |
14244 test -z "$ac_c_werror_flag" || | |
14245 test ! -s conftest.err | |
14246 } && test -s conftest.$ac_objext; then | |
14247 ac_hi=$ac_mid | |
14248 else | |
14249 $as_echo "$as_me: failed program was:" >&5 | |
14250 sed 's/^/| /' conftest.$ac_ext >&5 | |
14251 | |
14252 ac_lo=`expr '(' $ac_mid ')' + 1` | |
14253 fi | |
14254 | |
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14256 done | |
14257 case $ac_lo in | |
14258 ?*) result=$ac_lo;; | |
14259 '') result=unknown ;; | |
14260 esac | |
14261 else | |
14262 cat >conftest.$ac_ext <<_ACEOF | |
14263 /* confdefs.h. */ | |
14264 _ACEOF | |
14265 cat confdefs.h >>conftest.$ac_ext | |
14266 cat >>conftest.$ac_ext <<_ACEOF | |
14267 /* end confdefs.h. */ | |
14268 | |
14269 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14270 included before <wchar.h>. */ | |
14271 #include <stddef.h> | |
14272 #include <signal.h> | |
14273 #if HAVE_WCHAR_H | |
14274 # include <stdio.h> | |
14275 # include <time.h> | |
14276 # include <wchar.h> | |
14277 #endif | |
14278 | |
14279 #include <limits.h> | |
14280 static long int longval () { return sizeof ($gltype) * CHAR_BIT; } | |
14281 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; } | |
14282 #include <stdio.h> | |
14283 #include <stdlib.h> | |
14284 int | |
14285 main () | |
14286 { | |
14287 | |
14288 FILE *f = fopen ("conftest.val", "w"); | |
14289 if (! f) | |
14290 return 1; | |
14291 if ((sizeof ($gltype) * CHAR_BIT) < 0) | |
14292 { | |
14293 long int i = longval (); | |
14294 if (i != (sizeof ($gltype) * CHAR_BIT)) | |
14295 return 1; | |
14296 fprintf (f, "%ld", i); | |
14297 } | |
14298 else | |
14299 { | |
14300 unsigned long int i = ulongval (); | |
14301 if (i != (sizeof ($gltype) * CHAR_BIT)) | |
14302 return 1; | |
14303 fprintf (f, "%lu", i); | |
14304 } | |
14305 /* Do not output a trailing newline, as this causes \r\n confusion | |
14306 on some platforms. */ | |
14307 return ferror (f) || fclose (f) != 0; | |
14308 | |
14309 ; | |
14310 return 0; | |
14311 } | |
14312 _ACEOF | |
14313 rm -f conftest$ac_exeext | |
14314 if { (ac_try="$ac_link" | |
14315 case "(($ac_try" in | |
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14317 *) ac_try_echo=$ac_try;; | |
14318 esac | |
14319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14320 $as_echo "$ac_try_echo") >&5 | |
14321 (eval "$ac_link") 2>&5 | |
14322 ac_status=$? | |
14323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14325 { (case "(($ac_try" in | |
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14327 *) ac_try_echo=$ac_try;; | |
14328 esac | |
14329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14330 $as_echo "$ac_try_echo") >&5 | |
14331 (eval "$ac_try") 2>&5 | |
14332 ac_status=$? | |
14333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14334 (exit $ac_status); }; }; then | |
14335 result=`cat conftest.val` | |
14336 else | |
14337 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
14338 $as_echo "$as_me: failed program was:" >&5 | |
14339 sed 's/^/| /' conftest.$ac_ext >&5 | |
14340 | |
14341 ( exit $ac_status ) | |
14342 result=unknown | |
14343 fi | |
14344 rm -rf conftest.dSYM | |
14345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14346 fi | |
14347 rm -f conftest.val | |
14348 eval gl_cv_bitsizeof_${gltype}=\$result | |
14349 | |
14350 fi | |
14351 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'} | |
14352 $as_echo "$as_val"'` | |
14353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14354 $as_echo "$ac_res" >&6; } | |
14355 eval result=\$gl_cv_bitsizeof_${gltype} | |
14356 if test $result = unknown; then | |
14357 result=0 | |
14358 fi | |
14359 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
14360 cat >>confdefs.h <<_ACEOF | |
14361 #define BITSIZEOF_${GLTYPE} $result | |
14362 _ACEOF | |
14363 | |
14364 eval BITSIZEOF_${GLTYPE}=\$result | |
14365 done | |
14366 | |
14367 | |
14368 fi | |
14369 | |
14370 | |
14371 | |
14372 | |
14373 | |
14374 for gltype in sig_atomic_t wchar_t wint_t ; do | |
14375 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 | |
14376 $as_echo_n "checking for bit size of $gltype... " >&6; } | |
14377 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then | |
14378 $as_echo_n "(cached) " >&6 | |
14379 else | |
14380 if test "$cross_compiling" = yes; then | |
14381 # Depending upon the size, compute the lo and hi bounds. | |
14382 cat >conftest.$ac_ext <<_ACEOF | |
14383 /* confdefs.h. */ | |
14384 _ACEOF | |
14385 cat confdefs.h >>conftest.$ac_ext | |
14386 cat >>conftest.$ac_ext <<_ACEOF | |
14387 /* end confdefs.h. */ | |
14388 | |
14389 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14390 included before <wchar.h>. */ | |
14391 #include <stddef.h> | |
14392 #include <signal.h> | |
14393 #if HAVE_WCHAR_H | |
14394 # include <stdio.h> | |
14395 # include <time.h> | |
14396 # include <wchar.h> | |
14397 #endif | |
14398 | |
14399 #include <limits.h> | |
14400 int | |
14401 main () | |
14402 { | |
14403 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; | |
14404 test_array [0] = 0 | |
14405 | |
14406 ; | |
14407 return 0; | |
14408 } | |
14409 _ACEOF | |
14410 rm -f conftest.$ac_objext | |
14411 if { (ac_try="$ac_compile" | |
14412 case "(($ac_try" in | |
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14414 *) ac_try_echo=$ac_try;; | |
14415 esac | |
14416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14417 $as_echo "$ac_try_echo") >&5 | |
14418 (eval "$ac_compile") 2>conftest.er1 | |
14419 ac_status=$? | |
14420 grep -v '^ *+' conftest.er1 >conftest.err | |
14421 rm -f conftest.er1 | |
14422 cat conftest.err >&5 | |
14423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14424 (exit $ac_status); } && { | |
14425 test -z "$ac_c_werror_flag" || | |
14426 test ! -s conftest.err | |
14427 } && test -s conftest.$ac_objext; then | |
14428 ac_lo=0 ac_mid=0 | |
14429 while :; do | |
14430 cat >conftest.$ac_ext <<_ACEOF | |
14431 /* confdefs.h. */ | |
14432 _ACEOF | |
14433 cat confdefs.h >>conftest.$ac_ext | |
14434 cat >>conftest.$ac_ext <<_ACEOF | |
14435 /* end confdefs.h. */ | |
14436 | |
14437 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14438 included before <wchar.h>. */ | |
14439 #include <stddef.h> | |
14440 #include <signal.h> | |
14441 #if HAVE_WCHAR_H | |
14442 # include <stdio.h> | |
14443 # include <time.h> | |
14444 # include <wchar.h> | |
14445 #endif | |
14446 | |
14447 #include <limits.h> | |
14448 int | |
14449 main () | |
14450 { | |
14451 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
14452 test_array [0] = 0 | |
14453 | |
14454 ; | |
14455 return 0; | |
14456 } | |
14457 _ACEOF | |
14458 rm -f conftest.$ac_objext | |
14459 if { (ac_try="$ac_compile" | |
14460 case "(($ac_try" in | |
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14462 *) ac_try_echo=$ac_try;; | |
14463 esac | |
14464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14465 $as_echo "$ac_try_echo") >&5 | |
14466 (eval "$ac_compile") 2>conftest.er1 | |
14467 ac_status=$? | |
14468 grep -v '^ *+' conftest.er1 >conftest.err | |
14469 rm -f conftest.er1 | |
14470 cat conftest.err >&5 | |
14471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14472 (exit $ac_status); } && { | |
14473 test -z "$ac_c_werror_flag" || | |
14474 test ! -s conftest.err | |
14475 } && test -s conftest.$ac_objext; then | |
14476 ac_hi=$ac_mid; break | |
14477 else | |
14478 $as_echo "$as_me: failed program was:" >&5 | |
14479 sed 's/^/| /' conftest.$ac_ext >&5 | |
14480 | |
14481 ac_lo=`expr $ac_mid + 1` | |
14482 if test $ac_lo -le $ac_mid; then | |
14483 ac_lo= ac_hi= | |
14484 break | |
14485 fi | |
14486 ac_mid=`expr 2 '*' $ac_mid + 1` | |
14487 fi | |
14488 | |
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14490 done | |
14491 else | |
14492 $as_echo "$as_me: failed program was:" >&5 | |
14493 sed 's/^/| /' conftest.$ac_ext >&5 | |
14494 | |
14495 cat >conftest.$ac_ext <<_ACEOF | |
14496 /* confdefs.h. */ | |
14497 _ACEOF | |
14498 cat confdefs.h >>conftest.$ac_ext | |
14499 cat >>conftest.$ac_ext <<_ACEOF | |
14500 /* end confdefs.h. */ | |
14501 | |
14502 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14503 included before <wchar.h>. */ | |
14504 #include <stddef.h> | |
14505 #include <signal.h> | |
14506 #if HAVE_WCHAR_H | |
14507 # include <stdio.h> | |
14508 # include <time.h> | |
14509 # include <wchar.h> | |
14510 #endif | |
14511 | |
14512 #include <limits.h> | |
14513 int | |
14514 main () | |
14515 { | |
14516 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; | |
14517 test_array [0] = 0 | |
14518 | |
14519 ; | |
14520 return 0; | |
14521 } | |
14522 _ACEOF | |
14523 rm -f conftest.$ac_objext | |
14524 if { (ac_try="$ac_compile" | |
14525 case "(($ac_try" in | |
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14527 *) ac_try_echo=$ac_try;; | |
14528 esac | |
14529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14530 $as_echo "$ac_try_echo") >&5 | |
14531 (eval "$ac_compile") 2>conftest.er1 | |
14532 ac_status=$? | |
14533 grep -v '^ *+' conftest.er1 >conftest.err | |
14534 rm -f conftest.er1 | |
14535 cat conftest.err >&5 | |
14536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14537 (exit $ac_status); } && { | |
14538 test -z "$ac_c_werror_flag" || | |
14539 test ! -s conftest.err | |
14540 } && test -s conftest.$ac_objext; then | |
14541 ac_hi=-1 ac_mid=-1 | |
14542 while :; do | |
14543 cat >conftest.$ac_ext <<_ACEOF | |
14544 /* confdefs.h. */ | |
14545 _ACEOF | |
14546 cat confdefs.h >>conftest.$ac_ext | |
14547 cat >>conftest.$ac_ext <<_ACEOF | |
14548 /* end confdefs.h. */ | |
14549 | |
14550 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14551 included before <wchar.h>. */ | |
14552 #include <stddef.h> | |
14553 #include <signal.h> | |
14554 #if HAVE_WCHAR_H | |
14555 # include <stdio.h> | |
14556 # include <time.h> | |
14557 # include <wchar.h> | |
14558 #endif | |
14559 | |
14560 #include <limits.h> | |
14561 int | |
14562 main () | |
14563 { | |
14564 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; | |
14565 test_array [0] = 0 | |
14566 | |
14567 ; | |
14568 return 0; | |
14569 } | |
14570 _ACEOF | |
14571 rm -f conftest.$ac_objext | |
14572 if { (ac_try="$ac_compile" | |
14573 case "(($ac_try" in | |
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14575 *) ac_try_echo=$ac_try;; | |
14576 esac | |
14577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14578 $as_echo "$ac_try_echo") >&5 | |
14579 (eval "$ac_compile") 2>conftest.er1 | |
14580 ac_status=$? | |
14581 grep -v '^ *+' conftest.er1 >conftest.err | |
14582 rm -f conftest.er1 | |
14583 cat conftest.err >&5 | |
14584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14585 (exit $ac_status); } && { | |
14586 test -z "$ac_c_werror_flag" || | |
14587 test ! -s conftest.err | |
14588 } && test -s conftest.$ac_objext; then | |
14589 ac_lo=$ac_mid; break | |
14590 else | |
14591 $as_echo "$as_me: failed program was:" >&5 | |
14592 sed 's/^/| /' conftest.$ac_ext >&5 | |
14593 | |
14594 ac_hi=`expr '(' $ac_mid ')' - 1` | |
14595 if test $ac_mid -le $ac_hi; then | |
14596 ac_lo= ac_hi= | |
14597 break | |
14598 fi | |
14599 ac_mid=`expr 2 '*' $ac_mid` | |
14600 fi | |
14601 | |
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14603 done | |
14604 else | |
14605 $as_echo "$as_me: failed program was:" >&5 | |
14606 sed 's/^/| /' conftest.$ac_ext >&5 | |
14607 | |
14608 ac_lo= ac_hi= | |
14609 fi | |
14610 | |
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14612 fi | |
14613 | |
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14615 # Binary search between lo and hi bounds. | |
14616 while test "x$ac_lo" != "x$ac_hi"; do | |
14617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14618 cat >conftest.$ac_ext <<_ACEOF | |
14619 /* confdefs.h. */ | |
14620 _ACEOF | |
14621 cat confdefs.h >>conftest.$ac_ext | |
14622 cat >>conftest.$ac_ext <<_ACEOF | |
14623 /* end confdefs.h. */ | |
14624 | |
14625 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14626 included before <wchar.h>. */ | |
14627 #include <stddef.h> | |
14628 #include <signal.h> | |
14629 #if HAVE_WCHAR_H | |
14630 # include <stdio.h> | |
14631 # include <time.h> | |
14632 # include <wchar.h> | |
14633 #endif | |
14634 | |
14635 #include <limits.h> | |
14636 int | |
14637 main () | |
14638 { | |
14639 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
14640 test_array [0] = 0 | |
14641 | |
14642 ; | |
14643 return 0; | |
14644 } | |
14645 _ACEOF | |
14646 rm -f conftest.$ac_objext | |
14647 if { (ac_try="$ac_compile" | |
14648 case "(($ac_try" in | |
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14650 *) ac_try_echo=$ac_try;; | |
14651 esac | |
14652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14653 $as_echo "$ac_try_echo") >&5 | |
14654 (eval "$ac_compile") 2>conftest.er1 | |
14655 ac_status=$? | |
14656 grep -v '^ *+' conftest.er1 >conftest.err | |
14657 rm -f conftest.er1 | |
14658 cat conftest.err >&5 | |
14659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14660 (exit $ac_status); } && { | |
14661 test -z "$ac_c_werror_flag" || | |
14662 test ! -s conftest.err | |
14663 } && test -s conftest.$ac_objext; then | |
14664 ac_hi=$ac_mid | |
14665 else | |
14666 $as_echo "$as_me: failed program was:" >&5 | |
14667 sed 's/^/| /' conftest.$ac_ext >&5 | |
14668 | |
14669 ac_lo=`expr '(' $ac_mid ')' + 1` | |
14670 fi | |
14671 | |
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14673 done | |
14674 case $ac_lo in | |
14675 ?*) result=$ac_lo;; | |
14676 '') result=unknown ;; | |
14677 esac | |
14678 else | |
14679 cat >conftest.$ac_ext <<_ACEOF | |
14680 /* confdefs.h. */ | |
14681 _ACEOF | |
14682 cat confdefs.h >>conftest.$ac_ext | |
14683 cat >>conftest.$ac_ext <<_ACEOF | |
14684 /* end confdefs.h. */ | |
14685 | |
14686 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14687 included before <wchar.h>. */ | |
14688 #include <stddef.h> | |
14689 #include <signal.h> | |
14690 #if HAVE_WCHAR_H | |
14691 # include <stdio.h> | |
14692 # include <time.h> | |
14693 # include <wchar.h> | |
14694 #endif | |
14695 | |
14696 #include <limits.h> | |
14697 static long int longval () { return sizeof ($gltype) * CHAR_BIT; } | |
14698 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; } | |
14699 #include <stdio.h> | |
14700 #include <stdlib.h> | |
14701 int | |
14702 main () | |
14703 { | |
14704 | |
14705 FILE *f = fopen ("conftest.val", "w"); | |
14706 if (! f) | |
14707 return 1; | |
14708 if ((sizeof ($gltype) * CHAR_BIT) < 0) | |
14709 { | |
14710 long int i = longval (); | |
14711 if (i != (sizeof ($gltype) * CHAR_BIT)) | |
14712 return 1; | |
14713 fprintf (f, "%ld", i); | |
14714 } | |
14715 else | |
14716 { | |
14717 unsigned long int i = ulongval (); | |
14718 if (i != (sizeof ($gltype) * CHAR_BIT)) | |
14719 return 1; | |
14720 fprintf (f, "%lu", i); | |
14721 } | |
14722 /* Do not output a trailing newline, as this causes \r\n confusion | |
14723 on some platforms. */ | |
14724 return ferror (f) || fclose (f) != 0; | |
14725 | |
14726 ; | |
14727 return 0; | |
14728 } | |
14729 _ACEOF | |
14730 rm -f conftest$ac_exeext | |
14731 if { (ac_try="$ac_link" | |
14732 case "(($ac_try" in | |
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14734 *) ac_try_echo=$ac_try;; | |
14735 esac | |
14736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14737 $as_echo "$ac_try_echo") >&5 | |
14738 (eval "$ac_link") 2>&5 | |
14739 ac_status=$? | |
14740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14742 { (case "(($ac_try" in | |
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14744 *) ac_try_echo=$ac_try;; | |
14745 esac | |
14746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14747 $as_echo "$ac_try_echo") >&5 | |
14748 (eval "$ac_try") 2>&5 | |
14749 ac_status=$? | |
14750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14751 (exit $ac_status); }; }; then | |
14752 result=`cat conftest.val` | |
14753 else | |
14754 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
14755 $as_echo "$as_me: failed program was:" >&5 | |
14756 sed 's/^/| /' conftest.$ac_ext >&5 | |
14757 | |
14758 ( exit $ac_status ) | |
14759 result=unknown | |
14760 fi | |
14761 rm -rf conftest.dSYM | |
14762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14763 fi | |
14764 rm -f conftest.val | |
14765 eval gl_cv_bitsizeof_${gltype}=\$result | |
14766 | |
14767 fi | |
14768 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'} | |
14769 $as_echo "$as_val"'` | |
14770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14771 $as_echo "$ac_res" >&6; } | |
14772 eval result=\$gl_cv_bitsizeof_${gltype} | |
14773 if test $result = unknown; then | |
14774 result=0 | |
14775 fi | |
14776 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
14777 cat >>confdefs.h <<_ACEOF | |
14778 #define BITSIZEOF_${GLTYPE} $result | |
14779 _ACEOF | |
14780 | |
14781 eval BITSIZEOF_${GLTYPE}=\$result | |
14782 done | |
14783 | |
14784 | |
14785 | |
14786 | |
14787 | |
14788 | |
14789 | |
14790 for gltype in sig_atomic_t wchar_t wint_t ; do | |
14791 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 | |
14792 $as_echo_n "checking whether $gltype is signed... " >&6; } | |
14793 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then | |
14794 $as_echo_n "(cached) " >&6 | |
14795 else | |
14796 cat >conftest.$ac_ext <<_ACEOF | |
14797 /* confdefs.h. */ | |
14798 _ACEOF | |
14799 cat confdefs.h >>conftest.$ac_ext | |
14800 cat >>conftest.$ac_ext <<_ACEOF | |
14801 /* end confdefs.h. */ | |
14802 | |
14803 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14804 included before <wchar.h>. */ | |
14805 #include <stddef.h> | |
14806 #include <signal.h> | |
14807 #if HAVE_WCHAR_H | |
14808 # include <stdio.h> | |
14809 # include <time.h> | |
14810 # include <wchar.h> | |
14811 #endif | |
14812 | |
14813 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | |
14814 int | |
14815 main () | |
14816 { | |
14817 | |
14818 ; | |
14819 return 0; | |
14820 } | |
14821 _ACEOF | |
14822 rm -f conftest.$ac_objext | |
14823 if { (ac_try="$ac_compile" | |
14824 case "(($ac_try" in | |
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14826 *) ac_try_echo=$ac_try;; | |
14827 esac | |
14828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14829 $as_echo "$ac_try_echo") >&5 | |
14830 (eval "$ac_compile") 2>conftest.er1 | |
14831 ac_status=$? | |
14832 grep -v '^ *+' conftest.er1 >conftest.err | |
14833 rm -f conftest.er1 | |
14834 cat conftest.err >&5 | |
14835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14836 (exit $ac_status); } && { | |
14837 test -z "$ac_c_werror_flag" || | |
14838 test ! -s conftest.err | |
14839 } && test -s conftest.$ac_objext; then | |
14840 result=yes | |
14841 else | |
14842 $as_echo "$as_me: failed program was:" >&5 | |
14843 sed 's/^/| /' conftest.$ac_ext >&5 | |
14844 | |
14845 result=no | |
14846 fi | |
14847 | |
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14849 eval gl_cv_type_${gltype}_signed=\$result | |
14850 | |
14851 fi | |
14852 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'} | |
14853 $as_echo "$as_val"'` | |
14854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14855 $as_echo "$ac_res" >&6; } | |
14856 eval result=\$gl_cv_type_${gltype}_signed | |
14857 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
14858 if test "$result" = yes; then | |
14859 cat >>confdefs.h <<_ACEOF | |
14860 #define HAVE_SIGNED_${GLTYPE} 1 | |
14861 _ACEOF | |
14862 | |
14863 eval HAVE_SIGNED_${GLTYPE}=1 | |
14864 else | |
14865 eval HAVE_SIGNED_${GLTYPE}=0 | |
14866 fi | |
14867 done | |
14868 | |
14869 | |
14870 gl_cv_type_ptrdiff_t_signed=yes | |
14871 gl_cv_type_size_t_signed=no | |
14872 if test $APPLE_UNIVERSAL_BUILD = 0; then | |
14873 | |
14874 | |
14875 | |
14876 | |
14877 for gltype in ptrdiff_t size_t ; do | |
14878 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 | |
14879 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
14880 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then | |
14881 $as_echo_n "(cached) " >&6 | |
14882 else | |
14883 eval gl_cv_type_${gltype}_suffix=no | |
14884 eval result=\$gl_cv_type_${gltype}_signed | |
14885 if test "$result" = yes; then | |
14886 glsufu= | |
14887 else | |
14888 glsufu=u | |
14889 fi | |
14890 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
14891 case $glsuf in | |
14892 '') gltype1='int';; | |
14893 l) gltype1='long int';; | |
14894 ll) gltype1='long long int';; | |
14895 i64) gltype1='__int64';; | |
14896 u) gltype1='unsigned int';; | |
14897 ul) gltype1='unsigned long int';; | |
14898 ull) gltype1='unsigned long long int';; | |
14899 ui64)gltype1='unsigned __int64';; | |
14900 esac | |
14901 cat >conftest.$ac_ext <<_ACEOF | |
14902 /* confdefs.h. */ | |
14903 _ACEOF | |
14904 cat confdefs.h >>conftest.$ac_ext | |
14905 cat >>conftest.$ac_ext <<_ACEOF | |
14906 /* end confdefs.h. */ | |
14907 | |
14908 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
14909 included before <wchar.h>. */ | |
14910 #include <stddef.h> | |
14911 #include <signal.h> | |
14912 #if HAVE_WCHAR_H | |
14913 # include <stdio.h> | |
14914 # include <time.h> | |
14915 # include <wchar.h> | |
14916 #endif | |
14917 | |
14918 extern $gltype foo; | |
14919 extern $gltype1 foo; | |
14920 int | |
14921 main () | |
14922 { | |
14923 | |
14924 ; | |
14925 return 0; | |
14926 } | |
14927 _ACEOF | |
14928 rm -f conftest.$ac_objext | |
14929 if { (ac_try="$ac_compile" | |
14930 case "(($ac_try" in | |
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14932 *) ac_try_echo=$ac_try;; | |
14933 esac | |
14934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14935 $as_echo "$ac_try_echo") >&5 | |
14936 (eval "$ac_compile") 2>conftest.er1 | |
14937 ac_status=$? | |
14938 grep -v '^ *+' conftest.er1 >conftest.err | |
14939 rm -f conftest.er1 | |
14940 cat conftest.err >&5 | |
14941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14942 (exit $ac_status); } && { | |
14943 test -z "$ac_c_werror_flag" || | |
14944 test ! -s conftest.err | |
14945 } && test -s conftest.$ac_objext; then | |
14946 eval gl_cv_type_${gltype}_suffix=\$glsuf | |
14947 else | |
14948 $as_echo "$as_me: failed program was:" >&5 | |
14949 sed 's/^/| /' conftest.$ac_ext >&5 | |
14950 | |
14951 | |
14952 fi | |
14953 | |
14954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14955 eval result=\$gl_cv_type_${gltype}_suffix | |
14956 test "$result" != no && break | |
14957 done | |
14958 fi | |
14959 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'} | |
14960 $as_echo "$as_val"'` | |
14961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14962 $as_echo "$ac_res" >&6; } | |
14963 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
14964 eval result=\$gl_cv_type_${gltype}_suffix | |
14965 test "$result" = no && result= | |
14966 eval ${GLTYPE}_SUFFIX=\$result | |
14967 cat >>confdefs.h <<_ACEOF | |
14968 #define ${GLTYPE}_SUFFIX $result | |
14969 _ACEOF | |
14970 | |
14971 done | |
14972 | |
14973 | |
14974 fi | |
14975 | |
14976 | |
14977 | |
14978 | |
14979 | |
14980 for gltype in sig_atomic_t wchar_t wint_t ; do | |
14981 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 | |
14982 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
14983 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then | |
14984 $as_echo_n "(cached) " >&6 | |
14985 else | |
14986 eval gl_cv_type_${gltype}_suffix=no | |
14987 eval result=\$gl_cv_type_${gltype}_signed | |
14988 if test "$result" = yes; then | |
14989 glsufu= | |
14990 else | |
14991 glsufu=u | |
14992 fi | |
14993 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
14994 case $glsuf in | |
14995 '') gltype1='int';; | |
14996 l) gltype1='long int';; | |
14997 ll) gltype1='long long int';; | |
14998 i64) gltype1='__int64';; | |
14999 u) gltype1='unsigned int';; | |
15000 ul) gltype1='unsigned long int';; | |
15001 ull) gltype1='unsigned long long int';; | |
15002 ui64)gltype1='unsigned __int64';; | |
15003 esac | |
15004 cat >conftest.$ac_ext <<_ACEOF | |
15005 /* confdefs.h. */ | |
15006 _ACEOF | |
15007 cat confdefs.h >>conftest.$ac_ext | |
15008 cat >>conftest.$ac_ext <<_ACEOF | |
15009 /* end confdefs.h. */ | |
15010 | |
15011 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
15012 included before <wchar.h>. */ | |
15013 #include <stddef.h> | |
15014 #include <signal.h> | |
15015 #if HAVE_WCHAR_H | |
15016 # include <stdio.h> | |
15017 # include <time.h> | |
15018 # include <wchar.h> | |
15019 #endif | |
15020 | |
15021 extern $gltype foo; | |
15022 extern $gltype1 foo; | |
15023 int | |
15024 main () | |
15025 { | |
15026 | |
15027 ; | |
15028 return 0; | |
15029 } | |
15030 _ACEOF | |
15031 rm -f conftest.$ac_objext | |
15032 if { (ac_try="$ac_compile" | |
15033 case "(($ac_try" in | |
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15035 *) ac_try_echo=$ac_try;; | |
15036 esac | |
15037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15038 $as_echo "$ac_try_echo") >&5 | |
15039 (eval "$ac_compile") 2>conftest.er1 | |
15040 ac_status=$? | |
15041 grep -v '^ *+' conftest.er1 >conftest.err | |
15042 rm -f conftest.er1 | |
15043 cat conftest.err >&5 | |
15044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15045 (exit $ac_status); } && { | |
15046 test -z "$ac_c_werror_flag" || | |
15047 test ! -s conftest.err | |
15048 } && test -s conftest.$ac_objext; then | |
15049 eval gl_cv_type_${gltype}_suffix=\$glsuf | |
15050 else | |
15051 $as_echo "$as_me: failed program was:" >&5 | |
15052 sed 's/^/| /' conftest.$ac_ext >&5 | |
15053 | |
15054 | |
15055 fi | |
15056 | |
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15058 eval result=\$gl_cv_type_${gltype}_suffix | |
15059 test "$result" != no && break | |
15060 done | |
15061 fi | |
15062 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'} | |
15063 $as_echo "$as_val"'` | |
15064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15065 $as_echo "$ac_res" >&6; } | |
15066 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
15067 eval result=\$gl_cv_type_${gltype}_suffix | |
15068 test "$result" = no && result= | |
15069 eval ${GLTYPE}_SUFFIX=\$result | |
15070 cat >>confdefs.h <<_ACEOF | |
15071 #define ${GLTYPE}_SUFFIX $result | |
15072 _ACEOF | |
15073 | |
15074 done | |
15075 | |
15076 | |
15077 | |
15078 STDINT_H=stdint.h | |
15079 fi | |
15080 | |
15081 | |
15082 | |
15083 | |
15084 | |
15085 | |
15086 | |
15087 | |
15088 : | |
15089 | |
15090 | |
15091 | |
15092 | |
15093 | |
15094 | |
15095 | |
15096 if test $gl_cv_have_include_next = yes; then | |
15097 gl_cv_next_stdio_h='<'stdio.h'>' | |
15098 else | |
15099 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5 | |
15100 $as_echo_n "checking absolute name of <stdio.h>... " >&6; } | |
15101 if test "${gl_cv_next_stdio_h+set}" = set; then | |
15102 $as_echo_n "(cached) " >&6 | |
15103 else | |
15104 | |
15105 if test $ac_cv_header_stdio_h = yes; then | |
15106 cat >conftest.$ac_ext <<_ACEOF | |
15107 /* confdefs.h. */ | |
15108 _ACEOF | |
15109 cat confdefs.h >>conftest.$ac_ext | |
15110 cat >>conftest.$ac_ext <<_ACEOF | |
15111 /* end confdefs.h. */ | |
15112 #include <stdio.h> | |
15113 | |
15114 _ACEOF | |
15115 case "$host_os" in | |
15116 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
15117 *) gl_absname_cpp="$ac_cpp" ;; | |
15118 esac | |
15119 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
15120 sed -n '\#/stdio.h#{ | |
15121 s#.*"\(.*/stdio.h\)".*#\1# | |
15122 s#^/[^/]#//&# | |
15123 p | |
15124 q | |
15125 }'`'"' | |
15126 else | |
15127 gl_cv_next_stdio_h='<'stdio.h'>' | |
15128 fi | |
15129 | |
15130 fi | |
15131 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5 | |
15132 $as_echo "$gl_cv_next_stdio_h" >&6; } | |
15133 fi | |
15134 NEXT_STDIO_H=$gl_cv_next_stdio_h | |
15135 | |
15136 | |
15137 | |
15138 GNULIB_FPRINTF=1 | |
15139 GNULIB_PRINTF=1 | |
15140 GNULIB_VFPRINTF=1 | |
15141 GNULIB_VPRINTF=1 | |
15142 GNULIB_FPUTC=1 | |
15143 GNULIB_PUTC=1 | |
15144 GNULIB_PUTCHAR=1 | |
15145 GNULIB_FPUTS=1 | |
15146 GNULIB_PUTS=1 | |
15147 GNULIB_FWRITE=1 | |
15148 | |
15149 | |
15150 | |
15151 | |
15152 | |
15153 | |
15154 | |
15155 | |
15156 : | |
15157 | |
15158 | |
15159 | |
15160 | |
15161 | |
15162 | |
15163 | |
15164 if test $gl_cv_have_include_next = yes; then | |
15165 gl_cv_next_stdlib_h='<'stdlib.h'>' | |
15166 else | |
15167 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5 | |
15168 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; } | |
15169 if test "${gl_cv_next_stdlib_h+set}" = set; then | |
15170 $as_echo_n "(cached) " >&6 | |
15171 else | |
15172 | |
15173 if test $ac_cv_header_stdlib_h = yes; then | |
15174 cat >conftest.$ac_ext <<_ACEOF | |
15175 /* confdefs.h. */ | |
15176 _ACEOF | |
15177 cat confdefs.h >>conftest.$ac_ext | |
15178 cat >>conftest.$ac_ext <<_ACEOF | |
15179 /* end confdefs.h. */ | |
15180 #include <stdlib.h> | |
15181 | |
15182 _ACEOF | |
15183 case "$host_os" in | |
15184 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
15185 *) gl_absname_cpp="$ac_cpp" ;; | |
15186 esac | |
15187 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
15188 sed -n '\#/stdlib.h#{ | |
15189 s#.*"\(.*/stdlib.h\)".*#\1# | |
15190 s#^/[^/]#//&# | |
15191 p | |
15192 q | |
15193 }'`'"' | |
15194 else | |
15195 gl_cv_next_stdlib_h='<'stdlib.h'>' | |
15196 fi | |
15197 | |
15198 fi | |
15199 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5 | |
15200 $as_echo "$gl_cv_next_stdlib_h" >&6; } | |
15201 fi | |
15202 NEXT_STDLIB_H=$gl_cv_next_stdlib_h | |
15203 | |
15204 | |
15205 | |
15206 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5 | |
15207 $as_echo_n "checking for struct random_data... " >&6; } | |
15208 if test "${ac_cv_type_struct_random_data+set}" = set; then | |
15209 $as_echo_n "(cached) " >&6 | |
15210 else | |
15211 ac_cv_type_struct_random_data=no | |
15212 cat >conftest.$ac_ext <<_ACEOF | |
15213 /* confdefs.h. */ | |
15214 _ACEOF | |
15215 cat confdefs.h >>conftest.$ac_ext | |
15216 cat >>conftest.$ac_ext <<_ACEOF | |
15217 /* end confdefs.h. */ | |
15218 #include <stdlib.h> | |
15219 | |
15220 int | |
15221 main () | |
15222 { | |
15223 if (sizeof (struct random_data)) | |
15224 return 0; | |
15225 ; | |
15226 return 0; | |
15227 } | |
15228 _ACEOF | |
15229 rm -f conftest.$ac_objext | |
15230 if { (ac_try="$ac_compile" | |
15231 case "(($ac_try" in | |
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15233 *) ac_try_echo=$ac_try;; | |
15234 esac | |
15235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15236 $as_echo "$ac_try_echo") >&5 | |
15237 (eval "$ac_compile") 2>conftest.er1 | |
15238 ac_status=$? | |
15239 grep -v '^ *+' conftest.er1 >conftest.err | |
15240 rm -f conftest.er1 | |
15241 cat conftest.err >&5 | |
15242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15243 (exit $ac_status); } && { | |
15244 test -z "$ac_c_werror_flag" || | |
15245 test ! -s conftest.err | |
15246 } && test -s conftest.$ac_objext; then | |
15247 cat >conftest.$ac_ext <<_ACEOF | |
15248 /* confdefs.h. */ | |
15249 _ACEOF | |
15250 cat confdefs.h >>conftest.$ac_ext | |
15251 cat >>conftest.$ac_ext <<_ACEOF | |
15252 /* end confdefs.h. */ | |
15253 #include <stdlib.h> | |
15254 | |
15255 int | |
15256 main () | |
15257 { | |
15258 if (sizeof ((struct random_data))) | |
15259 return 0; | |
15260 ; | |
15261 return 0; | |
15262 } | |
15263 _ACEOF | |
15264 rm -f conftest.$ac_objext | |
15265 if { (ac_try="$ac_compile" | |
15266 case "(($ac_try" in | |
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15268 *) ac_try_echo=$ac_try;; | |
15269 esac | |
15270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15271 $as_echo "$ac_try_echo") >&5 | |
15272 (eval "$ac_compile") 2>conftest.er1 | |
15273 ac_status=$? | |
15274 grep -v '^ *+' conftest.er1 >conftest.err | |
15275 rm -f conftest.er1 | |
15276 cat conftest.err >&5 | |
15277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15278 (exit $ac_status); } && { | |
15279 test -z "$ac_c_werror_flag" || | |
15280 test ! -s conftest.err | |
15281 } && test -s conftest.$ac_objext; then | |
15282 : | |
15283 else | |
15284 $as_echo "$as_me: failed program was:" >&5 | |
15285 sed 's/^/| /' conftest.$ac_ext >&5 | |
15286 | |
15287 ac_cv_type_struct_random_data=yes | |
15288 fi | |
15289 | |
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15291 else | |
15292 $as_echo "$as_me: failed program was:" >&5 | |
15293 sed 's/^/| /' conftest.$ac_ext >&5 | |
15294 | |
15295 | |
15296 fi | |
15297 | |
15298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15299 fi | |
15300 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5 | |
15301 $as_echo "$ac_cv_type_struct_random_data" >&6; } | |
15302 if test "x$ac_cv_type_struct_random_data" = x""yes; then | |
15303 | |
15304 cat >>confdefs.h <<_ACEOF | |
15305 #define HAVE_STRUCT_RANDOM_DATA 1 | |
15306 _ACEOF | |
15307 | |
15308 | |
15309 else | |
15310 HAVE_STRUCT_RANDOM_DATA=0 | |
15311 fi | |
15312 | |
15313 | |
15314 | |
15315 | |
15316 | |
15317 | |
15318 | |
15319 | |
15320 | |
15321 | |
15322 | |
15323 | |
15324 | |
15325 | |
15326 for ac_func in strcasecmp | |
15327 do | |
15328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15329 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15330 $as_echo_n "checking for $ac_func... " >&6; } | |
15331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
15332 $as_echo_n "(cached) " >&6 | |
15333 else | |
15334 cat >conftest.$ac_ext <<_ACEOF | |
15335 /* confdefs.h. */ | |
15336 _ACEOF | |
15337 cat confdefs.h >>conftest.$ac_ext | |
15338 cat >>conftest.$ac_ext <<_ACEOF | |
15339 /* end confdefs.h. */ | |
15340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15341 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15342 #define $ac_func innocuous_$ac_func | |
15343 | |
15344 /* System header to define __stub macros and hopefully few prototypes, | |
15345 which can conflict with char $ac_func (); below. | |
15346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15347 <limits.h> exists even on freestanding compilers. */ | |
15348 | |
15349 #ifdef __STDC__ | |
15350 # include <limits.h> | |
15351 #else | |
15352 # include <assert.h> | |
15353 #endif | |
15354 | |
15355 #undef $ac_func | |
15356 | |
15357 /* Override any GCC internal prototype to avoid an error. | |
15358 Use char because int might match the return type of a GCC | |
15359 builtin and then its argument prototype would still apply. */ | |
15360 #ifdef __cplusplus | |
15361 extern "C" | |
15362 #endif | |
15363 char $ac_func (); | |
15364 /* The GNU C library defines this for functions which it implements | |
15365 to always fail with ENOSYS. Some functions are actually named | |
15366 something starting with __ and the normal name is an alias. */ | |
15367 #if defined __stub_$ac_func || defined __stub___$ac_func | |
15368 choke me | |
15369 #endif | |
15370 | |
15371 int | |
15372 main () | |
15373 { | |
15374 return $ac_func (); | |
15375 ; | |
15376 return 0; | |
15377 } | |
15378 _ACEOF | |
15379 rm -f conftest.$ac_objext conftest$ac_exeext | |
15380 if { (ac_try="$ac_link" | |
15381 case "(($ac_try" in | |
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15383 *) ac_try_echo=$ac_try;; | |
15384 esac | |
15385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15386 $as_echo "$ac_try_echo") >&5 | |
15387 (eval "$ac_link") 2>conftest.er1 | |
15388 ac_status=$? | |
15389 grep -v '^ *+' conftest.er1 >conftest.err | |
15390 rm -f conftest.er1 | |
15391 cat conftest.err >&5 | |
15392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15393 (exit $ac_status); } && { | |
15394 test -z "$ac_c_werror_flag" || | |
15395 test ! -s conftest.err | |
15396 } && test -s conftest$ac_exeext && { | |
15397 test "$cross_compiling" = yes || | |
15398 $as_test_x conftest$ac_exeext | |
15399 }; then | |
15400 eval "$as_ac_var=yes" | |
15401 else | |
15402 $as_echo "$as_me: failed program was:" >&5 | |
15403 sed 's/^/| /' conftest.$ac_ext >&5 | |
15404 | |
15405 eval "$as_ac_var=no" | |
15406 fi | |
15407 | |
15408 rm -rf conftest.dSYM | |
15409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15410 conftest$ac_exeext conftest.$ac_ext | |
15411 fi | |
15412 ac_res=`eval 'as_val=${'$as_ac_var'} | |
15413 $as_echo "$as_val"'` | |
15414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15415 $as_echo "$ac_res" >&6; } | |
15416 as_val=`eval 'as_val=${'$as_ac_var'} | |
15417 $as_echo "$as_val"'` | |
15418 if test "x$as_val" = x""yes; then | |
15419 cat >>confdefs.h <<_ACEOF | |
15420 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15421 _ACEOF | |
15422 | |
15423 else | |
15424 | |
15425 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
15426 | |
15427 fi | |
15428 done | |
15429 | |
15430 | |
15431 if test $ac_cv_func_strcasecmp = no; then | |
15432 HAVE_STRCASECMP=0 | |
15433 | |
15434 : | |
15435 | |
15436 fi | |
15437 | |
15438 | |
15439 | |
15440 | |
15441 | |
15442 | |
15443 | |
15444 | |
15445 | |
15446 | |
15447 | |
15448 | |
15449 for ac_func in strncasecmp | |
15450 do | |
15451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15452 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15453 $as_echo_n "checking for $ac_func... " >&6; } | |
15454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
15455 $as_echo_n "(cached) " >&6 | |
15456 else | |
15457 cat >conftest.$ac_ext <<_ACEOF | |
15458 /* confdefs.h. */ | |
15459 _ACEOF | |
15460 cat confdefs.h >>conftest.$ac_ext | |
15461 cat >>conftest.$ac_ext <<_ACEOF | |
15462 /* end confdefs.h. */ | |
15463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15464 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15465 #define $ac_func innocuous_$ac_func | |
15466 | |
15467 /* System header to define __stub macros and hopefully few prototypes, | |
15468 which can conflict with char $ac_func (); below. | |
15469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15470 <limits.h> exists even on freestanding compilers. */ | |
15471 | |
15472 #ifdef __STDC__ | |
15473 # include <limits.h> | |
15474 #else | |
15475 # include <assert.h> | |
15476 #endif | |
15477 | |
15478 #undef $ac_func | |
15479 | |
15480 /* Override any GCC internal prototype to avoid an error. | |
15481 Use char because int might match the return type of a GCC | |
15482 builtin and then its argument prototype would still apply. */ | |
15483 #ifdef __cplusplus | |
15484 extern "C" | |
15485 #endif | |
15486 char $ac_func (); | |
15487 /* The GNU C library defines this for functions which it implements | |
15488 to always fail with ENOSYS. Some functions are actually named | |
15489 something starting with __ and the normal name is an alias. */ | |
15490 #if defined __stub_$ac_func || defined __stub___$ac_func | |
15491 choke me | |
15492 #endif | |
15493 | |
15494 int | |
15495 main () | |
15496 { | |
15497 return $ac_func (); | |
15498 ; | |
15499 return 0; | |
15500 } | |
15501 _ACEOF | |
15502 rm -f conftest.$ac_objext conftest$ac_exeext | |
15503 if { (ac_try="$ac_link" | |
15504 case "(($ac_try" in | |
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15506 *) ac_try_echo=$ac_try;; | |
15507 esac | |
15508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15509 $as_echo "$ac_try_echo") >&5 | |
15510 (eval "$ac_link") 2>conftest.er1 | |
15511 ac_status=$? | |
15512 grep -v '^ *+' conftest.er1 >conftest.err | |
15513 rm -f conftest.er1 | |
15514 cat conftest.err >&5 | |
15515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15516 (exit $ac_status); } && { | |
15517 test -z "$ac_c_werror_flag" || | |
15518 test ! -s conftest.err | |
15519 } && test -s conftest$ac_exeext && { | |
15520 test "$cross_compiling" = yes || | |
15521 $as_test_x conftest$ac_exeext | |
15522 }; then | |
15523 eval "$as_ac_var=yes" | |
15524 else | |
15525 $as_echo "$as_me: failed program was:" >&5 | |
15526 sed 's/^/| /' conftest.$ac_ext >&5 | |
15527 | |
15528 eval "$as_ac_var=no" | |
15529 fi | |
15530 | |
15531 rm -rf conftest.dSYM | |
15532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15533 conftest$ac_exeext conftest.$ac_ext | |
15534 fi | |
15535 ac_res=`eval 'as_val=${'$as_ac_var'} | |
15536 $as_echo "$as_val"'` | |
15537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15538 $as_echo "$ac_res" >&6; } | |
15539 as_val=`eval 'as_val=${'$as_ac_var'} | |
15540 $as_echo "$as_val"'` | |
15541 if test "x$as_val" = x""yes; then | |
15542 cat >>confdefs.h <<_ACEOF | |
15543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15544 _ACEOF | |
15545 | |
15546 else | |
15547 | |
15548 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
15549 | |
15550 fi | |
15551 done | |
15552 | |
15553 | |
15554 if test $ac_cv_func_strncasecmp = no; then | |
15555 | |
15556 : | |
15557 | |
15558 fi | |
15559 { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5 | |
15560 $as_echo_n "checking whether strncasecmp is declared... " >&6; } | |
15561 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then | |
15562 $as_echo_n "(cached) " >&6 | |
15563 else | |
15564 cat >conftest.$ac_ext <<_ACEOF | |
15565 /* confdefs.h. */ | |
15566 _ACEOF | |
15567 cat confdefs.h >>conftest.$ac_ext | |
15568 cat >>conftest.$ac_ext <<_ACEOF | |
15569 /* end confdefs.h. */ | |
15570 $ac_includes_default | |
15571 int | |
15572 main () | |
15573 { | |
15574 #ifndef strncasecmp | |
15575 (void) strncasecmp; | |
15576 #endif | |
15577 | |
15578 ; | |
15579 return 0; | |
15580 } | |
15581 _ACEOF | |
15582 rm -f conftest.$ac_objext | |
15583 if { (ac_try="$ac_compile" | |
15584 case "(($ac_try" in | |
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15586 *) ac_try_echo=$ac_try;; | |
15587 esac | |
15588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15589 $as_echo "$ac_try_echo") >&5 | |
15590 (eval "$ac_compile") 2>conftest.er1 | |
15591 ac_status=$? | |
15592 grep -v '^ *+' conftest.er1 >conftest.err | |
15593 rm -f conftest.er1 | |
15594 cat conftest.err >&5 | |
15595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15596 (exit $ac_status); } && { | |
15597 test -z "$ac_c_werror_flag" || | |
15598 test ! -s conftest.err | |
15599 } && test -s conftest.$ac_objext; then | |
15600 ac_cv_have_decl_strncasecmp=yes | |
15601 else | |
15602 $as_echo "$as_me: failed program was:" >&5 | |
15603 sed 's/^/| /' conftest.$ac_ext >&5 | |
15604 | |
15605 ac_cv_have_decl_strncasecmp=no | |
15606 fi | |
15607 | |
15608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15609 fi | |
15610 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5 | |
15611 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; } | |
15612 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then | |
15613 | |
15614 cat >>confdefs.h <<_ACEOF | |
15615 #define HAVE_DECL_STRNCASECMP 1 | |
15616 _ACEOF | |
15617 | |
15618 | |
15619 else | |
15620 cat >>confdefs.h <<_ACEOF | |
15621 #define HAVE_DECL_STRNCASECMP 0 | |
15622 _ACEOF | |
15623 | |
15624 | |
15625 fi | |
15626 | |
15627 | |
15628 if test $ac_cv_have_decl_strncasecmp = no; then | |
15629 HAVE_DECL_STRNCASECMP=0 | |
15630 fi | |
15631 | |
15632 | |
15633 | |
15634 | |
15635 | |
15636 | |
15637 | |
15638 | |
15639 | |
15640 | |
15641 | |
15642 | |
15643 | |
15644 | |
15645 | |
15646 for ac_func in strchrnul | |
15647 do | |
15648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15649 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15650 $as_echo_n "checking for $ac_func... " >&6; } | |
15651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
15652 $as_echo_n "(cached) " >&6 | |
15653 else | |
15654 cat >conftest.$ac_ext <<_ACEOF | |
15655 /* confdefs.h. */ | |
15656 _ACEOF | |
15657 cat confdefs.h >>conftest.$ac_ext | |
15658 cat >>conftest.$ac_ext <<_ACEOF | |
15659 /* end confdefs.h. */ | |
15660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15661 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15662 #define $ac_func innocuous_$ac_func | |
15663 | |
15664 /* System header to define __stub macros and hopefully few prototypes, | |
15665 which can conflict with char $ac_func (); below. | |
15666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15667 <limits.h> exists even on freestanding compilers. */ | |
15668 | |
15669 #ifdef __STDC__ | |
15670 # include <limits.h> | |
15671 #else | |
15672 # include <assert.h> | |
15673 #endif | |
15674 | |
15675 #undef $ac_func | |
15676 | |
15677 /* Override any GCC internal prototype to avoid an error. | |
15678 Use char because int might match the return type of a GCC | |
15679 builtin and then its argument prototype would still apply. */ | |
15680 #ifdef __cplusplus | |
15681 extern "C" | |
15682 #endif | |
15683 char $ac_func (); | |
15684 /* The GNU C library defines this for functions which it implements | |
15685 to always fail with ENOSYS. Some functions are actually named | |
15686 something starting with __ and the normal name is an alias. */ | |
15687 #if defined __stub_$ac_func || defined __stub___$ac_func | |
15688 choke me | |
15689 #endif | |
15690 | |
15691 int | |
15692 main () | |
15693 { | |
15694 return $ac_func (); | |
15695 ; | |
15696 return 0; | |
15697 } | |
15698 _ACEOF | |
15699 rm -f conftest.$ac_objext conftest$ac_exeext | |
15700 if { (ac_try="$ac_link" | |
15701 case "(($ac_try" in | |
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15703 *) ac_try_echo=$ac_try;; | |
15704 esac | |
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15706 $as_echo "$ac_try_echo") >&5 | |
15707 (eval "$ac_link") 2>conftest.er1 | |
15708 ac_status=$? | |
15709 grep -v '^ *+' conftest.er1 >conftest.err | |
15710 rm -f conftest.er1 | |
15711 cat conftest.err >&5 | |
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15713 (exit $ac_status); } && { | |
15714 test -z "$ac_c_werror_flag" || | |
15715 test ! -s conftest.err | |
15716 } && test -s conftest$ac_exeext && { | |
15717 test "$cross_compiling" = yes || | |
15718 $as_test_x conftest$ac_exeext | |
15719 }; then | |
15720 eval "$as_ac_var=yes" | |
15721 else | |
15722 $as_echo "$as_me: failed program was:" >&5 | |
15723 sed 's/^/| /' conftest.$ac_ext >&5 | |
15724 | |
15725 eval "$as_ac_var=no" | |
15726 fi | |
15727 | |
15728 rm -rf conftest.dSYM | |
15729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15730 conftest$ac_exeext conftest.$ac_ext | |
15731 fi | |
15732 ac_res=`eval 'as_val=${'$as_ac_var'} | |
15733 $as_echo "$as_val"'` | |
15734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15735 $as_echo "$ac_res" >&6; } | |
15736 as_val=`eval 'as_val=${'$as_ac_var'} | |
15737 $as_echo "$as_val"'` | |
15738 if test "x$as_val" = x""yes; then | |
15739 cat >>confdefs.h <<_ACEOF | |
15740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15741 _ACEOF | |
15742 | |
15743 else | |
15744 | |
15745 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
15746 | |
15747 fi | |
15748 done | |
15749 | |
15750 | |
15751 if test $ac_cv_func_strchrnul = no; then | |
15752 HAVE_STRCHRNUL=0 | |
15753 : | |
15754 fi | |
15755 | |
15756 | |
15757 | |
15758 GNULIB_STRCHRNUL=1 | |
15759 | |
15760 | |
15761 | |
15762 if test $REPLACE_STRERROR = 1; then | |
15763 | |
15764 | |
15765 | |
15766 | |
15767 | |
15768 | |
15769 | |
15770 | |
15771 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" | |
15772 | |
15773 | |
15774 cat >>confdefs.h <<_ACEOF | |
15775 #define REPLACE_STRERROR $REPLACE_STRERROR | |
15776 _ACEOF | |
15777 | |
15778 fi | |
15779 | |
15780 | |
15781 | |
15782 GNULIB_STRERROR=1 | |
15783 | |
15784 | |
15785 | |
15786 | |
15787 | |
15788 | |
15789 | |
15790 | |
15791 | |
15792 | |
15793 | |
15794 | |
15795 : | |
15796 | |
15797 | |
15798 | |
15799 | |
15800 | |
15801 if test $ac_cv_have_decl_strndup = no; then | |
15802 HAVE_DECL_STRNDUP=0 | |
15803 fi | |
15804 | |
15805 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. | |
15806 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5 | |
15807 $as_echo_n "checking for working strndup... " >&6; } | |
15808 if test "${gl_cv_func_strndup+set}" = set; then | |
15809 $as_echo_n "(cached) " >&6 | |
15810 else | |
15811 if test "$cross_compiling" = yes; then | |
15812 { $as_echo "$as_me:$LINENO: checking for strndup" >&5 | |
15813 $as_echo_n "checking for strndup... " >&6; } | |
15814 if test "${ac_cv_func_strndup+set}" = set; then | |
15815 $as_echo_n "(cached) " >&6 | |
15816 else | |
15817 cat >conftest.$ac_ext <<_ACEOF | |
15818 /* confdefs.h. */ | |
15819 _ACEOF | |
15820 cat confdefs.h >>conftest.$ac_ext | |
15821 cat >>conftest.$ac_ext <<_ACEOF | |
15822 /* end confdefs.h. */ | |
15823 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup. | |
15824 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15825 #define strndup innocuous_strndup | |
15826 | |
15827 /* System header to define __stub macros and hopefully few prototypes, | |
15828 which can conflict with char strndup (); below. | |
15829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15830 <limits.h> exists even on freestanding compilers. */ | |
15831 | |
15832 #ifdef __STDC__ | |
15833 # include <limits.h> | |
15834 #else | |
15835 # include <assert.h> | |
15836 #endif | |
15837 | |
15838 #undef strndup | |
15839 | |
15840 /* Override any GCC internal prototype to avoid an error. | |
15841 Use char because int might match the return type of a GCC | |
15842 builtin and then its argument prototype would still apply. */ | |
15843 #ifdef __cplusplus | |
15844 extern "C" | |
15845 #endif | |
15846 char strndup (); | |
15847 /* The GNU C library defines this for functions which it implements | |
15848 to always fail with ENOSYS. Some functions are actually named | |
15849 something starting with __ and the normal name is an alias. */ | |
15850 #if defined __stub_strndup || defined __stub___strndup | |
15851 choke me | |
15852 #endif | |
15853 | |
15854 int | |
15855 main () | |
15856 { | |
15857 return strndup (); | |
15858 ; | |
15859 return 0; | |
15860 } | |
15861 _ACEOF | |
15862 rm -f conftest.$ac_objext conftest$ac_exeext | |
15863 if { (ac_try="$ac_link" | |
15864 case "(($ac_try" in | |
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15866 *) ac_try_echo=$ac_try;; | |
15867 esac | |
15868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15869 $as_echo "$ac_try_echo") >&5 | |
15870 (eval "$ac_link") 2>conftest.er1 | |
15871 ac_status=$? | |
15872 grep -v '^ *+' conftest.er1 >conftest.err | |
15873 rm -f conftest.er1 | |
15874 cat conftest.err >&5 | |
15875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15876 (exit $ac_status); } && { | |
15877 test -z "$ac_c_werror_flag" || | |
15878 test ! -s conftest.err | |
15879 } && test -s conftest$ac_exeext && { | |
15880 test "$cross_compiling" = yes || | |
15881 $as_test_x conftest$ac_exeext | |
15882 }; then | |
15883 ac_cv_func_strndup=yes | |
15884 else | |
15885 $as_echo "$as_me: failed program was:" >&5 | |
15886 sed 's/^/| /' conftest.$ac_ext >&5 | |
15887 | |
15888 ac_cv_func_strndup=no | |
15889 fi | |
15890 | |
15891 rm -rf conftest.dSYM | |
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15893 conftest$ac_exeext conftest.$ac_ext | |
15894 fi | |
15895 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5 | |
15896 $as_echo "$ac_cv_func_strndup" >&6; } | |
15897 if test "x$ac_cv_func_strndup" = x""yes; then | |
15898 cat >conftest.$ac_ext <<_ACEOF | |
15899 /* confdefs.h. */ | |
15900 _ACEOF | |
15901 cat confdefs.h >>conftest.$ac_ext | |
15902 cat >>conftest.$ac_ext <<_ACEOF | |
15903 /* end confdefs.h. */ | |
15904 | |
15905 #ifdef _AIX | |
15906 too risky | |
15907 #endif | |
15908 | |
15909 _ACEOF | |
15910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15911 $EGREP "too risky" >/dev/null 2>&1; then | |
15912 gl_cv_func_strndup=no | |
15913 else | |
15914 gl_cv_func_strndup=yes | |
15915 fi | |
15916 rm -f conftest* | |
15917 | |
15918 else | |
15919 gl_cv_func_strndup=no | |
15920 fi | |
15921 | |
15922 else | |
15923 cat >conftest.$ac_ext <<_ACEOF | |
15924 | |
15925 /* confdefs.h. */ | |
15926 _ACEOF | |
15927 cat confdefs.h >>conftest.$ac_ext | |
15928 cat >>conftest.$ac_ext <<_ACEOF | |
15929 /* end confdefs.h. */ | |
15930 #include <string.h> | |
15931 #include <stdlib.h> | |
15932 int | |
15933 main () | |
15934 { | |
15935 | |
15936 #ifndef HAVE_DECL_STRNDUP | |
15937 extern char *strndup (const char *, size_t); | |
15938 #endif | |
15939 char *s; | |
15940 s = strndup ("some longer string", 15); | |
15941 free (s); | |
15942 s = strndup ("shorter string", 13); | |
15943 return s[13] != '\0'; | |
15944 ; | |
15945 return 0; | |
15946 } | |
15947 _ACEOF | |
15948 rm -f conftest$ac_exeext | |
15949 if { (ac_try="$ac_link" | |
15950 case "(($ac_try" in | |
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15952 *) ac_try_echo=$ac_try;; | |
15953 esac | |
15954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15955 $as_echo "$ac_try_echo") >&5 | |
15956 (eval "$ac_link") 2>&5 | |
15957 ac_status=$? | |
15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15960 { (case "(($ac_try" in | |
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15962 *) ac_try_echo=$ac_try;; | |
15963 esac | |
15964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15965 $as_echo "$ac_try_echo") >&5 | |
15966 (eval "$ac_try") 2>&5 | |
15967 ac_status=$? | |
15968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15969 (exit $ac_status); }; }; then | |
15970 gl_cv_func_strndup=yes | |
15971 else | |
15972 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
15973 $as_echo "$as_me: failed program was:" >&5 | |
15974 sed 's/^/| /' conftest.$ac_ext >&5 | |
15975 | |
15976 ( exit $ac_status ) | |
15977 gl_cv_func_strndup=no | |
15978 fi | |
15979 rm -rf conftest.dSYM | |
15980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15981 fi | |
15982 | |
15983 | |
15984 fi | |
15985 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5 | |
15986 $as_echo "$gl_cv_func_strndup" >&6; } | |
15987 if test $gl_cv_func_strndup = yes; then | |
15988 | |
15989 cat >>confdefs.h <<\_ACEOF | |
15990 #define HAVE_STRNDUP 1 | |
15991 _ACEOF | |
15992 | |
15993 else | |
15994 HAVE_STRNDUP=0 | |
15995 | |
15996 | |
15997 | |
15998 | |
15999 | |
16000 | |
16001 | |
16002 | |
16003 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext" | |
16004 | |
16005 : | |
16006 fi | |
16007 | |
16008 | |
16009 | |
16010 GNULIB_STRNDUP=1 | |
16011 | |
16012 | |
16013 | |
16014 | |
16015 | |
16016 | |
16017 : | |
16018 | |
16019 | |
16020 | |
16021 | |
16022 | |
16023 if test $ac_cv_have_decl_strnlen = no; then | |
16024 HAVE_DECL_STRNLEN=0 | |
16025 fi | |
16026 | |
16027 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5 | |
16028 $as_echo_n "checking for working strnlen... " >&6; } | |
16029 if test "${ac_cv_func_strnlen_working+set}" = set; then | |
16030 $as_echo_n "(cached) " >&6 | |
16031 else | |
16032 if test "$cross_compiling" = yes; then | |
16033 ac_cv_func_strnlen_working=no | |
16034 else | |
16035 cat >conftest.$ac_ext <<_ACEOF | |
16036 /* confdefs.h. */ | |
16037 _ACEOF | |
16038 cat confdefs.h >>conftest.$ac_ext | |
16039 cat >>conftest.$ac_ext <<_ACEOF | |
16040 /* end confdefs.h. */ | |
16041 $ac_includes_default | |
16042 int | |
16043 main () | |
16044 { | |
16045 | |
16046 #define S "foobar" | |
16047 #define S_LEN (sizeof S - 1) | |
16048 | |
16049 /* At least one implementation is buggy: that of AIX 4.3 would | |
16050 give strnlen (S, 1) == 3. */ | |
16051 | |
16052 int i; | |
16053 for (i = 0; i < S_LEN + 1; ++i) | |
16054 { | |
16055 int expected = i <= S_LEN ? i : S_LEN; | |
16056 if (strnlen (S, i) != expected) | |
16057 return 1; | |
16058 } | |
16059 return 0; | |
16060 | |
16061 ; | |
16062 return 0; | |
16063 } | |
16064 _ACEOF | |
16065 rm -f conftest$ac_exeext | |
16066 if { (ac_try="$ac_link" | |
16067 case "(($ac_try" in | |
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16069 *) ac_try_echo=$ac_try;; | |
16070 esac | |
16071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16072 $as_echo "$ac_try_echo") >&5 | |
16073 (eval "$ac_link") 2>&5 | |
16074 ac_status=$? | |
16075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16077 { (case "(($ac_try" in | |
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16079 *) ac_try_echo=$ac_try;; | |
16080 esac | |
16081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16082 $as_echo "$ac_try_echo") >&5 | |
16083 (eval "$ac_try") 2>&5 | |
16084 ac_status=$? | |
16085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16086 (exit $ac_status); }; }; then | |
16087 ac_cv_func_strnlen_working=yes | |
16088 else | |
16089 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
16090 $as_echo "$as_me: failed program was:" >&5 | |
16091 sed 's/^/| /' conftest.$ac_ext >&5 | |
16092 | |
16093 ( exit $ac_status ) | |
16094 ac_cv_func_strnlen_working=no | |
16095 fi | |
16096 rm -rf conftest.dSYM | |
16097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16098 fi | |
16099 | |
16100 | |
16101 fi | |
16102 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5 | |
16103 $as_echo "$ac_cv_func_strnlen_working" >&6; } | |
16104 test $ac_cv_func_strnlen_working = no && | |
16105 | |
16106 | |
16107 | |
16108 | |
16109 | |
16110 | |
16111 | |
16112 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" | |
16113 | |
16114 | |
16115 if test $ac_cv_func_strnlen_working = no; then | |
16116 # This is necessary because automake-1.6.1 doesn't understand | |
16117 # that the above use of AC_FUNC_STRNLEN means we may have to use | |
16118 # lib/strnlen.c. | |
16119 #AC_LIBOBJ(strnlen) | |
16120 | |
16121 cat >>confdefs.h <<\_ACEOF | |
16122 #define strnlen rpl_strnlen | |
16123 _ACEOF | |
16124 | |
16125 : | |
16126 fi | |
16127 | |
16128 | |
16129 | |
16130 GNULIB_STRNLEN=1 | |
16131 | |
16132 | |
16133 | |
16134 : | |
16135 | |
16136 | |
16137 | |
16138 | |
16139 | |
16140 if test $ac_cv_header_sysexits_h = yes; then | |
16141 HAVE_SYSEXITS_H=1 | |
16142 | |
16143 | |
16144 | |
16145 | |
16146 : | |
16147 | |
16148 | |
16149 | |
16150 | |
16151 | |
16152 | |
16153 | |
16154 if test $gl_cv_have_include_next = yes; then | |
16155 gl_cv_next_sysexits_h='<'sysexits.h'>' | |
16156 else | |
16157 { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5 | |
16158 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; } | |
16159 if test "${gl_cv_next_sysexits_h+set}" = set; then | |
16160 $as_echo_n "(cached) " >&6 | |
16161 else | |
16162 | |
16163 if test $ac_cv_header_sysexits_h = yes; then | |
16164 cat >conftest.$ac_ext <<_ACEOF | |
16165 /* confdefs.h. */ | |
16166 _ACEOF | |
16167 cat confdefs.h >>conftest.$ac_ext | |
16168 cat >>conftest.$ac_ext <<_ACEOF | |
16169 /* end confdefs.h. */ | |
16170 #include <sysexits.h> | |
16171 | |
16172 _ACEOF | |
16173 case "$host_os" in | |
16174 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
16175 *) gl_absname_cpp="$ac_cpp" ;; | |
16176 esac | |
16177 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
16178 sed -n '\#/sysexits.h#{ | |
16179 s#.*"\(.*/sysexits.h\)".*#\1# | |
16180 s#^/[^/]#//&# | |
16181 p | |
16182 q | |
16183 }'`'"' | |
16184 else | |
16185 gl_cv_next_sysexits_h='<'sysexits.h'>' | |
16186 fi | |
16187 | |
16188 fi | |
16189 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5 | |
16190 $as_echo "$gl_cv_next_sysexits_h" >&6; } | |
16191 fi | |
16192 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h | |
16193 | |
16194 | |
16195 | |
16196 cat >conftest.$ac_ext <<_ACEOF | |
16197 /* confdefs.h. */ | |
16198 _ACEOF | |
16199 cat confdefs.h >>conftest.$ac_ext | |
16200 cat >>conftest.$ac_ext <<_ACEOF | |
16201 /* end confdefs.h. */ | |
16202 #include <sysexits.h> | |
16203 int | |
16204 main () | |
16205 { | |
16206 switch (0) | |
16207 { | |
16208 case EX_OK: | |
16209 case EX_USAGE: | |
16210 case EX_DATAERR: | |
16211 case EX_NOINPUT: | |
16212 case EX_NOUSER: | |
16213 case EX_NOHOST: | |
16214 case EX_UNAVAILABLE: | |
16215 case EX_SOFTWARE: | |
16216 case EX_OSERR: | |
16217 case EX_OSFILE: | |
16218 case EX_CANTCREAT: | |
16219 case EX_IOERR: | |
16220 case EX_TEMPFAIL: | |
16221 case EX_PROTOCOL: | |
16222 case EX_NOPERM: | |
16223 case EX_CONFIG: | |
16224 break; | |
16225 } | |
16226 | |
16227 ; | |
16228 return 0; | |
16229 } | |
16230 _ACEOF | |
16231 rm -f conftest.$ac_objext | |
16232 if { (ac_try="$ac_compile" | |
16233 case "(($ac_try" in | |
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16235 *) ac_try_echo=$ac_try;; | |
16236 esac | |
16237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16238 $as_echo "$ac_try_echo") >&5 | |
16239 (eval "$ac_compile") 2>conftest.er1 | |
16240 ac_status=$? | |
16241 grep -v '^ *+' conftest.er1 >conftest.err | |
16242 rm -f conftest.er1 | |
16243 cat conftest.err >&5 | |
16244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16245 (exit $ac_status); } && { | |
16246 test -z "$ac_c_werror_flag" || | |
16247 test ! -s conftest.err | |
16248 } && test -s conftest.$ac_objext; then | |
16249 SYSEXITS_H= | |
16250 else | |
16251 $as_echo "$as_me: failed program was:" >&5 | |
16252 sed 's/^/| /' conftest.$ac_ext >&5 | |
16253 | |
16254 SYSEXITS_H=sysexits.h | |
16255 fi | |
16256 | |
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16258 else | |
16259 HAVE_SYSEXITS_H=0 | |
16260 SYSEXITS_H=sysexits.h | |
16261 fi | |
16262 | |
16263 | |
16264 | |
16265 | |
16266 | |
16267 | |
16268 | |
16269 | |
16270 | |
16271 | |
16272 : | |
16273 | |
16274 | |
16275 | |
16276 | |
16277 | |
16278 | |
16279 | |
16280 if test $gl_cv_have_include_next = yes; then | |
16281 gl_cv_next_unistd_h='<'unistd.h'>' | |
16282 else | |
16283 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5 | |
16284 $as_echo_n "checking absolute name of <unistd.h>... " >&6; } | |
16285 if test "${gl_cv_next_unistd_h+set}" = set; then | |
16286 $as_echo_n "(cached) " >&6 | |
16287 else | |
16288 | |
16289 if test $ac_cv_header_unistd_h = yes; then | |
16290 cat >conftest.$ac_ext <<_ACEOF | |
16291 /* confdefs.h. */ | |
16292 _ACEOF | |
16293 cat confdefs.h >>conftest.$ac_ext | |
16294 cat >>conftest.$ac_ext <<_ACEOF | |
16295 /* end confdefs.h. */ | |
16296 #include <unistd.h> | |
16297 | |
16298 _ACEOF | |
16299 case "$host_os" in | |
16300 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
16301 *) gl_absname_cpp="$ac_cpp" ;; | |
16302 esac | |
16303 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
16304 sed -n '\#/unistd.h#{ | |
16305 s#.*"\(.*/unistd.h\)".*#\1# | |
16306 s#^/[^/]#//&# | |
16307 p | |
16308 q | |
16309 }'`'"' | |
16310 else | |
16311 gl_cv_next_unistd_h='<'unistd.h'>' | |
16312 fi | |
16313 | |
16314 fi | |
16315 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5 | |
16316 $as_echo "$gl_cv_next_unistd_h" >&6; } | |
16317 fi | |
16318 NEXT_UNISTD_H=$gl_cv_next_unistd_h | |
16319 | |
16320 | |
16321 | |
16322 | |
16323 | |
16324 : | |
16325 | |
16326 | |
16327 | |
16328 | |
16329 | |
16330 if test $ac_cv_header_unistd_h = yes; then | |
16331 HAVE_UNISTD_H=1 | |
16332 else | |
16333 HAVE_UNISTD_H=0 | |
16334 fi | |
16335 | |
16336 | |
16337 | |
16338 | |
16339 : | |
16340 | |
16341 | |
16342 | |
16343 | |
16344 | |
16345 if test $ac_cv_func_vasnprintf = no; then | |
16346 | |
16347 | |
16348 : | |
16349 | |
16350 | |
16351 | |
16352 | |
16353 | |
16354 | |
16355 | |
16356 | |
16357 | |
16358 | |
16359 | |
16360 | |
16361 | |
16362 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" | |
16363 | |
16364 | |
16365 | |
16366 | |
16367 | |
16368 | |
16369 | |
16370 | |
16371 | |
16372 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" | |
16373 | |
16374 | |
16375 | |
16376 | |
16377 | |
16378 | |
16379 | |
16380 | |
16381 | |
16382 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" | |
16383 | |
16384 | |
16385 | |
16386 | |
16387 | |
16388 | |
16389 | |
16390 | |
16391 | |
16392 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" | |
16393 | |
16394 if test $ac_cv_func_vasnprintf = yes; then | |
16395 | |
16396 cat >>confdefs.h <<\_ACEOF | |
16397 #define REPLACE_VASNPRINTF 1 | |
16398 _ACEOF | |
16399 | |
16400 fi | |
16401 | |
16402 | |
16403 | |
16404 | |
16405 | |
16406 | |
16407 | |
16408 | |
16409 | |
16410 | |
16411 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 | |
16412 $as_echo_n "checking for ptrdiff_t... " >&6; } | |
16413 if test "${ac_cv_type_ptrdiff_t+set}" = set; then | |
16414 $as_echo_n "(cached) " >&6 | |
16415 else | |
16416 ac_cv_type_ptrdiff_t=no | |
16417 cat >conftest.$ac_ext <<_ACEOF | |
16418 /* confdefs.h. */ | |
16419 _ACEOF | |
16420 cat confdefs.h >>conftest.$ac_ext | |
16421 cat >>conftest.$ac_ext <<_ACEOF | |
16422 /* end confdefs.h. */ | |
16423 $ac_includes_default | |
16424 int | |
16425 main () | |
16426 { | |
16427 if (sizeof (ptrdiff_t)) | |
16428 return 0; | |
16429 ; | |
16430 return 0; | |
16431 } | |
16432 _ACEOF | |
16433 rm -f conftest.$ac_objext | |
16434 if { (ac_try="$ac_compile" | |
16435 case "(($ac_try" in | |
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16437 *) ac_try_echo=$ac_try;; | |
16438 esac | |
16439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16440 $as_echo "$ac_try_echo") >&5 | |
16441 (eval "$ac_compile") 2>conftest.er1 | |
16442 ac_status=$? | |
16443 grep -v '^ *+' conftest.er1 >conftest.err | |
16444 rm -f conftest.er1 | |
16445 cat conftest.err >&5 | |
16446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16447 (exit $ac_status); } && { | |
16448 test -z "$ac_c_werror_flag" || | |
16449 test ! -s conftest.err | |
16450 } && test -s conftest.$ac_objext; then | |
16451 cat >conftest.$ac_ext <<_ACEOF | |
16452 /* confdefs.h. */ | |
16453 _ACEOF | |
16454 cat confdefs.h >>conftest.$ac_ext | |
16455 cat >>conftest.$ac_ext <<_ACEOF | |
16456 /* end confdefs.h. */ | |
16457 $ac_includes_default | |
16458 int | |
16459 main () | |
16460 { | |
16461 if (sizeof ((ptrdiff_t))) | |
16462 return 0; | |
16463 ; | |
16464 return 0; | |
16465 } | |
16466 _ACEOF | |
16467 rm -f conftest.$ac_objext | |
16468 if { (ac_try="$ac_compile" | |
16469 case "(($ac_try" in | |
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16471 *) ac_try_echo=$ac_try;; | |
16472 esac | |
16473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16474 $as_echo "$ac_try_echo") >&5 | |
16475 (eval "$ac_compile") 2>conftest.er1 | |
16476 ac_status=$? | |
16477 grep -v '^ *+' conftest.er1 >conftest.err | |
16478 rm -f conftest.er1 | |
16479 cat conftest.err >&5 | |
16480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16481 (exit $ac_status); } && { | |
16482 test -z "$ac_c_werror_flag" || | |
16483 test ! -s conftest.err | |
16484 } && test -s conftest.$ac_objext; then | |
16485 : | |
16486 else | |
16487 $as_echo "$as_me: failed program was:" >&5 | |
16488 sed 's/^/| /' conftest.$ac_ext >&5 | |
16489 | |
16490 ac_cv_type_ptrdiff_t=yes | |
16491 fi | |
16492 | |
16493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16494 else | |
16495 $as_echo "$as_me: failed program was:" >&5 | |
16496 sed 's/^/| /' conftest.$ac_ext >&5 | |
16497 | |
16498 | |
16499 fi | |
16500 | |
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16502 fi | |
16503 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 | |
16504 $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
16505 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then | |
16506 : | |
16507 else | |
16508 | |
16509 cat >>confdefs.h <<\_ACEOF | |
16510 #define ptrdiff_t long | |
16511 _ACEOF | |
16512 | |
16513 | |
16514 fi | |
16515 | |
16516 | |
16517 | |
16518 | |
16519 | |
16520 | |
16521 | |
16522 | |
16523 | |
16524 | |
16525 for ac_func in snprintf wcslen | |
16526 do | |
16527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16528 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16529 $as_echo_n "checking for $ac_func... " >&6; } | |
16530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16531 $as_echo_n "(cached) " >&6 | |
16532 else | |
16533 cat >conftest.$ac_ext <<_ACEOF | |
16534 /* confdefs.h. */ | |
16535 _ACEOF | |
16536 cat confdefs.h >>conftest.$ac_ext | |
16537 cat >>conftest.$ac_ext <<_ACEOF | |
16538 /* end confdefs.h. */ | |
16539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16540 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16541 #define $ac_func innocuous_$ac_func | |
16542 | |
16543 /* System header to define __stub macros and hopefully few prototypes, | |
16544 which can conflict with char $ac_func (); below. | |
16545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16546 <limits.h> exists even on freestanding compilers. */ | |
16547 | |
16548 #ifdef __STDC__ | |
16549 # include <limits.h> | |
16550 #else | |
16551 # include <assert.h> | |
16552 #endif | |
16553 | |
16554 #undef $ac_func | |
16555 | |
16556 /* Override any GCC internal prototype to avoid an error. | |
16557 Use char because int might match the return type of a GCC | |
16558 builtin and then its argument prototype would still apply. */ | |
16559 #ifdef __cplusplus | |
16560 extern "C" | |
16561 #endif | |
16562 char $ac_func (); | |
16563 /* The GNU C library defines this for functions which it implements | |
16564 to always fail with ENOSYS. Some functions are actually named | |
16565 something starting with __ and the normal name is an alias. */ | |
16566 #if defined __stub_$ac_func || defined __stub___$ac_func | |
16567 choke me | |
16568 #endif | |
16569 | |
16570 int | |
16571 main () | |
16572 { | |
16573 return $ac_func (); | |
16574 ; | |
16575 return 0; | |
16576 } | |
16577 _ACEOF | |
16578 rm -f conftest.$ac_objext conftest$ac_exeext | |
16579 if { (ac_try="$ac_link" | |
16580 case "(($ac_try" in | |
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16582 *) ac_try_echo=$ac_try;; | |
16583 esac | |
16584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16585 $as_echo "$ac_try_echo") >&5 | |
16586 (eval "$ac_link") 2>conftest.er1 | |
16587 ac_status=$? | |
16588 grep -v '^ *+' conftest.er1 >conftest.err | |
16589 rm -f conftest.er1 | |
16590 cat conftest.err >&5 | |
16591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16592 (exit $ac_status); } && { | |
16593 test -z "$ac_c_werror_flag" || | |
16594 test ! -s conftest.err | |
16595 } && test -s conftest$ac_exeext && { | |
16596 test "$cross_compiling" = yes || | |
16597 $as_test_x conftest$ac_exeext | |
16598 }; then | |
16599 eval "$as_ac_var=yes" | |
16600 else | |
16601 $as_echo "$as_me: failed program was:" >&5 | |
16602 sed 's/^/| /' conftest.$ac_ext >&5 | |
16603 | |
16604 eval "$as_ac_var=no" | |
16605 fi | |
16606 | |
16607 rm -rf conftest.dSYM | |
16608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16609 conftest$ac_exeext conftest.$ac_ext | |
16610 fi | |
16611 ac_res=`eval 'as_val=${'$as_ac_var'} | |
16612 $as_echo "$as_val"'` | |
16613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16614 $as_echo "$ac_res" >&6; } | |
16615 as_val=`eval 'as_val=${'$as_ac_var'} | |
16616 $as_echo "$as_val"'` | |
16617 if test "x$as_val" = x""yes; then | |
16618 cat >>confdefs.h <<_ACEOF | |
16619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16620 _ACEOF | |
16621 | |
16622 fi | |
16623 done | |
16624 | |
16625 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 | |
16626 $as_echo_n "checking whether _snprintf is declared... " >&6; } | |
16627 if test "${ac_cv_have_decl__snprintf+set}" = set; then | |
16628 $as_echo_n "(cached) " >&6 | |
16629 else | |
16630 cat >conftest.$ac_ext <<_ACEOF | |
16631 /* confdefs.h. */ | |
16632 _ACEOF | |
16633 cat confdefs.h >>conftest.$ac_ext | |
16634 cat >>conftest.$ac_ext <<_ACEOF | |
16635 /* end confdefs.h. */ | |
16636 #include <stdio.h> | |
16637 | |
16638 int | |
16639 main () | |
16640 { | |
16641 #ifndef _snprintf | |
16642 (void) _snprintf; | |
16643 #endif | |
16644 | |
16645 ; | |
16646 return 0; | |
16647 } | |
16648 _ACEOF | |
16649 rm -f conftest.$ac_objext | |
16650 if { (ac_try="$ac_compile" | |
16651 case "(($ac_try" in | |
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16653 *) ac_try_echo=$ac_try;; | |
16654 esac | |
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16656 $as_echo "$ac_try_echo") >&5 | |
16657 (eval "$ac_compile") 2>conftest.er1 | |
16658 ac_status=$? | |
16659 grep -v '^ *+' conftest.er1 >conftest.err | |
16660 rm -f conftest.er1 | |
16661 cat conftest.err >&5 | |
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16663 (exit $ac_status); } && { | |
16664 test -z "$ac_c_werror_flag" || | |
16665 test ! -s conftest.err | |
16666 } && test -s conftest.$ac_objext; then | |
16667 ac_cv_have_decl__snprintf=yes | |
16668 else | |
16669 $as_echo "$as_me: failed program was:" >&5 | |
16670 sed 's/^/| /' conftest.$ac_ext >&5 | |
16671 | |
16672 ac_cv_have_decl__snprintf=no | |
16673 fi | |
16674 | |
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16676 fi | |
16677 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 | |
16678 $as_echo "$ac_cv_have_decl__snprintf" >&6; } | |
16679 if test "x$ac_cv_have_decl__snprintf" = x""yes; then | |
16680 | |
16681 cat >>confdefs.h <<_ACEOF | |
16682 #define HAVE_DECL__SNPRINTF 1 | |
16683 _ACEOF | |
16684 | |
16685 | |
16686 else | |
16687 cat >>confdefs.h <<_ACEOF | |
16688 #define HAVE_DECL__SNPRINTF 0 | |
16689 _ACEOF | |
16690 | |
16691 | |
16692 fi | |
16693 | |
16694 | |
16695 | |
16696 | |
16697 | |
16698 | |
16699 fi | |
16700 | |
16701 | |
16702 | |
16703 gl_cv_func_vsnprintf_usable=no | |
16704 | |
16705 for ac_func in vsnprintf | |
16706 do | |
16707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16709 $as_echo_n "checking for $ac_func... " >&6; } | |
16710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16711 $as_echo_n "(cached) " >&6 | |
16712 else | |
16713 cat >conftest.$ac_ext <<_ACEOF | |
16714 /* confdefs.h. */ | |
16715 _ACEOF | |
16716 cat confdefs.h >>conftest.$ac_ext | |
16717 cat >>conftest.$ac_ext <<_ACEOF | |
16718 /* end confdefs.h. */ | |
16719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16720 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16721 #define $ac_func innocuous_$ac_func | |
16722 | |
16723 /* System header to define __stub macros and hopefully few prototypes, | |
16724 which can conflict with char $ac_func (); below. | |
16725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16726 <limits.h> exists even on freestanding compilers. */ | |
16727 | |
16728 #ifdef __STDC__ | |
16729 # include <limits.h> | |
16730 #else | |
16731 # include <assert.h> | |
16732 #endif | |
16733 | |
16734 #undef $ac_func | |
16735 | |
16736 /* Override any GCC internal prototype to avoid an error. | |
16737 Use char because int might match the return type of a GCC | |
16738 builtin and then its argument prototype would still apply. */ | |
16739 #ifdef __cplusplus | |
16740 extern "C" | |
16741 #endif | |
16742 char $ac_func (); | |
16743 /* The GNU C library defines this for functions which it implements | |
16744 to always fail with ENOSYS. Some functions are actually named | |
16745 something starting with __ and the normal name is an alias. */ | |
16746 #if defined __stub_$ac_func || defined __stub___$ac_func | |
16747 choke me | |
16748 #endif | |
16749 | |
16750 int | |
16751 main () | |
16752 { | |
16753 return $ac_func (); | |
16754 ; | |
16755 return 0; | |
16756 } | |
16757 _ACEOF | |
16758 rm -f conftest.$ac_objext conftest$ac_exeext | |
16759 if { (ac_try="$ac_link" | |
16760 case "(($ac_try" in | |
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16762 *) ac_try_echo=$ac_try;; | |
16763 esac | |
16764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16765 $as_echo "$ac_try_echo") >&5 | |
16766 (eval "$ac_link") 2>conftest.er1 | |
16767 ac_status=$? | |
16768 grep -v '^ *+' conftest.er1 >conftest.err | |
16769 rm -f conftest.er1 | |
16770 cat conftest.err >&5 | |
16771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16772 (exit $ac_status); } && { | |
16773 test -z "$ac_c_werror_flag" || | |
16774 test ! -s conftest.err | |
16775 } && test -s conftest$ac_exeext && { | |
16776 test "$cross_compiling" = yes || | |
16777 $as_test_x conftest$ac_exeext | |
16778 }; then | |
16779 eval "$as_ac_var=yes" | |
16780 else | |
16781 $as_echo "$as_me: failed program was:" >&5 | |
16782 sed 's/^/| /' conftest.$ac_ext >&5 | |
16783 | |
16784 eval "$as_ac_var=no" | |
16785 fi | |
16786 | |
16787 rm -rf conftest.dSYM | |
16788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16789 conftest$ac_exeext conftest.$ac_ext | |
16790 fi | |
16791 ac_res=`eval 'as_val=${'$as_ac_var'} | |
16792 $as_echo "$as_val"'` | |
16793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16794 $as_echo "$ac_res" >&6; } | |
16795 as_val=`eval 'as_val=${'$as_ac_var'} | |
16796 $as_echo "$as_val"'` | |
16797 if test "x$as_val" = x""yes; then | |
16798 cat >>confdefs.h <<_ACEOF | |
16799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16800 _ACEOF | |
16801 | |
16802 fi | |
16803 done | |
16804 | |
16805 if test $ac_cv_func_vsnprintf = yes; then | |
16806 | |
16807 | |
16808 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5 | |
16809 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; } | |
16810 if test "${gl_cv_func_snprintf_size1+set}" = set; then | |
16811 $as_echo_n "(cached) " >&6 | |
16812 else | |
16813 | |
16814 if test "$cross_compiling" = yes; then | |
16815 gl_cv_func_snprintf_size1="guessing yes" | |
16816 else | |
16817 cat >conftest.$ac_ext <<_ACEOF | |
16818 /* confdefs.h. */ | |
16819 _ACEOF | |
16820 cat confdefs.h >>conftest.$ac_ext | |
16821 cat >>conftest.$ac_ext <<_ACEOF | |
16822 /* end confdefs.h. */ | |
16823 | |
16824 #include <stdio.h> | |
16825 int main() | |
16826 { | |
16827 static char buf[8] = "DEADBEEF"; | |
16828 snprintf (buf, 1, "%d", 12345); | |
16829 return buf[1] != 'E'; | |
16830 } | |
16831 _ACEOF | |
16832 rm -f conftest$ac_exeext | |
16833 if { (ac_try="$ac_link" | |
16834 case "(($ac_try" in | |
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16836 *) ac_try_echo=$ac_try;; | |
16837 esac | |
16838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16839 $as_echo "$ac_try_echo") >&5 | |
16840 (eval "$ac_link") 2>&5 | |
16841 ac_status=$? | |
16842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16844 { (case "(($ac_try" in | |
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16846 *) ac_try_echo=$ac_try;; | |
16847 esac | |
16848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16849 $as_echo "$ac_try_echo") >&5 | |
16850 (eval "$ac_try") 2>&5 | |
16851 ac_status=$? | |
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16853 (exit $ac_status); }; }; then | |
16854 gl_cv_func_snprintf_size1=yes | |
16855 else | |
16856 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
16857 $as_echo "$as_me: failed program was:" >&5 | |
16858 sed 's/^/| /' conftest.$ac_ext >&5 | |
16859 | |
16860 ( exit $ac_status ) | |
16861 gl_cv_func_snprintf_size1=no | |
16862 fi | |
16863 rm -rf conftest.dSYM | |
16864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16865 fi | |
16866 | |
16867 | |
16868 | |
16869 fi | |
16870 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5 | |
16871 $as_echo "$gl_cv_func_snprintf_size1" >&6; } | |
16872 | |
16873 case "$gl_cv_func_snprintf_size1" in | |
16874 *yes) | |
16875 gl_cv_func_vsnprintf_usable=yes | |
16876 ;; | |
16877 esac | |
16878 fi | |
16879 if test $gl_cv_func_vsnprintf_usable = no; then | |
16880 | |
16881 | |
16882 | |
16883 | |
16884 | |
16885 | |
16886 | |
16887 | |
16888 | |
16889 | |
16890 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext" | |
16891 | |
16892 if test $ac_cv_func_vsnprintf = yes; then | |
16893 REPLACE_VSNPRINTF=1 | |
16894 fi | |
16895 : | |
16896 | |
16897 fi | |
16898 | |
16899 : | |
16900 | |
16901 | |
16902 | |
16903 | |
16904 | |
16905 if test $ac_cv_have_decl_vsnprintf = no; then | |
16906 HAVE_DECL_VSNPRINTF=0 | |
16907 fi | |
16908 | |
16909 | |
16910 | |
16911 GNULIB_VSNPRINTF=1 | |
16912 | |
16913 | |
16914 | |
16915 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5 | |
16916 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; } | |
16917 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then | |
16918 $as_echo_n "(cached) " >&6 | |
16919 else | |
16920 cat >conftest.$ac_ext <<_ACEOF | |
16921 #include <wchar.h> | |
16922 wchar_t w; | |
16923 _ACEOF | |
16924 rm -f conftest.$ac_objext | |
16925 if { (ac_try="$ac_compile" | |
16926 case "(($ac_try" in | |
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16928 *) ac_try_echo=$ac_try;; | |
16929 esac | |
16930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16931 $as_echo "$ac_try_echo") >&5 | |
16932 (eval "$ac_compile") 2>conftest.er1 | |
16933 ac_status=$? | |
16934 grep -v '^ *+' conftest.er1 >conftest.err | |
16935 rm -f conftest.er1 | |
16936 cat conftest.err >&5 | |
16937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16938 (exit $ac_status); } && { | |
16939 test -z "$ac_c_werror_flag" || | |
16940 test ! -s conftest.err | |
16941 } && test -s conftest.$ac_objext; then | |
16942 gl_cv_header_wchar_h_standalone=yes | |
16943 else | |
16944 $as_echo "$as_me: failed program was:" >&5 | |
16945 sed 's/^/| /' conftest.$ac_ext >&5 | |
16946 | |
16947 gl_cv_header_wchar_h_standalone=no | |
16948 fi | |
16949 | |
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16951 fi | |
16952 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 | |
16953 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; } | |
16954 | |
16955 | |
16956 if test $gt_cv_c_wint_t = yes; then | |
16957 HAVE_WINT_T=1 | |
16958 else | |
16959 HAVE_WINT_T=0 | |
16960 fi | |
16961 | |
16962 | |
16963 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then | |
16964 WCHAR_H=wchar.h | |
16965 fi | |
16966 | |
16967 | |
16968 : | |
16969 | |
16970 | |
16971 | |
16972 | |
16973 | |
16974 if test $ac_cv_header_wchar_h = yes; then | |
16975 HAVE_WCHAR_H=1 | |
16976 else | |
16977 HAVE_WCHAR_H=0 | |
16978 fi | |
16979 | |
16980 | |
16981 | |
16982 | |
16983 | |
16984 : | |
16985 | |
16986 | |
16987 | |
16988 | |
16989 | |
16990 | |
16991 | |
16992 if test $gl_cv_have_include_next = yes; then | |
16993 gl_cv_next_wchar_h='<'wchar.h'>' | |
16994 else | |
16995 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5 | |
16996 $as_echo_n "checking absolute name of <wchar.h>... " >&6; } | |
16997 if test "${gl_cv_next_wchar_h+set}" = set; then | |
16998 $as_echo_n "(cached) " >&6 | |
16999 else | |
17000 | |
17001 if test $ac_cv_header_wchar_h = yes; then | |
17002 cat >conftest.$ac_ext <<_ACEOF | |
17003 /* confdefs.h. */ | |
17004 _ACEOF | |
17005 cat confdefs.h >>conftest.$ac_ext | |
17006 cat >>conftest.$ac_ext <<_ACEOF | |
17007 /* end confdefs.h. */ | |
17008 #include <wchar.h> | |
17009 | |
17010 _ACEOF | |
17011 case "$host_os" in | |
17012 aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
17013 *) gl_absname_cpp="$ac_cpp" ;; | |
17014 esac | |
17015 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
17016 sed -n '\#/wchar.h#{ | |
17017 s#.*"\(.*/wchar.h\)".*#\1# | |
17018 s#^/[^/]#//&# | |
17019 p | |
17020 q | |
17021 }'`'"' | |
17022 else | |
17023 gl_cv_next_wchar_h='<'wchar.h'>' | |
17024 fi | |
17025 | |
17026 fi | |
17027 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 | |
17028 $as_echo "$gl_cv_next_wchar_h" >&6; } | |
17029 fi | |
17030 NEXT_WCHAR_H=$gl_cv_next_wchar_h | |
17031 | |
17032 | |
17033 | |
17034 | |
17035 | |
17036 | |
17037 | |
17038 | |
17039 | |
17040 | |
17041 | |
17042 | |
17043 | |
17044 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext" | |
17045 | |
17046 | |
17047 | |
17048 | |
17049 : | |
17050 | |
17051 | |
17052 : | |
17053 | |
17054 | |
17055 | |
17056 | |
17057 | |
17058 | |
17059 for ac_header in stdint.h | |
17060 do | |
17061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17064 $as_echo_n "checking for $ac_header... " >&6; } | |
17065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17066 $as_echo_n "(cached) " >&6 | |
17067 fi | |
17068 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17069 $as_echo "$as_val"'` | |
17070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17071 $as_echo "$ac_res" >&6; } | |
17072 else | |
17073 # Is the header compilable? | |
17074 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17075 $as_echo_n "checking $ac_header usability... " >&6; } | |
17076 cat >conftest.$ac_ext <<_ACEOF | |
17077 /* confdefs.h. */ | |
17078 _ACEOF | |
17079 cat confdefs.h >>conftest.$ac_ext | |
17080 cat >>conftest.$ac_ext <<_ACEOF | |
17081 /* end confdefs.h. */ | |
17082 $ac_includes_default | |
17083 #include <$ac_header> | |
17084 _ACEOF | |
17085 rm -f conftest.$ac_objext | |
17086 if { (ac_try="$ac_compile" | |
17087 case "(($ac_try" in | |
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17089 *) ac_try_echo=$ac_try;; | |
17090 esac | |
17091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17092 $as_echo "$ac_try_echo") >&5 | |
17093 (eval "$ac_compile") 2>conftest.er1 | |
17094 ac_status=$? | |
17095 grep -v '^ *+' conftest.er1 >conftest.err | |
17096 rm -f conftest.er1 | |
17097 cat conftest.err >&5 | |
17098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17099 (exit $ac_status); } && { | |
17100 test -z "$ac_c_werror_flag" || | |
17101 test ! -s conftest.err | |
17102 } && test -s conftest.$ac_objext; then | |
17103 ac_header_compiler=yes | |
17104 else | |
17105 $as_echo "$as_me: failed program was:" >&5 | |
17106 sed 's/^/| /' conftest.$ac_ext >&5 | |
17107 | |
17108 ac_header_compiler=no | |
17109 fi | |
17110 | |
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17113 $as_echo "$ac_header_compiler" >&6; } | |
17114 | |
17115 # Is the header present? | |
17116 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17117 $as_echo_n "checking $ac_header presence... " >&6; } | |
17118 cat >conftest.$ac_ext <<_ACEOF | |
17119 /* confdefs.h. */ | |
17120 _ACEOF | |
17121 cat confdefs.h >>conftest.$ac_ext | |
17122 cat >>conftest.$ac_ext <<_ACEOF | |
17123 /* end confdefs.h. */ | |
17124 #include <$ac_header> | |
17125 _ACEOF | |
17126 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17127 case "(($ac_try" in | |
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17129 *) ac_try_echo=$ac_try;; | |
17130 esac | |
17131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17132 $as_echo "$ac_try_echo") >&5 | |
17133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17134 ac_status=$? | |
17135 grep -v '^ *+' conftest.er1 >conftest.err | |
17136 rm -f conftest.er1 | |
17137 cat conftest.err >&5 | |
17138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17139 (exit $ac_status); } >/dev/null && { | |
17140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17141 test ! -s conftest.err | |
17142 }; then | |
17143 ac_header_preproc=yes | |
17144 else | |
17145 $as_echo "$as_me: failed program was:" >&5 | |
17146 sed 's/^/| /' conftest.$ac_ext >&5 | |
17147 | |
17148 ac_header_preproc=no | |
17149 fi | |
17150 | |
17151 rm -f conftest.err conftest.$ac_ext | |
17152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17153 $as_echo "$ac_header_preproc" >&6; } | |
17154 | |
17155 # So? What about this header? | |
17156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17157 yes:no: ) | |
17158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17159 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17162 ac_header_preproc=yes | |
17163 ;; | |
17164 no:yes:* ) | |
17165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17166 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17168 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17170 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17172 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17174 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17176 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17177 ( cat <<\_ASBOX | |
17178 ## -------------------------- ## | |
17179 ## Report this to lost@l-w.ca ## | |
17180 ## -------------------------- ## | |
17181 _ASBOX | |
17182 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
17183 ;; | |
17184 esac | |
17185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17186 $as_echo_n "checking for $ac_header... " >&6; } | |
17187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17188 $as_echo_n "(cached) " >&6 | |
17189 else | |
17190 eval "$as_ac_Header=\$ac_header_preproc" | |
17191 fi | |
17192 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17193 $as_echo "$as_val"'` | |
17194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17195 $as_echo "$ac_res" >&6; } | |
17196 | |
17197 fi | |
17198 as_val=`eval 'as_val=${'$as_ac_Header'} | |
17199 $as_echo "$as_val"'` | |
17200 if test "x$as_val" = x""yes; then | |
17201 cat >>confdefs.h <<_ACEOF | |
17202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17203 _ACEOF | |
17204 | |
17205 fi | |
17206 | |
17207 done | |
17208 | |
17209 | |
17210 | |
17211 | |
17212 : | |
17213 | |
17214 | |
17215 | |
17216 | |
17217 | |
17218 | |
17219 | |
17220 | |
17221 | |
17222 | |
17223 | |
17224 gltests_libdeps= | |
17225 gltests_ltlibdeps= | |
17226 | |
17227 | |
17228 | |
17229 | |
17230 | |
17231 | |
17232 | |
17233 | |
17234 gl_source_base='tests' | |
17235 | |
17236 | |
17237 | |
17238 | |
17239 | |
17240 | |
17241 | |
17242 LIBGNU_LIBDEPS="$gl_libdeps" | |
17243 | |
17244 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
17245 | |
17246 | |
17247 ac_config_headers="$ac_config_headers lwasm/config.h" | |
17248 | |
17249 ac_config_files="$ac_config_files Makefile lwasm/Makefile doc/Makefile lwlink/Makefile lwar/Makefile lib/Makefile" | |
17250 | |
17251 cat >confcache <<\_ACEOF | |
17252 # This file is a shell script that caches the results of configure | |
17253 # tests run on this system so they can be shared between configure | |
17254 # scripts and configure runs, see configure's option --config-cache. | |
17255 # It is not useful on other systems. If it contains results you don't | |
17256 # want to keep, you may remove or edit it. | |
17257 # | |
17258 # config.status only pays attention to the cache file if you give it | |
17259 # the --recheck option to rerun configure. | |
17260 # | |
17261 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17262 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17263 # following values. | |
17264 | |
17265 _ACEOF | |
17266 | |
17267 # The following way of writing the cache mishandles newlines in values, | |
17268 # but we know of no workaround that is simple, portable, and efficient. | |
17269 # So, we kill variables containing newlines. | |
17270 # Ultrix sh set writes to stderr and can't be redirected directly, | |
17271 # and sets the high bit in the cache file unless we assign to the vars. | |
17272 ( | |
17273 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17274 eval ac_val=\$$ac_var | |
17275 case $ac_val in #( | |
17276 *${as_nl}*) | |
17277 case $ac_var in #( | |
17278 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
17279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17280 esac | |
17281 case $ac_var in #( | |
17282 _ | IFS | as_nl) ;; #( | |
17283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17284 *) $as_unset $ac_var ;; | |
17285 esac ;; | |
17286 esac | |
17287 done | |
17288 | |
17289 (set) 2>&1 | | |
17290 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17291 *${as_nl}ac_space=\ *) | |
17292 # `set' does not quote correctly, so add quotes (double-quote | |
17293 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17294 sed -n \ | |
17295 "s/'/'\\\\''/g; | |
17296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17297 ;; #( | |
17298 *) | |
17299 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17301 ;; | |
17302 esac | | |
17303 sort | |
17304 ) | | |
17305 sed ' | |
17306 /^ac_cv_env_/b end | |
17307 t clear | |
17308 :clear | |
17309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17310 t end | |
17311 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17312 :end' >>confcache | |
17313 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17314 if test -w "$cache_file"; then | |
17315 test "x$cache_file" != "x/dev/null" && | |
17316 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
17317 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
17318 cat confcache >$cache_file | |
17319 else | |
17320 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
17321 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17322 fi | |
17323 fi | |
17324 rm -f confcache | |
17325 | |
17326 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17327 # Let make expand exec_prefix. | |
17328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17329 | |
17330 DEFS=-DHAVE_CONFIG_H | |
17331 | |
17332 ac_libobjs= | |
17333 ac_ltlibobjs= | |
17334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17335 # 1. Remove the extension, and $U if already installed. | |
17336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
17337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17339 # will be set to the directory where LIBOBJS objects are built. | |
17340 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17341 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
17342 done | |
17343 LIBOBJS=$ac_libobjs | |
17344 | |
17345 LTLIBOBJS=$ac_ltlibobjs | |
17346 | |
17347 | |
17348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
17349 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
17350 Usually this means the macro was only invoked conditionally." >&5 | |
17351 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
17352 Usually this means the macro was only invoked conditionally." >&2;} | |
17353 { (exit 1); exit 1; }; } | |
17354 fi | |
17355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17356 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
17357 Usually this means the macro was only invoked conditionally." >&5 | |
17358 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
17359 Usually this means the macro was only invoked conditionally." >&2;} | |
17360 { (exit 1); exit 1; }; } | |
17361 fi | |
17362 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then | |
17363 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
17364 Usually this means the macro was only invoked conditionally." >&5 | |
17365 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
17366 Usually this means the macro was only invoked conditionally." >&2;} | |
17367 { (exit 1); exit 1; }; } | |
17368 fi | |
17369 | |
17370 gl_libobjs= | |
17371 gl_ltlibobjs= | |
17372 if test -n "$gl_LIBOBJS"; then | |
17373 # Remove the extension. | |
17374 sed_drop_objext='s/\.o$//;s/\.obj$//' | |
17375 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
17376 gl_libobjs="$gl_libobjs $i.$ac_objext" | |
17377 gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
17378 done | |
17379 fi | |
17380 gl_LIBOBJS=$gl_libobjs | |
17381 | |
17382 gl_LTLIBOBJS=$gl_ltlibobjs | |
17383 | |
17384 | |
17385 | |
17386 gltests_libobjs= | |
17387 gltests_ltlibobjs= | |
17388 if test -n "$gltests_LIBOBJS"; then | |
17389 # Remove the extension. | |
17390 sed_drop_objext='s/\.o$//;s/\.obj$//' | |
17391 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
17392 gltests_libobjs="$gltests_libobjs $i.$ac_objext" | |
17393 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
17394 done | |
17395 fi | |
17396 gltests_LIBOBJS=$gltests_libobjs | |
17397 | |
17398 gltests_LTLIBOBJS=$gltests_ltlibobjs | |
17399 | |
17400 | |
17401 | |
17402 : ${CONFIG_STATUS=./config.status} | |
17403 ac_write_fail=0 | |
17404 ac_clean_files_save=$ac_clean_files | |
17405 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
17406 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
17407 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17408 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17409 #! $SHELL | |
17410 # Generated by $as_me. | |
17411 # Run this file to recreate the current configuration. | |
17412 # Compiler output produced by configure, useful for debugging | |
17413 # configure, is in config.log if it exists. | |
17414 | |
17415 debug=false | |
17416 ac_cs_recheck=false | |
17417 ac_cs_silent=false | |
17418 SHELL=\${CONFIG_SHELL-$SHELL} | |
17419 _ACEOF | |
17420 | |
17421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17422 ## --------------------- ## | |
17423 ## M4sh Initialization. ## | |
17424 ## --------------------- ## | |
17425 | |
17426 # Be more Bourne compatible | |
17427 DUALCASE=1; export DUALCASE # for MKS sh | |
17428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17429 emulate sh | |
17430 NULLCMD=: | |
17431 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
17432 # is contrary to our usage. Disable this feature. | |
17433 alias -g '${1+"$@"}'='"$@"' | |
17434 setopt NO_GLOB_SUBST | |
17435 else | |
17436 case `(set -o) 2>/dev/null` in | |
17437 *posix*) set -o posix ;; | |
17438 esac | |
17439 | |
17440 fi | |
17441 | |
17442 | |
17443 | |
17444 | |
17445 # PATH needs CR | |
17446 # Avoid depending upon Character Ranges. | |
17447 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17450 as_cr_digits='0123456789' | |
17451 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17452 | |
17453 as_nl=' | |
17454 ' | |
17455 export as_nl | |
17456 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17460 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17461 as_echo='printf %s\n' | |
17462 as_echo_n='printf %s' | |
17463 else | |
17464 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17465 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17466 as_echo_n='/usr/ucb/echo -n' | |
17467 else | |
17468 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17469 as_echo_n_body='eval | |
17470 arg=$1; | |
17471 case $arg in | |
17472 *"$as_nl"*) | |
17473 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17474 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17475 esac; | |
17476 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17477 ' | |
17478 export as_echo_n_body | |
17479 as_echo_n='sh -c $as_echo_n_body as_echo' | |
17480 fi | |
17481 export as_echo_body | |
17482 as_echo='sh -c $as_echo_body as_echo' | |
17483 fi | |
17484 | |
17485 # The user is always right. | |
17486 if test "${PATH_SEPARATOR+set}" != set; then | |
17487 PATH_SEPARATOR=: | |
17488 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17489 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17490 PATH_SEPARATOR=';' | |
17491 } | |
17492 fi | |
17493 | |
17494 # Support unset when possible. | |
17495 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
17496 as_unset=unset | |
17497 else | |
17498 as_unset=false | |
17499 fi | |
17500 | |
17501 | |
17502 # IFS | |
17503 # We need space, tab and new line, in precisely that order. Quoting is | |
17504 # there to prevent editors from complaining about space-tab. | |
17505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17506 # splitting by setting IFS to empty value.) | |
17507 IFS=" "" $as_nl" | |
17508 | |
17509 # Find who we are. Look in the path if we contain no directory separator. | |
17510 case $0 in | |
17511 *[\\/]* ) as_myself=$0 ;; | |
17512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17513 for as_dir in $PATH | |
17514 do | |
17515 IFS=$as_save_IFS | |
17516 test -z "$as_dir" && as_dir=. | |
17517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17518 done | |
17519 IFS=$as_save_IFS | |
17520 | |
17521 ;; | |
17522 esac | |
17523 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17524 # in which case we are not to be found in the path. | |
17525 if test "x$as_myself" = x; then | |
17526 as_myself=$0 | |
17527 fi | |
17528 if test ! -f "$as_myself"; then | |
17529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17530 { (exit 1); exit 1; } | |
17531 fi | |
17532 | |
17533 # Work around bugs in pre-3.0 UWIN ksh. | |
17534 for as_var in ENV MAIL MAILPATH | |
17535 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
17536 done | |
17537 PS1='$ ' | |
17538 PS2='> ' | |
17539 PS4='+ ' | |
17540 | |
17541 # NLS nuisances. | |
17542 LC_ALL=C | |
17543 export LC_ALL | |
17544 LANGUAGE=C | |
17545 export LANGUAGE | |
17546 | |
17547 # Required to use basename. | |
17548 if expr a : '\(a\)' >/dev/null 2>&1 && | |
17549 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
17550 as_expr=expr | |
17551 else | |
17552 as_expr=false | |
17553 fi | |
17554 | |
17555 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
17556 as_basename=basename | |
17557 else | |
17558 as_basename=false | |
17559 fi | |
17560 | |
17561 | |
17562 # Name of the executable. | |
17563 as_me=`$as_basename -- "$0" || | |
17564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
17565 X"$0" : 'X\(//\)$' \| \ | |
17566 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
17567 $as_echo X/"$0" | | |
17568 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17569 s//\1/ | |
17570 q | |
17571 } | |
17572 /^X\/\(\/\/\)$/{ | |
17573 s//\1/ | |
17574 q | |
17575 } | |
17576 /^X\/\(\/\).*/{ | |
17577 s//\1/ | |
17578 q | |
17579 } | |
17580 s/.*/./; q'` | |
17581 | |
17582 # CDPATH. | |
17583 $as_unset CDPATH | |
17584 | |
17585 | |
17586 | |
17587 as_lineno_1=$LINENO | |
17588 as_lineno_2=$LINENO | |
17589 test "x$as_lineno_1" != "x$as_lineno_2" && | |
17590 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
17591 | |
17592 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
17593 # uniformly replaced by the line number. The first 'sed' inserts a | |
17594 # line-number line after each line using $LINENO; the second 'sed' | |
17595 # does the real work. The second script uses 'N' to pair each | |
17596 # line-number line with the line containing $LINENO, and appends | |
17597 # trailing '-' during substitution so that $LINENO is not a special | |
17598 # case at line end. | |
17599 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
17600 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
17601 # E. McMahon (1931-1989) for sed's syntax. :-) | |
17602 sed -n ' | |
17603 p | |
17604 /[$]LINENO/= | |
17605 ' <$as_myself | | |
17606 sed ' | |
17607 s/[$]LINENO.*/&-/ | |
17608 t lineno | |
17609 b | |
17610 :lineno | |
17611 N | |
17612 :loop | |
17613 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
17614 t loop | |
17615 s/-\n.*// | |
17616 ' >$as_me.lineno && | |
17617 chmod +x "$as_me.lineno" || | |
17618 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
17619 { (exit 1); exit 1; }; } | |
17620 | |
17621 # Don't try to exec as it changes $[0], causing all sort of problems | |
17622 # (the dirname of $[0] is not the place where we might find the | |
17623 # original and so on. Autoconf is especially sensitive to this). | |
17624 . "./$as_me.lineno" | |
17625 # Exit status is that of the last command. | |
17626 exit | |
17627 } | |
17628 | |
17629 | |
17630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
17631 as_dirname=dirname | |
17632 else | |
17633 as_dirname=false | |
17634 fi | |
17635 | |
17636 ECHO_C= ECHO_N= ECHO_T= | |
17637 case `echo -n x` in | |
17638 -n*) | |
17639 case `echo 'x\c'` in | |
17640 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17641 *) ECHO_C='\c';; | |
17642 esac;; | |
17643 *) | |
17644 ECHO_N='-n';; | |
17645 esac | |
17646 if expr a : '\(a\)' >/dev/null 2>&1 && | |
17647 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
17648 as_expr=expr | |
17649 else | |
17650 as_expr=false | |
17651 fi | |
17652 | |
17653 rm -f conf$$ conf$$.exe conf$$.file | |
17654 if test -d conf$$.dir; then | |
17655 rm -f conf$$.dir/conf$$.file | |
17656 else | |
17657 rm -f conf$$.dir | |
17658 mkdir conf$$.dir 2>/dev/null | |
17659 fi | |
17660 if (echo >conf$$.file) 2>/dev/null; then | |
17661 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
17662 as_ln_s='ln -s' | |
17663 # ... but there are two gotchas: | |
17664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17666 # In both cases, we have to default to `cp -p'. | |
17667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17668 as_ln_s='cp -p' | |
17669 elif ln conf$$.file conf$$ 2>/dev/null; then | |
17670 as_ln_s=ln | |
17671 else | |
17672 as_ln_s='cp -p' | |
17673 fi | |
17674 else | |
17675 as_ln_s='cp -p' | |
17676 fi | |
17677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
17678 rmdir conf$$.dir 2>/dev/null | |
17679 | |
17680 if mkdir -p . 2>/dev/null; then | |
17681 as_mkdir_p=: | |
17682 else | |
17683 test -d ./-p && rmdir ./-p | |
17684 as_mkdir_p=false | |
17685 fi | |
17686 | |
17687 if test -x / >/dev/null 2>&1; then | |
17688 as_test_x='test -x' | |
17689 else | |
17690 if ls -dL / >/dev/null 2>&1; then | |
17691 as_ls_L_option=L | |
17692 else | |
17693 as_ls_L_option= | |
17694 fi | |
17695 as_test_x=' | |
17696 eval sh -c '\'' | |
17697 if test -d "$1"; then | |
17698 test -d "$1/."; | |
17699 else | |
17700 case $1 in | |
17701 -*)set "./$1";; | |
17702 esac; | |
17703 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
17704 ???[sx]*):;;*)false;;esac;fi | |
17705 '\'' sh | |
17706 ' | |
17707 fi | |
17708 as_executable_p=$as_test_x | |
17709 | |
17710 # Sed expression to map a string onto a valid CPP name. | |
17711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17712 | |
17713 # Sed expression to map a string onto a valid variable name. | |
17714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17715 | |
17716 | |
17717 exec 6>&1 | |
17718 | |
17719 # Save the log message, to keep $[0] and so on meaningful, and to | |
17720 # report actual input values of CONFIG_FILES etc. instead of their | |
17721 # values after options handling. | |
17722 ac_log=" | |
17723 This file was extended by LWTOOLS $as_me 2.3, which was | |
17724 generated by GNU Autoconf 2.63. Invocation command line was | |
17725 | |
17726 CONFIG_FILES = $CONFIG_FILES | |
17727 CONFIG_HEADERS = $CONFIG_HEADERS | |
17728 CONFIG_LINKS = $CONFIG_LINKS | |
17729 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17730 $ $0 $@ | |
17731 | |
17732 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
17733 " | |
17734 | |
17735 _ACEOF | |
17736 | |
17737 case $ac_config_files in *" | |
17738 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17739 esac | |
17740 | |
17741 case $ac_config_headers in *" | |
17742 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17743 esac | |
17744 | |
17745 | |
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17747 # Files that config.status was made for. | |
17748 config_files="$ac_config_files" | |
17749 config_headers="$ac_config_headers" | |
17750 config_commands="$ac_config_commands" | |
17751 | |
17752 _ACEOF | |
17753 | |
17754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17755 ac_cs_usage="\ | |
17756 \`$as_me' instantiates files from templates according to the | |
17757 current configuration. | |
17758 | |
17759 Usage: $0 [OPTION]... [FILE]... | |
17760 | |
17761 -h, --help print this help, then exit | |
17762 -V, --version print version number and configuration settings, then exit | |
17763 -q, --quiet, --silent | |
17764 do not print progress messages | |
17765 -d, --debug don't remove temporary files | |
17766 --recheck update $as_me by reconfiguring in the same conditions | |
17767 --file=FILE[:TEMPLATE] | |
17768 instantiate the configuration file FILE | |
17769 --header=FILE[:TEMPLATE] | |
17770 instantiate the configuration header FILE | |
17771 | |
17772 Configuration files: | |
17773 $config_files | |
17774 | |
17775 Configuration headers: | |
17776 $config_headers | |
17777 | |
17778 Configuration commands: | |
17779 $config_commands | |
17780 | |
17781 Report bugs to <bug-autoconf@gnu.org>." | |
17782 | |
17783 _ACEOF | |
17784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17785 ac_cs_version="\\ | |
17786 LWTOOLS config.status 2.3 | |
17787 configured by $0, generated by GNU Autoconf 2.63, | |
17788 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
17789 | |
17790 Copyright (C) 2008 Free Software Foundation, Inc. | |
17791 This config.status script is free software; the Free Software Foundation | |
17792 gives unlimited permission to copy, distribute and modify it." | |
17793 | |
17794 ac_pwd='$ac_pwd' | |
17795 srcdir='$srcdir' | |
17796 INSTALL='$INSTALL' | |
17797 MKDIR_P='$MKDIR_P' | |
17798 AWK='$AWK' | |
17799 test -n "\$AWK" || AWK=awk | |
17800 _ACEOF | |
17801 | |
17802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17803 # The default lists apply if the user does not specify any file. | |
17804 ac_need_defaults=: | |
17805 while test $# != 0 | |
17806 do | |
17807 case $1 in | |
17808 --*=*) | |
17809 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17810 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17811 ac_shift=: | |
17812 ;; | |
17813 *) | |
17814 ac_option=$1 | |
17815 ac_optarg=$2 | |
17816 ac_shift=shift | |
17817 ;; | |
17818 esac | |
17819 | |
17820 case $ac_option in | |
17821 # Handling of the options. | |
17822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17823 ac_cs_recheck=: ;; | |
17824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17825 $as_echo "$ac_cs_version"; exit ;; | |
17826 --debug | --debu | --deb | --de | --d | -d ) | |
17827 debug=: ;; | |
17828 --file | --fil | --fi | --f ) | |
17829 $ac_shift | |
17830 case $ac_optarg in | |
17831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17832 esac | |
17833 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
17834 ac_need_defaults=false;; | |
17835 --header | --heade | --head | --hea ) | |
17836 $ac_shift | |
17837 case $ac_optarg in | |
17838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17839 esac | |
17840 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
17841 ac_need_defaults=false;; | |
17842 --he | --h) | |
17843 # Conflict between --help and --header | |
17844 { $as_echo "$as_me: error: ambiguous option: $1 | |
17845 Try \`$0 --help' for more information." >&2 | |
17846 { (exit 1); exit 1; }; };; | |
17847 --help | --hel | -h ) | |
17848 $as_echo "$ac_cs_usage"; exit ;; | |
17849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17850 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17851 ac_cs_silent=: ;; | |
17852 | |
17853 # This is an error. | |
17854 -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
17855 Try \`$0 --help' for more information." >&2 | |
17856 { (exit 1); exit 1; }; } ;; | |
17857 | |
17858 *) ac_config_targets="$ac_config_targets $1" | |
17859 ac_need_defaults=false ;; | |
17860 | |
17861 esac | |
17862 shift | |
17863 done | |
17864 | |
17865 ac_configure_extra_args= | |
17866 | |
17867 if $ac_cs_silent; then | |
17868 exec 6>/dev/null | |
17869 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17870 fi | |
17871 | |
17872 _ACEOF | |
17873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17874 if \$ac_cs_recheck; then | |
17875 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17876 shift | |
17877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17878 CONFIG_SHELL='$SHELL' | |
17879 export CONFIG_SHELL | |
17880 exec "\$@" | |
17881 fi | |
17882 | |
17883 _ACEOF | |
17884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17885 exec 5>>config.log | |
17886 { | |
17887 echo | |
17888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17889 ## Running $as_me. ## | |
17890 _ASBOX | |
17891 $as_echo "$ac_log" | |
17892 } >&5 | |
17893 | |
17894 _ACEOF | |
17895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17896 # | |
17897 # INIT-COMMANDS | |
17898 # | |
17899 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
17900 | |
17901 _ACEOF | |
17902 | |
17903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17904 | |
17905 # Handling of arguments. | |
17906 for ac_config_target in $ac_config_targets | |
17907 do | |
17908 case $ac_config_target in | |
17909 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
17910 "lwasm/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lwasm/config.h" ;; | |
17911 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17912 "lwasm/Makefile") CONFIG_FILES="$CONFIG_FILES lwasm/Makefile" ;; | |
17913 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
17914 "lwlink/Makefile") CONFIG_FILES="$CONFIG_FILES lwlink/Makefile" ;; | |
17915 "lwar/Makefile") CONFIG_FILES="$CONFIG_FILES lwar/Makefile" ;; | |
17916 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
17917 | |
17918 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
17919 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
17920 { (exit 1); exit 1; }; };; | |
17921 esac | |
17922 done | |
17923 | |
17924 | |
17925 # If the user did not use the arguments to specify the items to instantiate, | |
17926 # then the envvar interface is used. Set only those that are not. | |
17927 # We use the long form for the default assignment because of an extremely | |
17928 # bizarre bug on SunOS 4.1.3. | |
17929 if $ac_need_defaults; then | |
17930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
17932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17933 fi | |
17934 | |
17935 # Have a temporary directory for convenience. Make it in the build tree | |
17936 # simply because there is no reason against having it here, and in addition, | |
17937 # creating and moving files from /tmp can sometimes cause problems. | |
17938 # Hook for its removal unless debugging. | |
17939 # Note that there is a small window in which the directory will not be cleaned: | |
17940 # after its creation but before its name has been assigned to `$tmp'. | |
17941 $debug || | |
17942 { | |
17943 tmp= | |
17944 trap 'exit_status=$? | |
17945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
17946 ' 0 | |
17947 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
17948 } | |
17949 # Create a (secure) tmp directory for tmp files. | |
17950 | |
17951 { | |
17952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
17953 test -n "$tmp" && test -d "$tmp" | |
17954 } || | |
17955 { | |
17956 tmp=./conf$$-$RANDOM | |
17957 (umask 077 && mkdir "$tmp") | |
17958 } || | |
17959 { | |
17960 $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
17961 { (exit 1); exit 1; } | |
17962 } | |
17963 | |
17964 # Set up the scripts for CONFIG_FILES section. | |
17965 # No need to generate them if there are no CONFIG_FILES. | |
17966 # This happens for instance with `./config.status config.h'. | |
17967 if test -n "$CONFIG_FILES"; then | |
17968 | |
17969 | |
17970 ac_cr=' | |
17971 ' | |
17972 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17973 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17974 ac_cs_awk_cr='\\r' | |
17975 else | |
17976 ac_cs_awk_cr=$ac_cr | |
17977 fi | |
17978 | |
17979 echo 'BEGIN {' >"$tmp/subs1.awk" && | |
17980 _ACEOF | |
17981 | |
17982 | |
17983 { | |
17984 echo "cat >conf$$subs.awk <<_ACEOF" && | |
17985 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17986 echo "_ACEOF" | |
17987 } >conf$$subs.sh || | |
17988 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
17989 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
17990 { (exit 1); exit 1; }; } | |
17991 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
17992 ac_delim='%!_!# ' | |
17993 for ac_last_try in false false false false false :; do | |
17994 . ./conf$$subs.sh || | |
17995 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
17996 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
17997 { (exit 1); exit 1; }; } | |
17998 | |
17999 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18000 if test $ac_delim_n = $ac_delim_num; then | |
18001 break | |
18002 elif $ac_last_try; then | |
18003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18004 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18005 { (exit 1); exit 1; }; } | |
18006 else | |
18007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18008 fi | |
18009 done | |
18010 rm -f conf$$subs.sh | |
18011 | |
18012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18013 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18014 _ACEOF | |
18015 sed -n ' | |
18016 h | |
18017 s/^/S["/; s/!.*/"]=/ | |
18018 p | |
18019 g | |
18020 s/^[^!]*!// | |
18021 :repl | |
18022 t repl | |
18023 s/'"$ac_delim"'$// | |
18024 t delim | |
18025 :nl | |
18026 h | |
18027 s/\(.\{148\}\).*/\1/ | |
18028 t more1 | |
18029 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18030 p | |
18031 n | |
18032 b repl | |
18033 :more1 | |
18034 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18035 p | |
18036 g | |
18037 s/.\{148\}// | |
18038 t nl | |
18039 :delim | |
18040 h | |
18041 s/\(.\{148\}\).*/\1/ | |
18042 t more2 | |
18043 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18044 p | |
18045 b | |
18046 :more2 | |
18047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18048 p | |
18049 g | |
18050 s/.\{148\}// | |
18051 t delim | |
18052 ' <conf$$subs.awk | sed ' | |
18053 /^[^""]/{ | |
18054 N | |
18055 s/\n// | |
18056 } | |
18057 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18058 rm -f conf$$subs.awk | |
18059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18060 _ACAWK | |
18061 cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18062 for (key in S) S_is_set[key] = 1 | |
18063 FS = "" | |
18064 | |
18065 } | |
18066 { | |
18067 line = $ 0 | |
18068 nfields = split(line, field, "@") | |
18069 substed = 0 | |
18070 len = length(field[1]) | |
18071 for (i = 2; i < nfields; i++) { | |
18072 key = field[i] | |
18073 keylen = length(key) | |
18074 if (S_is_set[key]) { | |
18075 value = S[key] | |
18076 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18077 len += length(value) + length(field[++i]) | |
18078 substed = 1 | |
18079 } else | |
18080 len += 1 + keylen | |
18081 } | |
18082 | |
18083 print line | |
18084 } | |
18085 | |
18086 _ACAWK | |
18087 _ACEOF | |
18088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18089 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18090 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18091 else | |
18092 cat | |
18093 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18094 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
18095 $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
18096 { (exit 1); exit 1; }; } | |
18097 _ACEOF | |
18098 | |
18099 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
18100 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18101 # trailing colons and then remove the whole line if VPATH becomes empty | |
18102 # (actually we leave an empty line to preserve line numbers). | |
18103 if test "x$srcdir" = x.; then | |
18104 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18105 s/:*\$(srcdir):*/:/ | |
18106 s/:*\${srcdir}:*/:/ | |
18107 s/:*@srcdir@:*/:/ | |
18108 s/^\([^=]*=[ ]*\):*/\1/ | |
18109 s/:*$// | |
18110 s/^[^=]*=[ ]*$// | |
18111 }' | |
18112 fi | |
18113 | |
18114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18115 fi # test -n "$CONFIG_FILES" | |
18116 | |
18117 # Set up the scripts for CONFIG_HEADERS section. | |
18118 # No need to generate them if there are no CONFIG_HEADERS. | |
18119 # This happens for instance with `./config.status Makefile'. | |
18120 if test -n "$CONFIG_HEADERS"; then | |
18121 cat >"$tmp/defines.awk" <<\_ACAWK || | |
18122 BEGIN { | |
18123 _ACEOF | |
18124 | |
18125 # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18126 # here-document in config.status, that substitutes the proper values into | |
18127 # config.h.in to produce config.h. | |
18128 | |
18129 # Create a delimiter string that does not exist in confdefs.h, to ease | |
18130 # handling of long lines. | |
18131 ac_delim='%!_!# ' | |
18132 for ac_last_try in false false :; do | |
18133 ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18134 if test -z "$ac_t"; then | |
18135 break | |
18136 elif $ac_last_try; then | |
18137 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
18138 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
18139 { (exit 1); exit 1; }; } | |
18140 else | |
18141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18142 fi | |
18143 done | |
18144 | |
18145 # For the awk script, D is an array of macro values keyed by name, | |
18146 # likewise P contains macro parameters if any. Preserve backslash | |
18147 # newline sequences. | |
18148 | |
18149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18150 sed -n ' | |
18151 s/.\{148\}/&'"$ac_delim"'/g | |
18152 t rset | |
18153 :rset | |
18154 s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18155 t def | |
18156 d | |
18157 :def | |
18158 s/\\$// | |
18159 t bsnl | |
18160 s/["\\]/\\&/g | |
18161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18162 D["\1"]=" \3"/p | |
18163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18164 d | |
18165 :bsnl | |
18166 s/["\\]/\\&/g | |
18167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18168 D["\1"]=" \3\\\\\\n"\\/p | |
18169 t cont | |
18170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18171 t cont | |
18172 d | |
18173 :cont | |
18174 n | |
18175 s/.\{148\}/&'"$ac_delim"'/g | |
18176 t clear | |
18177 :clear | |
18178 s/\\$// | |
18179 t bsnlc | |
18180 s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18181 d | |
18182 :bsnlc | |
18183 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18184 b cont | |
18185 ' <confdefs.h | sed ' | |
18186 s/'"$ac_delim"'/"\\\ | |
18187 "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18188 | |
18189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18190 for (key in D) D_is_set[key] = 1 | |
18191 FS = "" | |
18192 } | |
18193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18194 line = \$ 0 | |
18195 split(line, arg, " ") | |
18196 if (arg[1] == "#") { | |
18197 defundef = arg[2] | |
18198 mac1 = arg[3] | |
18199 } else { | |
18200 defundef = substr(arg[1], 2) | |
18201 mac1 = arg[2] | |
18202 } | |
18203 split(mac1, mac2, "(") #) | |
18204 macro = mac2[1] | |
18205 prefix = substr(line, 1, index(line, defundef) - 1) | |
18206 if (D_is_set[macro]) { | |
18207 # Preserve the white space surrounding the "#". | |
18208 print prefix "define", macro P[macro] D[macro] | |
18209 next | |
18210 } else { | |
18211 # Replace #undef with comments. This is necessary, for example, | |
18212 # in the case of _POSIX_SOURCE, which is predefined and required | |
18213 # on some systems where configure will not decide to define it. | |
18214 if (defundef == "undef") { | |
18215 print "/*", prefix defundef, macro, "*/" | |
18216 next | |
18217 } | |
18218 } | |
18219 } | |
18220 { print } | |
18221 _ACAWK | |
18222 _ACEOF | |
18223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18224 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
18225 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
18226 { (exit 1); exit 1; }; } | |
18227 fi # test -n "$CONFIG_HEADERS" | |
18228 | |
18229 | |
18230 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18231 shift | |
18232 for ac_tag | |
18233 do | |
18234 case $ac_tag in | |
18235 :[FHLC]) ac_mode=$ac_tag; continue;; | |
18236 esac | |
18237 case $ac_mode$ac_tag in | |
18238 :[FHL]*:*);; | |
18239 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
18240 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
18241 { (exit 1); exit 1; }; };; | |
18242 :[FH]-) ac_tag=-:-;; | |
18243 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18244 esac | |
18245 ac_save_IFS=$IFS | |
18246 IFS=: | |
18247 set x $ac_tag | |
18248 IFS=$ac_save_IFS | |
18249 shift | |
18250 ac_file=$1 | |
18251 shift | |
18252 | |
18253 case $ac_mode in | |
18254 :L) ac_source=$1;; | |
18255 :[FH]) | |
18256 ac_file_inputs= | |
18257 for ac_f | |
18258 do | |
18259 case $ac_f in | |
18260 -) ac_f="$tmp/stdin";; | |
18261 *) # Look for the file first in the build tree, then in the source tree | |
18262 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18263 # because $ac_f cannot contain `:'. | |
18264 test -f "$ac_f" || | |
18265 case $ac_f in | |
18266 [\\/$]*) false;; | |
18267 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18268 esac || | |
18269 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
18270 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
18271 { (exit 1); exit 1; }; };; | |
18272 esac | |
18273 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18274 ac_file_inputs="$ac_file_inputs '$ac_f'" | |
18275 done | |
18276 | |
18277 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18278 # use $as_me), people would be surprised to read: | |
18279 # /* config.h. Generated by config.status. */ | |
18280 configure_input='Generated from '` | |
18281 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18282 `' by configure.' | |
18283 if test x"$ac_file" != x-; then | |
18284 configure_input="$ac_file. $configure_input" | |
18285 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
18286 $as_echo "$as_me: creating $ac_file" >&6;} | |
18287 fi | |
18288 # Neutralize special characters interpreted by sed in replacement strings. | |
18289 case $configure_input in #( | |
18290 *\&* | *\|* | *\\* ) | |
18291 ac_sed_conf_input=`$as_echo "$configure_input" | | |
18292 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18293 *) ac_sed_conf_input=$configure_input;; | |
18294 esac | |
18295 | |
18296 case $ac_tag in | |
18297 *:-:* | *:-) cat >"$tmp/stdin" \ | |
18298 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18299 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18300 { (exit 1); exit 1; }; } ;; | |
18301 esac | |
18302 ;; | |
18303 esac | |
18304 | |
18305 ac_dir=`$as_dirname -- "$ac_file" || | |
18306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18307 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18308 X"$ac_file" : 'X\(//\)$' \| \ | |
18309 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
18310 $as_echo X"$ac_file" | | |
18311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18312 s//\1/ | |
18313 q | |
18314 } | |
18315 /^X\(\/\/\)[^/].*/{ | |
18316 s//\1/ | |
18317 q | |
18318 } | |
18319 /^X\(\/\/\)$/{ | |
18320 s//\1/ | |
18321 q | |
18322 } | |
18323 /^X\(\/\).*/{ | |
18324 s//\1/ | |
18325 q | |
18326 } | |
18327 s/.*/./; q'` | |
18328 { as_dir="$ac_dir" | |
18329 case $as_dir in #( | |
18330 -*) as_dir=./$as_dir;; | |
18331 esac | |
18332 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
18333 as_dirs= | |
18334 while :; do | |
18335 case $as_dir in #( | |
18336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18337 *) as_qdir=$as_dir;; | |
18338 esac | |
18339 as_dirs="'$as_qdir' $as_dirs" | |
18340 as_dir=`$as_dirname -- "$as_dir" || | |
18341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18342 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18343 X"$as_dir" : 'X\(//\)$' \| \ | |
18344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18345 $as_echo X"$as_dir" | | |
18346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18347 s//\1/ | |
18348 q | |
18349 } | |
18350 /^X\(\/\/\)[^/].*/{ | |
18351 s//\1/ | |
18352 q | |
18353 } | |
18354 /^X\(\/\/\)$/{ | |
18355 s//\1/ | |
18356 q | |
18357 } | |
18358 /^X\(\/\).*/{ | |
18359 s//\1/ | |
18360 q | |
18361 } | |
18362 s/.*/./; q'` | |
18363 test -d "$as_dir" && break | |
18364 done | |
18365 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
18366 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
18367 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
18368 { (exit 1); exit 1; }; }; } | |
18369 ac_builddir=. | |
18370 | |
18371 case "$ac_dir" in | |
18372 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18373 *) | |
18374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18375 # A ".." for each directory in $ac_dir_suffix. | |
18376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18377 case $ac_top_builddir_sub in | |
18378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18380 esac ;; | |
18381 esac | |
18382 ac_abs_top_builddir=$ac_pwd | |
18383 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18384 # for backward compatibility: | |
18385 ac_top_builddir=$ac_top_build_prefix | |
18386 | |
18387 case $srcdir in | |
18388 .) # We are building in place. | |
18389 ac_srcdir=. | |
18390 ac_top_srcdir=$ac_top_builddir_sub | |
18391 ac_abs_top_srcdir=$ac_pwd ;; | |
18392 [\\/]* | ?:[\\/]* ) # Absolute name. | |
18393 ac_srcdir=$srcdir$ac_dir_suffix; | |
18394 ac_top_srcdir=$srcdir | |
18395 ac_abs_top_srcdir=$srcdir ;; | |
18396 *) # Relative name. | |
18397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18398 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
18400 esac | |
18401 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
18402 | |
18403 | |
18404 case $ac_mode in | |
18405 :F) | |
18406 # | |
18407 # CONFIG_FILE | |
18408 # | |
18409 | |
18410 case $INSTALL in | |
18411 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
18412 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
18413 esac | |
18414 ac_MKDIR_P=$MKDIR_P | |
18415 case $MKDIR_P in | |
18416 [\\/$]* | ?:[\\/]* ) ;; | |
18417 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18418 esac | |
18419 _ACEOF | |
18420 | |
18421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18422 # If the template does not know about datarootdir, expand it. | |
18423 # FIXME: This hack should be removed a few years after 2.60. | |
18424 ac_datarootdir_hack=; ac_datarootdir_seen= | |
18425 | |
18426 ac_sed_dataroot=' | |
18427 /datarootdir/ { | |
18428 p | |
18429 q | |
18430 } | |
18431 /@datadir@/p | |
18432 /@docdir@/p | |
18433 /@infodir@/p | |
18434 /@localedir@/p | |
18435 /@mandir@/p | |
18436 ' | |
18437 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18438 *datarootdir*) ac_datarootdir_seen=yes;; | |
18439 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18440 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18441 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18442 _ACEOF | |
18443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18444 ac_datarootdir_hack=' | |
18445 s&@datadir@&$datadir&g | |
18446 s&@docdir@&$docdir&g | |
18447 s&@infodir@&$infodir&g | |
18448 s&@localedir@&$localedir&g | |
18449 s&@mandir@&$mandir&g | |
18450 s&\\\${datarootdir}&$datarootdir&g' ;; | |
18451 esac | |
18452 _ACEOF | |
18453 | |
18454 # Neutralize VPATH when `$srcdir' = `.'. | |
18455 # Shell code in configure.ac might set extrasub. | |
18456 # FIXME: do we really want to maintain this feature? | |
18457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18458 ac_sed_extra="$ac_vpsub | |
18459 $extrasub | |
18460 _ACEOF | |
18461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18462 :t | |
18463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18464 s|@configure_input@|$ac_sed_conf_input|;t t | |
18465 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18466 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18467 s&@srcdir@&$ac_srcdir&;t t | |
18468 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18469 s&@top_srcdir@&$ac_top_srcdir&;t t | |
18470 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18471 s&@builddir@&$ac_builddir&;t t | |
18472 s&@abs_builddir@&$ac_abs_builddir&;t t | |
18473 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18474 s&@INSTALL@&$ac_INSTALL&;t t | |
18475 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18476 $ac_datarootdir_hack | |
18477 " | |
18478 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
18479 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18480 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18481 { (exit 1); exit 1; }; } | |
18482 | |
18483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
18484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
18485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
18486 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18487 which seems to be undefined. Please make sure it is defined." >&5 | |
18488 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18489 which seems to be undefined. Please make sure it is defined." >&2;} | |
18490 | |
18491 rm -f "$tmp/stdin" | |
18492 case $ac_file in | |
18493 -) cat "$tmp/out" && rm -f "$tmp/out";; | |
18494 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
18495 esac \ | |
18496 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18497 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18498 { (exit 1); exit 1; }; } | |
18499 ;; | |
18500 :H) | |
18501 # | |
18502 # CONFIG_HEADER | |
18503 # | |
18504 if test x"$ac_file" != x-; then | |
18505 { | |
18506 $as_echo "/* $configure_input */" \ | |
18507 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
18508 } >"$tmp/config.h" \ | |
18509 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18510 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18511 { (exit 1); exit 1; }; } | |
18512 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
18513 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
18514 $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
18515 else | |
18516 rm -f "$ac_file" | |
18517 mv "$tmp/config.h" "$ac_file" \ | |
18518 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18519 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18520 { (exit 1); exit 1; }; } | |
18521 fi | |
18522 else | |
18523 $as_echo "/* $configure_input */" \ | |
18524 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
18525 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
18526 $as_echo "$as_me: error: could not create -" >&2;} | |
18527 { (exit 1); exit 1; }; } | |
18528 fi | |
18529 # Compute "$ac_file"'s index in $config_headers. | |
18530 _am_arg="$ac_file" | |
18531 _am_stamp_count=1 | |
18532 for _am_header in $config_headers :; do | |
18533 case $_am_header in | |
18534 $_am_arg | $_am_arg:* ) | |
18535 break ;; | |
18536 * ) | |
18537 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18538 esac | |
18539 done | |
18540 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
18541 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18542 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18543 X"$_am_arg" : 'X\(//\)$' \| \ | |
18544 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18545 $as_echo X"$_am_arg" | | |
18546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18547 s//\1/ | |
18548 q | |
18549 } | |
18550 /^X\(\/\/\)[^/].*/{ | |
18551 s//\1/ | |
18552 q | |
18553 } | |
18554 /^X\(\/\/\)$/{ | |
18555 s//\1/ | |
18556 q | |
18557 } | |
18558 /^X\(\/\).*/{ | |
18559 s//\1/ | |
18560 q | |
18561 } | |
18562 s/.*/./; q'`/stamp-h$_am_stamp_count | |
18563 ;; | |
18564 | |
18565 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
18566 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18567 ;; | |
18568 esac | |
18569 | |
18570 | |
18571 case $ac_file$ac_mode in | |
18572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
18573 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
18574 # are listed without --file. Let's play safe and only enable the eval | |
18575 # if we detect the quoting. | |
18576 case $CONFIG_FILES in | |
18577 *\'*) eval set x "$CONFIG_FILES" ;; | |
18578 *) set x $CONFIG_FILES ;; | |
18579 esac | |
18580 shift | |
18581 for mf | |
18582 do | |
18583 # Strip MF so we end up with the name of the file. | |
18584 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18585 # Check whether this is an Automake generated Makefile or not. | |
18586 # We used to match only the files named `Makefile.in', but | |
18587 # some people rename them; so instead we look at the file content. | |
18588 # Grep'ing the first line is not enough: some people post-process | |
18589 # each Makefile.in and add a new line on top of each file to say so. | |
18590 # Grep'ing the whole file is not good either: AIX grep has a line | |
18591 # limit of 2048, but all sed's we know have understand at least 4000. | |
18592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18593 dirpart=`$as_dirname -- "$mf" || | |
18594 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18595 X"$mf" : 'X\(//\)[^/]' \| \ | |
18596 X"$mf" : 'X\(//\)$' \| \ | |
18597 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
18598 $as_echo X"$mf" | | |
18599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18600 s//\1/ | |
18601 q | |
18602 } | |
18603 /^X\(\/\/\)[^/].*/{ | |
18604 s//\1/ | |
18605 q | |
18606 } | |
18607 /^X\(\/\/\)$/{ | |
18608 s//\1/ | |
18609 q | |
18610 } | |
18611 /^X\(\/\).*/{ | |
18612 s//\1/ | |
18613 q | |
18614 } | |
18615 s/.*/./; q'` | |
18616 else | |
18617 continue | |
18618 fi | |
18619 # Extract the definition of DEPDIR, am__include, and am__quote | |
18620 # from the Makefile without running `make'. | |
18621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18622 test -z "$DEPDIR" && continue | |
18623 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18624 test -z "am__include" && continue | |
18625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18626 # When using ansi2knr, U may be empty or an underscore; expand it | |
18627 U=`sed -n 's/^U = //p' < "$mf"` | |
18628 # Find all dependency output files, they are included files with | |
18629 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18630 # simplest approach to changing $(DEPDIR) to its actual value in the | |
18631 # expansion. | |
18632 for file in `sed -n " | |
18633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
18635 # Make sure the directory exists. | |
18636 test -f "$dirpart/$file" && continue | |
18637 fdir=`$as_dirname -- "$file" || | |
18638 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18639 X"$file" : 'X\(//\)[^/]' \| \ | |
18640 X"$file" : 'X\(//\)$' \| \ | |
18641 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
18642 $as_echo X"$file" | | |
18643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18644 s//\1/ | |
18645 q | |
18646 } | |
18647 /^X\(\/\/\)[^/].*/{ | |
18648 s//\1/ | |
18649 q | |
18650 } | |
18651 /^X\(\/\/\)$/{ | |
18652 s//\1/ | |
18653 q | |
18654 } | |
18655 /^X\(\/\).*/{ | |
18656 s//\1/ | |
18657 q | |
18658 } | |
18659 s/.*/./; q'` | |
18660 { as_dir=$dirpart/$fdir | |
18661 case $as_dir in #( | |
18662 -*) as_dir=./$as_dir;; | |
18663 esac | |
18664 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
18665 as_dirs= | |
18666 while :; do | |
18667 case $as_dir in #( | |
18668 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18669 *) as_qdir=$as_dir;; | |
18670 esac | |
18671 as_dirs="'$as_qdir' $as_dirs" | |
18672 as_dir=`$as_dirname -- "$as_dir" || | |
18673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18674 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18675 X"$as_dir" : 'X\(//\)$' \| \ | |
18676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18677 $as_echo X"$as_dir" | | |
18678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18679 s//\1/ | |
18680 q | |
18681 } | |
18682 /^X\(\/\/\)[^/].*/{ | |
18683 s//\1/ | |
18684 q | |
18685 } | |
18686 /^X\(\/\/\)$/{ | |
18687 s//\1/ | |
18688 q | |
18689 } | |
18690 /^X\(\/\).*/{ | |
18691 s//\1/ | |
18692 q | |
18693 } | |
18694 s/.*/./; q'` | |
18695 test -d "$as_dir" && break | |
18696 done | |
18697 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
18698 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
18699 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
18700 { (exit 1); exit 1; }; }; } | |
18701 # echo "creating $dirpart/$file" | |
18702 echo '# dummy' > "$dirpart/$file" | |
18703 done | |
18704 done | |
18705 } | |
18706 ;; | |
18707 | |
18708 esac | |
18709 done # for ac_tag | |
18710 | |
18711 | |
18712 { (exit 0); exit 0; } | |
18713 _ACEOF | |
18714 chmod +x $CONFIG_STATUS | |
18715 ac_clean_files=$ac_clean_files_save | |
18716 | |
18717 test $ac_write_fail = 0 || | |
18718 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
18719 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
18720 { (exit 1); exit 1; }; } | |
18721 | |
18722 | |
18723 # configure is writing to config.log, and then calls config.status. | |
18724 # config.status does its own redirection, appending to config.log. | |
18725 # Unfortunately, on DOS this fails, as config.log is still kept open | |
18726 # by configure, so config.status won't be able to write to it; its | |
18727 # output is simply discarded. So we exec the FD to /dev/null, | |
18728 # effectively closing config.log, so it can be properly (re)opened and | |
18729 # appended to by config.status. When coming back to configure, we | |
18730 # need to make the FD available again. | |
18731 if test "$no_create" != yes; then | |
18732 ac_cs_success=: | |
18733 ac_config_status_args= | |
18734 test "$silent" = yes && | |
18735 ac_config_status_args="$ac_config_status_args --quiet" | |
18736 exec 5>/dev/null | |
18737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18738 exec 5>>config.log | |
18739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18740 # would make configure fail if this is the last instruction. | |
18741 $ac_cs_success || { (exit 1); exit 1; } | |
18742 fi | |
18743 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
18744 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18745 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18746 fi | |
18747 |