]>
Commit | Line | Data |
---|---|---|
545f34cf | 1 | @%:@! /bin/sh |
db31fb26 | 2 | @%:@ From configure.in for Bash 4.0, version 4.013. |
545f34cf | 3 | @%:@ Guess values for system-dependent variables and create Makefiles. |
76af2125 | 4 | @%:@ Generated by GNU Autoconf 2.62 for bash 4.0-maint. |
545f34cf CR |
5 | @%:@ |
6 | @%:@ Report bugs to <bug-bash@gnu.org>. | |
7 | @%:@ | |
d3ad40de | 8 | @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
dc9f44b3 | 9 | @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
545f34cf CR |
10 | @%:@ This configure script is free software; the Free Software Foundation |
11 | @%:@ gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
15 | ||
dd4f3dd8 CR |
16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
545f34cf CR |
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19 | emulate sh | |
20 | NULLCMD=: | |
dd4f3dd8 | 21 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
545f34cf CR |
22 | # is contrary to our usage. Disable this feature. |
23 | alias -g '${1+"$@"}'='"$@"' | |
d3ad40de CR |
24 | setopt NO_GLOB_SUBST |
25 | else | |
dd4f3dd8 CR |
26 | case `(set -o) 2>/dev/null` in |
27 | *posix*) set -o posix ;; | |
28 | esac | |
29 | ||
545f34cf | 30 | fi |
dd4f3dd8 CR |
31 | |
32 | ||
545f34cf | 33 | |
d3ad40de CR |
34 | |
35 | # PATH needs CR | |
36 | # Avoid depending upon Character Ranges. | |
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40 | as_cr_digits='0123456789' | |
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42 | ||
dd4f3dd8 CR |
43 | as_nl=' |
44 | ' | |
45 | export as_nl | |
46 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
47 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
50 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
51 | as_echo='printf %s\n' | |
52 | as_echo_n='printf %s' | |
53 | else | |
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
56 | as_echo_n='/usr/ucb/echo -n' | |
d3ad40de | 57 | else |
dd4f3dd8 CR |
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
59 | as_echo_n_body='eval | |
60 | arg=$1; | |
61 | case $arg in | |
62 | *"$as_nl"*) | |
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
65 | esac; | |
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
67 | ' | |
68 | export as_echo_n_body | |
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
d3ad40de | 70 | fi |
dd4f3dd8 CR |
71 | export as_echo_body |
72 | as_echo='sh -c $as_echo_body as_echo' | |
73 | fi | |
74 | ||
75 | # The user is always right. | |
76 | if test "${PATH_SEPARATOR+set}" != set; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
d3ad40de CR |
82 | fi |
83 | ||
545f34cf | 84 | # Support unset when possible. |
a82a04b3 | 85 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
545f34cf CR |
86 | as_unset=unset |
87 | else | |
88 | as_unset=false | |
89 | fi | |
90 | ||
91 | ||
d3ad40de CR |
92 | # IFS |
93 | # We need space, tab and new line, in precisely that order. Quoting is | |
94 | # there to prevent editors from complaining about space-tab. | |
95 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
96 | # splitting by setting IFS to empty value.) | |
d3ad40de CR |
97 | IFS=" "" $as_nl" |
98 | ||
99 | # Find who we are. Look in the path if we contain no directory separator. | |
100 | case $0 in | |
101 | *[\\/]* ) as_myself=$0 ;; | |
102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
103 | for as_dir in $PATH | |
104 | do | |
105 | IFS=$as_save_IFS | |
106 | test -z "$as_dir" && as_dir=. | |
107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
108 | done | |
109 | IFS=$as_save_IFS | |
110 | ||
111 | ;; | |
112 | esac | |
113 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
114 | # in which case we are not to be found in the path. | |
115 | if test "x$as_myself" = x; then | |
116 | as_myself=$0 | |
117 | fi | |
118 | if test ! -f "$as_myself"; then | |
dd4f3dd8 | 119 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
d3ad40de CR |
120 | { (exit 1); exit 1; } |
121 | fi | |
122 | ||
545f34cf | 123 | # Work around bugs in pre-3.0 UWIN ksh. |
d3ad40de CR |
124 | for as_var in ENV MAIL MAILPATH |
125 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
126 | done | |
545f34cf CR |
127 | PS1='$ ' |
128 | PS2='> ' | |
129 | PS4='+ ' | |
130 | ||
131 | # NLS nuisances. | |
dd4f3dd8 CR |
132 | LC_ALL=C |
133 | export LC_ALL | |
134 | LANGUAGE=C | |
135 | export LANGUAGE | |
545f34cf CR |
136 | |
137 | # Required to use basename. | |
d3ad40de CR |
138 | if expr a : '\(a\)' >/dev/null 2>&1 && |
139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
545f34cf CR |
140 | as_expr=expr |
141 | else | |
142 | as_expr=false | |
143 | fi | |
144 | ||
d3ad40de | 145 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
545f34cf CR |
146 | as_basename=basename |
147 | else | |
148 | as_basename=false | |
149 | fi | |
150 | ||
151 | ||
152 | # Name of the executable. | |
d3ad40de | 153 | as_me=`$as_basename -- "$0" || |
545f34cf CR |
154 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
155 | X"$0" : 'X\(//\)$' \| \ | |
d3ad40de | 156 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
dd4f3dd8 | 157 | $as_echo X/"$0" | |
d3ad40de CR |
158 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
159 | s//\1/ | |
160 | q | |
161 | } | |
162 | /^X\/\(\/\/\)$/{ | |
163 | s//\1/ | |
164 | q | |
165 | } | |
166 | /^X\/\(\/\).*/{ | |
167 | s//\1/ | |
168 | q | |
169 | } | |
170 | s/.*/./; q'` | |
545f34cf | 171 | |
d3ad40de CR |
172 | # CDPATH. |
173 | $as_unset CDPATH | |
545f34cf | 174 | |
545f34cf | 175 | |
d3ad40de CR |
176 | if test "x$CONFIG_SHELL" = x; then |
177 | if (eval ":") 2>/dev/null; then | |
178 | as_have_required=yes | |
179 | else | |
180 | as_have_required=no | |
181 | fi | |
182 | ||
dd4f3dd8 | 183 | if test $as_have_required = yes && (eval ": |
d3ad40de CR |
184 | (as_func_return () { |
185 | (exit \$1) | |
186 | } | |
187 | as_func_success () { | |
188 | as_func_return 0 | |
189 | } | |
190 | as_func_failure () { | |
191 | as_func_return 1 | |
192 | } | |
193 | as_func_ret_success () { | |
194 | return 0 | |
195 | } | |
196 | as_func_ret_failure () { | |
197 | return 1 | |
198 | } | |
199 | ||
200 | exitcode=0 | |
201 | if as_func_success; then | |
202 | : | |
203 | else | |
204 | exitcode=1 | |
205 | echo as_func_success failed. | |
9d6e5e30 CR |
206 | fi |
207 | ||
d3ad40de CR |
208 | if as_func_failure; then |
209 | exitcode=1 | |
210 | echo as_func_failure succeeded. | |
211 | fi | |
9d6e5e30 | 212 | |
d3ad40de CR |
213 | if as_func_ret_success; then |
214 | : | |
215 | else | |
216 | exitcode=1 | |
217 | echo as_func_ret_success failed. | |
218 | fi | |
9d6e5e30 | 219 | |
d3ad40de CR |
220 | if as_func_ret_failure; then |
221 | exitcode=1 | |
222 | echo as_func_ret_failure succeeded. | |
223 | fi | |
224 | ||
225 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
226 | : | |
227 | else | |
228 | exitcode=1 | |
229 | echo positional parameters were not saved. | |
230 | fi | |
231 | ||
232 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
233 | ||
234 | ( | |
235 | as_lineno_1=\$LINENO | |
236 | as_lineno_2=\$LINENO | |
237 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
238 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
239 | ") 2> /dev/null; then | |
240 | : | |
241 | else | |
242 | as_candidate_shells= | |
545f34cf | 243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
dd4f3dd8 | 244 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
545f34cf CR |
245 | do |
246 | IFS=$as_save_IFS | |
247 | test -z "$as_dir" && as_dir=. | |
d3ad40de | 248 | case $as_dir in |
545f34cf | 249 | /*) |
d3ad40de CR |
250 | for as_base in sh bash ksh sh5; do |
251 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
252 | done;; | |
253 | esac | |
254 | done | |
255 | IFS=$as_save_IFS | |
256 | ||
257 | ||
258 | for as_shell in $as_candidate_shells $SHELL; do | |
259 | # Try only shells that exist, to save several forks. | |
260 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
261 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
d3ad40de CR |
262 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
263 | emulate sh | |
264 | NULLCMD=: | |
dd4f3dd8 | 265 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d3ad40de CR |
266 | # is contrary to our usage. Disable this feature. |
267 | alias -g '${1+"$@"}'='"$@"' | |
268 | setopt NO_GLOB_SUBST | |
269 | else | |
dd4f3dd8 CR |
270 | case `(set -o) 2>/dev/null` in |
271 | *posix*) set -o posix ;; | |
272 | esac | |
273 | ||
d3ad40de | 274 | fi |
dd4f3dd8 | 275 | |
d3ad40de CR |
276 | |
277 | : | |
278 | _ASEOF | |
279 | }; then | |
280 | CONFIG_SHELL=$as_shell | |
281 | as_have_required=yes | |
282 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
d3ad40de CR |
283 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
284 | emulate sh | |
285 | NULLCMD=: | |
dd4f3dd8 | 286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d3ad40de CR |
287 | # is contrary to our usage. Disable this feature. |
288 | alias -g '${1+"$@"}'='"$@"' | |
289 | setopt NO_GLOB_SUBST | |
290 | else | |
dd4f3dd8 CR |
291 | case `(set -o) 2>/dev/null` in |
292 | *posix*) set -o posix ;; | |
293 | esac | |
294 | ||
d3ad40de | 295 | fi |
dd4f3dd8 | 296 | |
d3ad40de CR |
297 | |
298 | : | |
299 | (as_func_return () { | |
300 | (exit $1) | |
301 | } | |
302 | as_func_success () { | |
303 | as_func_return 0 | |
304 | } | |
305 | as_func_failure () { | |
306 | as_func_return 1 | |
307 | } | |
308 | as_func_ret_success () { | |
309 | return 0 | |
310 | } | |
311 | as_func_ret_failure () { | |
312 | return 1 | |
313 | } | |
314 | ||
315 | exitcode=0 | |
316 | if as_func_success; then | |
317 | : | |
318 | else | |
319 | exitcode=1 | |
320 | echo as_func_success failed. | |
321 | fi | |
322 | ||
323 | if as_func_failure; then | |
324 | exitcode=1 | |
325 | echo as_func_failure succeeded. | |
326 | fi | |
327 | ||
328 | if as_func_ret_success; then | |
329 | : | |
330 | else | |
331 | exitcode=1 | |
332 | echo as_func_ret_success failed. | |
333 | fi | |
334 | ||
335 | if as_func_ret_failure; then | |
336 | exitcode=1 | |
337 | echo as_func_ret_failure succeeded. | |
338 | fi | |
339 | ||
340 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
341 | : | |
342 | else | |
343 | exitcode=1 | |
344 | echo positional parameters were not saved. | |
345 | fi | |
346 | ||
347 | test $exitcode = 0) || { (exit 1); exit 1; } | |
348 | ||
349 | ( | |
9d6e5e30 CR |
350 | as_lineno_1=$LINENO |
351 | as_lineno_2=$LINENO | |
352 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
d3ad40de CR |
353 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
354 | ||
355 | _ASEOF | |
356 | }; then | |
357 | break | |
358 | fi | |
359 | ||
360 | fi | |
361 | ||
362 | done | |
363 | ||
364 | if test "x$CONFIG_SHELL" != x; then | |
365 | for as_var in BASH_ENV ENV | |
dd4f3dd8 CR |
366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
367 | done | |
368 | export CONFIG_SHELL | |
369 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
d3ad40de CR |
370 | fi |
371 | ||
372 | ||
373 | if test $as_have_required = no; then | |
374 | echo This script requires a shell more modern than all the | |
375 | echo shells that I found on your system. Please install a | |
376 | echo modern shell, or manually run the script under such a | |
377 | echo shell if you do have one. | |
378 | { (exit 1); exit 1; } | |
379 | fi | |
380 | ||
381 | ||
382 | fi | |
383 | ||
384 | fi | |
385 | ||
386 | ||
387 | ||
388 | (eval "as_func_return () { | |
389 | (exit \$1) | |
390 | } | |
391 | as_func_success () { | |
392 | as_func_return 0 | |
393 | } | |
394 | as_func_failure () { | |
395 | as_func_return 1 | |
396 | } | |
397 | as_func_ret_success () { | |
398 | return 0 | |
399 | } | |
400 | as_func_ret_failure () { | |
401 | return 1 | |
402 | } | |
403 | ||
404 | exitcode=0 | |
405 | if as_func_success; then | |
406 | : | |
407 | else | |
408 | exitcode=1 | |
409 | echo as_func_success failed. | |
410 | fi | |
411 | ||
412 | if as_func_failure; then | |
413 | exitcode=1 | |
414 | echo as_func_failure succeeded. | |
415 | fi | |
416 | ||
417 | if as_func_ret_success; then | |
418 | : | |
419 | else | |
420 | exitcode=1 | |
421 | echo as_func_ret_success failed. | |
422 | fi | |
423 | ||
424 | if as_func_ret_failure; then | |
425 | exitcode=1 | |
426 | echo as_func_ret_failure succeeded. | |
427 | fi | |
428 | ||
429 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
430 | : | |
431 | else | |
432 | exitcode=1 | |
433 | echo positional parameters were not saved. | |
434 | fi | |
435 | ||
436 | test \$exitcode = 0") || { | |
437 | echo No shell found that supports shell functions. | |
dd4f3dd8 CR |
438 | echo Please tell bug-autoconf@gnu.org about your system, |
439 | echo including any error possibly output before this message. | |
440 | echo This can help us improve future autoconf versions. | |
441 | echo Configuration will now proceed without shell functions. | |
d3ad40de CR |
442 | } |
443 | ||
444 | ||
445 | ||
446 | as_lineno_1=$LINENO | |
447 | as_lineno_2=$LINENO | |
448 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
449 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
545f34cf CR |
450 | |
451 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
452 | # uniformly replaced by the line number. The first 'sed' inserts a | |
d3ad40de CR |
453 | # line-number line after each line using $LINENO; the second 'sed' |
454 | # does the real work. The second script uses 'N' to pair each | |
455 | # line-number line with the line containing $LINENO, and appends | |
456 | # trailing '-' during substitution so that $LINENO is not a special | |
457 | # case at line end. | |
545f34cf | 458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
d3ad40de CR |
459 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
460 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
461 | sed -n ' | |
462 | p | |
463 | /[$]LINENO/= | |
464 | ' <$as_myself | | |
545f34cf | 465 | sed ' |
d3ad40de CR |
466 | s/[$]LINENO.*/&-/ |
467 | t lineno | |
468 | b | |
469 | :lineno | |
545f34cf | 470 | N |
d3ad40de CR |
471 | :loop |
472 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
545f34cf | 473 | t loop |
d3ad40de | 474 | s/-\n.*// |
545f34cf | 475 | ' >$as_me.lineno && |
d3ad40de | 476 | chmod +x "$as_me.lineno" || |
dd4f3dd8 | 477 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
545f34cf CR |
478 | { (exit 1); exit 1; }; } |
479 | ||
480 | # Don't try to exec as it changes $[0], causing all sort of problems | |
481 | # (the dirname of $[0] is not the place where we might find the | |
d3ad40de CR |
482 | # original and so on. Autoconf is especially sensitive to this). |
483 | . "./$as_me.lineno" | |
545f34cf CR |
484 | # Exit status is that of the last command. |
485 | exit | |
486 | } | |
487 | ||
488 | ||
d3ad40de CR |
489 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
490 | as_dirname=dirname | |
491 | else | |
492 | as_dirname=false | |
493 | fi | |
494 | ||
495 | ECHO_C= ECHO_N= ECHO_T= | |
496 | case `echo -n x` in | |
497 | -n*) | |
498 | case `echo 'x\c'` in | |
499 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
500 | *) ECHO_C='\c';; | |
501 | esac;; | |
502 | *) | |
503 | ECHO_N='-n';; | |
545f34cf | 504 | esac |
d3ad40de CR |
505 | if expr a : '\(a\)' >/dev/null 2>&1 && |
506 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
545f34cf CR |
507 | as_expr=expr |
508 | else | |
509 | as_expr=false | |
510 | fi | |
511 | ||
512 | rm -f conf$$ conf$$.exe conf$$.file | |
d3ad40de CR |
513 | if test -d conf$$.dir; then |
514 | rm -f conf$$.dir/conf$$.file | |
515 | else | |
516 | rm -f conf$$.dir | |
dd4f3dd8 CR |
517 | mkdir conf$$.dir 2>/dev/null |
518 | fi | |
519 | if (echo >conf$$.file) 2>/dev/null; then | |
520 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
521 | as_ln_s='ln -s' | |
522 | # ... but there are two gotchas: | |
523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
525 | # In both cases, we have to default to `cp -p'. | |
526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
527 | as_ln_s='cp -p' | |
528 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
529 | as_ln_s=ln | |
530 | else | |
545f34cf | 531 | as_ln_s='cp -p' |
dd4f3dd8 | 532 | fi |
545f34cf CR |
533 | else |
534 | as_ln_s='cp -p' | |
535 | fi | |
d3ad40de CR |
536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
537 | rmdir conf$$.dir 2>/dev/null | |
545f34cf CR |
538 | |
539 | if mkdir -p . 2>/dev/null; then | |
540 | as_mkdir_p=: | |
541 | else | |
a82a04b3 | 542 | test -d ./-p && rmdir ./-p |
545f34cf CR |
543 | as_mkdir_p=false |
544 | fi | |
545 | ||
dd4f3dd8 CR |
546 | if test -x / >/dev/null 2>&1; then |
547 | as_test_x='test -x' | |
d3ad40de | 548 | else |
dd4f3dd8 CR |
549 | if ls -dL / >/dev/null 2>&1; then |
550 | as_ls_L_option=L | |
551 | else | |
552 | as_ls_L_option= | |
553 | fi | |
554 | as_test_x=' | |
555 | eval sh -c '\'' | |
556 | if test -d "$1"; then | |
557 | test -d "$1/."; | |
558 | else | |
559 | case $1 in | |
560 | -*)set "./$1";; | |
561 | esac; | |
562 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
563 | ???[sx]*):;;*)false;;esac;fi | |
564 | '\'' sh | |
565 | ' | |
d3ad40de | 566 | fi |
dd4f3dd8 | 567 | as_executable_p=$as_test_x |
545f34cf CR |
568 | |
569 | # Sed expression to map a string onto a valid CPP name. | |
a82a04b3 | 570 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
545f34cf CR |
571 | |
572 | # Sed expression to map a string onto a valid variable name. | |
a82a04b3 | 573 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
545f34cf CR |
574 | |
575 | ||
545f34cf | 576 | |
d3ad40de | 577 | exec 7<&0 </dev/null 6>&1 |
545f34cf CR |
578 | |
579 | # Name of the host. | |
580 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
581 | # so uname gets run too. | |
582 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
583 | ||
545f34cf CR |
584 | # |
585 | # Initializations. | |
586 | # | |
587 | ac_default_prefix=/usr/local | |
d3ad40de | 588 | ac_clean_files= |
545f34cf | 589 | ac_config_libobj_dir=. |
d3ad40de | 590 | LIB@&t@OBJS= |
545f34cf CR |
591 | cross_compiling=no |
592 | subdirs= | |
593 | MFLAGS= | |
594 | MAKEFLAGS= | |
595 | SHELL=${CONFIG_SHELL-/bin/sh} | |
596 | ||
545f34cf CR |
597 | # Identity of this package. |
598 | PACKAGE_NAME='bash' | |
599 | PACKAGE_TARNAME='bash' | |
76af2125 CR |
600 | PACKAGE_VERSION='4.0-maint' |
601 | PACKAGE_STRING='bash 4.0-maint' | |
545f34cf CR |
602 | PACKAGE_BUGREPORT='bug-bash@gnu.org' |
603 | ||
604 | ac_unique_file="shell.h" | |
605 | # Factoring default headers for most tests. | |
606 | ac_includes_default="\ | |
607 | #include <stdio.h> | |
dd4f3dd8 | 608 | #ifdef HAVE_SYS_TYPES_H |
545f34cf CR |
609 | # include <sys/types.h> |
610 | #endif | |
dd4f3dd8 | 611 | #ifdef HAVE_SYS_STAT_H |
545f34cf CR |
612 | # include <sys/stat.h> |
613 | #endif | |
dd4f3dd8 | 614 | #ifdef STDC_HEADERS |
545f34cf CR |
615 | # include <stdlib.h> |
616 | # include <stddef.h> | |
617 | #else | |
dd4f3dd8 | 618 | # ifdef HAVE_STDLIB_H |
545f34cf CR |
619 | # include <stdlib.h> |
620 | # endif | |
621 | #endif | |
dd4f3dd8 CR |
622 | #ifdef HAVE_STRING_H |
623 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
545f34cf CR |
624 | # include <memory.h> |
625 | # endif | |
626 | # include <string.h> | |
627 | #endif | |
dd4f3dd8 | 628 | #ifdef HAVE_STRINGS_H |
545f34cf CR |
629 | # include <strings.h> |
630 | #endif | |
dd4f3dd8 | 631 | #ifdef HAVE_INTTYPES_H |
545f34cf | 632 | # include <inttypes.h> |
d3ad40de | 633 | #endif |
dd4f3dd8 | 634 | #ifdef HAVE_STDINT_H |
d3ad40de | 635 | # include <stdint.h> |
545f34cf | 636 | #endif |
dd4f3dd8 | 637 | #ifdef HAVE_UNISTD_H |
545f34cf CR |
638 | # include <unistd.h> |
639 | #endif" | |
640 | ||
dd4f3dd8 | 641 | ac_header_list= |
53ac45a3 | 642 | ac_func_list= |
76af2125 | 643 | ac_subst_vars='SHELL |
a05a1337 | 644 | PATH_SEPARATOR |
76af2125 CR |
645 | PACKAGE_NAME |
646 | PACKAGE_TARNAME | |
647 | PACKAGE_VERSION | |
648 | PACKAGE_STRING | |
649 | PACKAGE_BUGREPORT | |
650 | exec_prefix | |
651 | prefix | |
652 | program_transform_name | |
653 | bindir | |
654 | sbindir | |
655 | libexecdir | |
656 | datarootdir | |
657 | datadir | |
658 | sysconfdir | |
659 | sharedstatedir | |
660 | localstatedir | |
661 | includedir | |
662 | oldincludedir | |
663 | docdir | |
664 | infodir | |
665 | htmldir | |
666 | dvidir | |
667 | pdfdir | |
668 | psdir | |
669 | libdir | |
670 | localedir | |
671 | mandir | |
672 | DEFS | |
673 | ECHO_C | |
674 | ECHO_N | |
675 | ECHO_T | |
676 | LIBS | |
677 | build_alias | |
678 | host_alias | |
679 | target_alias | |
680 | build | |
681 | build_cpu | |
682 | build_vendor | |
683 | build_os | |
684 | host | |
685 | host_cpu | |
686 | host_vendor | |
687 | host_os | |
688 | EMACS | |
689 | lispdir | |
690 | DEBUGGER_START_FILE | |
691 | TESTSCRIPT | |
692 | PURIFY | |
693 | MALLOC_TARGET | |
694 | MALLOC_SRC | |
695 | MALLOC_LIB | |
696 | MALLOC_LIBRARY | |
697 | MALLOC_LDFLAGS | |
698 | MALLOC_DEP | |
699 | HELPDIR | |
700 | HELPDIRDEFINE | |
701 | HELPINSTALL | |
702 | HELPSTRINGS | |
703 | CC | |
704 | CFLAGS | |
705 | LDFLAGS | |
706 | CPPFLAGS | |
707 | ac_ct_CC | |
708 | EXEEXT | |
709 | OBJEXT | |
710 | CPP | |
711 | GREP | |
712 | EGREP | |
713 | CROSS_COMPILE | |
714 | SIGNAMES_H | |
715 | SIGNAMES_O | |
716 | CC_FOR_BUILD | |
717 | STATIC_LD | |
718 | CFLAGS_FOR_BUILD | |
719 | CPPFLAGS_FOR_BUILD | |
720 | LDFLAGS_FOR_BUILD | |
721 | RL_VERSION | |
722 | RL_MAJOR | |
723 | RL_MINOR | |
724 | READLINE_LIB | |
725 | READLINE_DEP | |
726 | RL_LIBDIR | |
727 | RL_INCLUDEDIR | |
728 | RL_INCLUDE | |
729 | HISTORY_LIB | |
730 | HISTORY_DEP | |
731 | HIST_LIBDIR | |
732 | TILDE_LIB | |
733 | INSTALL_PROGRAM | |
734 | INSTALL_SCRIPT | |
735 | INSTALL_DATA | |
736 | AR | |
737 | RANLIB | |
738 | YACC | |
739 | YFLAGS | |
740 | SET_MAKE | |
741 | MAKE_SHELL | |
742 | SIZE | |
743 | MKINSTALLDIRS | |
744 | USE_NLS | |
745 | MSGFMT | |
746 | GMSGFMT | |
747 | XGETTEXT | |
748 | MSGMERGE | |
749 | ALLOCA | |
750 | GLIBC21 | |
751 | LIBICONV | |
752 | LTLIBICONV | |
753 | INTLBISON | |
754 | BUILD_INCLUDED_LIBINTL | |
755 | USE_INCLUDED_LIBINTL | |
756 | CATOBJEXT | |
757 | DATADIRNAME | |
758 | INSTOBJEXT | |
759 | GENCAT | |
760 | INTLOBJS | |
761 | INTL_LIBTOOL_SUFFIX_PREFIX | |
762 | INTLLIBS | |
763 | LIBINTL | |
764 | LTLIBINTL | |
765 | POSUB | |
766 | LIB@&t@OBJS | |
767 | INTL_DEP | |
768 | INTL_INC | |
769 | LIBINTL_H | |
770 | SIGLIST_O | |
771 | TERMCAP_LIB | |
772 | TERMCAP_DEP | |
773 | JOBS_O | |
774 | SHOBJ_CC | |
775 | SHOBJ_CFLAGS | |
776 | SHOBJ_LD | |
777 | SHOBJ_LDFLAGS | |
778 | SHOBJ_XLDFLAGS | |
779 | SHOBJ_LIBS | |
780 | SHOBJ_STATUS | |
781 | PROFILE_FLAGS | |
782 | incdir | |
783 | BUILD_DIR | |
784 | ARFLAGS | |
785 | BASHVERS | |
786 | RELSTATUS | |
787 | DEBUG | |
788 | MALLOC_DEBUG | |
789 | LOCAL_LIBS | |
790 | LOCAL_CFLAGS | |
791 | LOCAL_LDFLAGS | |
792 | LOCAL_DEFS | |
793 | LTLIBOBJS' | |
545f34cf | 794 | ac_subst_files='' |
dd4f3dd8 CR |
795 | ac_user_opts=' |
796 | enable_option_checking | |
797 | with_lispdir | |
798 | with_afs | |
799 | with_bash_malloc | |
800 | with_curses | |
801 | with_gnu_malloc | |
802 | with_installed_readline | |
803 | with_purecov | |
804 | with_purify | |
805 | enable_minimal_config | |
806 | enable_alias | |
807 | enable_arith_for_command | |
808 | enable_array_variables | |
809 | enable_bang_history | |
810 | enable_brace_expansion | |
811 | enable_casemod_attributes | |
812 | enable_casemod_expansions | |
813 | enable_command_timing | |
814 | enable_cond_command | |
815 | enable_cond_regexp | |
816 | enable_coprocesses | |
817 | enable_debugger | |
818 | enable_directory_stack | |
819 | enable_disabled_builtins | |
820 | enable_dparen_arithmetic | |
821 | enable_extended_glob | |
822 | enable_help_builtin | |
823 | enable_history | |
824 | enable_job_control | |
825 | enable_multibyte | |
826 | enable_net_redirections | |
827 | enable_process_substitution | |
828 | enable_progcomp | |
829 | enable_prompt_string_decoding | |
830 | enable_readline | |
831 | enable_restricted | |
832 | enable_select | |
833 | enable_separate_helpfiles | |
834 | enable_single_help_strings | |
835 | enable_strict_posix_default | |
836 | enable_usg_echo_default | |
837 | enable_xpg_echo_default | |
838 | enable_mem_scramble | |
839 | enable_profiling | |
840 | enable_static_link | |
841 | enable_largefile | |
842 | enable_nls | |
843 | with_gnu_ld | |
844 | enable_rpath | |
845 | with_libiconv_prefix | |
846 | with_included_gettext | |
847 | with_libintl_prefix | |
848 | ' | |
d3ad40de CR |
849 | ac_precious_vars='build_alias |
850 | host_alias | |
851 | target_alias | |
852 | DEBUGGER_START_FILE | |
853 | CC | |
854 | CFLAGS | |
855 | LDFLAGS | |
dd4f3dd8 | 856 | LIBS |
d3ad40de CR |
857 | CPPFLAGS |
858 | CPP | |
859 | YACC | |
860 | YFLAGS' | |
861 | ||
545f34cf CR |
862 | |
863 | # Initialize some variables set by options. | |
864 | ac_init_help= | |
865 | ac_init_version=false | |
dd4f3dd8 CR |
866 | ac_unrecognized_opts= |
867 | ac_unrecognized_sep= | |
545f34cf CR |
868 | # The variables have the same names as the options, with |
869 | # dashes changed to underlines. | |
870 | cache_file=/dev/null | |
871 | exec_prefix=NONE | |
872 | no_create= | |
873 | no_recursion= | |
874 | prefix=NONE | |
875 | program_prefix=NONE | |
876 | program_suffix=NONE | |
877 | program_transform_name=s,x,x, | |
878 | silent= | |
879 | site= | |
880 | srcdir= | |
881 | verbose= | |
882 | x_includes=NONE | |
883 | x_libraries=NONE | |
884 | ||
885 | # Installation directory options. | |
886 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
887 | # and all the variables that are supposed to be based on exec_prefix | |
888 | # by default will actually change. | |
889 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
d3ad40de | 890 | # (The list follows the same order as the GNU Coding Standards.) |
545f34cf CR |
891 | bindir='${exec_prefix}/bin' |
892 | sbindir='${exec_prefix}/sbin' | |
893 | libexecdir='${exec_prefix}/libexec' | |
d3ad40de CR |
894 | datarootdir='${prefix}/share' |
895 | datadir='${datarootdir}' | |
545f34cf CR |
896 | sysconfdir='${prefix}/etc' |
897 | sharedstatedir='${prefix}/com' | |
898 | localstatedir='${prefix}/var' | |
545f34cf CR |
899 | includedir='${prefix}/include' |
900 | oldincludedir='/usr/include' | |
d3ad40de CR |
901 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
902 | infodir='${datarootdir}/info' | |
903 | htmldir='${docdir}' | |
904 | dvidir='${docdir}' | |
905 | pdfdir='${docdir}' | |
906 | psdir='${docdir}' | |
907 | libdir='${exec_prefix}/lib' | |
908 | localedir='${datarootdir}/locale' | |
909 | mandir='${datarootdir}/man' | |
545f34cf CR |
910 | |
911 | ac_prev= | |
d3ad40de | 912 | ac_dashdash= |
545f34cf CR |
913 | for ac_option |
914 | do | |
915 | # If the previous option needs an argument, assign it. | |
916 | if test -n "$ac_prev"; then | |
d3ad40de | 917 | eval $ac_prev=\$ac_option |
545f34cf CR |
918 | ac_prev= |
919 | continue | |
920 | fi | |
921 | ||
d3ad40de CR |
922 | case $ac_option in |
923 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
924 | *) ac_optarg=yes ;; | |
925 | esac | |
545f34cf CR |
926 | |
927 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
928 | ||
d3ad40de CR |
929 | case $ac_dashdash$ac_option in |
930 | --) | |
931 | ac_dashdash=yes ;; | |
545f34cf CR |
932 | |
933 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
934 | ac_prev=bindir ;; | |
935 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
936 | bindir=$ac_optarg ;; | |
937 | ||
938 | -build | --build | --buil | --bui | --bu) | |
939 | ac_prev=build_alias ;; | |
940 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
941 | build_alias=$ac_optarg ;; | |
942 | ||
943 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
944 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
945 | ac_prev=cache_file ;; | |
946 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
947 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
948 | cache_file=$ac_optarg ;; | |
949 | ||
950 | --config-cache | -C) | |
951 | cache_file=config.cache ;; | |
952 | ||
d3ad40de | 953 | -datadir | --datadir | --datadi | --datad) |
545f34cf | 954 | ac_prev=datadir ;; |
d3ad40de | 955 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
545f34cf CR |
956 | datadir=$ac_optarg ;; |
957 | ||
d3ad40de CR |
958 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
959 | | --dataroo | --dataro | --datar) | |
960 | ac_prev=datarootdir ;; | |
961 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
962 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
963 | datarootdir=$ac_optarg ;; | |
964 | ||
545f34cf | 965 | -disable-* | --disable-*) |
dd4f3dd8 | 966 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
545f34cf | 967 | # Reject names that are not valid shell variable names. |
dd4f3dd8 CR |
968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
969 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
545f34cf | 970 | { (exit 1); exit 1; }; } |
dd4f3dd8 CR |
971 | ac_useropt_orig=$ac_useropt |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
979 | esac | |
980 | eval enable_$ac_useropt=no ;; | |
d3ad40de CR |
981 | |
982 | -docdir | --docdir | --docdi | --doc | --do) | |
983 | ac_prev=docdir ;; | |
984 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
985 | docdir=$ac_optarg ;; | |
986 | ||
987 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
988 | ac_prev=dvidir ;; | |
989 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
990 | dvidir=$ac_optarg ;; | |
545f34cf CR |
991 | |
992 | -enable-* | --enable-*) | |
dd4f3dd8 | 993 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
545f34cf | 994 | # Reject names that are not valid shell variable names. |
dd4f3dd8 CR |
995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
996 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
545f34cf | 997 | { (exit 1); exit 1; }; } |
dd4f3dd8 CR |
998 | ac_useropt_orig=$ac_useropt |
999 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1000 | case $ac_user_opts in | |
1001 | *" | |
1002 | "enable_$ac_useropt" | |
1003 | "*) ;; | |
1004 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1005 | ac_unrecognized_sep=', ';; | |
1006 | esac | |
1007 | eval enable_$ac_useropt=\$ac_optarg ;; | |
545f34cf CR |
1008 | |
1009 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1010 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1011 | | --exec | --exe | --ex) | |
1012 | ac_prev=exec_prefix ;; | |
1013 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1014 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1015 | | --exec=* | --exe=* | --ex=*) | |
1016 | exec_prefix=$ac_optarg ;; | |
1017 | ||
1018 | -gas | --gas | --ga | --g) | |
1019 | # Obsolete; use --with-gas. | |
1020 | with_gas=yes ;; | |
1021 | ||
1022 | -help | --help | --hel | --he | -h) | |
1023 | ac_init_help=long ;; | |
1024 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1025 | ac_init_help=recursive ;; | |
1026 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1027 | ac_init_help=short ;; | |
1028 | ||
1029 | -host | --host | --hos | --ho) | |
1030 | ac_prev=host_alias ;; | |
1031 | -host=* | --host=* | --hos=* | --ho=*) | |
1032 | host_alias=$ac_optarg ;; | |
1033 | ||
d3ad40de CR |
1034 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1035 | ac_prev=htmldir ;; | |
1036 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1037 | | --ht=*) | |
1038 | htmldir=$ac_optarg ;; | |
1039 | ||
545f34cf CR |
1040 | -includedir | --includedir | --includedi | --included | --include \ |
1041 | | --includ | --inclu | --incl | --inc) | |
1042 | ac_prev=includedir ;; | |
1043 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1044 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1045 | includedir=$ac_optarg ;; | |
1046 | ||
1047 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1048 | ac_prev=infodir ;; | |
1049 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1050 | infodir=$ac_optarg ;; | |
1051 | ||
1052 | -libdir | --libdir | --libdi | --libd) | |
1053 | ac_prev=libdir ;; | |
1054 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1055 | libdir=$ac_optarg ;; | |
1056 | ||
1057 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1058 | | --libexe | --libex | --libe) | |
1059 | ac_prev=libexecdir ;; | |
1060 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1061 | | --libexe=* | --libex=* | --libe=*) | |
1062 | libexecdir=$ac_optarg ;; | |
1063 | ||
d3ad40de CR |
1064 | -localedir | --localedir | --localedi | --localed | --locale) |
1065 | ac_prev=localedir ;; | |
1066 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1067 | localedir=$ac_optarg ;; | |
1068 | ||
545f34cf | 1069 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
d3ad40de | 1070 | | --localstate | --localstat | --localsta | --localst | --locals) |
545f34cf CR |
1071 | ac_prev=localstatedir ;; |
1072 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
d3ad40de | 1073 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
545f34cf CR |
1074 | localstatedir=$ac_optarg ;; |
1075 | ||
1076 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1077 | ac_prev=mandir ;; | |
1078 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1079 | mandir=$ac_optarg ;; | |
1080 | ||
1081 | -nfp | --nfp | --nf) | |
1082 | # Obsolete; use --without-fp. | |
1083 | with_fp=no ;; | |
1084 | ||
1085 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1086 | | --no-cr | --no-c | -n) | |
1087 | no_create=yes ;; | |
1088 | ||
1089 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1090 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1091 | no_recursion=yes ;; | |
1092 | ||
1093 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1094 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1095 | | --oldin | --oldi | --old | --ol | --o) | |
1096 | ac_prev=oldincludedir ;; | |
1097 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1098 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1099 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1100 | oldincludedir=$ac_optarg ;; | |
1101 | ||
1102 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1103 | ac_prev=prefix ;; | |
1104 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1105 | prefix=$ac_optarg ;; | |
1106 | ||
1107 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1108 | | --program-pre | --program-pr | --program-p) | |
1109 | ac_prev=program_prefix ;; | |
1110 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1111 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1112 | program_prefix=$ac_optarg ;; | |
1113 | ||
1114 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1115 | | --program-suf | --program-su | --program-s) | |
1116 | ac_prev=program_suffix ;; | |
1117 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1118 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1119 | program_suffix=$ac_optarg ;; | |
1120 | ||
1121 | -program-transform-name | --program-transform-name \ | |
1122 | | --program-transform-nam | --program-transform-na \ | |
1123 | | --program-transform-n | --program-transform- \ | |
1124 | | --program-transform | --program-transfor \ | |
1125 | | --program-transfo | --program-transf \ | |
1126 | | --program-trans | --program-tran \ | |
1127 | | --progr-tra | --program-tr | --program-t) | |
1128 | ac_prev=program_transform_name ;; | |
1129 | -program-transform-name=* | --program-transform-name=* \ | |
1130 | | --program-transform-nam=* | --program-transform-na=* \ | |
1131 | | --program-transform-n=* | --program-transform-=* \ | |
1132 | | --program-transform=* | --program-transfor=* \ | |
1133 | | --program-transfo=* | --program-transf=* \ | |
1134 | | --program-trans=* | --program-tran=* \ | |
1135 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1136 | program_transform_name=$ac_optarg ;; | |
1137 | ||
d3ad40de CR |
1138 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1139 | ac_prev=pdfdir ;; | |
1140 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1141 | pdfdir=$ac_optarg ;; | |
1142 | ||
1143 | -psdir | --psdir | --psdi | --psd | --ps) | |
1144 | ac_prev=psdir ;; | |
1145 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1146 | psdir=$ac_optarg ;; | |
1147 | ||
545f34cf CR |
1148 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1149 | | -silent | --silent | --silen | --sile | --sil) | |
1150 | silent=yes ;; | |
1151 | ||
1152 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1153 | ac_prev=sbindir ;; | |
1154 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1155 | | --sbi=* | --sb=*) | |
1156 | sbindir=$ac_optarg ;; | |
1157 | ||
1158 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1159 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1160 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1161 | | --sha | --sh) | |
1162 | ac_prev=sharedstatedir ;; | |
1163 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1164 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1165 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1166 | | --sha=* | --sh=*) | |
1167 | sharedstatedir=$ac_optarg ;; | |
1168 | ||
1169 | -site | --site | --sit) | |
1170 | ac_prev=site ;; | |
1171 | -site=* | --site=* | --sit=*) | |
1172 | site=$ac_optarg ;; | |
1173 | ||
1174 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1175 | ac_prev=srcdir ;; | |
1176 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1177 | srcdir=$ac_optarg ;; | |
1178 | ||
1179 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1180 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1181 | ac_prev=sysconfdir ;; | |
1182 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1183 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1184 | sysconfdir=$ac_optarg ;; | |
1185 | ||
1186 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1187 | ac_prev=target_alias ;; | |
1188 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1189 | target_alias=$ac_optarg ;; | |
1190 | ||
1191 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1192 | verbose=yes ;; | |
1193 | ||
1194 | -version | --version | --versio | --versi | --vers | -V) | |
1195 | ac_init_version=: ;; | |
1196 | ||
1197 | -with-* | --with-*) | |
dd4f3dd8 | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
545f34cf | 1199 | # Reject names that are not valid shell variable names. |
dd4f3dd8 CR |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
545f34cf | 1202 | { (exit 1); exit 1; }; } |
dd4f3dd8 CR |
1203 | ac_useropt_orig=$ac_useropt |
1204 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1205 | case $ac_user_opts in | |
1206 | *" | |
1207 | "with_$ac_useropt" | |
1208 | "*) ;; | |
1209 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1210 | ac_unrecognized_sep=', ';; | |
1211 | esac | |
1212 | eval with_$ac_useropt=\$ac_optarg ;; | |
545f34cf CR |
1213 | |
1214 | -without-* | --without-*) | |
dd4f3dd8 | 1215 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
545f34cf | 1216 | # Reject names that are not valid shell variable names. |
dd4f3dd8 CR |
1217 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1218 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
545f34cf | 1219 | { (exit 1); exit 1; }; } |
dd4f3dd8 CR |
1220 | ac_useropt_orig=$ac_useropt |
1221 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1222 | case $ac_user_opts in | |
1223 | *" | |
1224 | "with_$ac_useropt" | |
1225 | "*) ;; | |
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1227 | ac_unrecognized_sep=', ';; | |
1228 | esac | |
1229 | eval with_$ac_useropt=no ;; | |
545f34cf CR |
1230 | |
1231 | --x) | |
1232 | # Obsolete; use --with-x. | |
1233 | with_x=yes ;; | |
1234 | ||
1235 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1236 | | --x-incl | --x-inc | --x-in | --x-i) | |
1237 | ac_prev=x_includes ;; | |
1238 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1239 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1240 | x_includes=$ac_optarg ;; | |
1241 | ||
1242 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1243 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1244 | ac_prev=x_libraries ;; | |
1245 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1246 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1247 | x_libraries=$ac_optarg ;; | |
1248 | ||
dd4f3dd8 | 1249 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
545f34cf CR |
1250 | Try \`$0 --help' for more information." >&2 |
1251 | { (exit 1); exit 1; }; } | |
1252 | ;; | |
1253 | ||
1254 | *=*) | |
1255 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1256 | # Reject names that are not valid shell variable names. | |
1257 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
dd4f3dd8 | 1258 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
545f34cf | 1259 | { (exit 1); exit 1; }; } |
d3ad40de | 1260 | eval $ac_envvar=\$ac_optarg |
545f34cf CR |
1261 | export $ac_envvar ;; |
1262 | ||
1263 | *) | |
1264 | # FIXME: should be removed in autoconf 3.0. | |
dd4f3dd8 | 1265 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
545f34cf | 1266 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
dd4f3dd8 | 1267 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
545f34cf CR |
1268 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1269 | ;; | |
1270 | ||
1271 | esac | |
1272 | done | |
1273 | ||
1274 | if test -n "$ac_prev"; then | |
1275 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
dd4f3dd8 | 1276 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
545f34cf CR |
1277 | { (exit 1); exit 1; }; } |
1278 | fi | |
1279 | ||
dd4f3dd8 CR |
1280 | if test -n "$ac_unrecognized_opts"; then |
1281 | case $enable_option_checking in | |
1282 | no) ;; | |
76af2125 | 1283 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
dd4f3dd8 | 1284 | { (exit 1); exit 1; }; } ;; |
76af2125 | 1285 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; |
dd4f3dd8 CR |
1286 | esac |
1287 | fi | |
1288 | ||
1289 | # Check all directory arguments for consistency. | |
d3ad40de CR |
1290 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1291 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1292 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1293 | libdir localedir mandir | |
28157acd | 1294 | do |
d3ad40de | 1295 | eval ac_val=\$$ac_var |
dd4f3dd8 CR |
1296 | # Remove trailing slashes. |
1297 | case $ac_val in | |
1298 | */ ) | |
1299 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1300 | eval $ac_var=\$ac_val;; | |
1301 | esac | |
1302 | # Be sure to have absolute directory names. | |
28157acd | 1303 | case $ac_val in |
d3ad40de CR |
1304 | [\\/$]* | ?:[\\/]* ) continue;; |
1305 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
545f34cf | 1306 | esac |
dd4f3dd8 | 1307 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
d3ad40de | 1308 | { (exit 1); exit 1; }; } |
545f34cf CR |
1309 | done |
1310 | ||
1311 | # There might be people who depend on the old broken behavior: `$host' | |
1312 | # used to hold the argument of --host etc. | |
1313 | # FIXME: To remove some day. | |
1314 | build=$build_alias | |
1315 | host=$host_alias | |
1316 | target=$target_alias | |
1317 | ||
1318 | # FIXME: To remove some day. | |
1319 | if test "x$host_alias" != x; then | |
1320 | if test "x$build_alias" = x; then | |
1321 | cross_compiling=maybe | |
dd4f3dd8 | 1322 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
545f34cf CR |
1323 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1324 | elif test "x$build_alias" != "x$host_alias"; then | |
1325 | cross_compiling=yes | |
1326 | fi | |
1327 | fi | |
1328 | ||
1329 | ac_tool_prefix= | |
1330 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1331 | ||
1332 | test "$silent" = yes && exec 6>/dev/null | |
1333 | ||
1334 | ||
d3ad40de CR |
1335 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1336 | ac_ls_di=`ls -di .` && | |
1337 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
76af2125 | 1338 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
d3ad40de CR |
1339 | { (exit 1); exit 1; }; } |
1340 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
dd4f3dd8 | 1341 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
d3ad40de CR |
1342 | { (exit 1); exit 1; }; } |
1343 | ||
1344 | ||
545f34cf CR |
1345 | # Find the source files, if location was not specified. |
1346 | if test -z "$srcdir"; then | |
1347 | ac_srcdir_defaulted=yes | |
d3ad40de | 1348 | # Try the directory containing this script, then the parent directory. |
dd4f3dd8 CR |
1349 | ac_confdir=`$as_dirname -- "$as_myself" || |
1350 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1351 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1352 | X"$as_myself" : 'X\(//\)$' \| \ | |
1353 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1354 | $as_echo X"$as_myself" | | |
d3ad40de CR |
1355 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1356 | s//\1/ | |
1357 | q | |
1358 | } | |
1359 | /^X\(\/\/\)[^/].*/{ | |
1360 | s//\1/ | |
1361 | q | |
1362 | } | |
1363 | /^X\(\/\/\)$/{ | |
1364 | s//\1/ | |
1365 | q | |
1366 | } | |
1367 | /^X\(\/\).*/{ | |
1368 | s//\1/ | |
1369 | q | |
1370 | } | |
1371 | s/.*/./; q'` | |
545f34cf | 1372 | srcdir=$ac_confdir |
d3ad40de | 1373 | if test ! -r "$srcdir/$ac_unique_file"; then |
545f34cf CR |
1374 | srcdir=.. |
1375 | fi | |
1376 | else | |
1377 | ac_srcdir_defaulted=no | |
1378 | fi | |
d3ad40de CR |
1379 | if test ! -r "$srcdir/$ac_unique_file"; then |
1380 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
dd4f3dd8 | 1381 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
545f34cf | 1382 | { (exit 1); exit 1; }; } |
28157acd | 1383 | fi |
d3ad40de CR |
1384 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1385 | ac_abs_confdir=`( | |
dd4f3dd8 | 1386 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
28157acd | 1387 | { (exit 1); exit 1; }; } |
d3ad40de CR |
1388 | pwd)` |
1389 | # When building in place, set srcdir=. | |
1390 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1391 | srcdir=. | |
1392 | fi | |
1393 | # Remove unnecessary trailing slashes from srcdir. | |
1394 | # Double slashes in file names in object file debugging info | |
1395 | # mess up M-x gdb in Emacs. | |
1396 | case $srcdir in | |
1397 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1398 | esac | |
1399 | for ac_var in $ac_precious_vars; do | |
1400 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1401 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1402 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1403 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1404 | done | |
545f34cf CR |
1405 | |
1406 | # | |
1407 | # Report the --help message. | |
1408 | # | |
1409 | if test "$ac_init_help" = "long"; then | |
1410 | # Omit some internal or obsolete options to make the list less imposing. | |
1411 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1412 | cat <<_ACEOF | |
76af2125 | 1413 | \`configure' configures bash 4.0-maint to adapt to many kinds of systems. |
545f34cf CR |
1414 | |
1415 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1416 | ||
1417 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1418 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1419 | ||
1420 | Defaults for the options are specified in brackets. | |
1421 | ||
1422 | Configuration: | |
1423 | -h, --help display this help and exit | |
1424 | --help=short display options specific to this package | |
1425 | --help=recursive display the short help of all the included packages | |
1426 | -V, --version display version information and exit | |
1427 | -q, --quiet, --silent do not print \`checking...' messages | |
1428 | --cache-file=FILE cache test results in FILE [disabled] | |
1429 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1430 | -n, --no-create do not create output files | |
1431 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1432 | ||
545f34cf CR |
1433 | Installation directories: |
1434 | --prefix=PREFIX install architecture-independent files in PREFIX | |
dd4f3dd8 | 1435 | [$ac_default_prefix] |
545f34cf | 1436 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
dd4f3dd8 | 1437 | [PREFIX] |
545f34cf CR |
1438 | |
1439 | By default, \`make install' will install all the files in | |
1440 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1441 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1442 | for instance \`--prefix=\$HOME'. | |
1443 | ||
1444 | For better control, use the options below. | |
1445 | ||
1446 | Fine tuning of the installation directories: | |
dd4f3dd8 CR |
1447 | --bindir=DIR user executables [EPREFIX/bin] |
1448 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1449 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1450 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1451 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1452 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1453 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1454 | --includedir=DIR C header files [PREFIX/include] | |
1455 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1456 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1457 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1458 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1459 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1460 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1461 | --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bash@:>@ | |
1462 | --htmldir=DIR html documentation [DOCDIR] | |
1463 | --dvidir=DIR dvi documentation [DOCDIR] | |
1464 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1465 | --psdir=DIR ps documentation [DOCDIR] | |
545f34cf CR |
1466 | _ACEOF |
1467 | ||
1468 | cat <<\_ACEOF | |
1469 | ||
1470 | System types: | |
1471 | --build=BUILD configure for building on BUILD [guessed] | |
1472 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1473 | _ACEOF | |
1474 | fi | |
1475 | ||
1476 | if test -n "$ac_init_help"; then | |
1477 | case $ac_init_help in | |
76af2125 | 1478 | short | recursive ) echo "Configuration of bash 4.0-maint:";; |
545f34cf CR |
1479 | esac |
1480 | cat <<\_ACEOF | |
1481 | ||
1482 | Optional Features: | |
dd4f3dd8 | 1483 | --disable-option-checking ignore unrecognized --enable/--with options |
545f34cf CR |
1484 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1485 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1486 | --enable-minimal-config a minimal sh-like configuration | |
1487 | --enable-alias enable shell aliases | |
1488 | --enable-arith-for-command | |
1489 | enable arithmetic for command | |
1490 | --enable-array-variables | |
1491 | include shell array variables | |
1492 | --enable-bang-history turn on csh-style history substitution | |
1493 | --enable-brace-expansion | |
1494 | include brace expansion | |
fdf670ea CR |
1495 | --enable-casemod-attributes |
1496 | include case-modifying variable attributes | |
1497 | --enable-casemod-expansions | |
1498 | include case-modifying word expansions | |
545f34cf CR |
1499 | --enable-command-timing enable the time reserved word and command timing |
1500 | --enable-cond-command enable the conditional command | |
35ee8ea0 | 1501 | --enable-cond-regexp enable extended regular expression matching in |
545f34cf | 1502 | conditional commands |
09767ff0 CR |
1503 | --enable-coprocesses enable coprocess support and the coproc reserved |
1504 | word | |
545f34cf CR |
1505 | --enable-debugger enable support for bash debugger |
1506 | --enable-directory-stack | |
1507 | enable builtins pushd/popd/dirs | |
1508 | --enable-disabled-builtins | |
1509 | allow disabled builtins to still be invoked | |
1510 | --enable-dparen-arithmetic | |
1511 | include ((...)) command | |
1512 | --enable-extended-glob include ksh-style extended pattern matching | |
1513 | --enable-help-builtin include the help builtin | |
1514 | --enable-history turn on command history | |
1515 | --enable-job-control enable job control features | |
1516 | --enable-multibyte enable multibyte characters if OS supports them | |
1517 | --enable-net-redirections | |
1518 | enable /dev/tcp/host/port redirection | |
1519 | --enable-process-substitution | |
1520 | enable process substitution | |
1521 | --enable-progcomp enable programmable completion and the complete | |
1522 | builtin | |
1523 | --enable-prompt-string-decoding | |
1524 | turn on escape character decoding in prompts | |
1525 | --enable-readline turn on command line editing | |
1526 | --enable-restricted enable a restricted shell | |
1527 | --enable-select include select command | |
1528 | --enable-separate-helpfiles | |
1529 | use external files for help builtin documentation | |
01ed5ba4 CR |
1530 | --enable-single-help-strings |
1531 | store help documentation as a single string to ease | |
1532 | translation | |
7790f917 CR |
1533 | --enable-strict-posix-default |
1534 | configure bash to be posix-conformant by default | |
545f34cf CR |
1535 | --enable-usg-echo-default |
1536 | a synonym for --enable-xpg-echo-default | |
1537 | --enable-xpg-echo-default | |
1538 | make the echo builtin expand escape sequences by | |
1539 | default | |
1540 | --enable-mem-scramble scramble memory on calls to malloc and free | |
1541 | --enable-profiling allow profiling with gprof | |
1542 | --enable-static-link link bash statically, for use as a root shell | |
1543 | --disable-largefile omit support for large files | |
1544 | --disable-nls do not use Native Language Support | |
1545 | --disable-rpath do not hardcode runtime library paths | |
1546 | ||
1547 | Optional Packages: | |
1548 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1549 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1550 | --with-lispdir override the default lisp directory | |
1551 | --with-afs if you are running AFS | |
1552 | --with-bash-malloc use the Bash version of malloc | |
1553 | --with-curses use the curses library instead of the termcap | |
1554 | library | |
1555 | --with-gnu-malloc synonym for --with-bash-malloc | |
1556 | --with-installed-readline | |
1557 | use a version of the readline library that is | |
1558 | already installed | |
1559 | --with-purecov configure to postprocess with pure coverage | |
1560 | --with-purify configure to postprocess with purify | |
1561 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1562 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1563 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1564 | --with-included-gettext use the GNU gettext library included here | |
1565 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1566 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
1567 | ||
1568 | Some influential environment variables: | |
1569 | DEBUGGER_START_FILE | |
1570 | location of bash debugger initialization file | |
1571 | CC C compiler command | |
1572 | CFLAGS C compiler flags | |
1573 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1574 | nonstandard directory <lib dir> | |
dd4f3dd8 | 1575 | LIBS libraries to pass to the linker, e.g. -l<library> |
d3ad40de CR |
1576 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1577 | you have headers in a nonstandard directory <include dir> | |
545f34cf | 1578 | CPP C preprocessor |
d3ad40de CR |
1579 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1580 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1581 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1582 | This script will default YFLAGS to the empty string to avoid a | |
1583 | default value of `-d' given by some make applications. | |
545f34cf CR |
1584 | |
1585 | Use these variables to override the choices made by `configure' or to help | |
1586 | it to find libraries and programs with nonstandard names/locations. | |
1587 | ||
1588 | Report bugs to <bug-bash@gnu.org>. | |
1589 | _ACEOF | |
d3ad40de | 1590 | ac_status=$? |
545f34cf CR |
1591 | fi |
1592 | ||
1593 | if test "$ac_init_help" = "recursive"; then | |
1594 | # If there are subdirs, report their specific --help. | |
545f34cf | 1595 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd4f3dd8 CR |
1596 | test -d "$ac_dir" || |
1597 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1598 | continue | |
545f34cf CR |
1599 | ac_builddir=. |
1600 | ||
d3ad40de CR |
1601 | case "$ac_dir" in |
1602 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1603 | *) | |
dd4f3dd8 | 1604 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
d3ad40de | 1605 | # A ".." for each directory in $ac_dir_suffix. |
dd4f3dd8 | 1606 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
d3ad40de CR |
1607 | case $ac_top_builddir_sub in |
1608 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1609 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1610 | esac ;; | |
1611 | esac | |
1612 | ac_abs_top_builddir=$ac_pwd | |
1613 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1614 | # for backward compatibility: | |
1615 | ac_top_builddir=$ac_top_build_prefix | |
545f34cf CR |
1616 | |
1617 | case $srcdir in | |
d3ad40de | 1618 | .) # We are building in place. |
545f34cf | 1619 | ac_srcdir=. |
d3ad40de CR |
1620 | ac_top_srcdir=$ac_top_builddir_sub |
1621 | ac_abs_top_srcdir=$ac_pwd ;; | |
1622 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
545f34cf | 1623 | ac_srcdir=$srcdir$ac_dir_suffix; |
d3ad40de CR |
1624 | ac_top_srcdir=$srcdir |
1625 | ac_abs_top_srcdir=$srcdir ;; | |
1626 | *) # Relative name. | |
1627 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1628 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1629 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a82a04b3 | 1630 | esac |
d3ad40de CR |
1631 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1632 | ||
1633 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1634 | # Check for guested configure. | |
1635 | if test -f "$ac_srcdir/configure.gnu"; then | |
1636 | echo && | |
1637 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1638 | elif test -f "$ac_srcdir/configure"; then | |
1639 | echo && | |
1640 | $SHELL "$ac_srcdir/configure" --help=recursive | |
545f34cf | 1641 | else |
dd4f3dd8 | 1642 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
d3ad40de CR |
1643 | fi || ac_status=$? |
1644 | cd "$ac_pwd" || { ac_status=$?; break; } | |
545f34cf CR |
1645 | done |
1646 | fi | |
1647 | ||
d3ad40de | 1648 | test -n "$ac_init_help" && exit $ac_status |
545f34cf CR |
1649 | if $ac_init_version; then |
1650 | cat <<\_ACEOF | |
76af2125 CR |
1651 | bash configure 4.0-maint |
1652 | generated by GNU Autoconf 2.62 | |
545f34cf | 1653 | |
d3ad40de | 1654 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
dc9f44b3 | 1655 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
545f34cf CR |
1656 | This configure script is free software; the Free Software Foundation |
1657 | gives unlimited permission to copy, distribute and modify it. | |
1658 | _ACEOF | |
d3ad40de | 1659 | exit |
545f34cf | 1660 | fi |
d3ad40de | 1661 | cat >config.log <<_ACEOF |
545f34cf CR |
1662 | This file contains any messages produced by compilers while |
1663 | running configure, to aid debugging if configure makes a mistake. | |
1664 | ||
76af2125 CR |
1665 | It was created by bash $as_me 4.0-maint, which was |
1666 | generated by GNU Autoconf 2.62. Invocation command line was | |
545f34cf CR |
1667 | |
1668 | $ $0 $@ | |
1669 | ||
1670 | _ACEOF | |
d3ad40de | 1671 | exec 5>>config.log |
545f34cf CR |
1672 | { |
1673 | cat <<_ASUNAME | |
1674 | @%:@@%:@ --------- @%:@@%:@ | |
1675 | @%:@@%:@ Platform. @%:@@%:@ | |
1676 | @%:@@%:@ --------- @%:@@%:@ | |
1677 | ||
1678 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1679 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1680 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1681 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1682 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1683 | ||
1684 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1685 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1686 | ||
1687 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1688 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1689 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
d3ad40de | 1690 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
545f34cf CR |
1691 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1692 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1693 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1694 | ||
1695 | _ASUNAME | |
1696 | ||
1697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1698 | for as_dir in $PATH | |
1699 | do | |
1700 | IFS=$as_save_IFS | |
1701 | test -z "$as_dir" && as_dir=. | |
dd4f3dd8 | 1702 | $as_echo "PATH: $as_dir" |
545f34cf | 1703 | done |
d3ad40de | 1704 | IFS=$as_save_IFS |
545f34cf CR |
1705 | |
1706 | } >&5 | |
1707 | ||
1708 | cat >&5 <<_ACEOF | |
1709 | ||
1710 | ||
1711 | @%:@@%:@ ----------- @%:@@%:@ | |
1712 | @%:@@%:@ Core tests. @%:@@%:@ | |
1713 | @%:@@%:@ ----------- @%:@@%:@ | |
1714 | ||
1715 | _ACEOF | |
1716 | ||
1717 | ||
1718 | # Keep a trace of the command line. | |
1719 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1720 | # Strip out --silent because we don't want to record it for future runs. | |
1721 | # Also quote any args containing shell meta-characters. | |
1722 | # Make two passes to allow for proper duplicate-argument suppression. | |
1723 | ac_configure_args= | |
1724 | ac_configure_args0= | |
1725 | ac_configure_args1= | |
545f34cf CR |
1726 | ac_must_keep_next=false |
1727 | for ac_pass in 1 2 | |
1728 | do | |
1729 | for ac_arg | |
1730 | do | |
1731 | case $ac_arg in | |
1732 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1733 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1734 | | -silent | --silent | --silen | --sile | --sil) | |
1735 | continue ;; | |
d3ad40de | 1736 | *\'*) |
dd4f3dd8 | 1737 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
545f34cf CR |
1738 | esac |
1739 | case $ac_pass in | |
1740 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1741 | 2) | |
1742 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1743 | if test $ac_must_keep_next = true; then | |
a82a04b3 | 1744 | ac_must_keep_next=false # Got value, back to normal. |
545f34cf | 1745 | else |
a82a04b3 CR |
1746 | case $ac_arg in |
1747 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1748 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1749 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1750 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1751 | case "$ac_configure_args0 " in | |
1752 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1753 | esac | |
1754 | ;; | |
1755 | -* ) ac_must_keep_next=true ;; | |
1756 | esac | |
545f34cf | 1757 | fi |
d3ad40de | 1758 | ac_configure_args="$ac_configure_args '$ac_arg'" |
545f34cf CR |
1759 | ;; |
1760 | esac | |
1761 | done | |
1762 | done | |
1763 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1764 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1765 | ||
1766 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1767 | # config.log. We remove comments because anyway the quotes in there | |
1768 | # would cause problems or look ugly. | |
d3ad40de CR |
1769 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1770 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
545f34cf CR |
1771 | trap 'exit_status=$? |
1772 | # Save into config.log some information that might help in debugging. | |
1773 | { | |
1774 | echo | |
1775 | ||
1776 | cat <<\_ASBOX | |
1777 | @%:@@%:@ ---------------- @%:@@%:@ | |
1778 | @%:@@%:@ Cache variables. @%:@@%:@ | |
1779 | @%:@@%:@ ---------------- @%:@@%:@ | |
1780 | _ASBOX | |
1781 | echo | |
1782 | # The following way of writing the cache mishandles newlines in values, | |
d3ad40de CR |
1783 | ( |
1784 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1785 | eval ac_val=\$$ac_var | |
1786 | case $ac_val in #( | |
1787 | *${as_nl}*) | |
1788 | case $ac_var in #( | |
76af2125 CR |
1789 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1790 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
d3ad40de CR |
1791 | esac |
1792 | case $ac_var in #( | |
1793 | _ | IFS | as_nl) ;; #( | |
dd4f3dd8 | 1794 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
d3ad40de CR |
1795 | *) $as_unset $ac_var ;; |
1796 | esac ;; | |
1797 | esac | |
1798 | done | |
545f34cf | 1799 | (set) 2>&1 | |
d3ad40de CR |
1800 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1801 | *${as_nl}ac_space=\ *) | |
545f34cf | 1802 | sed -n \ |
d3ad40de CR |
1803 | "s/'\''/'\''\\\\'\'''\''/g; |
1804 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1805 | ;; #( | |
545f34cf | 1806 | *) |
d3ad40de | 1807 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
545f34cf | 1808 | ;; |
d3ad40de CR |
1809 | esac | |
1810 | sort | |
1811 | ) | |
545f34cf CR |
1812 | echo |
1813 | ||
1814 | cat <<\_ASBOX | |
1815 | @%:@@%:@ ----------------- @%:@@%:@ | |
1816 | @%:@@%:@ Output variables. @%:@@%:@ | |
1817 | @%:@@%:@ ----------------- @%:@@%:@ | |
1818 | _ASBOX | |
1819 | echo | |
1820 | for ac_var in $ac_subst_vars | |
1821 | do | |
d3ad40de CR |
1822 | eval ac_val=\$$ac_var |
1823 | case $ac_val in | |
dd4f3dd8 | 1824 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
d3ad40de | 1825 | esac |
dd4f3dd8 | 1826 | $as_echo "$ac_var='\''$ac_val'\''" |
545f34cf CR |
1827 | done | sort |
1828 | echo | |
1829 | ||
1830 | if test -n "$ac_subst_files"; then | |
1831 | cat <<\_ASBOX | |
d3ad40de CR |
1832 | @%:@@%:@ ------------------- @%:@@%:@ |
1833 | @%:@@%:@ File substitutions. @%:@@%:@ | |
1834 | @%:@@%:@ ------------------- @%:@@%:@ | |
545f34cf CR |
1835 | _ASBOX |
1836 | echo | |
1837 | for ac_var in $ac_subst_files | |
1838 | do | |
d3ad40de CR |
1839 | eval ac_val=\$$ac_var |
1840 | case $ac_val in | |
dd4f3dd8 | 1841 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
d3ad40de | 1842 | esac |
dd4f3dd8 | 1843 | $as_echo "$ac_var='\''$ac_val'\''" |
545f34cf CR |
1844 | done | sort |
1845 | echo | |
1846 | fi | |
1847 | ||
1848 | if test -s confdefs.h; then | |
1849 | cat <<\_ASBOX | |
1850 | @%:@@%:@ ----------- @%:@@%:@ | |
1851 | @%:@@%:@ confdefs.h. @%:@@%:@ | |
1852 | @%:@@%:@ ----------- @%:@@%:@ | |
1853 | _ASBOX | |
1854 | echo | |
d3ad40de | 1855 | cat confdefs.h |
545f34cf CR |
1856 | echo |
1857 | fi | |
1858 | test "$ac_signal" != 0 && | |
dd4f3dd8 CR |
1859 | $as_echo "$as_me: caught signal $ac_signal" |
1860 | $as_echo "$as_me: exit $exit_status" | |
545f34cf | 1861 | } >&5 |
d3ad40de CR |
1862 | rm -f core *.core core.conftest.* && |
1863 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
545f34cf | 1864 | exit $exit_status |
d3ad40de | 1865 | ' 0 |
545f34cf CR |
1866 | for ac_signal in 1 2 13 15; do |
1867 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1868 | done | |
1869 | ac_signal=0 | |
1870 | ||
1871 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
d3ad40de | 1872 | rm -f -r conftest* confdefs.h |
545f34cf CR |
1873 | |
1874 | # Predefined preprocessor variables. | |
1875 | ||
1876 | cat >>confdefs.h <<_ACEOF | |
1877 | @%:@define PACKAGE_NAME "$PACKAGE_NAME" | |
1878 | _ACEOF | |
1879 | ||
1880 | ||
1881 | cat >>confdefs.h <<_ACEOF | |
1882 | @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1883 | _ACEOF | |
1884 | ||
1885 | ||
1886 | cat >>confdefs.h <<_ACEOF | |
1887 | @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1888 | _ACEOF | |
1889 | ||
1890 | ||
1891 | cat >>confdefs.h <<_ACEOF | |
1892 | @%:@define PACKAGE_STRING "$PACKAGE_STRING" | |
1893 | _ACEOF | |
1894 | ||
1895 | ||
1896 | cat >>confdefs.h <<_ACEOF | |
1897 | @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1898 | _ACEOF | |
1899 | ||
1900 | ||
1901 | # Let the site file select an alternate cache file if it wants to. | |
dd4f3dd8 CR |
1902 | # Prefer an explicitly selected file to automatically selected ones. |
1903 | ac_site_file1=NONE | |
1904 | ac_site_file2=NONE | |
d3ad40de | 1905 | if test -n "$CONFIG_SITE"; then |
dd4f3dd8 | 1906 | ac_site_file1=$CONFIG_SITE |
d3ad40de | 1907 | elif test "x$prefix" != xNONE; then |
dd4f3dd8 CR |
1908 | ac_site_file1=$prefix/share/config.site |
1909 | ac_site_file2=$prefix/etc/config.site | |
d3ad40de | 1910 | else |
dd4f3dd8 CR |
1911 | ac_site_file1=$ac_default_prefix/share/config.site |
1912 | ac_site_file2=$ac_default_prefix/etc/config.site | |
545f34cf | 1913 | fi |
dd4f3dd8 | 1914 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
d3ad40de | 1915 | do |
dd4f3dd8 | 1916 | test "x$ac_site_file" = xNONE && continue |
545f34cf | 1917 | if test -r "$ac_site_file"; then |
dd4f3dd8 CR |
1918 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1919 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
545f34cf CR |
1920 | sed 's/^/| /' "$ac_site_file" >&5 |
1921 | . "$ac_site_file" | |
1922 | fi | |
1923 | done | |
1924 | ||
1925 | if test -r "$cache_file"; then | |
1926 | # Some versions of bash will fail to source /dev/null (special | |
1927 | # files actually), so we avoid doing that. | |
1928 | if test -f "$cache_file"; then | |
dd4f3dd8 CR |
1929 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1930 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
545f34cf | 1931 | case $cache_file in |
d3ad40de CR |
1932 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1933 | *) . "./$cache_file";; | |
545f34cf CR |
1934 | esac |
1935 | fi | |
1936 | else | |
dd4f3dd8 CR |
1937 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1938 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
545f34cf CR |
1939 | >$cache_file |
1940 | fi | |
1941 | ||
dd4f3dd8 CR |
1942 | ac_header_list="$ac_header_list sys/time.h" |
1943 | ac_header_list="$ac_header_list unistd.h" | |
1944 | ac_func_list="$ac_func_list alarm" | |
53ac45a3 CR |
1945 | ac_func_list="$ac_func_list fpurge" |
1946 | ac_func_list="$ac_func_list __fpurge" | |
545f34cf CR |
1947 | # Check that the precious variables saved in the cache have kept the same |
1948 | # value. | |
1949 | ac_cache_corrupted=false | |
d3ad40de | 1950 | for ac_var in $ac_precious_vars; do |
545f34cf CR |
1951 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1952 | eval ac_new_set=\$ac_env_${ac_var}_set | |
d3ad40de CR |
1953 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1954 | eval ac_new_val=\$ac_env_${ac_var}_value | |
545f34cf CR |
1955 | case $ac_old_set,$ac_new_set in |
1956 | set,) | |
dd4f3dd8 CR |
1957 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1958 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
545f34cf CR |
1959 | ac_cache_corrupted=: ;; |
1960 | ,set) | |
dd4f3dd8 CR |
1961 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1962 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
545f34cf CR |
1963 | ac_cache_corrupted=: ;; |
1964 | ,);; | |
1965 | *) | |
1966 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
dd4f3dd8 CR |
1967 | # differences in whitespace do not lead to failure. |
1968 | ac_old_val_w=`echo x $ac_old_val` | |
1969 | ac_new_val_w=`echo x $ac_new_val` | |
1970 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1971 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1972 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1973 | ac_cache_corrupted=: | |
1974 | else | |
1975 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1976 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1977 | eval $ac_var=\$ac_old_val | |
1978 | fi | |
1979 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1980 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1981 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1982 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
545f34cf CR |
1983 | fi;; |
1984 | esac | |
1985 | # Pass precious variables to config.status. | |
1986 | if test "$ac_new_set" = set; then | |
1987 | case $ac_new_val in | |
dd4f3dd8 | 1988 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
545f34cf CR |
1989 | *) ac_arg=$ac_var=$ac_new_val ;; |
1990 | esac | |
1991 | case " $ac_configure_args " in | |
1992 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1993 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1994 | esac | |
1995 | fi | |
1996 | done | |
1997 | if $ac_cache_corrupted; then | |
dd4f3dd8 CR |
1998 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1999 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2000 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2001 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
545f34cf CR |
2002 | { (exit 1); exit 1; }; } |
2003 | fi | |
2004 | ||
545f34cf CR |
2005 | |
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | ||
d3ad40de CR |
2029 | ac_ext=c |
2030 | ac_cpp='$CPP $CPPFLAGS' | |
2031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
545f34cf CR |
2034 | |
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ac_aux_dir= | |
d3ad40de CR |
2041 | for ac_dir in ./support "$srcdir"/./support; do |
2042 | if test -f "$ac_dir/install-sh"; then | |
545f34cf CR |
2043 | ac_aux_dir=$ac_dir |
2044 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2045 | break | |
d3ad40de | 2046 | elif test -f "$ac_dir/install.sh"; then |
545f34cf CR |
2047 | ac_aux_dir=$ac_dir |
2048 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2049 | break | |
d3ad40de | 2050 | elif test -f "$ac_dir/shtool"; then |
545f34cf CR |
2051 | ac_aux_dir=$ac_dir |
2052 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2053 | break | |
2054 | fi | |
2055 | done | |
2056 | if test -z "$ac_aux_dir"; then | |
dd4f3dd8 CR |
2057 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5 |
2058 | $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;} | |
545f34cf CR |
2059 | { (exit 1); exit 1; }; } |
2060 | fi | |
545f34cf | 2061 | |
d3ad40de CR |
2062 | # These three variables are undocumented and unsupported, |
2063 | # and are intended to be withdrawn in a future Autoconf release. | |
2064 | # They can cause serious problems if a builder's source tree is in a directory | |
2065 | # whose full name contains unusual characters. | |
2066 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2067 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2068 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2069 | ||
2070 | ||
2071 | ac_config_headers="$ac_config_headers config.h" | |
545f34cf CR |
2072 | |
2073 | ||
245a493c | 2074 | BASHVERS=4.0 |
76af2125 | 2075 | RELSTATUS=maint |
545f34cf CR |
2076 | |
2077 | case "$RELSTATUS" in | |
d3ad40de | 2078 | alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;; |
545f34cf CR |
2079 | *) DEBUG= MALLOC_DEBUG= ;; |
2080 | esac | |
2081 | ||
2082 | # Make sure we can run config.sub. | |
d3ad40de | 2083 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
dd4f3dd8 CR |
2084 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2085 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
545f34cf CR |
2086 | { (exit 1); exit 1; }; } |
2087 | ||
dd4f3dd8 CR |
2088 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2089 | $as_echo_n "checking build system type... " >&6; } | |
545f34cf | 2090 | if test "${ac_cv_build+set}" = set; then |
dd4f3dd8 | 2091 | $as_echo_n "(cached) " >&6 |
545f34cf | 2092 | else |
d3ad40de CR |
2093 | ac_build_alias=$build_alias |
2094 | test "x$ac_build_alias" = x && | |
2095 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2096 | test "x$ac_build_alias" = x && | |
dd4f3dd8 CR |
2097 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2098 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
545f34cf | 2099 | { (exit 1); exit 1; }; } |
d3ad40de | 2100 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
dd4f3dd8 CR |
2101 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2102 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
545f34cf CR |
2103 | { (exit 1); exit 1; }; } |
2104 | ||
2105 | fi | |
dd4f3dd8 CR |
2106 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2107 | $as_echo "$ac_cv_build" >&6; } | |
d3ad40de CR |
2108 | case $ac_cv_build in |
2109 | *-*-*) ;; | |
dd4f3dd8 CR |
2110 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2111 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
d3ad40de CR |
2112 | { (exit 1); exit 1; }; };; |
2113 | esac | |
545f34cf | 2114 | build=$ac_cv_build |
d3ad40de CR |
2115 | ac_save_IFS=$IFS; IFS='-' |
2116 | set x $ac_cv_build | |
2117 | shift | |
2118 | build_cpu=$1 | |
2119 | build_vendor=$2 | |
2120 | shift; shift | |
2121 | # Remember, the first character of IFS is used to create $*, | |
2122 | # except with old shells: | |
2123 | build_os=$* | |
2124 | IFS=$ac_save_IFS | |
2125 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2126 | ||
2127 | ||
dd4f3dd8 CR |
2128 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2129 | $as_echo_n "checking host system type... " >&6; } | |
545f34cf | 2130 | if test "${ac_cv_host+set}" = set; then |
dd4f3dd8 | 2131 | $as_echo_n "(cached) " >&6 |
545f34cf | 2132 | else |
d3ad40de CR |
2133 | if test "x$host_alias" = x; then |
2134 | ac_cv_host=$ac_cv_build | |
2135 | else | |
2136 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
dd4f3dd8 CR |
2137 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2138 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
545f34cf | 2139 | { (exit 1); exit 1; }; } |
d3ad40de | 2140 | fi |
545f34cf CR |
2141 | |
2142 | fi | |
dd4f3dd8 CR |
2143 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2144 | $as_echo "$ac_cv_host" >&6; } | |
d3ad40de CR |
2145 | case $ac_cv_host in |
2146 | *-*-*) ;; | |
dd4f3dd8 CR |
2147 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2148 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
d3ad40de CR |
2149 | { (exit 1); exit 1; }; };; |
2150 | esac | |
545f34cf | 2151 | host=$ac_cv_host |
d3ad40de CR |
2152 | ac_save_IFS=$IFS; IFS='-' |
2153 | set x $ac_cv_host | |
2154 | shift | |
2155 | host_cpu=$1 | |
2156 | host_vendor=$2 | |
2157 | shift; shift | |
2158 | # Remember, the first character of IFS is used to create $*, | |
2159 | # except with old shells: | |
2160 | host_os=$* | |
2161 | IFS=$ac_save_IFS | |
2162 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
545f34cf CR |
2163 | |
2164 | ||
2165 | ||
2166 | opt_bash_malloc=yes | |
2167 | opt_purify=no | |
2168 | opt_purecov=no | |
2169 | opt_afs=no | |
2170 | opt_curses=no | |
2171 | opt_with_installed_readline=no | |
2172 | ||
2173 | #htmldir= | |
2174 | ||
2175 | case "${host_cpu}-${host_os}" in | |
2176 | alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux | |
2177 | *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays | |
2178 | *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines | |
2179 | sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2 | |
2180 | sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment | |
2181 | mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment | |
2182 | m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir | |
2183 | sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF | |
8ed8525c | 2184 | #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here |
545f34cf CR |
2185 | #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree |
2186 | *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment | |
2187 | *-aix*) opt_bash_malloc=no ;; # AIX machines | |
2188 | *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep | |
2189 | *-macos*) opt_bash_malloc=no ;; # Apple MacOS X | |
2190 | *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X) | |
2191 | *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X) | |
2192 | *-dgux*) opt_bash_malloc=no ;; # DG/UX machines | |
fd3925f1 | 2193 | *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x |
545f34cf CR |
2194 | *-machten4) opt_bash_malloc=no ;; # MachTen 4.x |
2195 | *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins | |
2196 | *-beos*) opt_bash_malloc=no ;; # they say it's suitable | |
2197 | *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment | |
2198 | *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft | |
2199 | esac | |
2200 | ||
2201 | # memory scrambling on free() | |
2202 | case "${host_os}" in | |
2203 | sco3.2v5*|sco3.2v4*) opt_memscramble=no ;; | |
2204 | *) opt_memscramble=yes ;; | |
2205 | esac | |
2206 | ||
2207 | ||
dd4f3dd8 | 2208 | @%:@ Check whether --with-lispdir was given. |
545f34cf | 2209 | if test "${with_lispdir+set}" = set; then |
d3ad40de | 2210 | withval=$with_lispdir; lispdir="$withval" |
dd4f3dd8 CR |
2211 | { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5 |
2212 | $as_echo_n "checking where .elc files should go... " >&6; } | |
2213 | { $as_echo "$as_me:$LINENO: result: $lispdir" >&5 | |
2214 | $as_echo "$lispdir" >&6; } | |
545f34cf CR |
2215 | else |
2216 | ||
2217 | # If set to t, that means we are running in a shell under Emacs. | |
2218 | # If you have an Emacs named "t", then use the full path. | |
2219 | test x"$EMACS" = xt && EMACS= | |
2220 | for ac_prog in emacs xemacs | |
2221 | do | |
2222 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2223 | set dummy $ac_prog; ac_word=$2 | |
dd4f3dd8 CR |
2224 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2225 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 2226 | if test "${ac_cv_prog_EMACS+set}" = set; then |
dd4f3dd8 | 2227 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
2228 | else |
2229 | if test -n "$EMACS"; then | |
2230 | ac_cv_prog_EMACS="$EMACS" # Let the user override the test. | |
2231 | else | |
2232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2233 | for as_dir in $PATH | |
2234 | do | |
2235 | IFS=$as_save_IFS | |
2236 | test -z "$as_dir" && as_dir=. | |
2237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 2238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 2239 | ac_cv_prog_EMACS="$ac_prog" |
dd4f3dd8 | 2240 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
2241 | break 2 |
2242 | fi | |
2243 | done | |
2244 | done | |
d3ad40de | 2245 | IFS=$as_save_IFS |
545f34cf CR |
2246 | |
2247 | fi | |
2248 | fi | |
2249 | EMACS=$ac_cv_prog_EMACS | |
2250 | if test -n "$EMACS"; then | |
dd4f3dd8 CR |
2251 | { $as_echo "$as_me:$LINENO: result: $EMACS" >&5 |
2252 | $as_echo "$EMACS" >&6; } | |
545f34cf | 2253 | else |
dd4f3dd8 CR |
2254 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2255 | $as_echo "no" >&6; } | |
545f34cf CR |
2256 | fi |
2257 | ||
d3ad40de | 2258 | |
545f34cf CR |
2259 | test -n "$EMACS" && break |
2260 | done | |
2261 | test -n "$EMACS" || EMACS="no" | |
2262 | ||
2263 | if test $EMACS != "no"; then | |
2264 | if test x${lispdir+set} != xset; then | |
dd4f3dd8 CR |
2265 | { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5 |
2266 | $as_echo_n "checking where .elc files should go... " >&6; } | |
545f34cf | 2267 | if test "${am_cv_lispdir+set}" = set; then |
dd4f3dd8 | 2268 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
2269 | else |
2270 | am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'` | |
2271 | if test -z "$am_cv_lispdir"; then | |
2272 | am_cv_lispdir='${datadir}/emacs/site-lisp' | |
2273 | fi | |
2274 | ||
2275 | fi | |
dd4f3dd8 CR |
2276 | { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5 |
2277 | $as_echo "$am_cv_lispdir" >&6; } | |
545f34cf CR |
2278 | lispdir="$am_cv_lispdir" |
2279 | fi | |
2280 | fi | |
2281 | ||
d3ad40de CR |
2282 | fi |
2283 | ||
545f34cf CR |
2284 | |
2285 | ||
2286 | ||
2287 | ||
2288 | ||
dd4f3dd8 | 2289 | @%:@ Check whether --with-afs was given. |
545f34cf | 2290 | if test "${with_afs+set}" = set; then |
d3ad40de CR |
2291 | withval=$with_afs; opt_afs=$withval |
2292 | fi | |
545f34cf | 2293 | |
d3ad40de | 2294 | |
dd4f3dd8 | 2295 | @%:@ Check whether --with-bash-malloc was given. |
545f34cf | 2296 | if test "${with_bash_malloc+set}" = set; then |
d3ad40de CR |
2297 | withval=$with_bash_malloc; opt_bash_malloc=$withval |
2298 | fi | |
545f34cf | 2299 | |
d3ad40de | 2300 | |
dd4f3dd8 | 2301 | @%:@ Check whether --with-curses was given. |
545f34cf | 2302 | if test "${with_curses+set}" = set; then |
d3ad40de CR |
2303 | withval=$with_curses; opt_curses=$withval |
2304 | fi | |
545f34cf | 2305 | |
d3ad40de | 2306 | |
dd4f3dd8 | 2307 | @%:@ Check whether --with-gnu-malloc was given. |
545f34cf | 2308 | if test "${with_gnu_malloc+set}" = set; then |
d3ad40de CR |
2309 | withval=$with_gnu_malloc; opt_bash_malloc=$withval |
2310 | fi | |
545f34cf | 2311 | |
d3ad40de | 2312 | |
dd4f3dd8 | 2313 | @%:@ Check whether --with-installed-readline was given. |
545f34cf | 2314 | if test "${with_installed_readline+set}" = set; then |
d3ad40de CR |
2315 | withval=$with_installed_readline; opt_with_installed_readline=$withval |
2316 | fi | |
545f34cf | 2317 | |
d3ad40de | 2318 | |
dd4f3dd8 | 2319 | @%:@ Check whether --with-purecov was given. |
545f34cf | 2320 | if test "${with_purecov+set}" = set; then |
d3ad40de CR |
2321 | withval=$with_purecov; opt_purecov=$withval |
2322 | fi | |
545f34cf | 2323 | |
d3ad40de | 2324 | |
dd4f3dd8 | 2325 | @%:@ Check whether --with-purify was given. |
545f34cf | 2326 | if test "${with_purify+set}" = set; then |
d3ad40de CR |
2327 | withval=$with_purify; opt_purify=$withval |
2328 | fi | |
2329 | ||
545f34cf CR |
2330 | |
2331 | if test "$opt_bash_malloc" = yes; then | |
2332 | MALLOC_TARGET=malloc | |
2333 | MALLOC_SRC=malloc.c | |
2334 | ||
2335 | MALLOC_LIB='-lmalloc' | |
2336 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
2337 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
2338 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
2339 | ||
2340 | cat >>confdefs.h <<\_ACEOF | |
2341 | @%:@define USING_BASH_MALLOC 1 | |
2342 | _ACEOF | |
2343 | ||
2344 | else | |
2345 | MALLOC_LIB= | |
2346 | MALLOC_LIBRARY= | |
2347 | MALLOC_LDFLAGS= | |
2348 | MALLOC_DEP= | |
2349 | fi | |
2350 | ||
2351 | if test "$opt_purify" = yes; then | |
2352 | PURIFY="purify " | |
2353 | cat >>confdefs.h <<\_ACEOF | |
2354 | @%:@define DISABLE_MALLOC_WRAPPERS 1 | |
2355 | _ACEOF | |
2356 | ||
2357 | else | |
2358 | PURIFY= | |
2359 | fi | |
2360 | ||
2361 | if test "$opt_purecov" = yes; then | |
2362 | PURIFY="${PURIFY}purecov" | |
2363 | fi | |
2364 | ||
2365 | if test "$opt_afs" = yes; then | |
2366 | cat >>confdefs.h <<\_ACEOF | |
2367 | @%:@define AFS 1 | |
2368 | _ACEOF | |
2369 | ||
2370 | fi | |
2371 | ||
2372 | if test "$opt_curses" = yes; then | |
2373 | prefer_curses=yes | |
2374 | fi | |
2375 | ||
2376 | if test -z "${DEBUGGER_START_FILE}"; then | |
d3ad40de | 2377 | DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc' |
545f34cf CR |
2378 | fi |
2379 | ||
2380 | opt_minimal_config=no | |
2381 | ||
2382 | opt_job_control=yes | |
2383 | opt_alias=yes | |
2384 | opt_readline=yes | |
2385 | opt_history=yes | |
2386 | opt_bang_history=yes | |
2387 | opt_dirstack=yes | |
2388 | opt_restricted=yes | |
2389 | opt_process_subst=yes | |
2390 | opt_prompt_decoding=yes | |
2391 | opt_select=yes | |
2392 | opt_help=yes | |
2393 | opt_array_variables=yes | |
2394 | opt_dparen_arith=yes | |
2395 | opt_extended_glob=yes | |
2396 | opt_brace_expansion=yes | |
2397 | opt_disabled_builtins=no | |
2398 | opt_command_timing=yes | |
2399 | opt_xpg_echo=no | |
7790f917 | 2400 | opt_strict_posix=no |
545f34cf CR |
2401 | opt_cond_command=yes |
2402 | opt_cond_regexp=yes | |
09767ff0 | 2403 | opt_coproc=yes |
545f34cf CR |
2404 | opt_arith_for_command=yes |
2405 | opt_net_redirs=yes | |
2406 | opt_progcomp=yes | |
2407 | opt_separate_help=no | |
2408 | opt_multibyte=yes | |
2409 | opt_debugger=yes | |
01ed5ba4 | 2410 | opt_single_longdoc_strings=yes |
fdf670ea CR |
2411 | opt_casemod_attrs=yes |
2412 | opt_casemod_expansions=yes | |
545f34cf CR |
2413 | |
2414 | opt_static_link=no | |
2415 | opt_profiling=no | |
2416 | ||
dd4f3dd8 | 2417 | @%:@ Check whether --enable-minimal-config was given. |
545f34cf | 2418 | if test "${enable_minimal_config+set}" = set; then |
d3ad40de CR |
2419 | enableval=$enable_minimal_config; opt_minimal_config=$enableval |
2420 | fi | |
2421 | ||
545f34cf CR |
2422 | |
2423 | if test $opt_minimal_config = yes; then | |
2424 | opt_job_control=no opt_alias=no opt_readline=no | |
2425 | opt_history=no opt_bang_history=no opt_dirstack=no | |
2426 | opt_restricted=no opt_process_subst=no opt_prompt_decoding=no | |
2427 | opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no | |
2428 | opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no | |
2429 | opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no | |
2430 | opt_net_redirs=no opt_progcomp=no opt_separate_help=no | |
09767ff0 | 2431 | opt_multibyte=yes opt_cond_regexp=no opt_coproc=no |
fdf670ea | 2432 | opt_casemod_attrs=no opt_casemod_expansions=no |
545f34cf CR |
2433 | fi |
2434 | ||
dd4f3dd8 | 2435 | @%:@ Check whether --enable-alias was given. |
545f34cf | 2436 | if test "${enable_alias+set}" = set; then |
d3ad40de CR |
2437 | enableval=$enable_alias; opt_alias=$enableval |
2438 | fi | |
2439 | ||
dd4f3dd8 | 2440 | @%:@ Check whether --enable-arith-for-command was given. |
545f34cf | 2441 | if test "${enable_arith_for_command+set}" = set; then |
d3ad40de CR |
2442 | enableval=$enable_arith_for_command; opt_arith_for_command=$enableval |
2443 | fi | |
2444 | ||
dd4f3dd8 | 2445 | @%:@ Check whether --enable-array-variables was given. |
545f34cf | 2446 | if test "${enable_array_variables+set}" = set; then |
d3ad40de CR |
2447 | enableval=$enable_array_variables; opt_array_variables=$enableval |
2448 | fi | |
2449 | ||
dd4f3dd8 | 2450 | @%:@ Check whether --enable-bang-history was given. |
545f34cf | 2451 | if test "${enable_bang_history+set}" = set; then |
d3ad40de CR |
2452 | enableval=$enable_bang_history; opt_bang_history=$enableval |
2453 | fi | |
2454 | ||
dd4f3dd8 | 2455 | @%:@ Check whether --enable-brace-expansion was given. |
545f34cf | 2456 | if test "${enable_brace_expansion+set}" = set; then |
d3ad40de CR |
2457 | enableval=$enable_brace_expansion; opt_brace_expansion=$enableval |
2458 | fi | |
2459 | ||
dd4f3dd8 | 2460 | @%:@ Check whether --enable-casemod-attributes was given. |
fdf670ea CR |
2461 | if test "${enable_casemod_attributes+set}" = set; then |
2462 | enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval | |
2463 | fi | |
2464 | ||
dd4f3dd8 | 2465 | @%:@ Check whether --enable-casemod-expansions was given. |
fdf670ea CR |
2466 | if test "${enable_casemod_expansions+set}" = set; then |
2467 | enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval | |
2468 | fi | |
2469 | ||
dd4f3dd8 | 2470 | @%:@ Check whether --enable-command-timing was given. |
545f34cf | 2471 | if test "${enable_command_timing+set}" = set; then |
d3ad40de CR |
2472 | enableval=$enable_command_timing; opt_command_timing=$enableval |
2473 | fi | |
2474 | ||
dd4f3dd8 | 2475 | @%:@ Check whether --enable-cond-command was given. |
545f34cf | 2476 | if test "${enable_cond_command+set}" = set; then |
d3ad40de CR |
2477 | enableval=$enable_cond_command; opt_cond_command=$enableval |
2478 | fi | |
2479 | ||
dd4f3dd8 | 2480 | @%:@ Check whether --enable-cond-regexp was given. |
545f34cf | 2481 | if test "${enable_cond_regexp+set}" = set; then |
d3ad40de CR |
2482 | enableval=$enable_cond_regexp; opt_cond_regexp=$enableval |
2483 | fi | |
2484 | ||
dd4f3dd8 | 2485 | @%:@ Check whether --enable-coprocesses was given. |
09767ff0 CR |
2486 | if test "${enable_coprocesses+set}" = set; then |
2487 | enableval=$enable_coprocesses; opt_coproc=$enableval | |
2488 | fi | |
2489 | ||
dd4f3dd8 | 2490 | @%:@ Check whether --enable-debugger was given. |
545f34cf | 2491 | if test "${enable_debugger+set}" = set; then |
d3ad40de CR |
2492 | enableval=$enable_debugger; opt_debugger=$enableval |
2493 | fi | |
2494 | ||
dd4f3dd8 | 2495 | @%:@ Check whether --enable-directory-stack was given. |
545f34cf | 2496 | if test "${enable_directory_stack+set}" = set; then |
d3ad40de CR |
2497 | enableval=$enable_directory_stack; opt_dirstack=$enableval |
2498 | fi | |
2499 | ||
dd4f3dd8 | 2500 | @%:@ Check whether --enable-disabled-builtins was given. |
545f34cf | 2501 | if test "${enable_disabled_builtins+set}" = set; then |
d3ad40de CR |
2502 | enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval |
2503 | fi | |
2504 | ||
dd4f3dd8 | 2505 | @%:@ Check whether --enable-dparen-arithmetic was given. |
545f34cf | 2506 | if test "${enable_dparen_arithmetic+set}" = set; then |
d3ad40de CR |
2507 | enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval |
2508 | fi | |
2509 | ||
dd4f3dd8 | 2510 | @%:@ Check whether --enable-extended-glob was given. |
545f34cf | 2511 | if test "${enable_extended_glob+set}" = set; then |
d3ad40de CR |
2512 | enableval=$enable_extended_glob; opt_extended_glob=$enableval |
2513 | fi | |
2514 | ||
dd4f3dd8 | 2515 | @%:@ Check whether --enable-help-builtin was given. |
545f34cf | 2516 | if test "${enable_help_builtin+set}" = set; then |
d3ad40de CR |
2517 | enableval=$enable_help_builtin; opt_help=$enableval |
2518 | fi | |
2519 | ||
dd4f3dd8 | 2520 | @%:@ Check whether --enable-history was given. |
545f34cf | 2521 | if test "${enable_history+set}" = set; then |
d3ad40de CR |
2522 | enableval=$enable_history; opt_history=$enableval |
2523 | fi | |
2524 | ||
dd4f3dd8 | 2525 | @%:@ Check whether --enable-job-control was given. |
545f34cf | 2526 | if test "${enable_job_control+set}" = set; then |
d3ad40de CR |
2527 | enableval=$enable_job_control; opt_job_control=$enableval |
2528 | fi | |
2529 | ||
dd4f3dd8 | 2530 | @%:@ Check whether --enable-multibyte was given. |
545f34cf | 2531 | if test "${enable_multibyte+set}" = set; then |
d3ad40de CR |
2532 | enableval=$enable_multibyte; opt_multibyte=$enableval |
2533 | fi | |
2534 | ||
dd4f3dd8 | 2535 | @%:@ Check whether --enable-net-redirections was given. |
545f34cf | 2536 | if test "${enable_net_redirections+set}" = set; then |
d3ad40de CR |
2537 | enableval=$enable_net_redirections; opt_net_redirs=$enableval |
2538 | fi | |
2539 | ||
dd4f3dd8 | 2540 | @%:@ Check whether --enable-process-substitution was given. |
545f34cf | 2541 | if test "${enable_process_substitution+set}" = set; then |
d3ad40de CR |
2542 | enableval=$enable_process_substitution; opt_process_subst=$enableval |
2543 | fi | |
2544 | ||
dd4f3dd8 | 2545 | @%:@ Check whether --enable-progcomp was given. |
545f34cf | 2546 | if test "${enable_progcomp+set}" = set; then |
d3ad40de CR |
2547 | enableval=$enable_progcomp; opt_progcomp=$enableval |
2548 | fi | |
2549 | ||
dd4f3dd8 | 2550 | @%:@ Check whether --enable-prompt-string-decoding was given. |
545f34cf | 2551 | if test "${enable_prompt_string_decoding+set}" = set; then |
d3ad40de CR |
2552 | enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval |
2553 | fi | |
2554 | ||
dd4f3dd8 | 2555 | @%:@ Check whether --enable-readline was given. |
545f34cf | 2556 | if test "${enable_readline+set}" = set; then |
d3ad40de CR |
2557 | enableval=$enable_readline; opt_readline=$enableval |
2558 | fi | |
2559 | ||
dd4f3dd8 | 2560 | @%:@ Check whether --enable-restricted was given. |
545f34cf | 2561 | if test "${enable_restricted+set}" = set; then |
d3ad40de CR |
2562 | enableval=$enable_restricted; opt_restricted=$enableval |
2563 | fi | |
2564 | ||
dd4f3dd8 | 2565 | @%:@ Check whether --enable-select was given. |
545f34cf | 2566 | if test "${enable_select+set}" = set; then |
d3ad40de CR |
2567 | enableval=$enable_select; opt_select=$enableval |
2568 | fi | |
2569 | ||
dd4f3dd8 | 2570 | @%:@ Check whether --enable-separate-helpfiles was given. |
545f34cf | 2571 | if test "${enable_separate_helpfiles+set}" = set; then |
d3ad40de CR |
2572 | enableval=$enable_separate_helpfiles; opt_separate_help=$enableval |
2573 | fi | |
2574 | ||
dd4f3dd8 | 2575 | @%:@ Check whether --enable-single-help-strings was given. |
01ed5ba4 | 2576 | if test "${enable_single_help_strings+set}" = set; then |
d3ad40de CR |
2577 | enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval |
2578 | fi | |
2579 | ||
dd4f3dd8 | 2580 | @%:@ Check whether --enable-strict-posix-default was given. |
7790f917 | 2581 | if test "${enable_strict_posix_default+set}" = set; then |
d3ad40de CR |
2582 | enableval=$enable_strict_posix_default; opt_strict_posix=$enableval |
2583 | fi | |
2584 | ||
dd4f3dd8 | 2585 | @%:@ Check whether --enable-usg-echo-default was given. |
545f34cf | 2586 | if test "${enable_usg_echo_default+set}" = set; then |
d3ad40de CR |
2587 | enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval |
2588 | fi | |
2589 | ||
dd4f3dd8 | 2590 | @%:@ Check whether --enable-xpg-echo-default was given. |
545f34cf | 2591 | if test "${enable_xpg_echo_default+set}" = set; then |
d3ad40de CR |
2592 | enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval |
2593 | fi | |
545f34cf | 2594 | |
d3ad40de | 2595 | |
dd4f3dd8 | 2596 | @%:@ Check whether --enable-mem-scramble was given. |
545f34cf | 2597 | if test "${enable_mem_scramble+set}" = set; then |
d3ad40de CR |
2598 | enableval=$enable_mem_scramble; opt_memscramble=$enableval |
2599 | fi | |
2600 | ||
dd4f3dd8 | 2601 | @%:@ Check whether --enable-profiling was given. |
545f34cf | 2602 | if test "${enable_profiling+set}" = set; then |
d3ad40de CR |
2603 | enableval=$enable_profiling; opt_profiling=$enableval |
2604 | fi | |
2605 | ||
dd4f3dd8 | 2606 | @%:@ Check whether --enable-static-link was given. |
545f34cf | 2607 | if test "${enable_static_link+set}" = set; then |
d3ad40de CR |
2608 | enableval=$enable_static_link; opt_static_link=$enableval |
2609 | fi | |
2610 | ||
545f34cf CR |
2611 | |
2612 | ||
2613 | ||
2614 | if test $opt_alias = yes; then | |
2615 | cat >>confdefs.h <<\_ACEOF | |
2616 | @%:@define ALIAS 1 | |
2617 | _ACEOF | |
2618 | ||
2619 | fi | |
2620 | if test $opt_dirstack = yes; then | |
2621 | cat >>confdefs.h <<\_ACEOF | |
2622 | @%:@define PUSHD_AND_POPD 1 | |
2623 | _ACEOF | |
2624 | ||
2625 | fi | |
2626 | if test $opt_restricted = yes; then | |
2627 | cat >>confdefs.h <<\_ACEOF | |
2628 | @%:@define RESTRICTED_SHELL 1 | |
2629 | _ACEOF | |
2630 | ||
2631 | fi | |
2632 | if test $opt_process_subst = yes; then | |
2633 | cat >>confdefs.h <<\_ACEOF | |
2634 | @%:@define PROCESS_SUBSTITUTION 1 | |
2635 | _ACEOF | |
2636 | ||
2637 | fi | |
2638 | if test $opt_prompt_decoding = yes; then | |
2639 | cat >>confdefs.h <<\_ACEOF | |
2640 | @%:@define PROMPT_STRING_DECODE 1 | |
2641 | _ACEOF | |
2642 | ||
2643 | fi | |
2644 | if test $opt_select = yes; then | |
2645 | cat >>confdefs.h <<\_ACEOF | |
2646 | @%:@define SELECT_COMMAND 1 | |
2647 | _ACEOF | |
2648 | ||
2649 | fi | |
2650 | if test $opt_help = yes; then | |
2651 | cat >>confdefs.h <<\_ACEOF | |
2652 | @%:@define HELP_BUILTIN 1 | |
2653 | _ACEOF | |
2654 | ||
2655 | fi | |
2656 | if test $opt_array_variables = yes; then | |
2657 | cat >>confdefs.h <<\_ACEOF | |
2658 | @%:@define ARRAY_VARS 1 | |
2659 | _ACEOF | |
2660 | ||
2661 | fi | |
2662 | if test $opt_dparen_arith = yes; then | |
2663 | cat >>confdefs.h <<\_ACEOF | |
2664 | @%:@define DPAREN_ARITHMETIC 1 | |
2665 | _ACEOF | |
2666 | ||
2667 | fi | |
2668 | if test $opt_brace_expansion = yes; then | |
2669 | cat >>confdefs.h <<\_ACEOF | |
2670 | @%:@define BRACE_EXPANSION 1 | |
2671 | _ACEOF | |
2672 | ||
2673 | fi | |
2674 | if test $opt_disabled_builtins = yes; then | |
2675 | cat >>confdefs.h <<\_ACEOF | |
2676 | @%:@define DISABLED_BUILTINS 1 | |
2677 | _ACEOF | |
2678 | ||
2679 | fi | |
2680 | if test $opt_command_timing = yes; then | |
2681 | cat >>confdefs.h <<\_ACEOF | |
2682 | @%:@define COMMAND_TIMING 1 | |
2683 | _ACEOF | |
2684 | ||
2685 | fi | |
2686 | if test $opt_xpg_echo = yes ; then | |
2687 | cat >>confdefs.h <<\_ACEOF | |
2688 | @%:@define DEFAULT_ECHO_TO_XPG 1 | |
2689 | _ACEOF | |
2690 | ||
7790f917 CR |
2691 | fi |
2692 | if test $opt_strict_posix = yes; then | |
2693 | cat >>confdefs.h <<\_ACEOF | |
2694 | @%:@define STRICT_POSIX 1 | |
2695 | _ACEOF | |
2696 | ||
545f34cf CR |
2697 | fi |
2698 | if test $opt_extended_glob = yes ; then | |
2699 | cat >>confdefs.h <<\_ACEOF | |
2700 | @%:@define EXTENDED_GLOB 1 | |
2701 | _ACEOF | |
2702 | ||
2703 | fi | |
2704 | if test $opt_cond_command = yes ; then | |
2705 | cat >>confdefs.h <<\_ACEOF | |
2706 | @%:@define COND_COMMAND 1 | |
2707 | _ACEOF | |
2708 | ||
2709 | fi | |
2710 | if test $opt_cond_regexp = yes ; then | |
2711 | cat >>confdefs.h <<\_ACEOF | |
2712 | @%:@define COND_REGEXP 1 | |
2713 | _ACEOF | |
2714 | ||
09767ff0 CR |
2715 | fi |
2716 | if test $opt_coproc = yes; then | |
2717 | cat >>confdefs.h <<\_ACEOF | |
2718 | @%:@define COPROCESS_SUPPORT 1 | |
2719 | _ACEOF | |
2720 | ||
545f34cf CR |
2721 | fi |
2722 | if test $opt_arith_for_command = yes; then | |
2723 | cat >>confdefs.h <<\_ACEOF | |
2724 | @%:@define ARITH_FOR_COMMAND 1 | |
2725 | _ACEOF | |
2726 | ||
2727 | fi | |
2728 | if test $opt_net_redirs = yes; then | |
2729 | cat >>confdefs.h <<\_ACEOF | |
2730 | @%:@define NETWORK_REDIRECTIONS 1 | |
2731 | _ACEOF | |
2732 | ||
2733 | fi | |
2734 | if test $opt_progcomp = yes; then | |
2735 | cat >>confdefs.h <<\_ACEOF | |
2736 | @%:@define PROGRAMMABLE_COMPLETION 1 | |
2737 | _ACEOF | |
2738 | ||
2739 | fi | |
2740 | if test $opt_multibyte = no; then | |
2741 | cat >>confdefs.h <<\_ACEOF | |
2742 | @%:@define NO_MULTIBYTE_SUPPORT 1 | |
2743 | _ACEOF | |
2744 | ||
2745 | fi | |
2746 | if test $opt_debugger = yes; then | |
2747 | cat >>confdefs.h <<\_ACEOF | |
2748 | @%:@define DEBUGGER 1 | |
2749 | _ACEOF | |
2750 | ||
fdf670ea CR |
2751 | fi |
2752 | if test $opt_casemod_attrs = yes; then | |
2753 | cat >>confdefs.h <<\_ACEOF | |
2754 | @%:@define CASEMOD_ATTRS 1 | |
2755 | _ACEOF | |
2756 | ||
2757 | fi | |
2758 | if test $opt_casemod_expansions = yes; then | |
2759 | cat >>confdefs.h <<\_ACEOF | |
2760 | @%:@define CASEMOD_EXPANSIONS 1 | |
2761 | _ACEOF | |
2762 | ||
545f34cf CR |
2763 | fi |
2764 | ||
2765 | if test $opt_memscramble = yes; then | |
2766 | cat >>confdefs.h <<\_ACEOF | |
2767 | @%:@define MEMSCRAMBLE 1 | |
2768 | _ACEOF | |
2769 | ||
2770 | fi | |
2771 | ||
2772 | if test "$opt_minimal_config" = yes; then | |
2773 | TESTSCRIPT=run-minimal | |
2774 | else | |
2775 | TESTSCRIPT=run-all | |
2776 | fi | |
2777 | ||
2778 | HELPDIR= HELPDIRDEFINE= HELPINSTALL= | |
2779 | if test "$opt_separate_help" != no; then | |
2780 | if test "$opt_separate_help" = "yes" ; then | |
2781 | HELPDIR='${datadir}/bash' | |
2782 | else | |
2783 | HELPDIR=$opt_separate_help | |
2784 | fi | |
2785 | HELPDIRDEFINE='-H ${HELPDIR}' | |
2786 | HELPINSTALL='install-help' | |
2787 | fi | |
01ed5ba4 CR |
2788 | HELPSTRINGS= |
2789 | if test "$opt_single_longdoc_strings" != "yes"; then | |
2790 | HELPSTRINGS='-S' | |
2791 | fi | |
2792 | ||
545f34cf CR |
2793 | |
2794 | ||
2795 | ||
2796 | ||
2797 | ||
2798 | ||
2799 | ||
2800 | ||
2801 | ||
2802 | ||
2803 | ||
2804 | ||
2805 | ||
2806 | ||
2807 | ||
2808 | ||
2809 | ||
2810 | echo "" | |
2811 | echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}" | |
2812 | echo "" | |
2813 | ||
2814 | ac_ext=c | |
2815 | ac_cpp='$CPP $CPPFLAGS' | |
2816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2819 | if test -n "$ac_tool_prefix"; then | |
2820 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2821 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dd4f3dd8 CR |
2822 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2823 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 2824 | if test "${ac_cv_prog_CC+set}" = set; then |
dd4f3dd8 | 2825 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
2826 | else |
2827 | if test -n "$CC"; then | |
2828 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2829 | else | |
2830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2831 | for as_dir in $PATH | |
2832 | do | |
2833 | IFS=$as_save_IFS | |
2834 | test -z "$as_dir" && as_dir=. | |
2835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 2836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 2837 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dd4f3dd8 | 2838 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
2839 | break 2 |
2840 | fi | |
2841 | done | |
2842 | done | |
d3ad40de | 2843 | IFS=$as_save_IFS |
545f34cf CR |
2844 | |
2845 | fi | |
2846 | fi | |
2847 | CC=$ac_cv_prog_CC | |
2848 | if test -n "$CC"; then | |
dd4f3dd8 CR |
2849 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2850 | $as_echo "$CC" >&6; } | |
545f34cf | 2851 | else |
dd4f3dd8 CR |
2852 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2853 | $as_echo "no" >&6; } | |
545f34cf CR |
2854 | fi |
2855 | ||
d3ad40de | 2856 | |
545f34cf CR |
2857 | fi |
2858 | if test -z "$ac_cv_prog_CC"; then | |
2859 | ac_ct_CC=$CC | |
2860 | # Extract the first word of "gcc", so it can be a program name with args. | |
2861 | set dummy gcc; ac_word=$2 | |
dd4f3dd8 CR |
2862 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2863 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 2864 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
dd4f3dd8 | 2865 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
2866 | else |
2867 | if test -n "$ac_ct_CC"; then | |
2868 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2869 | else | |
2870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2871 | for as_dir in $PATH | |
2872 | do | |
2873 | IFS=$as_save_IFS | |
2874 | test -z "$as_dir" && as_dir=. | |
2875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 2876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 2877 | ac_cv_prog_ac_ct_CC="gcc" |
dd4f3dd8 | 2878 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
2879 | break 2 |
2880 | fi | |
2881 | done | |
2882 | done | |
d3ad40de | 2883 | IFS=$as_save_IFS |
545f34cf CR |
2884 | |
2885 | fi | |
2886 | fi | |
2887 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2888 | if test -n "$ac_ct_CC"; then | |
dd4f3dd8 CR |
2889 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2890 | $as_echo "$ac_ct_CC" >&6; } | |
545f34cf | 2891 | else |
dd4f3dd8 CR |
2892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2893 | $as_echo "no" >&6; } | |
545f34cf CR |
2894 | fi |
2895 | ||
d3ad40de CR |
2896 | if test "x$ac_ct_CC" = x; then |
2897 | CC="" | |
2898 | else | |
2899 | case $cross_compiling:$ac_tool_warned in | |
2900 | yes:) | |
76af2125 CR |
2901 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2902 | whose name does not start with the host triplet. If you think this | |
2903 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2904 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2905 | whose name does not start with the host triplet. If you think this | |
2906 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
d3ad40de CR |
2907 | ac_tool_warned=yes ;; |
2908 | esac | |
2909 | CC=$ac_ct_CC | |
2910 | fi | |
545f34cf CR |
2911 | else |
2912 | CC="$ac_cv_prog_CC" | |
2913 | fi | |
2914 | ||
2915 | if test -z "$CC"; then | |
d3ad40de CR |
2916 | if test -n "$ac_tool_prefix"; then |
2917 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
545f34cf | 2918 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd4f3dd8 CR |
2919 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2920 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 2921 | if test "${ac_cv_prog_CC+set}" = set; then |
dd4f3dd8 | 2922 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
2923 | else |
2924 | if test -n "$CC"; then | |
2925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2926 | else | |
2927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2928 | for as_dir in $PATH | |
2929 | do | |
2930 | IFS=$as_save_IFS | |
2931 | test -z "$as_dir" && as_dir=. | |
2932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 2933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 2934 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
dd4f3dd8 | 2935 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
2936 | break 2 |
2937 | fi | |
2938 | done | |
2939 | done | |
d3ad40de | 2940 | IFS=$as_save_IFS |
545f34cf CR |
2941 | |
2942 | fi | |
2943 | fi | |
2944 | CC=$ac_cv_prog_CC | |
2945 | if test -n "$CC"; then | |
dd4f3dd8 CR |
2946 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2947 | $as_echo "$CC" >&6; } | |
28157acd | 2948 | else |
dd4f3dd8 CR |
2949 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2950 | $as_echo "no" >&6; } | |
28157acd CR |
2951 | fi |
2952 | ||
28157acd | 2953 | |
d3ad40de | 2954 | fi |
545f34cf CR |
2955 | fi |
2956 | if test -z "$CC"; then | |
2957 | # Extract the first word of "cc", so it can be a program name with args. | |
2958 | set dummy cc; ac_word=$2 | |
dd4f3dd8 CR |
2959 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2960 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 2961 | if test "${ac_cv_prog_CC+set}" = set; then |
dd4f3dd8 | 2962 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
2963 | else |
2964 | if test -n "$CC"; then | |
2965 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2966 | else | |
2967 | ac_prog_rejected=no | |
2968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2969 | for as_dir in $PATH | |
2970 | do | |
2971 | IFS=$as_save_IFS | |
2972 | test -z "$as_dir" && as_dir=. | |
2973 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 2974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf CR |
2975 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2976 | ac_prog_rejected=yes | |
2977 | continue | |
2978 | fi | |
2979 | ac_cv_prog_CC="cc" | |
dd4f3dd8 | 2980 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
2981 | break 2 |
2982 | fi | |
2983 | done | |
2984 | done | |
d3ad40de | 2985 | IFS=$as_save_IFS |
545f34cf CR |
2986 | |
2987 | if test $ac_prog_rejected = yes; then | |
2988 | # We found a bogon in the path, so make sure we never use it. | |
2989 | set dummy $ac_cv_prog_CC | |
2990 | shift | |
2991 | if test $@%:@ != 0; then | |
2992 | # We chose a different compiler from the bogus one. | |
2993 | # However, it has the same basename, so the bogon will be chosen | |
2994 | # first if we set CC to just the basename; use the full file name. | |
2995 | shift | |
2996 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2997 | fi | |
2998 | fi | |
2999 | fi | |
3000 | fi | |
3001 | CC=$ac_cv_prog_CC | |
3002 | if test -n "$CC"; then | |
dd4f3dd8 CR |
3003 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3004 | $as_echo "$CC" >&6; } | |
545f34cf | 3005 | else |
dd4f3dd8 CR |
3006 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3007 | $as_echo "no" >&6; } | |
545f34cf CR |
3008 | fi |
3009 | ||
d3ad40de | 3010 | |
545f34cf CR |
3011 | fi |
3012 | if test -z "$CC"; then | |
3013 | if test -n "$ac_tool_prefix"; then | |
d3ad40de | 3014 | for ac_prog in cl.exe |
545f34cf CR |
3015 | do |
3016 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3017 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
dd4f3dd8 CR |
3018 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3019 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 3020 | if test "${ac_cv_prog_CC+set}" = set; then |
dd4f3dd8 | 3021 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
3022 | else |
3023 | if test -n "$CC"; then | |
3024 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3025 | else | |
3026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3027 | for as_dir in $PATH | |
3028 | do | |
3029 | IFS=$as_save_IFS | |
3030 | test -z "$as_dir" && as_dir=. | |
3031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 3032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 3033 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
dd4f3dd8 | 3034 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
3035 | break 2 |
3036 | fi | |
3037 | done | |
3038 | done | |
d3ad40de | 3039 | IFS=$as_save_IFS |
545f34cf CR |
3040 | |
3041 | fi | |
3042 | fi | |
3043 | CC=$ac_cv_prog_CC | |
3044 | if test -n "$CC"; then | |
dd4f3dd8 CR |
3045 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3046 | $as_echo "$CC" >&6; } | |
545f34cf | 3047 | else |
dd4f3dd8 CR |
3048 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3049 | $as_echo "no" >&6; } | |
545f34cf CR |
3050 | fi |
3051 | ||
d3ad40de | 3052 | |
545f34cf CR |
3053 | test -n "$CC" && break |
3054 | done | |
3055 | fi | |
3056 | if test -z "$CC"; then | |
3057 | ac_ct_CC=$CC | |
d3ad40de | 3058 | for ac_prog in cl.exe |
545f34cf CR |
3059 | do |
3060 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3061 | set dummy $ac_prog; ac_word=$2 | |
dd4f3dd8 CR |
3062 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3063 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 3064 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
dd4f3dd8 | 3065 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
3066 | else |
3067 | if test -n "$ac_ct_CC"; then | |
3068 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3069 | else | |
3070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3071 | for as_dir in $PATH | |
3072 | do | |
3073 | IFS=$as_save_IFS | |
3074 | test -z "$as_dir" && as_dir=. | |
3075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 3076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 3077 | ac_cv_prog_ac_ct_CC="$ac_prog" |
dd4f3dd8 | 3078 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
3079 | break 2 |
3080 | fi | |
3081 | done | |
3082 | done | |
d3ad40de | 3083 | IFS=$as_save_IFS |
545f34cf CR |
3084 | |
3085 | fi | |
3086 | fi | |
3087 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3088 | if test -n "$ac_ct_CC"; then | |
dd4f3dd8 CR |
3089 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3090 | $as_echo "$ac_ct_CC" >&6; } | |
545f34cf | 3091 | else |
dd4f3dd8 CR |
3092 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3093 | $as_echo "no" >&6; } | |
545f34cf CR |
3094 | fi |
3095 | ||
d3ad40de | 3096 | |
545f34cf CR |
3097 | test -n "$ac_ct_CC" && break |
3098 | done | |
3099 | ||
d3ad40de CR |
3100 | if test "x$ac_ct_CC" = x; then |
3101 | CC="" | |
3102 | else | |
3103 | case $cross_compiling:$ac_tool_warned in | |
3104 | yes:) | |
76af2125 CR |
3105 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3106 | whose name does not start with the host triplet. If you think this | |
3107 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3108 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3109 | whose name does not start with the host triplet. If you think this | |
3110 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
d3ad40de CR |
3111 | ac_tool_warned=yes ;; |
3112 | esac | |
3113 | CC=$ac_ct_CC | |
3114 | fi | |
545f34cf CR |
3115 | fi |
3116 | ||
3117 | fi | |
3118 | ||
3119 | ||
76af2125 | 3120 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
545f34cf | 3121 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 3122 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
545f34cf | 3123 | See \`config.log' for more details." >&2;} |
76af2125 | 3124 | { (exit 1); exit 1; }; } |
545f34cf CR |
3125 | |
3126 | # Provide some information about the compiler. | |
dd4f3dd8 CR |
3127 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3128 | set X $ac_compile | |
3129 | ac_compiler=$2 | |
d3ad40de CR |
3130 | { (ac_try="$ac_compiler --version >&5" |
3131 | case "(($ac_try" in | |
3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3133 | *) ac_try_echo=$ac_try;; | |
3134 | esac | |
dd4f3dd8 CR |
3135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3136 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3137 | (eval "$ac_compiler --version >&5") 2>&5 |
545f34cf | 3138 | ac_status=$? |
dd4f3dd8 | 3139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 3140 | (exit $ac_status); } |
d3ad40de CR |
3141 | { (ac_try="$ac_compiler -v >&5" |
3142 | case "(($ac_try" in | |
3143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3144 | *) ac_try_echo=$ac_try;; | |
3145 | esac | |
dd4f3dd8 CR |
3146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3147 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3148 | (eval "$ac_compiler -v >&5") 2>&5 |
545f34cf | 3149 | ac_status=$? |
dd4f3dd8 | 3150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 3151 | (exit $ac_status); } |
d3ad40de CR |
3152 | { (ac_try="$ac_compiler -V >&5" |
3153 | case "(($ac_try" in | |
3154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3155 | *) ac_try_echo=$ac_try;; | |
3156 | esac | |
dd4f3dd8 CR |
3157 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3158 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3159 | (eval "$ac_compiler -V >&5") 2>&5 |
545f34cf | 3160 | ac_status=$? |
dd4f3dd8 | 3161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
3162 | (exit $ac_status); } |
3163 | ||
3164 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3165 | /* confdefs.h. */ |
3166 | _ACEOF | |
3167 | cat confdefs.h >>conftest.$ac_ext | |
3168 | cat >>conftest.$ac_ext <<_ACEOF | |
3169 | /* end confdefs.h. */ | |
3170 | ||
3171 | int | |
3172 | main () | |
3173 | { | |
3174 | ||
3175 | ; | |
3176 | return 0; | |
3177 | } | |
3178 | _ACEOF | |
3179 | ac_clean_files_save=$ac_clean_files | |
dd4f3dd8 | 3180 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
545f34cf CR |
3181 | # Try to create an executable without -o first, disregard a.out. |
3182 | # It will help us diagnose broken compilers, and finding out an intuition | |
3183 | # of exeext. | |
dd4f3dd8 CR |
3184 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3185 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3186 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3187 | ||
3188 | # The possible output files: | |
3189 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3190 | ||
d3ad40de CR |
3191 | ac_rmfiles= |
3192 | for ac_file in $ac_files | |
3193 | do | |
3194 | case $ac_file in | |
dd4f3dd8 | 3195 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d3ad40de CR |
3196 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3197 | esac | |
3198 | done | |
3199 | rm -f $ac_rmfiles | |
3200 | ||
3201 | if { (ac_try="$ac_link_default" | |
3202 | case "(($ac_try" in | |
3203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3204 | *) ac_try_echo=$ac_try;; | |
3205 | esac | |
dd4f3dd8 CR |
3206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3207 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3208 | (eval "$ac_link_default") 2>&5 |
545f34cf | 3209 | ac_status=$? |
dd4f3dd8 | 3210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 3211 | (exit $ac_status); }; then |
d3ad40de CR |
3212 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3213 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3214 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3215 | # so that the user can short-circuit this test for compilers unknown to | |
3216 | # Autoconf. | |
dd4f3dd8 | 3217 | for ac_file in $ac_files '' |
545f34cf CR |
3218 | do |
3219 | test -f "$ac_file" || continue | |
3220 | case $ac_file in | |
dd4f3dd8 | 3221 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
a82a04b3 | 3222 | ;; |
545f34cf | 3223 | [ab].out ) |
a82a04b3 CR |
3224 | # We found the default executable, but exeext='' is most |
3225 | # certainly right. | |
3226 | break;; | |
545f34cf | 3227 | *.* ) |
d3ad40de CR |
3228 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3229 | then :; else | |
3230 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3231 | fi | |
3232 | # We set ac_cv_exeext here because the later test for it is not | |
3233 | # safe: cross compilers may not add the suffix if given an `-o' | |
3234 | # argument, so we may need to know it at that point already. | |
3235 | # Even if this section looks crufty: it has the advantage of | |
3236 | # actually working. | |
a82a04b3 | 3237 | break;; |
545f34cf | 3238 | * ) |
a82a04b3 | 3239 | break;; |
545f34cf CR |
3240 | esac |
3241 | done | |
d3ad40de CR |
3242 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3243 | ||
545f34cf | 3244 | else |
dd4f3dd8 CR |
3245 | ac_file='' |
3246 | fi | |
3247 | ||
3248 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3249 | $as_echo "$ac_file" >&6; } | |
3250 | if test -z "$ac_file"; then | |
3251 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
3252 | sed 's/^/| /' conftest.$ac_ext >&5 |
3253 | ||
dd4f3dd8 | 3254 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
545f34cf | 3255 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 3256 | $as_echo "$as_me: error: C compiler cannot create executables |
545f34cf | 3257 | See \`config.log' for more details." >&2;} |
76af2125 | 3258 | { (exit 77); exit 77; }; } |
545f34cf CR |
3259 | fi |
3260 | ||
3261 | ac_exeext=$ac_cv_exeext | |
545f34cf | 3262 | |
d3ad40de | 3263 | # Check that the compiler produces executables we can run. If not, either |
545f34cf | 3264 | # the compiler is broken, or we cross compile. |
dd4f3dd8 CR |
3265 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3266 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
545f34cf CR |
3267 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3268 | # If not cross compiling, check that we can run a simple program. | |
3269 | if test "$cross_compiling" != yes; then | |
3270 | if { ac_try='./$ac_file' | |
d3ad40de CR |
3271 | { (case "(($ac_try" in |
3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3273 | *) ac_try_echo=$ac_try;; | |
3274 | esac | |
dd4f3dd8 CR |
3275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3276 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3277 | (eval "$ac_try") 2>&5 |
545f34cf | 3278 | ac_status=$? |
dd4f3dd8 | 3279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
3280 | (exit $ac_status); }; }; then |
3281 | cross_compiling=no | |
3282 | else | |
3283 | if test "$cross_compiling" = maybe; then | |
3284 | cross_compiling=yes | |
3285 | else | |
76af2125 | 3286 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
545f34cf CR |
3287 | If you meant to cross compile, use \`--host'. |
3288 | See \`config.log' for more details." >&5 | |
dd4f3dd8 | 3289 | $as_echo "$as_me: error: cannot run C compiled programs. |
545f34cf CR |
3290 | If you meant to cross compile, use \`--host'. |
3291 | See \`config.log' for more details." >&2;} | |
76af2125 | 3292 | { (exit 1); exit 1; }; } |
545f34cf CR |
3293 | fi |
3294 | fi | |
3295 | fi | |
dd4f3dd8 CR |
3296 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3297 | $as_echo "yes" >&6; } | |
545f34cf | 3298 | |
dd4f3dd8 | 3299 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
545f34cf | 3300 | ac_clean_files=$ac_clean_files_save |
d3ad40de | 3301 | # Check that the compiler produces executables we can run. If not, either |
545f34cf | 3302 | # the compiler is broken, or we cross compile. |
dd4f3dd8 CR |
3303 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3304 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3305 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3306 | $as_echo "$cross_compiling" >&6; } | |
d3ad40de | 3307 | |
dd4f3dd8 CR |
3308 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3309 | $as_echo_n "checking for suffix of executables... " >&6; } | |
d3ad40de CR |
3310 | if { (ac_try="$ac_link" |
3311 | case "(($ac_try" in | |
3312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3313 | *) ac_try_echo=$ac_try;; | |
3314 | esac | |
dd4f3dd8 CR |
3315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3316 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3317 | (eval "$ac_link") 2>&5 |
545f34cf | 3318 | ac_status=$? |
dd4f3dd8 | 3319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
3320 | (exit $ac_status); }; then |
3321 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3322 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3323 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3324 | # `rm'. | |
3325 | for ac_file in conftest.exe conftest conftest.*; do | |
3326 | test -f "$ac_file" || continue | |
3327 | case $ac_file in | |
dd4f3dd8 | 3328 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
545f34cf | 3329 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a82a04b3 | 3330 | break;; |
545f34cf CR |
3331 | * ) break;; |
3332 | esac | |
3333 | done | |
3334 | else | |
76af2125 | 3335 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
545f34cf | 3336 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 3337 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
545f34cf | 3338 | See \`config.log' for more details." >&2;} |
76af2125 | 3339 | { (exit 1); exit 1; }; } |
545f34cf CR |
3340 | fi |
3341 | ||
3342 | rm -f conftest$ac_cv_exeext | |
dd4f3dd8 CR |
3343 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3344 | $as_echo "$ac_cv_exeext" >&6; } | |
545f34cf CR |
3345 | |
3346 | rm -f conftest.$ac_ext | |
3347 | EXEEXT=$ac_cv_exeext | |
3348 | ac_exeext=$EXEEXT | |
dd4f3dd8 CR |
3349 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3350 | $as_echo_n "checking for suffix of object files... " >&6; } | |
545f34cf | 3351 | if test "${ac_cv_objext+set}" = set; then |
dd4f3dd8 | 3352 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
3353 | else |
3354 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3355 | /* confdefs.h. */ |
3356 | _ACEOF | |
3357 | cat confdefs.h >>conftest.$ac_ext | |
3358 | cat >>conftest.$ac_ext <<_ACEOF | |
3359 | /* end confdefs.h. */ | |
3360 | ||
3361 | int | |
3362 | main () | |
3363 | { | |
3364 | ||
3365 | ; | |
3366 | return 0; | |
3367 | } | |
3368 | _ACEOF | |
3369 | rm -f conftest.o conftest.obj | |
d3ad40de CR |
3370 | if { (ac_try="$ac_compile" |
3371 | case "(($ac_try" in | |
3372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3373 | *) ac_try_echo=$ac_try;; | |
3374 | esac | |
dd4f3dd8 CR |
3375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3376 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3377 | (eval "$ac_compile") 2>&5 |
545f34cf | 3378 | ac_status=$? |
dd4f3dd8 | 3379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 3380 | (exit $ac_status); }; then |
d3ad40de CR |
3381 | for ac_file in conftest.o conftest.obj conftest.*; do |
3382 | test -f "$ac_file" || continue; | |
545f34cf | 3383 | case $ac_file in |
dd4f3dd8 | 3384 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
545f34cf CR |
3385 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3386 | break;; | |
3387 | esac | |
3388 | done | |
3389 | else | |
dd4f3dd8 | 3390 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
3392 | ||
dd4f3dd8 | 3393 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
545f34cf | 3394 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 3395 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
545f34cf | 3396 | See \`config.log' for more details." >&2;} |
76af2125 | 3397 | { (exit 1); exit 1; }; } |
545f34cf CR |
3398 | fi |
3399 | ||
3400 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3401 | fi | |
dd4f3dd8 CR |
3402 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3403 | $as_echo "$ac_cv_objext" >&6; } | |
545f34cf CR |
3404 | OBJEXT=$ac_cv_objext |
3405 | ac_objext=$OBJEXT | |
dd4f3dd8 CR |
3406 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3407 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
545f34cf | 3408 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
dd4f3dd8 | 3409 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
3410 | else |
3411 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3412 | /* confdefs.h. */ |
3413 | _ACEOF | |
3414 | cat confdefs.h >>conftest.$ac_ext | |
3415 | cat >>conftest.$ac_ext <<_ACEOF | |
3416 | /* end confdefs.h. */ | |
3417 | ||
3418 | int | |
3419 | main () | |
3420 | { | |
3421 | #ifndef __GNUC__ | |
3422 | choke me | |
3423 | #endif | |
3424 | ||
3425 | ; | |
3426 | return 0; | |
3427 | } | |
3428 | _ACEOF | |
3429 | rm -f conftest.$ac_objext | |
d3ad40de CR |
3430 | if { (ac_try="$ac_compile" |
3431 | case "(($ac_try" in | |
3432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3433 | *) ac_try_echo=$ac_try;; | |
3434 | esac | |
dd4f3dd8 CR |
3435 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3436 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3437 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 3438 | ac_status=$? |
a82a04b3 CR |
3439 | grep -v '^ *+' conftest.er1 >conftest.err |
3440 | rm -f conftest.er1 | |
3441 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3443 | (exit $ac_status); } && { | |
3444 | test -z "$ac_c_werror_flag" || | |
3445 | test ! -s conftest.err | |
3446 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
3447 | ac_compiler_gnu=yes |
3448 | else | |
dd4f3dd8 | 3449 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3450 | sed 's/^/| /' conftest.$ac_ext >&5 |
3451 | ||
d3ad40de | 3452 | ac_compiler_gnu=no |
545f34cf | 3453 | fi |
d3ad40de CR |
3454 | |
3455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
3456 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3457 | ||
3458 | fi | |
dd4f3dd8 CR |
3459 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3460 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3461 | if test $ac_compiler_gnu = yes; then | |
3462 | GCC=yes | |
3463 | else | |
3464 | GCC= | |
3465 | fi | |
545f34cf CR |
3466 | ac_test_CFLAGS=${CFLAGS+set} |
3467 | ac_save_CFLAGS=$CFLAGS | |
dd4f3dd8 CR |
3468 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3469 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
545f34cf | 3470 | if test "${ac_cv_prog_cc_g+set}" = set; then |
dd4f3dd8 | 3471 | $as_echo_n "(cached) " >&6 |
545f34cf | 3472 | else |
d3ad40de CR |
3473 | ac_save_c_werror_flag=$ac_c_werror_flag |
3474 | ac_c_werror_flag=yes | |
3475 | ac_cv_prog_cc_g=no | |
3476 | CFLAGS="-g" | |
3477 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3478 | /* confdefs.h. */ |
3479 | _ACEOF | |
3480 | cat confdefs.h >>conftest.$ac_ext | |
3481 | cat >>conftest.$ac_ext <<_ACEOF | |
3482 | /* end confdefs.h. */ | |
3483 | ||
3484 | int | |
3485 | main () | |
3486 | { | |
3487 | ||
3488 | ; | |
3489 | return 0; | |
3490 | } | |
3491 | _ACEOF | |
3492 | rm -f conftest.$ac_objext | |
d3ad40de CR |
3493 | if { (ac_try="$ac_compile" |
3494 | case "(($ac_try" in | |
3495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3496 | *) ac_try_echo=$ac_try;; | |
3497 | esac | |
dd4f3dd8 CR |
3498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3499 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3500 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 3501 | ac_status=$? |
a82a04b3 CR |
3502 | grep -v '^ *+' conftest.er1 >conftest.err |
3503 | rm -f conftest.er1 | |
3504 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3506 | (exit $ac_status); } && { | |
3507 | test -z "$ac_c_werror_flag" || | |
3508 | test ! -s conftest.err | |
3509 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
3510 | ac_cv_prog_cc_g=yes |
3511 | else | |
dd4f3dd8 | 3512 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3513 | sed 's/^/| /' conftest.$ac_ext >&5 |
3514 | ||
d3ad40de CR |
3515 | CFLAGS="" |
3516 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3517 | /* confdefs.h. */ |
3518 | _ACEOF | |
3519 | cat confdefs.h >>conftest.$ac_ext | |
3520 | cat >>conftest.$ac_ext <<_ACEOF | |
3521 | /* end confdefs.h. */ | |
28157acd | 3522 | |
28157acd CR |
3523 | int |
3524 | main () | |
3525 | { | |
d3ad40de | 3526 | |
28157acd CR |
3527 | ; |
3528 | return 0; | |
3529 | } | |
3530 | _ACEOF | |
d3ad40de CR |
3531 | rm -f conftest.$ac_objext |
3532 | if { (ac_try="$ac_compile" | |
3533 | case "(($ac_try" in | |
3534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3535 | *) ac_try_echo=$ac_try;; | |
3536 | esac | |
dd4f3dd8 CR |
3537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3538 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3539 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 3540 | ac_status=$? |
a82a04b3 CR |
3541 | grep -v '^ *+' conftest.er1 >conftest.err |
3542 | rm -f conftest.er1 | |
3543 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3545 | (exit $ac_status); } && { | |
3546 | test -z "$ac_c_werror_flag" || | |
3547 | test ! -s conftest.err | |
3548 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 3549 | : |
545f34cf | 3550 | else |
dd4f3dd8 | 3551 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3552 | sed 's/^/| /' conftest.$ac_ext >&5 |
3553 | ||
d3ad40de CR |
3554 | ac_c_werror_flag=$ac_save_c_werror_flag |
3555 | CFLAGS="-g" | |
3556 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3557 | /* confdefs.h. */ |
3558 | _ACEOF | |
3559 | cat confdefs.h >>conftest.$ac_ext | |
3560 | cat >>conftest.$ac_ext <<_ACEOF | |
3561 | /* end confdefs.h. */ | |
d3ad40de | 3562 | |
545f34cf CR |
3563 | int |
3564 | main () | |
3565 | { | |
d3ad40de | 3566 | |
545f34cf CR |
3567 | ; |
3568 | return 0; | |
3569 | } | |
3570 | _ACEOF | |
3571 | rm -f conftest.$ac_objext | |
d3ad40de CR |
3572 | if { (ac_try="$ac_compile" |
3573 | case "(($ac_try" in | |
3574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3575 | *) ac_try_echo=$ac_try;; | |
3576 | esac | |
dd4f3dd8 CR |
3577 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3578 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3579 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 3580 | ac_status=$? |
a82a04b3 CR |
3581 | grep -v '^ *+' conftest.er1 >conftest.err |
3582 | rm -f conftest.er1 | |
3583 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3585 | (exit $ac_status); } && { | |
3586 | test -z "$ac_c_werror_flag" || | |
3587 | test ! -s conftest.err | |
3588 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 3589 | ac_cv_prog_cc_g=yes |
545f34cf | 3590 | else |
dd4f3dd8 | 3591 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3592 | sed 's/^/| /' conftest.$ac_ext >&5 |
3593 | ||
d3ad40de | 3594 | |
9d6e5e30 | 3595 | fi |
d3ad40de CR |
3596 | |
3597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3598 | fi | |
3599 | ||
3600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3601 | fi | |
3602 | ||
3603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3604 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3605 | fi | |
dd4f3dd8 CR |
3606 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3607 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d3ad40de CR |
3608 | if test "$ac_test_CFLAGS" = set; then |
3609 | CFLAGS=$ac_save_CFLAGS | |
3610 | elif test $ac_cv_prog_cc_g = yes; then | |
3611 | if test "$GCC" = yes; then | |
3612 | CFLAGS="-g -O2" | |
3613 | else | |
3614 | CFLAGS="-g" | |
3615 | fi | |
3616 | else | |
3617 | if test "$GCC" = yes; then | |
3618 | CFLAGS="-O2" | |
3619 | else | |
3620 | CFLAGS= | |
3621 | fi | |
3622 | fi | |
dd4f3dd8 CR |
3623 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3624 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d3ad40de | 3625 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
dd4f3dd8 | 3626 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
3627 | else |
3628 | ac_cv_prog_cc_c89=no | |
3629 | ac_save_CC=$CC | |
3630 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3631 | /* confdefs.h. */ |
3632 | _ACEOF | |
3633 | cat confdefs.h >>conftest.$ac_ext | |
3634 | cat >>conftest.$ac_ext <<_ACEOF | |
3635 | /* end confdefs.h. */ | |
d3ad40de CR |
3636 | #include <stdarg.h> |
3637 | #include <stdio.h> | |
3638 | #include <sys/types.h> | |
3639 | #include <sys/stat.h> | |
3640 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3641 | struct buf { int x; }; | |
3642 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3643 | static char *e (p, i) | |
3644 | char **p; | |
3645 | int i; | |
3646 | { | |
3647 | return p[i]; | |
3648 | } | |
3649 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3650 | { | |
3651 | char *s; | |
3652 | va_list v; | |
3653 | va_start (v,p); | |
3654 | s = g (p, va_arg (v,int)); | |
3655 | va_end (v); | |
3656 | return s; | |
3657 | } | |
3658 | ||
3659 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3660 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3661 | These don't provoke an error unfortunately, instead are silently treated | |
3662 | as 'x'. The following induces an error, until -std is added to get | |
3663 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3664 | array size at least. It's necessary to write '\x00'==0 to get something | |
3665 | that's true only with -std. */ | |
3666 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3667 | ||
3668 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3669 | inside strings and character constants. */ | |
3670 | #define FOO(x) 'x' | |
3671 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3672 | ||
3673 | int test (int i, double x); | |
3674 | struct s1 {int (*f) (int a);}; | |
3675 | struct s2 {int (*f) (double a);}; | |
3676 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3677 | int argc; | |
3678 | char **argv; | |
545f34cf CR |
3679 | int |
3680 | main () | |
3681 | { | |
d3ad40de | 3682 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
545f34cf CR |
3683 | ; |
3684 | return 0; | |
3685 | } | |
3686 | _ACEOF | |
d3ad40de CR |
3687 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3688 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3689 | do | |
3690 | CC="$ac_save_CC $ac_arg" | |
3691 | rm -f conftest.$ac_objext | |
3692 | if { (ac_try="$ac_compile" | |
3693 | case "(($ac_try" in | |
3694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3695 | *) ac_try_echo=$ac_try;; | |
3696 | esac | |
dd4f3dd8 CR |
3697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3698 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3699 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 3700 | ac_status=$? |
a82a04b3 CR |
3701 | grep -v '^ *+' conftest.er1 >conftest.err |
3702 | rm -f conftest.er1 | |
3703 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3705 | (exit $ac_status); } && { | |
3706 | test -z "$ac_c_werror_flag" || | |
3707 | test ! -s conftest.err | |
3708 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 3709 | ac_cv_prog_cc_c89=$ac_arg |
545f34cf | 3710 | else |
dd4f3dd8 | 3711 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3712 | sed 's/^/| /' conftest.$ac_ext >&5 |
3713 | ||
d3ad40de | 3714 | |
545f34cf | 3715 | fi |
d3ad40de CR |
3716 | |
3717 | rm -f core conftest.err conftest.$ac_objext | |
3718 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
545f34cf | 3719 | done |
d3ad40de CR |
3720 | rm -f conftest.$ac_ext |
3721 | CC=$ac_save_CC | |
3722 | ||
545f34cf | 3723 | fi |
d3ad40de CR |
3724 | # AC_CACHE_VAL |
3725 | case "x$ac_cv_prog_cc_c89" in | |
3726 | x) | |
dd4f3dd8 CR |
3727 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3728 | $as_echo "none needed" >&6; } ;; | |
d3ad40de | 3729 | xno) |
dd4f3dd8 CR |
3730 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3731 | $as_echo "unsupported" >&6; } ;; | |
d3ad40de CR |
3732 | *) |
3733 | CC="$CC $ac_cv_prog_cc_c89" | |
dd4f3dd8 CR |
3734 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3735 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d3ad40de | 3736 | esac |
545f34cf | 3737 | |
545f34cf | 3738 | |
545f34cf CR |
3739 | ac_ext=c |
3740 | ac_cpp='$CPP $CPPFLAGS' | |
3741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3744 | ||
3745 | ||
3746 | ||
3747 | ||
dd4f3dd8 CR |
3748 | { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
3749 | $as_echo_n "checking for strerror in -lcposix... " >&6; } | |
545f34cf | 3750 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
dd4f3dd8 | 3751 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
3752 | else |
3753 | ac_check_lib_save_LIBS=$LIBS | |
3754 | LIBS="-lcposix $LIBS" | |
3755 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3756 | /* confdefs.h. */ |
3757 | _ACEOF | |
3758 | cat confdefs.h >>conftest.$ac_ext | |
3759 | cat >>conftest.$ac_ext <<_ACEOF | |
3760 | /* end confdefs.h. */ | |
3761 | ||
d3ad40de CR |
3762 | /* Override any GCC internal prototype to avoid an error. |
3763 | Use char because int might match the return type of a GCC | |
3764 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
3765 | #ifdef __cplusplus |
3766 | extern "C" | |
3767 | #endif | |
545f34cf CR |
3768 | char strerror (); |
3769 | int | |
3770 | main () | |
3771 | { | |
d3ad40de | 3772 | return strerror (); |
545f34cf CR |
3773 | ; |
3774 | return 0; | |
3775 | } | |
3776 | _ACEOF | |
3777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
3778 | if { (ac_try="$ac_link" |
3779 | case "(($ac_try" in | |
3780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3781 | *) ac_try_echo=$ac_try;; | |
3782 | esac | |
dd4f3dd8 CR |
3783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3784 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3785 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 3786 | ac_status=$? |
a82a04b3 CR |
3787 | grep -v '^ *+' conftest.er1 >conftest.err |
3788 | rm -f conftest.er1 | |
3789 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3791 | (exit $ac_status); } && { | |
3792 | test -z "$ac_c_werror_flag" || | |
3793 | test ! -s conftest.err | |
3794 | } && test -s conftest$ac_exeext && { | |
3795 | test "$cross_compiling" = yes || | |
3796 | $as_test_x conftest$ac_exeext | |
3797 | }; then | |
545f34cf CR |
3798 | ac_cv_lib_cposix_strerror=yes |
3799 | else | |
dd4f3dd8 | 3800 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3801 | sed 's/^/| /' conftest.$ac_ext >&5 |
3802 | ||
d3ad40de | 3803 | ac_cv_lib_cposix_strerror=no |
545f34cf | 3804 | fi |
d3ad40de | 3805 | |
dd4f3dd8 CR |
3806 | rm -rf conftest.dSYM |
3807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 3808 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
3809 | LIBS=$ac_check_lib_save_LIBS |
3810 | fi | |
dd4f3dd8 CR |
3811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
3812 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } | |
76af2125 | 3813 | if test $ac_cv_lib_cposix_strerror = yes; then |
545f34cf CR |
3814 | LIBS="$LIBS -lcposix" |
3815 | fi | |
3816 | ||
3817 | ||
3818 | ||
3819 | ac_ext=c | |
3820 | ac_cpp='$CPP $CPPFLAGS' | |
3821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dd4f3dd8 CR |
3824 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3825 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
545f34cf CR |
3826 | # On Suns, sometimes $CPP names a directory. |
3827 | if test -n "$CPP" && test -d "$CPP"; then | |
3828 | CPP= | |
3829 | fi | |
3830 | if test -z "$CPP"; then | |
3831 | if test "${ac_cv_prog_CPP+set}" = set; then | |
dd4f3dd8 | 3832 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
3833 | else |
3834 | # Double quotes because CPP needs to be expanded | |
3835 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3836 | do | |
3837 | ac_preproc_ok=false | |
3838 | for ac_c_preproc_warn_flag in '' yes | |
3839 | do | |
3840 | # Use a header file that comes with gcc, so configuring glibc | |
3841 | # with a fresh cross-compiler works. | |
3842 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3843 | # <limits.h> exists even on freestanding compilers. | |
3844 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3845 | # not just through cpp. "Syntax error" is here to catch this case. | |
3846 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3847 | /* confdefs.h. */ |
3848 | _ACEOF | |
3849 | cat confdefs.h >>conftest.$ac_ext | |
3850 | cat >>conftest.$ac_ext <<_ACEOF | |
3851 | /* end confdefs.h. */ | |
3852 | @%:@ifdef __STDC__ | |
3853 | @%:@ include <limits.h> | |
3854 | @%:@else | |
3855 | @%:@ include <assert.h> | |
3856 | @%:@endif | |
a82a04b3 | 3857 | Syntax error |
545f34cf | 3858 | _ACEOF |
d3ad40de CR |
3859 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3860 | case "(($ac_try" in | |
3861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3862 | *) ac_try_echo=$ac_try;; | |
3863 | esac | |
dd4f3dd8 CR |
3864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3865 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3866 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
3867 | ac_status=$? |
3868 | grep -v '^ *+' conftest.er1 >conftest.err | |
3869 | rm -f conftest.er1 | |
3870 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3872 | (exit $ac_status); } >/dev/null && { | |
3873 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3874 | test ! -s conftest.err | |
3875 | }; then | |
545f34cf CR |
3876 | : |
3877 | else | |
dd4f3dd8 | 3878 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3879 | sed 's/^/| /' conftest.$ac_ext >&5 |
3880 | ||
3881 | # Broken: fails on valid input. | |
3882 | continue | |
3883 | fi | |
d3ad40de | 3884 | |
545f34cf CR |
3885 | rm -f conftest.err conftest.$ac_ext |
3886 | ||
d3ad40de | 3887 | # OK, works on sane cases. Now check whether nonexistent headers |
545f34cf CR |
3888 | # can be detected and how. |
3889 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3890 | /* confdefs.h. */ |
3891 | _ACEOF | |
3892 | cat confdefs.h >>conftest.$ac_ext | |
3893 | cat >>conftest.$ac_ext <<_ACEOF | |
3894 | /* end confdefs.h. */ | |
3895 | @%:@include <ac_nonexistent.h> | |
3896 | _ACEOF | |
d3ad40de CR |
3897 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3898 | case "(($ac_try" in | |
3899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3900 | *) ac_try_echo=$ac_try;; | |
3901 | esac | |
dd4f3dd8 CR |
3902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3903 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3904 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
3905 | ac_status=$? |
3906 | grep -v '^ *+' conftest.er1 >conftest.err | |
3907 | rm -f conftest.er1 | |
3908 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3910 | (exit $ac_status); } >/dev/null && { | |
3911 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3912 | test ! -s conftest.err | |
3913 | }; then | |
545f34cf CR |
3914 | # Broken: success on invalid input. |
3915 | continue | |
3916 | else | |
dd4f3dd8 | 3917 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3918 | sed 's/^/| /' conftest.$ac_ext >&5 |
3919 | ||
3920 | # Passes both tests. | |
3921 | ac_preproc_ok=: | |
3922 | break | |
3923 | fi | |
d3ad40de | 3924 | |
545f34cf CR |
3925 | rm -f conftest.err conftest.$ac_ext |
3926 | ||
3927 | done | |
3928 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3929 | rm -f conftest.err conftest.$ac_ext | |
3930 | if $ac_preproc_ok; then | |
3931 | break | |
3932 | fi | |
3933 | ||
3934 | done | |
3935 | ac_cv_prog_CPP=$CPP | |
3936 | ||
3937 | fi | |
3938 | CPP=$ac_cv_prog_CPP | |
3939 | else | |
3940 | ac_cv_prog_CPP=$CPP | |
3941 | fi | |
dd4f3dd8 CR |
3942 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3943 | $as_echo "$CPP" >&6; } | |
545f34cf CR |
3944 | ac_preproc_ok=false |
3945 | for ac_c_preproc_warn_flag in '' yes | |
3946 | do | |
3947 | # Use a header file that comes with gcc, so configuring glibc | |
3948 | # with a fresh cross-compiler works. | |
3949 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3950 | # <limits.h> exists even on freestanding compilers. | |
3951 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3952 | # not just through cpp. "Syntax error" is here to catch this case. | |
3953 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3954 | /* confdefs.h. */ |
3955 | _ACEOF | |
3956 | cat confdefs.h >>conftest.$ac_ext | |
3957 | cat >>conftest.$ac_ext <<_ACEOF | |
3958 | /* end confdefs.h. */ | |
3959 | @%:@ifdef __STDC__ | |
3960 | @%:@ include <limits.h> | |
3961 | @%:@else | |
3962 | @%:@ include <assert.h> | |
3963 | @%:@endif | |
a82a04b3 | 3964 | Syntax error |
545f34cf | 3965 | _ACEOF |
d3ad40de CR |
3966 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3967 | case "(($ac_try" in | |
3968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3969 | *) ac_try_echo=$ac_try;; | |
3970 | esac | |
dd4f3dd8 CR |
3971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3972 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 3973 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
3974 | ac_status=$? |
3975 | grep -v '^ *+' conftest.er1 >conftest.err | |
3976 | rm -f conftest.er1 | |
3977 | cat conftest.err >&5 | |
dd4f3dd8 CR |
3978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3979 | (exit $ac_status); } >/dev/null && { | |
3980 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3981 | test ! -s conftest.err | |
3982 | }; then | |
545f34cf CR |
3983 | : |
3984 | else | |
dd4f3dd8 | 3985 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
3986 | sed 's/^/| /' conftest.$ac_ext >&5 |
3987 | ||
3988 | # Broken: fails on valid input. | |
3989 | continue | |
3990 | fi | |
d3ad40de | 3991 | |
545f34cf CR |
3992 | rm -f conftest.err conftest.$ac_ext |
3993 | ||
d3ad40de | 3994 | # OK, works on sane cases. Now check whether nonexistent headers |
545f34cf CR |
3995 | # can be detected and how. |
3996 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
3997 | /* confdefs.h. */ |
3998 | _ACEOF | |
3999 | cat confdefs.h >>conftest.$ac_ext | |
4000 | cat >>conftest.$ac_ext <<_ACEOF | |
4001 | /* end confdefs.h. */ | |
4002 | @%:@include <ac_nonexistent.h> | |
4003 | _ACEOF | |
d3ad40de CR |
4004 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4005 | case "(($ac_try" in | |
4006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4007 | *) ac_try_echo=$ac_try;; | |
4008 | esac | |
dd4f3dd8 CR |
4009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4010 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4011 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
4012 | ac_status=$? |
4013 | grep -v '^ *+' conftest.er1 >conftest.err | |
4014 | rm -f conftest.er1 | |
4015 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4017 | (exit $ac_status); } >/dev/null && { | |
4018 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4019 | test ! -s conftest.err | |
4020 | }; then | |
545f34cf CR |
4021 | # Broken: success on invalid input. |
4022 | continue | |
4023 | else | |
dd4f3dd8 | 4024 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4025 | sed 's/^/| /' conftest.$ac_ext >&5 |
4026 | ||
4027 | # Passes both tests. | |
4028 | ac_preproc_ok=: | |
4029 | break | |
4030 | fi | |
d3ad40de | 4031 | |
545f34cf CR |
4032 | rm -f conftest.err conftest.$ac_ext |
4033 | ||
4034 | done | |
4035 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4036 | rm -f conftest.err conftest.$ac_ext | |
4037 | if $ac_preproc_ok; then | |
4038 | : | |
4039 | else | |
76af2125 | 4040 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
545f34cf | 4041 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 4042 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
545f34cf | 4043 | See \`config.log' for more details." >&2;} |
76af2125 | 4044 | { (exit 1); exit 1; }; } |
545f34cf CR |
4045 | fi |
4046 | ||
4047 | ac_ext=c | |
4048 | ac_cpp='$CPP $CPPFLAGS' | |
4049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4052 | ||
4053 | ||
dd4f3dd8 CR |
4054 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4055 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d3ad40de | 4056 | if test "${ac_cv_path_GREP+set}" = set; then |
dd4f3dd8 | 4057 | $as_echo_n "(cached) " >&6 |
d3ad40de | 4058 | else |
dd4f3dd8 | 4059 | if test -z "$GREP"; then |
d3ad40de | 4060 | ac_path_GREP_found=false |
dd4f3dd8 CR |
4061 | # Loop through the user's path and test for each of PROGNAME-LIST |
4062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d3ad40de CR |
4063 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4064 | do | |
4065 | IFS=$as_save_IFS | |
4066 | test -z "$as_dir" && as_dir=. | |
4067 | for ac_prog in grep ggrep; do | |
dd4f3dd8 CR |
4068 | for ac_exec_ext in '' $ac_executable_extensions; do |
4069 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4070 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4071 | # Check for GNU ac_path_GREP and select it if it is found. | |
d3ad40de CR |
4072 | # Check for GNU $ac_path_GREP |
4073 | case `"$ac_path_GREP" --version 2>&1` in | |
4074 | *GNU*) | |
4075 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4076 | *) | |
4077 | ac_count=0 | |
dd4f3dd8 | 4078 | $as_echo_n 0123456789 >"conftest.in" |
d3ad40de CR |
4079 | while : |
4080 | do | |
4081 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4082 | mv "conftest.tmp" "conftest.in" | |
4083 | cp "conftest.in" "conftest.nl" | |
dd4f3dd8 | 4084 | $as_echo 'GREP' >> "conftest.nl" |
d3ad40de CR |
4085 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4086 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4087 | ac_count=`expr $ac_count + 1` | |
4088 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4089 | # Best one so far, save it but keep looking for a better one | |
4090 | ac_cv_path_GREP="$ac_path_GREP" | |
4091 | ac_path_GREP_max=$ac_count | |
4092 | fi | |
4093 | # 10*(2^10) chars as input seems more than enough | |
4094 | test $ac_count -gt 10 && break | |
4095 | done | |
4096 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4097 | esac | |
4098 | ||
dd4f3dd8 CR |
4099 | $ac_path_GREP_found && break 3 |
4100 | done | |
d3ad40de CR |
4101 | done |
4102 | done | |
d3ad40de | 4103 | IFS=$as_save_IFS |
dd4f3dd8 CR |
4104 | if test -z "$ac_cv_path_GREP"; then |
4105 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4106 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d3ad40de | 4107 | { (exit 1); exit 1; }; } |
dd4f3dd8 | 4108 | fi |
d3ad40de CR |
4109 | else |
4110 | ac_cv_path_GREP=$GREP | |
4111 | fi | |
4112 | ||
d3ad40de | 4113 | fi |
dd4f3dd8 CR |
4114 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4115 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d3ad40de CR |
4116 | GREP="$ac_cv_path_GREP" |
4117 | ||
4118 | ||
dd4f3dd8 CR |
4119 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4120 | $as_echo_n "checking for egrep... " >&6; } | |
d3ad40de | 4121 | if test "${ac_cv_path_EGREP+set}" = set; then |
dd4f3dd8 | 4122 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
4123 | else |
4124 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4125 | then ac_cv_path_EGREP="$GREP -E" | |
4126 | else | |
dd4f3dd8 | 4127 | if test -z "$EGREP"; then |
d3ad40de | 4128 | ac_path_EGREP_found=false |
dd4f3dd8 CR |
4129 | # Loop through the user's path and test for each of PROGNAME-LIST |
4130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d3ad40de CR |
4131 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4132 | do | |
4133 | IFS=$as_save_IFS | |
4134 | test -z "$as_dir" && as_dir=. | |
4135 | for ac_prog in egrep; do | |
dd4f3dd8 CR |
4136 | for ac_exec_ext in '' $ac_executable_extensions; do |
4137 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4138 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4139 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d3ad40de CR |
4140 | # Check for GNU $ac_path_EGREP |
4141 | case `"$ac_path_EGREP" --version 2>&1` in | |
4142 | *GNU*) | |
4143 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4144 | *) | |
4145 | ac_count=0 | |
dd4f3dd8 | 4146 | $as_echo_n 0123456789 >"conftest.in" |
d3ad40de CR |
4147 | while : |
4148 | do | |
4149 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4150 | mv "conftest.tmp" "conftest.in" | |
4151 | cp "conftest.in" "conftest.nl" | |
dd4f3dd8 | 4152 | $as_echo 'EGREP' >> "conftest.nl" |
d3ad40de CR |
4153 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4154 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4155 | ac_count=`expr $ac_count + 1` | |
4156 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4157 | # Best one so far, save it but keep looking for a better one | |
4158 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4159 | ac_path_EGREP_max=$ac_count | |
545f34cf | 4160 | fi |
d3ad40de CR |
4161 | # 10*(2^10) chars as input seems more than enough |
4162 | test $ac_count -gt 10 && break | |
4163 | done | |
4164 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4165 | esac | |
4166 | ||
dd4f3dd8 CR |
4167 | $ac_path_EGREP_found && break 3 |
4168 | done | |
d3ad40de CR |
4169 | done |
4170 | done | |
d3ad40de | 4171 | IFS=$as_save_IFS |
dd4f3dd8 CR |
4172 | if test -z "$ac_cv_path_EGREP"; then |
4173 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4174 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d3ad40de | 4175 | { (exit 1); exit 1; }; } |
dd4f3dd8 | 4176 | fi |
d3ad40de CR |
4177 | else |
4178 | ac_cv_path_EGREP=$EGREP | |
9d6e5e30 | 4179 | fi |
d3ad40de | 4180 | |
d3ad40de CR |
4181 | fi |
4182 | fi | |
dd4f3dd8 CR |
4183 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4184 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d3ad40de | 4185 | EGREP="$ac_cv_path_EGREP" |
545f34cf CR |
4186 | |
4187 | ||
dd4f3dd8 CR |
4188 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4189 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
545f34cf | 4190 | if test "${ac_cv_header_stdc+set}" = set; then |
dd4f3dd8 | 4191 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
4192 | else |
4193 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
4194 | /* confdefs.h. */ |
4195 | _ACEOF | |
4196 | cat confdefs.h >>conftest.$ac_ext | |
4197 | cat >>conftest.$ac_ext <<_ACEOF | |
4198 | /* end confdefs.h. */ | |
4199 | #include <stdlib.h> | |
4200 | #include <stdarg.h> | |
4201 | #include <string.h> | |
4202 | #include <float.h> | |
4203 | ||
4204 | int | |
4205 | main () | |
4206 | { | |
4207 | ||
4208 | ; | |
4209 | return 0; | |
4210 | } | |
4211 | _ACEOF | |
4212 | rm -f conftest.$ac_objext | |
d3ad40de CR |
4213 | if { (ac_try="$ac_compile" |
4214 | case "(($ac_try" in | |
4215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4216 | *) ac_try_echo=$ac_try;; | |
4217 | esac | |
dd4f3dd8 CR |
4218 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4219 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4220 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4221 | ac_status=$? |
a82a04b3 CR |
4222 | grep -v '^ *+' conftest.er1 >conftest.err |
4223 | rm -f conftest.er1 | |
4224 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4225 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4226 | (exit $ac_status); } && { | |
4227 | test -z "$ac_c_werror_flag" || | |
4228 | test ! -s conftest.err | |
4229 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
4230 | ac_cv_header_stdc=yes |
4231 | else | |
dd4f3dd8 | 4232 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4233 | sed 's/^/| /' conftest.$ac_ext >&5 |
4234 | ||
d3ad40de | 4235 | ac_cv_header_stdc=no |
545f34cf | 4236 | fi |
d3ad40de CR |
4237 | |
4238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
4239 | |
4240 | if test $ac_cv_header_stdc = yes; then | |
4241 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4242 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
4243 | /* confdefs.h. */ |
4244 | _ACEOF | |
4245 | cat confdefs.h >>conftest.$ac_ext | |
4246 | cat >>conftest.$ac_ext <<_ACEOF | |
4247 | /* end confdefs.h. */ | |
4248 | #include <string.h> | |
4249 | ||
4250 | _ACEOF | |
4251 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4252 | $EGREP "memchr" >/dev/null 2>&1; then | |
4253 | : | |
4254 | else | |
4255 | ac_cv_header_stdc=no | |
4256 | fi | |
4257 | rm -f conftest* | |
4258 | ||
4259 | fi | |
4260 | ||
4261 | if test $ac_cv_header_stdc = yes; then | |
4262 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4263 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
4264 | /* confdefs.h. */ |
4265 | _ACEOF | |
4266 | cat confdefs.h >>conftest.$ac_ext | |
4267 | cat >>conftest.$ac_ext <<_ACEOF | |
4268 | /* end confdefs.h. */ | |
4269 | #include <stdlib.h> | |
4270 | ||
4271 | _ACEOF | |
4272 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4273 | $EGREP "free" >/dev/null 2>&1; then | |
4274 | : | |
4275 | else | |
4276 | ac_cv_header_stdc=no | |
4277 | fi | |
4278 | rm -f conftest* | |
4279 | ||
4280 | fi | |
4281 | ||
4282 | if test $ac_cv_header_stdc = yes; then | |
4283 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4284 | if test "$cross_compiling" = yes; then | |
4285 | : | |
4286 | else | |
4287 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
4288 | /* confdefs.h. */ |
4289 | _ACEOF | |
4290 | cat confdefs.h >>conftest.$ac_ext | |
4291 | cat >>conftest.$ac_ext <<_ACEOF | |
4292 | /* end confdefs.h. */ | |
4293 | #include <ctype.h> | |
d3ad40de | 4294 | #include <stdlib.h> |
545f34cf CR |
4295 | #if ((' ' & 0x0FF) == 0x020) |
4296 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4297 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4298 | #else | |
4299 | # define ISLOWER(c) \ | |
a82a04b3 CR |
4300 | (('a' <= (c) && (c) <= 'i') \ |
4301 | || ('j' <= (c) && (c) <= 'r') \ | |
4302 | || ('s' <= (c) && (c) <= 'z')) | |
545f34cf CR |
4303 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4304 | #endif | |
4305 | ||
4306 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4307 | int | |
4308 | main () | |
4309 | { | |
4310 | int i; | |
4311 | for (i = 0; i < 256; i++) | |
4312 | if (XOR (islower (i), ISLOWER (i)) | |
a82a04b3 | 4313 | || toupper (i) != TOUPPER (i)) |
d3ad40de CR |
4314 | return 2; |
4315 | return 0; | |
545f34cf CR |
4316 | } |
4317 | _ACEOF | |
4318 | rm -f conftest$ac_exeext | |
d3ad40de CR |
4319 | if { (ac_try="$ac_link" |
4320 | case "(($ac_try" in | |
4321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4322 | *) ac_try_echo=$ac_try;; | |
4323 | esac | |
dd4f3dd8 CR |
4324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4325 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4326 | (eval "$ac_link") 2>&5 |
545f34cf | 4327 | ac_status=$? |
dd4f3dd8 | 4328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 4329 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
4330 | { (case "(($ac_try" in |
4331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4332 | *) ac_try_echo=$ac_try;; | |
4333 | esac | |
dd4f3dd8 CR |
4334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4335 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4336 | (eval "$ac_try") 2>&5 |
545f34cf | 4337 | ac_status=$? |
dd4f3dd8 | 4338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
4339 | (exit $ac_status); }; }; then |
4340 | : | |
4341 | else | |
dd4f3dd8 CR |
4342 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4343 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
4344 | sed 's/^/| /' conftest.$ac_ext >&5 |
4345 | ||
4346 | ( exit $ac_status ) | |
4347 | ac_cv_header_stdc=no | |
4348 | fi | |
dd4f3dd8 | 4349 | rm -rf conftest.dSYM |
d3ad40de | 4350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 4351 | fi |
d3ad40de CR |
4352 | |
4353 | ||
545f34cf CR |
4354 | fi |
4355 | fi | |
dd4f3dd8 CR |
4356 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4357 | $as_echo "$ac_cv_header_stdc" >&6; } | |
545f34cf CR |
4358 | if test $ac_cv_header_stdc = yes; then |
4359 | ||
4360 | cat >>confdefs.h <<\_ACEOF | |
4361 | @%:@define STDC_HEADERS 1 | |
4362 | _ACEOF | |
4363 | ||
4364 | fi | |
4365 | ||
4366 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4367 | ||
4368 | ||
4369 | ||
4370 | ||
4371 | ||
4372 | ||
4373 | ||
4374 | ||
4375 | ||
4376 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
a82a04b3 | 4377 | inttypes.h stdint.h unistd.h |
545f34cf | 4378 | do |
dd4f3dd8 CR |
4379 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4380 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4381 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 4382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 4383 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
4384 | else |
4385 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
4386 | /* confdefs.h. */ |
4387 | _ACEOF | |
4388 | cat confdefs.h >>conftest.$ac_ext | |
4389 | cat >>conftest.$ac_ext <<_ACEOF | |
4390 | /* end confdefs.h. */ | |
4391 | $ac_includes_default | |
4392 | ||
4393 | @%:@include <$ac_header> | |
4394 | _ACEOF | |
4395 | rm -f conftest.$ac_objext | |
d3ad40de CR |
4396 | if { (ac_try="$ac_compile" |
4397 | case "(($ac_try" in | |
4398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4399 | *) ac_try_echo=$ac_try;; | |
4400 | esac | |
dd4f3dd8 CR |
4401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4402 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4403 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4404 | ac_status=$? |
a82a04b3 CR |
4405 | grep -v '^ *+' conftest.er1 >conftest.err |
4406 | rm -f conftest.er1 | |
4407 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4409 | (exit $ac_status); } && { | |
4410 | test -z "$ac_c_werror_flag" || | |
4411 | test ! -s conftest.err | |
4412 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
4413 | eval "$as_ac_Header=yes" |
4414 | else | |
dd4f3dd8 | 4415 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4416 | sed 's/^/| /' conftest.$ac_ext >&5 |
4417 | ||
d3ad40de | 4418 | eval "$as_ac_Header=no" |
545f34cf | 4419 | fi |
d3ad40de CR |
4420 | |
4421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 4422 | fi |
dd4f3dd8 CR |
4423 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4424 | $as_echo "$as_val"'` | |
4425 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4426 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
4427 | if test `eval 'as_val=${'$as_ac_Header'} |
4428 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 4429 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 4430 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
4431 | _ACEOF |
4432 | ||
4433 | fi | |
4434 | ||
4435 | done | |
4436 | ||
4437 | ||
dd4f3dd8 CR |
4438 | |
4439 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4440 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4441 | $as_echo_n "checking for minix/config.h... " >&6; } | |
545f34cf | 4442 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
dd4f3dd8 | 4443 | $as_echo_n "(cached) " >&6 |
545f34cf | 4444 | fi |
dd4f3dd8 CR |
4445 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4446 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
545f34cf CR |
4447 | else |
4448 | # Is the header compilable? | |
dd4f3dd8 CR |
4449 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
4450 | $as_echo_n "checking minix/config.h usability... " >&6; } | |
545f34cf | 4451 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
4452 | /* confdefs.h. */ |
4453 | _ACEOF | |
4454 | cat confdefs.h >>conftest.$ac_ext | |
4455 | cat >>conftest.$ac_ext <<_ACEOF | |
4456 | /* end confdefs.h. */ | |
4457 | $ac_includes_default | |
4458 | @%:@include <minix/config.h> | |
4459 | _ACEOF | |
4460 | rm -f conftest.$ac_objext | |
d3ad40de CR |
4461 | if { (ac_try="$ac_compile" |
4462 | case "(($ac_try" in | |
4463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4464 | *) ac_try_echo=$ac_try;; | |
4465 | esac | |
dd4f3dd8 CR |
4466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4467 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4468 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4469 | ac_status=$? |
a82a04b3 CR |
4470 | grep -v '^ *+' conftest.er1 >conftest.err |
4471 | rm -f conftest.er1 | |
4472 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4474 | (exit $ac_status); } && { | |
4475 | test -z "$ac_c_werror_flag" || | |
4476 | test ! -s conftest.err | |
4477 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
4478 | ac_header_compiler=yes |
4479 | else | |
dd4f3dd8 | 4480 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
4482 | ||
d3ad40de | 4483 | ac_header_compiler=no |
545f34cf | 4484 | fi |
d3ad40de CR |
4485 | |
4486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
4487 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4488 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
4489 | |
4490 | # Is the header present? | |
dd4f3dd8 CR |
4491 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
4492 | $as_echo_n "checking minix/config.h presence... " >&6; } | |
545f34cf | 4493 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
4494 | /* confdefs.h. */ |
4495 | _ACEOF | |
4496 | cat confdefs.h >>conftest.$ac_ext | |
4497 | cat >>conftest.$ac_ext <<_ACEOF | |
4498 | /* end confdefs.h. */ | |
4499 | @%:@include <minix/config.h> | |
4500 | _ACEOF | |
d3ad40de CR |
4501 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4502 | case "(($ac_try" in | |
4503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4504 | *) ac_try_echo=$ac_try;; | |
4505 | esac | |
dd4f3dd8 CR |
4506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4507 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4508 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
4509 | ac_status=$? |
4510 | grep -v '^ *+' conftest.er1 >conftest.err | |
4511 | rm -f conftest.er1 | |
4512 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4514 | (exit $ac_status); } >/dev/null && { | |
4515 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4516 | test ! -s conftest.err | |
4517 | }; then | |
545f34cf CR |
4518 | ac_header_preproc=yes |
4519 | else | |
dd4f3dd8 | 4520 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4521 | sed 's/^/| /' conftest.$ac_ext >&5 |
4522 | ||
4523 | ac_header_preproc=no | |
4524 | fi | |
d3ad40de | 4525 | |
545f34cf | 4526 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
4527 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4528 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
4529 | |
4530 | # So? What about this header? | |
a82a04b3 CR |
4531 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4532 | yes:no: ) | |
dd4f3dd8 CR |
4533 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4534 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4535 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4536 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 4537 | ac_header_preproc=yes |
545f34cf | 4538 | ;; |
a82a04b3 | 4539 | no:yes:* ) |
dd4f3dd8 CR |
4540 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
4541 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4542 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4543 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4544 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4545 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4546 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4547 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4548 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4549 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4550 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4551 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 4552 | ( cat <<\_ASBOX |
a82a04b3 CR |
4553 | @%:@@%:@ ------------------------------- @%:@@%:@ |
4554 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
4555 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 4556 | _ASBOX |
d3ad40de | 4557 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
4558 | ;; |
4559 | esac | |
dd4f3dd8 CR |
4560 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4561 | $as_echo_n "checking for minix/config.h... " >&6; } | |
545f34cf | 4562 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
dd4f3dd8 | 4563 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
4564 | else |
4565 | ac_cv_header_minix_config_h=$ac_header_preproc | |
4566 | fi | |
dd4f3dd8 CR |
4567 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4568 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
545f34cf CR |
4569 | |
4570 | fi | |
76af2125 | 4571 | if test $ac_cv_header_minix_config_h = yes; then |
545f34cf CR |
4572 | MINIX=yes |
4573 | else | |
4574 | MINIX= | |
4575 | fi | |
4576 | ||
4577 | ||
dd4f3dd8 CR |
4578 | if test "$MINIX" = yes; then |
4579 | ||
545f34cf CR |
4580 | cat >>confdefs.h <<\_ACEOF |
4581 | @%:@define _POSIX_SOURCE 1 | |
4582 | _ACEOF | |
4583 | ||
dd4f3dd8 | 4584 | |
545f34cf CR |
4585 | cat >>confdefs.h <<\_ACEOF |
4586 | @%:@define _POSIX_1_SOURCE 2 | |
4587 | _ACEOF | |
4588 | ||
dd4f3dd8 | 4589 | |
545f34cf CR |
4590 | cat >>confdefs.h <<\_ACEOF |
4591 | @%:@define _MINIX 1 | |
4592 | _ACEOF | |
4593 | ||
dd4f3dd8 CR |
4594 | fi |
4595 | ||
4596 | ||
4597 | ||
4598 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4599 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4600 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4601 | $as_echo_n "(cached) " >&6 | |
4602 | else | |
4603 | cat >conftest.$ac_ext <<_ACEOF | |
4604 | /* confdefs.h. */ | |
4605 | _ACEOF | |
4606 | cat confdefs.h >>conftest.$ac_ext | |
4607 | cat >>conftest.$ac_ext <<_ACEOF | |
4608 | /* end confdefs.h. */ | |
4609 | ||
4610 | # define __EXTENSIONS__ 1 | |
4611 | $ac_includes_default | |
4612 | int | |
4613 | main () | |
4614 | { | |
4615 | ||
4616 | ; | |
4617 | return 0; | |
4618 | } | |
4619 | _ACEOF | |
4620 | rm -f conftest.$ac_objext | |
4621 | if { (ac_try="$ac_compile" | |
4622 | case "(($ac_try" in | |
4623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4624 | *) ac_try_echo=$ac_try;; | |
4625 | esac | |
4626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4627 | $as_echo "$ac_try_echo") >&5 | |
4628 | (eval "$ac_compile") 2>conftest.er1 | |
4629 | ac_status=$? | |
4630 | grep -v '^ *+' conftest.er1 >conftest.err | |
4631 | rm -f conftest.er1 | |
4632 | cat conftest.err >&5 | |
4633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4634 | (exit $ac_status); } && { | |
4635 | test -z "$ac_c_werror_flag" || | |
4636 | test ! -s conftest.err | |
4637 | } && test -s conftest.$ac_objext; then | |
4638 | ac_cv_safe_to_define___extensions__=yes | |
4639 | else | |
4640 | $as_echo "$as_me: failed program was:" >&5 | |
4641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4642 | ||
4643 | ac_cv_safe_to_define___extensions__=no | |
545f34cf CR |
4644 | fi |
4645 | ||
dd4f3dd8 CR |
4646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4647 | fi | |
4648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4649 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4650 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4651 | cat >>confdefs.h <<\_ACEOF | |
4652 | @%:@define __EXTENSIONS__ 1 | |
4653 | _ACEOF | |
4654 | ||
4655 | cat >>confdefs.h <<\_ACEOF | |
4656 | @%:@define _ALL_SOURCE 1 | |
4657 | _ACEOF | |
4658 | ||
4659 | cat >>confdefs.h <<\_ACEOF | |
4660 | @%:@define _GNU_SOURCE 1 | |
4661 | _ACEOF | |
4662 | ||
4663 | cat >>confdefs.h <<\_ACEOF | |
4664 | @%:@define _POSIX_PTHREAD_SEMANTICS 1 | |
4665 | _ACEOF | |
4666 | ||
4667 | cat >>confdefs.h <<\_ACEOF | |
4668 | @%:@define _TANDEM_SOURCE 1 | |
4669 | _ACEOF | |
4670 | ||
4671 | ||
545f34cf | 4672 | |
dd4f3dd8 | 4673 | @%:@ Check whether --enable-largefile was given. |
545f34cf | 4674 | if test "${enable_largefile+set}" = set; then |
d3ad40de CR |
4675 | enableval=$enable_largefile; |
4676 | fi | |
4677 | ||
545f34cf CR |
4678 | if test "$enable_largefile" != no; then |
4679 | ||
dd4f3dd8 CR |
4680 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
4681 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
545f34cf | 4682 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
dd4f3dd8 | 4683 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
4684 | else |
4685 | ac_cv_sys_largefile_CC=no | |
4686 | if test "$GCC" != yes; then | |
4687 | ac_save_CC=$CC | |
4688 | while :; do | |
d3ad40de CR |
4689 | # IRIX 6.2 and later do not support large files by default, |
4690 | # so use the C compiler's -n32 option if that helps. | |
a82a04b3 | 4691 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
4692 | /* confdefs.h. */ |
4693 | _ACEOF | |
4694 | cat confdefs.h >>conftest.$ac_ext | |
4695 | cat >>conftest.$ac_ext <<_ACEOF | |
4696 | /* end confdefs.h. */ | |
4697 | @%:@include <sys/types.h> | |
4698 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4699 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4700 | since some C++ compilers masquerading as C compilers | |
4701 | incorrectly reject 9223372036854775807. */ | |
4702 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4703 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4704 | && LARGE_OFF_T % 2147483647 == 1) | |
4705 | ? 1 : -1]; | |
4706 | int | |
4707 | main () | |
4708 | { | |
4709 | ||
4710 | ; | |
4711 | return 0; | |
4712 | } | |
4713 | _ACEOF | |
d3ad40de CR |
4714 | rm -f conftest.$ac_objext |
4715 | if { (ac_try="$ac_compile" | |
4716 | case "(($ac_try" in | |
4717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4718 | *) ac_try_echo=$ac_try;; | |
4719 | esac | |
dd4f3dd8 CR |
4720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4721 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4722 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4723 | ac_status=$? |
a82a04b3 CR |
4724 | grep -v '^ *+' conftest.er1 >conftest.err |
4725 | rm -f conftest.er1 | |
4726 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4728 | (exit $ac_status); } && { | |
4729 | test -z "$ac_c_werror_flag" || | |
4730 | test ! -s conftest.err | |
4731 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
4732 | break |
4733 | else | |
dd4f3dd8 | 4734 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4735 | sed 's/^/| /' conftest.$ac_ext >&5 |
4736 | ||
d3ad40de | 4737 | |
545f34cf | 4738 | fi |
d3ad40de CR |
4739 | |
4740 | rm -f core conftest.err conftest.$ac_objext | |
4741 | CC="$CC -n32" | |
4742 | rm -f conftest.$ac_objext | |
4743 | if { (ac_try="$ac_compile" | |
4744 | case "(($ac_try" in | |
4745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4746 | *) ac_try_echo=$ac_try;; | |
4747 | esac | |
dd4f3dd8 CR |
4748 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4749 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4750 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4751 | ac_status=$? |
a82a04b3 CR |
4752 | grep -v '^ *+' conftest.er1 >conftest.err |
4753 | rm -f conftest.er1 | |
4754 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4755 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4756 | (exit $ac_status); } && { | |
4757 | test -z "$ac_c_werror_flag" || | |
4758 | test ! -s conftest.err | |
4759 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
4760 | ac_cv_sys_largefile_CC=' -n32'; break |
4761 | else | |
dd4f3dd8 | 4762 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4763 | sed 's/^/| /' conftest.$ac_ext >&5 |
4764 | ||
d3ad40de | 4765 | |
545f34cf | 4766 | fi |
d3ad40de CR |
4767 | |
4768 | rm -f core conftest.err conftest.$ac_objext | |
a82a04b3 | 4769 | break |
545f34cf CR |
4770 | done |
4771 | CC=$ac_save_CC | |
4772 | rm -f conftest.$ac_ext | |
4773 | fi | |
4774 | fi | |
dd4f3dd8 CR |
4775 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
4776 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
545f34cf CR |
4777 | if test "$ac_cv_sys_largefile_CC" != no; then |
4778 | CC=$CC$ac_cv_sys_largefile_CC | |
4779 | fi | |
4780 | ||
dd4f3dd8 CR |
4781 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
4782 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
545f34cf | 4783 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
dd4f3dd8 | 4784 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
4785 | else |
4786 | while :; do | |
545f34cf | 4787 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
4788 | /* confdefs.h. */ |
4789 | _ACEOF | |
4790 | cat confdefs.h >>conftest.$ac_ext | |
4791 | cat >>conftest.$ac_ext <<_ACEOF | |
4792 | /* end confdefs.h. */ | |
4793 | @%:@include <sys/types.h> | |
4794 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4795 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4796 | since some C++ compilers masquerading as C compilers | |
4797 | incorrectly reject 9223372036854775807. */ | |
4798 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4799 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4800 | && LARGE_OFF_T % 2147483647 == 1) | |
4801 | ? 1 : -1]; | |
4802 | int | |
4803 | main () | |
4804 | { | |
4805 | ||
4806 | ; | |
4807 | return 0; | |
4808 | } | |
4809 | _ACEOF | |
4810 | rm -f conftest.$ac_objext | |
d3ad40de CR |
4811 | if { (ac_try="$ac_compile" |
4812 | case "(($ac_try" in | |
4813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4814 | *) ac_try_echo=$ac_try;; | |
4815 | esac | |
dd4f3dd8 CR |
4816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4817 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4818 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4819 | ac_status=$? |
a82a04b3 CR |
4820 | grep -v '^ *+' conftest.er1 >conftest.err |
4821 | rm -f conftest.er1 | |
4822 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4824 | (exit $ac_status); } && { | |
4825 | test -z "$ac_c_werror_flag" || | |
4826 | test ! -s conftest.err | |
4827 | } && test -s conftest.$ac_objext; then | |
4828 | ac_cv_sys_file_offset_bits=no; break | |
2e4498b3 | 4829 | else |
dd4f3dd8 | 4830 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
4831 | sed 's/^/| /' conftest.$ac_ext >&5 |
4832 | ||
4833 | ||
4834 | fi | |
4835 | ||
4836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4837 | cat >conftest.$ac_ext <<_ACEOF | |
4838 | /* confdefs.h. */ | |
4839 | _ACEOF | |
4840 | cat confdefs.h >>conftest.$ac_ext | |
4841 | cat >>conftest.$ac_ext <<_ACEOF | |
4842 | /* end confdefs.h. */ | |
545f34cf CR |
4843 | @%:@define _FILE_OFFSET_BITS 64 |
4844 | @%:@include <sys/types.h> | |
4845 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4846 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4847 | since some C++ compilers masquerading as C compilers | |
4848 | incorrectly reject 9223372036854775807. */ | |
4849 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4850 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4851 | && LARGE_OFF_T % 2147483647 == 1) | |
4852 | ? 1 : -1]; | |
4853 | int | |
4854 | main () | |
4855 | { | |
4856 | ||
4857 | ; | |
4858 | return 0; | |
4859 | } | |
4860 | _ACEOF | |
4861 | rm -f conftest.$ac_objext | |
d3ad40de CR |
4862 | if { (ac_try="$ac_compile" |
4863 | case "(($ac_try" in | |
4864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4865 | *) ac_try_echo=$ac_try;; | |
4866 | esac | |
dd4f3dd8 CR |
4867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4868 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4869 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4870 | ac_status=$? |
a82a04b3 CR |
4871 | grep -v '^ *+' conftest.er1 >conftest.err |
4872 | rm -f conftest.er1 | |
4873 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4875 | (exit $ac_status); } && { | |
4876 | test -z "$ac_c_werror_flag" || | |
4877 | test ! -s conftest.err | |
4878 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
4879 | ac_cv_sys_file_offset_bits=64; break |
4880 | else | |
dd4f3dd8 | 4881 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4882 | sed 's/^/| /' conftest.$ac_ext >&5 |
4883 | ||
d3ad40de | 4884 | |
545f34cf | 4885 | fi |
d3ad40de CR |
4886 | |
4887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 | 4888 | ac_cv_sys_file_offset_bits=unknown |
545f34cf CR |
4889 | break |
4890 | done | |
4891 | fi | |
dd4f3dd8 CR |
4892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
4893 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4894 | case $ac_cv_sys_file_offset_bits in #( | |
4895 | no | unknown) ;; | |
4896 | *) | |
545f34cf CR |
4897 | cat >>confdefs.h <<_ACEOF |
4898 | @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4899 | _ACEOF | |
dd4f3dd8 CR |
4900 | ;; |
4901 | esac | |
4902 | rm -rf conftest* | |
4903 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4904 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4905 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
545f34cf | 4906 | if test "${ac_cv_sys_large_files+set}" = set; then |
dd4f3dd8 | 4907 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
4908 | else |
4909 | while :; do | |
545f34cf | 4910 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
4911 | /* confdefs.h. */ |
4912 | _ACEOF | |
4913 | cat confdefs.h >>conftest.$ac_ext | |
4914 | cat >>conftest.$ac_ext <<_ACEOF | |
4915 | /* end confdefs.h. */ | |
4916 | @%:@include <sys/types.h> | |
4917 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4918 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4919 | since some C++ compilers masquerading as C compilers | |
4920 | incorrectly reject 9223372036854775807. */ | |
4921 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4922 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4923 | && LARGE_OFF_T % 2147483647 == 1) | |
4924 | ? 1 : -1]; | |
4925 | int | |
4926 | main () | |
4927 | { | |
4928 | ||
4929 | ; | |
4930 | return 0; | |
4931 | } | |
4932 | _ACEOF | |
4933 | rm -f conftest.$ac_objext | |
d3ad40de CR |
4934 | if { (ac_try="$ac_compile" |
4935 | case "(($ac_try" in | |
4936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4937 | *) ac_try_echo=$ac_try;; | |
4938 | esac | |
dd4f3dd8 CR |
4939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4940 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4941 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4942 | ac_status=$? |
a82a04b3 CR |
4943 | grep -v '^ *+' conftest.er1 >conftest.err |
4944 | rm -f conftest.er1 | |
4945 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4947 | (exit $ac_status); } && { | |
4948 | test -z "$ac_c_werror_flag" || | |
4949 | test ! -s conftest.err | |
4950 | } && test -s conftest.$ac_objext; then | |
4951 | ac_cv_sys_large_files=no; break | |
545f34cf | 4952 | else |
dd4f3dd8 | 4953 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
4954 | sed 's/^/| /' conftest.$ac_ext >&5 |
4955 | ||
d3ad40de | 4956 | |
545f34cf | 4957 | fi |
d3ad40de CR |
4958 | |
4959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 4960 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
4961 | /* confdefs.h. */ |
4962 | _ACEOF | |
4963 | cat confdefs.h >>conftest.$ac_ext | |
4964 | cat >>conftest.$ac_ext <<_ACEOF | |
4965 | /* end confdefs.h. */ | |
4966 | @%:@define _LARGE_FILES 1 | |
4967 | @%:@include <sys/types.h> | |
4968 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4969 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4970 | since some C++ compilers masquerading as C compilers | |
4971 | incorrectly reject 9223372036854775807. */ | |
4972 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4973 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4974 | && LARGE_OFF_T % 2147483647 == 1) | |
4975 | ? 1 : -1]; | |
4976 | int | |
4977 | main () | |
4978 | { | |
4979 | ||
4980 | ; | |
4981 | return 0; | |
4982 | } | |
4983 | _ACEOF | |
4984 | rm -f conftest.$ac_objext | |
d3ad40de CR |
4985 | if { (ac_try="$ac_compile" |
4986 | case "(($ac_try" in | |
4987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4988 | *) ac_try_echo=$ac_try;; | |
4989 | esac | |
dd4f3dd8 CR |
4990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4991 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 4992 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 4993 | ac_status=$? |
a82a04b3 CR |
4994 | grep -v '^ *+' conftest.er1 >conftest.err |
4995 | rm -f conftest.er1 | |
4996 | cat conftest.err >&5 | |
dd4f3dd8 CR |
4997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4998 | (exit $ac_status); } && { | |
4999 | test -z "$ac_c_werror_flag" || | |
5000 | test ! -s conftest.err | |
5001 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
5002 | ac_cv_sys_large_files=1; break |
5003 | else | |
dd4f3dd8 | 5004 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
5005 | sed 's/^/| /' conftest.$ac_ext >&5 |
5006 | ||
d3ad40de | 5007 | |
545f34cf | 5008 | fi |
d3ad40de CR |
5009 | |
5010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 | 5011 | ac_cv_sys_large_files=unknown |
545f34cf CR |
5012 | break |
5013 | done | |
5014 | fi | |
dd4f3dd8 CR |
5015 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
5016 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5017 | case $ac_cv_sys_large_files in #( | |
5018 | no | unknown) ;; | |
5019 | *) | |
545f34cf CR |
5020 | cat >>confdefs.h <<_ACEOF |
5021 | @%:@define _LARGE_FILES $ac_cv_sys_large_files | |
5022 | _ACEOF | |
dd4f3dd8 CR |
5023 | ;; |
5024 | esac | |
5025 | rm -rf conftest* | |
5026 | fi | |
545f34cf CR |
5027 | fi |
5028 | ||
5029 | ||
5030 | ||
dc8fbaf9 | 5031 | SIGNAMES_O= |
545f34cf CR |
5032 | SIGNAMES_H=lsignames.h |
5033 | ||
5034 | ||
5035 | ||
d3ad40de | 5036 | CROSS_COMPILE= |
545f34cf CR |
5037 | if test "x$cross_compiling" = "xyes"; then |
5038 | case "${host}" in | |
5039 | *-cygwin*) | |
5040 | cross_cache=${srcdir}/cross-build/cygwin32.cache | |
545f34cf | 5041 | ;; |
9607141c CR |
5042 | *-mingw*) |
5043 | cross_cache=${srcdir}/cross-build/cygwin32.cache | |
5044 | ;; | |
545f34cf CR |
5045 | i[3456]86-*-beos*) |
5046 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
545f34cf CR |
5047 | ;; |
5048 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
5049 | ;; | |
5050 | esac | |
5051 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then | |
5052 | echo "loading cross-build cache file ${cross_cache}" | |
5053 | . ${cross_cache} | |
5054 | fi | |
5055 | unset cross_cache | |
dc8fbaf9 | 5056 | SIGNAMES_O='signames.o' |
9607141c CR |
5057 | CROSS_COMPILE='-DCROSS_COMPILING' |
5058 | ||
545f34cf CR |
5059 | fi |
5060 | ||
5061 | ||
dc8fbaf9 | 5062 | |
545f34cf CR |
5063 | if test -z "$CC_FOR_BUILD"; then |
5064 | if test "x$cross_compiling" = "xno"; then | |
5065 | CC_FOR_BUILD='$(CC)' | |
5066 | else | |
5067 | CC_FOR_BUILD=gcc | |
5068 | fi | |
5069 | fi | |
5070 | ||
5071 | ||
5072 | ||
5073 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
5074 | ||
5075 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2" | |
5076 | ||
5077 | if test "$opt_profiling" = "yes"; then | |
5078 | PROFILE_FLAGS=-pg | |
5079 | case "$host_os" in | |
5080 | solaris2*) ;; | |
5081 | *) opt_static_link=yes ;; | |
5082 | esac | |
5083 | DEBUG= MALLOC_DEBUG= | |
5084 | fi | |
5085 | ||
5086 | if test "$opt_static_link" = yes; then | |
5087 | # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 | |
5088 | if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then | |
5089 | STATIC_LD="-static" | |
5090 | case "$host_os" in | |
5091 | solaris2*) ;; | |
5092 | *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental | |
5093 | esac | |
5094 | fi | |
5095 | fi | |
5096 | ||
da5b17cd CR |
5097 | if test "X$cross_compiling" = "Xno"; then |
5098 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} | |
5099 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'} | |
5100 | else | |
5101 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""} | |
5102 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""} | |
5103 | fi | |
5104 | ||
545f34cf CR |
5105 | test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g" |
5106 | ||
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | ||
5112 | ||
5113 | ||
5114 | ||
5115 | ||
5116 | if test $ac_cv_c_compiler_gnu = yes; then | |
dd4f3dd8 CR |
5117 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
5118 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
545f34cf | 5119 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
dd4f3dd8 | 5120 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5121 | else |
5122 | ac_pattern="Autoconf.*'x'" | |
5123 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5124 | /* confdefs.h. */ |
5125 | _ACEOF | |
5126 | cat confdefs.h >>conftest.$ac_ext | |
5127 | cat >>conftest.$ac_ext <<_ACEOF | |
5128 | /* end confdefs.h. */ | |
5129 | #include <sgtty.h> | |
5130 | Autoconf TIOCGETP | |
5131 | _ACEOF | |
5132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5133 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5134 | ac_cv_prog_gcc_traditional=yes | |
5135 | else | |
5136 | ac_cv_prog_gcc_traditional=no | |
5137 | fi | |
5138 | rm -f conftest* | |
5139 | ||
5140 | ||
5141 | if test $ac_cv_prog_gcc_traditional = no; then | |
5142 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5143 | /* confdefs.h. */ |
5144 | _ACEOF | |
5145 | cat confdefs.h >>conftest.$ac_ext | |
5146 | cat >>conftest.$ac_ext <<_ACEOF | |
5147 | /* end confdefs.h. */ | |
5148 | #include <termio.h> | |
5149 | Autoconf TCGETA | |
5150 | _ACEOF | |
5151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5152 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5153 | ac_cv_prog_gcc_traditional=yes | |
5154 | fi | |
5155 | rm -f conftest* | |
5156 | ||
5157 | fi | |
5158 | fi | |
dd4f3dd8 CR |
5159 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
5160 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
545f34cf CR |
5161 | if test $ac_cv_prog_gcc_traditional = yes; then |
5162 | CC="$CC -traditional" | |
5163 | fi | |
5164 | fi | |
5165 | ||
5166 | ||
5167 | ||
5168 | if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no" | |
5169 | then | |
5170 | # If the user specified --with-installed-readline=PREFIX and PREFIX | |
5171 | # is not `yes', set ac_cv_rl_prefix to PREFIX | |
5172 | test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline | |
5173 | ||
5174 | ||
5175 | if test "X$bash_cv_termcap_lib" = "X"; then | |
5176 | _bash_needmsg=yes | |
5177 | else | |
dd4f3dd8 CR |
5178 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
5179 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
545f34cf CR |
5180 | _bash_needmsg= |
5181 | fi | |
5182 | if test "${bash_cv_termcap_lib+set}" = set; then | |
dd4f3dd8 | 5183 | $as_echo_n "(cached) " >&6 |
545f34cf | 5184 | else |
dd4f3dd8 CR |
5185 | { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 |
5186 | $as_echo_n "checking for tgetent... " >&6; } | |
545f34cf | 5187 | if test "${ac_cv_func_tgetent+set}" = set; then |
dd4f3dd8 | 5188 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5189 | else |
5190 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5191 | /* confdefs.h. */ |
5192 | _ACEOF | |
5193 | cat confdefs.h >>conftest.$ac_ext | |
5194 | cat >>conftest.$ac_ext <<_ACEOF | |
5195 | /* end confdefs.h. */ | |
a82a04b3 CR |
5196 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. |
5197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5198 | #define tgetent innocuous_tgetent | |
5199 | ||
545f34cf CR |
5200 | /* System header to define __stub macros and hopefully few prototypes, |
5201 | which can conflict with char tgetent (); below. | |
5202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5203 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 5204 | |
545f34cf CR |
5205 | #ifdef __STDC__ |
5206 | # include <limits.h> | |
5207 | #else | |
5208 | # include <assert.h> | |
5209 | #endif | |
a82a04b3 CR |
5210 | |
5211 | #undef tgetent | |
5212 | ||
d3ad40de CR |
5213 | /* Override any GCC internal prototype to avoid an error. |
5214 | Use char because int might match the return type of a GCC | |
5215 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
5216 | #ifdef __cplusplus |
5217 | extern "C" | |
545f34cf | 5218 | #endif |
545f34cf CR |
5219 | char tgetent (); |
5220 | /* The GNU C library defines this for functions which it implements | |
5221 | to always fail with ENOSYS. Some functions are actually named | |
5222 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 5223 | #if defined __stub_tgetent || defined __stub___tgetent |
545f34cf | 5224 | choke me |
545f34cf CR |
5225 | #endif |
5226 | ||
5227 | int | |
5228 | main () | |
5229 | { | |
d3ad40de | 5230 | return tgetent (); |
545f34cf CR |
5231 | ; |
5232 | return 0; | |
5233 | } | |
5234 | _ACEOF | |
5235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
5236 | if { (ac_try="$ac_link" |
5237 | case "(($ac_try" in | |
5238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5239 | *) ac_try_echo=$ac_try;; | |
5240 | esac | |
dd4f3dd8 CR |
5241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5242 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 5243 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 5244 | ac_status=$? |
a82a04b3 CR |
5245 | grep -v '^ *+' conftest.er1 >conftest.err |
5246 | rm -f conftest.er1 | |
5247 | cat conftest.err >&5 | |
dd4f3dd8 CR |
5248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5249 | (exit $ac_status); } && { | |
5250 | test -z "$ac_c_werror_flag" || | |
5251 | test ! -s conftest.err | |
5252 | } && test -s conftest$ac_exeext && { | |
5253 | test "$cross_compiling" = yes || | |
5254 | $as_test_x conftest$ac_exeext | |
5255 | }; then | |
545f34cf CR |
5256 | ac_cv_func_tgetent=yes |
5257 | else | |
dd4f3dd8 | 5258 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
5259 | sed 's/^/| /' conftest.$ac_ext >&5 |
5260 | ||
d3ad40de | 5261 | ac_cv_func_tgetent=no |
545f34cf | 5262 | fi |
d3ad40de | 5263 | |
dd4f3dd8 CR |
5264 | rm -rf conftest.dSYM |
5265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 5266 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 5267 | fi |
dd4f3dd8 CR |
5268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
5269 | $as_echo "$ac_cv_func_tgetent" >&6; } | |
76af2125 | 5270 | if test $ac_cv_func_tgetent = yes; then |
545f34cf CR |
5271 | bash_cv_termcap_lib=libc |
5272 | else | |
dd4f3dd8 CR |
5273 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
5274 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
545f34cf | 5275 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
dd4f3dd8 | 5276 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5277 | else |
5278 | ac_check_lib_save_LIBS=$LIBS | |
5279 | LIBS="-ltermcap $LIBS" | |
5280 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5281 | /* confdefs.h. */ |
5282 | _ACEOF | |
5283 | cat confdefs.h >>conftest.$ac_ext | |
5284 | cat >>conftest.$ac_ext <<_ACEOF | |
5285 | /* end confdefs.h. */ | |
5286 | ||
d3ad40de CR |
5287 | /* Override any GCC internal prototype to avoid an error. |
5288 | Use char because int might match the return type of a GCC | |
5289 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
5290 | #ifdef __cplusplus |
5291 | extern "C" | |
5292 | #endif | |
545f34cf CR |
5293 | char tgetent (); |
5294 | int | |
5295 | main () | |
5296 | { | |
d3ad40de | 5297 | return tgetent (); |
545f34cf CR |
5298 | ; |
5299 | return 0; | |
5300 | } | |
5301 | _ACEOF | |
5302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
5303 | if { (ac_try="$ac_link" |
5304 | case "(($ac_try" in | |
5305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5306 | *) ac_try_echo=$ac_try;; | |
5307 | esac | |
dd4f3dd8 CR |
5308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5309 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 5310 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 5311 | ac_status=$? |
a82a04b3 CR |
5312 | grep -v '^ *+' conftest.er1 >conftest.err |
5313 | rm -f conftest.er1 | |
5314 | cat conftest.err >&5 | |
dd4f3dd8 CR |
5315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5316 | (exit $ac_status); } && { | |
5317 | test -z "$ac_c_werror_flag" || | |
5318 | test ! -s conftest.err | |
5319 | } && test -s conftest$ac_exeext && { | |
5320 | test "$cross_compiling" = yes || | |
5321 | $as_test_x conftest$ac_exeext | |
5322 | }; then | |
545f34cf CR |
5323 | ac_cv_lib_termcap_tgetent=yes |
5324 | else | |
dd4f3dd8 | 5325 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
5326 | sed 's/^/| /' conftest.$ac_ext >&5 |
5327 | ||
d3ad40de | 5328 | ac_cv_lib_termcap_tgetent=no |
545f34cf | 5329 | fi |
d3ad40de | 5330 | |
dd4f3dd8 CR |
5331 | rm -rf conftest.dSYM |
5332 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 5333 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
5334 | LIBS=$ac_check_lib_save_LIBS |
5335 | fi | |
dd4f3dd8 CR |
5336 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
5337 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
76af2125 | 5338 | if test $ac_cv_lib_termcap_tgetent = yes; then |
545f34cf CR |
5339 | bash_cv_termcap_lib=libtermcap |
5340 | else | |
dd4f3dd8 CR |
5341 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
5342 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
545f34cf | 5343 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
dd4f3dd8 | 5344 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5345 | else |
5346 | ac_check_lib_save_LIBS=$LIBS | |
5347 | LIBS="-ltinfo $LIBS" | |
5348 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5349 | /* confdefs.h. */ |
5350 | _ACEOF | |
5351 | cat confdefs.h >>conftest.$ac_ext | |
5352 | cat >>conftest.$ac_ext <<_ACEOF | |
5353 | /* end confdefs.h. */ | |
5354 | ||
d3ad40de CR |
5355 | /* Override any GCC internal prototype to avoid an error. |
5356 | Use char because int might match the return type of a GCC | |
5357 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
5358 | #ifdef __cplusplus |
5359 | extern "C" | |
5360 | #endif | |
545f34cf CR |
5361 | char tgetent (); |
5362 | int | |
5363 | main () | |
5364 | { | |
d3ad40de | 5365 | return tgetent (); |
545f34cf CR |
5366 | ; |
5367 | return 0; | |
5368 | } | |
5369 | _ACEOF | |
5370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
5371 | if { (ac_try="$ac_link" |
5372 | case "(($ac_try" in | |
5373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5374 | *) ac_try_echo=$ac_try;; | |
5375 | esac | |
dd4f3dd8 CR |
5376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5377 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 5378 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 5379 | ac_status=$? |
a82a04b3 CR |
5380 | grep -v '^ *+' conftest.er1 >conftest.err |
5381 | rm -f conftest.er1 | |
5382 | cat conftest.err >&5 | |
dd4f3dd8 CR |
5383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5384 | (exit $ac_status); } && { | |
5385 | test -z "$ac_c_werror_flag" || | |
5386 | test ! -s conftest.err | |
5387 | } && test -s conftest$ac_exeext && { | |
5388 | test "$cross_compiling" = yes || | |
5389 | $as_test_x conftest$ac_exeext | |
5390 | }; then | |
545f34cf CR |
5391 | ac_cv_lib_tinfo_tgetent=yes |
5392 | else | |
dd4f3dd8 | 5393 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
5394 | sed 's/^/| /' conftest.$ac_ext >&5 |
5395 | ||
d3ad40de | 5396 | ac_cv_lib_tinfo_tgetent=no |
545f34cf | 5397 | fi |
d3ad40de | 5398 | |
dd4f3dd8 CR |
5399 | rm -rf conftest.dSYM |
5400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 5401 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
5402 | LIBS=$ac_check_lib_save_LIBS |
5403 | fi | |
dd4f3dd8 CR |
5404 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
5405 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
76af2125 | 5406 | if test $ac_cv_lib_tinfo_tgetent = yes; then |
545f34cf CR |
5407 | bash_cv_termcap_lib=libtinfo |
5408 | else | |
dd4f3dd8 CR |
5409 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
5410 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
545f34cf | 5411 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then |
dd4f3dd8 | 5412 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5413 | else |
5414 | ac_check_lib_save_LIBS=$LIBS | |
5415 | LIBS="-lcurses $LIBS" | |
5416 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5417 | /* confdefs.h. */ |
5418 | _ACEOF | |
5419 | cat confdefs.h >>conftest.$ac_ext | |
5420 | cat >>conftest.$ac_ext <<_ACEOF | |
5421 | /* end confdefs.h. */ | |
5422 | ||
d3ad40de CR |
5423 | /* Override any GCC internal prototype to avoid an error. |
5424 | Use char because int might match the return type of a GCC | |
5425 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
5426 | #ifdef __cplusplus |
5427 | extern "C" | |
5428 | #endif | |
545f34cf CR |
5429 | char tgetent (); |
5430 | int | |
5431 | main () | |
5432 | { | |
d3ad40de | 5433 | return tgetent (); |
545f34cf CR |
5434 | ; |
5435 | return 0; | |
5436 | } | |
5437 | _ACEOF | |
5438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
5439 | if { (ac_try="$ac_link" |
5440 | case "(($ac_try" in | |
5441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5442 | *) ac_try_echo=$ac_try;; | |
5443 | esac | |
dd4f3dd8 CR |
5444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5445 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 5446 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 5447 | ac_status=$? |
a82a04b3 CR |
5448 | grep -v '^ *+' conftest.er1 >conftest.err |
5449 | rm -f conftest.er1 | |
5450 | cat conftest.err >&5 | |
dd4f3dd8 CR |
5451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5452 | (exit $ac_status); } && { | |
5453 | test -z "$ac_c_werror_flag" || | |
5454 | test ! -s conftest.err | |
5455 | } && test -s conftest$ac_exeext && { | |
5456 | test "$cross_compiling" = yes || | |
5457 | $as_test_x conftest$ac_exeext | |
5458 | }; then | |
545f34cf CR |
5459 | ac_cv_lib_curses_tgetent=yes |
5460 | else | |
dd4f3dd8 | 5461 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
5462 | sed 's/^/| /' conftest.$ac_ext >&5 |
5463 | ||
d3ad40de | 5464 | ac_cv_lib_curses_tgetent=no |
545f34cf | 5465 | fi |
d3ad40de | 5466 | |
dd4f3dd8 CR |
5467 | rm -rf conftest.dSYM |
5468 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 5469 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
5470 | LIBS=$ac_check_lib_save_LIBS |
5471 | fi | |
dd4f3dd8 CR |
5472 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
5473 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
76af2125 | 5474 | if test $ac_cv_lib_curses_tgetent = yes; then |
545f34cf CR |
5475 | bash_cv_termcap_lib=libcurses |
5476 | else | |
dd4f3dd8 CR |
5477 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
5478 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
545f34cf | 5479 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
dd4f3dd8 | 5480 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5481 | else |
5482 | ac_check_lib_save_LIBS=$LIBS | |
5483 | LIBS="-lncurses $LIBS" | |
5484 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5485 | /* confdefs.h. */ |
5486 | _ACEOF | |
5487 | cat confdefs.h >>conftest.$ac_ext | |
5488 | cat >>conftest.$ac_ext <<_ACEOF | |
5489 | /* end confdefs.h. */ | |
5490 | ||
d3ad40de CR |
5491 | /* Override any GCC internal prototype to avoid an error. |
5492 | Use char because int might match the return type of a GCC | |
5493 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
5494 | #ifdef __cplusplus |
5495 | extern "C" | |
5496 | #endif | |
545f34cf CR |
5497 | char tgetent (); |
5498 | int | |
5499 | main () | |
5500 | { | |
d3ad40de | 5501 | return tgetent (); |
545f34cf CR |
5502 | ; |
5503 | return 0; | |
5504 | } | |
5505 | _ACEOF | |
5506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
5507 | if { (ac_try="$ac_link" |
5508 | case "(($ac_try" in | |
5509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5510 | *) ac_try_echo=$ac_try;; | |
5511 | esac | |
dd4f3dd8 CR |
5512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5513 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 5514 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 5515 | ac_status=$? |
a82a04b3 CR |
5516 | grep -v '^ *+' conftest.er1 >conftest.err |
5517 | rm -f conftest.er1 | |
5518 | cat conftest.err >&5 | |
dd4f3dd8 CR |
5519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5520 | (exit $ac_status); } && { | |
5521 | test -z "$ac_c_werror_flag" || | |
5522 | test ! -s conftest.err | |
5523 | } && test -s conftest$ac_exeext && { | |
5524 | test "$cross_compiling" = yes || | |
5525 | $as_test_x conftest$ac_exeext | |
5526 | }; then | |
545f34cf CR |
5527 | ac_cv_lib_ncurses_tgetent=yes |
5528 | else | |
dd4f3dd8 | 5529 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
5530 | sed 's/^/| /' conftest.$ac_ext >&5 |
5531 | ||
d3ad40de | 5532 | ac_cv_lib_ncurses_tgetent=no |
545f34cf | 5533 | fi |
d3ad40de | 5534 | |
dd4f3dd8 CR |
5535 | rm -rf conftest.dSYM |
5536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 5537 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
5538 | LIBS=$ac_check_lib_save_LIBS |
5539 | fi | |
dd4f3dd8 CR |
5540 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
5541 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
76af2125 | 5542 | if test $ac_cv_lib_ncurses_tgetent = yes; then |
545f34cf CR |
5543 | bash_cv_termcap_lib=libncurses |
5544 | else | |
5545 | bash_cv_termcap_lib=gnutermcap | |
5546 | fi | |
5547 | ||
5548 | fi | |
5549 | ||
5550 | fi | |
5551 | ||
5552 | fi | |
5553 | ||
5554 | fi | |
5555 | ||
5556 | fi | |
5557 | ||
5558 | if test "X$_bash_needmsg" = "Xyes"; then | |
dd4f3dd8 CR |
5559 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
5560 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
545f34cf | 5561 | fi |
dd4f3dd8 CR |
5562 | { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
5563 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
545f34cf CR |
5564 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
5565 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5566 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5567 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5568 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5569 | TERMCAP_LIB=-ltermcap | |
5570 | TERMCAP_DEP= | |
5571 | elif test $bash_cv_termcap_lib = libtinfo; then | |
5572 | TERMCAP_LIB=-ltinfo | |
5573 | TERMCAP_DEP= | |
5574 | elif test $bash_cv_termcap_lib = libncurses; then | |
5575 | TERMCAP_LIB=-lncurses | |
5576 | TERMCAP_DEP= | |
5577 | elif test $bash_cv_termcap_lib = libc; then | |
5578 | TERMCAP_LIB= | |
5579 | TERMCAP_DEP= | |
5580 | else | |
5581 | TERMCAP_LIB=-lcurses | |
5582 | TERMCAP_DEP= | |
5583 | fi | |
5584 | ||
5585 | ||
5586 | ||
5587 | ||
dd4f3dd8 CR |
5588 | { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5 |
5589 | $as_echo_n "checking version of installed readline library... " >&6; } | |
545f34cf CR |
5590 | |
5591 | # What a pain in the ass this is. | |
5592 | ||
5593 | # save cpp and ld options | |
5594 | _save_CFLAGS="$CFLAGS" | |
5595 | _save_LDFLAGS="$LDFLAGS" | |
5596 | _save_LIBS="$LIBS" | |
5597 | ||
5598 | # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This | |
5599 | # allows the caller to do something like $_rl_prefix=$withval if the user | |
5600 | # specifies --with-installed-readline=PREFIX as an argument to configure | |
5601 | ||
5602 | if test -z "$ac_cv_rl_prefix"; then | |
5603 | test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} | |
5604 | fi | |
5605 | ||
5606 | eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include | |
5607 | eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib | |
5608 | ||
5609 | LIBS="$LIBS -lreadline ${TERMCAP_LIB}" | |
5610 | CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" | |
5611 | LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" | |
5612 | ||
5613 | if test "${ac_cv_rl_version+set}" = set; then | |
dd4f3dd8 | 5614 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5615 | else |
5616 | if test "$cross_compiling" = yes; then | |
5617 | ac_cv_rl_version='4.2' | |
5618 | else | |
5619 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
5620 | /* confdefs.h. */ |
5621 | _ACEOF | |
5622 | cat confdefs.h >>conftest.$ac_ext | |
5623 | cat >>conftest.$ac_ext <<_ACEOF | |
5624 | /* end confdefs.h. */ | |
5625 | ||
5626 | #include <stdio.h> | |
5627 | #include <readline/readline.h> | |
5628 | ||
798a67db CR |
5629 | extern int rl_gnu_readline_p; |
5630 | ||
545f34cf CR |
5631 | main() |
5632 | { | |
5633 | FILE *fp; | |
5634 | fp = fopen("conftest.rlv", "w"); | |
798a67db CR |
5635 | if (fp == 0) |
5636 | exit(1); | |
5637 | if (rl_gnu_readline_p != 1) | |
5638 | fprintf(fp, "0.0\n"); | |
5639 | else | |
5640 | fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); | |
545f34cf CR |
5641 | fclose(fp); |
5642 | exit(0); | |
5643 | } | |
5644 | ||
5645 | _ACEOF | |
5646 | rm -f conftest$ac_exeext | |
d3ad40de CR |
5647 | if { (ac_try="$ac_link" |
5648 | case "(($ac_try" in | |
5649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5650 | *) ac_try_echo=$ac_try;; | |
5651 | esac | |
dd4f3dd8 CR |
5652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5653 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 5654 | (eval "$ac_link") 2>&5 |
545f34cf | 5655 | ac_status=$? |
dd4f3dd8 | 5656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 5657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
5658 | { (case "(($ac_try" in |
5659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5660 | *) ac_try_echo=$ac_try;; | |
5661 | esac | |
dd4f3dd8 CR |
5662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5663 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 5664 | (eval "$ac_try") 2>&5 |
545f34cf | 5665 | ac_status=$? |
dd4f3dd8 | 5666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
5667 | (exit $ac_status); }; }; then |
5668 | ac_cv_rl_version=`cat conftest.rlv` | |
5669 | else | |
dd4f3dd8 CR |
5670 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
5671 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
5672 | sed 's/^/| /' conftest.$ac_ext >&5 |
5673 | ||
5674 | ( exit $ac_status ) | |
5675 | ac_cv_rl_version='0.0' | |
5676 | fi | |
dd4f3dd8 | 5677 | rm -rf conftest.dSYM |
d3ad40de | 5678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 5679 | fi |
d3ad40de CR |
5680 | |
5681 | ||
545f34cf CR |
5682 | fi |
5683 | ||
5684 | ||
5685 | CFLAGS="$_save_CFLAGS" | |
5686 | LDFLAGS="$_save_LDFLAGS" | |
5687 | LIBS="$_save_LIBS" | |
5688 | ||
5689 | RL_MAJOR=0 | |
5690 | RL_MINOR=0 | |
5691 | ||
5692 | # ( | |
5693 | case "$ac_cv_rl_version" in | |
5694 | 2*|3*|4*|5*|6*|7*|8*|9*) | |
5695 | RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` | |
5696 | RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` | |
5697 | ;; | |
5698 | esac | |
5699 | ||
5700 | # ((( | |
5701 | case $RL_MAJOR in | |
5702 | [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; | |
5703 | [0-9]) _RL_MAJOR=0$RL_MAJOR ;; | |
5704 | *) _RL_MAJOR=00 ;; | |
5705 | esac | |
5706 | ||
5707 | # ((( | |
5708 | case $RL_MINOR in | |
5709 | [0-9][0-9]) _RL_MINOR=$RL_MINOR ;; | |
5710 | [0-9]) _RL_MINOR=0$RL_MINOR ;; | |
5711 | *) _RL_MINOR=00 ;; | |
5712 | esac | |
5713 | ||
5714 | RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" | |
5715 | ||
5716 | # Readline versions greater than 4.2 have these defines in readline.h | |
5717 | ||
5718 | if test $ac_cv_rl_version = '0.0' ; then | |
dd4f3dd8 CR |
5719 | { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5 |
5720 | $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} | |
545f34cf CR |
5721 | elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then |
5722 | # set these for use by the caller | |
5723 | RL_PREFIX=$ac_cv_rl_prefix | |
5724 | RL_LIBDIR=$ac_cv_rl_libdir | |
5725 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
dd4f3dd8 CR |
5726 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
5727 | $as_echo "$ac_cv_rl_version" >&6; } | |
545f34cf CR |
5728 | else |
5729 | ||
5730 | ||
5731 | cat >>confdefs.h <<_ACEOF | |
5732 | @%:@define RL_READLINE_VERSION $RL_VERSION | |
5733 | _ACEOF | |
5734 | ||
5735 | ||
5736 | cat >>confdefs.h <<_ACEOF | |
5737 | @%:@define RL_VERSION_MAJOR $RL_MAJOR | |
5738 | _ACEOF | |
5739 | ||
5740 | ||
5741 | cat >>confdefs.h <<_ACEOF | |
5742 | @%:@define RL_VERSION_MINOR $RL_MINOR | |
5743 | _ACEOF | |
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | # set these for use by the caller | |
5751 | RL_PREFIX=$ac_cv_rl_prefix | |
5752 | RL_LIBDIR=$ac_cv_rl_libdir | |
5753 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
5754 | ||
dd4f3dd8 CR |
5755 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5 |
5756 | $as_echo "$ac_cv_rl_version" >&6; } | |
545f34cf CR |
5757 | |
5758 | fi | |
5759 | ||
5760 | ||
5761 | case "$ac_cv_rl_version" in | |
5762 | 5*|6*|7*|8*|9*) ;; | |
5763 | *) opt_with_installed_readline=no | |
dd4f3dd8 CR |
5764 | { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5 |
5765 | $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;} | |
5766 | { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5 | |
5767 | $as_echo "$as_me: WARNING: using private bash version" >&2;} | |
545f34cf CR |
5768 | ;; |
5769 | esac | |
5770 | fi | |
5771 | ||
fd3925f1 | 5772 | TILDE_LIB=-ltilde |
545f34cf CR |
5773 | if test $opt_readline = yes; then |
5774 | cat >>confdefs.h <<\_ACEOF | |
5775 | @%:@define READLINE 1 | |
5776 | _ACEOF | |
5777 | ||
545f34cf CR |
5778 | if test "$opt_with_installed_readline" != "no" ; then |
5779 | case "$opt_with_installed_readline" in | |
5780 | yes) RL_INCLUDE= ;; | |
5781 | *) case "$RL_INCLUDEDIR" in | |
5782 | /usr/include) ;; | |
5783 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5784 | esac | |
5785 | ;; | |
5786 | esac | |
5787 | READLINE_DEP= | |
233564d2 | 5788 | READLINE_LIB=-lreadline |
fd3925f1 CR |
5789 | # section for OS versions that don't allow unresolved symbols |
5790 | # to be compiled into dynamic libraries. | |
5791 | case "$host_os" in | |
5792 | cygwin*) TILDE_LIB= ;; | |
5793 | esac | |
545f34cf CR |
5794 | else |
5795 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5796 | READLINE_DEP='$(READLINE_LIBRARY)' | |
fd3925f1 | 5797 | # section for OS versions that ship an older/broken version of |
233564d2 CR |
5798 | # readline as a standard dynamic library and don't allow a |
5799 | # static version specified as -llibname to override the | |
5800 | # dynamic version | |
5801 | case "${host_os}" in | |
9d85af6d | 5802 | darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;; |
233564d2 CR |
5803 | *) READLINE_LIB=-lreadline ;; |
5804 | esac | |
545f34cf CR |
5805 | fi |
5806 | else | |
5807 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5808 | READLINE_LIB= READLINE_DEP= | |
5809 | fi | |
5810 | if test $opt_history = yes || test $opt_bang_history = yes; then | |
5811 | if test $opt_history = yes; then | |
5812 | cat >>confdefs.h <<\_ACEOF | |
5813 | @%:@define HISTORY 1 | |
5814 | _ACEOF | |
5815 | ||
5816 | fi | |
5817 | if test $opt_bang_history = yes; then | |
5818 | cat >>confdefs.h <<\_ACEOF | |
5819 | @%:@define BANG_HISTORY 1 | |
5820 | _ACEOF | |
5821 | ||
5822 | fi | |
545f34cf CR |
5823 | if test "$opt_with_installed_readline" != "no"; then |
5824 | HIST_LIBDIR=$RL_LIBDIR | |
5825 | HISTORY_DEP= | |
233564d2 | 5826 | HISTORY_LIB=-lhistory |
545f34cf CR |
5827 | case "$opt_with_installed_readline" in |
5828 | yes) RL_INCLUDE= ;; | |
5829 | *) case "$RL_INCLUDEDIR" in | |
5830 | /usr/include) ;; | |
5831 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5832 | esac | |
5833 | ;; | |
5834 | esac | |
5835 | else | |
5836 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5837 | HISTORY_DEP='$(HISTORY_LIBRARY)' | |
233564d2 CR |
5838 | # section for OS versions that ship an older version of |
5839 | # readline as a standard dynamic library and don't allow a | |
5840 | # static version specified as -llibname to override the | |
5841 | # dynamic version | |
5842 | case "${host_os}" in | |
9d85af6d | 5843 | darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;; |
233564d2 CR |
5844 | *) HISTORY_LIB=-lhistory ;; |
5845 | esac | |
545f34cf CR |
5846 | fi |
5847 | else | |
5848 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5849 | HISTORY_LIB= HISTORY_DEP= | |
5850 | fi | |
5851 | ||
5852 | ||
5853 | ||
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | ||
5859 | ||
5860 | ||
fd3925f1 | 5861 | |
545f34cf CR |
5862 | # Find a good install program. We prefer a C program (faster), |
5863 | # so one script is as good as another. But avoid the broken or | |
5864 | # incompatible versions: | |
5865 | # SysV /etc/install, /usr/sbin/install | |
5866 | # SunOS /usr/etc/install | |
5867 | # IRIX /sbin/install | |
5868 | # AIX /bin/install | |
5869 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5870 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5871 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5872 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
a82a04b3 | 5873 | # OS/2's system install, which has a completely different semantic |
545f34cf | 5874 | # ./install, which can be erroneously created by make from ./install.sh. |
dd4f3dd8 CR |
5875 | # Reject install programs that cannot install multiple files. |
5876 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5877 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
545f34cf CR |
5878 | if test -z "$INSTALL"; then |
5879 | if test "${ac_cv_path_install+set}" = set; then | |
dd4f3dd8 | 5880 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5881 | else |
5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5883 | for as_dir in $PATH | |
5884 | do | |
5885 | IFS=$as_save_IFS | |
5886 | test -z "$as_dir" && as_dir=. | |
5887 | # Account for people who put trailing slashes in PATH elements. | |
5888 | case $as_dir/ in | |
5889 | ./ | .// | /cC/* | \ | |
5890 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
a82a04b3 | 5891 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
545f34cf CR |
5892 | /usr/ucb/* ) ;; |
5893 | *) | |
5894 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5895 | # Don't use installbsd from OSF since it installs stuff as root | |
5896 | # by default. | |
5897 | for ac_prog in ginstall scoinst install; do | |
5898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 5899 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
a82a04b3 CR |
5900 | if test $ac_prog = install && |
5901 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5902 | # AIX install. It has an incompatible calling convention. | |
5903 | : | |
5904 | elif test $ac_prog = install && | |
5905 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5906 | # program-specific install script used by HP pwplus--don't use. | |
5907 | : | |
5908 | else | |
dd4f3dd8 CR |
5909 | rm -rf conftest.one conftest.two conftest.dir |
5910 | echo one > conftest.one | |
5911 | echo two > conftest.two | |
5912 | mkdir conftest.dir | |
5913 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5914 | test -s conftest.one && test -s conftest.two && | |
5915 | test -s conftest.dir/conftest.one && | |
5916 | test -s conftest.dir/conftest.two | |
5917 | then | |
5918 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5919 | break 3 | |
5920 | fi | |
a82a04b3 CR |
5921 | fi |
5922 | fi | |
545f34cf CR |
5923 | done |
5924 | done | |
5925 | ;; | |
5926 | esac | |
dd4f3dd8 | 5927 | |
545f34cf | 5928 | done |
d3ad40de | 5929 | IFS=$as_save_IFS |
545f34cf | 5930 | |
dd4f3dd8 | 5931 | rm -rf conftest.one conftest.two conftest.dir |
545f34cf CR |
5932 | |
5933 | fi | |
5934 | if test "${ac_cv_path_install+set}" = set; then | |
5935 | INSTALL=$ac_cv_path_install | |
5936 | else | |
d3ad40de CR |
5937 | # As a last resort, use the slow shell script. Don't cache a |
5938 | # value for INSTALL within a source directory, because that will | |
545f34cf | 5939 | # break other packages using the cache if that directory is |
d3ad40de | 5940 | # removed, or if the value is a relative name. |
545f34cf CR |
5941 | INSTALL=$ac_install_sh |
5942 | fi | |
5943 | fi | |
dd4f3dd8 CR |
5944 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5945 | $as_echo "$INSTALL" >&6; } | |
545f34cf CR |
5946 | |
5947 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5948 | # It thinks the first close brace ends the variable substitution. | |
5949 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5950 | ||
5951 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5952 | ||
5953 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5954 | ||
5955 | # Extract the first word of "ar", so it can be a program name with args. | |
5956 | set dummy ar; ac_word=$2 | |
dd4f3dd8 CR |
5957 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5958 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 5959 | if test "${ac_cv_prog_AR+set}" = set; then |
dd4f3dd8 | 5960 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
5961 | else |
5962 | if test -n "$AR"; then | |
5963 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5964 | else | |
5965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5966 | for as_dir in $PATH | |
5967 | do | |
5968 | IFS=$as_save_IFS | |
5969 | test -z "$as_dir" && as_dir=. | |
5970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 5971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 5972 | ac_cv_prog_AR="" |
dd4f3dd8 | 5973 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
5974 | break 2 |
5975 | fi | |
5976 | done | |
5977 | done | |
d3ad40de | 5978 | IFS=$as_save_IFS |
545f34cf CR |
5979 | |
5980 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
5981 | fi | |
5982 | fi | |
5983 | AR=$ac_cv_prog_AR | |
5984 | if test -n "$AR"; then | |
dd4f3dd8 CR |
5985 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
5986 | $as_echo "$AR" >&6; } | |
545f34cf | 5987 | else |
dd4f3dd8 CR |
5988 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5989 | $as_echo "no" >&6; } | |
545f34cf CR |
5990 | fi |
5991 | ||
d3ad40de | 5992 | |
545f34cf CR |
5993 | test -n "$ARFLAGS" || ARFLAGS="cr" |
5994 | if test -n "$ac_tool_prefix"; then | |
5995 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5996 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
dd4f3dd8 CR |
5997 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5998 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 5999 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
dd4f3dd8 | 6000 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6001 | else |
6002 | if test -n "$RANLIB"; then | |
6003 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6004 | else | |
6005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6006 | for as_dir in $PATH | |
6007 | do | |
6008 | IFS=$as_save_IFS | |
6009 | test -z "$as_dir" && as_dir=. | |
6010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 6011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 6012 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
dd4f3dd8 | 6013 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
6014 | break 2 |
6015 | fi | |
6016 | done | |
6017 | done | |
d3ad40de | 6018 | IFS=$as_save_IFS |
545f34cf CR |
6019 | |
6020 | fi | |
6021 | fi | |
6022 | RANLIB=$ac_cv_prog_RANLIB | |
6023 | if test -n "$RANLIB"; then | |
dd4f3dd8 CR |
6024 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6025 | $as_echo "$RANLIB" >&6; } | |
545f34cf | 6026 | else |
dd4f3dd8 CR |
6027 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6028 | $as_echo "no" >&6; } | |
545f34cf CR |
6029 | fi |
6030 | ||
d3ad40de | 6031 | |
545f34cf CR |
6032 | fi |
6033 | if test -z "$ac_cv_prog_RANLIB"; then | |
6034 | ac_ct_RANLIB=$RANLIB | |
6035 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6036 | set dummy ranlib; ac_word=$2 | |
dd4f3dd8 CR |
6037 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6038 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 6039 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
dd4f3dd8 | 6040 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6041 | else |
6042 | if test -n "$ac_ct_RANLIB"; then | |
6043 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6044 | else | |
6045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6046 | for as_dir in $PATH | |
6047 | do | |
6048 | IFS=$as_save_IFS | |
6049 | test -z "$as_dir" && as_dir=. | |
6050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 6051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 6052 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
dd4f3dd8 | 6053 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
6054 | break 2 |
6055 | fi | |
6056 | done | |
6057 | done | |
d3ad40de | 6058 | IFS=$as_save_IFS |
545f34cf | 6059 | |
545f34cf CR |
6060 | fi |
6061 | fi | |
6062 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6063 | if test -n "$ac_ct_RANLIB"; then | |
dd4f3dd8 CR |
6064 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6065 | $as_echo "$ac_ct_RANLIB" >&6; } | |
545f34cf | 6066 | else |
dd4f3dd8 CR |
6067 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6068 | $as_echo "no" >&6; } | |
545f34cf CR |
6069 | fi |
6070 | ||
d3ad40de CR |
6071 | if test "x$ac_ct_RANLIB" = x; then |
6072 | RANLIB=":" | |
6073 | else | |
6074 | case $cross_compiling:$ac_tool_warned in | |
6075 | yes:) | |
76af2125 CR |
6076 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6077 | whose name does not start with the host triplet. If you think this | |
6078 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6079 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6080 | whose name does not start with the host triplet. If you think this | |
6081 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
d3ad40de CR |
6082 | ac_tool_warned=yes ;; |
6083 | esac | |
6084 | RANLIB=$ac_ct_RANLIB | |
6085 | fi | |
545f34cf CR |
6086 | else |
6087 | RANLIB="$ac_cv_prog_RANLIB" | |
6088 | fi | |
6089 | ||
6090 | for ac_prog in 'bison -y' byacc | |
6091 | do | |
6092 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6093 | set dummy $ac_prog; ac_word=$2 | |
dd4f3dd8 CR |
6094 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6095 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 6096 | if test "${ac_cv_prog_YACC+set}" = set; then |
dd4f3dd8 | 6097 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6098 | else |
6099 | if test -n "$YACC"; then | |
6100 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6101 | else | |
6102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6103 | for as_dir in $PATH | |
6104 | do | |
6105 | IFS=$as_save_IFS | |
6106 | test -z "$as_dir" && as_dir=. | |
6107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 6108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 6109 | ac_cv_prog_YACC="$ac_prog" |
dd4f3dd8 | 6110 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
6111 | break 2 |
6112 | fi | |
6113 | done | |
6114 | done | |
d3ad40de | 6115 | IFS=$as_save_IFS |
545f34cf CR |
6116 | |
6117 | fi | |
6118 | fi | |
6119 | YACC=$ac_cv_prog_YACC | |
6120 | if test -n "$YACC"; then | |
dd4f3dd8 CR |
6121 | { $as_echo "$as_me:$LINENO: result: $YACC" >&5 |
6122 | $as_echo "$YACC" >&6; } | |
545f34cf | 6123 | else |
dd4f3dd8 CR |
6124 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6125 | $as_echo "no" >&6; } | |
545f34cf CR |
6126 | fi |
6127 | ||
d3ad40de | 6128 | |
545f34cf CR |
6129 | test -n "$YACC" && break |
6130 | done | |
6131 | test -n "$YACC" || YACC="yacc" | |
6132 | ||
dd4f3dd8 CR |
6133 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6134 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6135 | set x ${MAKE-make} | |
6136 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d3ad40de | 6137 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 6138 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6139 | else |
6140 | cat >conftest.make <<\_ACEOF | |
d3ad40de | 6141 | SHELL = /bin/sh |
545f34cf | 6142 | all: |
d3ad40de | 6143 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
545f34cf CR |
6144 | _ACEOF |
6145 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
d3ad40de CR |
6146 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6147 | *@@@%%%=?*=@@@%%%*) | |
6148 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6149 | *) | |
6150 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6151 | esac | |
545f34cf CR |
6152 | rm -f conftest.make |
6153 | fi | |
d3ad40de | 6154 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
dd4f3dd8 CR |
6155 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6156 | $as_echo "yes" >&6; } | |
545f34cf CR |
6157 | SET_MAKE= |
6158 | else | |
dd4f3dd8 CR |
6159 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6160 | $as_echo "no" >&6; } | |
545f34cf CR |
6161 | SET_MAKE="MAKE=${MAKE-make}" |
6162 | fi | |
6163 | ||
6164 | ||
6165 | case "$host_os" in | |
6166 | opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;; | |
6167 | *) MAKE_SHELL=/bin/sh ;; | |
6168 | esac | |
6169 | ||
6170 | ||
10590446 CR |
6171 | if test x$SIZE = x; then |
6172 | if test x$ac_tool_prefix = x; then | |
6173 | SIZE=size | |
6174 | else | |
6175 | SIZE=${ac_tool_prefix}size | |
6176 | save_IFS=$IFS ; IFS=: | |
6177 | size_found=0 | |
6178 | for dir in $PATH; do | |
6179 | if test -x $dir/$SIZE ; then | |
6180 | size_found=1 | |
6181 | break | |
6182 | fi | |
6183 | done | |
6184 | if test $size_found -eq 0; then | |
233564d2 | 6185 | SIZE=: |
10590446 CR |
6186 | fi |
6187 | IFS=$save_IFS | |
6188 | fi | |
6189 | fi | |
6190 | ||
6191 | ||
545f34cf CR |
6192 | cat >>confdefs.h <<\_ACEOF |
6193 | @%:@define _GNU_SOURCE 1 | |
6194 | _ACEOF | |
6195 | ||
6196 | ||
dd4f3dd8 CR |
6197 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
6198 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
545f34cf | 6199 | if test "${ac_cv_c_const+set}" = set; then |
dd4f3dd8 | 6200 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6201 | else |
6202 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6203 | /* confdefs.h. */ |
6204 | _ACEOF | |
6205 | cat confdefs.h >>conftest.$ac_ext | |
6206 | cat >>conftest.$ac_ext <<_ACEOF | |
6207 | /* end confdefs.h. */ | |
6208 | ||
6209 | int | |
6210 | main () | |
6211 | { | |
6212 | /* FIXME: Include the comments suggested by Paul. */ | |
6213 | #ifndef __cplusplus | |
6214 | /* Ultrix mips cc rejects this. */ | |
6215 | typedef int charset[2]; | |
dd4f3dd8 | 6216 | const charset cs; |
545f34cf | 6217 | /* SunOS 4.1.1 cc rejects this. */ |
dd4f3dd8 CR |
6218 | char const *const *pcpcc; |
6219 | char **ppc; | |
545f34cf CR |
6220 | /* NEC SVR4.0.2 mips cc rejects this. */ |
6221 | struct point {int x, y;}; | |
6222 | static struct point const zero = {0,0}; | |
6223 | /* AIX XL C 1.02.0.0 rejects this. | |
6224 | It does not let you subtract one const X* pointer from another in | |
6225 | an arm of an if-expression whose if-part is not a constant | |
6226 | expression */ | |
6227 | const char *g = "string"; | |
dd4f3dd8 | 6228 | pcpcc = &g + (g ? g-g : 0); |
545f34cf | 6229 | /* HPUX 7.0 cc rejects these. */ |
dd4f3dd8 CR |
6230 | ++pcpcc; |
6231 | ppc = (char**) pcpcc; | |
6232 | pcpcc = (char const *const *) ppc; | |
545f34cf CR |
6233 | { /* SCO 3.2v4 cc rejects this. */ |
6234 | char *t; | |
6235 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6236 | ||
6237 | *t++ = 0; | |
d3ad40de | 6238 | if (s) return 0; |
545f34cf CR |
6239 | } |
6240 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6241 | int x[] = {25, 17}; | |
6242 | const int *foo = &x[0]; | |
6243 | ++foo; | |
6244 | } | |
6245 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6246 | typedef const int *iptr; | |
6247 | iptr p = 0; | |
6248 | ++p; | |
6249 | } | |
6250 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6251 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6252 | struct s { int j; const int *ap[3]; }; | |
6253 | struct s *b; b->j = 5; | |
6254 | } | |
6255 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6256 | const int foo = 10; | |
d3ad40de | 6257 | if (!foo) return 0; |
545f34cf | 6258 | } |
dd4f3dd8 | 6259 | return !cs[0] && !zero.x; |
545f34cf CR |
6260 | #endif |
6261 | ||
6262 | ; | |
6263 | return 0; | |
6264 | } | |
6265 | _ACEOF | |
6266 | rm -f conftest.$ac_objext | |
d3ad40de CR |
6267 | if { (ac_try="$ac_compile" |
6268 | case "(($ac_try" in | |
6269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6270 | *) ac_try_echo=$ac_try;; | |
6271 | esac | |
dd4f3dd8 CR |
6272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6273 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6274 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 6275 | ac_status=$? |
a82a04b3 CR |
6276 | grep -v '^ *+' conftest.er1 >conftest.err |
6277 | rm -f conftest.er1 | |
6278 | cat conftest.err >&5 | |
dd4f3dd8 CR |
6279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6280 | (exit $ac_status); } && { | |
6281 | test -z "$ac_c_werror_flag" || | |
6282 | test ! -s conftest.err | |
6283 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
6284 | ac_cv_c_const=yes |
6285 | else | |
dd4f3dd8 | 6286 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
6287 | sed 's/^/| /' conftest.$ac_ext >&5 |
6288 | ||
d3ad40de | 6289 | ac_cv_c_const=no |
545f34cf | 6290 | fi |
d3ad40de CR |
6291 | |
6292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 6293 | fi |
dd4f3dd8 CR |
6294 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
6295 | $as_echo "$ac_cv_c_const" >&6; } | |
545f34cf CR |
6296 | if test $ac_cv_c_const = no; then |
6297 | ||
6298 | cat >>confdefs.h <<\_ACEOF | |
dd4f3dd8 | 6299 | @%:@define const /**/ |
545f34cf CR |
6300 | _ACEOF |
6301 | ||
6302 | fi | |
6303 | ||
dd4f3dd8 CR |
6304 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
6305 | $as_echo_n "checking for inline... " >&6; } | |
545f34cf | 6306 | if test "${ac_cv_c_inline+set}" = set; then |
dd4f3dd8 | 6307 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6308 | else |
6309 | ac_cv_c_inline=no | |
6310 | for ac_kw in inline __inline__ __inline; do | |
6311 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6312 | /* confdefs.h. */ |
6313 | _ACEOF | |
6314 | cat confdefs.h >>conftest.$ac_ext | |
6315 | cat >>conftest.$ac_ext <<_ACEOF | |
6316 | /* end confdefs.h. */ | |
6317 | #ifndef __cplusplus | |
6318 | typedef int foo_t; | |
6319 | static $ac_kw foo_t static_foo () {return 0; } | |
6320 | $ac_kw foo_t foo () {return 0; } | |
6321 | #endif | |
6322 | ||
6323 | _ACEOF | |
6324 | rm -f conftest.$ac_objext | |
d3ad40de CR |
6325 | if { (ac_try="$ac_compile" |
6326 | case "(($ac_try" in | |
6327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6328 | *) ac_try_echo=$ac_try;; | |
6329 | esac | |
dd4f3dd8 CR |
6330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6331 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6332 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 6333 | ac_status=$? |
a82a04b3 CR |
6334 | grep -v '^ *+' conftest.er1 >conftest.err |
6335 | rm -f conftest.er1 | |
6336 | cat conftest.err >&5 | |
dd4f3dd8 CR |
6337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6338 | (exit $ac_status); } && { | |
6339 | test -z "$ac_c_werror_flag" || | |
6340 | test ! -s conftest.err | |
6341 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 6342 | ac_cv_c_inline=$ac_kw |
545f34cf | 6343 | else |
dd4f3dd8 | 6344 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
6345 | sed 's/^/| /' conftest.$ac_ext >&5 |
6346 | ||
d3ad40de | 6347 | |
545f34cf | 6348 | fi |
d3ad40de CR |
6349 | |
6350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6351 | test "$ac_cv_c_inline" != no && break | |
545f34cf CR |
6352 | done |
6353 | ||
6354 | fi | |
dd4f3dd8 CR |
6355 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
6356 | $as_echo "$ac_cv_c_inline" >&6; } | |
a82a04b3 CR |
6357 | |
6358 | ||
545f34cf CR |
6359 | case $ac_cv_c_inline in |
6360 | inline | yes) ;; | |
a82a04b3 CR |
6361 | *) |
6362 | case $ac_cv_c_inline in | |
6363 | no) ac_val=;; | |
6364 | *) ac_val=$ac_cv_c_inline;; | |
6365 | esac | |
6366 | cat >>confdefs.h <<_ACEOF | |
6367 | #ifndef __cplusplus | |
6368 | #define inline $ac_val | |
6369 | #endif | |
545f34cf | 6370 | _ACEOF |
a82a04b3 | 6371 | ;; |
545f34cf CR |
6372 | esac |
6373 | ||
dd4f3dd8 CR |
6374 | |
6375 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
6376 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
545f34cf | 6377 | if test "${ac_cv_c_bigendian+set}" = set; then |
dd4f3dd8 | 6378 | $as_echo_n "(cached) " >&6 |
545f34cf | 6379 | else |
dd4f3dd8 | 6380 | ac_cv_c_bigendian=unknown |
76af2125 CR |
6381 | # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined. |
6382 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6383 | /* confdefs.h. */ |
6384 | _ACEOF | |
6385 | cat confdefs.h >>conftest.$ac_ext | |
6386 | cat >>conftest.$ac_ext <<_ACEOF | |
6387 | /* end confdefs.h. */ | |
76af2125 CR |
6388 | #if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__) |
6389 | neither is defined; | |
dd4f3dd8 CR |
6390 | #endif |
6391 | typedef int dummy; | |
6392 | ||
545f34cf CR |
6393 | _ACEOF |
6394 | rm -f conftest.$ac_objext | |
d3ad40de CR |
6395 | if { (ac_try="$ac_compile" |
6396 | case "(($ac_try" in | |
6397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6398 | *) ac_try_echo=$ac_try;; | |
6399 | esac | |
dd4f3dd8 CR |
6400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6401 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6402 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 6403 | ac_status=$? |
a82a04b3 CR |
6404 | grep -v '^ *+' conftest.er1 >conftest.err |
6405 | rm -f conftest.er1 | |
6406 | cat conftest.err >&5 | |
dd4f3dd8 CR |
6407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6408 | (exit $ac_status); } && { | |
6409 | test -z "$ac_c_werror_flag" || | |
6410 | test ! -s conftest.err | |
6411 | } && test -s conftest.$ac_objext; then | |
76af2125 | 6412 | ac_cv_c_bigendian=universal |
dd4f3dd8 CR |
6413 | else |
6414 | $as_echo "$as_me: failed program was:" >&5 | |
6415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6416 | ||
6417 | ||
6418 | fi | |
6419 | ||
6420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6421 | if test $ac_cv_c_bigendian = unknown; then | |
6422 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6423 | cat >conftest.$ac_ext <<_ACEOF | |
6424 | /* confdefs.h. */ | |
6425 | _ACEOF | |
6426 | cat confdefs.h >>conftest.$ac_ext | |
6427 | cat >>conftest.$ac_ext <<_ACEOF | |
6428 | /* end confdefs.h. */ | |
6429 | #include <sys/types.h> | |
6430 | #include <sys/param.h> | |
6431 | ||
6432 | int | |
6433 | main () | |
6434 | { | |
6435 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6436 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6437 | && LITTLE_ENDIAN) | |
6438 | bogus endian macros | |
6439 | #endif | |
6440 | ||
6441 | ; | |
6442 | return 0; | |
6443 | } | |
6444 | _ACEOF | |
6445 | rm -f conftest.$ac_objext | |
6446 | if { (ac_try="$ac_compile" | |
6447 | case "(($ac_try" in | |
2e4498b3 CR |
6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6449 | *) ac_try_echo=$ac_try;; | |
6450 | esac | |
dd4f3dd8 CR |
6451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6452 | $as_echo "$ac_try_echo") >&5 | |
6453 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 6454 | ac_status=$? |
dd4f3dd8 CR |
6455 | grep -v '^ *+' conftest.er1 >conftest.err |
6456 | rm -f conftest.er1 | |
6457 | cat conftest.err >&5 | |
6458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6459 | (exit $ac_status); } && { | |
6460 | test -z "$ac_c_werror_flag" || | |
6461 | test ! -s conftest.err | |
6462 | } && test -s conftest.$ac_objext; then | |
545f34cf | 6463 | # It does; now see whether it defined to BIG_ENDIAN or not. |
dd4f3dd8 | 6464 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
6465 | /* confdefs.h. */ |
6466 | _ACEOF | |
6467 | cat confdefs.h >>conftest.$ac_ext | |
6468 | cat >>conftest.$ac_ext <<_ACEOF | |
6469 | /* end confdefs.h. */ | |
6470 | #include <sys/types.h> | |
dd4f3dd8 CR |
6471 | #include <sys/param.h> |
6472 | ||
545f34cf CR |
6473 | int |
6474 | main () | |
6475 | { | |
6476 | #if BYTE_ORDER != BIG_ENDIAN | |
dd4f3dd8 CR |
6477 | not big endian |
6478 | #endif | |
6479 | ||
545f34cf CR |
6480 | ; |
6481 | return 0; | |
6482 | } | |
6483 | _ACEOF | |
6484 | rm -f conftest.$ac_objext | |
d3ad40de CR |
6485 | if { (ac_try="$ac_compile" |
6486 | case "(($ac_try" in | |
6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6488 | *) ac_try_echo=$ac_try;; | |
6489 | esac | |
dd4f3dd8 CR |
6490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6491 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6492 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 6493 | ac_status=$? |
a82a04b3 CR |
6494 | grep -v '^ *+' conftest.er1 >conftest.err |
6495 | rm -f conftest.er1 | |
6496 | cat conftest.err >&5 | |
dd4f3dd8 CR |
6497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6498 | (exit $ac_status); } && { | |
6499 | test -z "$ac_c_werror_flag" || | |
6500 | test ! -s conftest.err | |
6501 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
6502 | ac_cv_c_bigendian=yes |
6503 | else | |
dd4f3dd8 | 6504 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
6505 | sed 's/^/| /' conftest.$ac_ext >&5 |
6506 | ||
d3ad40de | 6507 | ac_cv_c_bigendian=no |
545f34cf | 6508 | fi |
d3ad40de CR |
6509 | |
6510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 6511 | else |
dd4f3dd8 | 6512 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
6513 | sed 's/^/| /' conftest.$ac_ext >&5 |
6514 | ||
dd4f3dd8 CR |
6515 | |
6516 | fi | |
6517 | ||
6518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6519 | fi | |
6520 | if test $ac_cv_c_bigendian = unknown; then | |
6521 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6522 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6523 | /* confdefs.h. */ |
6524 | _ACEOF | |
6525 | cat confdefs.h >>conftest.$ac_ext | |
6526 | cat >>conftest.$ac_ext <<_ACEOF | |
6527 | /* end confdefs.h. */ | |
dd4f3dd8 CR |
6528 | #include <limits.h> |
6529 | ||
545f34cf CR |
6530 | int |
6531 | main () | |
6532 | { | |
dd4f3dd8 CR |
6533 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
6534 | bogus endian macros | |
6535 | #endif | |
6536 | ||
545f34cf CR |
6537 | ; |
6538 | return 0; | |
6539 | } | |
6540 | _ACEOF | |
6541 | rm -f conftest.$ac_objext | |
d3ad40de CR |
6542 | if { (ac_try="$ac_compile" |
6543 | case "(($ac_try" in | |
6544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6545 | *) ac_try_echo=$ac_try;; | |
6546 | esac | |
dd4f3dd8 CR |
6547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6548 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6549 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 6550 | ac_status=$? |
a82a04b3 CR |
6551 | grep -v '^ *+' conftest.er1 >conftest.err |
6552 | rm -f conftest.er1 | |
6553 | cat conftest.err >&5 | |
dd4f3dd8 CR |
6554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6555 | (exit $ac_status); } && { | |
6556 | test -z "$ac_c_werror_flag" || | |
6557 | test ! -s conftest.err | |
6558 | } && test -s conftest.$ac_objext; then | |
6559 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6560 | cat >conftest.$ac_ext <<_ACEOF | |
6561 | /* confdefs.h. */ | |
6562 | _ACEOF | |
6563 | cat confdefs.h >>conftest.$ac_ext | |
6564 | cat >>conftest.$ac_ext <<_ACEOF | |
6565 | /* end confdefs.h. */ | |
6566 | #include <limits.h> | |
6567 | ||
6568 | int | |
6569 | main () | |
6570 | { | |
6571 | #ifndef _BIG_ENDIAN | |
6572 | not big endian | |
6573 | #endif | |
6574 | ||
6575 | ; | |
6576 | return 0; | |
6577 | } | |
6578 | _ACEOF | |
6579 | rm -f conftest.$ac_objext | |
6580 | if { (ac_try="$ac_compile" | |
6581 | case "(($ac_try" in | |
2e4498b3 CR |
6582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6583 | *) ac_try_echo=$ac_try;; | |
6584 | esac | |
dd4f3dd8 CR |
6585 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6586 | $as_echo "$ac_try_echo") >&5 | |
6587 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 6588 | ac_status=$? |
dd4f3dd8 CR |
6589 | grep -v '^ *+' conftest.er1 >conftest.err |
6590 | rm -f conftest.er1 | |
6591 | cat conftest.err >&5 | |
6592 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6593 | (exit $ac_status); } && { | |
6594 | test -z "$ac_c_werror_flag" || | |
6595 | test ! -s conftest.err | |
6596 | } && test -s conftest.$ac_objext; then | |
6597 | ac_cv_c_bigendian=yes | |
6598 | else | |
6599 | $as_echo "$as_me: failed program was:" >&5 | |
6600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6601 | ||
6602 | ac_cv_c_bigendian=no | |
6603 | fi | |
6604 | ||
6605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6606 | else | |
6607 | $as_echo "$as_me: failed program was:" >&5 | |
6608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6609 | ||
6610 | ||
6611 | fi | |
6612 | ||
6613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6614 | fi | |
6615 | if test $ac_cv_c_bigendian = unknown; then | |
6616 | # Compile a test program. | |
6617 | if test "$cross_compiling" = yes; then | |
6618 | # Try to guess by grepping values from an object file. | |
6619 | cat >conftest.$ac_ext <<_ACEOF | |
6620 | /* confdefs.h. */ | |
6621 | _ACEOF | |
6622 | cat confdefs.h >>conftest.$ac_ext | |
6623 | cat >>conftest.$ac_ext <<_ACEOF | |
6624 | /* end confdefs.h. */ | |
6625 | short int ascii_mm[] = | |
6626 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6627 | short int ascii_ii[] = | |
6628 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6629 | int use_ascii (int i) { | |
6630 | return ascii_mm[i] + ascii_ii[i]; | |
6631 | } | |
6632 | short int ebcdic_ii[] = | |
6633 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6634 | short int ebcdic_mm[] = | |
6635 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6636 | int use_ebcdic (int i) { | |
6637 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6638 | } | |
6639 | extern int foo; | |
6640 | ||
6641 | int | |
6642 | main () | |
6643 | { | |
6644 | return use_ascii (foo) == use_ebcdic (foo); | |
6645 | ; | |
6646 | return 0; | |
6647 | } | |
6648 | _ACEOF | |
6649 | rm -f conftest.$ac_objext | |
6650 | if { (ac_try="$ac_compile" | |
6651 | case "(($ac_try" in | |
2e4498b3 CR |
6652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6653 | *) ac_try_echo=$ac_try;; | |
6654 | esac | |
dd4f3dd8 CR |
6655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6656 | $as_echo "$ac_try_echo") >&5 | |
6657 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 6658 | ac_status=$? |
dd4f3dd8 CR |
6659 | grep -v '^ *+' conftest.er1 >conftest.err |
6660 | rm -f conftest.er1 | |
6661 | cat conftest.err >&5 | |
6662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6663 | (exit $ac_status); } && { | |
6664 | test -z "$ac_c_werror_flag" || | |
6665 | test ! -s conftest.err | |
6666 | } && test -s conftest.$ac_objext; then | |
6667 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6668 | ac_cv_c_bigendian=yes | |
6669 | fi | |
6670 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6671 | if test "$ac_cv_c_bigendian" = unknown; then | |
6672 | ac_cv_c_bigendian=no | |
6673 | else | |
6674 | # finding both strings is unlikely to happen, but who knows? | |
6675 | ac_cv_c_bigendian=unknown | |
6676 | fi | |
6677 | fi | |
09767ff0 | 6678 | else |
dd4f3dd8 | 6679 | $as_echo "$as_me: failed program was:" >&5 |
09767ff0 CR |
6680 | sed 's/^/| /' conftest.$ac_ext >&5 |
6681 | ||
6682 | ||
545f34cf | 6683 | fi |
d3ad40de CR |
6684 | |
6685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
6686 | else |
6687 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6688 | /* confdefs.h. */ |
6689 | _ACEOF | |
6690 | cat confdefs.h >>conftest.$ac_ext | |
6691 | cat >>conftest.$ac_ext <<_ACEOF | |
6692 | /* end confdefs.h. */ | |
d3ad40de | 6693 | $ac_includes_default |
545f34cf CR |
6694 | int |
6695 | main () | |
6696 | { | |
d3ad40de | 6697 | |
dd4f3dd8 CR |
6698 | /* Are we little or big endian? From Harbison&Steele. */ |
6699 | union | |
6700 | { | |
6701 | long int l; | |
6702 | char c[sizeof (long int)]; | |
6703 | } u; | |
6704 | u.l = 1; | |
6705 | return u.c[sizeof (long int) - 1] == 1; | |
6706 | ||
d3ad40de CR |
6707 | ; |
6708 | return 0; | |
545f34cf CR |
6709 | } |
6710 | _ACEOF | |
6711 | rm -f conftest$ac_exeext | |
d3ad40de CR |
6712 | if { (ac_try="$ac_link" |
6713 | case "(($ac_try" in | |
6714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6715 | *) ac_try_echo=$ac_try;; | |
6716 | esac | |
dd4f3dd8 CR |
6717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6718 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6719 | (eval "$ac_link") 2>&5 |
545f34cf | 6720 | ac_status=$? |
dd4f3dd8 | 6721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 6722 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
6723 | { (case "(($ac_try" in |
6724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6725 | *) ac_try_echo=$ac_try;; | |
6726 | esac | |
dd4f3dd8 CR |
6727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6728 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6729 | (eval "$ac_try") 2>&5 |
545f34cf | 6730 | ac_status=$? |
dd4f3dd8 | 6731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
6732 | (exit $ac_status); }; }; then |
6733 | ac_cv_c_bigendian=no | |
6734 | else | |
dd4f3dd8 CR |
6735 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6736 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
6737 | sed 's/^/| /' conftest.$ac_ext >&5 |
6738 | ||
6739 | ( exit $ac_status ) | |
6740 | ac_cv_c_bigendian=yes | |
6741 | fi | |
dd4f3dd8 | 6742 | rm -rf conftest.dSYM |
d3ad40de | 6743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 6744 | fi |
d3ad40de CR |
6745 | |
6746 | ||
dd4f3dd8 | 6747 | fi |
545f34cf | 6748 | fi |
dd4f3dd8 CR |
6749 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
6750 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6751 | case $ac_cv_c_bigendian in #( | |
6752 | yes) | |
6753 | cat >>confdefs.h <<\_ACEOF | |
545f34cf CR |
6754 | @%:@define WORDS_BIGENDIAN 1 |
6755 | _ACEOF | |
dd4f3dd8 CR |
6756 | ;; #( |
6757 | no) | |
6758 | ;; #( | |
6759 | universal) | |
76af2125 | 6760 | ;; #( |
dd4f3dd8 CR |
6761 | *) |
6762 | { { $as_echo "$as_me:$LINENO: error: unknown endianness | |
6763 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
6764 | $as_echo "$as_me: error: unknown endianness | |
6765 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
545f34cf | 6766 | { (exit 1); exit 1; }; } ;; |
dd4f3dd8 | 6767 | esac |
545f34cf | 6768 | |
dd4f3dd8 CR |
6769 | { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 |
6770 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } | |
545f34cf | 6771 | if test "${ac_cv_c_stringize+set}" = set; then |
dd4f3dd8 | 6772 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6773 | else |
6774 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6775 | /* confdefs.h. */ |
6776 | _ACEOF | |
6777 | cat confdefs.h >>conftest.$ac_ext | |
6778 | cat >>conftest.$ac_ext <<_ACEOF | |
6779 | /* end confdefs.h. */ | |
6780 | @%:@define x(y) #y | |
6781 | ||
6782 | char *s = x(teststring); | |
6783 | _ACEOF | |
6784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6785 | $EGREP "@%:@teststring" >/dev/null 2>&1; then | |
6786 | ac_cv_c_stringize=no | |
6787 | else | |
6788 | ac_cv_c_stringize=yes | |
6789 | fi | |
6790 | rm -f conftest* | |
6791 | ||
6792 | fi | |
dd4f3dd8 CR |
6793 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 |
6794 | $as_echo "$ac_cv_c_stringize" >&6; } | |
545f34cf CR |
6795 | if test $ac_cv_c_stringize = yes; then |
6796 | ||
6797 | cat >>confdefs.h <<\_ACEOF | |
6798 | @%:@define HAVE_STRINGIZE 1 | |
6799 | _ACEOF | |
6800 | ||
6801 | fi | |
6802 | ||
d3ad40de CR |
6803 | |
6804 | ||
dd4f3dd8 CR |
6805 | { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5 |
6806 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | |
d3ad40de | 6807 | if test "${ac_cv_type_long_double_wider+set}" = set; then |
dd4f3dd8 | 6808 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6809 | else |
6810 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6811 | /* confdefs.h. */ |
6812 | _ACEOF | |
6813 | cat confdefs.h >>conftest.$ac_ext | |
6814 | cat >>conftest.$ac_ext <<_ACEOF | |
6815 | /* end confdefs.h. */ | |
6816 | #include <float.h> | |
d3ad40de CR |
6817 | long double const a[] = |
6818 | { | |
6819 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | |
6820 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON | |
6821 | }; | |
6822 | long double | |
6823 | f (long double x) | |
6824 | { | |
6825 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | |
6826 | + (x ? f (x) : 'c')); | |
6827 | } | |
6828 | ||
545f34cf CR |
6829 | int |
6830 | main () | |
6831 | { | |
d3ad40de CR |
6832 | static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
6833 | + (DBL_MANT_DIG < LDBL_MANT_DIG) | |
6834 | - (LDBL_MAX_EXP < DBL_MAX_EXP) | |
6835 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) | |
6836 | && (int) LDBL_EPSILON == 0 | |
6837 | )@:>@; | |
545f34cf CR |
6838 | test_array @<:@0@:>@ = 0 |
6839 | ||
6840 | ; | |
6841 | return 0; | |
6842 | } | |
6843 | _ACEOF | |
6844 | rm -f conftest.$ac_objext | |
d3ad40de CR |
6845 | if { (ac_try="$ac_compile" |
6846 | case "(($ac_try" in | |
6847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6848 | *) ac_try_echo=$ac_try;; | |
6849 | esac | |
dd4f3dd8 CR |
6850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6851 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6852 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 6853 | ac_status=$? |
a82a04b3 CR |
6854 | grep -v '^ *+' conftest.er1 >conftest.err |
6855 | rm -f conftest.er1 | |
6856 | cat conftest.err >&5 | |
dd4f3dd8 CR |
6857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6858 | (exit $ac_status); } && { | |
6859 | test -z "$ac_c_werror_flag" || | |
6860 | test ! -s conftest.err | |
6861 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 6862 | ac_cv_type_long_double_wider=yes |
545f34cf | 6863 | else |
dd4f3dd8 | 6864 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
6865 | sed 's/^/| /' conftest.$ac_ext >&5 |
6866 | ||
d3ad40de | 6867 | ac_cv_type_long_double_wider=no |
545f34cf | 6868 | fi |
d3ad40de CR |
6869 | |
6870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 6871 | fi |
dd4f3dd8 CR |
6872 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5 |
6873 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | |
d3ad40de CR |
6874 | if test $ac_cv_type_long_double_wider = yes; then |
6875 | ||
9d6e5e30 | 6876 | cat >>confdefs.h <<\_ACEOF |
d3ad40de | 6877 | @%:@define HAVE_LONG_DOUBLE_WIDER 1 |
9d6e5e30 | 6878 | _ACEOF |
545f34cf | 6879 | |
d3ad40de CR |
6880 | fi |
6881 | ||
6882 | ac_cv_c_long_double=$ac_cv_type_long_double_wider | |
6883 | if test $ac_cv_c_long_double = yes; then | |
6884 | ||
6885 | cat >>confdefs.h <<\_ACEOF | |
6886 | @%:@define HAVE_LONG_DOUBLE 1 | |
6887 | _ACEOF | |
28157acd | 6888 | |
d3ad40de CR |
6889 | fi |
6890 | ||
dd4f3dd8 CR |
6891 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
6892 | $as_echo_n "checking for function prototypes... " >&6; } | |
d3ad40de | 6893 | if test "$ac_cv_prog_cc_c89" != no; then |
dd4f3dd8 CR |
6894 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6895 | $as_echo "yes" >&6; } | |
545f34cf CR |
6896 | |
6897 | cat >>confdefs.h <<\_ACEOF | |
6898 | @%:@define PROTOTYPES 1 | |
6899 | _ACEOF | |
6900 | ||
6901 | ||
6902 | cat >>confdefs.h <<\_ACEOF | |
6903 | @%:@define __PROTOTYPES 1 | |
6904 | _ACEOF | |
6905 | ||
6906 | else | |
dd4f3dd8 CR |
6907 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6908 | $as_echo "no" >&6; } | |
545f34cf CR |
6909 | fi |
6910 | ||
6911 | ||
dd4f3dd8 CR |
6912 | { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
6913 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
545f34cf | 6914 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
dd4f3dd8 | 6915 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
6916 | else |
6917 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
6918 | /* confdefs.h. */ |
6919 | _ACEOF | |
6920 | cat confdefs.h >>conftest.$ac_ext | |
6921 | cat >>conftest.$ac_ext <<_ACEOF | |
6922 | /* end confdefs.h. */ | |
6923 | $ac_includes_default | |
6924 | int | |
6925 | main () | |
6926 | { | |
6927 | static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@; | |
6928 | test_array @<:@0@:>@ = 0 | |
6929 | ||
6930 | ; | |
6931 | return 0; | |
6932 | } | |
6933 | _ACEOF | |
6934 | rm -f conftest.$ac_objext | |
d3ad40de CR |
6935 | if { (ac_try="$ac_compile" |
6936 | case "(($ac_try" in | |
6937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6938 | *) ac_try_echo=$ac_try;; | |
6939 | esac | |
dd4f3dd8 CR |
6940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6941 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 6942 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 6943 | ac_status=$? |
a82a04b3 CR |
6944 | grep -v '^ *+' conftest.er1 >conftest.err |
6945 | rm -f conftest.er1 | |
6946 | cat conftest.err >&5 | |
dd4f3dd8 CR |
6947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6948 | (exit $ac_status); } && { | |
6949 | test -z "$ac_c_werror_flag" || | |
6950 | test ! -s conftest.err | |
6951 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
6952 | ac_cv_c_char_unsigned=no |
6953 | else | |
dd4f3dd8 | 6954 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
6955 | sed 's/^/| /' conftest.$ac_ext >&5 |
6956 | ||
d3ad40de | 6957 | ac_cv_c_char_unsigned=yes |
545f34cf | 6958 | fi |
d3ad40de CR |
6959 | |
6960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 6961 | fi |
dd4f3dd8 CR |
6962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
6963 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
545f34cf CR |
6964 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
6965 | cat >>confdefs.h <<\_ACEOF | |
6966 | @%:@define __CHAR_UNSIGNED__ 1 | |
6967 | _ACEOF | |
6968 | ||
a927e029 CR |
6969 | fi |
6970 | ||
6971 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 | |
6972 | $as_echo_n "checking for working volatile... " >&6; } | |
6973 | if test "${ac_cv_c_volatile+set}" = set; then | |
6974 | $as_echo_n "(cached) " >&6 | |
6975 | else | |
6976 | cat >conftest.$ac_ext <<_ACEOF | |
6977 | /* confdefs.h. */ | |
6978 | _ACEOF | |
6979 | cat confdefs.h >>conftest.$ac_ext | |
6980 | cat >>conftest.$ac_ext <<_ACEOF | |
6981 | /* end confdefs.h. */ | |
6982 | ||
6983 | int | |
6984 | main () | |
6985 | { | |
6986 | ||
6987 | volatile int x; | |
6988 | int * volatile y = (int *) 0; | |
6989 | return !x && !y; | |
6990 | ; | |
6991 | return 0; | |
6992 | } | |
6993 | _ACEOF | |
6994 | rm -f conftest.$ac_objext | |
6995 | if { (ac_try="$ac_compile" | |
6996 | case "(($ac_try" in | |
6997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6998 | *) ac_try_echo=$ac_try;; | |
6999 | esac | |
7000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7001 | $as_echo "$ac_try_echo") >&5 | |
7002 | (eval "$ac_compile") 2>conftest.er1 | |
7003 | ac_status=$? | |
7004 | grep -v '^ *+' conftest.er1 >conftest.err | |
7005 | rm -f conftest.er1 | |
7006 | cat conftest.err >&5 | |
7007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7008 | (exit $ac_status); } && { | |
7009 | test -z "$ac_c_werror_flag" || | |
7010 | test ! -s conftest.err | |
7011 | } && test -s conftest.$ac_objext; then | |
7012 | ac_cv_c_volatile=yes | |
7013 | else | |
7014 | $as_echo "$as_me: failed program was:" >&5 | |
7015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7016 | ||
7017 | ac_cv_c_volatile=no | |
7018 | fi | |
7019 | ||
7020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7021 | fi | |
7022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 | |
7023 | $as_echo "$ac_cv_c_volatile" >&6; } | |
7024 | if test $ac_cv_c_volatile = no; then | |
7025 | ||
7026 | cat >>confdefs.h <<\_ACEOF | |
7027 | @%:@define volatile /**/ | |
7028 | _ACEOF | |
7029 | ||
545f34cf CR |
7030 | fi |
7031 | ||
c1d39fb8 CR |
7032 | { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
7033 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | |
7034 | if test "${ac_cv_c_restrict+set}" = set; then | |
7035 | $as_echo_n "(cached) " >&6 | |
7036 | else | |
7037 | ac_cv_c_restrict=no | |
7038 | # The order here caters to the fact that C++ does not require restrict. | |
7039 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
7040 | cat >conftest.$ac_ext <<_ACEOF | |
7041 | /* confdefs.h. */ | |
7042 | _ACEOF | |
7043 | cat confdefs.h >>conftest.$ac_ext | |
7044 | cat >>conftest.$ac_ext <<_ACEOF | |
7045 | /* end confdefs.h. */ | |
7046 | typedef int * int_ptr; | |
7047 | int foo (int_ptr $ac_kw ip) { | |
7048 | return ip[0]; | |
7049 | } | |
7050 | int | |
7051 | main () | |
7052 | { | |
7053 | int s[1]; | |
7054 | int * $ac_kw t = s; | |
7055 | t[0] = 0; | |
7056 | return foo(t) | |
7057 | ; | |
7058 | return 0; | |
7059 | } | |
7060 | _ACEOF | |
7061 | rm -f conftest.$ac_objext | |
7062 | if { (ac_try="$ac_compile" | |
7063 | case "(($ac_try" in | |
7064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7065 | *) ac_try_echo=$ac_try;; | |
7066 | esac | |
7067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7068 | $as_echo "$ac_try_echo") >&5 | |
7069 | (eval "$ac_compile") 2>conftest.er1 | |
7070 | ac_status=$? | |
7071 | grep -v '^ *+' conftest.er1 >conftest.err | |
7072 | rm -f conftest.er1 | |
7073 | cat conftest.err >&5 | |
7074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7075 | (exit $ac_status); } && { | |
7076 | test -z "$ac_c_werror_flag" || | |
7077 | test ! -s conftest.err | |
7078 | } && test -s conftest.$ac_objext; then | |
7079 | ac_cv_c_restrict=$ac_kw | |
7080 | else | |
7081 | $as_echo "$as_me: failed program was:" >&5 | |
7082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7083 | ||
7084 | ||
7085 | fi | |
7086 | ||
7087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7088 | test "$ac_cv_c_restrict" != no && break | |
7089 | done | |
7090 | ||
7091 | fi | |
7092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 | |
7093 | $as_echo "$ac_cv_c_restrict" >&6; } | |
7094 | ||
7095 | ||
7096 | case $ac_cv_c_restrict in | |
7097 | restrict) ;; | |
7098 | no) cat >>confdefs.h <<\_ACEOF | |
7099 | @%:@define restrict /**/ | |
7100 | _ACEOF | |
7101 | ;; | |
7102 | *) cat >>confdefs.h <<_ACEOF | |
7103 | @%:@define restrict $ac_cv_c_restrict | |
7104 | _ACEOF | |
7105 | ;; | |
7106 | esac | |
7107 | ||
545f34cf CR |
7108 | |
7109 | ||
7110 | MKINSTALLDIRS= | |
7111 | if test -n "$ac_aux_dir"; then | |
7112 | case "$ac_aux_dir" in | |
7113 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
7114 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
7115 | esac | |
7116 | fi | |
7117 | if test -z "$MKINSTALLDIRS"; then | |
7118 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7119 | fi | |
7120 | ||
7121 | ||
7122 | ||
dd4f3dd8 CR |
7123 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7124 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
7125 | @%:@ Check whether --enable-nls was given. | |
545f34cf | 7126 | if test "${enable_nls+set}" = set; then |
d3ad40de | 7127 | enableval=$enable_nls; USE_NLS=$enableval |
545f34cf CR |
7128 | else |
7129 | USE_NLS=yes | |
d3ad40de CR |
7130 | fi |
7131 | ||
dd4f3dd8 CR |
7132 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
7133 | $as_echo "$USE_NLS" >&6; } | |
545f34cf CR |
7134 | |
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | # Prepare PATH_SEPARATOR. | |
7141 | # The user is always right. | |
7142 | if test "${PATH_SEPARATOR+set}" != set; then | |
7143 | echo "#! /bin/sh" >conf$$.sh | |
7144 | echo "exit 0" >>conf$$.sh | |
7145 | chmod +x conf$$.sh | |
7146 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7147 | PATH_SEPARATOR=';' | |
7148 | else | |
7149 | PATH_SEPARATOR=: | |
7150 | fi | |
7151 | rm -f conf$$.sh | |
7152 | fi | |
7153 | ||
7154 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7155 | # as systems may use methods other than mode bits to determine executability. | |
7156 | cat >conf$$.file <<_ASEOF | |
7157 | #! /bin/sh | |
7158 | exit 0 | |
7159 | _ASEOF | |
7160 | chmod +x conf$$.file | |
7161 | if test -x conf$$.file >/dev/null 2>&1; then | |
7162 | ac_executable_p="test -x" | |
7163 | else | |
7164 | ac_executable_p="test -f" | |
7165 | fi | |
7166 | rm -f conf$$.file | |
7167 | ||
7168 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7169 | set dummy msgfmt; ac_word=$2 | |
dd4f3dd8 CR |
7170 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7171 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 7172 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
dd4f3dd8 | 7173 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7174 | else |
7175 | case "$MSGFMT" in | |
7176 | [\\/]* | ?:[\\/]*) | |
7177 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7178 | ;; | |
7179 | *) | |
7180 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7181 | for ac_dir in $PATH; do | |
7182 | IFS="$ac_save_IFS" | |
7183 | test -z "$ac_dir" && ac_dir=. | |
7184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7185 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7186 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
7187 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7188 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
7189 | break 2 | |
7190 | fi | |
7191 | fi | |
7192 | done | |
7193 | done | |
7194 | IFS="$ac_save_IFS" | |
7195 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
7196 | ;; | |
7197 | esac | |
7198 | fi | |
7199 | MSGFMT="$ac_cv_path_MSGFMT" | |
7200 | if test "$MSGFMT" != ":"; then | |
dd4f3dd8 CR |
7201 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7202 | $as_echo "$MSGFMT" >&6; } | |
545f34cf | 7203 | else |
dd4f3dd8 CR |
7204 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7205 | $as_echo "no" >&6; } | |
545f34cf CR |
7206 | fi |
7207 | ||
7208 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7209 | set dummy gmsgfmt; ac_word=$2 | |
dd4f3dd8 CR |
7210 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7211 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 7212 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
dd4f3dd8 | 7213 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7214 | else |
7215 | case $GMSGFMT in | |
7216 | [\\/]* | ?:[\\/]*) | |
7217 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7218 | ;; | |
7219 | *) | |
7220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7221 | for as_dir in $PATH | |
7222 | do | |
7223 | IFS=$as_save_IFS | |
7224 | test -z "$as_dir" && as_dir=. | |
7225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 7226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 7227 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
dd4f3dd8 | 7228 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
7229 | break 2 |
7230 | fi | |
7231 | done | |
7232 | done | |
d3ad40de | 7233 | IFS=$as_save_IFS |
545f34cf CR |
7234 | |
7235 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7236 | ;; | |
7237 | esac | |
7238 | fi | |
7239 | GMSGFMT=$ac_cv_path_GMSGFMT | |
545f34cf | 7240 | if test -n "$GMSGFMT"; then |
dd4f3dd8 CR |
7241 | { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7242 | $as_echo "$GMSGFMT" >&6; } | |
545f34cf | 7243 | else |
dd4f3dd8 CR |
7244 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7245 | $as_echo "no" >&6; } | |
545f34cf CR |
7246 | fi |
7247 | ||
7248 | ||
d3ad40de | 7249 | |
545f34cf CR |
7250 | |
7251 | # Prepare PATH_SEPARATOR. | |
7252 | # The user is always right. | |
7253 | if test "${PATH_SEPARATOR+set}" != set; then | |
7254 | echo "#! /bin/sh" >conf$$.sh | |
7255 | echo "exit 0" >>conf$$.sh | |
7256 | chmod +x conf$$.sh | |
7257 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7258 | PATH_SEPARATOR=';' | |
7259 | else | |
7260 | PATH_SEPARATOR=: | |
7261 | fi | |
7262 | rm -f conf$$.sh | |
7263 | fi | |
7264 | ||
7265 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7266 | # as systems may use methods other than mode bits to determine executability. | |
7267 | cat >conf$$.file <<_ASEOF | |
7268 | #! /bin/sh | |
7269 | exit 0 | |
7270 | _ASEOF | |
7271 | chmod +x conf$$.file | |
7272 | if test -x conf$$.file >/dev/null 2>&1; then | |
7273 | ac_executable_p="test -x" | |
7274 | else | |
7275 | ac_executable_p="test -f" | |
7276 | fi | |
7277 | rm -f conf$$.file | |
7278 | ||
7279 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7280 | set dummy xgettext; ac_word=$2 | |
dd4f3dd8 CR |
7281 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7282 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 7283 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
dd4f3dd8 | 7284 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7285 | else |
7286 | case "$XGETTEXT" in | |
7287 | [\\/]* | ?:[\\/]*) | |
7288 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7289 | ;; | |
7290 | *) | |
7291 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7292 | for ac_dir in $PATH; do | |
7293 | IFS="$ac_save_IFS" | |
7294 | test -z "$ac_dir" && ac_dir=. | |
7295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7296 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7297 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
7298 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7299 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
7300 | break 2 | |
7301 | fi | |
7302 | fi | |
7303 | done | |
7304 | done | |
7305 | IFS="$ac_save_IFS" | |
7306 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7307 | ;; | |
7308 | esac | |
7309 | fi | |
7310 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7311 | if test "$XGETTEXT" != ":"; then | |
dd4f3dd8 CR |
7312 | { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7313 | $as_echo "$XGETTEXT" >&6; } | |
545f34cf | 7314 | else |
dd4f3dd8 CR |
7315 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7316 | $as_echo "no" >&6; } | |
545f34cf CR |
7317 | fi |
7318 | ||
7319 | rm -f messages.po | |
7320 | ||
7321 | ||
7322 | # Prepare PATH_SEPARATOR. | |
7323 | # The user is always right. | |
7324 | if test "${PATH_SEPARATOR+set}" != set; then | |
7325 | echo "#! /bin/sh" >conf$$.sh | |
7326 | echo "exit 0" >>conf$$.sh | |
7327 | chmod +x conf$$.sh | |
7328 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7329 | PATH_SEPARATOR=';' | |
7330 | else | |
7331 | PATH_SEPARATOR=: | |
7332 | fi | |
7333 | rm -f conf$$.sh | |
7334 | fi | |
7335 | ||
7336 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7337 | # as systems may use methods other than mode bits to determine executability. | |
7338 | cat >conf$$.file <<_ASEOF | |
7339 | #! /bin/sh | |
7340 | exit 0 | |
7341 | _ASEOF | |
7342 | chmod +x conf$$.file | |
7343 | if test -x conf$$.file >/dev/null 2>&1; then | |
7344 | ac_executable_p="test -x" | |
7345 | else | |
7346 | ac_executable_p="test -f" | |
7347 | fi | |
7348 | rm -f conf$$.file | |
7349 | ||
7350 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
7351 | set dummy msgmerge; ac_word=$2 | |
dd4f3dd8 CR |
7352 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7353 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 7354 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
dd4f3dd8 | 7355 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7356 | else |
7357 | case "$MSGMERGE" in | |
7358 | [\\/]* | ?:[\\/]*) | |
7359 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
7360 | ;; | |
7361 | *) | |
7362 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7363 | for ac_dir in $PATH; do | |
7364 | IFS="$ac_save_IFS" | |
7365 | test -z "$ac_dir" && ac_dir=. | |
7366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7367 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7368 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
7369 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
7370 | break 2 | |
7371 | fi | |
7372 | fi | |
7373 | done | |
7374 | done | |
7375 | IFS="$ac_save_IFS" | |
7376 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
7377 | ;; | |
7378 | esac | |
7379 | fi | |
7380 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
7381 | if test "$MSGMERGE" != ":"; then | |
dd4f3dd8 CR |
7382 | { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
7383 | $as_echo "$MSGMERGE" >&6; } | |
545f34cf | 7384 | else |
dd4f3dd8 CR |
7385 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7386 | $as_echo "no" >&6; } | |
545f34cf CR |
7387 | fi |
7388 | ||
7389 | ||
7390 | if test "$GMSGFMT" != ":"; then | |
7391 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
7392 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7393 | : ; | |
7394 | else | |
7395 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
dd4f3dd8 CR |
7396 | { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
7397 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
545f34cf CR |
7398 | GMSGFMT=":" |
7399 | fi | |
7400 | fi | |
7401 | ||
7402 | if test "$XGETTEXT" != ":"; then | |
7403 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
7404 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7405 | : ; | |
7406 | else | |
dd4f3dd8 CR |
7407 | { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
7408 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
545f34cf CR |
7409 | XGETTEXT=":" |
7410 | fi | |
7411 | rm -f messages.po | |
7412 | fi | |
7413 | ||
d3ad40de | 7414 | ac_config_commands="$ac_config_commands default-1" |
545f34cf CR |
7415 | |
7416 | ||
dd4f3dd8 CR |
7417 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
7418 | $as_echo_n "checking for off_t... " >&6; } | |
545f34cf | 7419 | if test "${ac_cv_type_off_t+set}" = set; then |
dd4f3dd8 | 7420 | $as_echo_n "(cached) " >&6 |
545f34cf | 7421 | else |
dd4f3dd8 CR |
7422 | ac_cv_type_off_t=no |
7423 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
7424 | /* confdefs.h. */ |
7425 | _ACEOF | |
7426 | cat confdefs.h >>conftest.$ac_ext | |
7427 | cat >>conftest.$ac_ext <<_ACEOF | |
7428 | /* end confdefs.h. */ | |
7429 | $ac_includes_default | |
7430 | int | |
7431 | main () | |
7432 | { | |
dd4f3dd8 CR |
7433 | if (sizeof (off_t)) |
7434 | return 0; | |
545f34cf CR |
7435 | ; |
7436 | return 0; | |
7437 | } | |
7438 | _ACEOF | |
7439 | rm -f conftest.$ac_objext | |
d3ad40de CR |
7440 | if { (ac_try="$ac_compile" |
7441 | case "(($ac_try" in | |
7442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7443 | *) ac_try_echo=$ac_try;; | |
7444 | esac | |
dd4f3dd8 CR |
7445 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7446 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 7447 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 7448 | ac_status=$? |
a82a04b3 CR |
7449 | grep -v '^ *+' conftest.er1 >conftest.err |
7450 | rm -f conftest.er1 | |
7451 | cat conftest.err >&5 | |
dd4f3dd8 CR |
7452 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7453 | (exit $ac_status); } && { | |
7454 | test -z "$ac_c_werror_flag" || | |
7455 | test ! -s conftest.err | |
7456 | } && test -s conftest.$ac_objext; then | |
7457 | cat >conftest.$ac_ext <<_ACEOF | |
7458 | /* confdefs.h. */ | |
7459 | _ACEOF | |
7460 | cat confdefs.h >>conftest.$ac_ext | |
7461 | cat >>conftest.$ac_ext <<_ACEOF | |
7462 | /* end confdefs.h. */ | |
7463 | $ac_includes_default | |
7464 | int | |
7465 | main () | |
7466 | { | |
7467 | if (sizeof ((off_t))) | |
7468 | return 0; | |
7469 | ; | |
7470 | return 0; | |
7471 | } | |
7472 | _ACEOF | |
7473 | rm -f conftest.$ac_objext | |
7474 | if { (ac_try="$ac_compile" | |
7475 | case "(($ac_try" in | |
2e4498b3 CR |
7476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7477 | *) ac_try_echo=$ac_try;; | |
7478 | esac | |
dd4f3dd8 CR |
7479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7480 | $as_echo "$ac_try_echo") >&5 | |
7481 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 7482 | ac_status=$? |
dd4f3dd8 CR |
7483 | grep -v '^ *+' conftest.er1 >conftest.err |
7484 | rm -f conftest.er1 | |
7485 | cat conftest.err >&5 | |
7486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7487 | (exit $ac_status); } && { | |
7488 | test -z "$ac_c_werror_flag" || | |
7489 | test ! -s conftest.err | |
7490 | } && test -s conftest.$ac_objext; then | |
7491 | : | |
545f34cf | 7492 | else |
dd4f3dd8 | 7493 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
7494 | sed 's/^/| /' conftest.$ac_ext >&5 |
7495 | ||
dd4f3dd8 | 7496 | ac_cv_type_off_t=yes |
545f34cf | 7497 | fi |
d3ad40de CR |
7498 | |
7499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
7500 | else |
7501 | $as_echo "$as_me: failed program was:" >&5 | |
7502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7503 | ||
7504 | ||
545f34cf | 7505 | fi |
dd4f3dd8 CR |
7506 | |
7507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7508 | fi | |
7509 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
7510 | $as_echo "$ac_cv_type_off_t" >&6; } | |
76af2125 | 7511 | if test $ac_cv_type_off_t = yes; then |
545f34cf CR |
7512 | : |
7513 | else | |
7514 | ||
7515 | cat >>confdefs.h <<_ACEOF | |
d3ad40de | 7516 | @%:@define off_t long int |
545f34cf CR |
7517 | _ACEOF |
7518 | ||
7519 | fi | |
7520 | ||
dd4f3dd8 CR |
7521 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
7522 | $as_echo_n "checking for size_t... " >&6; } | |
545f34cf | 7523 | if test "${ac_cv_type_size_t+set}" = set; then |
dd4f3dd8 | 7524 | $as_echo_n "(cached) " >&6 |
545f34cf | 7525 | else |
dd4f3dd8 CR |
7526 | ac_cv_type_size_t=no |
7527 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
7528 | /* confdefs.h. */ |
7529 | _ACEOF | |
7530 | cat confdefs.h >>conftest.$ac_ext | |
7531 | cat >>conftest.$ac_ext <<_ACEOF | |
7532 | /* end confdefs.h. */ | |
7533 | $ac_includes_default | |
7534 | int | |
7535 | main () | |
7536 | { | |
dd4f3dd8 CR |
7537 | if (sizeof (size_t)) |
7538 | return 0; | |
545f34cf CR |
7539 | ; |
7540 | return 0; | |
7541 | } | |
7542 | _ACEOF | |
7543 | rm -f conftest.$ac_objext | |
d3ad40de CR |
7544 | if { (ac_try="$ac_compile" |
7545 | case "(($ac_try" in | |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
dd4f3dd8 CR |
7549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7550 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 7551 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 7552 | ac_status=$? |
a82a04b3 CR |
7553 | grep -v '^ *+' conftest.er1 >conftest.err |
7554 | rm -f conftest.er1 | |
7555 | cat conftest.err >&5 | |
dd4f3dd8 CR |
7556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7557 | (exit $ac_status); } && { | |
7558 | test -z "$ac_c_werror_flag" || | |
7559 | test ! -s conftest.err | |
7560 | } && test -s conftest.$ac_objext; then | |
7561 | cat >conftest.$ac_ext <<_ACEOF | |
7562 | /* confdefs.h. */ | |
7563 | _ACEOF | |
7564 | cat confdefs.h >>conftest.$ac_ext | |
7565 | cat >>conftest.$ac_ext <<_ACEOF | |
7566 | /* end confdefs.h. */ | |
7567 | $ac_includes_default | |
7568 | int | |
7569 | main () | |
7570 | { | |
7571 | if (sizeof ((size_t))) | |
7572 | return 0; | |
7573 | ; | |
7574 | return 0; | |
7575 | } | |
7576 | _ACEOF | |
7577 | rm -f conftest.$ac_objext | |
7578 | if { (ac_try="$ac_compile" | |
7579 | case "(($ac_try" in | |
2e4498b3 CR |
7580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7581 | *) ac_try_echo=$ac_try;; | |
7582 | esac | |
dd4f3dd8 CR |
7583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7584 | $as_echo "$ac_try_echo") >&5 | |
7585 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 7586 | ac_status=$? |
dd4f3dd8 CR |
7587 | grep -v '^ *+' conftest.er1 >conftest.err |
7588 | rm -f conftest.er1 | |
7589 | cat conftest.err >&5 | |
7590 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7591 | (exit $ac_status); } && { | |
7592 | test -z "$ac_c_werror_flag" || | |
7593 | test ! -s conftest.err | |
7594 | } && test -s conftest.$ac_objext; then | |
7595 | : | |
7596 | else | |
7597 | $as_echo "$as_me: failed program was:" >&5 | |
7598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7599 | ||
7600 | ac_cv_type_size_t=yes | |
7601 | fi | |
7602 | ||
7603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 7604 | else |
dd4f3dd8 | 7605 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
7606 | sed 's/^/| /' conftest.$ac_ext >&5 |
7607 | ||
dd4f3dd8 | 7608 | |
545f34cf | 7609 | fi |
d3ad40de CR |
7610 | |
7611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 7612 | fi |
dd4f3dd8 CR |
7613 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
7614 | $as_echo "$ac_cv_type_size_t" >&6; } | |
76af2125 | 7615 | if test $ac_cv_type_size_t = yes; then |
545f34cf CR |
7616 | : |
7617 | else | |
7618 | ||
7619 | cat >>confdefs.h <<_ACEOF | |
d3ad40de | 7620 | @%:@define size_t unsigned int |
545f34cf CR |
7621 | _ACEOF |
7622 | ||
7623 | fi | |
7624 | ||
7625 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7626 | # for constant arguments. Useless! | |
dd4f3dd8 CR |
7627 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
7628 | $as_echo_n "checking for working alloca.h... " >&6; } | |
545f34cf | 7629 | if test "${ac_cv_working_alloca_h+set}" = set; then |
dd4f3dd8 | 7630 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7631 | else |
7632 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
7633 | /* confdefs.h. */ |
7634 | _ACEOF | |
7635 | cat confdefs.h >>conftest.$ac_ext | |
7636 | cat >>conftest.$ac_ext <<_ACEOF | |
7637 | /* end confdefs.h. */ | |
7638 | @%:@include <alloca.h> | |
7639 | int | |
7640 | main () | |
7641 | { | |
7642 | char *p = (char *) alloca (2 * sizeof (int)); | |
d3ad40de | 7643 | if (p) return 0; |
545f34cf CR |
7644 | ; |
7645 | return 0; | |
7646 | } | |
7647 | _ACEOF | |
7648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
7649 | if { (ac_try="$ac_link" |
7650 | case "(($ac_try" in | |
7651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7652 | *) ac_try_echo=$ac_try;; | |
7653 | esac | |
dd4f3dd8 CR |
7654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7655 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 7656 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 7657 | ac_status=$? |
a82a04b3 CR |
7658 | grep -v '^ *+' conftest.er1 >conftest.err |
7659 | rm -f conftest.er1 | |
7660 | cat conftest.err >&5 | |
dd4f3dd8 CR |
7661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7662 | (exit $ac_status); } && { | |
7663 | test -z "$ac_c_werror_flag" || | |
7664 | test ! -s conftest.err | |
7665 | } && test -s conftest$ac_exeext && { | |
7666 | test "$cross_compiling" = yes || | |
7667 | $as_test_x conftest$ac_exeext | |
7668 | }; then | |
545f34cf CR |
7669 | ac_cv_working_alloca_h=yes |
7670 | else | |
dd4f3dd8 | 7671 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
7672 | sed 's/^/| /' conftest.$ac_ext >&5 |
7673 | ||
d3ad40de | 7674 | ac_cv_working_alloca_h=no |
545f34cf | 7675 | fi |
d3ad40de | 7676 | |
dd4f3dd8 CR |
7677 | rm -rf conftest.dSYM |
7678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 7679 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 7680 | fi |
dd4f3dd8 CR |
7681 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
7682 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
545f34cf CR |
7683 | if test $ac_cv_working_alloca_h = yes; then |
7684 | ||
7685 | cat >>confdefs.h <<\_ACEOF | |
7686 | @%:@define HAVE_ALLOCA_H 1 | |
7687 | _ACEOF | |
7688 | ||
7689 | fi | |
7690 | ||
dd4f3dd8 CR |
7691 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
7692 | $as_echo_n "checking for alloca... " >&6; } | |
545f34cf | 7693 | if test "${ac_cv_func_alloca_works+set}" = set; then |
dd4f3dd8 | 7694 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7695 | else |
7696 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
7697 | /* confdefs.h. */ |
7698 | _ACEOF | |
7699 | cat confdefs.h >>conftest.$ac_ext | |
7700 | cat >>conftest.$ac_ext <<_ACEOF | |
7701 | /* end confdefs.h. */ | |
7702 | #ifdef __GNUC__ | |
7703 | # define alloca __builtin_alloca | |
7704 | #else | |
7705 | # ifdef _MSC_VER | |
7706 | # include <malloc.h> | |
7707 | # define alloca _alloca | |
7708 | # else | |
dd4f3dd8 | 7709 | # ifdef HAVE_ALLOCA_H |
545f34cf CR |
7710 | # include <alloca.h> |
7711 | # else | |
7712 | # ifdef _AIX | |
7713 | #pragma alloca | |
7714 | # else | |
7715 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
7716 | char *alloca (); | |
7717 | # endif | |
7718 | # endif | |
7719 | # endif | |
7720 | # endif | |
7721 | #endif | |
7722 | ||
7723 | int | |
7724 | main () | |
7725 | { | |
7726 | char *p = (char *) alloca (1); | |
d3ad40de | 7727 | if (p) return 0; |
545f34cf CR |
7728 | ; |
7729 | return 0; | |
7730 | } | |
7731 | _ACEOF | |
7732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
7733 | if { (ac_try="$ac_link" |
7734 | case "(($ac_try" in | |
7735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7736 | *) ac_try_echo=$ac_try;; | |
7737 | esac | |
dd4f3dd8 CR |
7738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7739 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 7740 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 7741 | ac_status=$? |
a82a04b3 CR |
7742 | grep -v '^ *+' conftest.er1 >conftest.err |
7743 | rm -f conftest.er1 | |
7744 | cat conftest.err >&5 | |
dd4f3dd8 CR |
7745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7746 | (exit $ac_status); } && { | |
7747 | test -z "$ac_c_werror_flag" || | |
7748 | test ! -s conftest.err | |
7749 | } && test -s conftest$ac_exeext && { | |
7750 | test "$cross_compiling" = yes || | |
7751 | $as_test_x conftest$ac_exeext | |
7752 | }; then | |
545f34cf CR |
7753 | ac_cv_func_alloca_works=yes |
7754 | else | |
dd4f3dd8 | 7755 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
7756 | sed 's/^/| /' conftest.$ac_ext >&5 |
7757 | ||
d3ad40de | 7758 | ac_cv_func_alloca_works=no |
545f34cf | 7759 | fi |
d3ad40de | 7760 | |
dd4f3dd8 CR |
7761 | rm -rf conftest.dSYM |
7762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 7763 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 7764 | fi |
dd4f3dd8 CR |
7765 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
7766 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
545f34cf CR |
7767 | |
7768 | if test $ac_cv_func_alloca_works = yes; then | |
7769 | ||
7770 | cat >>confdefs.h <<\_ACEOF | |
7771 | @%:@define HAVE_ALLOCA 1 | |
7772 | _ACEOF | |
7773 | ||
7774 | else | |
7775 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
7776 | # that cause trouble. Some versions do not even contain alloca or | |
7777 | # contain a buggy version. If you still want to use their alloca, | |
7778 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7779 | ||
d3ad40de | 7780 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
545f34cf CR |
7781 | |
7782 | cat >>confdefs.h <<\_ACEOF | |
7783 | @%:@define C_ALLOCA 1 | |
7784 | _ACEOF | |
7785 | ||
7786 | ||
dd4f3dd8 CR |
7787 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
7788 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
545f34cf | 7789 | if test "${ac_cv_os_cray+set}" = set; then |
dd4f3dd8 | 7790 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7791 | else |
7792 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
7793 | /* confdefs.h. */ |
7794 | _ACEOF | |
7795 | cat confdefs.h >>conftest.$ac_ext | |
7796 | cat >>conftest.$ac_ext <<_ACEOF | |
7797 | /* end confdefs.h. */ | |
d3ad40de | 7798 | #if defined CRAY && ! defined CRAY2 |
545f34cf CR |
7799 | webecray |
7800 | #else | |
7801 | wenotbecray | |
7802 | #endif | |
7803 | ||
7804 | _ACEOF | |
7805 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7806 | $EGREP "webecray" >/dev/null 2>&1; then | |
7807 | ac_cv_os_cray=yes | |
7808 | else | |
7809 | ac_cv_os_cray=no | |
7810 | fi | |
7811 | rm -f conftest* | |
7812 | ||
7813 | fi | |
dd4f3dd8 CR |
7814 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
7815 | $as_echo "$ac_cv_os_cray" >&6; } | |
545f34cf CR |
7816 | if test $ac_cv_os_cray = yes; then |
7817 | for ac_func in _getb67 GETB67 getb67; do | |
dd4f3dd8 CR |
7818 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7819 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7820 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 7821 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 7822 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7823 | else |
7824 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
7825 | /* confdefs.h. */ |
7826 | _ACEOF | |
7827 | cat confdefs.h >>conftest.$ac_ext | |
7828 | cat >>conftest.$ac_ext <<_ACEOF | |
7829 | /* end confdefs.h. */ | |
a82a04b3 CR |
7830 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7832 | #define $ac_func innocuous_$ac_func | |
7833 | ||
545f34cf CR |
7834 | /* System header to define __stub macros and hopefully few prototypes, |
7835 | which can conflict with char $ac_func (); below. | |
7836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7837 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 7838 | |
545f34cf CR |
7839 | #ifdef __STDC__ |
7840 | # include <limits.h> | |
7841 | #else | |
7842 | # include <assert.h> | |
7843 | #endif | |
a82a04b3 CR |
7844 | |
7845 | #undef $ac_func | |
7846 | ||
d3ad40de CR |
7847 | /* Override any GCC internal prototype to avoid an error. |
7848 | Use char because int might match the return type of a GCC | |
7849 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
7850 | #ifdef __cplusplus |
7851 | extern "C" | |
545f34cf | 7852 | #endif |
545f34cf CR |
7853 | char $ac_func (); |
7854 | /* The GNU C library defines this for functions which it implements | |
7855 | to always fail with ENOSYS. Some functions are actually named | |
7856 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 7857 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 7858 | choke me |
545f34cf CR |
7859 | #endif |
7860 | ||
7861 | int | |
7862 | main () | |
7863 | { | |
d3ad40de | 7864 | return $ac_func (); |
545f34cf CR |
7865 | ; |
7866 | return 0; | |
7867 | } | |
7868 | _ACEOF | |
7869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
7870 | if { (ac_try="$ac_link" |
7871 | case "(($ac_try" in | |
7872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7873 | *) ac_try_echo=$ac_try;; | |
7874 | esac | |
dd4f3dd8 CR |
7875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7876 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 7877 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 7878 | ac_status=$? |
a82a04b3 CR |
7879 | grep -v '^ *+' conftest.er1 >conftest.err |
7880 | rm -f conftest.er1 | |
7881 | cat conftest.err >&5 | |
dd4f3dd8 CR |
7882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7883 | (exit $ac_status); } && { | |
7884 | test -z "$ac_c_werror_flag" || | |
7885 | test ! -s conftest.err | |
7886 | } && test -s conftest$ac_exeext && { | |
7887 | test "$cross_compiling" = yes || | |
7888 | $as_test_x conftest$ac_exeext | |
7889 | }; then | |
545f34cf CR |
7890 | eval "$as_ac_var=yes" |
7891 | else | |
dd4f3dd8 | 7892 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
7893 | sed 's/^/| /' conftest.$ac_ext >&5 |
7894 | ||
d3ad40de | 7895 | eval "$as_ac_var=no" |
545f34cf | 7896 | fi |
d3ad40de | 7897 | |
dd4f3dd8 CR |
7898 | rm -rf conftest.dSYM |
7899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 7900 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 7901 | fi |
dd4f3dd8 CR |
7902 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7903 | $as_echo "$as_val"'` | |
7904 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7905 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
7906 | if test `eval 'as_val=${'$as_ac_var'} |
7907 | $as_echo "$as_val"'` = yes; then | |
545f34cf CR |
7908 | |
7909 | cat >>confdefs.h <<_ACEOF | |
7910 | @%:@define CRAY_STACKSEG_END $ac_func | |
7911 | _ACEOF | |
7912 | ||
7913 | break | |
7914 | fi | |
7915 | ||
7916 | done | |
7917 | fi | |
7918 | ||
dd4f3dd8 CR |
7919 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
7920 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
545f34cf | 7921 | if test "${ac_cv_c_stack_direction+set}" = set; then |
dd4f3dd8 | 7922 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
7923 | else |
7924 | if test "$cross_compiling" = yes; then | |
7925 | ac_cv_c_stack_direction=0 | |
7926 | else | |
7927 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
7928 | /* confdefs.h. */ |
7929 | _ACEOF | |
7930 | cat confdefs.h >>conftest.$ac_ext | |
7931 | cat >>conftest.$ac_ext <<_ACEOF | |
7932 | /* end confdefs.h. */ | |
d3ad40de | 7933 | $ac_includes_default |
545f34cf CR |
7934 | int |
7935 | find_stack_direction () | |
7936 | { | |
7937 | static char *addr = 0; | |
7938 | auto char dummy; | |
7939 | if (addr == 0) | |
7940 | { | |
7941 | addr = &dummy; | |
7942 | return find_stack_direction (); | |
7943 | } | |
7944 | else | |
7945 | return (&dummy > addr) ? 1 : -1; | |
7946 | } | |
7947 | ||
7948 | int | |
7949 | main () | |
7950 | { | |
d3ad40de | 7951 | return find_stack_direction () < 0; |
545f34cf CR |
7952 | } |
7953 | _ACEOF | |
7954 | rm -f conftest$ac_exeext | |
d3ad40de CR |
7955 | if { (ac_try="$ac_link" |
7956 | case "(($ac_try" in | |
7957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7958 | *) ac_try_echo=$ac_try;; | |
7959 | esac | |
dd4f3dd8 CR |
7960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7961 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 7962 | (eval "$ac_link") 2>&5 |
545f34cf | 7963 | ac_status=$? |
dd4f3dd8 | 7964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 7965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
7966 | { (case "(($ac_try" in |
7967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7968 | *) ac_try_echo=$ac_try;; | |
7969 | esac | |
dd4f3dd8 CR |
7970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7971 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 7972 | (eval "$ac_try") 2>&5 |
545f34cf | 7973 | ac_status=$? |
dd4f3dd8 | 7974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
7975 | (exit $ac_status); }; }; then |
7976 | ac_cv_c_stack_direction=1 | |
7977 | else | |
dd4f3dd8 CR |
7978 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7979 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
7980 | sed 's/^/| /' conftest.$ac_ext >&5 |
7981 | ||
7982 | ( exit $ac_status ) | |
7983 | ac_cv_c_stack_direction=-1 | |
7984 | fi | |
dd4f3dd8 | 7985 | rm -rf conftest.dSYM |
d3ad40de | 7986 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 7987 | fi |
d3ad40de CR |
7988 | |
7989 | ||
545f34cf | 7990 | fi |
dd4f3dd8 CR |
7991 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7992 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
545f34cf CR |
7993 | |
7994 | cat >>confdefs.h <<_ACEOF | |
7995 | @%:@define STACK_DIRECTION $ac_cv_c_stack_direction | |
7996 | _ACEOF | |
7997 | ||
7998 | ||
7999 | fi | |
8000 | ||
8001 | ||
8002 | ||
8003 | for ac_header in stdlib.h unistd.h | |
8004 | do | |
dd4f3dd8 | 8005 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 8006 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
8007 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8008 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 8009 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 8010 | $as_echo_n "(cached) " >&6 |
545f34cf | 8011 | fi |
dd4f3dd8 CR |
8012 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8013 | $as_echo "$as_val"'` | |
8014 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8015 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
8016 | else |
8017 | # Is the header compilable? | |
dd4f3dd8 CR |
8018 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8019 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 8020 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
8021 | /* confdefs.h. */ |
8022 | _ACEOF | |
8023 | cat confdefs.h >>conftest.$ac_ext | |
8024 | cat >>conftest.$ac_ext <<_ACEOF | |
8025 | /* end confdefs.h. */ | |
8026 | $ac_includes_default | |
8027 | @%:@include <$ac_header> | |
8028 | _ACEOF | |
8029 | rm -f conftest.$ac_objext | |
d3ad40de CR |
8030 | if { (ac_try="$ac_compile" |
8031 | case "(($ac_try" in | |
8032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8033 | *) ac_try_echo=$ac_try;; | |
8034 | esac | |
dd4f3dd8 CR |
8035 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8036 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8037 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 8038 | ac_status=$? |
a82a04b3 CR |
8039 | grep -v '^ *+' conftest.er1 >conftest.err |
8040 | rm -f conftest.er1 | |
8041 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8042 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8043 | (exit $ac_status); } && { | |
8044 | test -z "$ac_c_werror_flag" || | |
8045 | test ! -s conftest.err | |
8046 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
8047 | ac_header_compiler=yes |
8048 | else | |
dd4f3dd8 | 8049 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
8050 | sed 's/^/| /' conftest.$ac_ext >&5 |
8051 | ||
d3ad40de | 8052 | ac_header_compiler=no |
545f34cf | 8053 | fi |
d3ad40de CR |
8054 | |
8055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
8056 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8057 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
8058 | |
8059 | # Is the header present? | |
dd4f3dd8 CR |
8060 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8061 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 8062 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
8063 | /* confdefs.h. */ |
8064 | _ACEOF | |
8065 | cat confdefs.h >>conftest.$ac_ext | |
8066 | cat >>conftest.$ac_ext <<_ACEOF | |
8067 | /* end confdefs.h. */ | |
8068 | @%:@include <$ac_header> | |
8069 | _ACEOF | |
d3ad40de CR |
8070 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8071 | case "(($ac_try" in | |
8072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8073 | *) ac_try_echo=$ac_try;; | |
8074 | esac | |
dd4f3dd8 CR |
8075 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8076 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8077 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
8078 | ac_status=$? |
8079 | grep -v '^ *+' conftest.er1 >conftest.err | |
8080 | rm -f conftest.er1 | |
8081 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8082 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8083 | (exit $ac_status); } >/dev/null && { | |
8084 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8085 | test ! -s conftest.err | |
8086 | }; then | |
545f34cf CR |
8087 | ac_header_preproc=yes |
8088 | else | |
dd4f3dd8 | 8089 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
8090 | sed 's/^/| /' conftest.$ac_ext >&5 |
8091 | ||
8092 | ac_header_preproc=no | |
8093 | fi | |
d3ad40de | 8094 | |
545f34cf | 8095 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
8096 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8097 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
8098 | |
8099 | # So? What about this header? | |
a82a04b3 CR |
8100 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8101 | yes:no: ) | |
dd4f3dd8 CR |
8102 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8103 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8104 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8105 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 8106 | ac_header_preproc=yes |
545f34cf | 8107 | ;; |
a82a04b3 | 8108 | no:yes:* ) |
dd4f3dd8 CR |
8109 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8110 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8111 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8112 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8113 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8114 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8115 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8116 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8117 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8118 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8119 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8120 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 8121 | ( cat <<\_ASBOX |
a82a04b3 CR |
8122 | @%:@@%:@ ------------------------------- @%:@@%:@ |
8123 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
8124 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 8125 | _ASBOX |
d3ad40de | 8126 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
8127 | ;; |
8128 | esac | |
dd4f3dd8 CR |
8129 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8130 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 8131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 8132 | $as_echo_n "(cached) " >&6 |
545f34cf | 8133 | else |
a82a04b3 | 8134 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 8135 | fi |
dd4f3dd8 CR |
8136 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8137 | $as_echo "$as_val"'` | |
8138 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8139 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
8140 | |
8141 | fi | |
76af2125 CR |
8142 | if test `eval 'as_val=${'$as_ac_Header'} |
8143 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 8144 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 8145 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
8146 | _ACEOF |
8147 | ||
8148 | fi | |
8149 | ||
8150 | done | |
8151 | ||
8152 | ||
8153 | for ac_func in getpagesize | |
8154 | do | |
dd4f3dd8 CR |
8155 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8156 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8157 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 8158 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 8159 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8160 | else |
8161 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8162 | /* confdefs.h. */ |
8163 | _ACEOF | |
8164 | cat confdefs.h >>conftest.$ac_ext | |
8165 | cat >>conftest.$ac_ext <<_ACEOF | |
8166 | /* end confdefs.h. */ | |
a82a04b3 CR |
8167 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8169 | #define $ac_func innocuous_$ac_func | |
8170 | ||
545f34cf CR |
8171 | /* System header to define __stub macros and hopefully few prototypes, |
8172 | which can conflict with char $ac_func (); below. | |
8173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8174 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 8175 | |
545f34cf CR |
8176 | #ifdef __STDC__ |
8177 | # include <limits.h> | |
8178 | #else | |
8179 | # include <assert.h> | |
8180 | #endif | |
a82a04b3 CR |
8181 | |
8182 | #undef $ac_func | |
8183 | ||
d3ad40de CR |
8184 | /* Override any GCC internal prototype to avoid an error. |
8185 | Use char because int might match the return type of a GCC | |
8186 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
8187 | #ifdef __cplusplus |
8188 | extern "C" | |
545f34cf | 8189 | #endif |
545f34cf CR |
8190 | char $ac_func (); |
8191 | /* The GNU C library defines this for functions which it implements | |
8192 | to always fail with ENOSYS. Some functions are actually named | |
8193 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 8194 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 8195 | choke me |
545f34cf CR |
8196 | #endif |
8197 | ||
8198 | int | |
8199 | main () | |
8200 | { | |
d3ad40de | 8201 | return $ac_func (); |
545f34cf CR |
8202 | ; |
8203 | return 0; | |
8204 | } | |
8205 | _ACEOF | |
8206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
8207 | if { (ac_try="$ac_link" |
8208 | case "(($ac_try" in | |
8209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8210 | *) ac_try_echo=$ac_try;; | |
8211 | esac | |
dd4f3dd8 CR |
8212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8213 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8214 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 8215 | ac_status=$? |
a82a04b3 CR |
8216 | grep -v '^ *+' conftest.er1 >conftest.err |
8217 | rm -f conftest.er1 | |
8218 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8220 | (exit $ac_status); } && { | |
8221 | test -z "$ac_c_werror_flag" || | |
8222 | test ! -s conftest.err | |
8223 | } && test -s conftest$ac_exeext && { | |
8224 | test "$cross_compiling" = yes || | |
8225 | $as_test_x conftest$ac_exeext | |
8226 | }; then | |
545f34cf CR |
8227 | eval "$as_ac_var=yes" |
8228 | else | |
dd4f3dd8 | 8229 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
8230 | sed 's/^/| /' conftest.$ac_ext >&5 |
8231 | ||
d3ad40de | 8232 | eval "$as_ac_var=no" |
545f34cf | 8233 | fi |
d3ad40de | 8234 | |
dd4f3dd8 CR |
8235 | rm -rf conftest.dSYM |
8236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 8237 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 8238 | fi |
dd4f3dd8 CR |
8239 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8240 | $as_echo "$as_val"'` | |
8241 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8242 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
8243 | if test `eval 'as_val=${'$as_ac_var'} |
8244 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 8245 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 8246 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
8247 | _ACEOF |
8248 | ||
8249 | fi | |
8250 | done | |
8251 | ||
dd4f3dd8 CR |
8252 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8253 | $as_echo_n "checking for working mmap... " >&6; } | |
545f34cf | 8254 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
dd4f3dd8 | 8255 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8256 | else |
8257 | if test "$cross_compiling" = yes; then | |
8258 | ac_cv_func_mmap_fixed_mapped=no | |
8259 | else | |
8260 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8261 | /* confdefs.h. */ |
8262 | _ACEOF | |
8263 | cat confdefs.h >>conftest.$ac_ext | |
8264 | cat >>conftest.$ac_ext <<_ACEOF | |
8265 | /* end confdefs.h. */ | |
8266 | $ac_includes_default | |
8267 | /* malloc might have been renamed as rpl_malloc. */ | |
8268 | #undef malloc | |
8269 | ||
8270 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8271 | Here is a matrix of mmap possibilities: | |
8272 | mmap private not fixed | |
8273 | mmap private fixed at somewhere currently unmapped | |
8274 | mmap private fixed at somewhere already mapped | |
8275 | mmap shared not fixed | |
8276 | mmap shared fixed at somewhere currently unmapped | |
8277 | mmap shared fixed at somewhere already mapped | |
8278 | For private mappings, we should verify that changes cannot be read() | |
8279 | back from the file, nor mmap's back from the file at a different | |
8280 | address. (There have been systems where private was not correctly | |
8281 | implemented like the infamous i386 svr4.0, and systems where the | |
8282 | VM page cache was not coherent with the file system buffer cache | |
8283 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8284 | For shared mappings, we should conversely verify that changes get | |
8285 | propagated back to all the places they're supposed to be. | |
8286 | ||
8287 | Grep wants private fixed already mapped. | |
8288 | The main things grep needs to know about mmap are: | |
8289 | * does it exist and is it safe to write into the mmap'd area | |
8290 | * how to use it (BSD variants) */ | |
8291 | ||
8292 | #include <fcntl.h> | |
8293 | #include <sys/mman.h> | |
8294 | ||
dd4f3dd8 | 8295 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
545f34cf CR |
8296 | char *malloc (); |
8297 | #endif | |
8298 | ||
8299 | /* This mess was copied from the GNU getpagesize.h. */ | |
dd4f3dd8 | 8300 | #ifndef HAVE_GETPAGESIZE |
545f34cf | 8301 | /* Assume that all systems that can run configure have sys/param.h. */ |
dd4f3dd8 | 8302 | # ifndef HAVE_SYS_PARAM_H |
545f34cf CR |
8303 | # define HAVE_SYS_PARAM_H 1 |
8304 | # endif | |
8305 | ||
8306 | # ifdef _SC_PAGESIZE | |
8307 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8308 | # else /* no _SC_PAGESIZE */ | |
dd4f3dd8 | 8309 | # ifdef HAVE_SYS_PARAM_H |
545f34cf CR |
8310 | # include <sys/param.h> |
8311 | # ifdef EXEC_PAGESIZE | |
8312 | # define getpagesize() EXEC_PAGESIZE | |
8313 | # else /* no EXEC_PAGESIZE */ | |
8314 | # ifdef NBPG | |
8315 | # define getpagesize() NBPG * CLSIZE | |
8316 | # ifndef CLSIZE | |
8317 | # define CLSIZE 1 | |
8318 | # endif /* no CLSIZE */ | |
8319 | # else /* no NBPG */ | |
8320 | # ifdef NBPC | |
8321 | # define getpagesize() NBPC | |
8322 | # else /* no NBPC */ | |
8323 | # ifdef PAGESIZE | |
8324 | # define getpagesize() PAGESIZE | |
8325 | # endif /* PAGESIZE */ | |
8326 | # endif /* no NBPC */ | |
8327 | # endif /* no NBPG */ | |
8328 | # endif /* no EXEC_PAGESIZE */ | |
8329 | # else /* no HAVE_SYS_PARAM_H */ | |
8330 | # define getpagesize() 8192 /* punt totally */ | |
8331 | # endif /* no HAVE_SYS_PARAM_H */ | |
8332 | # endif /* no _SC_PAGESIZE */ | |
8333 | ||
8334 | #endif /* no HAVE_GETPAGESIZE */ | |
8335 | ||
8336 | int | |
8337 | main () | |
8338 | { | |
8339 | char *data, *data2, *data3; | |
8340 | int i, pagesize; | |
8341 | int fd; | |
8342 | ||
8343 | pagesize = getpagesize (); | |
8344 | ||
8345 | /* First, make a file with some known garbage in it. */ | |
8346 | data = (char *) malloc (pagesize); | |
8347 | if (!data) | |
d3ad40de | 8348 | return 1; |
545f34cf CR |
8349 | for (i = 0; i < pagesize; ++i) |
8350 | *(data + i) = rand (); | |
8351 | umask (0); | |
8352 | fd = creat ("conftest.mmap", 0600); | |
8353 | if (fd < 0) | |
d3ad40de | 8354 | return 1; |
545f34cf | 8355 | if (write (fd, data, pagesize) != pagesize) |
d3ad40de | 8356 | return 1; |
545f34cf CR |
8357 | close (fd); |
8358 | ||
8359 | /* Next, try to mmap the file at a fixed address which already has | |
8360 | something else allocated at it. If we can, also make sure that | |
8361 | we see the same garbage. */ | |
8362 | fd = open ("conftest.mmap", O_RDWR); | |
8363 | if (fd < 0) | |
d3ad40de | 8364 | return 1; |
545f34cf CR |
8365 | data2 = (char *) malloc (2 * pagesize); |
8366 | if (!data2) | |
d3ad40de CR |
8367 | return 1; |
8368 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
545f34cf | 8369 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
a82a04b3 | 8370 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
d3ad40de | 8371 | return 1; |
545f34cf CR |
8372 | for (i = 0; i < pagesize; ++i) |
8373 | if (*(data + i) != *(data2 + i)) | |
d3ad40de | 8374 | return 1; |
545f34cf CR |
8375 | |
8376 | /* Finally, make sure that changes to the mapped area do not | |
8377 | percolate back to the file as seen by read(). (This is a bug on | |
8378 | some variants of i386 svr4.0.) */ | |
8379 | for (i = 0; i < pagesize; ++i) | |
8380 | *(data2 + i) = *(data2 + i) + 1; | |
8381 | data3 = (char *) malloc (pagesize); | |
8382 | if (!data3) | |
d3ad40de | 8383 | return 1; |
545f34cf | 8384 | if (read (fd, data3, pagesize) != pagesize) |
d3ad40de | 8385 | return 1; |
545f34cf CR |
8386 | for (i = 0; i < pagesize; ++i) |
8387 | if (*(data + i) != *(data3 + i)) | |
d3ad40de | 8388 | return 1; |
545f34cf | 8389 | close (fd); |
d3ad40de | 8390 | return 0; |
545f34cf CR |
8391 | } |
8392 | _ACEOF | |
8393 | rm -f conftest$ac_exeext | |
d3ad40de CR |
8394 | if { (ac_try="$ac_link" |
8395 | case "(($ac_try" in | |
8396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8397 | *) ac_try_echo=$ac_try;; | |
8398 | esac | |
dd4f3dd8 CR |
8399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8400 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8401 | (eval "$ac_link") 2>&5 |
545f34cf | 8402 | ac_status=$? |
dd4f3dd8 | 8403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 8404 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
8405 | { (case "(($ac_try" in |
8406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8407 | *) ac_try_echo=$ac_try;; | |
8408 | esac | |
dd4f3dd8 CR |
8409 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8410 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8411 | (eval "$ac_try") 2>&5 |
545f34cf | 8412 | ac_status=$? |
dd4f3dd8 | 8413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
8414 | (exit $ac_status); }; }; then |
8415 | ac_cv_func_mmap_fixed_mapped=yes | |
8416 | else | |
dd4f3dd8 CR |
8417 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8418 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
8419 | sed 's/^/| /' conftest.$ac_ext >&5 |
8420 | ||
8421 | ( exit $ac_status ) | |
8422 | ac_cv_func_mmap_fixed_mapped=no | |
8423 | fi | |
dd4f3dd8 | 8424 | rm -rf conftest.dSYM |
d3ad40de | 8425 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 8426 | fi |
d3ad40de CR |
8427 | |
8428 | ||
545f34cf | 8429 | fi |
dd4f3dd8 CR |
8430 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8431 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
545f34cf CR |
8432 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8433 | ||
8434 | cat >>confdefs.h <<\_ACEOF | |
8435 | @%:@define HAVE_MMAP 1 | |
8436 | _ACEOF | |
8437 | ||
8438 | fi | |
8439 | rm -f conftest.mmap | |
8440 | ||
8441 | ||
dd4f3dd8 CR |
8442 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
8443 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } | |
545f34cf | 8444 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
dd4f3dd8 | 8445 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8446 | else |
8447 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8448 | /* confdefs.h. */ |
8449 | _ACEOF | |
8450 | cat confdefs.h >>conftest.$ac_ext | |
8451 | cat >>conftest.$ac_ext <<_ACEOF | |
8452 | /* end confdefs.h. */ | |
8453 | ||
8454 | #include <features.h> | |
8455 | #ifdef __GNU_LIBRARY__ | |
8456 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
8457 | Lucky GNU user | |
8458 | #endif | |
8459 | #endif | |
8460 | ||
8461 | _ACEOF | |
8462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8463 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then | |
8464 | ac_cv_gnu_library_2_1=yes | |
8465 | else | |
8466 | ac_cv_gnu_library_2_1=no | |
8467 | fi | |
8468 | rm -f conftest* | |
8469 | ||
8470 | ||
8471 | ||
8472 | fi | |
dd4f3dd8 CR |
8473 | { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
8474 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
545f34cf CR |
8475 | |
8476 | GLIBC21="$ac_cv_gnu_library_2_1" | |
8477 | ||
8478 | ||
8479 | ||
8480 | ||
dd4f3dd8 CR |
8481 | { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
8482 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
545f34cf | 8483 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
dd4f3dd8 | 8484 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8485 | else |
8486 | ||
8487 | if test "$cross_compiling" = yes; then | |
8488 | ||
8489 | # Guess based on the CPU. | |
8490 | case "$host_cpu" in | |
8491 | alpha* | i3456786 | m68k | s390*) | |
8492 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
8493 | *) | |
8494 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
8495 | esac | |
8496 | ||
8497 | else | |
8498 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8499 | /* confdefs.h. */ |
8500 | _ACEOF | |
8501 | cat confdefs.h >>conftest.$ac_ext | |
8502 | cat >>conftest.$ac_ext <<_ACEOF | |
8503 | /* end confdefs.h. */ | |
8504 | ||
8505 | #include <stdlib.h> | |
8506 | #include <signal.h> | |
8507 | ||
8508 | static void | |
8509 | #ifdef __cplusplus | |
8510 | sigfpe_handler (int sig) | |
8511 | #else | |
8512 | sigfpe_handler (sig) int sig; | |
8513 | #endif | |
8514 | { | |
8515 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
8516 | exit (sig != SIGFPE); | |
8517 | } | |
8518 | ||
8519 | int x = 1; | |
8520 | int y = 0; | |
8521 | int z; | |
8522 | int nan; | |
8523 | ||
8524 | int main () | |
8525 | { | |
8526 | signal (SIGFPE, sigfpe_handler); | |
8527 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
8528 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
8529 | signal (SIGTRAP, sigfpe_handler); | |
8530 | #endif | |
8531 | /* Linux/SPARC yields signal SIGILL. */ | |
8532 | #if defined (__sparc__) && defined (__linux__) | |
8533 | signal (SIGILL, sigfpe_handler); | |
8534 | #endif | |
8535 | ||
8536 | z = x / y; | |
8537 | nan = y / y; | |
8538 | exit (1); | |
8539 | } | |
8540 | ||
8541 | _ACEOF | |
8542 | rm -f conftest$ac_exeext | |
d3ad40de CR |
8543 | if { (ac_try="$ac_link" |
8544 | case "(($ac_try" in | |
8545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8546 | *) ac_try_echo=$ac_try;; | |
8547 | esac | |
dd4f3dd8 CR |
8548 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8549 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8550 | (eval "$ac_link") 2>&5 |
545f34cf | 8551 | ac_status=$? |
dd4f3dd8 | 8552 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 8553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
8554 | { (case "(($ac_try" in |
8555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8556 | *) ac_try_echo=$ac_try;; | |
8557 | esac | |
dd4f3dd8 CR |
8558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8559 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8560 | (eval "$ac_try") 2>&5 |
545f34cf | 8561 | ac_status=$? |
dd4f3dd8 | 8562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
8563 | (exit $ac_status); }; }; then |
8564 | gt_cv_int_divbyzero_sigfpe=yes | |
8565 | else | |
dd4f3dd8 CR |
8566 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8567 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
8568 | sed 's/^/| /' conftest.$ac_ext >&5 |
8569 | ||
8570 | ( exit $ac_status ) | |
8571 | gt_cv_int_divbyzero_sigfpe=no | |
8572 | fi | |
dd4f3dd8 | 8573 | rm -rf conftest.dSYM |
d3ad40de | 8574 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 8575 | fi |
d3ad40de CR |
8576 | |
8577 | ||
545f34cf CR |
8578 | |
8579 | fi | |
dd4f3dd8 CR |
8580 | { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
8581 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
545f34cf CR |
8582 | case "$gt_cv_int_divbyzero_sigfpe" in |
8583 | *yes) value=1;; | |
8584 | *) value=0;; | |
8585 | esac | |
8586 | ||
8587 | cat >>confdefs.h <<_ACEOF | |
8588 | @%:@define INTDIV0_RAISES_SIGFPE $value | |
8589 | _ACEOF | |
8590 | ||
8591 | ||
8592 | ||
dd4f3dd8 CR |
8593 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
8594 | $as_echo_n "checking for inttypes.h... " >&6; } | |
545f34cf | 8595 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
dd4f3dd8 | 8596 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8597 | else |
8598 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8599 | /* confdefs.h. */ |
8600 | _ACEOF | |
8601 | cat confdefs.h >>conftest.$ac_ext | |
8602 | cat >>conftest.$ac_ext <<_ACEOF | |
8603 | /* end confdefs.h. */ | |
8604 | #include <sys/types.h> | |
8605 | #include <inttypes.h> | |
8606 | int | |
8607 | main () | |
8608 | { | |
8609 | uintmax_t i = (uintmax_t) -1; | |
8610 | ; | |
8611 | return 0; | |
8612 | } | |
8613 | _ACEOF | |
8614 | rm -f conftest.$ac_objext | |
d3ad40de CR |
8615 | if { (ac_try="$ac_compile" |
8616 | case "(($ac_try" in | |
8617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8618 | *) ac_try_echo=$ac_try;; | |
8619 | esac | |
dd4f3dd8 CR |
8620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8621 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8622 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 8623 | ac_status=$? |
a82a04b3 CR |
8624 | grep -v '^ *+' conftest.er1 >conftest.err |
8625 | rm -f conftest.er1 | |
8626 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8628 | (exit $ac_status); } && { | |
8629 | test -z "$ac_c_werror_flag" || | |
8630 | test ! -s conftest.err | |
8631 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
8632 | jm_ac_cv_header_inttypes_h=yes |
8633 | else | |
dd4f3dd8 | 8634 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
8635 | sed 's/^/| /' conftest.$ac_ext >&5 |
8636 | ||
d3ad40de | 8637 | jm_ac_cv_header_inttypes_h=no |
545f34cf | 8638 | fi |
d3ad40de CR |
8639 | |
8640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 8641 | fi |
dd4f3dd8 CR |
8642 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
8643 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } | |
545f34cf CR |
8644 | if test $jm_ac_cv_header_inttypes_h = yes; then |
8645 | ||
8646 | cat >>confdefs.h <<_ACEOF | |
8647 | @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
8648 | _ACEOF | |
8649 | ||
8650 | fi | |
8651 | ||
8652 | ||
dd4f3dd8 CR |
8653 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
8654 | $as_echo_n "checking for stdint.h... " >&6; } | |
545f34cf | 8655 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
dd4f3dd8 | 8656 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8657 | else |
8658 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8659 | /* confdefs.h. */ |
8660 | _ACEOF | |
8661 | cat confdefs.h >>conftest.$ac_ext | |
8662 | cat >>conftest.$ac_ext <<_ACEOF | |
8663 | /* end confdefs.h. */ | |
8664 | #include <sys/types.h> | |
8665 | #include <stdint.h> | |
8666 | int | |
8667 | main () | |
8668 | { | |
8669 | uintmax_t i = (uintmax_t) -1; | |
8670 | ; | |
8671 | return 0; | |
8672 | } | |
8673 | _ACEOF | |
8674 | rm -f conftest.$ac_objext | |
d3ad40de CR |
8675 | if { (ac_try="$ac_compile" |
8676 | case "(($ac_try" in | |
8677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8678 | *) ac_try_echo=$ac_try;; | |
8679 | esac | |
dd4f3dd8 CR |
8680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8681 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8682 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 8683 | ac_status=$? |
a82a04b3 CR |
8684 | grep -v '^ *+' conftest.er1 >conftest.err |
8685 | rm -f conftest.er1 | |
8686 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8688 | (exit $ac_status); } && { | |
8689 | test -z "$ac_c_werror_flag" || | |
8690 | test ! -s conftest.err | |
8691 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
8692 | jm_ac_cv_header_stdint_h=yes |
8693 | else | |
dd4f3dd8 | 8694 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
8695 | sed 's/^/| /' conftest.$ac_ext >&5 |
8696 | ||
d3ad40de | 8697 | jm_ac_cv_header_stdint_h=no |
545f34cf | 8698 | fi |
d3ad40de CR |
8699 | |
8700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 8701 | fi |
dd4f3dd8 CR |
8702 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
8703 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } | |
545f34cf CR |
8704 | if test $jm_ac_cv_header_stdint_h = yes; then |
8705 | ||
8706 | cat >>confdefs.h <<_ACEOF | |
8707 | @%:@define HAVE_STDINT_H_WITH_UINTMAX 1 | |
8708 | _ACEOF | |
8709 | ||
8710 | fi | |
8711 | ||
8712 | ||
dd4f3dd8 CR |
8713 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
8714 | $as_echo_n "checking for unsigned long long... " >&6; } | |
545f34cf | 8715 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
dd4f3dd8 | 8716 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8717 | else |
8718 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8719 | /* confdefs.h. */ |
8720 | _ACEOF | |
8721 | cat confdefs.h >>conftest.$ac_ext | |
8722 | cat >>conftest.$ac_ext <<_ACEOF | |
8723 | /* end confdefs.h. */ | |
8724 | unsigned long long ull = 1; int i = 63; | |
8725 | int | |
8726 | main () | |
8727 | { | |
8728 | unsigned long long ullmax = (unsigned long long) -1; | |
8729 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
8730 | ; | |
8731 | return 0; | |
8732 | } | |
8733 | _ACEOF | |
8734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
8735 | if { (ac_try="$ac_link" |
8736 | case "(($ac_try" in | |
8737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8738 | *) ac_try_echo=$ac_try;; | |
8739 | esac | |
dd4f3dd8 CR |
8740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8741 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8742 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 8743 | ac_status=$? |
a82a04b3 CR |
8744 | grep -v '^ *+' conftest.er1 >conftest.err |
8745 | rm -f conftest.er1 | |
8746 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8748 | (exit $ac_status); } && { | |
8749 | test -z "$ac_c_werror_flag" || | |
8750 | test ! -s conftest.err | |
8751 | } && test -s conftest$ac_exeext && { | |
8752 | test "$cross_compiling" = yes || | |
8753 | $as_test_x conftest$ac_exeext | |
8754 | }; then | |
545f34cf CR |
8755 | ac_cv_type_unsigned_long_long=yes |
8756 | else | |
dd4f3dd8 | 8757 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
8758 | sed 's/^/| /' conftest.$ac_ext >&5 |
8759 | ||
d3ad40de | 8760 | ac_cv_type_unsigned_long_long=no |
545f34cf | 8761 | fi |
d3ad40de | 8762 | |
dd4f3dd8 CR |
8763 | rm -rf conftest.dSYM |
8764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 8765 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 8766 | fi |
dd4f3dd8 CR |
8767 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
8768 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | |
545f34cf CR |
8769 | if test $ac_cv_type_unsigned_long_long = yes; then |
8770 | ||
8771 | cat >>confdefs.h <<\_ACEOF | |
8772 | @%:@define HAVE_UNSIGNED_LONG_LONG 1 | |
8773 | _ACEOF | |
8774 | ||
8775 | fi | |
8776 | ||
8777 | ||
8778 | ||
8779 | ||
8780 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
8781 | ||
8782 | test $ac_cv_type_unsigned_long_long = yes \ | |
8783 | && ac_type='unsigned long long' \ | |
8784 | || ac_type='unsigned long' | |
8785 | ||
8786 | cat >>confdefs.h <<_ACEOF | |
8787 | @%:@define uintmax_t $ac_type | |
8788 | _ACEOF | |
8789 | ||
8790 | else | |
8791 | ||
8792 | cat >>confdefs.h <<\_ACEOF | |
8793 | @%:@define HAVE_UINTMAX_T 1 | |
8794 | _ACEOF | |
8795 | ||
8796 | fi | |
8797 | ||
8798 | ||
dd4f3dd8 CR |
8799 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
8800 | $as_echo_n "checking for inttypes.h... " >&6; } | |
545f34cf | 8801 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
dd4f3dd8 | 8802 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8803 | else |
8804 | ||
8805 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8806 | /* confdefs.h. */ |
8807 | _ACEOF | |
8808 | cat confdefs.h >>conftest.$ac_ext | |
8809 | cat >>conftest.$ac_ext <<_ACEOF | |
8810 | /* end confdefs.h. */ | |
8811 | #include <sys/types.h> | |
8812 | #include <inttypes.h> | |
8813 | int | |
8814 | main () | |
8815 | { | |
8816 | ||
8817 | ; | |
8818 | return 0; | |
8819 | } | |
8820 | _ACEOF | |
8821 | rm -f conftest.$ac_objext | |
d3ad40de CR |
8822 | if { (ac_try="$ac_compile" |
8823 | case "(($ac_try" in | |
8824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8825 | *) ac_try_echo=$ac_try;; | |
8826 | esac | |
dd4f3dd8 CR |
8827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8828 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8829 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 8830 | ac_status=$? |
a82a04b3 CR |
8831 | grep -v '^ *+' conftest.er1 >conftest.err |
8832 | rm -f conftest.er1 | |
8833 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8835 | (exit $ac_status); } && { | |
8836 | test -z "$ac_c_werror_flag" || | |
8837 | test ! -s conftest.err | |
8838 | } && test -s conftest.$ac_objext; then | |
09767ff0 CR |
8839 | gt_cv_header_inttypes_h=yes |
8840 | else | |
dd4f3dd8 | 8841 | $as_echo "$as_me: failed program was:" >&5 |
09767ff0 CR |
8842 | sed 's/^/| /' conftest.$ac_ext >&5 |
8843 | ||
8844 | gt_cv_header_inttypes_h=no | |
8845 | fi | |
8846 | ||
8847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8848 | ||
8849 | fi | |
dd4f3dd8 CR |
8850 | { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
8851 | $as_echo "$gt_cv_header_inttypes_h" >&6; } | |
09767ff0 CR |
8852 | if test $gt_cv_header_inttypes_h = yes; then |
8853 | ||
545f34cf CR |
8854 | cat >>confdefs.h <<_ACEOF |
8855 | @%:@define HAVE_INTTYPES_H 1 | |
8856 | _ACEOF | |
8857 | ||
8858 | fi | |
8859 | ||
8860 | ||
8861 | ||
8862 | if test $gt_cv_header_inttypes_h = yes; then | |
dd4f3dd8 CR |
8863 | { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
8864 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
545f34cf | 8865 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
dd4f3dd8 | 8866 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
8867 | else |
8868 | ||
8869 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
8870 | /* confdefs.h. */ |
8871 | _ACEOF | |
8872 | cat confdefs.h >>conftest.$ac_ext | |
8873 | cat >>conftest.$ac_ext <<_ACEOF | |
8874 | /* end confdefs.h. */ | |
8875 | #include <inttypes.h> | |
8876 | #ifdef PRId32 | |
8877 | char *p = PRId32; | |
8878 | #endif | |
8879 | ||
8880 | int | |
8881 | main () | |
8882 | { | |
8883 | ||
8884 | ; | |
8885 | return 0; | |
8886 | } | |
8887 | _ACEOF | |
8888 | rm -f conftest.$ac_objext | |
d3ad40de CR |
8889 | if { (ac_try="$ac_compile" |
8890 | case "(($ac_try" in | |
8891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8892 | *) ac_try_echo=$ac_try;; | |
8893 | esac | |
dd4f3dd8 CR |
8894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8895 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 8896 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 8897 | ac_status=$? |
a82a04b3 CR |
8898 | grep -v '^ *+' conftest.er1 >conftest.err |
8899 | rm -f conftest.er1 | |
8900 | cat conftest.err >&5 | |
dd4f3dd8 CR |
8901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8902 | (exit $ac_status); } && { | |
8903 | test -z "$ac_c_werror_flag" || | |
8904 | test ! -s conftest.err | |
8905 | } && test -s conftest.$ac_objext; then | |
2e4498b3 CR |
8906 | gt_cv_inttypes_pri_broken=no |
8907 | else | |
dd4f3dd8 | 8908 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 | 8909 | sed 's/^/| /' conftest.$ac_ext >&5 |
545f34cf | 8910 | |
d3ad40de | 8911 | gt_cv_inttypes_pri_broken=yes |
545f34cf | 8912 | fi |
d3ad40de CR |
8913 | |
8914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
8915 | |
8916 | fi | |
dd4f3dd8 CR |
8917 | { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
8918 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
545f34cf CR |
8919 | fi |
8920 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
8921 | ||
8922 | cat >>confdefs.h <<_ACEOF | |
8923 | @%:@define PRI_MACROS_BROKEN 1 | |
8924 | _ACEOF | |
8925 | ||
8926 | fi | |
8927 | ||
8928 | ||
8929 | if test "X$prefix" = "XNONE"; then | |
8930 | acl_final_prefix="$ac_default_prefix" | |
8931 | else | |
8932 | acl_final_prefix="$prefix" | |
8933 | fi | |
8934 | if test "X$exec_prefix" = "XNONE"; then | |
8935 | acl_final_exec_prefix='${prefix}' | |
8936 | else | |
8937 | acl_final_exec_prefix="$exec_prefix" | |
8938 | fi | |
8939 | acl_save_prefix="$prefix" | |
8940 | prefix="$acl_final_prefix" | |
8941 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
8942 | prefix="$acl_save_prefix" | |
8943 | ||
8944 | ||
dd4f3dd8 | 8945 | @%:@ Check whether --with-gnu-ld was given. |
545f34cf | 8946 | if test "${with_gnu_ld+set}" = set; then |
d3ad40de | 8947 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
545f34cf CR |
8948 | else |
8949 | with_gnu_ld=no | |
d3ad40de CR |
8950 | fi |
8951 | ||
545f34cf CR |
8952 | # Prepare PATH_SEPARATOR. |
8953 | # The user is always right. | |
8954 | if test "${PATH_SEPARATOR+set}" != set; then | |
8955 | echo "#! /bin/sh" >conf$$.sh | |
8956 | echo "exit 0" >>conf$$.sh | |
8957 | chmod +x conf$$.sh | |
8958 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8959 | PATH_SEPARATOR=';' | |
8960 | else | |
8961 | PATH_SEPARATOR=: | |
8962 | fi | |
8963 | rm -f conf$$.sh | |
8964 | fi | |
8965 | ac_prog=ld | |
8966 | if test "$GCC" = yes; then | |
8967 | # Check if gcc -print-prog-name=ld gives a path. | |
dd4f3dd8 CR |
8968 | { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
8969 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
545f34cf CR |
8970 | case $host in |
8971 | *-*-mingw*) | |
8972 | # gcc leaves a trailing carriage return which upsets mingw | |
8973 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
8974 | *) | |
8975 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
8976 | esac | |
8977 | case $ac_prog in | |
8978 | # Accept absolute paths. | |
8979 | [\\/]* | [A-Za-z]:[\\/]*) | |
8980 | re_direlt='/[^/][^/]*/\.\./' | |
8981 | # Canonicalize the path of ld | |
8982 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
8983 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
8984 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
8985 | done | |
8986 | test -z "$LD" && LD="$ac_prog" | |
8987 | ;; | |
8988 | "") | |
8989 | # If it fails, then pretend we aren't using GCC. | |
8990 | ac_prog=ld | |
8991 | ;; | |
8992 | *) | |
8993 | # If it is relative, then search for the first ld in PATH. | |
8994 | with_gnu_ld=unknown | |
8995 | ;; | |
8996 | esac | |
8997 | elif test "$with_gnu_ld" = yes; then | |
dd4f3dd8 CR |
8998 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
8999 | $as_echo_n "checking for GNU ld... " >&6; } | |
545f34cf | 9000 | else |
dd4f3dd8 CR |
9001 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
9002 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
545f34cf CR |
9003 | fi |
9004 | if test "${acl_cv_path_LD+set}" = set; then | |
dd4f3dd8 | 9005 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
9006 | else |
9007 | if test -z "$LD"; then | |
9008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
9009 | for ac_dir in $PATH; do | |
9010 | test -z "$ac_dir" && ac_dir=. | |
9011 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9012 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
9013 | # Check to see if the program is GNU ld. I'd rather use --version, | |
9014 | # but apparently some GNU ld's only accept -v. | |
9015 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
9016 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
9017 | test "$with_gnu_ld" != no && break | |
9018 | else | |
9019 | test "$with_gnu_ld" != yes && break | |
9020 | fi | |
9021 | fi | |
9022 | done | |
9023 | IFS="$ac_save_ifs" | |
9024 | else | |
9025 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
9026 | fi | |
9027 | fi | |
9028 | ||
9029 | LD="$acl_cv_path_LD" | |
9030 | if test -n "$LD"; then | |
dd4f3dd8 CR |
9031 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
9032 | $as_echo "$LD" >&6; } | |
545f34cf | 9033 | else |
dd4f3dd8 CR |
9034 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9035 | $as_echo "no" >&6; } | |
545f34cf | 9036 | fi |
dd4f3dd8 CR |
9037 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
9038 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
545f34cf | 9039 | { (exit 1); exit 1; }; } |
dd4f3dd8 CR |
9040 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
9041 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
545f34cf | 9042 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
dd4f3dd8 | 9043 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
9044 | else |
9045 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
9046 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
9047 | acl_cv_prog_gnu_ld=yes | |
9048 | else | |
9049 | acl_cv_prog_gnu_ld=no | |
9050 | fi | |
9051 | fi | |
dd4f3dd8 CR |
9052 | { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
9053 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
545f34cf CR |
9054 | with_gnu_ld=$acl_cv_prog_gnu_ld |
9055 | ||
9056 | ||
9057 | ||
dd4f3dd8 CR |
9058 | { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
9059 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
545f34cf | 9060 | if test "${acl_cv_rpath+set}" = set; then |
dd4f3dd8 | 9061 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
9062 | else |
9063 | ||
9064 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
9065 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
9066 | . ./conftest.sh | |
9067 | rm -f ./conftest.sh | |
9068 | acl_cv_rpath=done | |
9069 | ||
9070 | fi | |
dd4f3dd8 CR |
9071 | { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
9072 | $as_echo "$acl_cv_rpath" >&6; } | |
545f34cf CR |
9073 | wl="$acl_cv_wl" |
9074 | libext="$acl_cv_libext" | |
9075 | shlibext="$acl_cv_shlibext" | |
9076 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
9077 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
9078 | hardcode_direct="$acl_cv_hardcode_direct" | |
9079 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
dd4f3dd8 | 9080 | @%:@ Check whether --enable-rpath was given. |
545f34cf | 9081 | if test "${enable_rpath+set}" = set; then |
d3ad40de | 9082 | enableval=$enable_rpath; : |
545f34cf CR |
9083 | else |
9084 | enable_rpath=yes | |
d3ad40de CR |
9085 | fi |
9086 | ||
545f34cf CR |
9087 | |
9088 | ||
9089 | ||
9090 | ||
9091 | ||
9092 | ||
9093 | ||
9094 | use_additional=yes | |
9095 | ||
9096 | acl_save_prefix="$prefix" | |
9097 | prefix="$acl_final_prefix" | |
9098 | acl_save_exec_prefix="$exec_prefix" | |
9099 | exec_prefix="$acl_final_exec_prefix" | |
9100 | ||
9101 | eval additional_includedir=\"$includedir\" | |
9102 | eval additional_libdir=\"$libdir\" | |
9103 | ||
9104 | exec_prefix="$acl_save_exec_prefix" | |
9105 | prefix="$acl_save_prefix" | |
9106 | ||
9107 | ||
dd4f3dd8 | 9108 | @%:@ Check whether --with-libiconv-prefix was given. |
545f34cf | 9109 | if test "${with_libiconv_prefix+set}" = set; then |
d3ad40de | 9110 | withval=$with_libiconv_prefix; |
545f34cf CR |
9111 | if test "X$withval" = "Xno"; then |
9112 | use_additional=no | |
9113 | else | |
9114 | if test "X$withval" = "X"; then | |
9115 | ||
9116 | acl_save_prefix="$prefix" | |
9117 | prefix="$acl_final_prefix" | |
9118 | acl_save_exec_prefix="$exec_prefix" | |
9119 | exec_prefix="$acl_final_exec_prefix" | |
9120 | ||
9121 | eval additional_includedir=\"$includedir\" | |
9122 | eval additional_libdir=\"$libdir\" | |
9123 | ||
9124 | exec_prefix="$acl_save_exec_prefix" | |
9125 | prefix="$acl_save_prefix" | |
9126 | ||
9127 | else | |
9128 | additional_includedir="$withval/include" | |
9129 | additional_libdir="$withval/lib" | |
9130 | fi | |
9131 | fi | |
9132 | ||
d3ad40de CR |
9133 | fi |
9134 | ||
545f34cf CR |
9135 | LIBICONV= |
9136 | LTLIBICONV= | |
9137 | INCICONV= | |
9138 | rpathdirs= | |
9139 | ltrpathdirs= | |
9140 | names_already_handled= | |
9141 | names_next_round='iconv ' | |
9142 | while test -n "$names_next_round"; do | |
9143 | names_this_round="$names_next_round" | |
9144 | names_next_round= | |
9145 | for name in $names_this_round; do | |
9146 | already_handled= | |
9147 | for n in $names_already_handled; do | |
9148 | if test "$n" = "$name"; then | |
9149 | already_handled=yes | |
9150 | break | |
9151 | fi | |
9152 | done | |
9153 | if test -z "$already_handled"; then | |
9154 | names_already_handled="$names_already_handled $name" | |
9155 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
9156 | eval value=\"\$HAVE_LIB$uppername\" | |
9157 | if test -n "$value"; then | |
9158 | if test "$value" = yes; then | |
9159 | eval value=\"\$LIB$uppername\" | |
9160 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
9161 | eval value=\"\$LTLIB$uppername\" | |
9162 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
9163 | else | |
9164 | : | |
9165 | fi | |
9166 | else | |
9167 | found_dir= | |
9168 | found_la= | |
9169 | found_so= | |
9170 | found_a= | |
9171 | if test $use_additional = yes; then | |
9172 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
9173 | found_dir="$additional_libdir" | |
9174 | found_so="$additional_libdir/lib$name.$shlibext" | |
9175 | if test -f "$additional_libdir/lib$name.la"; then | |
9176 | found_la="$additional_libdir/lib$name.la" | |
9177 | fi | |
9178 | else | |
9179 | if test -f "$additional_libdir/lib$name.$libext"; then | |
9180 | found_dir="$additional_libdir" | |
9181 | found_a="$additional_libdir/lib$name.$libext" | |
9182 | if test -f "$additional_libdir/lib$name.la"; then | |
9183 | found_la="$additional_libdir/lib$name.la" | |
9184 | fi | |
9185 | fi | |
9186 | fi | |
9187 | fi | |
9188 | if test "X$found_dir" = "X"; then | |
9189 | for x in $LDFLAGS $LTLIBICONV; do | |
9190 | ||
9191 | acl_save_prefix="$prefix" | |
9192 | prefix="$acl_final_prefix" | |
9193 | acl_save_exec_prefix="$exec_prefix" | |
9194 | exec_prefix="$acl_final_exec_prefix" | |
9195 | eval x=\"$x\" | |
9196 | exec_prefix="$acl_save_exec_prefix" | |
9197 | prefix="$acl_save_prefix" | |
9198 | ||
9199 | case "$x" in | |
9200 | -L*) | |
9201 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9202 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
9203 | found_dir="$dir" | |
9204 | found_so="$dir/lib$name.$shlibext" | |
9205 | if test -f "$dir/lib$name.la"; then | |
9206 | found_la="$dir/lib$name.la" | |
9207 | fi | |
9208 | else | |
9209 | if test -f "$dir/lib$name.$libext"; then | |
9210 | found_dir="$dir" | |
9211 | found_a="$dir/lib$name.$libext" | |
9212 | if test -f "$dir/lib$name.la"; then | |
9213 | found_la="$dir/lib$name.la" | |
9214 | fi | |
9215 | fi | |
9216 | fi | |
9217 | ;; | |
9218 | esac | |
9219 | if test "X$found_dir" != "X"; then | |
9220 | break | |
9221 | fi | |
9222 | done | |
9223 | fi | |
9224 | if test "X$found_dir" != "X"; then | |
9225 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
9226 | if test "X$found_so" != "X"; then | |
9227 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
9228 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9229 | else | |
9230 | haveit= | |
9231 | for x in $ltrpathdirs; do | |
9232 | if test "X$x" = "X$found_dir"; then | |
9233 | haveit=yes | |
9234 | break | |
9235 | fi | |
9236 | done | |
9237 | if test -z "$haveit"; then | |
9238 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9239 | fi | |
9240 | if test "$hardcode_direct" = yes; then | |
9241 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9242 | else | |
9243 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
9244 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9245 | haveit= | |
9246 | for x in $rpathdirs; do | |
9247 | if test "X$x" = "X$found_dir"; then | |
9248 | haveit=yes | |
9249 | break | |
9250 | fi | |
9251 | done | |
9252 | if test -z "$haveit"; then | |
9253 | rpathdirs="$rpathdirs $found_dir" | |
9254 | fi | |
9255 | else | |
9256 | haveit= | |
9257 | for x in $LDFLAGS $LIBICONV; do | |
9258 | ||
9259 | acl_save_prefix="$prefix" | |
9260 | prefix="$acl_final_prefix" | |
9261 | acl_save_exec_prefix="$exec_prefix" | |
9262 | exec_prefix="$acl_final_exec_prefix" | |
9263 | eval x=\"$x\" | |
9264 | exec_prefix="$acl_save_exec_prefix" | |
9265 | prefix="$acl_save_prefix" | |
9266 | ||
9267 | if test "X$x" = "X-L$found_dir"; then | |
9268 | haveit=yes | |
9269 | break | |
9270 | fi | |
9271 | done | |
9272 | if test -z "$haveit"; then | |
9273 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9274 | fi | |
9275 | if test "$hardcode_minus_L" != no; then | |
9276 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9277 | else | |
9278 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9279 | fi | |
9280 | fi | |
9281 | fi | |
9282 | fi | |
9283 | else | |
9284 | if test "X$found_a" != "X"; then | |
9285 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9286 | else | |
9287 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9288 | fi | |
9289 | fi | |
9290 | additional_includedir= | |
9291 | case "$found_dir" in | |
9292 | */lib | */lib/) | |
9293 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
9294 | additional_includedir="$basedir/include" | |
9295 | ;; | |
9296 | esac | |
9297 | if test "X$additional_includedir" != "X"; then | |
9298 | if test "X$additional_includedir" != "X/usr/include"; then | |
9299 | haveit= | |
9300 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9301 | if test -n "$GCC"; then | |
9302 | case $host_os in | |
9303 | linux*) haveit=yes;; | |
9304 | esac | |
9305 | fi | |
9306 | fi | |
9307 | if test -z "$haveit"; then | |
9308 | for x in $CPPFLAGS $INCICONV; do | |
9309 | ||
9310 | acl_save_prefix="$prefix" | |
9311 | prefix="$acl_final_prefix" | |
9312 | acl_save_exec_prefix="$exec_prefix" | |
9313 | exec_prefix="$acl_final_exec_prefix" | |
9314 | eval x=\"$x\" | |
9315 | exec_prefix="$acl_save_exec_prefix" | |
9316 | prefix="$acl_save_prefix" | |
9317 | ||
9318 | if test "X$x" = "X-I$additional_includedir"; then | |
9319 | haveit=yes | |
9320 | break | |
9321 | fi | |
9322 | done | |
9323 | if test -z "$haveit"; then | |
9324 | if test -d "$additional_includedir"; then | |
9325 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9326 | fi | |
9327 | fi | |
9328 | fi | |
9329 | fi | |
9330 | fi | |
9331 | if test -n "$found_la"; then | |
9332 | save_libdir="$libdir" | |
9333 | case "$found_la" in | |
9334 | */* | *\\*) . "$found_la" ;; | |
9335 | *) . "./$found_la" ;; | |
9336 | esac | |
9337 | libdir="$save_libdir" | |
9338 | for dep in $dependency_libs; do | |
9339 | case "$dep" in | |
9340 | -L*) | |
9341 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9342 | if test "X$additional_libdir" != "X/usr/lib"; then | |
9343 | haveit= | |
9344 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
9345 | if test -n "$GCC"; then | |
9346 | case $host_os in | |
9347 | linux*) haveit=yes;; | |
9348 | esac | |
9349 | fi | |
9350 | fi | |
9351 | if test -z "$haveit"; then | |
9352 | haveit= | |
9353 | for x in $LDFLAGS $LIBICONV; do | |
9354 | ||
9355 | acl_save_prefix="$prefix" | |
9356 | prefix="$acl_final_prefix" | |
9357 | acl_save_exec_prefix="$exec_prefix" | |
9358 | exec_prefix="$acl_final_exec_prefix" | |
9359 | eval x=\"$x\" | |
9360 | exec_prefix="$acl_save_exec_prefix" | |
9361 | prefix="$acl_save_prefix" | |
9362 | ||
9363 | if test "X$x" = "X-L$additional_libdir"; then | |
9364 | haveit=yes | |
9365 | break | |
9366 | fi | |
9367 | done | |
9368 | if test -z "$haveit"; then | |
9369 | if test -d "$additional_libdir"; then | |
9370 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
9371 | fi | |
9372 | fi | |
9373 | haveit= | |
9374 | for x in $LDFLAGS $LTLIBICONV; do | |
9375 | ||
9376 | acl_save_prefix="$prefix" | |
9377 | prefix="$acl_final_prefix" | |
9378 | acl_save_exec_prefix="$exec_prefix" | |
9379 | exec_prefix="$acl_final_exec_prefix" | |
9380 | eval x=\"$x\" | |
9381 | exec_prefix="$acl_save_exec_prefix" | |
9382 | prefix="$acl_save_prefix" | |
9383 | ||
9384 | if test "X$x" = "X-L$additional_libdir"; then | |
9385 | haveit=yes | |
9386 | break | |
9387 | fi | |
9388 | done | |
9389 | if test -z "$haveit"; then | |
9390 | if test -d "$additional_libdir"; then | |
9391 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
9392 | fi | |
9393 | fi | |
9394 | fi | |
9395 | fi | |
9396 | ;; | |
9397 | -R*) | |
9398 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9399 | if test "$enable_rpath" != no; then | |
9400 | haveit= | |
9401 | for x in $rpathdirs; do | |
9402 | if test "X$x" = "X$dir"; then | |
9403 | haveit=yes | |
9404 | break | |
9405 | fi | |
9406 | done | |
9407 | if test -z "$haveit"; then | |
9408 | rpathdirs="$rpathdirs $dir" | |
9409 | fi | |
9410 | haveit= | |
9411 | for x in $ltrpathdirs; do | |
9412 | if test "X$x" = "X$dir"; then | |
9413 | haveit=yes | |
9414 | break | |
9415 | fi | |
9416 | done | |
9417 | if test -z "$haveit"; then | |
9418 | ltrpathdirs="$ltrpathdirs $dir" | |
9419 | fi | |
9420 | fi | |
9421 | ;; | |
9422 | -l*) | |
9423 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9424 | ;; | |
9425 | *.la) | |
9426 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9427 | ;; | |
9428 | *) | |
9429 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9430 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9431 | ;; | |
9432 | esac | |
9433 | done | |
9434 | fi | |
9435 | else | |
9436 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9437 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9438 | fi | |
9439 | fi | |
9440 | fi | |
9441 | done | |
9442 | done | |
9443 | if test "X$rpathdirs" != "X"; then | |
9444 | if test -n "$hardcode_libdir_separator"; then | |
9445 | alldirs= | |
9446 | for found_dir in $rpathdirs; do | |
9447 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
9448 | done | |
9449 | acl_save_libdir="$libdir" | |
9450 | libdir="$alldirs" | |
9451 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9452 | libdir="$acl_save_libdir" | |
9453 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9454 | else | |
9455 | for found_dir in $rpathdirs; do | |
9456 | acl_save_libdir="$libdir" | |
9457 | libdir="$found_dir" | |
9458 | eval flag=\"$hardcode_libdir_flag_spec\" | |
9459 | libdir="$acl_save_libdir" | |
9460 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9461 | done | |
9462 | fi | |
9463 | fi | |
9464 | if test "X$ltrpathdirs" != "X"; then | |
9465 | for found_dir in $ltrpathdirs; do | |
9466 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9467 | done | |
9468 | fi | |
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | ||
9483 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
9484 | stdlib.h string.h unistd.h sys/param.h | |
9485 | do | |
dd4f3dd8 | 9486 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 9487 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
9488 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9489 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 9490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 9491 | $as_echo_n "(cached) " >&6 |
545f34cf | 9492 | fi |
dd4f3dd8 CR |
9493 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9494 | $as_echo "$as_val"'` | |
9495 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9496 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
9497 | else |
9498 | # Is the header compilable? | |
dd4f3dd8 CR |
9499 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9500 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 9501 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
9502 | /* confdefs.h. */ |
9503 | _ACEOF | |
9504 | cat confdefs.h >>conftest.$ac_ext | |
9505 | cat >>conftest.$ac_ext <<_ACEOF | |
9506 | /* end confdefs.h. */ | |
9507 | $ac_includes_default | |
9508 | @%:@include <$ac_header> | |
9509 | _ACEOF | |
9510 | rm -f conftest.$ac_objext | |
d3ad40de CR |
9511 | if { (ac_try="$ac_compile" |
9512 | case "(($ac_try" in | |
9513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9514 | *) ac_try_echo=$ac_try;; | |
9515 | esac | |
dd4f3dd8 CR |
9516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9517 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 9518 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 9519 | ac_status=$? |
a82a04b3 CR |
9520 | grep -v '^ *+' conftest.er1 >conftest.err |
9521 | rm -f conftest.er1 | |
9522 | cat conftest.err >&5 | |
dd4f3dd8 CR |
9523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9524 | (exit $ac_status); } && { | |
9525 | test -z "$ac_c_werror_flag" || | |
9526 | test ! -s conftest.err | |
9527 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
9528 | ac_header_compiler=yes |
9529 | else | |
dd4f3dd8 | 9530 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
9531 | sed 's/^/| /' conftest.$ac_ext >&5 |
9532 | ||
d3ad40de | 9533 | ac_header_compiler=no |
545f34cf | 9534 | fi |
d3ad40de CR |
9535 | |
9536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
9537 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9538 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
9539 | |
9540 | # Is the header present? | |
dd4f3dd8 CR |
9541 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9542 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 9543 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
9544 | /* confdefs.h. */ |
9545 | _ACEOF | |
9546 | cat confdefs.h >>conftest.$ac_ext | |
9547 | cat >>conftest.$ac_ext <<_ACEOF | |
9548 | /* end confdefs.h. */ | |
9549 | @%:@include <$ac_header> | |
9550 | _ACEOF | |
d3ad40de CR |
9551 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9552 | case "(($ac_try" in | |
9553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9554 | *) ac_try_echo=$ac_try;; | |
9555 | esac | |
dd4f3dd8 CR |
9556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9557 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 9558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
9559 | ac_status=$? |
9560 | grep -v '^ *+' conftest.er1 >conftest.err | |
9561 | rm -f conftest.er1 | |
9562 | cat conftest.err >&5 | |
dd4f3dd8 CR |
9563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9564 | (exit $ac_status); } >/dev/null && { | |
9565 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9566 | test ! -s conftest.err | |
9567 | }; then | |
545f34cf CR |
9568 | ac_header_preproc=yes |
9569 | else | |
dd4f3dd8 | 9570 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
9571 | sed 's/^/| /' conftest.$ac_ext >&5 |
9572 | ||
9573 | ac_header_preproc=no | |
9574 | fi | |
d3ad40de | 9575 | |
545f34cf | 9576 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
9577 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9578 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
9579 | |
9580 | # So? What about this header? | |
a82a04b3 CR |
9581 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9582 | yes:no: ) | |
dd4f3dd8 CR |
9583 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9584 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9585 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9586 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 9587 | ac_header_preproc=yes |
545f34cf | 9588 | ;; |
a82a04b3 | 9589 | no:yes:* ) |
dd4f3dd8 CR |
9590 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9591 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9592 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9593 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9594 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9595 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9596 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9597 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9598 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9599 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9600 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9601 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 9602 | ( cat <<\_ASBOX |
a82a04b3 CR |
9603 | @%:@@%:@ ------------------------------- @%:@@%:@ |
9604 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
9605 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 9606 | _ASBOX |
d3ad40de | 9607 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
9608 | ;; |
9609 | esac | |
dd4f3dd8 CR |
9610 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9611 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 9612 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 9613 | $as_echo_n "(cached) " >&6 |
545f34cf | 9614 | else |
a82a04b3 | 9615 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 9616 | fi |
dd4f3dd8 CR |
9617 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9618 | $as_echo "$as_val"'` | |
9619 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9620 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
9621 | |
9622 | fi | |
76af2125 CR |
9623 | if test `eval 'as_val=${'$as_ac_Header'} |
9624 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 9625 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 9626 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
9627 | _ACEOF |
9628 | ||
9629 | fi | |
9630 | ||
9631 | done | |
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9637 | ||
9638 | ||
9639 | ||
9640 | ||
9641 | ||
9642 | ||
9643 | ||
9644 | ||
9645 | ||
9646 | ||
9647 | ||
9648 | ||
9649 | ||
9650 | ||
9651 | ||
9652 | ||
d3ad40de | 9653 | |
545f34cf CR |
9654 | |
9655 | ||
9656 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
d3ad40de | 9657 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \ |
545f34cf CR |
9658 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ |
9659 | __fsetlocking | |
9660 | do | |
dd4f3dd8 CR |
9661 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9662 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9663 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 9664 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 9665 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
9666 | else |
9667 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
9668 | /* confdefs.h. */ |
9669 | _ACEOF | |
9670 | cat confdefs.h >>conftest.$ac_ext | |
9671 | cat >>conftest.$ac_ext <<_ACEOF | |
9672 | /* end confdefs.h. */ | |
a82a04b3 CR |
9673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9675 | #define $ac_func innocuous_$ac_func | |
9676 | ||
545f34cf CR |
9677 | /* System header to define __stub macros and hopefully few prototypes, |
9678 | which can conflict with char $ac_func (); below. | |
9679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9680 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 9681 | |
545f34cf CR |
9682 | #ifdef __STDC__ |
9683 | # include <limits.h> | |
9684 | #else | |
9685 | # include <assert.h> | |
9686 | #endif | |
a82a04b3 CR |
9687 | |
9688 | #undef $ac_func | |
9689 | ||
d3ad40de CR |
9690 | /* Override any GCC internal prototype to avoid an error. |
9691 | Use char because int might match the return type of a GCC | |
9692 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
9693 | #ifdef __cplusplus |
9694 | extern "C" | |
545f34cf | 9695 | #endif |
545f34cf CR |
9696 | char $ac_func (); |
9697 | /* The GNU C library defines this for functions which it implements | |
9698 | to always fail with ENOSYS. Some functions are actually named | |
9699 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 9700 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 9701 | choke me |
545f34cf CR |
9702 | #endif |
9703 | ||
9704 | int | |
9705 | main () | |
9706 | { | |
d3ad40de | 9707 | return $ac_func (); |
545f34cf CR |
9708 | ; |
9709 | return 0; | |
9710 | } | |
9711 | _ACEOF | |
9712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
9713 | if { (ac_try="$ac_link" |
9714 | case "(($ac_try" in | |
9715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9716 | *) ac_try_echo=$ac_try;; | |
9717 | esac | |
dd4f3dd8 CR |
9718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9719 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 9720 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 9721 | ac_status=$? |
a82a04b3 CR |
9722 | grep -v '^ *+' conftest.er1 >conftest.err |
9723 | rm -f conftest.er1 | |
9724 | cat conftest.err >&5 | |
dd4f3dd8 CR |
9725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9726 | (exit $ac_status); } && { | |
9727 | test -z "$ac_c_werror_flag" || | |
9728 | test ! -s conftest.err | |
9729 | } && test -s conftest$ac_exeext && { | |
9730 | test "$cross_compiling" = yes || | |
9731 | $as_test_x conftest$ac_exeext | |
9732 | }; then | |
545f34cf CR |
9733 | eval "$as_ac_var=yes" |
9734 | else | |
dd4f3dd8 | 9735 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
9736 | sed 's/^/| /' conftest.$ac_ext >&5 |
9737 | ||
d3ad40de | 9738 | eval "$as_ac_var=no" |
545f34cf | 9739 | fi |
d3ad40de | 9740 | |
dd4f3dd8 CR |
9741 | rm -rf conftest.dSYM |
9742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 9743 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 9744 | fi |
dd4f3dd8 CR |
9745 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9746 | $as_echo "$as_val"'` | |
9747 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9748 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
9749 | if test `eval 'as_val=${'$as_ac_var'} |
9750 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 9751 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 9752 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
9753 | _ACEOF |
9754 | ||
9755 | fi | |
9756 | done | |
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | am_save_CPPFLAGS="$CPPFLAGS" | |
9765 | ||
9766 | for element in $INCICONV; do | |
9767 | haveit= | |
9768 | for x in $CPPFLAGS; do | |
9769 | ||
9770 | acl_save_prefix="$prefix" | |
9771 | prefix="$acl_final_prefix" | |
9772 | acl_save_exec_prefix="$exec_prefix" | |
9773 | exec_prefix="$acl_final_exec_prefix" | |
9774 | eval x=\"$x\" | |
9775 | exec_prefix="$acl_save_exec_prefix" | |
9776 | prefix="$acl_save_prefix" | |
9777 | ||
9778 | if test "X$x" = "X$element"; then | |
9779 | haveit=yes | |
9780 | break | |
9781 | fi | |
9782 | done | |
9783 | if test -z "$haveit"; then | |
9784 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9785 | fi | |
9786 | done | |
9787 | ||
9788 | ||
dd4f3dd8 CR |
9789 | { $as_echo "$as_me:$LINENO: checking for iconv" >&5 |
9790 | $as_echo_n "checking for iconv... " >&6; } | |
545f34cf | 9791 | if test "${am_cv_func_iconv+set}" = set; then |
dd4f3dd8 | 9792 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
9793 | else |
9794 | ||
9795 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
9796 | am_cv_lib_iconv=no | |
9797 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
9798 | /* confdefs.h. */ |
9799 | _ACEOF | |
9800 | cat confdefs.h >>conftest.$ac_ext | |
9801 | cat >>conftest.$ac_ext <<_ACEOF | |
9802 | /* end confdefs.h. */ | |
9803 | #include <stdlib.h> | |
9804 | #include <iconv.h> | |
9805 | int | |
9806 | main () | |
9807 | { | |
9808 | iconv_t cd = iconv_open("",""); | |
9809 | iconv(cd,NULL,NULL,NULL,NULL); | |
9810 | iconv_close(cd); | |
9811 | ; | |
9812 | return 0; | |
9813 | } | |
9814 | _ACEOF | |
9815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
9816 | if { (ac_try="$ac_link" |
9817 | case "(($ac_try" in | |
9818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9819 | *) ac_try_echo=$ac_try;; | |
9820 | esac | |
dd4f3dd8 CR |
9821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9822 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 9823 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 9824 | ac_status=$? |
a82a04b3 CR |
9825 | grep -v '^ *+' conftest.er1 >conftest.err |
9826 | rm -f conftest.er1 | |
9827 | cat conftest.err >&5 | |
dd4f3dd8 CR |
9828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9829 | (exit $ac_status); } && { | |
9830 | test -z "$ac_c_werror_flag" || | |
9831 | test ! -s conftest.err | |
9832 | } && test -s conftest$ac_exeext && { | |
9833 | test "$cross_compiling" = yes || | |
9834 | $as_test_x conftest$ac_exeext | |
9835 | }; then | |
545f34cf CR |
9836 | am_cv_func_iconv=yes |
9837 | else | |
dd4f3dd8 | 9838 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
9839 | sed 's/^/| /' conftest.$ac_ext >&5 |
9840 | ||
d3ad40de | 9841 | |
545f34cf | 9842 | fi |
d3ad40de | 9843 | |
dd4f3dd8 CR |
9844 | rm -rf conftest.dSYM |
9845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 9846 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
9847 | if test "$am_cv_func_iconv" != yes; then |
9848 | am_save_LIBS="$LIBS" | |
9849 | LIBS="$LIBS $LIBICONV" | |
9850 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
9851 | /* confdefs.h. */ |
9852 | _ACEOF | |
9853 | cat confdefs.h >>conftest.$ac_ext | |
9854 | cat >>conftest.$ac_ext <<_ACEOF | |
9855 | /* end confdefs.h. */ | |
9856 | #include <stdlib.h> | |
9857 | #include <iconv.h> | |
9858 | int | |
9859 | main () | |
9860 | { | |
9861 | iconv_t cd = iconv_open("",""); | |
9862 | iconv(cd,NULL,NULL,NULL,NULL); | |
9863 | iconv_close(cd); | |
9864 | ; | |
9865 | return 0; | |
9866 | } | |
9867 | _ACEOF | |
9868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
9869 | if { (ac_try="$ac_link" |
9870 | case "(($ac_try" in | |
9871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9872 | *) ac_try_echo=$ac_try;; | |
9873 | esac | |
dd4f3dd8 CR |
9874 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9875 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 9876 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 9877 | ac_status=$? |
a82a04b3 CR |
9878 | grep -v '^ *+' conftest.er1 >conftest.err |
9879 | rm -f conftest.er1 | |
9880 | cat conftest.err >&5 | |
dd4f3dd8 CR |
9881 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9882 | (exit $ac_status); } && { | |
9883 | test -z "$ac_c_werror_flag" || | |
9884 | test ! -s conftest.err | |
9885 | } && test -s conftest$ac_exeext && { | |
9886 | test "$cross_compiling" = yes || | |
9887 | $as_test_x conftest$ac_exeext | |
9888 | }; then | |
545f34cf CR |
9889 | am_cv_lib_iconv=yes |
9890 | am_cv_func_iconv=yes | |
9891 | else | |
dd4f3dd8 | 9892 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
9893 | sed 's/^/| /' conftest.$ac_ext >&5 |
9894 | ||
d3ad40de | 9895 | |
545f34cf | 9896 | fi |
d3ad40de | 9897 | |
dd4f3dd8 CR |
9898 | rm -rf conftest.dSYM |
9899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 9900 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
9901 | LIBS="$am_save_LIBS" |
9902 | fi | |
9903 | ||
9904 | fi | |
dd4f3dd8 CR |
9905 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
9906 | $as_echo "$am_cv_func_iconv" >&6; } | |
545f34cf CR |
9907 | if test "$am_cv_func_iconv" = yes; then |
9908 | ||
9909 | cat >>confdefs.h <<\_ACEOF | |
9910 | @%:@define HAVE_ICONV 1 | |
9911 | _ACEOF | |
9912 | ||
9913 | fi | |
9914 | if test "$am_cv_lib_iconv" = yes; then | |
dd4f3dd8 CR |
9915 | { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
9916 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
9917 | { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
9918 | $as_echo "$LIBICONV" >&6; } | |
545f34cf CR |
9919 | else |
9920 | CPPFLAGS="$am_save_CPPFLAGS" | |
9921 | LIBICONV= | |
9922 | LTLIBICONV= | |
9923 | fi | |
9924 | ||
9925 | ||
9926 | ||
9927 | if test "$am_cv_func_iconv" = yes; then | |
dd4f3dd8 CR |
9928 | { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
9929 | $as_echo_n "checking for iconv declaration... " >&6; } | |
545f34cf | 9930 | if test "${am_cv_proto_iconv+set}" = set; then |
dd4f3dd8 | 9931 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
9932 | else |
9933 | ||
9934 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
9935 | /* confdefs.h. */ |
9936 | _ACEOF | |
9937 | cat confdefs.h >>conftest.$ac_ext | |
9938 | cat >>conftest.$ac_ext <<_ACEOF | |
9939 | /* end confdefs.h. */ | |
9940 | ||
9941 | #include <stdlib.h> | |
9942 | #include <iconv.h> | |
9943 | extern | |
9944 | #ifdef __cplusplus | |
9945 | "C" | |
9946 | #endif | |
9947 | #if defined(__STDC__) || defined(__cplusplus) | |
9948 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
9949 | #else | |
9950 | size_t iconv(); | |
9951 | #endif | |
9952 | ||
9953 | int | |
9954 | main () | |
9955 | { | |
9956 | ||
9957 | ; | |
9958 | return 0; | |
9959 | } | |
9960 | _ACEOF | |
9961 | rm -f conftest.$ac_objext | |
d3ad40de CR |
9962 | if { (ac_try="$ac_compile" |
9963 | case "(($ac_try" in | |
9964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9965 | *) ac_try_echo=$ac_try;; | |
9966 | esac | |
dd4f3dd8 CR |
9967 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9968 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 9969 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 9970 | ac_status=$? |
a82a04b3 CR |
9971 | grep -v '^ *+' conftest.er1 >conftest.err |
9972 | rm -f conftest.er1 | |
9973 | cat conftest.err >&5 | |
dd4f3dd8 CR |
9974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9975 | (exit $ac_status); } && { | |
9976 | test -z "$ac_c_werror_flag" || | |
9977 | test ! -s conftest.err | |
9978 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
9979 | am_cv_proto_iconv_arg1="" |
9980 | else | |
dd4f3dd8 | 9981 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
9982 | sed 's/^/| /' conftest.$ac_ext >&5 |
9983 | ||
d3ad40de | 9984 | am_cv_proto_iconv_arg1="const" |
545f34cf | 9985 | fi |
d3ad40de CR |
9986 | |
9987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
9988 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
9989 | fi | |
9990 | ||
9991 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
dd4f3dd8 | 9992 | { $as_echo "$as_me:$LINENO: result: ${ac_t:- |
545f34cf | 9993 | }$am_cv_proto_iconv" >&5 |
dd4f3dd8 | 9994 | $as_echo "${ac_t:- |
d3ad40de | 9995 | }$am_cv_proto_iconv" >&6; } |
545f34cf CR |
9996 | |
9997 | cat >>confdefs.h <<_ACEOF | |
9998 | @%:@define ICONV_CONST $am_cv_proto_iconv_arg1 | |
9999 | _ACEOF | |
10000 | ||
10001 | fi | |
10002 | ||
10003 | ||
dd4f3dd8 CR |
10004 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
10005 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
545f34cf | 10006 | if test "${am_cv_langinfo_codeset+set}" = set; then |
dd4f3dd8 | 10007 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
10008 | else |
10009 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
10010 | /* confdefs.h. */ |
10011 | _ACEOF | |
10012 | cat confdefs.h >>conftest.$ac_ext | |
10013 | cat >>conftest.$ac_ext <<_ACEOF | |
10014 | /* end confdefs.h. */ | |
10015 | #include <langinfo.h> | |
10016 | int | |
10017 | main () | |
10018 | { | |
10019 | char* cs = nl_langinfo(CODESET); | |
10020 | ; | |
10021 | return 0; | |
10022 | } | |
10023 | _ACEOF | |
10024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
10025 | if { (ac_try="$ac_link" |
10026 | case "(($ac_try" in | |
10027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10028 | *) ac_try_echo=$ac_try;; | |
10029 | esac | |
dd4f3dd8 CR |
10030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10031 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 10032 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 10033 | ac_status=$? |
a82a04b3 CR |
10034 | grep -v '^ *+' conftest.er1 >conftest.err |
10035 | rm -f conftest.er1 | |
10036 | cat conftest.err >&5 | |
dd4f3dd8 CR |
10037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10038 | (exit $ac_status); } && { | |
10039 | test -z "$ac_c_werror_flag" || | |
10040 | test ! -s conftest.err | |
10041 | } && test -s conftest$ac_exeext && { | |
10042 | test "$cross_compiling" = yes || | |
10043 | $as_test_x conftest$ac_exeext | |
10044 | }; then | |
545f34cf CR |
10045 | am_cv_langinfo_codeset=yes |
10046 | else | |
dd4f3dd8 | 10047 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
10048 | sed 's/^/| /' conftest.$ac_ext >&5 |
10049 | ||
d3ad40de | 10050 | am_cv_langinfo_codeset=no |
545f34cf | 10051 | fi |
d3ad40de | 10052 | |
dd4f3dd8 CR |
10053 | rm -rf conftest.dSYM |
10054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 10055 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
10056 | |
10057 | fi | |
dd4f3dd8 CR |
10058 | { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
10059 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
545f34cf CR |
10060 | if test $am_cv_langinfo_codeset = yes; then |
10061 | ||
10062 | cat >>confdefs.h <<\_ACEOF | |
10063 | @%:@define HAVE_LANGINFO_CODESET 1 | |
10064 | _ACEOF | |
10065 | ||
10066 | fi | |
10067 | ||
10068 | if test $ac_cv_header_locale_h = yes; then | |
10069 | ||
dd4f3dd8 CR |
10070 | { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
10071 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
545f34cf | 10072 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
dd4f3dd8 | 10073 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
10074 | else |
10075 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
10076 | /* confdefs.h. */ |
10077 | _ACEOF | |
10078 | cat confdefs.h >>conftest.$ac_ext | |
10079 | cat >>conftest.$ac_ext <<_ACEOF | |
10080 | /* end confdefs.h. */ | |
10081 | #include <locale.h> | |
10082 | int | |
10083 | main () | |
10084 | { | |
10085 | return LC_MESSAGES | |
10086 | ; | |
10087 | return 0; | |
10088 | } | |
10089 | _ACEOF | |
10090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
10091 | if { (ac_try="$ac_link" |
10092 | case "(($ac_try" in | |
10093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10094 | *) ac_try_echo=$ac_try;; | |
10095 | esac | |
dd4f3dd8 CR |
10096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10097 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 10098 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 10099 | ac_status=$? |
a82a04b3 CR |
10100 | grep -v '^ *+' conftest.er1 >conftest.err |
10101 | rm -f conftest.er1 | |
10102 | cat conftest.err >&5 | |
dd4f3dd8 CR |
10103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10104 | (exit $ac_status); } && { | |
10105 | test -z "$ac_c_werror_flag" || | |
10106 | test ! -s conftest.err | |
10107 | } && test -s conftest$ac_exeext && { | |
10108 | test "$cross_compiling" = yes || | |
10109 | $as_test_x conftest$ac_exeext | |
10110 | }; then | |
545f34cf CR |
10111 | am_cv_val_LC_MESSAGES=yes |
10112 | else | |
dd4f3dd8 | 10113 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
10114 | sed 's/^/| /' conftest.$ac_ext >&5 |
10115 | ||
d3ad40de | 10116 | am_cv_val_LC_MESSAGES=no |
545f34cf | 10117 | fi |
d3ad40de | 10118 | |
dd4f3dd8 CR |
10119 | rm -rf conftest.dSYM |
10120 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 10121 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 10122 | fi |
dd4f3dd8 CR |
10123 | { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
10124 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
545f34cf CR |
10125 | if test $am_cv_val_LC_MESSAGES = yes; then |
10126 | ||
10127 | cat >>confdefs.h <<\_ACEOF | |
10128 | @%:@define HAVE_LC_MESSAGES 1 | |
10129 | _ACEOF | |
10130 | ||
10131 | fi | |
10132 | ||
10133 | fi | |
10134 | ||
10135 | for ac_prog in bison | |
10136 | do | |
10137 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10138 | set dummy $ac_prog; ac_word=$2 | |
dd4f3dd8 CR |
10139 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10140 | $as_echo_n "checking for $ac_word... " >&6; } | |
545f34cf | 10141 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
dd4f3dd8 | 10142 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
10143 | else |
10144 | if test -n "$INTLBISON"; then | |
10145 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
10146 | else | |
10147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10148 | for as_dir in $PATH | |
10149 | do | |
10150 | IFS=$as_save_IFS | |
10151 | test -z "$as_dir" && as_dir=. | |
10152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd4f3dd8 | 10153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
545f34cf | 10154 | ac_cv_prog_INTLBISON="$ac_prog" |
dd4f3dd8 | 10155 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
545f34cf CR |
10156 | break 2 |
10157 | fi | |
10158 | done | |
10159 | done | |
d3ad40de | 10160 | IFS=$as_save_IFS |
545f34cf CR |
10161 | |
10162 | fi | |
10163 | fi | |
10164 | INTLBISON=$ac_cv_prog_INTLBISON | |
10165 | if test -n "$INTLBISON"; then | |
dd4f3dd8 CR |
10166 | { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
10167 | $as_echo "$INTLBISON" >&6; } | |
545f34cf | 10168 | else |
dd4f3dd8 CR |
10169 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10170 | $as_echo "no" >&6; } | |
545f34cf CR |
10171 | fi |
10172 | ||
d3ad40de | 10173 | |
545f34cf CR |
10174 | test -n "$INTLBISON" && break |
10175 | done | |
10176 | ||
10177 | if test -z "$INTLBISON"; then | |
10178 | ac_verc_fail=yes | |
10179 | else | |
dd4f3dd8 CR |
10180 | { $as_echo "$as_me:$LINENO: checking version of bison" >&5 |
10181 | $as_echo_n "checking version of bison... " >&6; } | |
545f34cf CR |
10182 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
10183 | case $ac_prog_version in | |
10184 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
10185 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
10186 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
10187 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
10188 | esac | |
dd4f3dd8 CR |
10189 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
10190 | $as_echo "$ac_prog_version" >&6; } | |
545f34cf CR |
10191 | fi |
10192 | if test $ac_verc_fail = yes; then | |
10193 | INTLBISON=: | |
10194 | fi | |
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
dd4f3dd8 CR |
10211 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10212 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
10213 | @%:@ Check whether --enable-nls was given. | |
545f34cf | 10214 | if test "${enable_nls+set}" = set; then |
d3ad40de | 10215 | enableval=$enable_nls; USE_NLS=$enableval |
545f34cf CR |
10216 | else |
10217 | USE_NLS=yes | |
d3ad40de CR |
10218 | fi |
10219 | ||
dd4f3dd8 CR |
10220 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
10221 | $as_echo "$USE_NLS" >&6; } | |
545f34cf CR |
10222 | |
10223 | ||
10224 | ||
10225 | ||
10226 | BUILD_INCLUDED_LIBINTL=no | |
10227 | USE_INCLUDED_LIBINTL=no | |
10228 | ||
10229 | LIBINTL= | |
10230 | LTLIBINTL= | |
10231 | POSUB= | |
10232 | ||
10233 | if test "$USE_NLS" = "yes"; then | |
10234 | gt_use_preinstalled_gnugettext=no | |
10235 | ||
dd4f3dd8 CR |
10236 | { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
10237 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
545f34cf | 10238 | |
dd4f3dd8 | 10239 | @%:@ Check whether --with-included-gettext was given. |
545f34cf | 10240 | if test "${with_included_gettext+set}" = set; then |
d3ad40de | 10241 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
545f34cf CR |
10242 | else |
10243 | nls_cv_force_use_gnu_gettext=no | |
d3ad40de CR |
10244 | fi |
10245 | ||
dd4f3dd8 CR |
10246 | { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
10247 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
545f34cf CR |
10248 | |
10249 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
10250 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
dd4f3dd8 CR |
10257 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
10258 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
545f34cf | 10259 | if test "${gt_cv_func_gnugettext2_libc+set}" = set; then |
dd4f3dd8 | 10260 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
10261 | else |
10262 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
10263 | /* confdefs.h. */ |
10264 | _ACEOF | |
10265 | cat confdefs.h >>conftest.$ac_ext | |
10266 | cat >>conftest.$ac_ext <<_ACEOF | |
10267 | /* end confdefs.h. */ | |
10268 | #include <libintl.h> | |
10269 | extern int _nl_msg_cat_cntr; | |
10270 | extern int *_nl_domain_bindings; | |
10271 | int | |
10272 | main () | |
10273 | { | |
10274 | bindtextdomain ("", ""); | |
10275 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings | |
10276 | ; | |
10277 | return 0; | |
10278 | } | |
10279 | _ACEOF | |
10280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
10281 | if { (ac_try="$ac_link" |
10282 | case "(($ac_try" in | |
10283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10284 | *) ac_try_echo=$ac_try;; | |
10285 | esac | |
dd4f3dd8 CR |
10286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10287 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 10288 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 10289 | ac_status=$? |
a82a04b3 CR |
10290 | grep -v '^ *+' conftest.er1 >conftest.err |
10291 | rm -f conftest.er1 | |
10292 | cat conftest.err >&5 | |
dd4f3dd8 CR |
10293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10294 | (exit $ac_status); } && { | |
10295 | test -z "$ac_c_werror_flag" || | |
10296 | test ! -s conftest.err | |
10297 | } && test -s conftest$ac_exeext && { | |
10298 | test "$cross_compiling" = yes || | |
10299 | $as_test_x conftest$ac_exeext | |
10300 | }; then | |
545f34cf CR |
10301 | gt_cv_func_gnugettext2_libc=yes |
10302 | else | |
dd4f3dd8 | 10303 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
10304 | sed 's/^/| /' conftest.$ac_ext >&5 |
10305 | ||
d3ad40de | 10306 | gt_cv_func_gnugettext2_libc=no |
545f34cf | 10307 | fi |
d3ad40de | 10308 | |
dd4f3dd8 CR |
10309 | rm -rf conftest.dSYM |
10310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 10311 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 10312 | fi |
dd4f3dd8 CR |
10313 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5 |
10314 | $as_echo "$gt_cv_func_gnugettext2_libc" >&6; } | |
545f34cf CR |
10315 | |
10316 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then | |
10317 | ||
10318 | ||
10319 | ||
10320 | use_additional=yes | |
10321 | ||
10322 | acl_save_prefix="$prefix" | |
10323 | prefix="$acl_final_prefix" | |
10324 | acl_save_exec_prefix="$exec_prefix" | |
10325 | exec_prefix="$acl_final_exec_prefix" | |
10326 | ||
10327 | eval additional_includedir=\"$includedir\" | |
10328 | eval additional_libdir=\"$libdir\" | |
10329 | ||
10330 | exec_prefix="$acl_save_exec_prefix" | |
10331 | prefix="$acl_save_prefix" | |
10332 | ||
10333 | ||
dd4f3dd8 | 10334 | @%:@ Check whether --with-libintl-prefix was given. |
545f34cf | 10335 | if test "${with_libintl_prefix+set}" = set; then |
d3ad40de | 10336 | withval=$with_libintl_prefix; |
545f34cf CR |
10337 | if test "X$withval" = "Xno"; then |
10338 | use_additional=no | |
10339 | else | |
10340 | if test "X$withval" = "X"; then | |
10341 | ||
10342 | acl_save_prefix="$prefix" | |
10343 | prefix="$acl_final_prefix" | |
10344 | acl_save_exec_prefix="$exec_prefix" | |
10345 | exec_prefix="$acl_final_exec_prefix" | |
10346 | ||
10347 | eval additional_includedir=\"$includedir\" | |
10348 | eval additional_libdir=\"$libdir\" | |
10349 | ||
10350 | exec_prefix="$acl_save_exec_prefix" | |
10351 | prefix="$acl_save_prefix" | |
10352 | ||
10353 | else | |
10354 | additional_includedir="$withval/include" | |
10355 | additional_libdir="$withval/lib" | |
10356 | fi | |
10357 | fi | |
10358 | ||
d3ad40de CR |
10359 | fi |
10360 | ||
545f34cf CR |
10361 | LIBINTL= |
10362 | LTLIBINTL= | |
10363 | INCINTL= | |
10364 | rpathdirs= | |
10365 | ltrpathdirs= | |
10366 | names_already_handled= | |
10367 | names_next_round='intl ' | |
10368 | while test -n "$names_next_round"; do | |
10369 | names_this_round="$names_next_round" | |
10370 | names_next_round= | |
10371 | for name in $names_this_round; do | |
10372 | already_handled= | |
10373 | for n in $names_already_handled; do | |
10374 | if test "$n" = "$name"; then | |
10375 | already_handled=yes | |
10376 | break | |
10377 | fi | |
10378 | done | |
10379 | if test -z "$already_handled"; then | |
10380 | names_already_handled="$names_already_handled $name" | |
10381 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10382 | eval value=\"\$HAVE_LIB$uppername\" | |
10383 | if test -n "$value"; then | |
10384 | if test "$value" = yes; then | |
10385 | eval value=\"\$LIB$uppername\" | |
10386 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10387 | eval value=\"\$LTLIB$uppername\" | |
10388 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10389 | else | |
10390 | : | |
10391 | fi | |
10392 | else | |
10393 | found_dir= | |
10394 | found_la= | |
10395 | found_so= | |
10396 | found_a= | |
10397 | if test $use_additional = yes; then | |
10398 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10399 | found_dir="$additional_libdir" | |
10400 | found_so="$additional_libdir/lib$name.$shlibext" | |
10401 | if test -f "$additional_libdir/lib$name.la"; then | |
10402 | found_la="$additional_libdir/lib$name.la" | |
10403 | fi | |
10404 | else | |
10405 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10406 | found_dir="$additional_libdir" | |
10407 | found_a="$additional_libdir/lib$name.$libext" | |
10408 | if test -f "$additional_libdir/lib$name.la"; then | |
10409 | found_la="$additional_libdir/lib$name.la" | |
10410 | fi | |
10411 | fi | |
10412 | fi | |
10413 | fi | |
10414 | if test "X$found_dir" = "X"; then | |
10415 | for x in $LDFLAGS $LTLIBINTL; do | |
10416 | ||
10417 | acl_save_prefix="$prefix" | |
10418 | prefix="$acl_final_prefix" | |
10419 | acl_save_exec_prefix="$exec_prefix" | |
10420 | exec_prefix="$acl_final_exec_prefix" | |
10421 | eval x=\"$x\" | |
10422 | exec_prefix="$acl_save_exec_prefix" | |
10423 | prefix="$acl_save_prefix" | |
10424 | ||
10425 | case "$x" in | |
10426 | -L*) | |
10427 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
10428 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
10429 | found_dir="$dir" | |
10430 | found_so="$dir/lib$name.$shlibext" | |
10431 | if test -f "$dir/lib$name.la"; then | |
10432 | found_la="$dir/lib$name.la" | |
10433 | fi | |
10434 | else | |
10435 | if test -f "$dir/lib$name.$libext"; then | |
10436 | found_dir="$dir" | |
10437 | found_a="$dir/lib$name.$libext" | |
10438 | if test -f "$dir/lib$name.la"; then | |
10439 | found_la="$dir/lib$name.la" | |
10440 | fi | |
10441 | fi | |
10442 | fi | |
10443 | ;; | |
10444 | esac | |
10445 | if test "X$found_dir" != "X"; then | |
10446 | break | |
10447 | fi | |
10448 | done | |
10449 | fi | |
10450 | if test "X$found_dir" != "X"; then | |
10451 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
10452 | if test "X$found_so" != "X"; then | |
10453 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
10454 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10455 | else | |
10456 | haveit= | |
10457 | for x in $ltrpathdirs; do | |
10458 | if test "X$x" = "X$found_dir"; then | |
10459 | haveit=yes | |
10460 | break | |
10461 | fi | |
10462 | done | |
10463 | if test -z "$haveit"; then | |
10464 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10465 | fi | |
10466 | if test "$hardcode_direct" = yes; then | |
10467 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10468 | else | |
10469 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
10470 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10471 | haveit= | |
10472 | for x in $rpathdirs; do | |
10473 | if test "X$x" = "X$found_dir"; then | |
10474 | haveit=yes | |
10475 | break | |
10476 | fi | |
10477 | done | |
10478 | if test -z "$haveit"; then | |
10479 | rpathdirs="$rpathdirs $found_dir" | |
10480 | fi | |
10481 | else | |
10482 | haveit= | |
10483 | for x in $LDFLAGS $LIBINTL; do | |
10484 | ||
10485 | acl_save_prefix="$prefix" | |
10486 | prefix="$acl_final_prefix" | |
10487 | acl_save_exec_prefix="$exec_prefix" | |
10488 | exec_prefix="$acl_final_exec_prefix" | |
10489 | eval x=\"$x\" | |
10490 | exec_prefix="$acl_save_exec_prefix" | |
10491 | prefix="$acl_save_prefix" | |
10492 | ||
10493 | if test "X$x" = "X-L$found_dir"; then | |
10494 | haveit=yes | |
10495 | break | |
10496 | fi | |
10497 | done | |
10498 | if test -z "$haveit"; then | |
10499 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
10500 | fi | |
10501 | if test "$hardcode_minus_L" != no; then | |
10502 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
10503 | else | |
10504 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10505 | fi | |
10506 | fi | |
10507 | fi | |
10508 | fi | |
10509 | else | |
10510 | if test "X$found_a" != "X"; then | |
10511 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
10512 | else | |
10513 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
10514 | fi | |
10515 | fi | |
10516 | additional_includedir= | |
10517 | case "$found_dir" in | |
10518 | */lib | */lib/) | |
10519 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
10520 | additional_includedir="$basedir/include" | |
10521 | ;; | |
10522 | esac | |
10523 | if test "X$additional_includedir" != "X"; then | |
10524 | if test "X$additional_includedir" != "X/usr/include"; then | |
10525 | haveit= | |
10526 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10527 | if test -n "$GCC"; then | |
10528 | case $host_os in | |
10529 | linux*) haveit=yes;; | |
10530 | esac | |
10531 | fi | |
10532 | fi | |
10533 | if test -z "$haveit"; then | |
10534 | for x in $CPPFLAGS $INCINTL; do | |
10535 | ||
10536 | acl_save_prefix="$prefix" | |
10537 | prefix="$acl_final_prefix" | |
10538 | acl_save_exec_prefix="$exec_prefix" | |
10539 | exec_prefix="$acl_final_exec_prefix" | |
10540 | eval x=\"$x\" | |
10541 | exec_prefix="$acl_save_exec_prefix" | |
10542 | prefix="$acl_save_prefix" | |
10543 | ||
10544 | if test "X$x" = "X-I$additional_includedir"; then | |
10545 | haveit=yes | |
10546 | break | |
10547 | fi | |
10548 | done | |
10549 | if test -z "$haveit"; then | |
10550 | if test -d "$additional_includedir"; then | |
10551 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
10552 | fi | |
10553 | fi | |
10554 | fi | |
10555 | fi | |
10556 | fi | |
10557 | if test -n "$found_la"; then | |
10558 | save_libdir="$libdir" | |
10559 | case "$found_la" in | |
10560 | */* | *\\*) . "$found_la" ;; | |
10561 | *) . "./$found_la" ;; | |
10562 | esac | |
10563 | libdir="$save_libdir" | |
10564 | for dep in $dependency_libs; do | |
10565 | case "$dep" in | |
10566 | -L*) | |
10567 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
10568 | if test "X$additional_libdir" != "X/usr/lib"; then | |
10569 | haveit= | |
10570 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
10571 | if test -n "$GCC"; then | |
10572 | case $host_os in | |
10573 | linux*) haveit=yes;; | |
10574 | esac | |
10575 | fi | |
10576 | fi | |
10577 | if test -z "$haveit"; then | |
10578 | haveit= | |
10579 | for x in $LDFLAGS $LIBINTL; do | |
10580 | ||
10581 | acl_save_prefix="$prefix" | |
10582 | prefix="$acl_final_prefix" | |
10583 | acl_save_exec_prefix="$exec_prefix" | |
10584 | exec_prefix="$acl_final_exec_prefix" | |
10585 | eval x=\"$x\" | |
10586 | exec_prefix="$acl_save_exec_prefix" | |
10587 | prefix="$acl_save_prefix" | |
10588 | ||
10589 | if test "X$x" = "X-L$additional_libdir"; then | |
10590 | haveit=yes | |
10591 | break | |
10592 | fi | |
10593 | done | |
10594 | if test -z "$haveit"; then | |
10595 | if test -d "$additional_libdir"; then | |
10596 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
10597 | fi | |
10598 | fi | |
10599 | haveit= | |
10600 | for x in $LDFLAGS $LTLIBINTL; do | |
10601 | ||
10602 | acl_save_prefix="$prefix" | |
10603 | prefix="$acl_final_prefix" | |
10604 | acl_save_exec_prefix="$exec_prefix" | |
10605 | exec_prefix="$acl_final_exec_prefix" | |
10606 | eval x=\"$x\" | |
10607 | exec_prefix="$acl_save_exec_prefix" | |
10608 | prefix="$acl_save_prefix" | |
10609 | ||
10610 | if test "X$x" = "X-L$additional_libdir"; then | |
10611 | haveit=yes | |
10612 | break | |
10613 | fi | |
10614 | done | |
10615 | if test -z "$haveit"; then | |
10616 | if test -d "$additional_libdir"; then | |
10617 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
10618 | fi | |
10619 | fi | |
10620 | fi | |
10621 | fi | |
10622 | ;; | |
10623 | -R*) | |
10624 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10625 | if test "$enable_rpath" != no; then | |
10626 | haveit= | |
10627 | for x in $rpathdirs; do | |
10628 | if test "X$x" = "X$dir"; then | |
10629 | haveit=yes | |
10630 | break | |
10631 | fi | |
10632 | done | |
10633 | if test -z "$haveit"; then | |
10634 | rpathdirs="$rpathdirs $dir" | |
10635 | fi | |
10636 | haveit= | |
10637 | for x in $ltrpathdirs; do | |
10638 | if test "X$x" = "X$dir"; then | |
10639 | haveit=yes | |
10640 | break | |
10641 | fi | |
10642 | done | |
10643 | if test -z "$haveit"; then | |
10644 | ltrpathdirs="$ltrpathdirs $dir" | |
10645 | fi | |
10646 | fi | |
10647 | ;; | |
10648 | -l*) | |
10649 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
10650 | ;; | |
10651 | *.la) | |
10652 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10653 | ;; | |
10654 | *) | |
10655 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
10656 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
10657 | ;; | |
10658 | esac | |
10659 | done | |
10660 | fi | |
10661 | else | |
10662 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10663 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
10664 | fi | |
10665 | fi | |
10666 | fi | |
10667 | done | |
10668 | done | |
10669 | if test "X$rpathdirs" != "X"; then | |
10670 | if test -n "$hardcode_libdir_separator"; then | |
10671 | alldirs= | |
10672 | for found_dir in $rpathdirs; do | |
10673 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
10674 | done | |
10675 | acl_save_libdir="$libdir" | |
10676 | libdir="$alldirs" | |
10677 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10678 | libdir="$acl_save_libdir" | |
10679 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10680 | else | |
10681 | for found_dir in $rpathdirs; do | |
10682 | acl_save_libdir="$libdir" | |
10683 | libdir="$found_dir" | |
10684 | eval flag=\"$hardcode_libdir_flag_spec\" | |
10685 | libdir="$acl_save_libdir" | |
10686 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10687 | done | |
10688 | fi | |
10689 | fi | |
10690 | if test "X$ltrpathdirs" != "X"; then | |
10691 | for found_dir in $ltrpathdirs; do | |
10692 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
10693 | done | |
10694 | fi | |
10695 | ||
dd4f3dd8 CR |
10696 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
10697 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
545f34cf | 10698 | if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then |
dd4f3dd8 | 10699 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
10700 | else |
10701 | gt_save_CPPFLAGS="$CPPFLAGS" | |
10702 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
10703 | gt_save_LIBS="$LIBS" | |
10704 | LIBS="$LIBS $LIBINTL" | |
10705 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
10706 | /* confdefs.h. */ |
10707 | _ACEOF | |
10708 | cat confdefs.h >>conftest.$ac_ext | |
10709 | cat >>conftest.$ac_ext <<_ACEOF | |
10710 | /* end confdefs.h. */ | |
10711 | #include <libintl.h> | |
10712 | extern int _nl_msg_cat_cntr; | |
10713 | extern | |
10714 | #ifdef __cplusplus | |
10715 | "C" | |
10716 | #endif | |
10717 | const char *_nl_expand_alias (); | |
10718 | int | |
10719 | main () | |
10720 | { | |
10721 | bindtextdomain ("", ""); | |
10722 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
10723 | ; | |
10724 | return 0; | |
10725 | } | |
10726 | _ACEOF | |
10727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
10728 | if { (ac_try="$ac_link" |
10729 | case "(($ac_try" in | |
10730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10731 | *) ac_try_echo=$ac_try;; | |
10732 | esac | |
dd4f3dd8 CR |
10733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10734 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 10735 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 10736 | ac_status=$? |
a82a04b3 CR |
10737 | grep -v '^ *+' conftest.er1 >conftest.err |
10738 | rm -f conftest.er1 | |
10739 | cat conftest.err >&5 | |
dd4f3dd8 CR |
10740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10741 | (exit $ac_status); } && { | |
10742 | test -z "$ac_c_werror_flag" || | |
10743 | test ! -s conftest.err | |
10744 | } && test -s conftest$ac_exeext && { | |
10745 | test "$cross_compiling" = yes || | |
10746 | $as_test_x conftest$ac_exeext | |
10747 | }; then | |
545f34cf CR |
10748 | gt_cv_func_gnugettext2_libintl=yes |
10749 | else | |
dd4f3dd8 | 10750 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
10751 | sed 's/^/| /' conftest.$ac_ext >&5 |
10752 | ||
d3ad40de | 10753 | gt_cv_func_gnugettext2_libintl=no |
545f34cf | 10754 | fi |
d3ad40de | 10755 | |
dd4f3dd8 CR |
10756 | rm -rf conftest.dSYM |
10757 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 10758 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
10759 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then |
10760 | LIBS="$LIBS $LIBICONV" | |
10761 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
10762 | /* confdefs.h. */ |
10763 | _ACEOF | |
10764 | cat confdefs.h >>conftest.$ac_ext | |
10765 | cat >>conftest.$ac_ext <<_ACEOF | |
10766 | /* end confdefs.h. */ | |
10767 | #include <libintl.h> | |
10768 | extern int _nl_msg_cat_cntr; | |
10769 | extern | |
10770 | #ifdef __cplusplus | |
10771 | "C" | |
10772 | #endif | |
10773 | const char *_nl_expand_alias (); | |
10774 | int | |
10775 | main () | |
10776 | { | |
10777 | bindtextdomain ("", ""); | |
10778 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
10779 | ; | |
10780 | return 0; | |
10781 | } | |
10782 | _ACEOF | |
10783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
10784 | if { (ac_try="$ac_link" |
10785 | case "(($ac_try" in | |
10786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10787 | *) ac_try_echo=$ac_try;; | |
10788 | esac | |
dd4f3dd8 CR |
10789 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10790 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 10791 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 10792 | ac_status=$? |
a82a04b3 CR |
10793 | grep -v '^ *+' conftest.er1 >conftest.err |
10794 | rm -f conftest.er1 | |
10795 | cat conftest.err >&5 | |
dd4f3dd8 CR |
10796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10797 | (exit $ac_status); } && { | |
10798 | test -z "$ac_c_werror_flag" || | |
10799 | test ! -s conftest.err | |
10800 | } && test -s conftest$ac_exeext && { | |
10801 | test "$cross_compiling" = yes || | |
10802 | $as_test_x conftest$ac_exeext | |
10803 | }; then | |
545f34cf CR |
10804 | LIBINTL="$LIBINTL $LIBICONV" |
10805 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
10806 | gt_cv_func_gnugettext2_libintl=yes | |
10807 | ||
10808 | else | |
dd4f3dd8 | 10809 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
10810 | sed 's/^/| /' conftest.$ac_ext >&5 |
10811 | ||
d3ad40de | 10812 | |
545f34cf | 10813 | fi |
d3ad40de | 10814 | |
dd4f3dd8 CR |
10815 | rm -rf conftest.dSYM |
10816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 10817 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
10818 | fi |
10819 | CPPFLAGS="$gt_save_CPPFLAGS" | |
10820 | LIBS="$gt_save_LIBS" | |
10821 | fi | |
dd4f3dd8 CR |
10822 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5 |
10823 | $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } | |
545f34cf CR |
10824 | fi |
10825 | ||
10826 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ | |
10827 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ | |
10828 | && test "$PACKAGE" != gettext-runtime \ | |
10829 | && test "$PACKAGE" != gettext-tools; }; then | |
10830 | gt_use_preinstalled_gnugettext=yes | |
10831 | else | |
10832 | LIBINTL= | |
10833 | LTLIBINTL= | |
10834 | INCINTL= | |
10835 | fi | |
10836 | ||
10837 | ||
10838 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then | |
10839 | nls_cv_use_gnu_gettext=yes | |
10840 | fi | |
10841 | fi | |
10842 | ||
10843 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10844 | BUILD_INCLUDED_LIBINTL=yes | |
10845 | USE_INCLUDED_LIBINTL=yes | |
10846 | LIBINTL="lib/intl/libintl.a $LIBICONV" | |
10847 | LTLIBINTL="lib/intl/libintl.a $LTLIBICONV" | |
10848 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
10849 | fi | |
10850 | ||
10851 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
10852 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10853 | CATOBJEXT=.gmo | |
10854 | fi | |
10855 | ||
10856 | ||
10857 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
10858 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10859 | ||
10860 | cat >>confdefs.h <<\_ACEOF | |
10861 | @%:@define ENABLE_NLS 1 | |
10862 | _ACEOF | |
10863 | ||
10864 | else | |
10865 | USE_NLS=no | |
10866 | fi | |
10867 | fi | |
10868 | ||
dd4f3dd8 CR |
10869 | { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
10870 | $as_echo_n "checking whether to use NLS... " >&6; } | |
10871 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10872 | $as_echo "$USE_NLS" >&6; } | |
545f34cf | 10873 | if test "$USE_NLS" = "yes"; then |
dd4f3dd8 CR |
10874 | { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
10875 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
545f34cf CR |
10876 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
10877 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
10878 | gt_source="external libintl" | |
10879 | else | |
10880 | gt_source="libc" | |
10881 | fi | |
10882 | else | |
10883 | gt_source="included intl directory" | |
10884 | fi | |
dd4f3dd8 CR |
10885 | { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 |
10886 | $as_echo "$gt_source" >&6; } | |
545f34cf CR |
10887 | fi |
10888 | ||
10889 | if test "$USE_NLS" = "yes"; then | |
10890 | ||
10891 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
10892 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
dd4f3dd8 CR |
10893 | { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
10894 | $as_echo_n "checking how to link with libintl... " >&6; } | |
10895 | { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
10896 | $as_echo "$LIBINTL" >&6; } | |
545f34cf CR |
10897 | |
10898 | for element in $INCINTL; do | |
10899 | haveit= | |
10900 | for x in $CPPFLAGS; do | |
10901 | ||
10902 | acl_save_prefix="$prefix" | |
10903 | prefix="$acl_final_prefix" | |
10904 | acl_save_exec_prefix="$exec_prefix" | |
10905 | exec_prefix="$acl_final_exec_prefix" | |
10906 | eval x=\"$x\" | |
10907 | exec_prefix="$acl_save_exec_prefix" | |
10908 | prefix="$acl_save_prefix" | |
10909 | ||
10910 | if test "X$x" = "X$element"; then | |
10911 | haveit=yes | |
10912 | break | |
10913 | fi | |
10914 | done | |
10915 | if test -z "$haveit"; then | |
10916 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10917 | fi | |
10918 | done | |
10919 | ||
10920 | fi | |
10921 | ||
10922 | ||
10923 | cat >>confdefs.h <<\_ACEOF | |
10924 | @%:@define HAVE_GETTEXT 1 | |
10925 | _ACEOF | |
10926 | ||
10927 | ||
10928 | cat >>confdefs.h <<\_ACEOF | |
10929 | @%:@define HAVE_DCGETTEXT 1 | |
10930 | _ACEOF | |
10931 | ||
10932 | fi | |
10933 | ||
10934 | POSUB=po | |
10935 | fi | |
10936 | ||
10937 | ||
10938 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
10939 | BUILD_INCLUDED_LIBINTL=yes | |
10940 | fi | |
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | nls_cv_header_intl= | |
10947 | nls_cv_header_libgt= | |
10948 | ||
10949 | DATADIRNAME=share | |
10950 | ||
10951 | ||
10952 | INSTOBJEXT=.mo | |
10953 | ||
10954 | ||
10955 | GENCAT=gencat | |
10956 | ||
10957 | ||
10958 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
10959 | INTLOBJS="\$(GETTOBJS)" | |
10960 | fi | |
10961 | ||
10962 | ||
10963 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
10964 | ||
10965 | ||
10966 | ||
10967 | INTLLIBS="$LIBINTL" | |
10968 | ||
10969 | ||
10970 | ||
10971 | ||
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | ||
10977 | ||
10978 | ||
10979 | ||
10980 | ac_header_dirent=no | |
10981 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
dd4f3dd8 CR |
10982 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
10983 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
10984 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d3ad40de | 10985 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 10986 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
10987 | else |
10988 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
10989 | /* confdefs.h. */ |
10990 | _ACEOF | |
10991 | cat confdefs.h >>conftest.$ac_ext | |
10992 | cat >>conftest.$ac_ext <<_ACEOF | |
10993 | /* end confdefs.h. */ | |
10994 | #include <sys/types.h> | |
10995 | #include <$ac_hdr> | |
10996 | ||
10997 | int | |
10998 | main () | |
10999 | { | |
11000 | if ((DIR *) 0) | |
11001 | return 0; | |
11002 | ; | |
11003 | return 0; | |
11004 | } | |
11005 | _ACEOF | |
11006 | rm -f conftest.$ac_objext | |
d3ad40de CR |
11007 | if { (ac_try="$ac_compile" |
11008 | case "(($ac_try" in | |
11009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11010 | *) ac_try_echo=$ac_try;; | |
11011 | esac | |
dd4f3dd8 CR |
11012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11013 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11014 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 11015 | ac_status=$? |
a82a04b3 CR |
11016 | grep -v '^ *+' conftest.er1 >conftest.err |
11017 | rm -f conftest.er1 | |
11018 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11020 | (exit $ac_status); } && { | |
11021 | test -z "$ac_c_werror_flag" || | |
11022 | test ! -s conftest.err | |
11023 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
11024 | eval "$as_ac_Header=yes" |
11025 | else | |
dd4f3dd8 | 11026 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11027 | sed 's/^/| /' conftest.$ac_ext >&5 |
11028 | ||
d3ad40de | 11029 | eval "$as_ac_Header=no" |
545f34cf | 11030 | fi |
d3ad40de CR |
11031 | |
11032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 11033 | fi |
dd4f3dd8 CR |
11034 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11035 | $as_echo "$as_val"'` | |
11036 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11037 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
11038 | if test `eval 'as_val=${'$as_ac_Header'} |
11039 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 11040 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 11041 | @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
545f34cf CR |
11042 | _ACEOF |
11043 | ||
11044 | ac_header_dirent=$ac_hdr; break | |
11045 | fi | |
11046 | ||
11047 | done | |
11048 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
11049 | if test $ac_header_dirent = dirent.h; then | |
dd4f3dd8 CR |
11050 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11051 | $as_echo_n "checking for library containing opendir... " >&6; } | |
545f34cf | 11052 | if test "${ac_cv_search_opendir+set}" = set; then |
dd4f3dd8 | 11053 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
11054 | else |
11055 | ac_func_search_save_LIBS=$LIBS | |
545f34cf | 11056 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11057 | /* confdefs.h. */ |
11058 | _ACEOF | |
11059 | cat confdefs.h >>conftest.$ac_ext | |
11060 | cat >>conftest.$ac_ext <<_ACEOF | |
11061 | /* end confdefs.h. */ | |
11062 | ||
d3ad40de CR |
11063 | /* Override any GCC internal prototype to avoid an error. |
11064 | Use char because int might match the return type of a GCC | |
11065 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
11066 | #ifdef __cplusplus |
11067 | extern "C" | |
11068 | #endif | |
545f34cf CR |
11069 | char opendir (); |
11070 | int | |
11071 | main () | |
11072 | { | |
d3ad40de | 11073 | return opendir (); |
545f34cf CR |
11074 | ; |
11075 | return 0; | |
11076 | } | |
11077 | _ACEOF | |
d3ad40de CR |
11078 | for ac_lib in '' dir; do |
11079 | if test -z "$ac_lib"; then | |
11080 | ac_res="none required" | |
11081 | else | |
11082 | ac_res=-l$ac_lib | |
11083 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11084 | fi | |
11085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11086 | if { (ac_try="$ac_link" | |
11087 | case "(($ac_try" in | |
11088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11089 | *) ac_try_echo=$ac_try;; | |
11090 | esac | |
dd4f3dd8 CR |
11091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11092 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11093 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 11094 | ac_status=$? |
a82a04b3 CR |
11095 | grep -v '^ *+' conftest.er1 >conftest.err |
11096 | rm -f conftest.er1 | |
11097 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11099 | (exit $ac_status); } && { | |
11100 | test -z "$ac_c_werror_flag" || | |
11101 | test ! -s conftest.err | |
11102 | } && test -s conftest$ac_exeext && { | |
11103 | test "$cross_compiling" = yes || | |
11104 | $as_test_x conftest$ac_exeext | |
11105 | }; then | |
09767ff0 CR |
11106 | ac_cv_search_opendir=$ac_res |
11107 | else | |
dd4f3dd8 | 11108 | $as_echo "$as_me: failed program was:" >&5 |
09767ff0 CR |
11109 | sed 's/^/| /' conftest.$ac_ext >&5 |
11110 | ||
11111 | ||
11112 | fi | |
11113 | ||
dd4f3dd8 CR |
11114 | rm -rf conftest.dSYM |
11115 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
09767ff0 CR |
11116 | conftest$ac_exeext |
11117 | if test "${ac_cv_search_opendir+set}" = set; then | |
11118 | break | |
11119 | fi | |
11120 | done | |
11121 | if test "${ac_cv_search_opendir+set}" = set; then | |
11122 | : | |
11123 | else | |
d3ad40de | 11124 | ac_cv_search_opendir=no |
545f34cf | 11125 | fi |
d3ad40de | 11126 | rm conftest.$ac_ext |
545f34cf CR |
11127 | LIBS=$ac_func_search_save_LIBS |
11128 | fi | |
dd4f3dd8 CR |
11129 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11130 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d3ad40de CR |
11131 | ac_res=$ac_cv_search_opendir |
11132 | if test "$ac_res" != no; then | |
11133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
545f34cf CR |
11134 | |
11135 | fi | |
11136 | ||
11137 | else | |
dd4f3dd8 CR |
11138 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11139 | $as_echo_n "checking for library containing opendir... " >&6; } | |
545f34cf | 11140 | if test "${ac_cv_search_opendir+set}" = set; then |
dd4f3dd8 | 11141 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
11142 | else |
11143 | ac_func_search_save_LIBS=$LIBS | |
545f34cf | 11144 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11145 | /* confdefs.h. */ |
11146 | _ACEOF | |
11147 | cat confdefs.h >>conftest.$ac_ext | |
11148 | cat >>conftest.$ac_ext <<_ACEOF | |
11149 | /* end confdefs.h. */ | |
11150 | ||
d3ad40de CR |
11151 | /* Override any GCC internal prototype to avoid an error. |
11152 | Use char because int might match the return type of a GCC | |
11153 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
11154 | #ifdef __cplusplus |
11155 | extern "C" | |
11156 | #endif | |
545f34cf CR |
11157 | char opendir (); |
11158 | int | |
11159 | main () | |
11160 | { | |
d3ad40de | 11161 | return opendir (); |
545f34cf CR |
11162 | ; |
11163 | return 0; | |
11164 | } | |
11165 | _ACEOF | |
d3ad40de CR |
11166 | for ac_lib in '' x; do |
11167 | if test -z "$ac_lib"; then | |
11168 | ac_res="none required" | |
11169 | else | |
11170 | ac_res=-l$ac_lib | |
11171 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11172 | fi | |
11173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11174 | if { (ac_try="$ac_link" | |
11175 | case "(($ac_try" in | |
11176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11177 | *) ac_try_echo=$ac_try;; | |
11178 | esac | |
dd4f3dd8 CR |
11179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11180 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11181 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 11182 | ac_status=$? |
a82a04b3 CR |
11183 | grep -v '^ *+' conftest.er1 >conftest.err |
11184 | rm -f conftest.er1 | |
11185 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11187 | (exit $ac_status); } && { | |
11188 | test -z "$ac_c_werror_flag" || | |
11189 | test ! -s conftest.err | |
11190 | } && test -s conftest$ac_exeext && { | |
11191 | test "$cross_compiling" = yes || | |
11192 | $as_test_x conftest$ac_exeext | |
11193 | }; then | |
d3ad40de | 11194 | ac_cv_search_opendir=$ac_res |
545f34cf | 11195 | else |
dd4f3dd8 | 11196 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11197 | sed 's/^/| /' conftest.$ac_ext >&5 |
11198 | ||
d3ad40de | 11199 | |
545f34cf | 11200 | fi |
28157acd | 11201 | |
dd4f3dd8 CR |
11202 | rm -rf conftest.dSYM |
11203 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d3ad40de CR |
11204 | conftest$ac_exeext |
11205 | if test "${ac_cv_search_opendir+set}" = set; then | |
11206 | break | |
28157acd | 11207 | fi |
d3ad40de CR |
11208 | done |
11209 | if test "${ac_cv_search_opendir+set}" = set; then | |
11210 | : | |
11211 | else | |
11212 | ac_cv_search_opendir=no | |
545f34cf | 11213 | fi |
d3ad40de | 11214 | rm conftest.$ac_ext |
545f34cf CR |
11215 | LIBS=$ac_func_search_save_LIBS |
11216 | fi | |
dd4f3dd8 CR |
11217 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11218 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d3ad40de CR |
11219 | ac_res=$ac_cv_search_opendir |
11220 | if test "$ac_res" != no; then | |
11221 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
545f34cf CR |
11222 | |
11223 | fi | |
11224 | ||
11225 | fi | |
11226 | ||
dd4f3dd8 CR |
11227 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
11228 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
545f34cf | 11229 | if test "${ac_cv_header_time+set}" = set; then |
dd4f3dd8 | 11230 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
11231 | else |
11232 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
11233 | /* confdefs.h. */ |
11234 | _ACEOF | |
11235 | cat confdefs.h >>conftest.$ac_ext | |
11236 | cat >>conftest.$ac_ext <<_ACEOF | |
11237 | /* end confdefs.h. */ | |
11238 | #include <sys/types.h> | |
11239 | #include <sys/time.h> | |
11240 | #include <time.h> | |
11241 | ||
11242 | int | |
11243 | main () | |
11244 | { | |
11245 | if ((struct tm *) 0) | |
11246 | return 0; | |
11247 | ; | |
11248 | return 0; | |
11249 | } | |
11250 | _ACEOF | |
11251 | rm -f conftest.$ac_objext | |
d3ad40de CR |
11252 | if { (ac_try="$ac_compile" |
11253 | case "(($ac_try" in | |
11254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11255 | *) ac_try_echo=$ac_try;; | |
11256 | esac | |
dd4f3dd8 CR |
11257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11258 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11259 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 11260 | ac_status=$? |
a82a04b3 CR |
11261 | grep -v '^ *+' conftest.er1 >conftest.err |
11262 | rm -f conftest.er1 | |
11263 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11265 | (exit $ac_status); } && { | |
11266 | test -z "$ac_c_werror_flag" || | |
11267 | test ! -s conftest.err | |
11268 | } && test -s conftest.$ac_objext; then | |
2e4498b3 CR |
11269 | ac_cv_header_time=yes |
11270 | else | |
dd4f3dd8 | 11271 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
11272 | sed 's/^/| /' conftest.$ac_ext >&5 |
11273 | ||
11274 | ac_cv_header_time=no | |
11275 | fi | |
11276 | ||
11277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11278 | fi | |
dd4f3dd8 CR |
11279 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
11280 | $as_echo "$ac_cv_header_time" >&6; } | |
545f34cf CR |
11281 | if test $ac_cv_header_time = yes; then |
11282 | ||
11283 | cat >>confdefs.h <<\_ACEOF | |
11284 | @%:@define TIME_WITH_SYS_TIME 1 | |
11285 | _ACEOF | |
11286 | ||
11287 | fi | |
11288 | ||
11289 | ||
11290 | ||
11291 | ||
11292 | for ac_header in inttypes.h | |
11293 | do | |
dd4f3dd8 | 11294 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 11295 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
11296 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11297 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11299 | $as_echo_n "(cached) " >&6 |
545f34cf | 11300 | fi |
dd4f3dd8 CR |
11301 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11302 | $as_echo "$as_val"'` | |
11303 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11304 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11305 | else |
11306 | # Is the header compilable? | |
dd4f3dd8 CR |
11307 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11308 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 11309 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11310 | /* confdefs.h. */ |
11311 | _ACEOF | |
11312 | cat confdefs.h >>conftest.$ac_ext | |
11313 | cat >>conftest.$ac_ext <<_ACEOF | |
11314 | /* end confdefs.h. */ | |
11315 | $ac_includes_default | |
11316 | @%:@include <$ac_header> | |
11317 | _ACEOF | |
11318 | rm -f conftest.$ac_objext | |
d3ad40de CR |
11319 | if { (ac_try="$ac_compile" |
11320 | case "(($ac_try" in | |
11321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11322 | *) ac_try_echo=$ac_try;; | |
11323 | esac | |
dd4f3dd8 CR |
11324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11325 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11326 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 11327 | ac_status=$? |
a82a04b3 CR |
11328 | grep -v '^ *+' conftest.er1 >conftest.err |
11329 | rm -f conftest.er1 | |
11330 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11332 | (exit $ac_status); } && { | |
11333 | test -z "$ac_c_werror_flag" || | |
11334 | test ! -s conftest.err | |
11335 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
11336 | ac_header_compiler=yes |
11337 | else | |
dd4f3dd8 | 11338 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11339 | sed 's/^/| /' conftest.$ac_ext >&5 |
11340 | ||
d3ad40de | 11341 | ac_header_compiler=no |
545f34cf | 11342 | fi |
d3ad40de CR |
11343 | |
11344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
11345 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11346 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
11347 | |
11348 | # Is the header present? | |
dd4f3dd8 CR |
11349 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11350 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 11351 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11352 | /* confdefs.h. */ |
11353 | _ACEOF | |
11354 | cat confdefs.h >>conftest.$ac_ext | |
11355 | cat >>conftest.$ac_ext <<_ACEOF | |
11356 | /* end confdefs.h. */ | |
11357 | @%:@include <$ac_header> | |
11358 | _ACEOF | |
d3ad40de CR |
11359 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11360 | case "(($ac_try" in | |
11361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11362 | *) ac_try_echo=$ac_try;; | |
11363 | esac | |
dd4f3dd8 CR |
11364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11365 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11366 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
11367 | ac_status=$? |
11368 | grep -v '^ *+' conftest.er1 >conftest.err | |
11369 | rm -f conftest.er1 | |
11370 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11372 | (exit $ac_status); } >/dev/null && { | |
11373 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11374 | test ! -s conftest.err | |
11375 | }; then | |
545f34cf CR |
11376 | ac_header_preproc=yes |
11377 | else | |
dd4f3dd8 | 11378 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11379 | sed 's/^/| /' conftest.$ac_ext >&5 |
11380 | ||
11381 | ac_header_preproc=no | |
11382 | fi | |
d3ad40de | 11383 | |
545f34cf | 11384 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
11385 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11386 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
11387 | |
11388 | # So? What about this header? | |
a82a04b3 CR |
11389 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11390 | yes:no: ) | |
dd4f3dd8 CR |
11391 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11392 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11393 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11394 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 11395 | ac_header_preproc=yes |
545f34cf | 11396 | ;; |
a82a04b3 | 11397 | no:yes:* ) |
dd4f3dd8 CR |
11398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11399 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11401 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11403 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11405 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11407 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11408 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11409 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 11410 | ( cat <<\_ASBOX |
a82a04b3 CR |
11411 | @%:@@%:@ ------------------------------- @%:@@%:@ |
11412 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
11413 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 11414 | _ASBOX |
d3ad40de | 11415 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
11416 | ;; |
11417 | esac | |
dd4f3dd8 CR |
11418 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11419 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11421 | $as_echo_n "(cached) " >&6 |
545f34cf | 11422 | else |
a82a04b3 | 11423 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 11424 | fi |
dd4f3dd8 CR |
11425 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11426 | $as_echo "$as_val"'` | |
11427 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11428 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11429 | |
11430 | fi | |
76af2125 CR |
11431 | if test `eval 'as_val=${'$as_ac_Header'} |
11432 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 11433 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 11434 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
11435 | _ACEOF |
11436 | ||
11437 | fi | |
11438 | ||
11439 | done | |
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
9607141c | 11459 | |
545f34cf CR |
11460 | |
11461 | ||
11462 | for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \ | |
11463 | memory.h locale.h termcap.h termio.h termios.h dlfcn.h \ | |
9607141c | 11464 | stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h |
545f34cf | 11465 | do |
dd4f3dd8 | 11466 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 11467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
11468 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11469 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11471 | $as_echo_n "(cached) " >&6 |
545f34cf | 11472 | fi |
dd4f3dd8 CR |
11473 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11474 | $as_echo "$as_val"'` | |
11475 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11476 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11477 | else |
11478 | # Is the header compilable? | |
dd4f3dd8 CR |
11479 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11480 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 11481 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11482 | /* confdefs.h. */ |
11483 | _ACEOF | |
11484 | cat confdefs.h >>conftest.$ac_ext | |
11485 | cat >>conftest.$ac_ext <<_ACEOF | |
11486 | /* end confdefs.h. */ | |
11487 | $ac_includes_default | |
11488 | @%:@include <$ac_header> | |
11489 | _ACEOF | |
11490 | rm -f conftest.$ac_objext | |
d3ad40de CR |
11491 | if { (ac_try="$ac_compile" |
11492 | case "(($ac_try" in | |
11493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11494 | *) ac_try_echo=$ac_try;; | |
11495 | esac | |
dd4f3dd8 CR |
11496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11497 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11498 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 11499 | ac_status=$? |
a82a04b3 CR |
11500 | grep -v '^ *+' conftest.er1 >conftest.err |
11501 | rm -f conftest.er1 | |
11502 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11504 | (exit $ac_status); } && { | |
11505 | test -z "$ac_c_werror_flag" || | |
11506 | test ! -s conftest.err | |
11507 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
11508 | ac_header_compiler=yes |
11509 | else | |
dd4f3dd8 | 11510 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11511 | sed 's/^/| /' conftest.$ac_ext >&5 |
11512 | ||
d3ad40de | 11513 | ac_header_compiler=no |
545f34cf | 11514 | fi |
d3ad40de CR |
11515 | |
11516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
11517 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11518 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
11519 | |
11520 | # Is the header present? | |
dd4f3dd8 CR |
11521 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11522 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 11523 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11524 | /* confdefs.h. */ |
11525 | _ACEOF | |
11526 | cat confdefs.h >>conftest.$ac_ext | |
11527 | cat >>conftest.$ac_ext <<_ACEOF | |
11528 | /* end confdefs.h. */ | |
11529 | @%:@include <$ac_header> | |
11530 | _ACEOF | |
d3ad40de CR |
11531 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11532 | case "(($ac_try" in | |
11533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11534 | *) ac_try_echo=$ac_try;; | |
11535 | esac | |
dd4f3dd8 CR |
11536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11537 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11538 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
11539 | ac_status=$? |
11540 | grep -v '^ *+' conftest.er1 >conftest.err | |
11541 | rm -f conftest.er1 | |
11542 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11544 | (exit $ac_status); } >/dev/null && { | |
11545 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11546 | test ! -s conftest.err | |
11547 | }; then | |
545f34cf CR |
11548 | ac_header_preproc=yes |
11549 | else | |
dd4f3dd8 | 11550 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11551 | sed 's/^/| /' conftest.$ac_ext >&5 |
11552 | ||
11553 | ac_header_preproc=no | |
11554 | fi | |
d3ad40de | 11555 | |
545f34cf | 11556 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
11557 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11558 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
11559 | |
11560 | # So? What about this header? | |
a82a04b3 CR |
11561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11562 | yes:no: ) | |
dd4f3dd8 CR |
11563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11564 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11565 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11566 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 11567 | ac_header_preproc=yes |
545f34cf | 11568 | ;; |
a82a04b3 | 11569 | no:yes:* ) |
dd4f3dd8 CR |
11570 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11571 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11572 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11573 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11574 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11575 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11576 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11577 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11578 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11579 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11580 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11581 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 11582 | ( cat <<\_ASBOX |
a82a04b3 CR |
11583 | @%:@@%:@ ------------------------------- @%:@@%:@ |
11584 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
11585 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 11586 | _ASBOX |
d3ad40de | 11587 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
11588 | ;; |
11589 | esac | |
dd4f3dd8 CR |
11590 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11591 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11593 | $as_echo_n "(cached) " >&6 |
545f34cf | 11594 | else |
a82a04b3 | 11595 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 11596 | fi |
dd4f3dd8 CR |
11597 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11598 | $as_echo "$as_val"'` | |
11599 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11600 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11601 | |
11602 | fi | |
76af2125 CR |
11603 | if test `eval 'as_val=${'$as_ac_Header'} |
11604 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 11605 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 11606 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
11607 | _ACEOF |
11608 | ||
11609 | fi | |
11610 | ||
11611 | done | |
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
40b074c6 | 11625 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \ |
545f34cf CR |
11626 | sys/resource.h sys/param.h sys/socket.h sys/stat.h \ |
11627 | sys/time.h sys/times.h sys/types.h sys/wait.h | |
11628 | do | |
dd4f3dd8 | 11629 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 11630 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
11631 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11632 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11633 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11634 | $as_echo_n "(cached) " >&6 |
545f34cf | 11635 | fi |
dd4f3dd8 CR |
11636 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11637 | $as_echo "$as_val"'` | |
11638 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11639 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11640 | else |
11641 | # Is the header compilable? | |
dd4f3dd8 CR |
11642 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11643 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 11644 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11645 | /* confdefs.h. */ |
11646 | _ACEOF | |
11647 | cat confdefs.h >>conftest.$ac_ext | |
11648 | cat >>conftest.$ac_ext <<_ACEOF | |
11649 | /* end confdefs.h. */ | |
11650 | $ac_includes_default | |
11651 | @%:@include <$ac_header> | |
11652 | _ACEOF | |
11653 | rm -f conftest.$ac_objext | |
d3ad40de CR |
11654 | if { (ac_try="$ac_compile" |
11655 | case "(($ac_try" in | |
11656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11657 | *) ac_try_echo=$ac_try;; | |
11658 | esac | |
dd4f3dd8 CR |
11659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11660 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11661 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 11662 | ac_status=$? |
a82a04b3 CR |
11663 | grep -v '^ *+' conftest.er1 >conftest.err |
11664 | rm -f conftest.er1 | |
11665 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11667 | (exit $ac_status); } && { | |
11668 | test -z "$ac_c_werror_flag" || | |
11669 | test ! -s conftest.err | |
11670 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
11671 | ac_header_compiler=yes |
11672 | else | |
dd4f3dd8 | 11673 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11674 | sed 's/^/| /' conftest.$ac_ext >&5 |
11675 | ||
d3ad40de | 11676 | ac_header_compiler=no |
545f34cf | 11677 | fi |
d3ad40de CR |
11678 | |
11679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
11680 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11681 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
11682 | |
11683 | # Is the header present? | |
dd4f3dd8 CR |
11684 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11685 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 11686 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11687 | /* confdefs.h. */ |
11688 | _ACEOF | |
11689 | cat confdefs.h >>conftest.$ac_ext | |
11690 | cat >>conftest.$ac_ext <<_ACEOF | |
11691 | /* end confdefs.h. */ | |
11692 | @%:@include <$ac_header> | |
11693 | _ACEOF | |
d3ad40de CR |
11694 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11695 | case "(($ac_try" in | |
11696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11697 | *) ac_try_echo=$ac_try;; | |
11698 | esac | |
dd4f3dd8 CR |
11699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11700 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11701 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
11702 | ac_status=$? |
11703 | grep -v '^ *+' conftest.er1 >conftest.err | |
11704 | rm -f conftest.er1 | |
11705 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11707 | (exit $ac_status); } >/dev/null && { | |
11708 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11709 | test ! -s conftest.err | |
11710 | }; then | |
545f34cf CR |
11711 | ac_header_preproc=yes |
11712 | else | |
dd4f3dd8 | 11713 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11714 | sed 's/^/| /' conftest.$ac_ext >&5 |
11715 | ||
11716 | ac_header_preproc=no | |
11717 | fi | |
d3ad40de | 11718 | |
545f34cf | 11719 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
11720 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11721 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
11722 | |
11723 | # So? What about this header? | |
a82a04b3 CR |
11724 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11725 | yes:no: ) | |
dd4f3dd8 CR |
11726 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11727 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11728 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11729 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 11730 | ac_header_preproc=yes |
545f34cf | 11731 | ;; |
a82a04b3 | 11732 | no:yes:* ) |
dd4f3dd8 CR |
11733 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11734 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11736 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11737 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11738 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11739 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11740 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11742 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11744 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 11745 | ( cat <<\_ASBOX |
a82a04b3 CR |
11746 | @%:@@%:@ ------------------------------- @%:@@%:@ |
11747 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
11748 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 11749 | _ASBOX |
d3ad40de | 11750 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
11751 | ;; |
11752 | esac | |
dd4f3dd8 CR |
11753 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11754 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11756 | $as_echo_n "(cached) " >&6 |
545f34cf | 11757 | else |
a82a04b3 | 11758 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 11759 | fi |
dd4f3dd8 CR |
11760 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11761 | $as_echo "$as_val"'` | |
11762 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11763 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11764 | |
11765 | fi | |
76af2125 CR |
11766 | if test `eval 'as_val=${'$as_ac_Header'} |
11767 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 11768 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 11769 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
11770 | _ACEOF |
11771 | ||
11772 | fi | |
11773 | ||
11774 | done | |
11775 | ||
11776 | ||
11777 | ||
11778 | for ac_header in netinet/in.h arpa/inet.h | |
11779 | do | |
dd4f3dd8 | 11780 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 11781 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
11782 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11783 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11784 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11785 | $as_echo_n "(cached) " >&6 |
545f34cf | 11786 | fi |
dd4f3dd8 CR |
11787 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11788 | $as_echo "$as_val"'` | |
11789 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11790 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11791 | else |
11792 | # Is the header compilable? | |
dd4f3dd8 CR |
11793 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11794 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 11795 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11796 | /* confdefs.h. */ |
11797 | _ACEOF | |
11798 | cat confdefs.h >>conftest.$ac_ext | |
11799 | cat >>conftest.$ac_ext <<_ACEOF | |
11800 | /* end confdefs.h. */ | |
11801 | $ac_includes_default | |
11802 | @%:@include <$ac_header> | |
11803 | _ACEOF | |
11804 | rm -f conftest.$ac_objext | |
d3ad40de CR |
11805 | if { (ac_try="$ac_compile" |
11806 | case "(($ac_try" in | |
11807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11808 | *) ac_try_echo=$ac_try;; | |
11809 | esac | |
dd4f3dd8 CR |
11810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11811 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11812 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 11813 | ac_status=$? |
a82a04b3 CR |
11814 | grep -v '^ *+' conftest.er1 >conftest.err |
11815 | rm -f conftest.er1 | |
11816 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11817 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11818 | (exit $ac_status); } && { | |
11819 | test -z "$ac_c_werror_flag" || | |
11820 | test ! -s conftest.err | |
11821 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
11822 | ac_header_compiler=yes |
11823 | else | |
dd4f3dd8 | 11824 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11825 | sed 's/^/| /' conftest.$ac_ext >&5 |
11826 | ||
d3ad40de | 11827 | ac_header_compiler=no |
545f34cf | 11828 | fi |
d3ad40de CR |
11829 | |
11830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
11831 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11832 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
11833 | |
11834 | # Is the header present? | |
dd4f3dd8 CR |
11835 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11836 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 11837 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
11838 | /* confdefs.h. */ |
11839 | _ACEOF | |
11840 | cat confdefs.h >>conftest.$ac_ext | |
11841 | cat >>conftest.$ac_ext <<_ACEOF | |
11842 | /* end confdefs.h. */ | |
11843 | @%:@include <$ac_header> | |
11844 | _ACEOF | |
d3ad40de CR |
11845 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11846 | case "(($ac_try" in | |
11847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11848 | *) ac_try_echo=$ac_try;; | |
11849 | esac | |
dd4f3dd8 CR |
11850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11851 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11852 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
11853 | ac_status=$? |
11854 | grep -v '^ *+' conftest.er1 >conftest.err | |
11855 | rm -f conftest.er1 | |
11856 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11858 | (exit $ac_status); } >/dev/null && { | |
11859 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11860 | test ! -s conftest.err | |
11861 | }; then | |
545f34cf CR |
11862 | ac_header_preproc=yes |
11863 | else | |
dd4f3dd8 | 11864 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
11865 | sed 's/^/| /' conftest.$ac_ext >&5 |
11866 | ||
11867 | ac_header_preproc=no | |
11868 | fi | |
d3ad40de | 11869 | |
545f34cf | 11870 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
11871 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11872 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
11873 | |
11874 | # So? What about this header? | |
a82a04b3 CR |
11875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11876 | yes:no: ) | |
dd4f3dd8 CR |
11877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11878 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11880 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 11881 | ac_header_preproc=yes |
545f34cf | 11882 | ;; |
a82a04b3 | 11883 | no:yes:* ) |
dd4f3dd8 CR |
11884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11885 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11887 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11889 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11891 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11892 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11893 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11894 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11895 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 11896 | ( cat <<\_ASBOX |
a82a04b3 CR |
11897 | @%:@@%:@ ------------------------------- @%:@@%:@ |
11898 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
11899 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 11900 | _ASBOX |
d3ad40de | 11901 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
11902 | ;; |
11903 | esac | |
dd4f3dd8 CR |
11904 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11905 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 11906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 11907 | $as_echo_n "(cached) " >&6 |
545f34cf | 11908 | else |
a82a04b3 | 11909 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 11910 | fi |
dd4f3dd8 CR |
11911 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11912 | $as_echo "$as_val"'` | |
11913 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11914 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
11915 | |
11916 | fi | |
76af2125 CR |
11917 | if test `eval 'as_val=${'$as_ac_Header'} |
11918 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 11919 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 11920 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
11921 | _ACEOF |
11922 | ||
11923 | fi | |
11924 | ||
11925 | done | |
11926 | ||
11927 | ||
dd4f3dd8 CR |
11928 | { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5 |
11929 | $as_echo_n "checking for sys/ptem.h... " >&6; } | |
40b074c6 | 11930 | if test "${ac_cv_header_sys_ptem_h+set}" = set; then |
dd4f3dd8 | 11931 | $as_echo_n "(cached) " >&6 |
40b074c6 CR |
11932 | else |
11933 | cat >conftest.$ac_ext <<_ACEOF | |
40b074c6 CR |
11934 | /* confdefs.h. */ |
11935 | _ACEOF | |
11936 | cat confdefs.h >>conftest.$ac_ext | |
11937 | cat >>conftest.$ac_ext <<_ACEOF | |
11938 | /* end confdefs.h. */ | |
11939 | ||
11940 | #if HAVE_SYS_STREAM_H | |
11941 | # include <sys/stream.h> | |
11942 | #endif | |
11943 | ||
11944 | ||
11945 | @%:@include <sys/ptem.h> | |
11946 | _ACEOF | |
11947 | rm -f conftest.$ac_objext | |
d3ad40de CR |
11948 | if { (ac_try="$ac_compile" |
11949 | case "(($ac_try" in | |
11950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11951 | *) ac_try_echo=$ac_try;; | |
11952 | esac | |
dd4f3dd8 CR |
11953 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11954 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 11955 | (eval "$ac_compile") 2>conftest.er1 |
40b074c6 | 11956 | ac_status=$? |
a82a04b3 CR |
11957 | grep -v '^ *+' conftest.er1 >conftest.err |
11958 | rm -f conftest.er1 | |
11959 | cat conftest.err >&5 | |
dd4f3dd8 CR |
11960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11961 | (exit $ac_status); } && { | |
11962 | test -z "$ac_c_werror_flag" || | |
11963 | test ! -s conftest.err | |
11964 | } && test -s conftest.$ac_objext; then | |
40b074c6 CR |
11965 | ac_cv_header_sys_ptem_h=yes |
11966 | else | |
dd4f3dd8 | 11967 | $as_echo "$as_me: failed program was:" >&5 |
40b074c6 CR |
11968 | sed 's/^/| /' conftest.$ac_ext >&5 |
11969 | ||
d3ad40de | 11970 | ac_cv_header_sys_ptem_h=no |
40b074c6 | 11971 | fi |
d3ad40de CR |
11972 | |
11973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
40b074c6 | 11974 | fi |
dd4f3dd8 CR |
11975 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5 |
11976 | $as_echo "$ac_cv_header_sys_ptem_h" >&6; } | |
40b074c6 CR |
11977 | |
11978 | ||
11979 | ||
545f34cf CR |
11980 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
11981 | # for constant arguments. Useless! | |
dd4f3dd8 CR |
11982 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
11983 | $as_echo_n "checking for working alloca.h... " >&6; } | |
545f34cf | 11984 | if test "${ac_cv_working_alloca_h+set}" = set; then |
dd4f3dd8 | 11985 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
11986 | else |
11987 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
11988 | /* confdefs.h. */ |
11989 | _ACEOF | |
11990 | cat confdefs.h >>conftest.$ac_ext | |
11991 | cat >>conftest.$ac_ext <<_ACEOF | |
11992 | /* end confdefs.h. */ | |
11993 | @%:@include <alloca.h> | |
11994 | int | |
11995 | main () | |
11996 | { | |
11997 | char *p = (char *) alloca (2 * sizeof (int)); | |
d3ad40de | 11998 | if (p) return 0; |
545f34cf CR |
11999 | ; |
12000 | return 0; | |
12001 | } | |
12002 | _ACEOF | |
12003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
12004 | if { (ac_try="$ac_link" |
12005 | case "(($ac_try" in | |
12006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12007 | *) ac_try_echo=$ac_try;; | |
12008 | esac | |
dd4f3dd8 CR |
12009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12010 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12011 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 12012 | ac_status=$? |
a82a04b3 CR |
12013 | grep -v '^ *+' conftest.er1 >conftest.err |
12014 | rm -f conftest.er1 | |
12015 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12017 | (exit $ac_status); } && { | |
12018 | test -z "$ac_c_werror_flag" || | |
12019 | test ! -s conftest.err | |
12020 | } && test -s conftest$ac_exeext && { | |
12021 | test "$cross_compiling" = yes || | |
12022 | $as_test_x conftest$ac_exeext | |
12023 | }; then | |
545f34cf CR |
12024 | ac_cv_working_alloca_h=yes |
12025 | else | |
dd4f3dd8 | 12026 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12027 | sed 's/^/| /' conftest.$ac_ext >&5 |
12028 | ||
d3ad40de | 12029 | ac_cv_working_alloca_h=no |
545f34cf | 12030 | fi |
d3ad40de | 12031 | |
dd4f3dd8 CR |
12032 | rm -rf conftest.dSYM |
12033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 12034 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 12035 | fi |
dd4f3dd8 CR |
12036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
12037 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
545f34cf CR |
12038 | if test $ac_cv_working_alloca_h = yes; then |
12039 | ||
12040 | cat >>confdefs.h <<\_ACEOF | |
12041 | @%:@define HAVE_ALLOCA_H 1 | |
12042 | _ACEOF | |
12043 | ||
12044 | fi | |
12045 | ||
dd4f3dd8 CR |
12046 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
12047 | $as_echo_n "checking for alloca... " >&6; } | |
545f34cf | 12048 | if test "${ac_cv_func_alloca_works+set}" = set; then |
dd4f3dd8 | 12049 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12050 | else |
12051 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12052 | /* confdefs.h. */ |
12053 | _ACEOF | |
12054 | cat confdefs.h >>conftest.$ac_ext | |
12055 | cat >>conftest.$ac_ext <<_ACEOF | |
12056 | /* end confdefs.h. */ | |
12057 | #ifdef __GNUC__ | |
12058 | # define alloca __builtin_alloca | |
12059 | #else | |
12060 | # ifdef _MSC_VER | |
12061 | # include <malloc.h> | |
12062 | # define alloca _alloca | |
12063 | # else | |
dd4f3dd8 | 12064 | # ifdef HAVE_ALLOCA_H |
545f34cf CR |
12065 | # include <alloca.h> |
12066 | # else | |
12067 | # ifdef _AIX | |
12068 | #pragma alloca | |
12069 | # else | |
12070 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12071 | char *alloca (); | |
12072 | # endif | |
12073 | # endif | |
12074 | # endif | |
12075 | # endif | |
12076 | #endif | |
12077 | ||
12078 | int | |
12079 | main () | |
12080 | { | |
12081 | char *p = (char *) alloca (1); | |
d3ad40de | 12082 | if (p) return 0; |
545f34cf CR |
12083 | ; |
12084 | return 0; | |
12085 | } | |
12086 | _ACEOF | |
12087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
12088 | if { (ac_try="$ac_link" |
12089 | case "(($ac_try" in | |
12090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12091 | *) ac_try_echo=$ac_try;; | |
12092 | esac | |
dd4f3dd8 CR |
12093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12094 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12095 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 12096 | ac_status=$? |
a82a04b3 CR |
12097 | grep -v '^ *+' conftest.er1 >conftest.err |
12098 | rm -f conftest.er1 | |
12099 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12101 | (exit $ac_status); } && { | |
12102 | test -z "$ac_c_werror_flag" || | |
12103 | test ! -s conftest.err | |
12104 | } && test -s conftest$ac_exeext && { | |
12105 | test "$cross_compiling" = yes || | |
12106 | $as_test_x conftest$ac_exeext | |
12107 | }; then | |
545f34cf CR |
12108 | ac_cv_func_alloca_works=yes |
12109 | else | |
dd4f3dd8 | 12110 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12111 | sed 's/^/| /' conftest.$ac_ext >&5 |
12112 | ||
d3ad40de | 12113 | ac_cv_func_alloca_works=no |
545f34cf | 12114 | fi |
d3ad40de | 12115 | |
dd4f3dd8 CR |
12116 | rm -rf conftest.dSYM |
12117 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 12118 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 12119 | fi |
dd4f3dd8 CR |
12120 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
12121 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
545f34cf CR |
12122 | |
12123 | if test $ac_cv_func_alloca_works = yes; then | |
12124 | ||
12125 | cat >>confdefs.h <<\_ACEOF | |
12126 | @%:@define HAVE_ALLOCA 1 | |
12127 | _ACEOF | |
12128 | ||
12129 | else | |
12130 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12131 | # that cause trouble. Some versions do not even contain alloca or | |
12132 | # contain a buggy version. If you still want to use their alloca, | |
12133 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12134 | ||
d3ad40de | 12135 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
545f34cf CR |
12136 | |
12137 | cat >>confdefs.h <<\_ACEOF | |
12138 | @%:@define C_ALLOCA 1 | |
12139 | _ACEOF | |
12140 | ||
12141 | ||
dd4f3dd8 CR |
12142 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
12143 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
545f34cf | 12144 | if test "${ac_cv_os_cray+set}" = set; then |
dd4f3dd8 | 12145 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12146 | else |
12147 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12148 | /* confdefs.h. */ |
12149 | _ACEOF | |
12150 | cat confdefs.h >>conftest.$ac_ext | |
12151 | cat >>conftest.$ac_ext <<_ACEOF | |
12152 | /* end confdefs.h. */ | |
d3ad40de | 12153 | #if defined CRAY && ! defined CRAY2 |
545f34cf CR |
12154 | webecray |
12155 | #else | |
12156 | wenotbecray | |
12157 | #endif | |
12158 | ||
12159 | _ACEOF | |
12160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12161 | $EGREP "webecray" >/dev/null 2>&1; then | |
12162 | ac_cv_os_cray=yes | |
12163 | else | |
12164 | ac_cv_os_cray=no | |
12165 | fi | |
12166 | rm -f conftest* | |
12167 | ||
12168 | fi | |
dd4f3dd8 CR |
12169 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
12170 | $as_echo "$ac_cv_os_cray" >&6; } | |
545f34cf CR |
12171 | if test $ac_cv_os_cray = yes; then |
12172 | for ac_func in _getb67 GETB67 getb67; do | |
dd4f3dd8 CR |
12173 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12174 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12175 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 12176 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 12177 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12178 | else |
12179 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12180 | /* confdefs.h. */ |
12181 | _ACEOF | |
12182 | cat confdefs.h >>conftest.$ac_ext | |
12183 | cat >>conftest.$ac_ext <<_ACEOF | |
12184 | /* end confdefs.h. */ | |
a82a04b3 CR |
12185 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12187 | #define $ac_func innocuous_$ac_func | |
12188 | ||
545f34cf CR |
12189 | /* System header to define __stub macros and hopefully few prototypes, |
12190 | which can conflict with char $ac_func (); below. | |
12191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12192 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 12193 | |
545f34cf CR |
12194 | #ifdef __STDC__ |
12195 | # include <limits.h> | |
12196 | #else | |
12197 | # include <assert.h> | |
12198 | #endif | |
a82a04b3 CR |
12199 | |
12200 | #undef $ac_func | |
12201 | ||
d3ad40de CR |
12202 | /* Override any GCC internal prototype to avoid an error. |
12203 | Use char because int might match the return type of a GCC | |
12204 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
12205 | #ifdef __cplusplus |
12206 | extern "C" | |
545f34cf | 12207 | #endif |
545f34cf CR |
12208 | char $ac_func (); |
12209 | /* The GNU C library defines this for functions which it implements | |
12210 | to always fail with ENOSYS. Some functions are actually named | |
12211 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 12212 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 12213 | choke me |
545f34cf CR |
12214 | #endif |
12215 | ||
12216 | int | |
12217 | main () | |
12218 | { | |
d3ad40de | 12219 | return $ac_func (); |
545f34cf CR |
12220 | ; |
12221 | return 0; | |
12222 | } | |
12223 | _ACEOF | |
12224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
12225 | if { (ac_try="$ac_link" |
12226 | case "(($ac_try" in | |
12227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12228 | *) ac_try_echo=$ac_try;; | |
12229 | esac | |
dd4f3dd8 CR |
12230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12231 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12232 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 12233 | ac_status=$? |
a82a04b3 CR |
12234 | grep -v '^ *+' conftest.er1 >conftest.err |
12235 | rm -f conftest.er1 | |
12236 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12238 | (exit $ac_status); } && { | |
12239 | test -z "$ac_c_werror_flag" || | |
12240 | test ! -s conftest.err | |
12241 | } && test -s conftest$ac_exeext && { | |
12242 | test "$cross_compiling" = yes || | |
12243 | $as_test_x conftest$ac_exeext | |
12244 | }; then | |
545f34cf CR |
12245 | eval "$as_ac_var=yes" |
12246 | else | |
dd4f3dd8 | 12247 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12248 | sed 's/^/| /' conftest.$ac_ext >&5 |
12249 | ||
d3ad40de | 12250 | eval "$as_ac_var=no" |
545f34cf | 12251 | fi |
d3ad40de | 12252 | |
dd4f3dd8 CR |
12253 | rm -rf conftest.dSYM |
12254 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 12255 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 12256 | fi |
dd4f3dd8 CR |
12257 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12258 | $as_echo "$as_val"'` | |
12259 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12260 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
12261 | if test `eval 'as_val=${'$as_ac_var'} |
12262 | $as_echo "$as_val"'` = yes; then | |
545f34cf CR |
12263 | |
12264 | cat >>confdefs.h <<_ACEOF | |
12265 | @%:@define CRAY_STACKSEG_END $ac_func | |
12266 | _ACEOF | |
12267 | ||
12268 | break | |
12269 | fi | |
12270 | ||
12271 | done | |
12272 | fi | |
12273 | ||
dd4f3dd8 CR |
12274 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
12275 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
545f34cf | 12276 | if test "${ac_cv_c_stack_direction+set}" = set; then |
dd4f3dd8 | 12277 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12278 | else |
12279 | if test "$cross_compiling" = yes; then | |
12280 | ac_cv_c_stack_direction=0 | |
12281 | else | |
12282 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12283 | /* confdefs.h. */ |
12284 | _ACEOF | |
12285 | cat confdefs.h >>conftest.$ac_ext | |
12286 | cat >>conftest.$ac_ext <<_ACEOF | |
12287 | /* end confdefs.h. */ | |
d3ad40de | 12288 | $ac_includes_default |
545f34cf CR |
12289 | int |
12290 | find_stack_direction () | |
12291 | { | |
12292 | static char *addr = 0; | |
12293 | auto char dummy; | |
12294 | if (addr == 0) | |
12295 | { | |
12296 | addr = &dummy; | |
12297 | return find_stack_direction (); | |
12298 | } | |
12299 | else | |
12300 | return (&dummy > addr) ? 1 : -1; | |
12301 | } | |
12302 | ||
12303 | int | |
12304 | main () | |
12305 | { | |
d3ad40de | 12306 | return find_stack_direction () < 0; |
545f34cf CR |
12307 | } |
12308 | _ACEOF | |
12309 | rm -f conftest$ac_exeext | |
d3ad40de CR |
12310 | if { (ac_try="$ac_link" |
12311 | case "(($ac_try" in | |
12312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12313 | *) ac_try_echo=$ac_try;; | |
12314 | esac | |
dd4f3dd8 CR |
12315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12316 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12317 | (eval "$ac_link") 2>&5 |
545f34cf | 12318 | ac_status=$? |
dd4f3dd8 | 12319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 12320 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
12321 | { (case "(($ac_try" in |
12322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12323 | *) ac_try_echo=$ac_try;; | |
12324 | esac | |
dd4f3dd8 CR |
12325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12326 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12327 | (eval "$ac_try") 2>&5 |
545f34cf | 12328 | ac_status=$? |
dd4f3dd8 | 12329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
12330 | (exit $ac_status); }; }; then |
12331 | ac_cv_c_stack_direction=1 | |
12332 | else | |
dd4f3dd8 CR |
12333 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12334 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
12335 | sed 's/^/| /' conftest.$ac_ext >&5 |
12336 | ||
12337 | ( exit $ac_status ) | |
12338 | ac_cv_c_stack_direction=-1 | |
12339 | fi | |
dd4f3dd8 | 12340 | rm -rf conftest.dSYM |
d3ad40de | 12341 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 12342 | fi |
d3ad40de CR |
12343 | |
12344 | ||
545f34cf | 12345 | fi |
dd4f3dd8 CR |
12346 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
12347 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
545f34cf CR |
12348 | |
12349 | cat >>confdefs.h <<_ACEOF | |
12350 | @%:@define STACK_DIRECTION $ac_cv_c_stack_direction | |
12351 | _ACEOF | |
12352 | ||
12353 | ||
12354 | fi | |
12355 | ||
dd4f3dd8 CR |
12356 | { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
12357 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | |
545f34cf | 12358 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
dd4f3dd8 | 12359 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12360 | else |
12361 | # Use it with a single arg. | |
12362 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12363 | /* confdefs.h. */ |
12364 | _ACEOF | |
12365 | cat confdefs.h >>conftest.$ac_ext | |
12366 | cat >>conftest.$ac_ext <<_ACEOF | |
12367 | /* end confdefs.h. */ | |
12368 | $ac_includes_default | |
12369 | int | |
12370 | main () | |
12371 | { | |
12372 | getpgrp (0); | |
12373 | ; | |
12374 | return 0; | |
12375 | } | |
12376 | _ACEOF | |
12377 | rm -f conftest.$ac_objext | |
d3ad40de CR |
12378 | if { (ac_try="$ac_compile" |
12379 | case "(($ac_try" in | |
12380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12381 | *) ac_try_echo=$ac_try;; | |
12382 | esac | |
dd4f3dd8 CR |
12383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12384 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12385 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 12386 | ac_status=$? |
a82a04b3 CR |
12387 | grep -v '^ *+' conftest.er1 >conftest.err |
12388 | rm -f conftest.er1 | |
12389 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12391 | (exit $ac_status); } && { | |
12392 | test -z "$ac_c_werror_flag" || | |
12393 | test ! -s conftest.err | |
12394 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
12395 | ac_cv_func_getpgrp_void=no |
12396 | else | |
dd4f3dd8 | 12397 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12398 | sed 's/^/| /' conftest.$ac_ext >&5 |
12399 | ||
d3ad40de | 12400 | ac_cv_func_getpgrp_void=yes |
545f34cf | 12401 | fi |
d3ad40de CR |
12402 | |
12403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
12404 | |
12405 | fi | |
dd4f3dd8 CR |
12406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
12407 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | |
545f34cf CR |
12408 | if test $ac_cv_func_getpgrp_void = yes; then |
12409 | ||
12410 | cat >>confdefs.h <<\_ACEOF | |
12411 | @%:@define GETPGRP_VOID 1 | |
12412 | _ACEOF | |
12413 | ||
12414 | fi | |
12415 | ||
545f34cf | 12416 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then |
dd4f3dd8 | 12417 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12418 | else |
12419 | ac_cv_func_setvbuf_reversed=no | |
dd4f3dd8 CR |
12420 | fi |
12421 | ||
12422 | ||
12423 | ||
12424 | for ac_func in vprintf | |
12425 | do | |
12426 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12427 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12428 | $as_echo_n "checking for $ac_func... " >&6; } | |
12429 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12430 | $as_echo_n "(cached) " >&6 | |
12431 | else | |
12432 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12433 | /* confdefs.h. */ |
12434 | _ACEOF | |
12435 | cat confdefs.h >>conftest.$ac_ext | |
12436 | cat >>conftest.$ac_ext <<_ACEOF | |
12437 | /* end confdefs.h. */ | |
dd4f3dd8 CR |
12438 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12440 | #define $ac_func innocuous_$ac_func | |
12441 | ||
12442 | /* System header to define __stub macros and hopefully few prototypes, | |
12443 | which can conflict with char $ac_func (); below. | |
12444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12445 | <limits.h> exists even on freestanding compilers. */ | |
12446 | ||
12447 | #ifdef __STDC__ | |
12448 | # include <limits.h> | |
12449 | #else | |
12450 | # include <assert.h> | |
12451 | #endif | |
12452 | ||
12453 | #undef $ac_func | |
12454 | ||
12455 | /* Override any GCC internal prototype to avoid an error. | |
12456 | Use char because int might match the return type of a GCC | |
12457 | builtin and then its argument prototype would still apply. */ | |
12458 | #ifdef __cplusplus | |
12459 | extern "C" | |
12460 | #endif | |
12461 | char $ac_func (); | |
12462 | /* The GNU C library defines this for functions which it implements | |
12463 | to always fail with ENOSYS. Some functions are actually named | |
12464 | something starting with __ and the normal name is an alias. */ | |
12465 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12466 | choke me | |
12467 | #endif | |
12468 | ||
545f34cf CR |
12469 | int |
12470 | main () | |
12471 | { | |
dd4f3dd8 | 12472 | return $ac_func (); |
545f34cf CR |
12473 | ; |
12474 | return 0; | |
12475 | } | |
12476 | _ACEOF | |
12477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
12478 | if { (ac_try="$ac_link" |
12479 | case "(($ac_try" in | |
12480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12481 | *) ac_try_echo=$ac_try;; | |
12482 | esac | |
dd4f3dd8 CR |
12483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12484 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12485 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 12486 | ac_status=$? |
a82a04b3 CR |
12487 | grep -v '^ *+' conftest.er1 >conftest.err |
12488 | rm -f conftest.er1 | |
12489 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12491 | (exit $ac_status); } && { | |
12492 | test -z "$ac_c_werror_flag" || | |
12493 | test ! -s conftest.err | |
12494 | } && test -s conftest$ac_exeext && { | |
12495 | test "$cross_compiling" = yes || | |
12496 | $as_test_x conftest$ac_exeext | |
12497 | }; then | |
545f34cf CR |
12498 | eval "$as_ac_var=yes" |
12499 | else | |
dd4f3dd8 | 12500 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12501 | sed 's/^/| /' conftest.$ac_ext >&5 |
12502 | ||
d3ad40de | 12503 | eval "$as_ac_var=no" |
545f34cf | 12504 | fi |
d3ad40de | 12505 | |
dd4f3dd8 CR |
12506 | rm -rf conftest.dSYM |
12507 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 12508 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 12509 | fi |
dd4f3dd8 CR |
12510 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12511 | $as_echo "$as_val"'` | |
12512 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12513 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
12514 | if test `eval 'as_val=${'$as_ac_var'} |
12515 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 12516 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 12517 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
12518 | _ACEOF |
12519 | ||
dd4f3dd8 CR |
12520 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
12521 | $as_echo_n "checking for _doprnt... " >&6; } | |
545f34cf | 12522 | if test "${ac_cv_func__doprnt+set}" = set; then |
dd4f3dd8 | 12523 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12524 | else |
12525 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12526 | /* confdefs.h. */ |
12527 | _ACEOF | |
12528 | cat confdefs.h >>conftest.$ac_ext | |
12529 | cat >>conftest.$ac_ext <<_ACEOF | |
12530 | /* end confdefs.h. */ | |
a82a04b3 CR |
12531 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
12532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12533 | #define _doprnt innocuous__doprnt | |
12534 | ||
545f34cf CR |
12535 | /* System header to define __stub macros and hopefully few prototypes, |
12536 | which can conflict with char _doprnt (); below. | |
12537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12538 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 12539 | |
545f34cf CR |
12540 | #ifdef __STDC__ |
12541 | # include <limits.h> | |
12542 | #else | |
12543 | # include <assert.h> | |
12544 | #endif | |
a82a04b3 CR |
12545 | |
12546 | #undef _doprnt | |
12547 | ||
d3ad40de CR |
12548 | /* Override any GCC internal prototype to avoid an error. |
12549 | Use char because int might match the return type of a GCC | |
12550 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
12551 | #ifdef __cplusplus |
12552 | extern "C" | |
545f34cf | 12553 | #endif |
545f34cf CR |
12554 | char _doprnt (); |
12555 | /* The GNU C library defines this for functions which it implements | |
12556 | to always fail with ENOSYS. Some functions are actually named | |
12557 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 12558 | #if defined __stub__doprnt || defined __stub____doprnt |
545f34cf | 12559 | choke me |
545f34cf CR |
12560 | #endif |
12561 | ||
12562 | int | |
12563 | main () | |
12564 | { | |
d3ad40de | 12565 | return _doprnt (); |
545f34cf CR |
12566 | ; |
12567 | return 0; | |
12568 | } | |
12569 | _ACEOF | |
12570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
12571 | if { (ac_try="$ac_link" |
12572 | case "(($ac_try" in | |
12573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12574 | *) ac_try_echo=$ac_try;; | |
12575 | esac | |
dd4f3dd8 CR |
12576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12577 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12578 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 12579 | ac_status=$? |
a82a04b3 CR |
12580 | grep -v '^ *+' conftest.er1 >conftest.err |
12581 | rm -f conftest.er1 | |
12582 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12584 | (exit $ac_status); } && { | |
12585 | test -z "$ac_c_werror_flag" || | |
12586 | test ! -s conftest.err | |
12587 | } && test -s conftest$ac_exeext && { | |
12588 | test "$cross_compiling" = yes || | |
12589 | $as_test_x conftest$ac_exeext | |
12590 | }; then | |
2e4498b3 CR |
12591 | ac_cv_func__doprnt=yes |
12592 | else | |
dd4f3dd8 | 12593 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
12594 | sed 's/^/| /' conftest.$ac_ext >&5 |
12595 | ||
12596 | ac_cv_func__doprnt=no | |
12597 | fi | |
12598 | ||
dd4f3dd8 CR |
12599 | rm -rf conftest.dSYM |
12600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
2e4498b3 | 12601 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 12602 | fi |
dd4f3dd8 CR |
12603 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
12604 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
76af2125 | 12605 | if test $ac_cv_func__doprnt = yes; then |
545f34cf CR |
12606 | |
12607 | cat >>confdefs.h <<\_ACEOF | |
12608 | @%:@define HAVE_DOPRNT 1 | |
12609 | _ACEOF | |
12610 | ||
12611 | fi | |
12612 | ||
12613 | fi | |
12614 | done | |
12615 | ||
12616 | ||
dd4f3dd8 CR |
12617 | { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5 |
12618 | $as_echo_n "checking for working strcoll... " >&6; } | |
545f34cf | 12619 | if test "${ac_cv_func_strcoll_works+set}" = set; then |
dd4f3dd8 | 12620 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12621 | else |
12622 | if test "$cross_compiling" = yes; then | |
12623 | ac_cv_func_strcoll_works=no | |
12624 | else | |
12625 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12626 | /* confdefs.h. */ |
12627 | _ACEOF | |
12628 | cat confdefs.h >>conftest.$ac_ext | |
12629 | cat >>conftest.$ac_ext <<_ACEOF | |
12630 | /* end confdefs.h. */ | |
12631 | $ac_includes_default | |
12632 | int | |
12633 | main () | |
12634 | { | |
d3ad40de | 12635 | return (strcoll ("abc", "def") >= 0 || |
545f34cf CR |
12636 | strcoll ("ABC", "DEF") >= 0 || |
12637 | strcoll ("123", "456") >= 0) | |
12638 | ; | |
12639 | return 0; | |
12640 | } | |
12641 | _ACEOF | |
12642 | rm -f conftest$ac_exeext | |
d3ad40de CR |
12643 | if { (ac_try="$ac_link" |
12644 | case "(($ac_try" in | |
12645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12646 | *) ac_try_echo=$ac_try;; | |
12647 | esac | |
dd4f3dd8 CR |
12648 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12649 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12650 | (eval "$ac_link") 2>&5 |
545f34cf | 12651 | ac_status=$? |
dd4f3dd8 | 12652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 12653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
12654 | { (case "(($ac_try" in |
12655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12656 | *) ac_try_echo=$ac_try;; | |
12657 | esac | |
dd4f3dd8 CR |
12658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12659 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12660 | (eval "$ac_try") 2>&5 |
545f34cf | 12661 | ac_status=$? |
dd4f3dd8 | 12662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
12663 | (exit $ac_status); }; }; then |
12664 | ac_cv_func_strcoll_works=yes | |
12665 | else | |
dd4f3dd8 CR |
12666 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12667 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
12668 | sed 's/^/| /' conftest.$ac_ext >&5 |
12669 | ||
12670 | ( exit $ac_status ) | |
12671 | ac_cv_func_strcoll_works=no | |
12672 | fi | |
dd4f3dd8 | 12673 | rm -rf conftest.dSYM |
d3ad40de | 12674 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9d6e5e30 | 12675 | fi |
d3ad40de CR |
12676 | |
12677 | ||
12678 | fi | |
dd4f3dd8 CR |
12679 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
12680 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
545f34cf CR |
12681 | if test $ac_cv_func_strcoll_works = yes; then |
12682 | ||
12683 | cat >>confdefs.h <<\_ACEOF | |
12684 | @%:@define HAVE_STRCOLL 1 | |
12685 | _ACEOF | |
12686 | ||
12687 | fi | |
12688 | ||
12689 | ||
12690 | ||
12691 | if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then | |
12692 | MALLOC_TARGET=alloca | |
12693 | MALLOC_SRC=alloca.c | |
12694 | ||
12695 | MALLOC_LIB='-lmalloc' | |
12696 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
12697 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
12698 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
12699 | fi | |
12700 | ||
12701 | if test "$ac_cv_func_vprintf" = no; then | |
dd4f3dd8 CR |
12702 | { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5 |
12703 | $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; } | |
545f34cf | 12704 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
12705 | /* confdefs.h. */ |
12706 | _ACEOF | |
12707 | cat confdefs.h >>conftest.$ac_ext | |
12708 | cat >>conftest.$ac_ext <<_ACEOF | |
12709 | /* end confdefs.h. */ | |
12710 | #include <stdio.h> | |
12711 | ||
12712 | _ACEOF | |
12713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12714 | $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then | |
12715 | ac_cv_func_vprintf=yes | |
12716 | fi | |
12717 | rm -f conftest* | |
12718 | ||
dd4f3dd8 CR |
12719 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5 |
12720 | $as_echo "$ac_cv_func_vprintf" >&6; } | |
545f34cf CR |
12721 | if test $ac_cv_func_vprintf = yes; then |
12722 | cat >>confdefs.h <<\_ACEOF | |
12723 | @%:@define HAVE_VPRINTF 1 | |
12724 | _ACEOF | |
12725 | ||
12726 | fi | |
12727 | fi | |
12728 | ||
12729 | if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then | |
d3ad40de | 12730 | case " $LIB@&t@OBJS " in |
a82a04b3 | 12731 | *" vprint.$ac_objext "* ) ;; |
d3ad40de CR |
12732 | *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext" |
12733 | ;; | |
a82a04b3 CR |
12734 | esac |
12735 | ||
545f34cf CR |
12736 | fi |
12737 | ||
dd4f3dd8 CR |
12738 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
12739 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
545f34cf | 12740 | if test "${ac_cv_type_signal+set}" = set; then |
dd4f3dd8 | 12741 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12742 | else |
12743 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12744 | /* confdefs.h. */ |
12745 | _ACEOF | |
12746 | cat confdefs.h >>conftest.$ac_ext | |
12747 | cat >>conftest.$ac_ext <<_ACEOF | |
12748 | /* end confdefs.h. */ | |
12749 | #include <sys/types.h> | |
12750 | #include <signal.h> | |
545f34cf CR |
12751 | |
12752 | int | |
12753 | main () | |
12754 | { | |
d3ad40de | 12755 | return *(signal (0, 0)) (0) == 1; |
545f34cf CR |
12756 | ; |
12757 | return 0; | |
12758 | } | |
12759 | _ACEOF | |
12760 | rm -f conftest.$ac_objext | |
d3ad40de CR |
12761 | if { (ac_try="$ac_compile" |
12762 | case "(($ac_try" in | |
12763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12764 | *) ac_try_echo=$ac_try;; | |
12765 | esac | |
dd4f3dd8 CR |
12766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12767 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12768 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 12769 | ac_status=$? |
a82a04b3 CR |
12770 | grep -v '^ *+' conftest.er1 >conftest.err |
12771 | rm -f conftest.er1 | |
12772 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12774 | (exit $ac_status); } && { | |
12775 | test -z "$ac_c_werror_flag" || | |
12776 | test ! -s conftest.err | |
12777 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 12778 | ac_cv_type_signal=int |
545f34cf | 12779 | else |
dd4f3dd8 | 12780 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12781 | sed 's/^/| /' conftest.$ac_ext >&5 |
12782 | ||
d3ad40de | 12783 | ac_cv_type_signal=void |
545f34cf | 12784 | fi |
d3ad40de CR |
12785 | |
12786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 12787 | fi |
dd4f3dd8 CR |
12788 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
12789 | $as_echo "$ac_cv_type_signal" >&6; } | |
545f34cf CR |
12790 | |
12791 | cat >>confdefs.h <<_ACEOF | |
12792 | @%:@define RETSIGTYPE $ac_cv_type_signal | |
12793 | _ACEOF | |
12794 | ||
12795 | ||
12796 | ||
dd4f3dd8 CR |
12797 | { $as_echo "$as_me:$LINENO: checking for __setostype" >&5 |
12798 | $as_echo_n "checking for __setostype... " >&6; } | |
545f34cf | 12799 | if test "${ac_cv_func___setostype+set}" = set; then |
dd4f3dd8 | 12800 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12801 | else |
12802 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12803 | /* confdefs.h. */ |
12804 | _ACEOF | |
12805 | cat confdefs.h >>conftest.$ac_ext | |
12806 | cat >>conftest.$ac_ext <<_ACEOF | |
12807 | /* end confdefs.h. */ | |
a82a04b3 CR |
12808 | /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype. |
12809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12810 | #define __setostype innocuous___setostype | |
12811 | ||
545f34cf CR |
12812 | /* System header to define __stub macros and hopefully few prototypes, |
12813 | which can conflict with char __setostype (); below. | |
12814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12815 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 12816 | |
545f34cf CR |
12817 | #ifdef __STDC__ |
12818 | # include <limits.h> | |
12819 | #else | |
12820 | # include <assert.h> | |
12821 | #endif | |
a82a04b3 CR |
12822 | |
12823 | #undef __setostype | |
12824 | ||
d3ad40de CR |
12825 | /* Override any GCC internal prototype to avoid an error. |
12826 | Use char because int might match the return type of a GCC | |
12827 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
12828 | #ifdef __cplusplus |
12829 | extern "C" | |
545f34cf | 12830 | #endif |
545f34cf CR |
12831 | char __setostype (); |
12832 | /* The GNU C library defines this for functions which it implements | |
12833 | to always fail with ENOSYS. Some functions are actually named | |
12834 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 12835 | #if defined __stub___setostype || defined __stub_____setostype |
545f34cf | 12836 | choke me |
545f34cf CR |
12837 | #endif |
12838 | ||
12839 | int | |
12840 | main () | |
12841 | { | |
d3ad40de | 12842 | return __setostype (); |
545f34cf CR |
12843 | ; |
12844 | return 0; | |
12845 | } | |
12846 | _ACEOF | |
12847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
12848 | if { (ac_try="$ac_link" |
12849 | case "(($ac_try" in | |
12850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12851 | *) ac_try_echo=$ac_try;; | |
12852 | esac | |
dd4f3dd8 CR |
12853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12854 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12855 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 12856 | ac_status=$? |
a82a04b3 CR |
12857 | grep -v '^ *+' conftest.er1 >conftest.err |
12858 | rm -f conftest.er1 | |
12859 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12861 | (exit $ac_status); } && { | |
12862 | test -z "$ac_c_werror_flag" || | |
12863 | test ! -s conftest.err | |
12864 | } && test -s conftest$ac_exeext && { | |
12865 | test "$cross_compiling" = yes || | |
12866 | $as_test_x conftest$ac_exeext | |
12867 | }; then | |
545f34cf CR |
12868 | ac_cv_func___setostype=yes |
12869 | else | |
dd4f3dd8 | 12870 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12871 | sed 's/^/| /' conftest.$ac_ext >&5 |
12872 | ||
d3ad40de | 12873 | ac_cv_func___setostype=no |
545f34cf | 12874 | fi |
d3ad40de | 12875 | |
dd4f3dd8 CR |
12876 | rm -rf conftest.dSYM |
12877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 12878 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 12879 | fi |
dd4f3dd8 CR |
12880 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5 |
12881 | $as_echo "$ac_cv_func___setostype" >&6; } | |
76af2125 | 12882 | if test $ac_cv_func___setostype = yes; then |
545f34cf CR |
12883 | cat >>confdefs.h <<\_ACEOF |
12884 | @%:@define HAVE_SETOSTYPE 1 | |
12885 | _ACEOF | |
12886 | ||
12887 | fi | |
12888 | ||
dd4f3dd8 CR |
12889 | { $as_echo "$as_me:$LINENO: checking for wait3" >&5 |
12890 | $as_echo_n "checking for wait3... " >&6; } | |
545f34cf | 12891 | if test "${ac_cv_func_wait3+set}" = set; then |
dd4f3dd8 | 12892 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12893 | else |
12894 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12895 | /* confdefs.h. */ |
12896 | _ACEOF | |
12897 | cat confdefs.h >>conftest.$ac_ext | |
12898 | cat >>conftest.$ac_ext <<_ACEOF | |
12899 | /* end confdefs.h. */ | |
a82a04b3 CR |
12900 | /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3. |
12901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12902 | #define wait3 innocuous_wait3 | |
12903 | ||
545f34cf CR |
12904 | /* System header to define __stub macros and hopefully few prototypes, |
12905 | which can conflict with char wait3 (); below. | |
12906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12907 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 12908 | |
545f34cf CR |
12909 | #ifdef __STDC__ |
12910 | # include <limits.h> | |
12911 | #else | |
12912 | # include <assert.h> | |
12913 | #endif | |
a82a04b3 CR |
12914 | |
12915 | #undef wait3 | |
12916 | ||
d3ad40de CR |
12917 | /* Override any GCC internal prototype to avoid an error. |
12918 | Use char because int might match the return type of a GCC | |
12919 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
12920 | #ifdef __cplusplus |
12921 | extern "C" | |
545f34cf | 12922 | #endif |
545f34cf CR |
12923 | char wait3 (); |
12924 | /* The GNU C library defines this for functions which it implements | |
12925 | to always fail with ENOSYS. Some functions are actually named | |
12926 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 12927 | #if defined __stub_wait3 || defined __stub___wait3 |
545f34cf | 12928 | choke me |
545f34cf CR |
12929 | #endif |
12930 | ||
12931 | int | |
12932 | main () | |
12933 | { | |
d3ad40de | 12934 | return wait3 (); |
545f34cf CR |
12935 | ; |
12936 | return 0; | |
12937 | } | |
12938 | _ACEOF | |
12939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
12940 | if { (ac_try="$ac_link" |
12941 | case "(($ac_try" in | |
12942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12943 | *) ac_try_echo=$ac_try;; | |
12944 | esac | |
dd4f3dd8 CR |
12945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12946 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 12947 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 12948 | ac_status=$? |
a82a04b3 CR |
12949 | grep -v '^ *+' conftest.er1 >conftest.err |
12950 | rm -f conftest.er1 | |
12951 | cat conftest.err >&5 | |
dd4f3dd8 CR |
12952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12953 | (exit $ac_status); } && { | |
12954 | test -z "$ac_c_werror_flag" || | |
12955 | test ! -s conftest.err | |
12956 | } && test -s conftest$ac_exeext && { | |
12957 | test "$cross_compiling" = yes || | |
12958 | $as_test_x conftest$ac_exeext | |
12959 | }; then | |
545f34cf CR |
12960 | ac_cv_func_wait3=yes |
12961 | else | |
dd4f3dd8 | 12962 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
12963 | sed 's/^/| /' conftest.$ac_ext >&5 |
12964 | ||
d3ad40de | 12965 | ac_cv_func_wait3=no |
545f34cf | 12966 | fi |
d3ad40de | 12967 | |
dd4f3dd8 CR |
12968 | rm -rf conftest.dSYM |
12969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 12970 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 12971 | fi |
dd4f3dd8 CR |
12972 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5 |
12973 | $as_echo "$ac_cv_func_wait3" >&6; } | |
76af2125 | 12974 | if test $ac_cv_func_wait3 = yes; then |
545f34cf CR |
12975 | cat >>confdefs.h <<\_ACEOF |
12976 | @%:@define HAVE_WAIT3 1 | |
12977 | _ACEOF | |
12978 | ||
12979 | fi | |
12980 | ||
dd4f3dd8 CR |
12981 | { $as_echo "$as_me:$LINENO: checking for isinf" >&5 |
12982 | $as_echo_n "checking for isinf... " >&6; } | |
545f34cf | 12983 | if test "${ac_cv_func_isinf+set}" = set; then |
dd4f3dd8 | 12984 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
12985 | else |
12986 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
12987 | /* confdefs.h. */ |
12988 | _ACEOF | |
12989 | cat confdefs.h >>conftest.$ac_ext | |
12990 | cat >>conftest.$ac_ext <<_ACEOF | |
12991 | /* end confdefs.h. */ | |
a82a04b3 CR |
12992 | /* Define isinf to an innocuous variant, in case <limits.h> declares isinf. |
12993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12994 | #define isinf innocuous_isinf | |
12995 | ||
545f34cf CR |
12996 | /* System header to define __stub macros and hopefully few prototypes, |
12997 | which can conflict with char isinf (); below. | |
12998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12999 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 13000 | |
545f34cf CR |
13001 | #ifdef __STDC__ |
13002 | # include <limits.h> | |
13003 | #else | |
13004 | # include <assert.h> | |
13005 | #endif | |
a82a04b3 CR |
13006 | |
13007 | #undef isinf | |
13008 | ||
d3ad40de CR |
13009 | /* Override any GCC internal prototype to avoid an error. |
13010 | Use char because int might match the return type of a GCC | |
13011 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
13012 | #ifdef __cplusplus |
13013 | extern "C" | |
545f34cf | 13014 | #endif |
545f34cf CR |
13015 | char isinf (); |
13016 | /* The GNU C library defines this for functions which it implements | |
13017 | to always fail with ENOSYS. Some functions are actually named | |
13018 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13019 | #if defined __stub_isinf || defined __stub___isinf |
545f34cf | 13020 | choke me |
f0130b89 CR |
13021 | #endif |
13022 | ||
13023 | int | |
13024 | main () | |
13025 | { | |
d3ad40de | 13026 | return isinf (); |
f0130b89 CR |
13027 | ; |
13028 | return 0; | |
13029 | } | |
13030 | _ACEOF | |
13031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13032 | if { (ac_try="$ac_link" |
13033 | case "(($ac_try" in | |
13034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13035 | *) ac_try_echo=$ac_try;; | |
13036 | esac | |
dd4f3dd8 CR |
13037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13038 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13039 | (eval "$ac_link") 2>conftest.er1 |
f0130b89 CR |
13040 | ac_status=$? |
13041 | grep -v '^ *+' conftest.er1 >conftest.err | |
13042 | rm -f conftest.er1 | |
13043 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13045 | (exit $ac_status); } && { | |
13046 | test -z "$ac_c_werror_flag" || | |
13047 | test ! -s conftest.err | |
13048 | } && test -s conftest$ac_exeext && { | |
13049 | test "$cross_compiling" = yes || | |
13050 | $as_test_x conftest$ac_exeext | |
13051 | }; then | |
28157acd | 13052 | ac_cv_func_isinf=yes |
f0130b89 | 13053 | else |
dd4f3dd8 | 13054 | $as_echo "$as_me: failed program was:" >&5 |
f0130b89 CR |
13055 | sed 's/^/| /' conftest.$ac_ext >&5 |
13056 | ||
d3ad40de | 13057 | ac_cv_func_isinf=no |
f0130b89 | 13058 | fi |
d3ad40de | 13059 | |
dd4f3dd8 CR |
13060 | rm -rf conftest.dSYM |
13061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
f0130b89 CR |
13062 | conftest$ac_exeext conftest.$ac_ext |
13063 | fi | |
dd4f3dd8 CR |
13064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5 |
13065 | $as_echo "$ac_cv_func_isinf" >&6; } | |
76af2125 | 13066 | if test $ac_cv_func_isinf = yes; then |
f0130b89 | 13067 | cat >>confdefs.h <<\_ACEOF |
28157acd | 13068 | @%:@define HAVE_ISINF_IN_LIBC 1 |
f0130b89 CR |
13069 | _ACEOF |
13070 | ||
13071 | fi | |
13072 | ||
dd4f3dd8 CR |
13073 | { $as_echo "$as_me:$LINENO: checking for isnan" >&5 |
13074 | $as_echo_n "checking for isnan... " >&6; } | |
d3ad40de | 13075 | if test "${ac_cv_func_isnan+set}" = set; then |
dd4f3dd8 | 13076 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
13077 | else |
13078 | cat >conftest.$ac_ext <<_ACEOF | |
13079 | /* confdefs.h. */ | |
13080 | _ACEOF | |
13081 | cat confdefs.h >>conftest.$ac_ext | |
13082 | cat >>conftest.$ac_ext <<_ACEOF | |
13083 | /* end confdefs.h. */ | |
13084 | /* Define isnan to an innocuous variant, in case <limits.h> declares isnan. | |
13085 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13086 | #define isnan innocuous_isnan | |
13087 | ||
13088 | /* System header to define __stub macros and hopefully few prototypes, | |
13089 | which can conflict with char isnan (); below. | |
13090 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13091 | <limits.h> exists even on freestanding compilers. */ | |
13092 | ||
13093 | #ifdef __STDC__ | |
13094 | # include <limits.h> | |
13095 | #else | |
13096 | # include <assert.h> | |
13097 | #endif | |
13098 | ||
13099 | #undef isnan | |
13100 | ||
13101 | /* Override any GCC internal prototype to avoid an error. | |
13102 | Use char because int might match the return type of a GCC | |
13103 | builtin and then its argument prototype would still apply. */ | |
13104 | #ifdef __cplusplus | |
13105 | extern "C" | |
13106 | #endif | |
13107 | char isnan (); | |
13108 | /* The GNU C library defines this for functions which it implements | |
13109 | to always fail with ENOSYS. Some functions are actually named | |
13110 | something starting with __ and the normal name is an alias. */ | |
13111 | #if defined __stub_isnan || defined __stub___isnan | |
13112 | choke me | |
13113 | #endif | |
13114 | ||
13115 | int | |
13116 | main () | |
13117 | { | |
13118 | return isnan (); | |
13119 | ; | |
13120 | return 0; | |
13121 | } | |
13122 | _ACEOF | |
13123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13124 | if { (ac_try="$ac_link" | |
13125 | case "(($ac_try" in | |
13126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13127 | *) ac_try_echo=$ac_try;; | |
13128 | esac | |
dd4f3dd8 CR |
13129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13130 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de CR |
13131 | (eval "$ac_link") 2>conftest.er1 |
13132 | ac_status=$? | |
13133 | grep -v '^ *+' conftest.er1 >conftest.err | |
13134 | rm -f conftest.er1 | |
13135 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13137 | (exit $ac_status); } && { | |
13138 | test -z "$ac_c_werror_flag" || | |
13139 | test ! -s conftest.err | |
13140 | } && test -s conftest$ac_exeext && { | |
13141 | test "$cross_compiling" = yes || | |
13142 | $as_test_x conftest$ac_exeext | |
13143 | }; then | |
d3ad40de CR |
13144 | ac_cv_func_isnan=yes |
13145 | else | |
dd4f3dd8 | 13146 | $as_echo "$as_me: failed program was:" >&5 |
d3ad40de CR |
13147 | sed 's/^/| /' conftest.$ac_ext >&5 |
13148 | ||
13149 | ac_cv_func_isnan=no | |
13150 | fi | |
13151 | ||
dd4f3dd8 CR |
13152 | rm -rf conftest.dSYM |
13153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d3ad40de CR |
13154 | conftest$ac_exeext conftest.$ac_ext |
13155 | fi | |
dd4f3dd8 CR |
13156 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5 |
13157 | $as_echo "$ac_cv_func_isnan" >&6; } | |
76af2125 | 13158 | if test $ac_cv_func_isnan = yes; then |
d3ad40de CR |
13159 | cat >>confdefs.h <<\_ACEOF |
13160 | @%:@define HAVE_ISNAN_IN_LIBC 1 | |
13161 | _ACEOF | |
13162 | ||
13163 | fi | |
13164 | ||
545f34cf | 13165 | |
dd4f3dd8 CR |
13166 | { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5 |
13167 | $as_echo_n "checking for mkfifo... " >&6; } | |
545f34cf | 13168 | if test "${ac_cv_func_mkfifo+set}" = set; then |
dd4f3dd8 | 13169 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
13170 | else |
13171 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
13172 | /* confdefs.h. */ |
13173 | _ACEOF | |
13174 | cat confdefs.h >>conftest.$ac_ext | |
13175 | cat >>conftest.$ac_ext <<_ACEOF | |
13176 | /* end confdefs.h. */ | |
a82a04b3 CR |
13177 | /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo. |
13178 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13179 | #define mkfifo innocuous_mkfifo | |
13180 | ||
545f34cf CR |
13181 | /* System header to define __stub macros and hopefully few prototypes, |
13182 | which can conflict with char mkfifo (); below. | |
13183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13184 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 13185 | |
545f34cf CR |
13186 | #ifdef __STDC__ |
13187 | # include <limits.h> | |
13188 | #else | |
13189 | # include <assert.h> | |
13190 | #endif | |
a82a04b3 CR |
13191 | |
13192 | #undef mkfifo | |
13193 | ||
d3ad40de CR |
13194 | /* Override any GCC internal prototype to avoid an error. |
13195 | Use char because int might match the return type of a GCC | |
13196 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
13197 | #ifdef __cplusplus |
13198 | extern "C" | |
545f34cf | 13199 | #endif |
545f34cf CR |
13200 | char mkfifo (); |
13201 | /* The GNU C library defines this for functions which it implements | |
13202 | to always fail with ENOSYS. Some functions are actually named | |
13203 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13204 | #if defined __stub_mkfifo || defined __stub___mkfifo |
545f34cf | 13205 | choke me |
545f34cf CR |
13206 | #endif |
13207 | ||
13208 | int | |
13209 | main () | |
13210 | { | |
d3ad40de | 13211 | return mkfifo (); |
545f34cf CR |
13212 | ; |
13213 | return 0; | |
13214 | } | |
13215 | _ACEOF | |
13216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13217 | if { (ac_try="$ac_link" |
13218 | case "(($ac_try" in | |
13219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13220 | *) ac_try_echo=$ac_try;; | |
13221 | esac | |
dd4f3dd8 CR |
13222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13223 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13224 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 13225 | ac_status=$? |
a82a04b3 CR |
13226 | grep -v '^ *+' conftest.er1 >conftest.err |
13227 | rm -f conftest.er1 | |
13228 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13230 | (exit $ac_status); } && { | |
13231 | test -z "$ac_c_werror_flag" || | |
13232 | test ! -s conftest.err | |
13233 | } && test -s conftest$ac_exeext && { | |
13234 | test "$cross_compiling" = yes || | |
13235 | $as_test_x conftest$ac_exeext | |
13236 | }; then | |
545f34cf CR |
13237 | ac_cv_func_mkfifo=yes |
13238 | else | |
dd4f3dd8 | 13239 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
13240 | sed 's/^/| /' conftest.$ac_ext >&5 |
13241 | ||
d3ad40de | 13242 | ac_cv_func_mkfifo=no |
545f34cf | 13243 | fi |
d3ad40de | 13244 | |
dd4f3dd8 CR |
13245 | rm -rf conftest.dSYM |
13246 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 13247 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 13248 | fi |
dd4f3dd8 CR |
13249 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5 |
13250 | $as_echo "$ac_cv_func_mkfifo" >&6; } | |
76af2125 | 13251 | if test $ac_cv_func_mkfifo = yes; then |
545f34cf CR |
13252 | cat >>confdefs.h <<\_ACEOF |
13253 | @%:@define HAVE_MKFIFO 1 | |
13254 | _ACEOF | |
13255 | ||
13256 | else | |
13257 | cat >>confdefs.h <<\_ACEOF | |
13258 | @%:@define MKFIFO_MISSING 1 | |
13259 | _ACEOF | |
13260 | ||
13261 | fi | |
13262 | ||
13263 | ||
13264 | ||
13265 | ||
13266 | ||
13267 | ||
13268 | ||
13269 | ||
13270 | ||
13271 | ||
13272 | ||
13273 | ||
13274 | ||
13275 | ||
13276 | ||
13277 | ||
13278 | ||
13279 | ||
13280 | ||
9607141c CR |
13281 | |
13282 | ||
13283 | ||
4ac1ff98 | 13284 | |
9607141c | 13285 | |
ac18b312 CR |
13286 | |
13287 | for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \ | |
13288 | getpagesize getpeername getrlimit getrusage gettimeofday \ | |
13289 | kill killpg lstat readlink sbrk select setdtablesize \ | |
4ac1ff98 | 13290 | setitimer tcgetpgrp uname ulimit waitpid |
545f34cf | 13291 | do |
dd4f3dd8 CR |
13292 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13293 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13294 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 13295 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 13296 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
13297 | else |
13298 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
13299 | /* confdefs.h. */ |
13300 | _ACEOF | |
13301 | cat confdefs.h >>conftest.$ac_ext | |
13302 | cat >>conftest.$ac_ext <<_ACEOF | |
13303 | /* end confdefs.h. */ | |
a82a04b3 CR |
13304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13306 | #define $ac_func innocuous_$ac_func | |
13307 | ||
545f34cf CR |
13308 | /* System header to define __stub macros and hopefully few prototypes, |
13309 | which can conflict with char $ac_func (); below. | |
13310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13311 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 13312 | |
545f34cf CR |
13313 | #ifdef __STDC__ |
13314 | # include <limits.h> | |
13315 | #else | |
13316 | # include <assert.h> | |
13317 | #endif | |
a82a04b3 CR |
13318 | |
13319 | #undef $ac_func | |
13320 | ||
d3ad40de CR |
13321 | /* Override any GCC internal prototype to avoid an error. |
13322 | Use char because int might match the return type of a GCC | |
13323 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
13324 | #ifdef __cplusplus |
13325 | extern "C" | |
545f34cf | 13326 | #endif |
545f34cf CR |
13327 | char $ac_func (); |
13328 | /* The GNU C library defines this for functions which it implements | |
13329 | to always fail with ENOSYS. Some functions are actually named | |
13330 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13331 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 13332 | choke me |
545f34cf CR |
13333 | #endif |
13334 | ||
13335 | int | |
13336 | main () | |
13337 | { | |
d3ad40de | 13338 | return $ac_func (); |
545f34cf CR |
13339 | ; |
13340 | return 0; | |
13341 | } | |
13342 | _ACEOF | |
13343 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13344 | if { (ac_try="$ac_link" |
13345 | case "(($ac_try" in | |
13346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13347 | *) ac_try_echo=$ac_try;; | |
13348 | esac | |
dd4f3dd8 CR |
13349 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13350 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13351 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 13352 | ac_status=$? |
a82a04b3 CR |
13353 | grep -v '^ *+' conftest.er1 >conftest.err |
13354 | rm -f conftest.er1 | |
13355 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13357 | (exit $ac_status); } && { | |
13358 | test -z "$ac_c_werror_flag" || | |
13359 | test ! -s conftest.err | |
13360 | } && test -s conftest$ac_exeext && { | |
13361 | test "$cross_compiling" = yes || | |
13362 | $as_test_x conftest$ac_exeext | |
13363 | }; then | |
545f34cf CR |
13364 | eval "$as_ac_var=yes" |
13365 | else | |
dd4f3dd8 | 13366 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
13367 | sed 's/^/| /' conftest.$ac_ext >&5 |
13368 | ||
d3ad40de | 13369 | eval "$as_ac_var=no" |
545f34cf | 13370 | fi |
d3ad40de | 13371 | |
dd4f3dd8 CR |
13372 | rm -rf conftest.dSYM |
13373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 13374 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 13375 | fi |
dd4f3dd8 CR |
13376 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13377 | $as_echo "$as_val"'` | |
13378 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13379 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
13380 | if test `eval 'as_val=${'$as_ac_var'} |
13381 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 13382 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 13383 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
13384 | _ACEOF |
13385 | ||
13386 | fi | |
13387 | done | |
13388 | ||
13389 | ||
13390 | for ac_func in rename | |
13391 | do | |
dd4f3dd8 CR |
13392 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13393 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13394 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 13395 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 13396 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
13397 | else |
13398 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
13399 | /* confdefs.h. */ |
13400 | _ACEOF | |
13401 | cat confdefs.h >>conftest.$ac_ext | |
13402 | cat >>conftest.$ac_ext <<_ACEOF | |
13403 | /* end confdefs.h. */ | |
a82a04b3 CR |
13404 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13405 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13406 | #define $ac_func innocuous_$ac_func | |
13407 | ||
545f34cf CR |
13408 | /* System header to define __stub macros and hopefully few prototypes, |
13409 | which can conflict with char $ac_func (); below. | |
13410 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13411 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 13412 | |
545f34cf CR |
13413 | #ifdef __STDC__ |
13414 | # include <limits.h> | |
13415 | #else | |
13416 | # include <assert.h> | |
13417 | #endif | |
a82a04b3 CR |
13418 | |
13419 | #undef $ac_func | |
13420 | ||
d3ad40de CR |
13421 | /* Override any GCC internal prototype to avoid an error. |
13422 | Use char because int might match the return type of a GCC | |
13423 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
13424 | #ifdef __cplusplus |
13425 | extern "C" | |
545f34cf | 13426 | #endif |
545f34cf CR |
13427 | char $ac_func (); |
13428 | /* The GNU C library defines this for functions which it implements | |
13429 | to always fail with ENOSYS. Some functions are actually named | |
13430 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13431 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 13432 | choke me |
545f34cf CR |
13433 | #endif |
13434 | ||
13435 | int | |
13436 | main () | |
13437 | { | |
d3ad40de | 13438 | return $ac_func (); |
545f34cf CR |
13439 | ; |
13440 | return 0; | |
13441 | } | |
13442 | _ACEOF | |
13443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13444 | if { (ac_try="$ac_link" |
13445 | case "(($ac_try" in | |
13446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13447 | *) ac_try_echo=$ac_try;; | |
13448 | esac | |
dd4f3dd8 CR |
13449 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13450 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13451 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 13452 | ac_status=$? |
a82a04b3 CR |
13453 | grep -v '^ *+' conftest.er1 >conftest.err |
13454 | rm -f conftest.er1 | |
13455 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13457 | (exit $ac_status); } && { | |
13458 | test -z "$ac_c_werror_flag" || | |
13459 | test ! -s conftest.err | |
13460 | } && test -s conftest$ac_exeext && { | |
13461 | test "$cross_compiling" = yes || | |
13462 | $as_test_x conftest$ac_exeext | |
13463 | }; then | |
545f34cf CR |
13464 | eval "$as_ac_var=yes" |
13465 | else | |
dd4f3dd8 | 13466 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
13467 | sed 's/^/| /' conftest.$ac_ext >&5 |
13468 | ||
d3ad40de | 13469 | eval "$as_ac_var=no" |
545f34cf | 13470 | fi |
d3ad40de | 13471 | |
dd4f3dd8 CR |
13472 | rm -rf conftest.dSYM |
13473 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 13474 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 13475 | fi |
dd4f3dd8 CR |
13476 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13477 | $as_echo "$as_val"'` | |
13478 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13479 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
13480 | if test `eval 'as_val=${'$as_ac_var'} |
13481 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 13482 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 13483 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
13484 | _ACEOF |
13485 | ||
13486 | else | |
d3ad40de | 13487 | case " $LIB@&t@OBJS " in |
a82a04b3 | 13488 | *" $ac_func.$ac_objext "* ) ;; |
d3ad40de CR |
13489 | *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" |
13490 | ;; | |
a82a04b3 CR |
13491 | esac |
13492 | ||
545f34cf CR |
13493 | fi |
13494 | done | |
13495 | ||
13496 | ||
13497 | ||
13498 | ||
13499 | ||
13500 | ||
13501 | ||
13502 | ||
13503 | ||
13504 | ||
13505 | ||
13506 | ||
13507 | ||
13508 | ||
13509 | ||
13510 | ||
13511 | ||
13512 | ||
13513 | ||
13514 | ||
13515 | ||
13516 | ||
13517 | ||
13518 | ||
13519 | ||
13520 | ||
13521 | ||
13522 | ||
13523 | ||
13524 | ||
9607141c CR |
13525 | for ac_func in bcopy bzero confstr fnmatch \ |
13526 | getaddrinfo gethostbyname getservbyname getservent inet_aton \ | |
13527 | memmove pathconf putenv raise regcomp regexec \ | |
13528 | setenv setlinebuf setlocale setvbuf siginterrupt strchr \ | |
13529 | sysconf tcgetattr times ttyname tzset unsetenv | |
13530 | do | |
dd4f3dd8 CR |
13531 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13532 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13533 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 13534 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 13535 | $as_echo_n "(cached) " >&6 |
9607141c CR |
13536 | else |
13537 | cat >conftest.$ac_ext <<_ACEOF | |
13538 | /* confdefs.h. */ | |
13539 | _ACEOF | |
13540 | cat confdefs.h >>conftest.$ac_ext | |
13541 | cat >>conftest.$ac_ext <<_ACEOF | |
13542 | /* end confdefs.h. */ | |
13543 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13544 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13545 | #define $ac_func innocuous_$ac_func | |
545f34cf | 13546 | |
9607141c CR |
13547 | /* System header to define __stub macros and hopefully few prototypes, |
13548 | which can conflict with char $ac_func (); below. | |
13549 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13550 | <limits.h> exists even on freestanding compilers. */ | |
13551 | ||
13552 | #ifdef __STDC__ | |
13553 | # include <limits.h> | |
13554 | #else | |
13555 | # include <assert.h> | |
13556 | #endif | |
13557 | ||
13558 | #undef $ac_func | |
13559 | ||
d3ad40de CR |
13560 | /* Override any GCC internal prototype to avoid an error. |
13561 | Use char because int might match the return type of a GCC | |
13562 | builtin and then its argument prototype would still apply. */ | |
9607141c CR |
13563 | #ifdef __cplusplus |
13564 | extern "C" | |
9607141c | 13565 | #endif |
9607141c CR |
13566 | char $ac_func (); |
13567 | /* The GNU C library defines this for functions which it implements | |
13568 | to always fail with ENOSYS. Some functions are actually named | |
13569 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13570 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9607141c | 13571 | choke me |
9607141c | 13572 | #endif |
545f34cf | 13573 | |
9607141c CR |
13574 | int |
13575 | main () | |
13576 | { | |
d3ad40de | 13577 | return $ac_func (); |
9607141c CR |
13578 | ; |
13579 | return 0; | |
13580 | } | |
13581 | _ACEOF | |
13582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13583 | if { (ac_try="$ac_link" |
13584 | case "(($ac_try" in | |
13585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13586 | *) ac_try_echo=$ac_try;; | |
13587 | esac | |
dd4f3dd8 CR |
13588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13589 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13590 | (eval "$ac_link") 2>conftest.er1 |
9607141c CR |
13591 | ac_status=$? |
13592 | grep -v '^ *+' conftest.er1 >conftest.err | |
13593 | rm -f conftest.er1 | |
13594 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13596 | (exit $ac_status); } && { | |
13597 | test -z "$ac_c_werror_flag" || | |
13598 | test ! -s conftest.err | |
13599 | } && test -s conftest$ac_exeext && { | |
13600 | test "$cross_compiling" = yes || | |
13601 | $as_test_x conftest$ac_exeext | |
13602 | }; then | |
9607141c CR |
13603 | eval "$as_ac_var=yes" |
13604 | else | |
dd4f3dd8 | 13605 | $as_echo "$as_me: failed program was:" >&5 |
9607141c | 13606 | sed 's/^/| /' conftest.$ac_ext >&5 |
545f34cf | 13607 | |
d3ad40de | 13608 | eval "$as_ac_var=no" |
9607141c | 13609 | fi |
d3ad40de | 13610 | |
dd4f3dd8 CR |
13611 | rm -rf conftest.dSYM |
13612 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9607141c CR |
13613 | conftest$ac_exeext conftest.$ac_ext |
13614 | fi | |
dd4f3dd8 CR |
13615 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13616 | $as_echo "$as_val"'` | |
13617 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13618 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
13619 | if test `eval 'as_val=${'$as_ac_var'} |
13620 | $as_echo "$as_val"'` = yes; then | |
9607141c | 13621 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 13622 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9607141c CR |
13623 | _ACEOF |
13624 | ||
13625 | fi | |
13626 | done | |
ec2199bd | 13627 | |
545f34cf CR |
13628 | |
13629 | ||
9607141c CR |
13630 | |
13631 | ||
13632 | ||
13633 | for ac_func in vsnprintf snprintf vasprintf asprintf | |
545f34cf | 13634 | do |
dd4f3dd8 CR |
13635 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13636 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13637 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 13638 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 13639 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
13640 | else |
13641 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
13642 | /* confdefs.h. */ |
13643 | _ACEOF | |
13644 | cat confdefs.h >>conftest.$ac_ext | |
13645 | cat >>conftest.$ac_ext <<_ACEOF | |
13646 | /* end confdefs.h. */ | |
a82a04b3 CR |
13647 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13649 | #define $ac_func innocuous_$ac_func | |
13650 | ||
545f34cf CR |
13651 | /* System header to define __stub macros and hopefully few prototypes, |
13652 | which can conflict with char $ac_func (); below. | |
13653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13654 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 13655 | |
545f34cf CR |
13656 | #ifdef __STDC__ |
13657 | # include <limits.h> | |
13658 | #else | |
13659 | # include <assert.h> | |
13660 | #endif | |
a82a04b3 CR |
13661 | |
13662 | #undef $ac_func | |
13663 | ||
d3ad40de CR |
13664 | /* Override any GCC internal prototype to avoid an error. |
13665 | Use char because int might match the return type of a GCC | |
13666 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
13667 | #ifdef __cplusplus |
13668 | extern "C" | |
545f34cf | 13669 | #endif |
545f34cf CR |
13670 | char $ac_func (); |
13671 | /* The GNU C library defines this for functions which it implements | |
13672 | to always fail with ENOSYS. Some functions are actually named | |
13673 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13674 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 13675 | choke me |
545f34cf CR |
13676 | #endif |
13677 | ||
13678 | int | |
13679 | main () | |
13680 | { | |
d3ad40de | 13681 | return $ac_func (); |
545f34cf CR |
13682 | ; |
13683 | return 0; | |
13684 | } | |
13685 | _ACEOF | |
13686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13687 | if { (ac_try="$ac_link" |
13688 | case "(($ac_try" in | |
13689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13690 | *) ac_try_echo=$ac_try;; | |
13691 | esac | |
dd4f3dd8 CR |
13692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13693 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13694 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 13695 | ac_status=$? |
a82a04b3 CR |
13696 | grep -v '^ *+' conftest.er1 >conftest.err |
13697 | rm -f conftest.er1 | |
13698 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13700 | (exit $ac_status); } && { | |
13701 | test -z "$ac_c_werror_flag" || | |
13702 | test ! -s conftest.err | |
13703 | } && test -s conftest$ac_exeext && { | |
13704 | test "$cross_compiling" = yes || | |
13705 | $as_test_x conftest$ac_exeext | |
13706 | }; then | |
545f34cf CR |
13707 | eval "$as_ac_var=yes" |
13708 | else | |
dd4f3dd8 | 13709 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
13711 | ||
d3ad40de | 13712 | eval "$as_ac_var=no" |
545f34cf | 13713 | fi |
d3ad40de | 13714 | |
dd4f3dd8 CR |
13715 | rm -rf conftest.dSYM |
13716 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 13717 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 13718 | fi |
dd4f3dd8 CR |
13719 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13720 | $as_echo "$as_val"'` | |
13721 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13722 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
13723 | if test `eval 'as_val=${'$as_ac_var'} |
13724 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 13725 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 13726 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
13727 | _ACEOF |
13728 | ||
13729 | fi | |
13730 | done | |
13731 | ||
13732 | ||
13733 | ||
13734 | ||
13735 | ||
13736 | ||
13737 | ||
13738 | for ac_func in isascii isblank isgraph isprint isspace isxdigit | |
13739 | do | |
dd4f3dd8 CR |
13740 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13741 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13742 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 13743 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 13744 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
13745 | else |
13746 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
13747 | /* confdefs.h. */ |
13748 | _ACEOF | |
13749 | cat confdefs.h >>conftest.$ac_ext | |
13750 | cat >>conftest.$ac_ext <<_ACEOF | |
13751 | /* end confdefs.h. */ | |
a82a04b3 CR |
13752 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13753 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13754 | #define $ac_func innocuous_$ac_func | |
13755 | ||
545f34cf CR |
13756 | /* System header to define __stub macros and hopefully few prototypes, |
13757 | which can conflict with char $ac_func (); below. | |
13758 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13759 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 13760 | |
545f34cf CR |
13761 | #ifdef __STDC__ |
13762 | # include <limits.h> | |
13763 | #else | |
13764 | # include <assert.h> | |
13765 | #endif | |
a82a04b3 CR |
13766 | |
13767 | #undef $ac_func | |
13768 | ||
d3ad40de CR |
13769 | /* Override any GCC internal prototype to avoid an error. |
13770 | Use char because int might match the return type of a GCC | |
13771 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
13772 | #ifdef __cplusplus |
13773 | extern "C" | |
545f34cf | 13774 | #endif |
545f34cf CR |
13775 | char $ac_func (); |
13776 | /* The GNU C library defines this for functions which it implements | |
13777 | to always fail with ENOSYS. Some functions are actually named | |
13778 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13779 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 13780 | choke me |
545f34cf CR |
13781 | #endif |
13782 | ||
13783 | int | |
13784 | main () | |
13785 | { | |
d3ad40de | 13786 | return $ac_func (); |
545f34cf CR |
13787 | ; |
13788 | return 0; | |
13789 | } | |
13790 | _ACEOF | |
13791 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13792 | if { (ac_try="$ac_link" |
13793 | case "(($ac_try" in | |
13794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13795 | *) ac_try_echo=$ac_try;; | |
13796 | esac | |
dd4f3dd8 CR |
13797 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13798 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13799 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 13800 | ac_status=$? |
a82a04b3 CR |
13801 | grep -v '^ *+' conftest.er1 >conftest.err |
13802 | rm -f conftest.er1 | |
13803 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13804 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13805 | (exit $ac_status); } && { | |
13806 | test -z "$ac_c_werror_flag" || | |
13807 | test ! -s conftest.err | |
13808 | } && test -s conftest$ac_exeext && { | |
13809 | test "$cross_compiling" = yes || | |
13810 | $as_test_x conftest$ac_exeext | |
13811 | }; then | |
545f34cf CR |
13812 | eval "$as_ac_var=yes" |
13813 | else | |
dd4f3dd8 | 13814 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
13815 | sed 's/^/| /' conftest.$ac_ext >&5 |
13816 | ||
d3ad40de | 13817 | eval "$as_ac_var=no" |
545f34cf | 13818 | fi |
d3ad40de | 13819 | |
dd4f3dd8 CR |
13820 | rm -rf conftest.dSYM |
13821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 13822 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 13823 | fi |
dd4f3dd8 CR |
13824 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13825 | $as_echo "$as_val"'` | |
13826 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13827 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
13828 | if test `eval 'as_val=${'$as_ac_var'} |
13829 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 13830 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 13831 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
13832 | _ACEOF |
13833 | ||
13834 | fi | |
13835 | done | |
13836 | ||
13837 | ||
13838 | ||
13839 | ||
9607141c CR |
13840 | for ac_func in getpwent getpwnam getpwuid |
13841 | do | |
dd4f3dd8 CR |
13842 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13843 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13844 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 13845 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 13846 | $as_echo_n "(cached) " >&6 |
9607141c CR |
13847 | else |
13848 | cat >conftest.$ac_ext <<_ACEOF | |
13849 | /* confdefs.h. */ | |
13850 | _ACEOF | |
13851 | cat confdefs.h >>conftest.$ac_ext | |
13852 | cat >>conftest.$ac_ext <<_ACEOF | |
13853 | /* end confdefs.h. */ | |
13854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13856 | #define $ac_func innocuous_$ac_func | |
13857 | ||
13858 | /* System header to define __stub macros and hopefully few prototypes, | |
13859 | which can conflict with char $ac_func (); below. | |
13860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13861 | <limits.h> exists even on freestanding compilers. */ | |
13862 | ||
13863 | #ifdef __STDC__ | |
13864 | # include <limits.h> | |
13865 | #else | |
13866 | # include <assert.h> | |
13867 | #endif | |
13868 | ||
13869 | #undef $ac_func | |
13870 | ||
d3ad40de CR |
13871 | /* Override any GCC internal prototype to avoid an error. |
13872 | Use char because int might match the return type of a GCC | |
13873 | builtin and then its argument prototype would still apply. */ | |
9607141c CR |
13874 | #ifdef __cplusplus |
13875 | extern "C" | |
9607141c | 13876 | #endif |
9607141c CR |
13877 | char $ac_func (); |
13878 | /* The GNU C library defines this for functions which it implements | |
13879 | to always fail with ENOSYS. Some functions are actually named | |
13880 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13881 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9607141c | 13882 | choke me |
9607141c CR |
13883 | #endif |
13884 | ||
13885 | int | |
13886 | main () | |
13887 | { | |
d3ad40de | 13888 | return $ac_func (); |
9607141c CR |
13889 | ; |
13890 | return 0; | |
13891 | } | |
13892 | _ACEOF | |
13893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
13894 | if { (ac_try="$ac_link" |
13895 | case "(($ac_try" in | |
13896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13897 | *) ac_try_echo=$ac_try;; | |
13898 | esac | |
dd4f3dd8 CR |
13899 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13900 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 13901 | (eval "$ac_link") 2>conftest.er1 |
9607141c CR |
13902 | ac_status=$? |
13903 | grep -v '^ *+' conftest.er1 >conftest.err | |
13904 | rm -f conftest.er1 | |
13905 | cat conftest.err >&5 | |
dd4f3dd8 CR |
13906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13907 | (exit $ac_status); } && { | |
13908 | test -z "$ac_c_werror_flag" || | |
13909 | test ! -s conftest.err | |
13910 | } && test -s conftest$ac_exeext && { | |
13911 | test "$cross_compiling" = yes || | |
13912 | $as_test_x conftest$ac_exeext | |
13913 | }; then | |
09767ff0 CR |
13914 | eval "$as_ac_var=yes" |
13915 | else | |
dd4f3dd8 | 13916 | $as_echo "$as_me: failed program was:" >&5 |
09767ff0 CR |
13917 | sed 's/^/| /' conftest.$ac_ext >&5 |
13918 | ||
13919 | eval "$as_ac_var=no" | |
13920 | fi | |
13921 | ||
dd4f3dd8 CR |
13922 | rm -rf conftest.dSYM |
13923 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
09767ff0 CR |
13924 | conftest$ac_exeext conftest.$ac_ext |
13925 | fi | |
dd4f3dd8 CR |
13926 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13927 | $as_echo "$as_val"'` | |
13928 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13929 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
13930 | if test `eval 'as_val=${'$as_ac_var'} |
13931 | $as_echo "$as_val"'` = yes; then | |
09767ff0 | 13932 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 13933 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9607141c CR |
13934 | _ACEOF |
13935 | ||
13936 | fi | |
13937 | done | |
13938 | ||
13939 | ||
13940 | ||
13941 | ||
545f34cf CR |
13942 | |
13943 | ||
13944 | ||
13945 | ||
301e2142 | 13946 | |
9607141c | 13947 | for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr |
545f34cf | 13948 | do |
dd4f3dd8 CR |
13949 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13950 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13951 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 13952 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 13953 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
13954 | else |
13955 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
13956 | /* confdefs.h. */ |
13957 | _ACEOF | |
13958 | cat confdefs.h >>conftest.$ac_ext | |
13959 | cat >>conftest.$ac_ext <<_ACEOF | |
13960 | /* end confdefs.h. */ | |
a82a04b3 CR |
13961 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13962 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13963 | #define $ac_func innocuous_$ac_func | |
13964 | ||
545f34cf CR |
13965 | /* System header to define __stub macros and hopefully few prototypes, |
13966 | which can conflict with char $ac_func (); below. | |
13967 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13968 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 13969 | |
545f34cf CR |
13970 | #ifdef __STDC__ |
13971 | # include <limits.h> | |
13972 | #else | |
13973 | # include <assert.h> | |
13974 | #endif | |
a82a04b3 CR |
13975 | |
13976 | #undef $ac_func | |
13977 | ||
d3ad40de CR |
13978 | /* Override any GCC internal prototype to avoid an error. |
13979 | Use char because int might match the return type of a GCC | |
13980 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
13981 | #ifdef __cplusplus |
13982 | extern "C" | |
545f34cf | 13983 | #endif |
545f34cf CR |
13984 | char $ac_func (); |
13985 | /* The GNU C library defines this for functions which it implements | |
13986 | to always fail with ENOSYS. Some functions are actually named | |
13987 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 13988 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 13989 | choke me |
545f34cf CR |
13990 | #endif |
13991 | ||
13992 | int | |
13993 | main () | |
13994 | { | |
d3ad40de | 13995 | return $ac_func (); |
545f34cf CR |
13996 | ; |
13997 | return 0; | |
13998 | } | |
13999 | _ACEOF | |
14000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
14001 | if { (ac_try="$ac_link" |
14002 | case "(($ac_try" in | |
14003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14004 | *) ac_try_echo=$ac_try;; | |
14005 | esac | |
dd4f3dd8 CR |
14006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14007 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14008 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 14009 | ac_status=$? |
a82a04b3 CR |
14010 | grep -v '^ *+' conftest.er1 >conftest.err |
14011 | rm -f conftest.er1 | |
14012 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14014 | (exit $ac_status); } && { | |
14015 | test -z "$ac_c_werror_flag" || | |
14016 | test ! -s conftest.err | |
14017 | } && test -s conftest$ac_exeext && { | |
14018 | test "$cross_compiling" = yes || | |
14019 | $as_test_x conftest$ac_exeext | |
14020 | }; then | |
545f34cf CR |
14021 | eval "$as_ac_var=yes" |
14022 | else | |
dd4f3dd8 | 14023 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14024 | sed 's/^/| /' conftest.$ac_ext >&5 |
14025 | ||
d3ad40de | 14026 | eval "$as_ac_var=no" |
545f34cf | 14027 | fi |
d3ad40de | 14028 | |
dd4f3dd8 CR |
14029 | rm -rf conftest.dSYM |
14030 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 14031 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 14032 | fi |
dd4f3dd8 CR |
14033 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14034 | $as_echo "$as_val"'` | |
14035 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14036 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
14037 | if test `eval 'as_val=${'$as_ac_var'} |
14038 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 14039 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 14040 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
14041 | _ACEOF |
14042 | ||
14043 | else | |
d3ad40de | 14044 | case " $LIB@&t@OBJS " in |
a82a04b3 | 14045 | *" $ac_func.$ac_objext "* ) ;; |
d3ad40de CR |
14046 | *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" |
14047 | ;; | |
a82a04b3 CR |
14048 | esac |
14049 | ||
545f34cf CR |
14050 | fi |
14051 | done | |
14052 | ||
14053 | ||
14054 | ||
14055 | ||
14056 | ||
14057 | ||
14058 | ||
14059 | ||
14060 | ||
14061 | for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax | |
14062 | do | |
dd4f3dd8 CR |
14063 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14064 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14065 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 14066 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 14067 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14068 | else |
14069 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14070 | /* confdefs.h. */ |
14071 | _ACEOF | |
14072 | cat confdefs.h >>conftest.$ac_ext | |
14073 | cat >>conftest.$ac_ext <<_ACEOF | |
14074 | /* end confdefs.h. */ | |
a82a04b3 CR |
14075 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14077 | #define $ac_func innocuous_$ac_func | |
14078 | ||
545f34cf CR |
14079 | /* System header to define __stub macros and hopefully few prototypes, |
14080 | which can conflict with char $ac_func (); below. | |
14081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14082 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 14083 | |
545f34cf CR |
14084 | #ifdef __STDC__ |
14085 | # include <limits.h> | |
14086 | #else | |
14087 | # include <assert.h> | |
14088 | #endif | |
a82a04b3 CR |
14089 | |
14090 | #undef $ac_func | |
14091 | ||
d3ad40de CR |
14092 | /* Override any GCC internal prototype to avoid an error. |
14093 | Use char because int might match the return type of a GCC | |
14094 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
14095 | #ifdef __cplusplus |
14096 | extern "C" | |
545f34cf | 14097 | #endif |
545f34cf CR |
14098 | char $ac_func (); |
14099 | /* The GNU C library defines this for functions which it implements | |
14100 | to always fail with ENOSYS. Some functions are actually named | |
14101 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 14102 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 14103 | choke me |
545f34cf CR |
14104 | #endif |
14105 | ||
14106 | int | |
14107 | main () | |
14108 | { | |
d3ad40de | 14109 | return $ac_func (); |
545f34cf CR |
14110 | ; |
14111 | return 0; | |
14112 | } | |
14113 | _ACEOF | |
14114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
14115 | if { (ac_try="$ac_link" |
14116 | case "(($ac_try" in | |
14117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14118 | *) ac_try_echo=$ac_try;; | |
14119 | esac | |
dd4f3dd8 CR |
14120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14121 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14122 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 14123 | ac_status=$? |
a82a04b3 CR |
14124 | grep -v '^ *+' conftest.er1 >conftest.err |
14125 | rm -f conftest.er1 | |
14126 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14128 | (exit $ac_status); } && { | |
14129 | test -z "$ac_c_werror_flag" || | |
14130 | test ! -s conftest.err | |
14131 | } && test -s conftest$ac_exeext && { | |
14132 | test "$cross_compiling" = yes || | |
14133 | $as_test_x conftest$ac_exeext | |
14134 | }; then | |
2e4498b3 CR |
14135 | eval "$as_ac_var=yes" |
14136 | else | |
dd4f3dd8 | 14137 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
14138 | sed 's/^/| /' conftest.$ac_ext >&5 |
14139 | ||
14140 | eval "$as_ac_var=no" | |
14141 | fi | |
14142 | ||
dd4f3dd8 CR |
14143 | rm -rf conftest.dSYM |
14144 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
2e4498b3 | 14145 | conftest$ac_exeext conftest.$ac_ext |
09767ff0 | 14146 | fi |
dd4f3dd8 CR |
14147 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14148 | $as_echo "$as_val"'` | |
14149 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14150 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
14151 | if test `eval 'as_val=${'$as_ac_var'} |
14152 | $as_echo "$as_val"'` = yes; then | |
09767ff0 | 14153 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 14154 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
09767ff0 CR |
14155 | _ACEOF |
14156 | ||
14157 | else | |
14158 | case " $LIB@&t@OBJS " in | |
14159 | *" $ac_func.$ac_objext "* ) ;; | |
14160 | *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" | |
14161 | ;; | |
14162 | esac | |
14163 | ||
14164 | fi | |
14165 | done | |
14166 | ||
14167 | ||
14168 | ||
14169 | for ac_func in fdprintf | |
14170 | do | |
dd4f3dd8 CR |
14171 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14172 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14173 | $as_echo_n "checking for $ac_func... " >&6; } | |
09767ff0 | 14174 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 14175 | $as_echo_n "(cached) " >&6 |
09767ff0 CR |
14176 | else |
14177 | cat >conftest.$ac_ext <<_ACEOF | |
14178 | /* confdefs.h. */ | |
14179 | _ACEOF | |
14180 | cat confdefs.h >>conftest.$ac_ext | |
14181 | cat >>conftest.$ac_ext <<_ACEOF | |
14182 | /* end confdefs.h. */ | |
14183 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14185 | #define $ac_func innocuous_$ac_func | |
14186 | ||
14187 | /* System header to define __stub macros and hopefully few prototypes, | |
14188 | which can conflict with char $ac_func (); below. | |
14189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14190 | <limits.h> exists even on freestanding compilers. */ | |
14191 | ||
14192 | #ifdef __STDC__ | |
14193 | # include <limits.h> | |
14194 | #else | |
14195 | # include <assert.h> | |
14196 | #endif | |
14197 | ||
14198 | #undef $ac_func | |
14199 | ||
14200 | /* Override any GCC internal prototype to avoid an error. | |
14201 | Use char because int might match the return type of a GCC | |
14202 | builtin and then its argument prototype would still apply. */ | |
14203 | #ifdef __cplusplus | |
14204 | extern "C" | |
14205 | #endif | |
14206 | char $ac_func (); | |
14207 | /* The GNU C library defines this for functions which it implements | |
14208 | to always fail with ENOSYS. Some functions are actually named | |
14209 | something starting with __ and the normal name is an alias. */ | |
14210 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
14211 | choke me | |
14212 | #endif | |
14213 | ||
14214 | int | |
14215 | main () | |
14216 | { | |
14217 | return $ac_func (); | |
14218 | ; | |
14219 | return 0; | |
14220 | } | |
14221 | _ACEOF | |
14222 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14223 | if { (ac_try="$ac_link" | |
14224 | case "(($ac_try" in | |
14225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14226 | *) ac_try_echo=$ac_try;; | |
14227 | esac | |
dd4f3dd8 CR |
14228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14229 | $as_echo "$ac_try_echo") >&5 | |
09767ff0 CR |
14230 | (eval "$ac_link") 2>conftest.er1 |
14231 | ac_status=$? | |
14232 | grep -v '^ *+' conftest.er1 >conftest.err | |
14233 | rm -f conftest.er1 | |
14234 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14236 | (exit $ac_status); } && { | |
14237 | test -z "$ac_c_werror_flag" || | |
14238 | test ! -s conftest.err | |
14239 | } && test -s conftest$ac_exeext && { | |
14240 | test "$cross_compiling" = yes || | |
14241 | $as_test_x conftest$ac_exeext | |
14242 | }; then | |
09767ff0 CR |
14243 | eval "$as_ac_var=yes" |
14244 | else | |
dd4f3dd8 | 14245 | $as_echo "$as_me: failed program was:" >&5 |
09767ff0 CR |
14246 | sed 's/^/| /' conftest.$ac_ext >&5 |
14247 | ||
14248 | eval "$as_ac_var=no" | |
14249 | fi | |
14250 | ||
dd4f3dd8 CR |
14251 | rm -rf conftest.dSYM |
14252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 14253 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 14254 | fi |
dd4f3dd8 CR |
14255 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14256 | $as_echo "$as_val"'` | |
14257 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14258 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
14259 | if test `eval 'as_val=${'$as_ac_var'} |
14260 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 14261 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 14262 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
14263 | _ACEOF |
14264 | ||
14265 | else | |
d3ad40de | 14266 | case " $LIB@&t@OBJS " in |
a82a04b3 | 14267 | *" $ac_func.$ac_objext "* ) ;; |
d3ad40de CR |
14268 | *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" |
14269 | ;; | |
a82a04b3 CR |
14270 | esac |
14271 | ||
545f34cf CR |
14272 | fi |
14273 | done | |
14274 | ||
14275 | ||
14276 | ||
dd4f3dd8 CR |
14277 | { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5 |
14278 | $as_echo_n "checking whether confstr is declared... " >&6; } | |
545f34cf | 14279 | if test "${ac_cv_have_decl_confstr+set}" = set; then |
dd4f3dd8 | 14280 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14281 | else |
14282 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14283 | /* confdefs.h. */ |
14284 | _ACEOF | |
14285 | cat confdefs.h >>conftest.$ac_ext | |
14286 | cat >>conftest.$ac_ext <<_ACEOF | |
14287 | /* end confdefs.h. */ | |
14288 | $ac_includes_default | |
14289 | int | |
14290 | main () | |
14291 | { | |
14292 | #ifndef confstr | |
dd4f3dd8 | 14293 | (void) confstr; |
545f34cf CR |
14294 | #endif |
14295 | ||
14296 | ; | |
14297 | return 0; | |
14298 | } | |
14299 | _ACEOF | |
14300 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14301 | if { (ac_try="$ac_compile" |
14302 | case "(($ac_try" in | |
14303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14304 | *) ac_try_echo=$ac_try;; | |
14305 | esac | |
dd4f3dd8 CR |
14306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14307 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14308 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 14309 | ac_status=$? |
a82a04b3 CR |
14310 | grep -v '^ *+' conftest.er1 >conftest.err |
14311 | rm -f conftest.er1 | |
14312 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14314 | (exit $ac_status); } && { | |
14315 | test -z "$ac_c_werror_flag" || | |
14316 | test ! -s conftest.err | |
14317 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
14318 | ac_cv_have_decl_confstr=yes |
14319 | else | |
dd4f3dd8 | 14320 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14321 | sed 's/^/| /' conftest.$ac_ext >&5 |
14322 | ||
d3ad40de | 14323 | ac_cv_have_decl_confstr=no |
545f34cf | 14324 | fi |
d3ad40de CR |
14325 | |
14326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 14327 | fi |
dd4f3dd8 CR |
14328 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5 |
14329 | $as_echo "$ac_cv_have_decl_confstr" >&6; } | |
76af2125 | 14330 | if test $ac_cv_have_decl_confstr = yes; then |
545f34cf CR |
14331 | |
14332 | cat >>confdefs.h <<_ACEOF | |
14333 | @%:@define HAVE_DECL_CONFSTR 1 | |
14334 | _ACEOF | |
14335 | ||
14336 | ||
14337 | else | |
14338 | cat >>confdefs.h <<_ACEOF | |
14339 | @%:@define HAVE_DECL_CONFSTR 0 | |
14340 | _ACEOF | |
14341 | ||
14342 | ||
14343 | fi | |
14344 | ||
14345 | ||
dd4f3dd8 CR |
14346 | { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5 |
14347 | $as_echo_n "checking whether printf is declared... " >&6; } | |
545f34cf | 14348 | if test "${ac_cv_have_decl_printf+set}" = set; then |
dd4f3dd8 | 14349 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14350 | else |
14351 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14352 | /* confdefs.h. */ |
14353 | _ACEOF | |
14354 | cat confdefs.h >>conftest.$ac_ext | |
14355 | cat >>conftest.$ac_ext <<_ACEOF | |
14356 | /* end confdefs.h. */ | |
14357 | $ac_includes_default | |
14358 | int | |
14359 | main () | |
14360 | { | |
14361 | #ifndef printf | |
dd4f3dd8 | 14362 | (void) printf; |
545f34cf CR |
14363 | #endif |
14364 | ||
14365 | ; | |
14366 | return 0; | |
14367 | } | |
14368 | _ACEOF | |
14369 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14370 | if { (ac_try="$ac_compile" |
14371 | case "(($ac_try" in | |
14372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14373 | *) ac_try_echo=$ac_try;; | |
14374 | esac | |
dd4f3dd8 CR |
14375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14376 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14377 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 14378 | ac_status=$? |
a82a04b3 CR |
14379 | grep -v '^ *+' conftest.er1 >conftest.err |
14380 | rm -f conftest.er1 | |
14381 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14383 | (exit $ac_status); } && { | |
14384 | test -z "$ac_c_werror_flag" || | |
14385 | test ! -s conftest.err | |
14386 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
14387 | ac_cv_have_decl_printf=yes |
14388 | else | |
dd4f3dd8 | 14389 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14390 | sed 's/^/| /' conftest.$ac_ext >&5 |
14391 | ||
d3ad40de | 14392 | ac_cv_have_decl_printf=no |
545f34cf | 14393 | fi |
d3ad40de CR |
14394 | |
14395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 14396 | fi |
dd4f3dd8 CR |
14397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5 |
14398 | $as_echo "$ac_cv_have_decl_printf" >&6; } | |
76af2125 | 14399 | if test $ac_cv_have_decl_printf = yes; then |
545f34cf CR |
14400 | |
14401 | cat >>confdefs.h <<_ACEOF | |
14402 | @%:@define HAVE_DECL_PRINTF 1 | |
14403 | _ACEOF | |
14404 | ||
14405 | ||
14406 | else | |
14407 | cat >>confdefs.h <<_ACEOF | |
14408 | @%:@define HAVE_DECL_PRINTF 0 | |
14409 | _ACEOF | |
14410 | ||
14411 | ||
14412 | fi | |
14413 | ||
14414 | ||
dd4f3dd8 CR |
14415 | { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 |
14416 | $as_echo_n "checking whether sbrk is declared... " >&6; } | |
545f34cf | 14417 | if test "${ac_cv_have_decl_sbrk+set}" = set; then |
dd4f3dd8 | 14418 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14419 | else |
14420 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14421 | /* confdefs.h. */ |
14422 | _ACEOF | |
14423 | cat confdefs.h >>conftest.$ac_ext | |
14424 | cat >>conftest.$ac_ext <<_ACEOF | |
14425 | /* end confdefs.h. */ | |
14426 | $ac_includes_default | |
14427 | int | |
14428 | main () | |
14429 | { | |
14430 | #ifndef sbrk | |
dd4f3dd8 | 14431 | (void) sbrk; |
545f34cf CR |
14432 | #endif |
14433 | ||
14434 | ; | |
14435 | return 0; | |
14436 | } | |
14437 | _ACEOF | |
14438 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14439 | if { (ac_try="$ac_compile" |
14440 | case "(($ac_try" in | |
14441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14442 | *) ac_try_echo=$ac_try;; | |
14443 | esac | |
dd4f3dd8 CR |
14444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14445 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14446 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 14447 | ac_status=$? |
a82a04b3 CR |
14448 | grep -v '^ *+' conftest.er1 >conftest.err |
14449 | rm -f conftest.er1 | |
14450 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14452 | (exit $ac_status); } && { | |
14453 | test -z "$ac_c_werror_flag" || | |
14454 | test ! -s conftest.err | |
14455 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
14456 | ac_cv_have_decl_sbrk=yes |
14457 | else | |
dd4f3dd8 | 14458 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14459 | sed 's/^/| /' conftest.$ac_ext >&5 |
14460 | ||
d3ad40de | 14461 | ac_cv_have_decl_sbrk=no |
545f34cf | 14462 | fi |
d3ad40de CR |
14463 | |
14464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 14465 | fi |
dd4f3dd8 CR |
14466 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
14467 | $as_echo "$ac_cv_have_decl_sbrk" >&6; } | |
76af2125 | 14468 | if test $ac_cv_have_decl_sbrk = yes; then |
545f34cf CR |
14469 | |
14470 | cat >>confdefs.h <<_ACEOF | |
14471 | @%:@define HAVE_DECL_SBRK 1 | |
14472 | _ACEOF | |
14473 | ||
14474 | ||
14475 | else | |
14476 | cat >>confdefs.h <<_ACEOF | |
14477 | @%:@define HAVE_DECL_SBRK 0 | |
14478 | _ACEOF | |
14479 | ||
14480 | ||
14481 | fi | |
14482 | ||
14483 | ||
dd4f3dd8 CR |
14484 | { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5 |
14485 | $as_echo_n "checking whether setregid is declared... " >&6; } | |
ac18b312 | 14486 | if test "${ac_cv_have_decl_setregid+set}" = set; then |
dd4f3dd8 | 14487 | $as_echo_n "(cached) " >&6 |
ac18b312 CR |
14488 | else |
14489 | cat >conftest.$ac_ext <<_ACEOF | |
14490 | /* confdefs.h. */ | |
14491 | _ACEOF | |
14492 | cat confdefs.h >>conftest.$ac_ext | |
14493 | cat >>conftest.$ac_ext <<_ACEOF | |
14494 | /* end confdefs.h. */ | |
14495 | $ac_includes_default | |
14496 | int | |
14497 | main () | |
14498 | { | |
14499 | #ifndef setregid | |
dd4f3dd8 | 14500 | (void) setregid; |
ac18b312 CR |
14501 | #endif |
14502 | ||
14503 | ; | |
14504 | return 0; | |
14505 | } | |
14506 | _ACEOF | |
14507 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14508 | if { (ac_try="$ac_compile" |
14509 | case "(($ac_try" in | |
14510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14511 | *) ac_try_echo=$ac_try;; | |
14512 | esac | |
dd4f3dd8 CR |
14513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14514 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14515 | (eval "$ac_compile") 2>conftest.er1 |
ac18b312 CR |
14516 | ac_status=$? |
14517 | grep -v '^ *+' conftest.er1 >conftest.err | |
14518 | rm -f conftest.er1 | |
14519 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14521 | (exit $ac_status); } && { | |
14522 | test -z "$ac_c_werror_flag" || | |
14523 | test ! -s conftest.err | |
14524 | } && test -s conftest.$ac_objext; then | |
ac18b312 CR |
14525 | ac_cv_have_decl_setregid=yes |
14526 | else | |
dd4f3dd8 | 14527 | $as_echo "$as_me: failed program was:" >&5 |
ac18b312 CR |
14528 | sed 's/^/| /' conftest.$ac_ext >&5 |
14529 | ||
d3ad40de | 14530 | ac_cv_have_decl_setregid=no |
ac18b312 | 14531 | fi |
d3ad40de CR |
14532 | |
14533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ac18b312 | 14534 | fi |
dd4f3dd8 CR |
14535 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5 |
14536 | $as_echo "$ac_cv_have_decl_setregid" >&6; } | |
76af2125 | 14537 | if test $ac_cv_have_decl_setregid = yes; then |
ac18b312 CR |
14538 | |
14539 | cat >>confdefs.h <<_ACEOF | |
14540 | @%:@define HAVE_DECL_SETREGID 1 | |
14541 | _ACEOF | |
14542 | ||
14543 | ||
14544 | else | |
14545 | cat >>confdefs.h <<_ACEOF | |
14546 | @%:@define HAVE_DECL_SETREGID 0 | |
14547 | _ACEOF | |
14548 | ||
14549 | ||
14550 | fi | |
14551 | ||
14552 | ||
dd4f3dd8 CR |
14553 | { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5 |
14554 | $as_echo_n "checking whether strcpy is declared... " >&6; } | |
545f34cf | 14555 | if test "${ac_cv_have_decl_strcpy+set}" = set; then |
dd4f3dd8 | 14556 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14557 | else |
14558 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14559 | /* confdefs.h. */ |
14560 | _ACEOF | |
14561 | cat confdefs.h >>conftest.$ac_ext | |
14562 | cat >>conftest.$ac_ext <<_ACEOF | |
14563 | /* end confdefs.h. */ | |
14564 | $ac_includes_default | |
14565 | int | |
14566 | main () | |
14567 | { | |
14568 | #ifndef strcpy | |
dd4f3dd8 | 14569 | (void) strcpy; |
545f34cf CR |
14570 | #endif |
14571 | ||
14572 | ; | |
14573 | return 0; | |
14574 | } | |
14575 | _ACEOF | |
14576 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14577 | if { (ac_try="$ac_compile" |
14578 | case "(($ac_try" in | |
14579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14580 | *) ac_try_echo=$ac_try;; | |
14581 | esac | |
dd4f3dd8 CR |
14582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14583 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14584 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 14585 | ac_status=$? |
a82a04b3 CR |
14586 | grep -v '^ *+' conftest.er1 >conftest.err |
14587 | rm -f conftest.er1 | |
14588 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14590 | (exit $ac_status); } && { | |
14591 | test -z "$ac_c_werror_flag" || | |
14592 | test ! -s conftest.err | |
14593 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
14594 | ac_cv_have_decl_strcpy=yes |
14595 | else | |
dd4f3dd8 | 14596 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14597 | sed 's/^/| /' conftest.$ac_ext >&5 |
14598 | ||
d3ad40de | 14599 | ac_cv_have_decl_strcpy=no |
545f34cf | 14600 | fi |
d3ad40de CR |
14601 | |
14602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 14603 | fi |
dd4f3dd8 CR |
14604 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5 |
14605 | $as_echo "$ac_cv_have_decl_strcpy" >&6; } | |
76af2125 | 14606 | if test $ac_cv_have_decl_strcpy = yes; then |
545f34cf CR |
14607 | |
14608 | cat >>confdefs.h <<_ACEOF | |
14609 | @%:@define HAVE_DECL_STRCPY 1 | |
14610 | _ACEOF | |
14611 | ||
14612 | ||
14613 | else | |
14614 | cat >>confdefs.h <<_ACEOF | |
14615 | @%:@define HAVE_DECL_STRCPY 0 | |
14616 | _ACEOF | |
14617 | ||
14618 | ||
14619 | fi | |
14620 | ||
14621 | ||
dd4f3dd8 CR |
14622 | { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5 |
14623 | $as_echo_n "checking whether strsignal is declared... " >&6; } | |
545f34cf | 14624 | if test "${ac_cv_have_decl_strsignal+set}" = set; then |
dd4f3dd8 | 14625 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14626 | else |
14627 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14628 | /* confdefs.h. */ |
14629 | _ACEOF | |
14630 | cat confdefs.h >>conftest.$ac_ext | |
14631 | cat >>conftest.$ac_ext <<_ACEOF | |
14632 | /* end confdefs.h. */ | |
14633 | $ac_includes_default | |
14634 | int | |
14635 | main () | |
14636 | { | |
14637 | #ifndef strsignal | |
dd4f3dd8 | 14638 | (void) strsignal; |
545f34cf CR |
14639 | #endif |
14640 | ||
14641 | ; | |
14642 | return 0; | |
14643 | } | |
14644 | _ACEOF | |
14645 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14646 | if { (ac_try="$ac_compile" |
14647 | case "(($ac_try" in | |
14648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14649 | *) ac_try_echo=$ac_try;; | |
14650 | esac | |
dd4f3dd8 CR |
14651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14652 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14653 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 14654 | ac_status=$? |
a82a04b3 CR |
14655 | grep -v '^ *+' conftest.er1 >conftest.err |
14656 | rm -f conftest.er1 | |
14657 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14659 | (exit $ac_status); } && { | |
14660 | test -z "$ac_c_werror_flag" || | |
14661 | test ! -s conftest.err | |
14662 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
14663 | ac_cv_have_decl_strsignal=yes |
14664 | else | |
dd4f3dd8 | 14665 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14666 | sed 's/^/| /' conftest.$ac_ext >&5 |
14667 | ||
d3ad40de | 14668 | ac_cv_have_decl_strsignal=no |
545f34cf | 14669 | fi |
d3ad40de CR |
14670 | |
14671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 14672 | fi |
dd4f3dd8 CR |
14673 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5 |
14674 | $as_echo "$ac_cv_have_decl_strsignal" >&6; } | |
76af2125 | 14675 | if test $ac_cv_have_decl_strsignal = yes; then |
545f34cf CR |
14676 | |
14677 | cat >>confdefs.h <<_ACEOF | |
14678 | @%:@define HAVE_DECL_STRSIGNAL 1 | |
14679 | _ACEOF | |
14680 | ||
14681 | ||
14682 | else | |
14683 | cat >>confdefs.h <<_ACEOF | |
14684 | @%:@define HAVE_DECL_STRSIGNAL 0 | |
14685 | _ACEOF | |
14686 | ||
14687 | ||
14688 | fi | |
14689 | ||
14690 | ||
14691 | ||
dd4f3dd8 CR |
14692 | { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5 |
14693 | $as_echo_n "checking whether strtold is declared... " >&6; } | |
545f34cf | 14694 | if test "${ac_cv_have_decl_strtold+set}" = set; then |
dd4f3dd8 | 14695 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14696 | else |
14697 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14698 | /* confdefs.h. */ |
14699 | _ACEOF | |
14700 | cat confdefs.h >>conftest.$ac_ext | |
14701 | cat >>conftest.$ac_ext <<_ACEOF | |
14702 | /* end confdefs.h. */ | |
14703 | $ac_includes_default | |
14704 | int | |
14705 | main () | |
14706 | { | |
14707 | #ifndef strtold | |
dd4f3dd8 | 14708 | (void) strtold; |
545f34cf CR |
14709 | #endif |
14710 | ||
14711 | ; | |
14712 | return 0; | |
14713 | } | |
14714 | _ACEOF | |
14715 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14716 | if { (ac_try="$ac_compile" |
14717 | case "(($ac_try" in | |
14718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14719 | *) ac_try_echo=$ac_try;; | |
14720 | esac | |
dd4f3dd8 CR |
14721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14722 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14723 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 14724 | ac_status=$? |
a82a04b3 CR |
14725 | grep -v '^ *+' conftest.er1 >conftest.err |
14726 | rm -f conftest.er1 | |
14727 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14729 | (exit $ac_status); } && { | |
14730 | test -z "$ac_c_werror_flag" || | |
14731 | test ! -s conftest.err | |
14732 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
14733 | ac_cv_have_decl_strtold=yes |
14734 | else | |
dd4f3dd8 | 14735 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14736 | sed 's/^/| /' conftest.$ac_ext >&5 |
14737 | ||
d3ad40de | 14738 | ac_cv_have_decl_strtold=no |
545f34cf | 14739 | fi |
d3ad40de CR |
14740 | |
14741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 14742 | fi |
dd4f3dd8 CR |
14743 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5 |
14744 | $as_echo "$ac_cv_have_decl_strtold" >&6; } | |
76af2125 | 14745 | if test $ac_cv_have_decl_strtold = yes; then |
545f34cf CR |
14746 | |
14747 | cat >>confdefs.h <<_ACEOF | |
14748 | @%:@define HAVE_DECL_STRTOLD 1 | |
14749 | _ACEOF | |
14750 | ||
14751 | ||
dd4f3dd8 CR |
14752 | { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5 |
14753 | $as_echo_n "checking for broken strtold... " >&6; } | |
545f34cf | 14754 | if test "${bash_cv_strtold_broken+set}" = set; then |
dd4f3dd8 | 14755 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14756 | else |
14757 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14758 | /* confdefs.h. */ |
14759 | _ACEOF | |
14760 | cat confdefs.h >>conftest.$ac_ext | |
14761 | cat >>conftest.$ac_ext <<_ACEOF | |
14762 | /* end confdefs.h. */ | |
14763 | #include <stdlib.h> | |
14764 | int | |
14765 | main () | |
14766 | { | |
14767 | int main() { long double r; char *foo, bar; r = strtold(foo, &bar);} | |
14768 | ; | |
14769 | return 0; | |
14770 | } | |
14771 | _ACEOF | |
14772 | rm -f conftest.$ac_objext | |
d3ad40de CR |
14773 | if { (ac_try="$ac_compile" |
14774 | case "(($ac_try" in | |
14775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14776 | *) ac_try_echo=$ac_try;; | |
14777 | esac | |
dd4f3dd8 CR |
14778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14779 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14780 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 14781 | ac_status=$? |
a82a04b3 CR |
14782 | grep -v '^ *+' conftest.er1 >conftest.err |
14783 | rm -f conftest.er1 | |
14784 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14786 | (exit $ac_status); } && { | |
14787 | test -z "$ac_c_werror_flag" || | |
14788 | test ! -s conftest.err | |
14789 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
14790 | bash_cv_strtold_broken=no |
14791 | else | |
dd4f3dd8 | 14792 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14793 | sed 's/^/| /' conftest.$ac_ext >&5 |
14794 | ||
d3ad40de | 14795 | bash_cv_strtold_broken=yes |
545f34cf | 14796 | fi |
d3ad40de CR |
14797 | |
14798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
14799 | |
14800 | ||
14801 | fi | |
14802 | ||
dd4f3dd8 CR |
14803 | { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5 |
14804 | $as_echo "$bash_cv_strtold_broken" >&6; } | |
545f34cf CR |
14805 | if test "$bash_cv_strtold_broken" = "yes" ; then |
14806 | cat >>confdefs.h <<\_ACEOF | |
14807 | @%:@define STRTOLD_BROKEN 1 | |
14808 | _ACEOF | |
14809 | ||
14810 | fi | |
14811 | ||
14812 | else | |
14813 | cat >>confdefs.h <<_ACEOF | |
14814 | @%:@define HAVE_DECL_STRTOLD 0 | |
14815 | _ACEOF | |
14816 | ||
14817 | ||
14818 | fi | |
14819 | ||
14820 | ||
14821 | ||
14822 | ||
14823 | ||
14824 | ||
14825 | ||
dd4f3dd8 CR |
14826 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5 |
14827 | $as_echo_n "checking for declaration of strtoimax... " >&6; } | |
545f34cf | 14828 | if test "${bash_cv_decl_strtoimax+set}" = set; then |
dd4f3dd8 | 14829 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14830 | else |
14831 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14832 | /* confdefs.h. */ |
14833 | _ACEOF | |
14834 | cat confdefs.h >>conftest.$ac_ext | |
14835 | cat >>conftest.$ac_ext <<_ACEOF | |
14836 | /* end confdefs.h. */ | |
14837 | ||
14838 | #if STDC_HEADERS | |
14839 | # include <stdlib.h> | |
14840 | #endif | |
14841 | #if HAVE_INTTYPES_H | |
14842 | # include <inttypes.h> | |
14843 | #endif | |
14844 | ||
14845 | int | |
14846 | main () | |
14847 | { | |
14848 | return !strtoimax; | |
14849 | ; | |
14850 | return 0; | |
14851 | } | |
14852 | _ACEOF | |
14853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
14854 | if { (ac_try="$ac_link" |
14855 | case "(($ac_try" in | |
14856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14857 | *) ac_try_echo=$ac_try;; | |
14858 | esac | |
dd4f3dd8 CR |
14859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14860 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14861 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 14862 | ac_status=$? |
a82a04b3 CR |
14863 | grep -v '^ *+' conftest.er1 >conftest.err |
14864 | rm -f conftest.er1 | |
14865 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14867 | (exit $ac_status); } && { | |
14868 | test -z "$ac_c_werror_flag" || | |
14869 | test ! -s conftest.err | |
14870 | } && test -s conftest$ac_exeext && { | |
14871 | test "$cross_compiling" = yes || | |
14872 | $as_test_x conftest$ac_exeext | |
14873 | }; then | |
545f34cf CR |
14874 | bash_cv_decl_strtoimax=yes |
14875 | else | |
dd4f3dd8 | 14876 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14877 | sed 's/^/| /' conftest.$ac_ext >&5 |
14878 | ||
d3ad40de | 14879 | bash_cv_decl_strtoimax=no |
545f34cf | 14880 | fi |
d3ad40de | 14881 | |
dd4f3dd8 CR |
14882 | rm -rf conftest.dSYM |
14883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 14884 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 14885 | fi |
dd4f3dd8 CR |
14886 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5 |
14887 | $as_echo "$bash_cv_decl_strtoimax" >&6; } | |
545f34cf CR |
14888 | bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14889 | if test $bash_cv_decl_strtoimax = yes; then | |
14890 | cat >>confdefs.h <<_ACEOF | |
14891 | @%:@define $bash_tr_func 1 | |
14892 | _ACEOF | |
14893 | ||
14894 | else | |
14895 | cat >>confdefs.h <<_ACEOF | |
14896 | @%:@define $bash_tr_func 0 | |
14897 | _ACEOF | |
14898 | ||
14899 | fi | |
14900 | ||
14901 | ||
14902 | ||
14903 | ||
dd4f3dd8 CR |
14904 | { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5 |
14905 | $as_echo_n "checking for declaration of strtol... " >&6; } | |
545f34cf | 14906 | if test "${bash_cv_decl_strtol+set}" = set; then |
dd4f3dd8 | 14907 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14908 | else |
14909 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14910 | /* confdefs.h. */ |
14911 | _ACEOF | |
14912 | cat confdefs.h >>conftest.$ac_ext | |
14913 | cat >>conftest.$ac_ext <<_ACEOF | |
14914 | /* end confdefs.h. */ | |
14915 | ||
14916 | #if STDC_HEADERS | |
14917 | # include <stdlib.h> | |
14918 | #endif | |
14919 | #if HAVE_INTTYPES_H | |
14920 | # include <inttypes.h> | |
14921 | #endif | |
14922 | ||
14923 | int | |
14924 | main () | |
14925 | { | |
14926 | return !strtol; | |
14927 | ; | |
14928 | return 0; | |
14929 | } | |
14930 | _ACEOF | |
14931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
14932 | if { (ac_try="$ac_link" |
14933 | case "(($ac_try" in | |
14934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14935 | *) ac_try_echo=$ac_try;; | |
14936 | esac | |
dd4f3dd8 CR |
14937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14938 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 14939 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 14940 | ac_status=$? |
a82a04b3 CR |
14941 | grep -v '^ *+' conftest.er1 >conftest.err |
14942 | rm -f conftest.er1 | |
14943 | cat conftest.err >&5 | |
dd4f3dd8 CR |
14944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14945 | (exit $ac_status); } && { | |
14946 | test -z "$ac_c_werror_flag" || | |
14947 | test ! -s conftest.err | |
14948 | } && test -s conftest$ac_exeext && { | |
14949 | test "$cross_compiling" = yes || | |
14950 | $as_test_x conftest$ac_exeext | |
14951 | }; then | |
545f34cf CR |
14952 | bash_cv_decl_strtol=yes |
14953 | else | |
dd4f3dd8 | 14954 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
14955 | sed 's/^/| /' conftest.$ac_ext >&5 |
14956 | ||
d3ad40de | 14957 | bash_cv_decl_strtol=no |
545f34cf | 14958 | fi |
d3ad40de | 14959 | |
dd4f3dd8 CR |
14960 | rm -rf conftest.dSYM |
14961 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 14962 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 14963 | fi |
dd4f3dd8 CR |
14964 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5 |
14965 | $as_echo "$bash_cv_decl_strtol" >&6; } | |
545f34cf CR |
14966 | bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14967 | if test $bash_cv_decl_strtol = yes; then | |
14968 | cat >>confdefs.h <<_ACEOF | |
14969 | @%:@define $bash_tr_func 1 | |
14970 | _ACEOF | |
14971 | ||
14972 | else | |
14973 | cat >>confdefs.h <<_ACEOF | |
14974 | @%:@define $bash_tr_func 0 | |
14975 | _ACEOF | |
14976 | ||
14977 | fi | |
14978 | ||
14979 | ||
14980 | ||
14981 | ||
dd4f3dd8 CR |
14982 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5 |
14983 | $as_echo_n "checking for declaration of strtoll... " >&6; } | |
545f34cf | 14984 | if test "${bash_cv_decl_strtoll+set}" = set; then |
dd4f3dd8 | 14985 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
14986 | else |
14987 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
14988 | /* confdefs.h. */ |
14989 | _ACEOF | |
14990 | cat confdefs.h >>conftest.$ac_ext | |
14991 | cat >>conftest.$ac_ext <<_ACEOF | |
14992 | /* end confdefs.h. */ | |
14993 | ||
14994 | #if STDC_HEADERS | |
14995 | # include <stdlib.h> | |
14996 | #endif | |
14997 | #if HAVE_INTTYPES_H | |
14998 | # include <inttypes.h> | |
14999 | #endif | |
15000 | ||
15001 | int | |
15002 | main () | |
15003 | { | |
15004 | return !strtoll; | |
15005 | ; | |
15006 | return 0; | |
15007 | } | |
15008 | _ACEOF | |
15009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
15010 | if { (ac_try="$ac_link" |
15011 | case "(($ac_try" in | |
15012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15013 | *) ac_try_echo=$ac_try;; | |
15014 | esac | |
dd4f3dd8 CR |
15015 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15016 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15017 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 15018 | ac_status=$? |
a82a04b3 CR |
15019 | grep -v '^ *+' conftest.er1 >conftest.err |
15020 | rm -f conftest.er1 | |
15021 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15023 | (exit $ac_status); } && { | |
15024 | test -z "$ac_c_werror_flag" || | |
15025 | test ! -s conftest.err | |
15026 | } && test -s conftest$ac_exeext && { | |
15027 | test "$cross_compiling" = yes || | |
15028 | $as_test_x conftest$ac_exeext | |
15029 | }; then | |
545f34cf CR |
15030 | bash_cv_decl_strtoll=yes |
15031 | else | |
dd4f3dd8 | 15032 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15033 | sed 's/^/| /' conftest.$ac_ext >&5 |
15034 | ||
d3ad40de | 15035 | bash_cv_decl_strtoll=no |
545f34cf | 15036 | fi |
d3ad40de | 15037 | |
dd4f3dd8 CR |
15038 | rm -rf conftest.dSYM |
15039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 15040 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 15041 | fi |
dd4f3dd8 CR |
15042 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5 |
15043 | $as_echo "$bash_cv_decl_strtoll" >&6; } | |
545f34cf CR |
15044 | bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15045 | if test $bash_cv_decl_strtoll = yes; then | |
15046 | cat >>confdefs.h <<_ACEOF | |
15047 | @%:@define $bash_tr_func 1 | |
15048 | _ACEOF | |
15049 | ||
15050 | else | |
15051 | cat >>confdefs.h <<_ACEOF | |
15052 | @%:@define $bash_tr_func 0 | |
15053 | _ACEOF | |
15054 | ||
15055 | fi | |
15056 | ||
15057 | ||
15058 | ||
15059 | ||
dd4f3dd8 CR |
15060 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5 |
15061 | $as_echo_n "checking for declaration of strtoul... " >&6; } | |
545f34cf | 15062 | if test "${bash_cv_decl_strtoul+set}" = set; then |
dd4f3dd8 | 15063 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
15064 | else |
15065 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
15066 | /* confdefs.h. */ |
15067 | _ACEOF | |
15068 | cat confdefs.h >>conftest.$ac_ext | |
15069 | cat >>conftest.$ac_ext <<_ACEOF | |
15070 | /* end confdefs.h. */ | |
15071 | ||
15072 | #if STDC_HEADERS | |
15073 | # include <stdlib.h> | |
15074 | #endif | |
15075 | #if HAVE_INTTYPES_H | |
15076 | # include <inttypes.h> | |
15077 | #endif | |
15078 | ||
15079 | int | |
15080 | main () | |
15081 | { | |
15082 | return !strtoul; | |
15083 | ; | |
15084 | return 0; | |
15085 | } | |
15086 | _ACEOF | |
15087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
15088 | if { (ac_try="$ac_link" |
15089 | case "(($ac_try" in | |
15090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15091 | *) ac_try_echo=$ac_try;; | |
15092 | esac | |
dd4f3dd8 CR |
15093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15094 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15095 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 15096 | ac_status=$? |
a82a04b3 CR |
15097 | grep -v '^ *+' conftest.er1 >conftest.err |
15098 | rm -f conftest.er1 | |
15099 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15101 | (exit $ac_status); } && { | |
15102 | test -z "$ac_c_werror_flag" || | |
15103 | test ! -s conftest.err | |
15104 | } && test -s conftest$ac_exeext && { | |
15105 | test "$cross_compiling" = yes || | |
15106 | $as_test_x conftest$ac_exeext | |
15107 | }; then | |
545f34cf CR |
15108 | bash_cv_decl_strtoul=yes |
15109 | else | |
dd4f3dd8 | 15110 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15111 | sed 's/^/| /' conftest.$ac_ext >&5 |
15112 | ||
d3ad40de | 15113 | bash_cv_decl_strtoul=no |
545f34cf | 15114 | fi |
d3ad40de | 15115 | |
dd4f3dd8 CR |
15116 | rm -rf conftest.dSYM |
15117 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 15118 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 15119 | fi |
dd4f3dd8 CR |
15120 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5 |
15121 | $as_echo "$bash_cv_decl_strtoul" >&6; } | |
545f34cf CR |
15122 | bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15123 | if test $bash_cv_decl_strtoul = yes; then | |
15124 | cat >>confdefs.h <<_ACEOF | |
15125 | @%:@define $bash_tr_func 1 | |
15126 | _ACEOF | |
15127 | ||
15128 | else | |
15129 | cat >>confdefs.h <<_ACEOF | |
15130 | @%:@define $bash_tr_func 0 | |
15131 | _ACEOF | |
15132 | ||
15133 | fi | |
15134 | ||
15135 | ||
15136 | ||
15137 | ||
dd4f3dd8 CR |
15138 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5 |
15139 | $as_echo_n "checking for declaration of strtoull... " >&6; } | |
545f34cf | 15140 | if test "${bash_cv_decl_strtoull+set}" = set; then |
dd4f3dd8 | 15141 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
15142 | else |
15143 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
15144 | /* confdefs.h. */ |
15145 | _ACEOF | |
15146 | cat confdefs.h >>conftest.$ac_ext | |
15147 | cat >>conftest.$ac_ext <<_ACEOF | |
15148 | /* end confdefs.h. */ | |
15149 | ||
15150 | #if STDC_HEADERS | |
15151 | # include <stdlib.h> | |
15152 | #endif | |
15153 | #if HAVE_INTTYPES_H | |
15154 | # include <inttypes.h> | |
15155 | #endif | |
15156 | ||
15157 | int | |
15158 | main () | |
15159 | { | |
15160 | return !strtoull; | |
15161 | ; | |
15162 | return 0; | |
15163 | } | |
15164 | _ACEOF | |
15165 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
15166 | if { (ac_try="$ac_link" |
15167 | case "(($ac_try" in | |
15168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15169 | *) ac_try_echo=$ac_try;; | |
15170 | esac | |
dd4f3dd8 CR |
15171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15172 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15173 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 15174 | ac_status=$? |
a82a04b3 CR |
15175 | grep -v '^ *+' conftest.er1 >conftest.err |
15176 | rm -f conftest.er1 | |
15177 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15179 | (exit $ac_status); } && { | |
15180 | test -z "$ac_c_werror_flag" || | |
15181 | test ! -s conftest.err | |
15182 | } && test -s conftest$ac_exeext && { | |
15183 | test "$cross_compiling" = yes || | |
15184 | $as_test_x conftest$ac_exeext | |
15185 | }; then | |
2e4498b3 CR |
15186 | bash_cv_decl_strtoull=yes |
15187 | else | |
dd4f3dd8 | 15188 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
15189 | sed 's/^/| /' conftest.$ac_ext >&5 |
15190 | ||
15191 | bash_cv_decl_strtoull=no | |
15192 | fi | |
15193 | ||
dd4f3dd8 CR |
15194 | rm -rf conftest.dSYM |
15195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
2e4498b3 | 15196 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 15197 | fi |
dd4f3dd8 CR |
15198 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5 |
15199 | $as_echo "$bash_cv_decl_strtoull" >&6; } | |
545f34cf CR |
15200 | bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15201 | if test $bash_cv_decl_strtoull = yes; then | |
15202 | cat >>confdefs.h <<_ACEOF | |
15203 | @%:@define $bash_tr_func 1 | |
15204 | _ACEOF | |
15205 | ||
15206 | else | |
15207 | cat >>confdefs.h <<_ACEOF | |
15208 | @%:@define $bash_tr_func 0 | |
15209 | _ACEOF | |
15210 | ||
15211 | fi | |
15212 | ||
15213 | ||
15214 | ||
15215 | ||
dd4f3dd8 CR |
15216 | { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5 |
15217 | $as_echo_n "checking for declaration of strtoumax... " >&6; } | |
545f34cf | 15218 | if test "${bash_cv_decl_strtoumax+set}" = set; then |
dd4f3dd8 | 15219 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
15220 | else |
15221 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
15222 | /* confdefs.h. */ |
15223 | _ACEOF | |
15224 | cat confdefs.h >>conftest.$ac_ext | |
15225 | cat >>conftest.$ac_ext <<_ACEOF | |
15226 | /* end confdefs.h. */ | |
15227 | ||
15228 | #if STDC_HEADERS | |
15229 | # include <stdlib.h> | |
15230 | #endif | |
15231 | #if HAVE_INTTYPES_H | |
15232 | # include <inttypes.h> | |
15233 | #endif | |
15234 | ||
15235 | int | |
15236 | main () | |
15237 | { | |
15238 | return !strtoumax; | |
15239 | ; | |
15240 | return 0; | |
15241 | } | |
15242 | _ACEOF | |
15243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
15244 | if { (ac_try="$ac_link" |
15245 | case "(($ac_try" in | |
15246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15247 | *) ac_try_echo=$ac_try;; | |
15248 | esac | |
dd4f3dd8 CR |
15249 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15250 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15251 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 15252 | ac_status=$? |
a82a04b3 CR |
15253 | grep -v '^ *+' conftest.er1 >conftest.err |
15254 | rm -f conftest.er1 | |
15255 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15257 | (exit $ac_status); } && { | |
15258 | test -z "$ac_c_werror_flag" || | |
15259 | test ! -s conftest.err | |
15260 | } && test -s conftest$ac_exeext && { | |
15261 | test "$cross_compiling" = yes || | |
15262 | $as_test_x conftest$ac_exeext | |
15263 | }; then | |
545f34cf CR |
15264 | bash_cv_decl_strtoumax=yes |
15265 | else | |
dd4f3dd8 | 15266 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15267 | sed 's/^/| /' conftest.$ac_ext >&5 |
15268 | ||
d3ad40de | 15269 | bash_cv_decl_strtoumax=no |
545f34cf | 15270 | fi |
d3ad40de | 15271 | |
dd4f3dd8 CR |
15272 | rm -rf conftest.dSYM |
15273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 15274 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 15275 | fi |
dd4f3dd8 CR |
15276 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5 |
15277 | $as_echo "$bash_cv_decl_strtoumax" >&6; } | |
545f34cf CR |
15278 | bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15279 | if test $bash_cv_decl_strtoumax = yes; then | |
15280 | cat >>confdefs.h <<_ACEOF | |
15281 | @%:@define $bash_tr_func 1 | |
15282 | _ACEOF | |
15283 | ||
15284 | else | |
15285 | cat >>confdefs.h <<_ACEOF | |
15286 | @%:@define $bash_tr_func 0 | |
15287 | _ACEOF | |
15288 | ||
15289 | fi | |
15290 | ||
15291 | ||
15292 | ||
dd4f3dd8 CR |
15293 | |
15294 | ||
15295 | ||
15296 | for ac_header in $ac_header_list | |
545f34cf | 15297 | do |
dd4f3dd8 | 15298 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 15299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
15300 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15301 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 15302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 15303 | $as_echo_n "(cached) " >&6 |
545f34cf | 15304 | fi |
dd4f3dd8 CR |
15305 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15306 | $as_echo "$as_val"'` | |
15307 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15308 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
15309 | else |
15310 | # Is the header compilable? | |
dd4f3dd8 CR |
15311 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15312 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 15313 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
15314 | /* confdefs.h. */ |
15315 | _ACEOF | |
15316 | cat confdefs.h >>conftest.$ac_ext | |
15317 | cat >>conftest.$ac_ext <<_ACEOF | |
15318 | /* end confdefs.h. */ | |
15319 | $ac_includes_default | |
15320 | @%:@include <$ac_header> | |
15321 | _ACEOF | |
15322 | rm -f conftest.$ac_objext | |
d3ad40de CR |
15323 | if { (ac_try="$ac_compile" |
15324 | case "(($ac_try" in | |
15325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15326 | *) ac_try_echo=$ac_try;; | |
15327 | esac | |
dd4f3dd8 CR |
15328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15329 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15330 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 15331 | ac_status=$? |
a82a04b3 CR |
15332 | grep -v '^ *+' conftest.er1 >conftest.err |
15333 | rm -f conftest.er1 | |
15334 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15336 | (exit $ac_status); } && { | |
15337 | test -z "$ac_c_werror_flag" || | |
15338 | test ! -s conftest.err | |
15339 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
15340 | ac_header_compiler=yes |
15341 | else | |
dd4f3dd8 | 15342 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15343 | sed 's/^/| /' conftest.$ac_ext >&5 |
15344 | ||
d3ad40de | 15345 | ac_header_compiler=no |
545f34cf | 15346 | fi |
d3ad40de CR |
15347 | |
15348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
15349 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15350 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
15351 | |
15352 | # Is the header present? | |
dd4f3dd8 CR |
15353 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15354 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 15355 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
15356 | /* confdefs.h. */ |
15357 | _ACEOF | |
15358 | cat confdefs.h >>conftest.$ac_ext | |
15359 | cat >>conftest.$ac_ext <<_ACEOF | |
15360 | /* end confdefs.h. */ | |
15361 | @%:@include <$ac_header> | |
15362 | _ACEOF | |
d3ad40de CR |
15363 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15364 | case "(($ac_try" in | |
15365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15366 | *) ac_try_echo=$ac_try;; | |
15367 | esac | |
dd4f3dd8 CR |
15368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15369 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15370 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
15371 | ac_status=$? |
15372 | grep -v '^ *+' conftest.er1 >conftest.err | |
15373 | rm -f conftest.er1 | |
15374 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15376 | (exit $ac_status); } >/dev/null && { | |
15377 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15378 | test ! -s conftest.err | |
15379 | }; then | |
545f34cf CR |
15380 | ac_header_preproc=yes |
15381 | else | |
dd4f3dd8 | 15382 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15383 | sed 's/^/| /' conftest.$ac_ext >&5 |
15384 | ||
15385 | ac_header_preproc=no | |
15386 | fi | |
d3ad40de | 15387 | |
545f34cf | 15388 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
15389 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15390 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
15391 | |
15392 | # So? What about this header? | |
a82a04b3 CR |
15393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15394 | yes:no: ) | |
dd4f3dd8 CR |
15395 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15396 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15397 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15398 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 15399 | ac_header_preproc=yes |
545f34cf | 15400 | ;; |
a82a04b3 | 15401 | no:yes:* ) |
dd4f3dd8 CR |
15402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15403 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15405 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15407 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15408 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15409 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15410 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15411 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15412 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15413 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 15414 | ( cat <<\_ASBOX |
a82a04b3 CR |
15415 | @%:@@%:@ ------------------------------- @%:@@%:@ |
15416 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
15417 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 15418 | _ASBOX |
d3ad40de | 15419 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
15420 | ;; |
15421 | esac | |
dd4f3dd8 CR |
15422 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15423 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 15424 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 15425 | $as_echo_n "(cached) " >&6 |
545f34cf | 15426 | else |
a82a04b3 | 15427 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 15428 | fi |
dd4f3dd8 CR |
15429 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15430 | $as_echo "$as_val"'` | |
15431 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15432 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
15433 | |
15434 | fi | |
76af2125 CR |
15435 | if test `eval 'as_val=${'$as_ac_Header'} |
15436 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 15437 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 15438 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
15439 | _ACEOF |
15440 | ||
15441 | fi | |
15442 | ||
15443 | done | |
15444 | ||
dd4f3dd8 CR |
15445 | |
15446 | ||
f13513ff | 15447 | |
dd4f3dd8 CR |
15448 | |
15449 | ||
15450 | ||
15451 | ||
15452 | ||
15453 | for ac_func in $ac_func_list | |
545f34cf | 15454 | do |
dd4f3dd8 CR |
15455 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15456 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15457 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 15458 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 15459 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
15460 | else |
15461 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
15462 | /* confdefs.h. */ |
15463 | _ACEOF | |
15464 | cat confdefs.h >>conftest.$ac_ext | |
15465 | cat >>conftest.$ac_ext <<_ACEOF | |
15466 | /* end confdefs.h. */ | |
a82a04b3 CR |
15467 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15469 | #define $ac_func innocuous_$ac_func | |
15470 | ||
545f34cf CR |
15471 | /* System header to define __stub macros and hopefully few prototypes, |
15472 | which can conflict with char $ac_func (); below. | |
15473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15474 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 15475 | |
545f34cf CR |
15476 | #ifdef __STDC__ |
15477 | # include <limits.h> | |
15478 | #else | |
15479 | # include <assert.h> | |
15480 | #endif | |
a82a04b3 CR |
15481 | |
15482 | #undef $ac_func | |
15483 | ||
d3ad40de CR |
15484 | /* Override any GCC internal prototype to avoid an error. |
15485 | Use char because int might match the return type of a GCC | |
15486 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
15487 | #ifdef __cplusplus |
15488 | extern "C" | |
545f34cf | 15489 | #endif |
545f34cf CR |
15490 | char $ac_func (); |
15491 | /* The GNU C library defines this for functions which it implements | |
15492 | to always fail with ENOSYS. Some functions are actually named | |
15493 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 15494 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 15495 | choke me |
545f34cf CR |
15496 | #endif |
15497 | ||
15498 | int | |
15499 | main () | |
15500 | { | |
d3ad40de | 15501 | return $ac_func (); |
545f34cf CR |
15502 | ; |
15503 | return 0; | |
15504 | } | |
15505 | _ACEOF | |
15506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
15507 | if { (ac_try="$ac_link" |
15508 | case "(($ac_try" in | |
15509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15510 | *) ac_try_echo=$ac_try;; | |
15511 | esac | |
dd4f3dd8 CR |
15512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15513 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15514 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 15515 | ac_status=$? |
a82a04b3 CR |
15516 | grep -v '^ *+' conftest.er1 >conftest.err |
15517 | rm -f conftest.er1 | |
15518 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15520 | (exit $ac_status); } && { | |
15521 | test -z "$ac_c_werror_flag" || | |
15522 | test ! -s conftest.err | |
15523 | } && test -s conftest$ac_exeext && { | |
15524 | test "$cross_compiling" = yes || | |
15525 | $as_test_x conftest$ac_exeext | |
15526 | }; then | |
545f34cf CR |
15527 | eval "$as_ac_var=yes" |
15528 | else | |
dd4f3dd8 | 15529 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15530 | sed 's/^/| /' conftest.$ac_ext >&5 |
15531 | ||
d3ad40de | 15532 | eval "$as_ac_var=no" |
545f34cf | 15533 | fi |
d3ad40de | 15534 | |
dd4f3dd8 CR |
15535 | rm -rf conftest.dSYM |
15536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 15537 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 15538 | fi |
dd4f3dd8 CR |
15539 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15540 | $as_echo "$as_val"'` | |
15541 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15542 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
15543 | if test `eval 'as_val=${'$as_ac_var'} |
15544 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 15545 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 15546 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
15547 | _ACEOF |
15548 | ||
15549 | fi | |
15550 | done | |
15551 | ||
dd4f3dd8 CR |
15552 | |
15553 | ||
15554 | ||
15555 | ||
15556 | ||
15557 | ||
15558 | ||
15559 | ||
15560 | ||
15561 | ||
15562 | ||
15563 | ||
15564 | ||
15565 | ||
15566 | ||
15567 | ||
15568 | { $as_echo "$as_me:$LINENO: checking for working mktime" >&5 | |
15569 | $as_echo_n "checking for working mktime... " >&6; } | |
545f34cf | 15570 | if test "${ac_cv_func_working_mktime+set}" = set; then |
dd4f3dd8 | 15571 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
15572 | else |
15573 | if test "$cross_compiling" = yes; then | |
15574 | ac_cv_func_working_mktime=no | |
15575 | else | |
15576 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
15577 | /* confdefs.h. */ |
15578 | _ACEOF | |
15579 | cat confdefs.h >>conftest.$ac_ext | |
15580 | cat >>conftest.$ac_ext <<_ACEOF | |
15581 | /* end confdefs.h. */ | |
15582 | /* Test program from Paul Eggert and Tony Leneis. */ | |
dd4f3dd8 | 15583 | #ifdef TIME_WITH_SYS_TIME |
545f34cf CR |
15584 | # include <sys/time.h> |
15585 | # include <time.h> | |
15586 | #else | |
dd4f3dd8 | 15587 | # ifdef HAVE_SYS_TIME_H |
545f34cf CR |
15588 | # include <sys/time.h> |
15589 | # else | |
15590 | # include <time.h> | |
15591 | # endif | |
15592 | #endif | |
15593 | ||
dd4f3dd8 CR |
15594 | #include <limits.h> |
15595 | #include <stdlib.h> | |
a82a04b3 | 15596 | |
dd4f3dd8 | 15597 | #ifdef HAVE_UNISTD_H |
545f34cf CR |
15598 | # include <unistd.h> |
15599 | #endif | |
15600 | ||
dd4f3dd8 | 15601 | #ifndef HAVE_ALARM |
545f34cf CR |
15602 | # define alarm(X) /* empty */ |
15603 | #endif | |
15604 | ||
15605 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
15606 | #undef putenv | |
15607 | ||
15608 | static time_t time_t_max; | |
a82a04b3 | 15609 | static time_t time_t_min; |
545f34cf CR |
15610 | |
15611 | /* Values we'll use to set the TZ environment variable. */ | |
a82a04b3 CR |
15612 | static char *tz_strings[] = { |
15613 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
545f34cf CR |
15614 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
15615 | }; | |
15616 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
15617 | ||
d3ad40de | 15618 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
545f34cf | 15619 | Based on a problem report from Andreas Jaeger. */ |
d3ad40de | 15620 | static int |
545f34cf CR |
15621 | spring_forward_gap () |
15622 | { | |
15623 | /* glibc (up to about 1998-10-07) failed this test. */ | |
15624 | struct tm tm; | |
15625 | ||
15626 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15627 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15628 | on systems that don't support the Olson extension, or don't have the | |
15629 | full zoneinfo tables installed. */ | |
15630 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15631 | ||
15632 | tm.tm_year = 98; | |
15633 | tm.tm_mon = 3; | |
15634 | tm.tm_mday = 5; | |
15635 | tm.tm_hour = 2; | |
15636 | tm.tm_min = 0; | |
15637 | tm.tm_sec = 0; | |
15638 | tm.tm_isdst = -1; | |
d3ad40de | 15639 | return mktime (&tm) != (time_t) -1; |
545f34cf CR |
15640 | } |
15641 | ||
d3ad40de | 15642 | static int |
a82a04b3 | 15643 | mktime_test1 (now) |
545f34cf CR |
15644 | time_t now; |
15645 | { | |
15646 | struct tm *lt; | |
d3ad40de | 15647 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
a82a04b3 CR |
15648 | } |
15649 | ||
d3ad40de | 15650 | static int |
a82a04b3 CR |
15651 | mktime_test (now) |
15652 | time_t now; | |
15653 | { | |
d3ad40de CR |
15654 | return (mktime_test1 (now) |
15655 | && mktime_test1 ((time_t) (time_t_max - now)) | |
15656 | && mktime_test1 ((time_t) (time_t_min + now))); | |
545f34cf CR |
15657 | } |
15658 | ||
d3ad40de | 15659 | static int |
545f34cf CR |
15660 | irix_6_4_bug () |
15661 | { | |
15662 | /* Based on code from Ariel Faigon. */ | |
15663 | struct tm tm; | |
15664 | tm.tm_year = 96; | |
15665 | tm.tm_mon = 3; | |
15666 | tm.tm_mday = 0; | |
15667 | tm.tm_hour = 0; | |
15668 | tm.tm_min = 0; | |
15669 | tm.tm_sec = 0; | |
15670 | tm.tm_isdst = -1; | |
15671 | mktime (&tm); | |
d3ad40de | 15672 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
545f34cf CR |
15673 | } |
15674 | ||
d3ad40de | 15675 | static int |
545f34cf CR |
15676 | bigtime_test (j) |
15677 | int j; | |
15678 | { | |
15679 | struct tm tm; | |
15680 | time_t now; | |
15681 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
15682 | now = mktime (&tm); | |
15683 | if (now != (time_t) -1) | |
15684 | { | |
15685 | struct tm *lt = localtime (&now); | |
15686 | if (! (lt | |
15687 | && lt->tm_year == tm.tm_year | |
15688 | && lt->tm_mon == tm.tm_mon | |
15689 | && lt->tm_mday == tm.tm_mday | |
15690 | && lt->tm_hour == tm.tm_hour | |
15691 | && lt->tm_min == tm.tm_min | |
15692 | && lt->tm_sec == tm.tm_sec | |
15693 | && lt->tm_yday == tm.tm_yday | |
15694 | && lt->tm_wday == tm.tm_wday | |
15695 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
15696 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
d3ad40de | 15697 | return 0; |
545f34cf | 15698 | } |
d3ad40de | 15699 | return 1; |
545f34cf CR |
15700 | } |
15701 | ||
dd4f3dd8 CR |
15702 | static int |
15703 | year_2050_test () | |
15704 | { | |
15705 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
15706 | ignoring leap seconds. */ | |
15707 | unsigned long int answer = 2527315200UL; | |
15708 | ||
15709 | struct tm tm; | |
15710 | time_t t; | |
15711 | tm.tm_year = 2050 - 1900; | |
15712 | tm.tm_mon = 2 - 1; | |
15713 | tm.tm_mday = 1; | |
15714 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
15715 | tm.tm_isdst = -1; | |
15716 | ||
15717 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15718 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15719 | on systems that don't support the Olson extension, or don't have the | |
15720 | full zoneinfo tables installed. */ | |
15721 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15722 | ||
15723 | t = mktime (&tm); | |
15724 | ||
15725 | /* Check that the result is either a failure, or close enough | |
15726 | to the correct answer that we can assume the discrepancy is | |
15727 | due to leap seconds. */ | |
15728 | return (t == (time_t) -1 | |
15729 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
15730 | } | |
15731 | ||
545f34cf CR |
15732 | int |
15733 | main () | |
15734 | { | |
15735 | time_t t, delta; | |
15736 | int i, j; | |
15737 | ||
15738 | /* This test makes some buggy mktime implementations loop. | |
15739 | Give up after 60 seconds; a mktime slower than that | |
15740 | isn't worth using anyway. */ | |
15741 | alarm (60); | |
15742 | ||
dd4f3dd8 CR |
15743 | for (;;) |
15744 | { | |
15745 | t = (time_t_max << 1) + 1; | |
15746 | if (t <= time_t_max) | |
15747 | break; | |
15748 | time_t_max = t; | |
15749 | } | |
15750 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
15751 | ||
545f34cf CR |
15752 | delta = time_t_max / 997; /* a suitable prime number */ |
15753 | for (i = 0; i < N_STRINGS; i++) | |
15754 | { | |
15755 | if (tz_strings[i]) | |
15756 | putenv (tz_strings[i]); | |
15757 | ||
15758 | for (t = 0; t <= time_t_max - delta; t += delta) | |
d3ad40de CR |
15759 | if (! mktime_test (t)) |
15760 | return 1; | |
15761 | if (! (mktime_test ((time_t) 1) | |
15762 | && mktime_test ((time_t) (60 * 60)) | |
15763 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
15764 | return 1; | |
545f34cf | 15765 | |
dd4f3dd8 | 15766 | for (j = 1; ; j <<= 1) |
d3ad40de CR |
15767 | if (! bigtime_test (j)) |
15768 | return 1; | |
dd4f3dd8 CR |
15769 | else if (INT_MAX / 2 < j) |
15770 | break; | |
15771 | if (! bigtime_test (INT_MAX)) | |
d3ad40de | 15772 | return 1; |
545f34cf | 15773 | } |
dd4f3dd8 | 15774 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
545f34cf CR |
15775 | } |
15776 | _ACEOF | |
15777 | rm -f conftest$ac_exeext | |
d3ad40de CR |
15778 | if { (ac_try="$ac_link" |
15779 | case "(($ac_try" in | |
15780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15781 | *) ac_try_echo=$ac_try;; | |
15782 | esac | |
dd4f3dd8 CR |
15783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15784 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15785 | (eval "$ac_link") 2>&5 |
545f34cf | 15786 | ac_status=$? |
dd4f3dd8 | 15787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 15788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
15789 | { (case "(($ac_try" in |
15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15791 | *) ac_try_echo=$ac_try;; | |
15792 | esac | |
dd4f3dd8 CR |
15793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15794 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15795 | (eval "$ac_try") 2>&5 |
545f34cf | 15796 | ac_status=$? |
dd4f3dd8 | 15797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
15798 | (exit $ac_status); }; }; then |
15799 | ac_cv_func_working_mktime=yes | |
15800 | else | |
dd4f3dd8 CR |
15801 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
15802 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
15803 | sed 's/^/| /' conftest.$ac_ext >&5 |
15804 | ||
15805 | ( exit $ac_status ) | |
15806 | ac_cv_func_working_mktime=no | |
15807 | fi | |
dd4f3dd8 | 15808 | rm -rf conftest.dSYM |
d3ad40de | 15809 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 15810 | fi |
d3ad40de CR |
15811 | |
15812 | ||
545f34cf | 15813 | fi |
dd4f3dd8 CR |
15814 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
15815 | $as_echo "$ac_cv_func_working_mktime" >&6; } | |
545f34cf | 15816 | if test $ac_cv_func_working_mktime = no; then |
d3ad40de | 15817 | case " $LIB@&t@OBJS " in |
a82a04b3 | 15818 | *" mktime.$ac_objext "* ) ;; |
d3ad40de CR |
15819 | *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext" |
15820 | ;; | |
a82a04b3 CR |
15821 | esac |
15822 | ||
545f34cf CR |
15823 | fi |
15824 | ||
15825 | ||
15826 | ||
15827 | ||
15828 | ||
15829 | ||
15830 | ||
15831 | ||
15832 | for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h | |
15833 | do | |
dd4f3dd8 | 15834 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 15835 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
15836 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15837 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 15838 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 15839 | $as_echo_n "(cached) " >&6 |
545f34cf | 15840 | fi |
dd4f3dd8 CR |
15841 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15842 | $as_echo "$as_val"'` | |
15843 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15844 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
15845 | else |
15846 | # Is the header compilable? | |
dd4f3dd8 CR |
15847 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15848 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 15849 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
15850 | /* confdefs.h. */ |
15851 | _ACEOF | |
15852 | cat confdefs.h >>conftest.$ac_ext | |
15853 | cat >>conftest.$ac_ext <<_ACEOF | |
15854 | /* end confdefs.h. */ | |
15855 | $ac_includes_default | |
15856 | @%:@include <$ac_header> | |
15857 | _ACEOF | |
15858 | rm -f conftest.$ac_objext | |
d3ad40de CR |
15859 | if { (ac_try="$ac_compile" |
15860 | case "(($ac_try" in | |
15861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15862 | *) ac_try_echo=$ac_try;; | |
15863 | esac | |
dd4f3dd8 CR |
15864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15865 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15866 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 15867 | ac_status=$? |
a82a04b3 CR |
15868 | grep -v '^ *+' conftest.er1 >conftest.err |
15869 | rm -f conftest.er1 | |
15870 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15872 | (exit $ac_status); } && { | |
15873 | test -z "$ac_c_werror_flag" || | |
15874 | test ! -s conftest.err | |
15875 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
15876 | ac_header_compiler=yes |
15877 | else | |
dd4f3dd8 | 15878 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15879 | sed 's/^/| /' conftest.$ac_ext >&5 |
15880 | ||
d3ad40de | 15881 | ac_header_compiler=no |
545f34cf | 15882 | fi |
d3ad40de CR |
15883 | |
15884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
15885 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15886 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
15887 | |
15888 | # Is the header present? | |
dd4f3dd8 CR |
15889 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15890 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 15891 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
15892 | /* confdefs.h. */ |
15893 | _ACEOF | |
15894 | cat confdefs.h >>conftest.$ac_ext | |
15895 | cat >>conftest.$ac_ext <<_ACEOF | |
15896 | /* end confdefs.h. */ | |
15897 | @%:@include <$ac_header> | |
15898 | _ACEOF | |
d3ad40de CR |
15899 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15900 | case "(($ac_try" in | |
15901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15902 | *) ac_try_echo=$ac_try;; | |
15903 | esac | |
dd4f3dd8 CR |
15904 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15905 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 15906 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
15907 | ac_status=$? |
15908 | grep -v '^ *+' conftest.er1 >conftest.err | |
15909 | rm -f conftest.er1 | |
15910 | cat conftest.err >&5 | |
dd4f3dd8 CR |
15911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15912 | (exit $ac_status); } >/dev/null && { | |
15913 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15914 | test ! -s conftest.err | |
15915 | }; then | |
545f34cf CR |
15916 | ac_header_preproc=yes |
15917 | else | |
dd4f3dd8 | 15918 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
15919 | sed 's/^/| /' conftest.$ac_ext >&5 |
15920 | ||
15921 | ac_header_preproc=no | |
15922 | fi | |
d3ad40de | 15923 | |
545f34cf | 15924 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
15925 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15926 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
15927 | |
15928 | # So? What about this header? | |
a82a04b3 CR |
15929 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15930 | yes:no: ) | |
dd4f3dd8 CR |
15931 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15932 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15933 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15934 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 15935 | ac_header_preproc=yes |
545f34cf | 15936 | ;; |
a82a04b3 | 15937 | no:yes:* ) |
dd4f3dd8 CR |
15938 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15939 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15940 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15941 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15942 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15943 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15944 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15945 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15946 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15947 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15948 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15949 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 15950 | ( cat <<\_ASBOX |
a82a04b3 CR |
15951 | @%:@@%:@ ------------------------------- @%:@@%:@ |
15952 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
15953 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 15954 | _ASBOX |
d3ad40de | 15955 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
15956 | ;; |
15957 | esac | |
dd4f3dd8 CR |
15958 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15959 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 15960 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 15961 | $as_echo_n "(cached) " >&6 |
545f34cf | 15962 | else |
a82a04b3 | 15963 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 15964 | fi |
dd4f3dd8 CR |
15965 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15966 | $as_echo "$as_val"'` | |
15967 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15968 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
15969 | |
15970 | fi | |
76af2125 CR |
15971 | if test `eval 'as_val=${'$as_ac_Header'} |
15972 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 15973 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 15974 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
15975 | _ACEOF |
15976 | ||
15977 | fi | |
15978 | ||
15979 | done | |
15980 | ||
15981 | ||
15982 | ||
545f34cf CR |
15983 | |
15984 | for ac_header in stdlib.h unistd.h | |
15985 | do | |
dd4f3dd8 | 15986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 15987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
15988 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15989 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 15990 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 15991 | $as_echo_n "(cached) " >&6 |
545f34cf | 15992 | fi |
dd4f3dd8 CR |
15993 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15994 | $as_echo "$as_val"'` | |
15995 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15996 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
15997 | else |
15998 | # Is the header compilable? | |
dd4f3dd8 CR |
15999 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16000 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 16001 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16002 | /* confdefs.h. */ |
16003 | _ACEOF | |
16004 | cat confdefs.h >>conftest.$ac_ext | |
16005 | cat >>conftest.$ac_ext <<_ACEOF | |
16006 | /* end confdefs.h. */ | |
16007 | $ac_includes_default | |
16008 | @%:@include <$ac_header> | |
16009 | _ACEOF | |
16010 | rm -f conftest.$ac_objext | |
d3ad40de CR |
16011 | if { (ac_try="$ac_compile" |
16012 | case "(($ac_try" in | |
16013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16014 | *) ac_try_echo=$ac_try;; | |
16015 | esac | |
dd4f3dd8 CR |
16016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16017 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16018 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 16019 | ac_status=$? |
a82a04b3 CR |
16020 | grep -v '^ *+' conftest.er1 >conftest.err |
16021 | rm -f conftest.er1 | |
16022 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16024 | (exit $ac_status); } && { | |
16025 | test -z "$ac_c_werror_flag" || | |
16026 | test ! -s conftest.err | |
16027 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
16028 | ac_header_compiler=yes |
16029 | else | |
dd4f3dd8 | 16030 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16031 | sed 's/^/| /' conftest.$ac_ext >&5 |
16032 | ||
d3ad40de | 16033 | ac_header_compiler=no |
545f34cf | 16034 | fi |
d3ad40de CR |
16035 | |
16036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
16037 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16038 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
16039 | |
16040 | # Is the header present? | |
dd4f3dd8 CR |
16041 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16042 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 16043 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16044 | /* confdefs.h. */ |
16045 | _ACEOF | |
16046 | cat confdefs.h >>conftest.$ac_ext | |
16047 | cat >>conftest.$ac_ext <<_ACEOF | |
16048 | /* end confdefs.h. */ | |
16049 | @%:@include <$ac_header> | |
16050 | _ACEOF | |
d3ad40de CR |
16051 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16052 | case "(($ac_try" in | |
16053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16054 | *) ac_try_echo=$ac_try;; | |
16055 | esac | |
dd4f3dd8 CR |
16056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16057 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16058 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
16059 | ac_status=$? |
16060 | grep -v '^ *+' conftest.er1 >conftest.err | |
16061 | rm -f conftest.er1 | |
16062 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16064 | (exit $ac_status); } >/dev/null && { | |
16065 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16066 | test ! -s conftest.err | |
16067 | }; then | |
545f34cf CR |
16068 | ac_header_preproc=yes |
16069 | else | |
dd4f3dd8 | 16070 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16071 | sed 's/^/| /' conftest.$ac_ext >&5 |
16072 | ||
16073 | ac_header_preproc=no | |
16074 | fi | |
d3ad40de | 16075 | |
545f34cf | 16076 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
16077 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16078 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
16079 | |
16080 | # So? What about this header? | |
a82a04b3 CR |
16081 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16082 | yes:no: ) | |
dd4f3dd8 CR |
16083 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16084 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16085 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16086 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 16087 | ac_header_preproc=yes |
545f34cf | 16088 | ;; |
a82a04b3 | 16089 | no:yes:* ) |
dd4f3dd8 CR |
16090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16091 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16093 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16094 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16095 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16097 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16099 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16100 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16101 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 16102 | ( cat <<\_ASBOX |
a82a04b3 CR |
16103 | @%:@@%:@ ------------------------------- @%:@@%:@ |
16104 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
16105 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 16106 | _ASBOX |
d3ad40de | 16107 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
16108 | ;; |
16109 | esac | |
dd4f3dd8 CR |
16110 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16111 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 16112 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16113 | $as_echo_n "(cached) " >&6 |
545f34cf | 16114 | else |
a82a04b3 | 16115 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 16116 | fi |
dd4f3dd8 CR |
16117 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16118 | $as_echo "$as_val"'` | |
16119 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16120 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
16121 | |
16122 | fi | |
76af2125 CR |
16123 | if test `eval 'as_val=${'$as_ac_Header'} |
16124 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 16125 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 16126 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
16127 | _ACEOF |
16128 | ||
16129 | fi | |
16130 | ||
16131 | done | |
16132 | ||
16133 | ||
16134 | for ac_func in getpagesize | |
16135 | do | |
dd4f3dd8 CR |
16136 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16137 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16138 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 16139 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16140 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
16141 | else |
16142 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
16143 | /* confdefs.h. */ |
16144 | _ACEOF | |
16145 | cat confdefs.h >>conftest.$ac_ext | |
16146 | cat >>conftest.$ac_ext <<_ACEOF | |
16147 | /* end confdefs.h. */ | |
a82a04b3 CR |
16148 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16150 | #define $ac_func innocuous_$ac_func | |
16151 | ||
545f34cf CR |
16152 | /* System header to define __stub macros and hopefully few prototypes, |
16153 | which can conflict with char $ac_func (); below. | |
16154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16155 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 16156 | |
545f34cf CR |
16157 | #ifdef __STDC__ |
16158 | # include <limits.h> | |
16159 | #else | |
16160 | # include <assert.h> | |
16161 | #endif | |
a82a04b3 CR |
16162 | |
16163 | #undef $ac_func | |
16164 | ||
d3ad40de CR |
16165 | /* Override any GCC internal prototype to avoid an error. |
16166 | Use char because int might match the return type of a GCC | |
16167 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
16168 | #ifdef __cplusplus |
16169 | extern "C" | |
545f34cf | 16170 | #endif |
545f34cf CR |
16171 | char $ac_func (); |
16172 | /* The GNU C library defines this for functions which it implements | |
16173 | to always fail with ENOSYS. Some functions are actually named | |
16174 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 16175 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 16176 | choke me |
545f34cf CR |
16177 | #endif |
16178 | ||
16179 | int | |
16180 | main () | |
16181 | { | |
d3ad40de | 16182 | return $ac_func (); |
545f34cf CR |
16183 | ; |
16184 | return 0; | |
16185 | } | |
16186 | _ACEOF | |
16187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
16188 | if { (ac_try="$ac_link" |
16189 | case "(($ac_try" in | |
16190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16191 | *) ac_try_echo=$ac_try;; | |
16192 | esac | |
dd4f3dd8 CR |
16193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16194 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16195 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 16196 | ac_status=$? |
a82a04b3 CR |
16197 | grep -v '^ *+' conftest.er1 >conftest.err |
16198 | rm -f conftest.er1 | |
16199 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16201 | (exit $ac_status); } && { | |
16202 | test -z "$ac_c_werror_flag" || | |
16203 | test ! -s conftest.err | |
16204 | } && test -s conftest$ac_exeext && { | |
16205 | test "$cross_compiling" = yes || | |
16206 | $as_test_x conftest$ac_exeext | |
16207 | }; then | |
545f34cf CR |
16208 | eval "$as_ac_var=yes" |
16209 | else | |
dd4f3dd8 | 16210 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16211 | sed 's/^/| /' conftest.$ac_ext >&5 |
16212 | ||
d3ad40de | 16213 | eval "$as_ac_var=no" |
545f34cf | 16214 | fi |
d3ad40de | 16215 | |
dd4f3dd8 CR |
16216 | rm -rf conftest.dSYM |
16217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 16218 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 16219 | fi |
dd4f3dd8 CR |
16220 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16221 | $as_echo "$as_val"'` | |
16222 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16223 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
16224 | if test `eval 'as_val=${'$as_ac_var'} |
16225 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 16226 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 16227 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
16228 | _ACEOF |
16229 | ||
16230 | fi | |
16231 | done | |
16232 | ||
dd4f3dd8 CR |
16233 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
16234 | $as_echo_n "checking for working mmap... " >&6; } | |
545f34cf | 16235 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
dd4f3dd8 | 16236 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
16237 | else |
16238 | if test "$cross_compiling" = yes; then | |
16239 | ac_cv_func_mmap_fixed_mapped=no | |
16240 | else | |
16241 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
16242 | /* confdefs.h. */ |
16243 | _ACEOF | |
16244 | cat confdefs.h >>conftest.$ac_ext | |
16245 | cat >>conftest.$ac_ext <<_ACEOF | |
16246 | /* end confdefs.h. */ | |
16247 | $ac_includes_default | |
16248 | /* malloc might have been renamed as rpl_malloc. */ | |
16249 | #undef malloc | |
16250 | ||
16251 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
16252 | Here is a matrix of mmap possibilities: | |
16253 | mmap private not fixed | |
16254 | mmap private fixed at somewhere currently unmapped | |
16255 | mmap private fixed at somewhere already mapped | |
16256 | mmap shared not fixed | |
16257 | mmap shared fixed at somewhere currently unmapped | |
16258 | mmap shared fixed at somewhere already mapped | |
16259 | For private mappings, we should verify that changes cannot be read() | |
16260 | back from the file, nor mmap's back from the file at a different | |
16261 | address. (There have been systems where private was not correctly | |
16262 | implemented like the infamous i386 svr4.0, and systems where the | |
16263 | VM page cache was not coherent with the file system buffer cache | |
16264 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16265 | For shared mappings, we should conversely verify that changes get | |
16266 | propagated back to all the places they're supposed to be. | |
16267 | ||
16268 | Grep wants private fixed already mapped. | |
16269 | The main things grep needs to know about mmap are: | |
16270 | * does it exist and is it safe to write into the mmap'd area | |
16271 | * how to use it (BSD variants) */ | |
16272 | ||
16273 | #include <fcntl.h> | |
16274 | #include <sys/mman.h> | |
16275 | ||
dd4f3dd8 | 16276 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
545f34cf CR |
16277 | char *malloc (); |
16278 | #endif | |
16279 | ||
16280 | /* This mess was copied from the GNU getpagesize.h. */ | |
dd4f3dd8 | 16281 | #ifndef HAVE_GETPAGESIZE |
545f34cf | 16282 | /* Assume that all systems that can run configure have sys/param.h. */ |
dd4f3dd8 | 16283 | # ifndef HAVE_SYS_PARAM_H |
545f34cf CR |
16284 | # define HAVE_SYS_PARAM_H 1 |
16285 | # endif | |
16286 | ||
16287 | # ifdef _SC_PAGESIZE | |
16288 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16289 | # else /* no _SC_PAGESIZE */ | |
dd4f3dd8 | 16290 | # ifdef HAVE_SYS_PARAM_H |
545f34cf CR |
16291 | # include <sys/param.h> |
16292 | # ifdef EXEC_PAGESIZE | |
16293 | # define getpagesize() EXEC_PAGESIZE | |
16294 | # else /* no EXEC_PAGESIZE */ | |
16295 | # ifdef NBPG | |
16296 | # define getpagesize() NBPG * CLSIZE | |
16297 | # ifndef CLSIZE | |
16298 | # define CLSIZE 1 | |
16299 | # endif /* no CLSIZE */ | |
16300 | # else /* no NBPG */ | |
16301 | # ifdef NBPC | |
16302 | # define getpagesize() NBPC | |
16303 | # else /* no NBPC */ | |
16304 | # ifdef PAGESIZE | |
16305 | # define getpagesize() PAGESIZE | |
16306 | # endif /* PAGESIZE */ | |
16307 | # endif /* no NBPC */ | |
16308 | # endif /* no NBPG */ | |
16309 | # endif /* no EXEC_PAGESIZE */ | |
16310 | # else /* no HAVE_SYS_PARAM_H */ | |
16311 | # define getpagesize() 8192 /* punt totally */ | |
16312 | # endif /* no HAVE_SYS_PARAM_H */ | |
16313 | # endif /* no _SC_PAGESIZE */ | |
16314 | ||
16315 | #endif /* no HAVE_GETPAGESIZE */ | |
16316 | ||
16317 | int | |
16318 | main () | |
16319 | { | |
16320 | char *data, *data2, *data3; | |
16321 | int i, pagesize; | |
16322 | int fd; | |
16323 | ||
16324 | pagesize = getpagesize (); | |
16325 | ||
16326 | /* First, make a file with some known garbage in it. */ | |
16327 | data = (char *) malloc (pagesize); | |
16328 | if (!data) | |
d3ad40de | 16329 | return 1; |
545f34cf CR |
16330 | for (i = 0; i < pagesize; ++i) |
16331 | *(data + i) = rand (); | |
16332 | umask (0); | |
16333 | fd = creat ("conftest.mmap", 0600); | |
16334 | if (fd < 0) | |
d3ad40de | 16335 | return 1; |
545f34cf | 16336 | if (write (fd, data, pagesize) != pagesize) |
d3ad40de | 16337 | return 1; |
545f34cf CR |
16338 | close (fd); |
16339 | ||
16340 | /* Next, try to mmap the file at a fixed address which already has | |
16341 | something else allocated at it. If we can, also make sure that | |
16342 | we see the same garbage. */ | |
16343 | fd = open ("conftest.mmap", O_RDWR); | |
16344 | if (fd < 0) | |
d3ad40de | 16345 | return 1; |
545f34cf CR |
16346 | data2 = (char *) malloc (2 * pagesize); |
16347 | if (!data2) | |
d3ad40de CR |
16348 | return 1; |
16349 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
545f34cf | 16350 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
a82a04b3 | 16351 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
d3ad40de | 16352 | return 1; |
545f34cf CR |
16353 | for (i = 0; i < pagesize; ++i) |
16354 | if (*(data + i) != *(data2 + i)) | |
d3ad40de | 16355 | return 1; |
545f34cf CR |
16356 | |
16357 | /* Finally, make sure that changes to the mapped area do not | |
16358 | percolate back to the file as seen by read(). (This is a bug on | |
16359 | some variants of i386 svr4.0.) */ | |
16360 | for (i = 0; i < pagesize; ++i) | |
16361 | *(data2 + i) = *(data2 + i) + 1; | |
16362 | data3 = (char *) malloc (pagesize); | |
16363 | if (!data3) | |
d3ad40de | 16364 | return 1; |
545f34cf | 16365 | if (read (fd, data3, pagesize) != pagesize) |
d3ad40de | 16366 | return 1; |
545f34cf CR |
16367 | for (i = 0; i < pagesize; ++i) |
16368 | if (*(data + i) != *(data3 + i)) | |
d3ad40de | 16369 | return 1; |
545f34cf | 16370 | close (fd); |
d3ad40de | 16371 | return 0; |
545f34cf CR |
16372 | } |
16373 | _ACEOF | |
16374 | rm -f conftest$ac_exeext | |
d3ad40de CR |
16375 | if { (ac_try="$ac_link" |
16376 | case "(($ac_try" in | |
16377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16378 | *) ac_try_echo=$ac_try;; | |
16379 | esac | |
dd4f3dd8 CR |
16380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16381 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16382 | (eval "$ac_link") 2>&5 |
545f34cf | 16383 | ac_status=$? |
dd4f3dd8 | 16384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 16385 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
16386 | { (case "(($ac_try" in |
16387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16388 | *) ac_try_echo=$ac_try;; | |
16389 | esac | |
dd4f3dd8 CR |
16390 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16391 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16392 | (eval "$ac_try") 2>&5 |
545f34cf | 16393 | ac_status=$? |
dd4f3dd8 | 16394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
16395 | (exit $ac_status); }; }; then |
16396 | ac_cv_func_mmap_fixed_mapped=yes | |
16397 | else | |
dd4f3dd8 CR |
16398 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
16399 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
16400 | sed 's/^/| /' conftest.$ac_ext >&5 |
16401 | ||
16402 | ( exit $ac_status ) | |
16403 | ac_cv_func_mmap_fixed_mapped=no | |
16404 | fi | |
dd4f3dd8 | 16405 | rm -rf conftest.dSYM |
d3ad40de | 16406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 16407 | fi |
d3ad40de CR |
16408 | |
16409 | ||
545f34cf | 16410 | fi |
dd4f3dd8 CR |
16411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
16412 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
545f34cf CR |
16413 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
16414 | ||
16415 | cat >>confdefs.h <<\_ACEOF | |
16416 | @%:@define HAVE_MMAP 1 | |
16417 | _ACEOF | |
16418 | ||
16419 | fi | |
16420 | rm -f conftest.mmap | |
16421 | ||
16422 | ||
16423 | ||
16424 | ||
16425 | ||
16426 | ||
16427 | ||
16428 | ||
16429 | ||
16430 | ||
16431 | for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \ | |
16432 | munmap stpcpy strcspn strdup | |
16433 | do | |
dd4f3dd8 CR |
16434 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16435 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16436 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 16437 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16438 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
16439 | else |
16440 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
16441 | /* confdefs.h. */ |
16442 | _ACEOF | |
16443 | cat confdefs.h >>conftest.$ac_ext | |
16444 | cat >>conftest.$ac_ext <<_ACEOF | |
16445 | /* end confdefs.h. */ | |
a82a04b3 CR |
16446 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16447 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16448 | #define $ac_func innocuous_$ac_func | |
16449 | ||
545f34cf CR |
16450 | /* System header to define __stub macros and hopefully few prototypes, |
16451 | which can conflict with char $ac_func (); below. | |
16452 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16453 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 16454 | |
545f34cf CR |
16455 | #ifdef __STDC__ |
16456 | # include <limits.h> | |
16457 | #else | |
16458 | # include <assert.h> | |
16459 | #endif | |
a82a04b3 CR |
16460 | |
16461 | #undef $ac_func | |
16462 | ||
d3ad40de CR |
16463 | /* Override any GCC internal prototype to avoid an error. |
16464 | Use char because int might match the return type of a GCC | |
16465 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
16466 | #ifdef __cplusplus |
16467 | extern "C" | |
545f34cf | 16468 | #endif |
545f34cf CR |
16469 | char $ac_func (); |
16470 | /* The GNU C library defines this for functions which it implements | |
16471 | to always fail with ENOSYS. Some functions are actually named | |
16472 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 16473 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 16474 | choke me |
545f34cf CR |
16475 | #endif |
16476 | ||
16477 | int | |
16478 | main () | |
16479 | { | |
d3ad40de | 16480 | return $ac_func (); |
545f34cf CR |
16481 | ; |
16482 | return 0; | |
16483 | } | |
16484 | _ACEOF | |
16485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
16486 | if { (ac_try="$ac_link" |
16487 | case "(($ac_try" in | |
16488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16489 | *) ac_try_echo=$ac_try;; | |
16490 | esac | |
dd4f3dd8 CR |
16491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16492 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16493 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 16494 | ac_status=$? |
a82a04b3 CR |
16495 | grep -v '^ *+' conftest.er1 >conftest.err |
16496 | rm -f conftest.er1 | |
16497 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16499 | (exit $ac_status); } && { | |
16500 | test -z "$ac_c_werror_flag" || | |
16501 | test ! -s conftest.err | |
16502 | } && test -s conftest$ac_exeext && { | |
16503 | test "$cross_compiling" = yes || | |
16504 | $as_test_x conftest$ac_exeext | |
16505 | }; then | |
545f34cf CR |
16506 | eval "$as_ac_var=yes" |
16507 | else | |
dd4f3dd8 | 16508 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16509 | sed 's/^/| /' conftest.$ac_ext >&5 |
16510 | ||
d3ad40de | 16511 | eval "$as_ac_var=no" |
545f34cf | 16512 | fi |
d3ad40de | 16513 | |
dd4f3dd8 CR |
16514 | rm -rf conftest.dSYM |
16515 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 16516 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 16517 | fi |
dd4f3dd8 CR |
16518 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16519 | $as_echo "$as_val"'` | |
16520 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16521 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
16522 | if test `eval 'as_val=${'$as_ac_var'} |
16523 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 16524 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 16525 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
16526 | _ACEOF |
16527 | ||
16528 | fi | |
16529 | done | |
16530 | ||
16531 | ||
12d937f9 | 16532 | INTL_DEP= INTL_INC= LIBINTL_H= |
545f34cf CR |
16533 | if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then |
16534 | INTL_DEP='${INTL_LIBDIR}/libintl.a' | |
12d937f9 CR |
16535 | INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}' |
16536 | LIBINTL_H='${INTL_BUILDDIR}/libintl.h' | |
545f34cf CR |
16537 | fi |
16538 | ||
16539 | ||
16540 | ||
16541 | ||
16542 | ||
16543 | ||
12d937f9 | 16544 | |
545f34cf CR |
16545 | for ac_header in wctype.h |
16546 | do | |
dd4f3dd8 | 16547 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 16548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
16549 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16550 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 16551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16552 | $as_echo_n "(cached) " >&6 |
545f34cf | 16553 | fi |
dd4f3dd8 CR |
16554 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16555 | $as_echo "$as_val"'` | |
16556 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16557 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
16558 | else |
16559 | # Is the header compilable? | |
dd4f3dd8 CR |
16560 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16561 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 16562 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16563 | /* confdefs.h. */ |
16564 | _ACEOF | |
16565 | cat confdefs.h >>conftest.$ac_ext | |
16566 | cat >>conftest.$ac_ext <<_ACEOF | |
16567 | /* end confdefs.h. */ | |
16568 | $ac_includes_default | |
16569 | @%:@include <$ac_header> | |
16570 | _ACEOF | |
16571 | rm -f conftest.$ac_objext | |
d3ad40de CR |
16572 | if { (ac_try="$ac_compile" |
16573 | case "(($ac_try" in | |
16574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16575 | *) ac_try_echo=$ac_try;; | |
16576 | esac | |
dd4f3dd8 CR |
16577 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16578 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16579 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 16580 | ac_status=$? |
a82a04b3 CR |
16581 | grep -v '^ *+' conftest.er1 >conftest.err |
16582 | rm -f conftest.er1 | |
16583 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16585 | (exit $ac_status); } && { | |
16586 | test -z "$ac_c_werror_flag" || | |
16587 | test ! -s conftest.err | |
16588 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
16589 | ac_header_compiler=yes |
16590 | else | |
dd4f3dd8 | 16591 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16592 | sed 's/^/| /' conftest.$ac_ext >&5 |
16593 | ||
d3ad40de | 16594 | ac_header_compiler=no |
545f34cf | 16595 | fi |
d3ad40de CR |
16596 | |
16597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
16598 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16599 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
16600 | |
16601 | # Is the header present? | |
dd4f3dd8 CR |
16602 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16603 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 16604 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16605 | /* confdefs.h. */ |
16606 | _ACEOF | |
16607 | cat confdefs.h >>conftest.$ac_ext | |
16608 | cat >>conftest.$ac_ext <<_ACEOF | |
16609 | /* end confdefs.h. */ | |
16610 | @%:@include <$ac_header> | |
16611 | _ACEOF | |
d3ad40de CR |
16612 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16613 | case "(($ac_try" in | |
16614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16615 | *) ac_try_echo=$ac_try;; | |
16616 | esac | |
dd4f3dd8 CR |
16617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16618 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16619 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
16620 | ac_status=$? |
16621 | grep -v '^ *+' conftest.er1 >conftest.err | |
16622 | rm -f conftest.er1 | |
16623 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16625 | (exit $ac_status); } >/dev/null && { | |
16626 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16627 | test ! -s conftest.err | |
16628 | }; then | |
545f34cf CR |
16629 | ac_header_preproc=yes |
16630 | else | |
dd4f3dd8 | 16631 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16632 | sed 's/^/| /' conftest.$ac_ext >&5 |
16633 | ||
16634 | ac_header_preproc=no | |
16635 | fi | |
d3ad40de | 16636 | |
545f34cf | 16637 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
16638 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16639 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
16640 | |
16641 | # So? What about this header? | |
a82a04b3 CR |
16642 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16643 | yes:no: ) | |
dd4f3dd8 CR |
16644 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16645 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16646 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16647 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 16648 | ac_header_preproc=yes |
545f34cf | 16649 | ;; |
a82a04b3 | 16650 | no:yes:* ) |
dd4f3dd8 CR |
16651 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16652 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16653 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16654 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16655 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16656 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16657 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16658 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16659 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16660 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16661 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16662 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 16663 | ( cat <<\_ASBOX |
a82a04b3 CR |
16664 | @%:@@%:@ ------------------------------- @%:@@%:@ |
16665 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
16666 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 16667 | _ASBOX |
d3ad40de | 16668 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
16669 | ;; |
16670 | esac | |
dd4f3dd8 CR |
16671 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16672 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 16673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16674 | $as_echo_n "(cached) " >&6 |
545f34cf | 16675 | else |
a82a04b3 | 16676 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 16677 | fi |
dd4f3dd8 CR |
16678 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16679 | $as_echo "$as_val"'` | |
16680 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16681 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
16682 | |
16683 | fi | |
76af2125 CR |
16684 | if test `eval 'as_val=${'$as_ac_Header'} |
16685 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 16686 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 16687 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
16688 | _ACEOF |
16689 | ||
16690 | fi | |
16691 | ||
16692 | done | |
16693 | ||
16694 | ||
16695 | for ac_header in wchar.h | |
16696 | do | |
dd4f3dd8 | 16697 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 16698 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
16699 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16700 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 16701 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16702 | $as_echo_n "(cached) " >&6 |
545f34cf | 16703 | fi |
dd4f3dd8 CR |
16704 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16705 | $as_echo "$as_val"'` | |
16706 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16707 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
16708 | else |
16709 | # Is the header compilable? | |
dd4f3dd8 CR |
16710 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16711 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 16712 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16713 | /* confdefs.h. */ |
16714 | _ACEOF | |
16715 | cat confdefs.h >>conftest.$ac_ext | |
16716 | cat >>conftest.$ac_ext <<_ACEOF | |
16717 | /* end confdefs.h. */ | |
16718 | $ac_includes_default | |
16719 | @%:@include <$ac_header> | |
16720 | _ACEOF | |
16721 | rm -f conftest.$ac_objext | |
d3ad40de CR |
16722 | if { (ac_try="$ac_compile" |
16723 | case "(($ac_try" in | |
16724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16725 | *) ac_try_echo=$ac_try;; | |
16726 | esac | |
dd4f3dd8 CR |
16727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16728 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16729 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 16730 | ac_status=$? |
a82a04b3 CR |
16731 | grep -v '^ *+' conftest.er1 >conftest.err |
16732 | rm -f conftest.er1 | |
16733 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16735 | (exit $ac_status); } && { | |
16736 | test -z "$ac_c_werror_flag" || | |
16737 | test ! -s conftest.err | |
16738 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
16739 | ac_header_compiler=yes |
16740 | else | |
dd4f3dd8 | 16741 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16742 | sed 's/^/| /' conftest.$ac_ext >&5 |
16743 | ||
d3ad40de | 16744 | ac_header_compiler=no |
545f34cf | 16745 | fi |
d3ad40de CR |
16746 | |
16747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
16748 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16749 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
16750 | |
16751 | # Is the header present? | |
dd4f3dd8 CR |
16752 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16753 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 16754 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16755 | /* confdefs.h. */ |
16756 | _ACEOF | |
16757 | cat confdefs.h >>conftest.$ac_ext | |
16758 | cat >>conftest.$ac_ext <<_ACEOF | |
16759 | /* end confdefs.h. */ | |
16760 | @%:@include <$ac_header> | |
16761 | _ACEOF | |
d3ad40de CR |
16762 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16763 | case "(($ac_try" in | |
16764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16765 | *) ac_try_echo=$ac_try;; | |
16766 | esac | |
dd4f3dd8 CR |
16767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16768 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16769 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
16770 | ac_status=$? |
16771 | grep -v '^ *+' conftest.er1 >conftest.err | |
16772 | rm -f conftest.er1 | |
16773 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16775 | (exit $ac_status); } >/dev/null && { | |
16776 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16777 | test ! -s conftest.err | |
16778 | }; then | |
545f34cf CR |
16779 | ac_header_preproc=yes |
16780 | else | |
dd4f3dd8 | 16781 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16782 | sed 's/^/| /' conftest.$ac_ext >&5 |
16783 | ||
16784 | ac_header_preproc=no | |
16785 | fi | |
d3ad40de | 16786 | |
545f34cf | 16787 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
16788 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16789 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
16790 | |
16791 | # So? What about this header? | |
a82a04b3 CR |
16792 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16793 | yes:no: ) | |
dd4f3dd8 CR |
16794 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16795 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16796 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16797 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 16798 | ac_header_preproc=yes |
545f34cf | 16799 | ;; |
a82a04b3 | 16800 | no:yes:* ) |
dd4f3dd8 CR |
16801 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16802 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16803 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16804 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16805 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16806 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16807 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16808 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16809 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16810 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16811 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16812 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 16813 | ( cat <<\_ASBOX |
a82a04b3 CR |
16814 | @%:@@%:@ ------------------------------- @%:@@%:@ |
16815 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
16816 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 16817 | _ASBOX |
d3ad40de | 16818 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
16819 | ;; |
16820 | esac | |
dd4f3dd8 CR |
16821 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16822 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 16823 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16824 | $as_echo_n "(cached) " >&6 |
545f34cf | 16825 | else |
a82a04b3 | 16826 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 16827 | fi |
dd4f3dd8 CR |
16828 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16829 | $as_echo "$as_val"'` | |
16830 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16831 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
16832 | |
16833 | fi | |
76af2125 CR |
16834 | if test `eval 'as_val=${'$as_ac_Header'} |
16835 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 16836 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 16837 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
16838 | _ACEOF |
16839 | ||
16840 | fi | |
16841 | ||
16842 | done | |
16843 | ||
16844 | ||
16845 | for ac_header in langinfo.h | |
16846 | do | |
dd4f3dd8 | 16847 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d3ad40de | 16848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 CR |
16849 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16850 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 16851 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16852 | $as_echo_n "(cached) " >&6 |
545f34cf | 16853 | fi |
dd4f3dd8 CR |
16854 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16855 | $as_echo "$as_val"'` | |
16856 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16857 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
16858 | else |
16859 | # Is the header compilable? | |
dd4f3dd8 CR |
16860 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16861 | $as_echo_n "checking $ac_header usability... " >&6; } | |
545f34cf | 16862 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16863 | /* confdefs.h. */ |
16864 | _ACEOF | |
16865 | cat confdefs.h >>conftest.$ac_ext | |
16866 | cat >>conftest.$ac_ext <<_ACEOF | |
16867 | /* end confdefs.h. */ | |
16868 | $ac_includes_default | |
16869 | @%:@include <$ac_header> | |
16870 | _ACEOF | |
16871 | rm -f conftest.$ac_objext | |
d3ad40de CR |
16872 | if { (ac_try="$ac_compile" |
16873 | case "(($ac_try" in | |
16874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16875 | *) ac_try_echo=$ac_try;; | |
16876 | esac | |
dd4f3dd8 CR |
16877 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16878 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16879 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 16880 | ac_status=$? |
09767ff0 CR |
16881 | grep -v '^ *+' conftest.er1 >conftest.err |
16882 | rm -f conftest.er1 | |
16883 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16885 | (exit $ac_status); } && { | |
16886 | test -z "$ac_c_werror_flag" || | |
16887 | test ! -s conftest.err | |
16888 | } && test -s conftest.$ac_objext; then | |
2e4498b3 CR |
16889 | ac_header_compiler=yes |
16890 | else | |
dd4f3dd8 | 16891 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
16892 | sed 's/^/| /' conftest.$ac_ext >&5 |
16893 | ||
16894 | ac_header_compiler=no | |
16895 | fi | |
16896 | ||
16897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
16898 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16899 | $as_echo "$ac_header_compiler" >&6; } | |
545f34cf CR |
16900 | |
16901 | # Is the header present? | |
dd4f3dd8 CR |
16902 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16903 | $as_echo_n "checking $ac_header presence... " >&6; } | |
545f34cf | 16904 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
16905 | /* confdefs.h. */ |
16906 | _ACEOF | |
16907 | cat confdefs.h >>conftest.$ac_ext | |
16908 | cat >>conftest.$ac_ext <<_ACEOF | |
16909 | /* end confdefs.h. */ | |
16910 | @%:@include <$ac_header> | |
16911 | _ACEOF | |
d3ad40de CR |
16912 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16913 | case "(($ac_try" in | |
16914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16915 | *) ac_try_echo=$ac_try;; | |
16916 | esac | |
dd4f3dd8 CR |
16917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16918 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 16919 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
545f34cf CR |
16920 | ac_status=$? |
16921 | grep -v '^ *+' conftest.er1 >conftest.err | |
16922 | rm -f conftest.er1 | |
16923 | cat conftest.err >&5 | |
dd4f3dd8 CR |
16924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16925 | (exit $ac_status); } >/dev/null && { | |
16926 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16927 | test ! -s conftest.err | |
16928 | }; then | |
545f34cf CR |
16929 | ac_header_preproc=yes |
16930 | else | |
dd4f3dd8 | 16931 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
16932 | sed 's/^/| /' conftest.$ac_ext >&5 |
16933 | ||
16934 | ac_header_preproc=no | |
16935 | fi | |
d3ad40de | 16936 | |
545f34cf | 16937 | rm -f conftest.err conftest.$ac_ext |
dd4f3dd8 CR |
16938 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16939 | $as_echo "$ac_header_preproc" >&6; } | |
545f34cf CR |
16940 | |
16941 | # So? What about this header? | |
a82a04b3 CR |
16942 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16943 | yes:no: ) | |
dd4f3dd8 CR |
16944 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16945 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16946 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16947 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a82a04b3 | 16948 | ac_header_preproc=yes |
545f34cf | 16949 | ;; |
a82a04b3 | 16950 | no:yes:* ) |
dd4f3dd8 CR |
16951 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16952 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16953 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16954 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16955 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16956 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16957 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16958 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16959 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16960 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16961 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16962 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d3ad40de | 16963 | ( cat <<\_ASBOX |
a82a04b3 CR |
16964 | @%:@@%:@ ------------------------------- @%:@@%:@ |
16965 | @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@ | |
16966 | @%:@@%:@ ------------------------------- @%:@@%:@ | |
545f34cf | 16967 | _ASBOX |
d3ad40de | 16968 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
545f34cf CR |
16969 | ;; |
16970 | esac | |
dd4f3dd8 CR |
16971 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16972 | $as_echo_n "checking for $ac_header... " >&6; } | |
d3ad40de | 16973 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 16974 | $as_echo_n "(cached) " >&6 |
545f34cf | 16975 | else |
a82a04b3 | 16976 | eval "$as_ac_Header=\$ac_header_preproc" |
545f34cf | 16977 | fi |
dd4f3dd8 CR |
16978 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16979 | $as_echo "$as_val"'` | |
16980 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16981 | $as_echo "$ac_res" >&6; } | |
545f34cf CR |
16982 | |
16983 | fi | |
76af2125 CR |
16984 | if test `eval 'as_val=${'$as_ac_Header'} |
16985 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 16986 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 16987 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
545f34cf CR |
16988 | _ACEOF |
16989 | ||
16990 | fi | |
16991 | ||
16992 | done | |
16993 | ||
16994 | ||
dd4f3dd8 CR |
16995 | { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5 |
16996 | $as_echo_n "checking for mbrlen... " >&6; } | |
57a07124 | 16997 | if test "${ac_cv_func_mbrlen+set}" = set; then |
dd4f3dd8 | 16998 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
16999 | else |
17000 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
17001 | /* confdefs.h. */ |
17002 | _ACEOF | |
17003 | cat confdefs.h >>conftest.$ac_ext | |
17004 | cat >>conftest.$ac_ext <<_ACEOF | |
17005 | /* end confdefs.h. */ | |
57a07124 | 17006 | /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen. |
a82a04b3 | 17007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
57a07124 | 17008 | #define mbrlen innocuous_mbrlen |
a82a04b3 | 17009 | |
545f34cf | 17010 | /* System header to define __stub macros and hopefully few prototypes, |
57a07124 | 17011 | which can conflict with char mbrlen (); below. |
545f34cf CR |
17012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17013 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 17014 | |
545f34cf CR |
17015 | #ifdef __STDC__ |
17016 | # include <limits.h> | |
17017 | #else | |
17018 | # include <assert.h> | |
17019 | #endif | |
a82a04b3 | 17020 | |
57a07124 | 17021 | #undef mbrlen |
a82a04b3 | 17022 | |
d3ad40de CR |
17023 | /* Override any GCC internal prototype to avoid an error. |
17024 | Use char because int might match the return type of a GCC | |
17025 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
17026 | #ifdef __cplusplus |
17027 | extern "C" | |
545f34cf | 17028 | #endif |
57a07124 | 17029 | char mbrlen (); |
545f34cf CR |
17030 | /* The GNU C library defines this for functions which it implements |
17031 | to always fail with ENOSYS. Some functions are actually named | |
17032 | something starting with __ and the normal name is an alias. */ | |
57a07124 | 17033 | #if defined __stub_mbrlen || defined __stub___mbrlen |
545f34cf | 17034 | choke me |
545f34cf CR |
17035 | #endif |
17036 | ||
17037 | int | |
17038 | main () | |
17039 | { | |
57a07124 | 17040 | return mbrlen (); |
545f34cf CR |
17041 | ; |
17042 | return 0; | |
17043 | } | |
17044 | _ACEOF | |
17045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17046 | if { (ac_try="$ac_link" |
17047 | case "(($ac_try" in | |
17048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17049 | *) ac_try_echo=$ac_try;; | |
17050 | esac | |
dd4f3dd8 CR |
17051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17052 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17053 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 17054 | ac_status=$? |
a82a04b3 CR |
17055 | grep -v '^ *+' conftest.er1 >conftest.err |
17056 | rm -f conftest.er1 | |
17057 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17059 | (exit $ac_status); } && { | |
17060 | test -z "$ac_c_werror_flag" || | |
17061 | test ! -s conftest.err | |
17062 | } && test -s conftest$ac_exeext && { | |
17063 | test "$cross_compiling" = yes || | |
17064 | $as_test_x conftest$ac_exeext | |
17065 | }; then | |
57a07124 | 17066 | ac_cv_func_mbrlen=yes |
545f34cf | 17067 | else |
dd4f3dd8 | 17068 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
17069 | sed 's/^/| /' conftest.$ac_ext >&5 |
17070 | ||
57a07124 | 17071 | ac_cv_func_mbrlen=no |
545f34cf | 17072 | fi |
d3ad40de | 17073 | |
dd4f3dd8 CR |
17074 | rm -rf conftest.dSYM |
17075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 17076 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 17077 | fi |
dd4f3dd8 CR |
17078 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5 |
17079 | $as_echo "$ac_cv_func_mbrlen" >&6; } | |
76af2125 | 17080 | if test $ac_cv_func_mbrlen = yes; then |
545f34cf | 17081 | cat >>confdefs.h <<\_ACEOF |
57a07124 | 17082 | @%:@define HAVE_MBRLEN 1 |
545f34cf CR |
17083 | _ACEOF |
17084 | ||
17085 | fi | |
17086 | ||
dd4f3dd8 CR |
17087 | { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5 |
17088 | $as_echo_n "checking for mbscmp... " >&6; } | |
57a07124 | 17089 | if test "${ac_cv_func_mbscmp+set}" = set; then |
dd4f3dd8 | 17090 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
17091 | else |
17092 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
17093 | /* confdefs.h. */ |
17094 | _ACEOF | |
17095 | cat confdefs.h >>conftest.$ac_ext | |
17096 | cat >>conftest.$ac_ext <<_ACEOF | |
17097 | /* end confdefs.h. */ | |
57a07124 | 17098 | /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp. |
a82a04b3 | 17099 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
57a07124 | 17100 | #define mbscmp innocuous_mbscmp |
a82a04b3 | 17101 | |
545f34cf | 17102 | /* System header to define __stub macros and hopefully few prototypes, |
57a07124 | 17103 | which can conflict with char mbscmp (); below. |
545f34cf CR |
17104 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17105 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 17106 | |
545f34cf CR |
17107 | #ifdef __STDC__ |
17108 | # include <limits.h> | |
17109 | #else | |
17110 | # include <assert.h> | |
17111 | #endif | |
a82a04b3 | 17112 | |
57a07124 | 17113 | #undef mbscmp |
a82a04b3 | 17114 | |
d3ad40de CR |
17115 | /* Override any GCC internal prototype to avoid an error. |
17116 | Use char because int might match the return type of a GCC | |
17117 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
17118 | #ifdef __cplusplus |
17119 | extern "C" | |
545f34cf | 17120 | #endif |
57a07124 | 17121 | char mbscmp (); |
545f34cf CR |
17122 | /* The GNU C library defines this for functions which it implements |
17123 | to always fail with ENOSYS. Some functions are actually named | |
17124 | something starting with __ and the normal name is an alias. */ | |
57a07124 | 17125 | #if defined __stub_mbscmp || defined __stub___mbscmp |
545f34cf | 17126 | choke me |
545f34cf CR |
17127 | #endif |
17128 | ||
17129 | int | |
17130 | main () | |
17131 | { | |
57a07124 | 17132 | return mbscmp (); |
545f34cf CR |
17133 | ; |
17134 | return 0; | |
17135 | } | |
17136 | _ACEOF | |
17137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17138 | if { (ac_try="$ac_link" |
17139 | case "(($ac_try" in | |
17140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17141 | *) ac_try_echo=$ac_try;; | |
17142 | esac | |
dd4f3dd8 CR |
17143 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17144 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17145 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 17146 | ac_status=$? |
a82a04b3 CR |
17147 | grep -v '^ *+' conftest.er1 >conftest.err |
17148 | rm -f conftest.er1 | |
17149 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17151 | (exit $ac_status); } && { | |
17152 | test -z "$ac_c_werror_flag" || | |
17153 | test ! -s conftest.err | |
17154 | } && test -s conftest$ac_exeext && { | |
17155 | test "$cross_compiling" = yes || | |
17156 | $as_test_x conftest$ac_exeext | |
17157 | }; then | |
57a07124 | 17158 | ac_cv_func_mbscmp=yes |
545f34cf | 17159 | else |
dd4f3dd8 | 17160 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
17161 | sed 's/^/| /' conftest.$ac_ext >&5 |
17162 | ||
57a07124 | 17163 | ac_cv_func_mbscmp=no |
545f34cf | 17164 | fi |
d3ad40de | 17165 | |
dd4f3dd8 CR |
17166 | rm -rf conftest.dSYM |
17167 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 17168 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 17169 | fi |
dd4f3dd8 CR |
17170 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5 |
17171 | $as_echo "$ac_cv_func_mbscmp" >&6; } | |
76af2125 | 17172 | if test $ac_cv_func_mbscmp = yes; then |
545f34cf | 17173 | cat >>confdefs.h <<\_ACEOF |
57a07124 CR |
17174 | @%:@define HAVE_MBSCMP 1 |
17175 | _ACEOF | |
17176 | ||
17177 | fi | |
17178 | ||
dd4f3dd8 CR |
17179 | { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 |
17180 | $as_echo_n "checking for mbsrtowcs... " >&6; } | |
57a07124 | 17181 | if test "${ac_cv_func_mbsrtowcs+set}" = set; then |
dd4f3dd8 | 17182 | $as_echo_n "(cached) " >&6 |
57a07124 CR |
17183 | else |
17184 | cat >conftest.$ac_ext <<_ACEOF | |
17185 | /* confdefs.h. */ | |
17186 | _ACEOF | |
17187 | cat confdefs.h >>conftest.$ac_ext | |
17188 | cat >>conftest.$ac_ext <<_ACEOF | |
17189 | /* end confdefs.h. */ | |
17190 | /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. | |
17191 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17192 | #define mbsrtowcs innocuous_mbsrtowcs | |
17193 | ||
17194 | /* System header to define __stub macros and hopefully few prototypes, | |
17195 | which can conflict with char mbsrtowcs (); below. | |
17196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17197 | <limits.h> exists even on freestanding compilers. */ | |
17198 | ||
17199 | #ifdef __STDC__ | |
17200 | # include <limits.h> | |
17201 | #else | |
17202 | # include <assert.h> | |
17203 | #endif | |
17204 | ||
17205 | #undef mbsrtowcs | |
17206 | ||
17207 | /* Override any GCC internal prototype to avoid an error. | |
17208 | Use char because int might match the return type of a GCC | |
17209 | builtin and then its argument prototype would still apply. */ | |
17210 | #ifdef __cplusplus | |
17211 | extern "C" | |
17212 | #endif | |
17213 | char mbsrtowcs (); | |
17214 | /* The GNU C library defines this for functions which it implements | |
17215 | to always fail with ENOSYS. Some functions are actually named | |
17216 | something starting with __ and the normal name is an alias. */ | |
17217 | #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs | |
17218 | choke me | |
17219 | #endif | |
17220 | ||
17221 | int | |
17222 | main () | |
17223 | { | |
17224 | return mbsrtowcs (); | |
17225 | ; | |
17226 | return 0; | |
17227 | } | |
17228 | _ACEOF | |
17229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17230 | if { (ac_try="$ac_link" | |
17231 | case "(($ac_try" in | |
17232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17233 | *) ac_try_echo=$ac_try;; | |
17234 | esac | |
dd4f3dd8 CR |
17235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17236 | $as_echo "$ac_try_echo") >&5 | |
57a07124 CR |
17237 | (eval "$ac_link") 2>conftest.er1 |
17238 | ac_status=$? | |
17239 | grep -v '^ *+' conftest.er1 >conftest.err | |
17240 | rm -f conftest.er1 | |
17241 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17243 | (exit $ac_status); } && { | |
17244 | test -z "$ac_c_werror_flag" || | |
17245 | test ! -s conftest.err | |
17246 | } && test -s conftest$ac_exeext && { | |
17247 | test "$cross_compiling" = yes || | |
17248 | $as_test_x conftest$ac_exeext | |
17249 | }; then | |
57a07124 CR |
17250 | ac_cv_func_mbsrtowcs=yes |
17251 | else | |
dd4f3dd8 | 17252 | $as_echo "$as_me: failed program was:" >&5 |
57a07124 CR |
17253 | sed 's/^/| /' conftest.$ac_ext >&5 |
17254 | ||
17255 | ac_cv_func_mbsrtowcs=no | |
17256 | fi | |
17257 | ||
dd4f3dd8 CR |
17258 | rm -rf conftest.dSYM |
17259 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
57a07124 CR |
17260 | conftest$ac_exeext conftest.$ac_ext |
17261 | fi | |
dd4f3dd8 CR |
17262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 |
17263 | $as_echo "$ac_cv_func_mbsrtowcs" >&6; } | |
76af2125 | 17264 | if test $ac_cv_func_mbsrtowcs = yes; then |
57a07124 CR |
17265 | cat >>confdefs.h <<\_ACEOF |
17266 | @%:@define HAVE_MBSRTOWCS 1 | |
545f34cf CR |
17267 | _ACEOF |
17268 | ||
17269 | fi | |
17270 | ||
d3ad40de | 17271 | |
dd4f3dd8 CR |
17272 | { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5 |
17273 | $as_echo_n "checking for wcrtomb... " >&6; } | |
d3ad40de | 17274 | if test "${ac_cv_func_wcrtomb+set}" = set; then |
dd4f3dd8 | 17275 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
17276 | else |
17277 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
17278 | /* confdefs.h. */ |
17279 | _ACEOF | |
17280 | cat confdefs.h >>conftest.$ac_ext | |
17281 | cat >>conftest.$ac_ext <<_ACEOF | |
17282 | /* end confdefs.h. */ | |
d3ad40de | 17283 | /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb. |
a82a04b3 | 17284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
d3ad40de | 17285 | #define wcrtomb innocuous_wcrtomb |
a82a04b3 | 17286 | |
545f34cf | 17287 | /* System header to define __stub macros and hopefully few prototypes, |
d3ad40de | 17288 | which can conflict with char wcrtomb (); below. |
545f34cf CR |
17289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17290 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 17291 | |
545f34cf CR |
17292 | #ifdef __STDC__ |
17293 | # include <limits.h> | |
17294 | #else | |
17295 | # include <assert.h> | |
17296 | #endif | |
a82a04b3 | 17297 | |
d3ad40de | 17298 | #undef wcrtomb |
a82a04b3 | 17299 | |
d3ad40de CR |
17300 | /* Override any GCC internal prototype to avoid an error. |
17301 | Use char because int might match the return type of a GCC | |
17302 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
17303 | #ifdef __cplusplus |
17304 | extern "C" | |
545f34cf | 17305 | #endif |
d3ad40de | 17306 | char wcrtomb (); |
545f34cf CR |
17307 | /* The GNU C library defines this for functions which it implements |
17308 | to always fail with ENOSYS. Some functions are actually named | |
17309 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 17310 | #if defined __stub_wcrtomb || defined __stub___wcrtomb |
545f34cf | 17311 | choke me |
545f34cf CR |
17312 | #endif |
17313 | ||
17314 | int | |
17315 | main () | |
17316 | { | |
d3ad40de | 17317 | return wcrtomb (); |
545f34cf CR |
17318 | ; |
17319 | return 0; | |
17320 | } | |
17321 | _ACEOF | |
17322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17323 | if { (ac_try="$ac_link" |
17324 | case "(($ac_try" in | |
17325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17326 | *) ac_try_echo=$ac_try;; | |
17327 | esac | |
dd4f3dd8 CR |
17328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17329 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17330 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 17331 | ac_status=$? |
a82a04b3 CR |
17332 | grep -v '^ *+' conftest.er1 >conftest.err |
17333 | rm -f conftest.er1 | |
17334 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17336 | (exit $ac_status); } && { | |
17337 | test -z "$ac_c_werror_flag" || | |
17338 | test ! -s conftest.err | |
17339 | } && test -s conftest$ac_exeext && { | |
17340 | test "$cross_compiling" = yes || | |
17341 | $as_test_x conftest$ac_exeext | |
17342 | }; then | |
d3ad40de | 17343 | ac_cv_func_wcrtomb=yes |
545f34cf | 17344 | else |
dd4f3dd8 | 17345 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
17346 | sed 's/^/| /' conftest.$ac_ext >&5 |
17347 | ||
d3ad40de | 17348 | ac_cv_func_wcrtomb=no |
545f34cf | 17349 | fi |
d3ad40de | 17350 | |
dd4f3dd8 CR |
17351 | rm -rf conftest.dSYM |
17352 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 17353 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 17354 | fi |
dd4f3dd8 CR |
17355 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5 |
17356 | $as_echo "$ac_cv_func_wcrtomb" >&6; } | |
76af2125 | 17357 | if test $ac_cv_func_wcrtomb = yes; then |
545f34cf | 17358 | cat >>confdefs.h <<\_ACEOF |
d3ad40de | 17359 | @%:@define HAVE_WCRTOMB 1 |
545f34cf CR |
17360 | _ACEOF |
17361 | ||
17362 | fi | |
17363 | ||
dd4f3dd8 CR |
17364 | { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5 |
17365 | $as_echo_n "checking for wcscoll... " >&6; } | |
d3ad40de | 17366 | if test "${ac_cv_func_wcscoll+set}" = set; then |
dd4f3dd8 | 17367 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
17368 | else |
17369 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
17370 | /* confdefs.h. */ |
17371 | _ACEOF | |
17372 | cat confdefs.h >>conftest.$ac_ext | |
17373 | cat >>conftest.$ac_ext <<_ACEOF | |
17374 | /* end confdefs.h. */ | |
d3ad40de | 17375 | /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll. |
a82a04b3 | 17376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
d3ad40de | 17377 | #define wcscoll innocuous_wcscoll |
a82a04b3 | 17378 | |
545f34cf | 17379 | /* System header to define __stub macros and hopefully few prototypes, |
d3ad40de | 17380 | which can conflict with char wcscoll (); below. |
545f34cf CR |
17381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17382 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 17383 | |
545f34cf CR |
17384 | #ifdef __STDC__ |
17385 | # include <limits.h> | |
17386 | #else | |
17387 | # include <assert.h> | |
17388 | #endif | |
a82a04b3 | 17389 | |
d3ad40de | 17390 | #undef wcscoll |
a82a04b3 | 17391 | |
d3ad40de CR |
17392 | /* Override any GCC internal prototype to avoid an error. |
17393 | Use char because int might match the return type of a GCC | |
17394 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
17395 | #ifdef __cplusplus |
17396 | extern "C" | |
545f34cf | 17397 | #endif |
d3ad40de | 17398 | char wcscoll (); |
545f34cf CR |
17399 | /* The GNU C library defines this for functions which it implements |
17400 | to always fail with ENOSYS. Some functions are actually named | |
17401 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 17402 | #if defined __stub_wcscoll || defined __stub___wcscoll |
545f34cf | 17403 | choke me |
545f34cf CR |
17404 | #endif |
17405 | ||
17406 | int | |
17407 | main () | |
17408 | { | |
d3ad40de | 17409 | return wcscoll (); |
545f34cf CR |
17410 | ; |
17411 | return 0; | |
17412 | } | |
17413 | _ACEOF | |
17414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17415 | if { (ac_try="$ac_link" |
17416 | case "(($ac_try" in | |
17417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17418 | *) ac_try_echo=$ac_try;; | |
17419 | esac | |
dd4f3dd8 CR |
17420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17421 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17422 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 17423 | ac_status=$? |
a82a04b3 CR |
17424 | grep -v '^ *+' conftest.er1 >conftest.err |
17425 | rm -f conftest.er1 | |
17426 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17428 | (exit $ac_status); } && { | |
17429 | test -z "$ac_c_werror_flag" || | |
17430 | test ! -s conftest.err | |
17431 | } && test -s conftest$ac_exeext && { | |
17432 | test "$cross_compiling" = yes || | |
17433 | $as_test_x conftest$ac_exeext | |
17434 | }; then | |
d3ad40de | 17435 | ac_cv_func_wcscoll=yes |
545f34cf | 17436 | else |
dd4f3dd8 | 17437 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
17438 | sed 's/^/| /' conftest.$ac_ext >&5 |
17439 | ||
d3ad40de | 17440 | ac_cv_func_wcscoll=no |
545f34cf | 17441 | fi |
d3ad40de | 17442 | |
dd4f3dd8 CR |
17443 | rm -rf conftest.dSYM |
17444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 17445 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 17446 | fi |
dd4f3dd8 CR |
17447 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5 |
17448 | $as_echo "$ac_cv_func_wcscoll" >&6; } | |
76af2125 | 17449 | if test $ac_cv_func_wcscoll = yes; then |
545f34cf | 17450 | cat >>confdefs.h <<\_ACEOF |
d3ad40de | 17451 | @%:@define HAVE_WCSCOLL 1 |
545f34cf CR |
17452 | _ACEOF |
17453 | ||
17454 | fi | |
17455 | ||
dd4f3dd8 CR |
17456 | { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5 |
17457 | $as_echo_n "checking for wcsdup... " >&6; } | |
d3ad40de | 17458 | if test "${ac_cv_func_wcsdup+set}" = set; then |
dd4f3dd8 | 17459 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
17460 | else |
17461 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
17462 | /* confdefs.h. */ |
17463 | _ACEOF | |
17464 | cat confdefs.h >>conftest.$ac_ext | |
17465 | cat >>conftest.$ac_ext <<_ACEOF | |
17466 | /* end confdefs.h. */ | |
d3ad40de | 17467 | /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup. |
a82a04b3 | 17468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
d3ad40de | 17469 | #define wcsdup innocuous_wcsdup |
a82a04b3 | 17470 | |
545f34cf | 17471 | /* System header to define __stub macros and hopefully few prototypes, |
d3ad40de | 17472 | which can conflict with char wcsdup (); below. |
545f34cf CR |
17473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17474 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 17475 | |
545f34cf CR |
17476 | #ifdef __STDC__ |
17477 | # include <limits.h> | |
17478 | #else | |
17479 | # include <assert.h> | |
17480 | #endif | |
a82a04b3 | 17481 | |
d3ad40de | 17482 | #undef wcsdup |
a82a04b3 | 17483 | |
d3ad40de CR |
17484 | /* Override any GCC internal prototype to avoid an error. |
17485 | Use char because int might match the return type of a GCC | |
17486 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
17487 | #ifdef __cplusplus |
17488 | extern "C" | |
545f34cf | 17489 | #endif |
d3ad40de | 17490 | char wcsdup (); |
545f34cf CR |
17491 | /* The GNU C library defines this for functions which it implements |
17492 | to always fail with ENOSYS. Some functions are actually named | |
17493 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 17494 | #if defined __stub_wcsdup || defined __stub___wcsdup |
545f34cf | 17495 | choke me |
545f34cf CR |
17496 | #endif |
17497 | ||
17498 | int | |
17499 | main () | |
17500 | { | |
d3ad40de | 17501 | return wcsdup (); |
545f34cf CR |
17502 | ; |
17503 | return 0; | |
17504 | } | |
17505 | _ACEOF | |
17506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17507 | if { (ac_try="$ac_link" |
17508 | case "(($ac_try" in | |
17509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17510 | *) ac_try_echo=$ac_try;; | |
17511 | esac | |
dd4f3dd8 CR |
17512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17513 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17514 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 17515 | ac_status=$? |
a82a04b3 CR |
17516 | grep -v '^ *+' conftest.er1 >conftest.err |
17517 | rm -f conftest.er1 | |
17518 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17520 | (exit $ac_status); } && { | |
17521 | test -z "$ac_c_werror_flag" || | |
17522 | test ! -s conftest.err | |
17523 | } && test -s conftest$ac_exeext && { | |
17524 | test "$cross_compiling" = yes || | |
17525 | $as_test_x conftest$ac_exeext | |
17526 | }; then | |
d3ad40de | 17527 | ac_cv_func_wcsdup=yes |
545f34cf | 17528 | else |
dd4f3dd8 | 17529 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
17530 | sed 's/^/| /' conftest.$ac_ext >&5 |
17531 | ||
d3ad40de | 17532 | ac_cv_func_wcsdup=no |
545f34cf | 17533 | fi |
d3ad40de | 17534 | |
dd4f3dd8 CR |
17535 | rm -rf conftest.dSYM |
17536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 17537 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 17538 | fi |
dd4f3dd8 CR |
17539 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5 |
17540 | $as_echo "$ac_cv_func_wcsdup" >&6; } | |
76af2125 | 17541 | if test $ac_cv_func_wcsdup = yes; then |
545f34cf | 17542 | cat >>confdefs.h <<\_ACEOF |
d3ad40de | 17543 | @%:@define HAVE_WCSDUP 1 |
545f34cf CR |
17544 | _ACEOF |
17545 | ||
17546 | fi | |
17547 | ||
dd4f3dd8 CR |
17548 | { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5 |
17549 | $as_echo_n "checking for wcwidth... " >&6; } | |
d3ad40de | 17550 | if test "${ac_cv_func_wcwidth+set}" = set; then |
dd4f3dd8 | 17551 | $as_echo_n "(cached) " >&6 |
f9732a04 CR |
17552 | else |
17553 | cat >conftest.$ac_ext <<_ACEOF | |
f9732a04 CR |
17554 | /* confdefs.h. */ |
17555 | _ACEOF | |
17556 | cat confdefs.h >>conftest.$ac_ext | |
17557 | cat >>conftest.$ac_ext <<_ACEOF | |
17558 | /* end confdefs.h. */ | |
d3ad40de | 17559 | /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. |
a82a04b3 | 17560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
d3ad40de | 17561 | #define wcwidth innocuous_wcwidth |
a82a04b3 | 17562 | |
f9732a04 | 17563 | /* System header to define __stub macros and hopefully few prototypes, |
d3ad40de | 17564 | which can conflict with char wcwidth (); below. |
f9732a04 CR |
17565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17566 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 17567 | |
f9732a04 CR |
17568 | #ifdef __STDC__ |
17569 | # include <limits.h> | |
17570 | #else | |
17571 | # include <assert.h> | |
17572 | #endif | |
a82a04b3 | 17573 | |
d3ad40de | 17574 | #undef wcwidth |
a82a04b3 | 17575 | |
d3ad40de CR |
17576 | /* Override any GCC internal prototype to avoid an error. |
17577 | Use char because int might match the return type of a GCC | |
17578 | builtin and then its argument prototype would still apply. */ | |
f9732a04 CR |
17579 | #ifdef __cplusplus |
17580 | extern "C" | |
f9732a04 | 17581 | #endif |
d3ad40de | 17582 | char wcwidth (); |
f9732a04 CR |
17583 | /* The GNU C library defines this for functions which it implements |
17584 | to always fail with ENOSYS. Some functions are actually named | |
17585 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 17586 | #if defined __stub_wcwidth || defined __stub___wcwidth |
f9732a04 | 17587 | choke me |
f9732a04 CR |
17588 | #endif |
17589 | ||
17590 | int | |
17591 | main () | |
17592 | { | |
d3ad40de | 17593 | return wcwidth (); |
f9732a04 CR |
17594 | ; |
17595 | return 0; | |
17596 | } | |
17597 | _ACEOF | |
17598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17599 | if { (ac_try="$ac_link" |
17600 | case "(($ac_try" in | |
17601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17602 | *) ac_try_echo=$ac_try;; | |
17603 | esac | |
dd4f3dd8 CR |
17604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17605 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17606 | (eval "$ac_link") 2>conftest.er1 |
f9732a04 | 17607 | ac_status=$? |
a82a04b3 CR |
17608 | grep -v '^ *+' conftest.er1 >conftest.err |
17609 | rm -f conftest.er1 | |
17610 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17612 | (exit $ac_status); } && { | |
17613 | test -z "$ac_c_werror_flag" || | |
17614 | test ! -s conftest.err | |
17615 | } && test -s conftest$ac_exeext && { | |
17616 | test "$cross_compiling" = yes || | |
17617 | $as_test_x conftest$ac_exeext | |
17618 | }; then | |
d3ad40de | 17619 | ac_cv_func_wcwidth=yes |
f9732a04 | 17620 | else |
dd4f3dd8 | 17621 | $as_echo "$as_me: failed program was:" >&5 |
f9732a04 CR |
17622 | sed 's/^/| /' conftest.$ac_ext >&5 |
17623 | ||
d3ad40de | 17624 | ac_cv_func_wcwidth=no |
f9732a04 | 17625 | fi |
d3ad40de | 17626 | |
dd4f3dd8 CR |
17627 | rm -rf conftest.dSYM |
17628 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 17629 | conftest$ac_exeext conftest.$ac_ext |
f9732a04 | 17630 | fi |
dd4f3dd8 CR |
17631 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 |
17632 | $as_echo "$ac_cv_func_wcwidth" >&6; } | |
76af2125 | 17633 | if test $ac_cv_func_wcwidth = yes; then |
f9732a04 | 17634 | cat >>confdefs.h <<\_ACEOF |
d3ad40de | 17635 | @%:@define HAVE_WCWIDTH 1 |
f9732a04 CR |
17636 | _ACEOF |
17637 | ||
17638 | fi | |
17639 | ||
dd4f3dd8 CR |
17640 | { $as_echo "$as_me:$LINENO: checking for wctype" >&5 |
17641 | $as_echo_n "checking for wctype... " >&6; } | |
5e4a95c7 | 17642 | if test "${ac_cv_func_wctype+set}" = set; then |
dd4f3dd8 | 17643 | $as_echo_n "(cached) " >&6 |
5e4a95c7 CR |
17644 | else |
17645 | cat >conftest.$ac_ext <<_ACEOF | |
17646 | /* confdefs.h. */ | |
17647 | _ACEOF | |
17648 | cat confdefs.h >>conftest.$ac_ext | |
17649 | cat >>conftest.$ac_ext <<_ACEOF | |
17650 | /* end confdefs.h. */ | |
17651 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
17652 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17653 | #define wctype innocuous_wctype | |
17654 | ||
17655 | /* System header to define __stub macros and hopefully few prototypes, | |
17656 | which can conflict with char wctype (); below. | |
17657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17658 | <limits.h> exists even on freestanding compilers. */ | |
17659 | ||
17660 | #ifdef __STDC__ | |
17661 | # include <limits.h> | |
17662 | #else | |
17663 | # include <assert.h> | |
17664 | #endif | |
17665 | ||
17666 | #undef wctype | |
17667 | ||
d3ad40de CR |
17668 | /* Override any GCC internal prototype to avoid an error. |
17669 | Use char because int might match the return type of a GCC | |
17670 | builtin and then its argument prototype would still apply. */ | |
5e4a95c7 CR |
17671 | #ifdef __cplusplus |
17672 | extern "C" | |
5e4a95c7 | 17673 | #endif |
5e4a95c7 CR |
17674 | char wctype (); |
17675 | /* The GNU C library defines this for functions which it implements | |
17676 | to always fail with ENOSYS. Some functions are actually named | |
17677 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 17678 | #if defined __stub_wctype || defined __stub___wctype |
5e4a95c7 | 17679 | choke me |
5e4a95c7 CR |
17680 | #endif |
17681 | ||
17682 | int | |
17683 | main () | |
17684 | { | |
d3ad40de | 17685 | return wctype (); |
5e4a95c7 CR |
17686 | ; |
17687 | return 0; | |
17688 | } | |
17689 | _ACEOF | |
17690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17691 | if { (ac_try="$ac_link" |
17692 | case "(($ac_try" in | |
17693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17694 | *) ac_try_echo=$ac_try;; | |
17695 | esac | |
dd4f3dd8 CR |
17696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17697 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17698 | (eval "$ac_link") 2>conftest.er1 |
5e4a95c7 CR |
17699 | ac_status=$? |
17700 | grep -v '^ *+' conftest.er1 >conftest.err | |
17701 | rm -f conftest.er1 | |
17702 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17704 | (exit $ac_status); } && { | |
17705 | test -z "$ac_c_werror_flag" || | |
17706 | test ! -s conftest.err | |
17707 | } && test -s conftest$ac_exeext && { | |
17708 | test "$cross_compiling" = yes || | |
17709 | $as_test_x conftest$ac_exeext | |
17710 | }; then | |
5e4a95c7 CR |
17711 | ac_cv_func_wctype=yes |
17712 | else | |
dd4f3dd8 | 17713 | $as_echo "$as_me: failed program was:" >&5 |
5e4a95c7 CR |
17714 | sed 's/^/| /' conftest.$ac_ext >&5 |
17715 | ||
d3ad40de | 17716 | ac_cv_func_wctype=no |
5e4a95c7 | 17717 | fi |
d3ad40de | 17718 | |
dd4f3dd8 CR |
17719 | rm -rf conftest.dSYM |
17720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5e4a95c7 CR |
17721 | conftest$ac_exeext conftest.$ac_ext |
17722 | fi | |
dd4f3dd8 CR |
17723 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
17724 | $as_echo "$ac_cv_func_wctype" >&6; } | |
76af2125 | 17725 | if test $ac_cv_func_wctype = yes; then |
5e4a95c7 CR |
17726 | cat >>confdefs.h <<\_ACEOF |
17727 | @%:@define HAVE_WCTYPE 1 | |
17728 | _ACEOF | |
17729 | ||
17730 | fi | |
17731 | ||
545f34cf | 17732 | |
d3ad40de | 17733 | |
dd4f3dd8 CR |
17734 | { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 |
17735 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } | |
d3ad40de | 17736 | if test "${ac_cv_func_mbrtowc+set}" = set; then |
dd4f3dd8 | 17737 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
17738 | else |
17739 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
17740 | /* confdefs.h. */ |
17741 | _ACEOF | |
17742 | cat confdefs.h >>conftest.$ac_ext | |
17743 | cat >>conftest.$ac_ext <<_ACEOF | |
17744 | /* end confdefs.h. */ | |
d3ad40de | 17745 | @%:@include <wchar.h> |
545f34cf CR |
17746 | int |
17747 | main () | |
17748 | { | |
d3ad40de CR |
17749 | wchar_t wc; |
17750 | char const s[] = ""; | |
17751 | size_t n = 1; | |
17752 | mbstate_t state; | |
17753 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); | |
545f34cf CR |
17754 | ; |
17755 | return 0; | |
17756 | } | |
17757 | _ACEOF | |
d3ad40de CR |
17758 | rm -f conftest.$ac_objext conftest$ac_exeext |
17759 | if { (ac_try="$ac_link" | |
17760 | case "(($ac_try" in | |
17761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17762 | *) ac_try_echo=$ac_try;; | |
17763 | esac | |
dd4f3dd8 CR |
17764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17765 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17766 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 17767 | ac_status=$? |
a82a04b3 CR |
17768 | grep -v '^ *+' conftest.er1 >conftest.err |
17769 | rm -f conftest.er1 | |
17770 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17772 | (exit $ac_status); } && { | |
17773 | test -z "$ac_c_werror_flag" || | |
17774 | test ! -s conftest.err | |
17775 | } && test -s conftest$ac_exeext && { | |
17776 | test "$cross_compiling" = yes || | |
17777 | $as_test_x conftest$ac_exeext | |
17778 | }; then | |
d3ad40de | 17779 | ac_cv_func_mbrtowc=yes |
545f34cf | 17780 | else |
dd4f3dd8 | 17781 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
17782 | sed 's/^/| /' conftest.$ac_ext >&5 |
17783 | ||
d3ad40de | 17784 | ac_cv_func_mbrtowc=no |
545f34cf | 17785 | fi |
d3ad40de | 17786 | |
dd4f3dd8 CR |
17787 | rm -rf conftest.dSYM |
17788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d3ad40de | 17789 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 17790 | fi |
dd4f3dd8 CR |
17791 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 |
17792 | $as_echo "$ac_cv_func_mbrtowc" >&6; } | |
d3ad40de CR |
17793 | if test $ac_cv_func_mbrtowc = yes; then |
17794 | ||
17795 | cat >>confdefs.h <<\_ACEOF | |
17796 | @%:@define HAVE_MBRTOWC 1 | |
17797 | _ACEOF | |
17798 | ||
17799 | fi | |
17800 | ||
17801 | if test $ac_cv_func_mbrtowc = yes; then | |
545f34cf CR |
17802 | cat >>confdefs.h <<\_ACEOF |
17803 | @%:@define HAVE_MBSTATE_T 1 | |
17804 | _ACEOF | |
17805 | ||
17806 | fi | |
17807 | ||
d3ad40de CR |
17808 | |
17809 | ||
17810 | ||
17811 | ||
17812 | ||
17813 | for ac_func in iswlower iswupper towlower towupper iswctype | |
17814 | do | |
dd4f3dd8 CR |
17815 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17816 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17817 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 17818 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 17819 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
17820 | else |
17821 | cat >conftest.$ac_ext <<_ACEOF | |
17822 | /* confdefs.h. */ | |
17823 | _ACEOF | |
17824 | cat confdefs.h >>conftest.$ac_ext | |
17825 | cat >>conftest.$ac_ext <<_ACEOF | |
17826 | /* end confdefs.h. */ | |
17827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17829 | #define $ac_func innocuous_$ac_func | |
17830 | ||
17831 | /* System header to define __stub macros and hopefully few prototypes, | |
17832 | which can conflict with char $ac_func (); below. | |
17833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17834 | <limits.h> exists even on freestanding compilers. */ | |
17835 | ||
17836 | #ifdef __STDC__ | |
17837 | # include <limits.h> | |
17838 | #else | |
17839 | # include <assert.h> | |
17840 | #endif | |
17841 | ||
17842 | #undef $ac_func | |
17843 | ||
17844 | /* Override any GCC internal prototype to avoid an error. | |
17845 | Use char because int might match the return type of a GCC | |
17846 | builtin and then its argument prototype would still apply. */ | |
17847 | #ifdef __cplusplus | |
17848 | extern "C" | |
17849 | #endif | |
17850 | char $ac_func (); | |
17851 | /* The GNU C library defines this for functions which it implements | |
17852 | to always fail with ENOSYS. Some functions are actually named | |
17853 | something starting with __ and the normal name is an alias. */ | |
17854 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
17855 | choke me | |
17856 | #endif | |
17857 | ||
17858 | int | |
17859 | main () | |
17860 | { | |
17861 | return $ac_func (); | |
17862 | ; | |
17863 | return 0; | |
17864 | } | |
17865 | _ACEOF | |
17866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17867 | if { (ac_try="$ac_link" | |
17868 | case "(($ac_try" in | |
17869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17870 | *) ac_try_echo=$ac_try;; | |
17871 | esac | |
dd4f3dd8 CR |
17872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17873 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de CR |
17874 | (eval "$ac_link") 2>conftest.er1 |
17875 | ac_status=$? | |
17876 | grep -v '^ *+' conftest.er1 >conftest.err | |
17877 | rm -f conftest.er1 | |
17878 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17880 | (exit $ac_status); } && { | |
17881 | test -z "$ac_c_werror_flag" || | |
17882 | test ! -s conftest.err | |
17883 | } && test -s conftest$ac_exeext && { | |
17884 | test "$cross_compiling" = yes || | |
17885 | $as_test_x conftest$ac_exeext | |
17886 | }; then | |
d3ad40de CR |
17887 | eval "$as_ac_var=yes" |
17888 | else | |
dd4f3dd8 | 17889 | $as_echo "$as_me: failed program was:" >&5 |
d3ad40de CR |
17890 | sed 's/^/| /' conftest.$ac_ext >&5 |
17891 | ||
17892 | eval "$as_ac_var=no" | |
17893 | fi | |
17894 | ||
dd4f3dd8 CR |
17895 | rm -rf conftest.dSYM |
17896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d3ad40de CR |
17897 | conftest$ac_exeext conftest.$ac_ext |
17898 | fi | |
dd4f3dd8 CR |
17899 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17900 | $as_echo "$as_val"'` | |
17901 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17902 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
17903 | if test `eval 'as_val=${'$as_ac_var'} |
17904 | $as_echo "$as_val"'` = yes; then | |
d3ad40de | 17905 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 17906 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d3ad40de CR |
17907 | _ACEOF |
17908 | ||
17909 | fi | |
17910 | done | |
17911 | ||
17912 | ||
dd4f3dd8 CR |
17913 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
17914 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
545f34cf | 17915 | if test "${bash_cv_langinfo_codeset+set}" = set; then |
dd4f3dd8 | 17916 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
17917 | else |
17918 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
17919 | /* confdefs.h. */ |
17920 | _ACEOF | |
17921 | cat confdefs.h >>conftest.$ac_ext | |
17922 | cat >>conftest.$ac_ext <<_ACEOF | |
17923 | /* end confdefs.h. */ | |
17924 | #include <langinfo.h> | |
17925 | int | |
17926 | main () | |
17927 | { | |
17928 | char* cs = nl_langinfo(CODESET); | |
17929 | ; | |
17930 | return 0; | |
17931 | } | |
17932 | _ACEOF | |
17933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
17934 | if { (ac_try="$ac_link" |
17935 | case "(($ac_try" in | |
17936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17937 | *) ac_try_echo=$ac_try;; | |
17938 | esac | |
dd4f3dd8 CR |
17939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17940 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 17941 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 17942 | ac_status=$? |
a82a04b3 CR |
17943 | grep -v '^ *+' conftest.er1 >conftest.err |
17944 | rm -f conftest.er1 | |
17945 | cat conftest.err >&5 | |
dd4f3dd8 CR |
17946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17947 | (exit $ac_status); } && { | |
17948 | test -z "$ac_c_werror_flag" || | |
17949 | test ! -s conftest.err | |
17950 | } && test -s conftest$ac_exeext && { | |
17951 | test "$cross_compiling" = yes || | |
17952 | $as_test_x conftest$ac_exeext | |
17953 | }; then | |
545f34cf CR |
17954 | bash_cv_langinfo_codeset=yes |
17955 | else | |
dd4f3dd8 | 17956 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
17957 | sed 's/^/| /' conftest.$ac_ext >&5 |
17958 | ||
d3ad40de | 17959 | bash_cv_langinfo_codeset=no |
545f34cf | 17960 | fi |
d3ad40de | 17961 | |
dd4f3dd8 CR |
17962 | rm -rf conftest.dSYM |
17963 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 17964 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 17965 | fi |
dd4f3dd8 CR |
17966 | { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 |
17967 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
545f34cf CR |
17968 | if test $bash_cv_langinfo_codeset = yes; then |
17969 | cat >>confdefs.h <<\_ACEOF | |
17970 | @%:@define HAVE_LANGINFO_CODESET 1 | |
17971 | _ACEOF | |
17972 | ||
17973 | fi | |
17974 | ||
dd4f3dd8 CR |
17975 | { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5 |
17976 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } | |
d3ad40de | 17977 | if test "${bash_cv_type_wchar_t+set}" = set; then |
dd4f3dd8 | 17978 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
17979 | else |
17980 | cat >conftest.$ac_ext <<_ACEOF | |
17981 | /* confdefs.h. */ | |
17982 | _ACEOF | |
17983 | cat confdefs.h >>conftest.$ac_ext | |
17984 | cat >>conftest.$ac_ext <<_ACEOF | |
17985 | /* end confdefs.h. */ | |
17986 | #include <wchar.h> | |
17987 | ||
17988 | int | |
17989 | main () | |
17990 | { | |
17991 | ||
17992 | wchar_t foo; | |
17993 | foo = 0; | |
17994 | ||
17995 | ; | |
17996 | return 0; | |
17997 | } | |
17998 | _ACEOF | |
17999 | rm -f conftest.$ac_objext | |
18000 | if { (ac_try="$ac_compile" | |
18001 | case "(($ac_try" in | |
18002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18003 | *) ac_try_echo=$ac_try;; | |
18004 | esac | |
dd4f3dd8 CR |
18005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18006 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de CR |
18007 | (eval "$ac_compile") 2>conftest.er1 |
18008 | ac_status=$? | |
18009 | grep -v '^ *+' conftest.er1 >conftest.err | |
18010 | rm -f conftest.er1 | |
18011 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18013 | (exit $ac_status); } && { | |
18014 | test -z "$ac_c_werror_flag" || | |
18015 | test ! -s conftest.err | |
18016 | } && test -s conftest.$ac_objext; then | |
d3ad40de CR |
18017 | bash_cv_type_wchar_t=yes |
18018 | else | |
dd4f3dd8 | 18019 | $as_echo "$as_me: failed program was:" >&5 |
d3ad40de CR |
18020 | sed 's/^/| /' conftest.$ac_ext >&5 |
18021 | ||
18022 | bash_cv_type_wchar_t=no | |
18023 | fi | |
18024 | ||
18025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18026 | fi | |
dd4f3dd8 CR |
18027 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5 |
18028 | $as_echo "$bash_cv_type_wchar_t" >&6; } | |
d3ad40de CR |
18029 | if test $bash_cv_type_wchar_t = yes; then |
18030 | ||
18031 | cat >>confdefs.h <<\_ACEOF | |
18032 | @%:@define HAVE_WCHAR_T 1 | |
18033 | _ACEOF | |
18034 | ||
18035 | fi | |
18036 | ||
dd4f3dd8 CR |
18037 | { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5 |
18038 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } | |
d3ad40de | 18039 | if test "${bash_cv_type_wctype_t+set}" = set; then |
dd4f3dd8 | 18040 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
18041 | else |
18042 | cat >conftest.$ac_ext <<_ACEOF | |
18043 | /* confdefs.h. */ | |
18044 | _ACEOF | |
18045 | cat confdefs.h >>conftest.$ac_ext | |
18046 | cat >>conftest.$ac_ext <<_ACEOF | |
18047 | /* end confdefs.h. */ | |
18048 | #include <wctype.h> | |
18049 | int | |
18050 | main () | |
18051 | { | |
18052 | ||
18053 | wctype_t foo; | |
18054 | foo = 0; | |
18055 | ||
18056 | ; | |
18057 | return 0; | |
18058 | } | |
18059 | _ACEOF | |
18060 | rm -f conftest.$ac_objext | |
18061 | if { (ac_try="$ac_compile" | |
18062 | case "(($ac_try" in | |
18063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18064 | *) ac_try_echo=$ac_try;; | |
18065 | esac | |
dd4f3dd8 CR |
18066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18067 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de CR |
18068 | (eval "$ac_compile") 2>conftest.er1 |
18069 | ac_status=$? | |
18070 | grep -v '^ *+' conftest.er1 >conftest.err | |
18071 | rm -f conftest.er1 | |
18072 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18074 | (exit $ac_status); } && { | |
18075 | test -z "$ac_c_werror_flag" || | |
18076 | test ! -s conftest.err | |
18077 | } && test -s conftest.$ac_objext; then | |
d3ad40de CR |
18078 | bash_cv_type_wctype_t=yes |
18079 | else | |
dd4f3dd8 | 18080 | $as_echo "$as_me: failed program was:" >&5 |
d3ad40de CR |
18081 | sed 's/^/| /' conftest.$ac_ext >&5 |
18082 | ||
18083 | bash_cv_type_wctype_t=no | |
18084 | fi | |
18085 | ||
18086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18087 | fi | |
dd4f3dd8 CR |
18088 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5 |
18089 | $as_echo "$bash_cv_type_wctype_t" >&6; } | |
d3ad40de CR |
18090 | if test $bash_cv_type_wctype_t = yes; then |
18091 | ||
18092 | cat >>confdefs.h <<\_ACEOF | |
18093 | @%:@define HAVE_WCTYPE_T 1 | |
18094 | _ACEOF | |
18095 | ||
18096 | fi | |
18097 | ||
dd4f3dd8 CR |
18098 | { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5 |
18099 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } | |
d3ad40de | 18100 | if test "${bash_cv_type_wint_t+set}" = set; then |
dd4f3dd8 | 18101 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
18102 | else |
18103 | cat >conftest.$ac_ext <<_ACEOF | |
18104 | /* confdefs.h. */ | |
18105 | _ACEOF | |
18106 | cat confdefs.h >>conftest.$ac_ext | |
18107 | cat >>conftest.$ac_ext <<_ACEOF | |
18108 | /* end confdefs.h. */ | |
18109 | #include <wctype.h> | |
18110 | int | |
18111 | main () | |
18112 | { | |
18113 | ||
18114 | wint_t foo; | |
18115 | foo = 0; | |
18116 | ||
18117 | ; | |
18118 | return 0; | |
18119 | } | |
18120 | _ACEOF | |
18121 | rm -f conftest.$ac_objext | |
18122 | if { (ac_try="$ac_compile" | |
18123 | case "(($ac_try" in | |
18124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18125 | *) ac_try_echo=$ac_try;; | |
18126 | esac | |
dd4f3dd8 CR |
18127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18128 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de CR |
18129 | (eval "$ac_compile") 2>conftest.er1 |
18130 | ac_status=$? | |
18131 | grep -v '^ *+' conftest.er1 >conftest.err | |
18132 | rm -f conftest.er1 | |
18133 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18135 | (exit $ac_status); } && { | |
18136 | test -z "$ac_c_werror_flag" || | |
18137 | test ! -s conftest.err | |
18138 | } && test -s conftest.$ac_objext; then | |
2e4498b3 CR |
18139 | bash_cv_type_wint_t=yes |
18140 | else | |
dd4f3dd8 | 18141 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
18142 | sed 's/^/| /' conftest.$ac_ext >&5 |
18143 | ||
d3ad40de CR |
18144 | bash_cv_type_wint_t=no |
18145 | fi | |
18146 | ||
18147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18148 | fi | |
dd4f3dd8 CR |
18149 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5 |
18150 | $as_echo "$bash_cv_type_wint_t" >&6; } | |
d3ad40de CR |
18151 | if test $bash_cv_type_wint_t = yes; then |
18152 | ||
18153 | cat >>confdefs.h <<\_ACEOF | |
18154 | @%:@define HAVE_WINT_T 1 | |
18155 | _ACEOF | |
18156 | ||
18157 | fi | |
18158 | ||
545f34cf CR |
18159 | |
18160 | ||
18161 | if test "$opt_static_link" != yes; then | |
18162 | ||
dd4f3dd8 CR |
18163 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
18164 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
545f34cf | 18165 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
dd4f3dd8 | 18166 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18167 | else |
18168 | ac_check_lib_save_LIBS=$LIBS | |
18169 | LIBS="-ldl $LIBS" | |
18170 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18171 | /* confdefs.h. */ |
18172 | _ACEOF | |
18173 | cat confdefs.h >>conftest.$ac_ext | |
18174 | cat >>conftest.$ac_ext <<_ACEOF | |
18175 | /* end confdefs.h. */ | |
18176 | ||
d3ad40de CR |
18177 | /* Override any GCC internal prototype to avoid an error. |
18178 | Use char because int might match the return type of a GCC | |
18179 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
18180 | #ifdef __cplusplus |
18181 | extern "C" | |
18182 | #endif | |
545f34cf CR |
18183 | char dlopen (); |
18184 | int | |
18185 | main () | |
18186 | { | |
d3ad40de | 18187 | return dlopen (); |
545f34cf CR |
18188 | ; |
18189 | return 0; | |
18190 | } | |
18191 | _ACEOF | |
18192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
18193 | if { (ac_try="$ac_link" |
18194 | case "(($ac_try" in | |
18195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18196 | *) ac_try_echo=$ac_try;; | |
18197 | esac | |
dd4f3dd8 CR |
18198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18199 | $as_echo "$ac_try_echo") >&5 | |
09767ff0 CR |
18200 | (eval "$ac_link") 2>conftest.er1 |
18201 | ac_status=$? | |
18202 | grep -v '^ *+' conftest.er1 >conftest.err | |
18203 | rm -f conftest.er1 | |
18204 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18206 | (exit $ac_status); } && { | |
18207 | test -z "$ac_c_werror_flag" || | |
18208 | test ! -s conftest.err | |
18209 | } && test -s conftest$ac_exeext && { | |
18210 | test "$cross_compiling" = yes || | |
18211 | $as_test_x conftest$ac_exeext | |
18212 | }; then | |
545f34cf CR |
18213 | ac_cv_lib_dl_dlopen=yes |
18214 | else | |
dd4f3dd8 | 18215 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18216 | sed 's/^/| /' conftest.$ac_ext >&5 |
18217 | ||
d3ad40de | 18218 | ac_cv_lib_dl_dlopen=no |
545f34cf | 18219 | fi |
d3ad40de | 18220 | |
dd4f3dd8 CR |
18221 | rm -rf conftest.dSYM |
18222 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 18223 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
18224 | LIBS=$ac_check_lib_save_LIBS |
18225 | fi | |
dd4f3dd8 CR |
18226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18227 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
76af2125 | 18228 | if test $ac_cv_lib_dl_dlopen = yes; then |
545f34cf CR |
18229 | cat >>confdefs.h <<_ACEOF |
18230 | @%:@define HAVE_LIBDL 1 | |
18231 | _ACEOF | |
18232 | ||
18233 | LIBS="-ldl $LIBS" | |
18234 | ||
18235 | fi | |
18236 | ||
18237 | ||
18238 | ||
18239 | ||
18240 | for ac_func in dlopen dlclose dlsym | |
18241 | do | |
dd4f3dd8 CR |
18242 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18243 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18244 | $as_echo_n "checking for $ac_func... " >&6; } | |
d3ad40de | 18245 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
dd4f3dd8 | 18246 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18247 | else |
18248 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18249 | /* confdefs.h. */ |
18250 | _ACEOF | |
18251 | cat confdefs.h >>conftest.$ac_ext | |
18252 | cat >>conftest.$ac_ext <<_ACEOF | |
18253 | /* end confdefs.h. */ | |
a82a04b3 CR |
18254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18256 | #define $ac_func innocuous_$ac_func | |
18257 | ||
545f34cf CR |
18258 | /* System header to define __stub macros and hopefully few prototypes, |
18259 | which can conflict with char $ac_func (); below. | |
18260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18261 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 18262 | |
545f34cf CR |
18263 | #ifdef __STDC__ |
18264 | # include <limits.h> | |
18265 | #else | |
18266 | # include <assert.h> | |
18267 | #endif | |
a82a04b3 CR |
18268 | |
18269 | #undef $ac_func | |
18270 | ||
d3ad40de CR |
18271 | /* Override any GCC internal prototype to avoid an error. |
18272 | Use char because int might match the return type of a GCC | |
18273 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
18274 | #ifdef __cplusplus |
18275 | extern "C" | |
545f34cf | 18276 | #endif |
545f34cf CR |
18277 | char $ac_func (); |
18278 | /* The GNU C library defines this for functions which it implements | |
18279 | to always fail with ENOSYS. Some functions are actually named | |
18280 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 18281 | #if defined __stub_$ac_func || defined __stub___$ac_func |
545f34cf | 18282 | choke me |
545f34cf CR |
18283 | #endif |
18284 | ||
18285 | int | |
18286 | main () | |
18287 | { | |
d3ad40de | 18288 | return $ac_func (); |
545f34cf CR |
18289 | ; |
18290 | return 0; | |
18291 | } | |
18292 | _ACEOF | |
18293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
18294 | if { (ac_try="$ac_link" |
18295 | case "(($ac_try" in | |
18296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18297 | *) ac_try_echo=$ac_try;; | |
18298 | esac | |
dd4f3dd8 CR |
18299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18300 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18301 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 18302 | ac_status=$? |
a82a04b3 CR |
18303 | grep -v '^ *+' conftest.er1 >conftest.err |
18304 | rm -f conftest.er1 | |
18305 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18307 | (exit $ac_status); } && { | |
18308 | test -z "$ac_c_werror_flag" || | |
18309 | test ! -s conftest.err | |
18310 | } && test -s conftest$ac_exeext && { | |
18311 | test "$cross_compiling" = yes || | |
18312 | $as_test_x conftest$ac_exeext | |
18313 | }; then | |
545f34cf CR |
18314 | eval "$as_ac_var=yes" |
18315 | else | |
dd4f3dd8 | 18316 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18317 | sed 's/^/| /' conftest.$ac_ext >&5 |
18318 | ||
d3ad40de | 18319 | eval "$as_ac_var=no" |
545f34cf | 18320 | fi |
d3ad40de | 18321 | |
dd4f3dd8 CR |
18322 | rm -rf conftest.dSYM |
18323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 18324 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 18325 | fi |
dd4f3dd8 CR |
18326 | ac_res=`eval 'as_val=${'$as_ac_var'} |
18327 | $as_echo "$as_val"'` | |
18328 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18329 | $as_echo "$ac_res" >&6; } | |
76af2125 CR |
18330 | if test `eval 'as_val=${'$as_ac_var'} |
18331 | $as_echo "$as_val"'` = yes; then | |
545f34cf | 18332 | cat >>confdefs.h <<_ACEOF |
dd4f3dd8 | 18333 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
545f34cf CR |
18334 | _ACEOF |
18335 | ||
18336 | fi | |
18337 | done | |
18338 | ||
18339 | fi | |
18340 | ||
dd4f3dd8 CR |
18341 | { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
18342 | $as_echo_n "checking whether sys_siglist is declared... " >&6; } | |
545f34cf | 18343 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
dd4f3dd8 | 18344 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18345 | else |
18346 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18347 | /* confdefs.h. */ |
18348 | _ACEOF | |
18349 | cat confdefs.h >>conftest.$ac_ext | |
18350 | cat >>conftest.$ac_ext <<_ACEOF | |
18351 | /* end confdefs.h. */ | |
a82a04b3 CR |
18352 | #include <signal.h> |
18353 | /* NetBSD declares sys_siglist in unistd.h. */ | |
dd4f3dd8 | 18354 | #ifdef HAVE_UNISTD_H |
a82a04b3 CR |
18355 | # include <unistd.h> |
18356 | #endif | |
18357 | ||
18358 | ||
545f34cf CR |
18359 | int |
18360 | main () | |
18361 | { | |
18362 | #ifndef sys_siglist | |
dd4f3dd8 | 18363 | (void) sys_siglist; |
545f34cf CR |
18364 | #endif |
18365 | ||
18366 | ; | |
18367 | return 0; | |
18368 | } | |
18369 | _ACEOF | |
18370 | rm -f conftest.$ac_objext | |
d3ad40de CR |
18371 | if { (ac_try="$ac_compile" |
18372 | case "(($ac_try" in | |
18373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18374 | *) ac_try_echo=$ac_try;; | |
18375 | esac | |
dd4f3dd8 CR |
18376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18377 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18378 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 18379 | ac_status=$? |
a82a04b3 CR |
18380 | grep -v '^ *+' conftest.er1 >conftest.err |
18381 | rm -f conftest.er1 | |
18382 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18384 | (exit $ac_status); } && { | |
18385 | test -z "$ac_c_werror_flag" || | |
18386 | test ! -s conftest.err | |
18387 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
18388 | ac_cv_have_decl_sys_siglist=yes |
18389 | else | |
dd4f3dd8 | 18390 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18391 | sed 's/^/| /' conftest.$ac_ext >&5 |
18392 | ||
d3ad40de | 18393 | ac_cv_have_decl_sys_siglist=no |
545f34cf | 18394 | fi |
d3ad40de CR |
18395 | |
18396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 18397 | fi |
dd4f3dd8 CR |
18398 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
18399 | $as_echo "$ac_cv_have_decl_sys_siglist" >&6; } | |
76af2125 | 18400 | if test $ac_cv_have_decl_sys_siglist = yes; then |
545f34cf CR |
18401 | |
18402 | cat >>confdefs.h <<_ACEOF | |
18403 | @%:@define HAVE_DECL_SYS_SIGLIST 1 | |
18404 | _ACEOF | |
18405 | ||
18406 | ||
18407 | else | |
18408 | cat >>confdefs.h <<_ACEOF | |
18409 | @%:@define HAVE_DECL_SYS_SIGLIST 0 | |
18410 | _ACEOF | |
18411 | ||
18412 | ||
18413 | fi | |
18414 | ||
18415 | ||
18416 | ||
18417 | ||
18418 | if test "$ac_cv_func_inet_aton" != 'yes'; then | |
18419 | ||
dd4f3dd8 CR |
18420 | { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5 |
18421 | $as_echo_n "checking for inet_aton... " >&6; } | |
545f34cf | 18422 | if test "${bash_cv_func_inet_aton+set}" = set; then |
dd4f3dd8 | 18423 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18424 | else |
18425 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18426 | /* confdefs.h. */ |
18427 | _ACEOF | |
18428 | cat confdefs.h >>conftest.$ac_ext | |
18429 | cat >>conftest.$ac_ext <<_ACEOF | |
18430 | /* end confdefs.h. */ | |
18431 | ||
18432 | #include <sys/types.h> | |
18433 | #include <netinet/in.h> | |
18434 | #include <arpa/inet.h> | |
18435 | struct in_addr ap; | |
18436 | int | |
18437 | main () | |
18438 | { | |
18439 | inet_aton("127.0.0.1", &ap); | |
18440 | ; | |
18441 | return 0; | |
18442 | } | |
18443 | _ACEOF | |
18444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
18445 | if { (ac_try="$ac_link" |
18446 | case "(($ac_try" in | |
18447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18448 | *) ac_try_echo=$ac_try;; | |
18449 | esac | |
dd4f3dd8 CR |
18450 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18451 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18452 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 18453 | ac_status=$? |
a82a04b3 CR |
18454 | grep -v '^ *+' conftest.er1 >conftest.err |
18455 | rm -f conftest.er1 | |
18456 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18458 | (exit $ac_status); } && { | |
18459 | test -z "$ac_c_werror_flag" || | |
18460 | test ! -s conftest.err | |
18461 | } && test -s conftest$ac_exeext && { | |
18462 | test "$cross_compiling" = yes || | |
18463 | $as_test_x conftest$ac_exeext | |
18464 | }; then | |
545f34cf CR |
18465 | bash_cv_func_inet_aton=yes |
18466 | else | |
dd4f3dd8 | 18467 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18468 | sed 's/^/| /' conftest.$ac_ext >&5 |
18469 | ||
d3ad40de | 18470 | bash_cv_func_inet_aton=no |
545f34cf | 18471 | fi |
d3ad40de | 18472 | |
dd4f3dd8 CR |
18473 | rm -rf conftest.dSYM |
18474 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 18475 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 18476 | fi |
dd4f3dd8 CR |
18477 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5 |
18478 | $as_echo "$bash_cv_func_inet_aton" >&6; } | |
545f34cf CR |
18479 | if test $bash_cv_func_inet_aton = yes; then |
18480 | cat >>confdefs.h <<\_ACEOF | |
18481 | @%:@define HAVE_INET_ATON 1 | |
18482 | _ACEOF | |
18483 | ||
18484 | else | |
d3ad40de | 18485 | case " $LIB@&t@OBJS " in |
a82a04b3 | 18486 | *" inet_aton.$ac_objext "* ) ;; |
d3ad40de CR |
18487 | *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext" |
18488 | ;; | |
a82a04b3 CR |
18489 | esac |
18490 | ||
545f34cf CR |
18491 | fi |
18492 | ||
18493 | fi | |
18494 | ||
18495 | case "$host_os" in | |
18496 | irix4*) | |
dd4f3dd8 CR |
18497 | { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5 |
18498 | $as_echo_n "checking for getpwent in -lsun... " >&6; } | |
545f34cf | 18499 | if test "${ac_cv_lib_sun_getpwent+set}" = set; then |
dd4f3dd8 | 18500 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18501 | else |
18502 | ac_check_lib_save_LIBS=$LIBS | |
18503 | LIBS="-lsun $LIBS" | |
18504 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18505 | /* confdefs.h. */ |
18506 | _ACEOF | |
18507 | cat confdefs.h >>conftest.$ac_ext | |
18508 | cat >>conftest.$ac_ext <<_ACEOF | |
18509 | /* end confdefs.h. */ | |
18510 | ||
d3ad40de CR |
18511 | /* Override any GCC internal prototype to avoid an error. |
18512 | Use char because int might match the return type of a GCC | |
18513 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
18514 | #ifdef __cplusplus |
18515 | extern "C" | |
18516 | #endif | |
545f34cf CR |
18517 | char getpwent (); |
18518 | int | |
18519 | main () | |
18520 | { | |
d3ad40de | 18521 | return getpwent (); |
545f34cf CR |
18522 | ; |
18523 | return 0; | |
18524 | } | |
18525 | _ACEOF | |
18526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
18527 | if { (ac_try="$ac_link" |
18528 | case "(($ac_try" in | |
18529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18530 | *) ac_try_echo=$ac_try;; | |
18531 | esac | |
dd4f3dd8 CR |
18532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18533 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18534 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 18535 | ac_status=$? |
a82a04b3 CR |
18536 | grep -v '^ *+' conftest.er1 >conftest.err |
18537 | rm -f conftest.er1 | |
18538 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18540 | (exit $ac_status); } && { | |
18541 | test -z "$ac_c_werror_flag" || | |
18542 | test ! -s conftest.err | |
18543 | } && test -s conftest$ac_exeext && { | |
18544 | test "$cross_compiling" = yes || | |
18545 | $as_test_x conftest$ac_exeext | |
18546 | }; then | |
545f34cf CR |
18547 | ac_cv_lib_sun_getpwent=yes |
18548 | else | |
dd4f3dd8 | 18549 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18550 | sed 's/^/| /' conftest.$ac_ext >&5 |
18551 | ||
d3ad40de | 18552 | ac_cv_lib_sun_getpwent=no |
545f34cf | 18553 | fi |
d3ad40de | 18554 | |
dd4f3dd8 CR |
18555 | rm -rf conftest.dSYM |
18556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 18557 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
18558 | LIBS=$ac_check_lib_save_LIBS |
18559 | fi | |
dd4f3dd8 CR |
18560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5 |
18561 | $as_echo "$ac_cv_lib_sun_getpwent" >&6; } | |
76af2125 | 18562 | if test $ac_cv_lib_sun_getpwent = yes; then |
545f34cf CR |
18563 | cat >>confdefs.h <<_ACEOF |
18564 | @%:@define HAVE_LIBSUN 1 | |
18565 | _ACEOF | |
18566 | ||
18567 | LIBS="-lsun $LIBS" | |
18568 | ||
18569 | fi | |
18570 | ;; | |
18571 | esac | |
18572 | ||
18573 | if test "$ac_cv_func_getpeername" = no; then | |
18574 | ||
18575 | if test "X$bash_cv_have_socklib" = "X"; then | |
18576 | _bash_needmsg= | |
18577 | else | |
dd4f3dd8 CR |
18578 | { $as_echo "$as_me:$LINENO: checking for socket library" >&5 |
18579 | $as_echo_n "checking for socket library... " >&6; } | |
545f34cf CR |
18580 | _bash_needmsg=yes |
18581 | fi | |
18582 | if test "${bash_cv_have_socklib+set}" = set; then | |
dd4f3dd8 | 18583 | $as_echo_n "(cached) " >&6 |
545f34cf | 18584 | else |
dd4f3dd8 CR |
18585 | { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5 |
18586 | $as_echo_n "checking for getpeername in -lsocket... " >&6; } | |
545f34cf | 18587 | if test "${ac_cv_lib_socket_getpeername+set}" = set; then |
dd4f3dd8 | 18588 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18589 | else |
18590 | ac_check_lib_save_LIBS=$LIBS | |
18591 | LIBS="-lsocket -lnsl $LIBS" | |
18592 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18593 | /* confdefs.h. */ |
18594 | _ACEOF | |
18595 | cat confdefs.h >>conftest.$ac_ext | |
18596 | cat >>conftest.$ac_ext <<_ACEOF | |
18597 | /* end confdefs.h. */ | |
18598 | ||
d3ad40de CR |
18599 | /* Override any GCC internal prototype to avoid an error. |
18600 | Use char because int might match the return type of a GCC | |
18601 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
18602 | #ifdef __cplusplus |
18603 | extern "C" | |
18604 | #endif | |
545f34cf CR |
18605 | char getpeername (); |
18606 | int | |
18607 | main () | |
18608 | { | |
d3ad40de | 18609 | return getpeername (); |
545f34cf CR |
18610 | ; |
18611 | return 0; | |
18612 | } | |
18613 | _ACEOF | |
18614 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
18615 | if { (ac_try="$ac_link" |
18616 | case "(($ac_try" in | |
18617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18618 | *) ac_try_echo=$ac_try;; | |
18619 | esac | |
dd4f3dd8 CR |
18620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18621 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18622 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 18623 | ac_status=$? |
a82a04b3 CR |
18624 | grep -v '^ *+' conftest.er1 >conftest.err |
18625 | rm -f conftest.er1 | |
18626 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18628 | (exit $ac_status); } && { | |
18629 | test -z "$ac_c_werror_flag" || | |
18630 | test ! -s conftest.err | |
18631 | } && test -s conftest$ac_exeext && { | |
18632 | test "$cross_compiling" = yes || | |
18633 | $as_test_x conftest$ac_exeext | |
18634 | }; then | |
545f34cf CR |
18635 | ac_cv_lib_socket_getpeername=yes |
18636 | else | |
dd4f3dd8 | 18637 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18638 | sed 's/^/| /' conftest.$ac_ext >&5 |
18639 | ||
d3ad40de | 18640 | ac_cv_lib_socket_getpeername=no |
545f34cf | 18641 | fi |
d3ad40de | 18642 | |
dd4f3dd8 CR |
18643 | rm -rf conftest.dSYM |
18644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 18645 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
18646 | LIBS=$ac_check_lib_save_LIBS |
18647 | fi | |
dd4f3dd8 CR |
18648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5 |
18649 | $as_echo "$ac_cv_lib_socket_getpeername" >&6; } | |
76af2125 | 18650 | if test $ac_cv_lib_socket_getpeername = yes; then |
545f34cf CR |
18651 | bash_cv_have_socklib=yes |
18652 | else | |
18653 | bash_cv_have_socklib=no | |
18654 | fi | |
18655 | ||
18656 | fi | |
18657 | ||
18658 | if test "X$_bash_needmsg" = Xyes; then | |
dd4f3dd8 CR |
18659 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5 |
18660 | $as_echo "$bash_cv_have_socklib" >&6; } | |
545f34cf CR |
18661 | _bash_needmsg= |
18662 | fi | |
18663 | if test $bash_cv_have_socklib = yes; then | |
18664 | # check for libnsl, add it to LIBS if present | |
18665 | if test "X$bash_cv_have_libnsl" = "X"; then | |
18666 | _bash_needmsg= | |
18667 | else | |
dd4f3dd8 CR |
18668 | { $as_echo "$as_me:$LINENO: checking for libnsl" >&5 |
18669 | $as_echo_n "checking for libnsl... " >&6; } | |
545f34cf CR |
18670 | _bash_needmsg=yes |
18671 | fi | |
18672 | if test "${bash_cv_have_libnsl+set}" = set; then | |
dd4f3dd8 | 18673 | $as_echo_n "(cached) " >&6 |
545f34cf | 18674 | else |
dd4f3dd8 CR |
18675 | { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
18676 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | |
545f34cf | 18677 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
dd4f3dd8 | 18678 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18679 | else |
18680 | ac_check_lib_save_LIBS=$LIBS | |
18681 | LIBS="-lnsl $LIBS" | |
18682 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18683 | /* confdefs.h. */ |
18684 | _ACEOF | |
18685 | cat confdefs.h >>conftest.$ac_ext | |
18686 | cat >>conftest.$ac_ext <<_ACEOF | |
18687 | /* end confdefs.h. */ | |
18688 | ||
d3ad40de CR |
18689 | /* Override any GCC internal prototype to avoid an error. |
18690 | Use char because int might match the return type of a GCC | |
18691 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
18692 | #ifdef __cplusplus |
18693 | extern "C" | |
18694 | #endif | |
545f34cf CR |
18695 | char t_open (); |
18696 | int | |
18697 | main () | |
18698 | { | |
d3ad40de | 18699 | return t_open (); |
545f34cf CR |
18700 | ; |
18701 | return 0; | |
18702 | } | |
18703 | _ACEOF | |
18704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
18705 | if { (ac_try="$ac_link" |
18706 | case "(($ac_try" in | |
18707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18708 | *) ac_try_echo=$ac_try;; | |
18709 | esac | |
dd4f3dd8 CR |
18710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18711 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18712 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 18713 | ac_status=$? |
a82a04b3 CR |
18714 | grep -v '^ *+' conftest.er1 >conftest.err |
18715 | rm -f conftest.er1 | |
18716 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18718 | (exit $ac_status); } && { | |
18719 | test -z "$ac_c_werror_flag" || | |
18720 | test ! -s conftest.err | |
18721 | } && test -s conftest$ac_exeext && { | |
18722 | test "$cross_compiling" = yes || | |
18723 | $as_test_x conftest$ac_exeext | |
18724 | }; then | |
545f34cf CR |
18725 | ac_cv_lib_nsl_t_open=yes |
18726 | else | |
dd4f3dd8 | 18727 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18728 | sed 's/^/| /' conftest.$ac_ext >&5 |
18729 | ||
d3ad40de | 18730 | ac_cv_lib_nsl_t_open=no |
545f34cf | 18731 | fi |
d3ad40de | 18732 | |
dd4f3dd8 CR |
18733 | rm -rf conftest.dSYM |
18734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 18735 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
18736 | LIBS=$ac_check_lib_save_LIBS |
18737 | fi | |
dd4f3dd8 CR |
18738 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
18739 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | |
76af2125 | 18740 | if test $ac_cv_lib_nsl_t_open = yes; then |
545f34cf CR |
18741 | bash_cv_have_libnsl=yes |
18742 | else | |
18743 | bash_cv_have_libnsl=no | |
18744 | fi | |
18745 | ||
18746 | fi | |
18747 | ||
18748 | if test "X$_bash_needmsg" = Xyes; then | |
dd4f3dd8 CR |
18749 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5 |
18750 | $as_echo "$bash_cv_have_libnsl" >&6; } | |
545f34cf CR |
18751 | _bash_needmsg= |
18752 | fi | |
18753 | if test $bash_cv_have_libnsl = yes; then | |
18754 | LIBS="-lsocket -lnsl $LIBS" | |
18755 | else | |
18756 | LIBS="-lsocket $LIBS" | |
18757 | fi | |
18758 | cat >>confdefs.h <<\_ACEOF | |
18759 | @%:@define HAVE_LIBSOCKET 1 | |
18760 | _ACEOF | |
18761 | ||
18762 | cat >>confdefs.h <<\_ACEOF | |
18763 | @%:@define HAVE_GETPEERNAME 1 | |
18764 | _ACEOF | |
18765 | ||
18766 | fi | |
18767 | ||
18768 | fi | |
18769 | if test "$ac_cv_func_gethostbyname" = no; then | |
18770 | if test "X$bash_cv_have_gethostbyname" = "X"; then | |
18771 | _bash_needmsg=yes | |
18772 | else | |
dd4f3dd8 CR |
18773 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
18774 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
545f34cf CR |
18775 | _bash_needmsg= |
18776 | fi | |
18777 | if test "${bash_cv_have_gethostbyname+set}" = set; then | |
dd4f3dd8 | 18778 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18779 | else |
18780 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18781 | /* confdefs.h. */ |
18782 | _ACEOF | |
18783 | cat confdefs.h >>conftest.$ac_ext | |
18784 | cat >>conftest.$ac_ext <<_ACEOF | |
18785 | /* end confdefs.h. */ | |
18786 | #include <netdb.h> | |
18787 | int | |
18788 | main () | |
18789 | { | |
18790 | struct hostent *hp; | |
18791 | hp = gethostbyname("localhost"); | |
18792 | ||
18793 | ; | |
18794 | return 0; | |
18795 | } | |
18796 | _ACEOF | |
18797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
18798 | if { (ac_try="$ac_link" |
18799 | case "(($ac_try" in | |
18800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18801 | *) ac_try_echo=$ac_try;; | |
18802 | esac | |
dd4f3dd8 CR |
18803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18804 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18805 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 18806 | ac_status=$? |
a82a04b3 CR |
18807 | grep -v '^ *+' conftest.er1 >conftest.err |
18808 | rm -f conftest.er1 | |
18809 | cat conftest.err >&5 | |
dd4f3dd8 CR |
18810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18811 | (exit $ac_status); } && { | |
18812 | test -z "$ac_c_werror_flag" || | |
18813 | test ! -s conftest.err | |
18814 | } && test -s conftest$ac_exeext && { | |
18815 | test "$cross_compiling" = yes || | |
18816 | $as_test_x conftest$ac_exeext | |
18817 | }; then | |
545f34cf CR |
18818 | bash_cv_have_gethostbyname=yes |
18819 | else | |
dd4f3dd8 | 18820 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
18821 | sed 's/^/| /' conftest.$ac_ext >&5 |
18822 | ||
d3ad40de | 18823 | bash_cv_have_gethostbyname=no |
545f34cf | 18824 | fi |
d3ad40de | 18825 | |
dd4f3dd8 CR |
18826 | rm -rf conftest.dSYM |
18827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 18828 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
18829 | |
18830 | fi | |
18831 | ||
18832 | if test "X$_bash_needmsg" = Xyes; then | |
dd4f3dd8 CR |
18833 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5 |
18834 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
545f34cf | 18835 | fi |
dd4f3dd8 CR |
18836 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5 |
18837 | $as_echo "$bash_cv_have_gethostbyname" >&6; } | |
545f34cf CR |
18838 | if test "$bash_cv_have_gethostbyname" = yes; then |
18839 | cat >>confdefs.h <<\_ACEOF | |
18840 | @%:@define HAVE_GETHOSTBYNAME 1 | |
18841 | _ACEOF | |
18842 | ||
18843 | fi | |
18844 | ||
18845 | fi | |
18846 | ||
dd4f3dd8 CR |
18847 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
18848 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
545f34cf | 18849 | if test "${ac_cv_type_uid_t+set}" = set; then |
dd4f3dd8 | 18850 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18851 | else |
18852 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18853 | /* confdefs.h. */ |
18854 | _ACEOF | |
18855 | cat confdefs.h >>conftest.$ac_ext | |
18856 | cat >>conftest.$ac_ext <<_ACEOF | |
18857 | /* end confdefs.h. */ | |
18858 | #include <sys/types.h> | |
18859 | ||
18860 | _ACEOF | |
18861 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18862 | $EGREP "uid_t" >/dev/null 2>&1; then | |
18863 | ac_cv_type_uid_t=yes | |
18864 | else | |
18865 | ac_cv_type_uid_t=no | |
18866 | fi | |
18867 | rm -f conftest* | |
18868 | ||
18869 | fi | |
dd4f3dd8 CR |
18870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
18871 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
545f34cf CR |
18872 | if test $ac_cv_type_uid_t = no; then |
18873 | ||
18874 | cat >>confdefs.h <<\_ACEOF | |
18875 | @%:@define uid_t int | |
18876 | _ACEOF | |
18877 | ||
18878 | ||
18879 | cat >>confdefs.h <<\_ACEOF | |
18880 | @%:@define gid_t int | |
18881 | _ACEOF | |
18882 | ||
18883 | fi | |
18884 | ||
dd4f3dd8 CR |
18885 | { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 |
18886 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
545f34cf | 18887 | if test "${ac_cv_type_getgroups+set}" = set; then |
dd4f3dd8 | 18888 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
18889 | else |
18890 | if test "$cross_compiling" = yes; then | |
18891 | ac_cv_type_getgroups=cross | |
18892 | else | |
18893 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18894 | /* confdefs.h. */ |
18895 | _ACEOF | |
18896 | cat confdefs.h >>conftest.$ac_ext | |
18897 | cat >>conftest.$ac_ext <<_ACEOF | |
18898 | /* end confdefs.h. */ | |
18899 | /* Thanks to Mike Rendell for this test. */ | |
d3ad40de | 18900 | $ac_includes_default |
545f34cf CR |
18901 | #define NGID 256 |
18902 | #undef MAX | |
18903 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
18904 | ||
18905 | int | |
18906 | main () | |
18907 | { | |
18908 | gid_t gidset[NGID]; | |
18909 | int i, n; | |
d3ad40de | 18910 | union { gid_t gval; long int lval; } val; |
545f34cf CR |
18911 | |
18912 | val.lval = -1; | |
18913 | for (i = 0; i < NGID; i++) | |
18914 | gidset[i] = val.gval; | |
18915 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
a82a04b3 | 18916 | gidset); |
545f34cf | 18917 | /* Exit non-zero if getgroups seems to require an array of ints. This |
d3ad40de CR |
18918 | happens when gid_t is short int but getgroups modifies an array |
18919 | of ints. */ | |
18920 | return n > 0 && gidset[n] != val.gval; | |
545f34cf CR |
18921 | } |
18922 | _ACEOF | |
18923 | rm -f conftest$ac_exeext | |
d3ad40de CR |
18924 | if { (ac_try="$ac_link" |
18925 | case "(($ac_try" in | |
18926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18927 | *) ac_try_echo=$ac_try;; | |
18928 | esac | |
dd4f3dd8 CR |
18929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18930 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18931 | (eval "$ac_link") 2>&5 |
545f34cf | 18932 | ac_status=$? |
dd4f3dd8 | 18933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 18934 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
18935 | { (case "(($ac_try" in |
18936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18937 | *) ac_try_echo=$ac_try;; | |
18938 | esac | |
dd4f3dd8 CR |
18939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18940 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 18941 | (eval "$ac_try") 2>&5 |
545f34cf | 18942 | ac_status=$? |
dd4f3dd8 | 18943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
18944 | (exit $ac_status); }; }; then |
18945 | ac_cv_type_getgroups=gid_t | |
18946 | else | |
dd4f3dd8 CR |
18947 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
18948 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
18949 | sed 's/^/| /' conftest.$ac_ext >&5 |
18950 | ||
18951 | ( exit $ac_status ) | |
18952 | ac_cv_type_getgroups=int | |
18953 | fi | |
dd4f3dd8 | 18954 | rm -rf conftest.dSYM |
d3ad40de | 18955 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 18956 | fi |
d3ad40de CR |
18957 | |
18958 | ||
545f34cf CR |
18959 | if test $ac_cv_type_getgroups = cross; then |
18960 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18961 | /* confdefs.h. */ |
18962 | _ACEOF | |
18963 | cat confdefs.h >>conftest.$ac_ext | |
18964 | cat >>conftest.$ac_ext <<_ACEOF | |
18965 | /* end confdefs.h. */ | |
18966 | #include <unistd.h> | |
18967 | ||
18968 | _ACEOF | |
18969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18970 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then | |
18971 | ac_cv_type_getgroups=gid_t | |
18972 | else | |
18973 | ac_cv_type_getgroups=int | |
18974 | fi | |
18975 | rm -f conftest* | |
18976 | ||
18977 | fi | |
18978 | fi | |
dd4f3dd8 CR |
18979 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 |
18980 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
545f34cf CR |
18981 | |
18982 | cat >>confdefs.h <<_ACEOF | |
18983 | @%:@define GETGROUPS_T $ac_cv_type_getgroups | |
18984 | _ACEOF | |
18985 | ||
18986 | ||
dd4f3dd8 CR |
18987 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
18988 | $as_echo_n "checking for off_t... " >&6; } | |
545f34cf | 18989 | if test "${ac_cv_type_off_t+set}" = set; then |
dd4f3dd8 | 18990 | $as_echo_n "(cached) " >&6 |
545f34cf | 18991 | else |
dd4f3dd8 CR |
18992 | ac_cv_type_off_t=no |
18993 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
18994 | /* confdefs.h. */ |
18995 | _ACEOF | |
18996 | cat confdefs.h >>conftest.$ac_ext | |
18997 | cat >>conftest.$ac_ext <<_ACEOF | |
18998 | /* end confdefs.h. */ | |
18999 | $ac_includes_default | |
19000 | int | |
19001 | main () | |
19002 | { | |
dd4f3dd8 CR |
19003 | if (sizeof (off_t)) |
19004 | return 0; | |
545f34cf CR |
19005 | ; |
19006 | return 0; | |
19007 | } | |
19008 | _ACEOF | |
19009 | rm -f conftest.$ac_objext | |
d3ad40de CR |
19010 | if { (ac_try="$ac_compile" |
19011 | case "(($ac_try" in | |
19012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19013 | *) ac_try_echo=$ac_try;; | |
19014 | esac | |
dd4f3dd8 CR |
19015 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19016 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19017 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 19018 | ac_status=$? |
a82a04b3 CR |
19019 | grep -v '^ *+' conftest.er1 >conftest.err |
19020 | rm -f conftest.er1 | |
19021 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19023 | (exit $ac_status); } && { | |
19024 | test -z "$ac_c_werror_flag" || | |
19025 | test ! -s conftest.err | |
19026 | } && test -s conftest.$ac_objext; then | |
19027 | cat >conftest.$ac_ext <<_ACEOF | |
19028 | /* confdefs.h. */ | |
19029 | _ACEOF | |
19030 | cat confdefs.h >>conftest.$ac_ext | |
19031 | cat >>conftest.$ac_ext <<_ACEOF | |
19032 | /* end confdefs.h. */ | |
19033 | $ac_includes_default | |
19034 | int | |
19035 | main () | |
19036 | { | |
19037 | if (sizeof ((off_t))) | |
19038 | return 0; | |
19039 | ; | |
19040 | return 0; | |
19041 | } | |
19042 | _ACEOF | |
19043 | rm -f conftest.$ac_objext | |
19044 | if { (ac_try="$ac_compile" | |
19045 | case "(($ac_try" in | |
2e4498b3 CR |
19046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19047 | *) ac_try_echo=$ac_try;; | |
19048 | esac | |
dd4f3dd8 CR |
19049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19050 | $as_echo "$ac_try_echo") >&5 | |
19051 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 19052 | ac_status=$? |
dd4f3dd8 CR |
19053 | grep -v '^ *+' conftest.er1 >conftest.err |
19054 | rm -f conftest.er1 | |
19055 | cat conftest.err >&5 | |
19056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19057 | (exit $ac_status); } && { | |
19058 | test -z "$ac_c_werror_flag" || | |
19059 | test ! -s conftest.err | |
19060 | } && test -s conftest.$ac_objext; then | |
19061 | : | |
19062 | else | |
19063 | $as_echo "$as_me: failed program was:" >&5 | |
19064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19065 | ||
19066 | ac_cv_type_off_t=yes | |
19067 | fi | |
19068 | ||
19069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19070 | else |
dd4f3dd8 | 19071 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19072 | sed 's/^/| /' conftest.$ac_ext >&5 |
19073 | ||
dd4f3dd8 | 19074 | |
545f34cf | 19075 | fi |
d3ad40de CR |
19076 | |
19077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19078 | fi |
dd4f3dd8 CR |
19079 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
19080 | $as_echo "$ac_cv_type_off_t" >&6; } | |
76af2125 | 19081 | if test $ac_cv_type_off_t = yes; then |
545f34cf CR |
19082 | : |
19083 | else | |
19084 | ||
19085 | cat >>confdefs.h <<_ACEOF | |
d3ad40de | 19086 | @%:@define off_t long int |
545f34cf CR |
19087 | _ACEOF |
19088 | ||
19089 | fi | |
19090 | ||
dd4f3dd8 CR |
19091 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
19092 | $as_echo_n "checking for mode_t... " >&6; } | |
545f34cf | 19093 | if test "${ac_cv_type_mode_t+set}" = set; then |
dd4f3dd8 | 19094 | $as_echo_n "(cached) " >&6 |
545f34cf | 19095 | else |
dd4f3dd8 CR |
19096 | ac_cv_type_mode_t=no |
19097 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19098 | /* confdefs.h. */ |
19099 | _ACEOF | |
19100 | cat confdefs.h >>conftest.$ac_ext | |
19101 | cat >>conftest.$ac_ext <<_ACEOF | |
19102 | /* end confdefs.h. */ | |
19103 | $ac_includes_default | |
19104 | int | |
19105 | main () | |
19106 | { | |
dd4f3dd8 CR |
19107 | if (sizeof (mode_t)) |
19108 | return 0; | |
545f34cf CR |
19109 | ; |
19110 | return 0; | |
19111 | } | |
19112 | _ACEOF | |
19113 | rm -f conftest.$ac_objext | |
d3ad40de CR |
19114 | if { (ac_try="$ac_compile" |
19115 | case "(($ac_try" in | |
19116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19117 | *) ac_try_echo=$ac_try;; | |
19118 | esac | |
dd4f3dd8 CR |
19119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19120 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19121 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 19122 | ac_status=$? |
a82a04b3 CR |
19123 | grep -v '^ *+' conftest.er1 >conftest.err |
19124 | rm -f conftest.er1 | |
19125 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19127 | (exit $ac_status); } && { | |
19128 | test -z "$ac_c_werror_flag" || | |
19129 | test ! -s conftest.err | |
19130 | } && test -s conftest.$ac_objext; then | |
19131 | cat >conftest.$ac_ext <<_ACEOF | |
19132 | /* confdefs.h. */ | |
19133 | _ACEOF | |
19134 | cat confdefs.h >>conftest.$ac_ext | |
19135 | cat >>conftest.$ac_ext <<_ACEOF | |
19136 | /* end confdefs.h. */ | |
19137 | $ac_includes_default | |
19138 | int | |
19139 | main () | |
19140 | { | |
19141 | if (sizeof ((mode_t))) | |
19142 | return 0; | |
19143 | ; | |
19144 | return 0; | |
19145 | } | |
19146 | _ACEOF | |
19147 | rm -f conftest.$ac_objext | |
19148 | if { (ac_try="$ac_compile" | |
19149 | case "(($ac_try" in | |
2e4498b3 CR |
19150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19151 | *) ac_try_echo=$ac_try;; | |
19152 | esac | |
dd4f3dd8 CR |
19153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19154 | $as_echo "$ac_try_echo") >&5 | |
19155 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 19156 | ac_status=$? |
dd4f3dd8 CR |
19157 | grep -v '^ *+' conftest.er1 >conftest.err |
19158 | rm -f conftest.er1 | |
19159 | cat conftest.err >&5 | |
19160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19161 | (exit $ac_status); } && { | |
19162 | test -z "$ac_c_werror_flag" || | |
19163 | test ! -s conftest.err | |
19164 | } && test -s conftest.$ac_objext; then | |
19165 | : | |
19166 | else | |
19167 | $as_echo "$as_me: failed program was:" >&5 | |
19168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19169 | ||
19170 | ac_cv_type_mode_t=yes | |
19171 | fi | |
19172 | ||
19173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19174 | else |
dd4f3dd8 | 19175 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19176 | sed 's/^/| /' conftest.$ac_ext >&5 |
19177 | ||
dd4f3dd8 | 19178 | |
545f34cf | 19179 | fi |
d3ad40de CR |
19180 | |
19181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19182 | fi |
dd4f3dd8 CR |
19183 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
19184 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
76af2125 | 19185 | if test $ac_cv_type_mode_t = yes; then |
545f34cf CR |
19186 | : |
19187 | else | |
19188 | ||
19189 | cat >>confdefs.h <<_ACEOF | |
19190 | @%:@define mode_t int | |
19191 | _ACEOF | |
19192 | ||
19193 | fi | |
19194 | ||
dd4f3dd8 CR |
19195 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19196 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
545f34cf | 19197 | if test "${ac_cv_type_uid_t+set}" = set; then |
dd4f3dd8 | 19198 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
19199 | else |
19200 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19201 | /* confdefs.h. */ |
19202 | _ACEOF | |
19203 | cat confdefs.h >>conftest.$ac_ext | |
19204 | cat >>conftest.$ac_ext <<_ACEOF | |
19205 | /* end confdefs.h. */ | |
19206 | #include <sys/types.h> | |
19207 | ||
19208 | _ACEOF | |
19209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19210 | $EGREP "uid_t" >/dev/null 2>&1; then | |
19211 | ac_cv_type_uid_t=yes | |
19212 | else | |
19213 | ac_cv_type_uid_t=no | |
19214 | fi | |
19215 | rm -f conftest* | |
19216 | ||
19217 | fi | |
dd4f3dd8 CR |
19218 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19219 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
545f34cf CR |
19220 | if test $ac_cv_type_uid_t = no; then |
19221 | ||
19222 | cat >>confdefs.h <<\_ACEOF | |
19223 | @%:@define uid_t int | |
19224 | _ACEOF | |
19225 | ||
19226 | ||
19227 | cat >>confdefs.h <<\_ACEOF | |
19228 | @%:@define gid_t int | |
19229 | _ACEOF | |
19230 | ||
19231 | fi | |
19232 | ||
dd4f3dd8 CR |
19233 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
19234 | $as_echo_n "checking for pid_t... " >&6; } | |
545f34cf | 19235 | if test "${ac_cv_type_pid_t+set}" = set; then |
dd4f3dd8 | 19236 | $as_echo_n "(cached) " >&6 |
545f34cf | 19237 | else |
dd4f3dd8 CR |
19238 | ac_cv_type_pid_t=no |
19239 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19240 | /* confdefs.h. */ |
19241 | _ACEOF | |
19242 | cat confdefs.h >>conftest.$ac_ext | |
19243 | cat >>conftest.$ac_ext <<_ACEOF | |
19244 | /* end confdefs.h. */ | |
19245 | $ac_includes_default | |
19246 | int | |
19247 | main () | |
19248 | { | |
dd4f3dd8 CR |
19249 | if (sizeof (pid_t)) |
19250 | return 0; | |
545f34cf CR |
19251 | ; |
19252 | return 0; | |
19253 | } | |
19254 | _ACEOF | |
19255 | rm -f conftest.$ac_objext | |
d3ad40de CR |
19256 | if { (ac_try="$ac_compile" |
19257 | case "(($ac_try" in | |
19258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19259 | *) ac_try_echo=$ac_try;; | |
19260 | esac | |
dd4f3dd8 CR |
19261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19262 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19263 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 19264 | ac_status=$? |
a82a04b3 CR |
19265 | grep -v '^ *+' conftest.er1 >conftest.err |
19266 | rm -f conftest.er1 | |
19267 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19269 | (exit $ac_status); } && { | |
19270 | test -z "$ac_c_werror_flag" || | |
19271 | test ! -s conftest.err | |
19272 | } && test -s conftest.$ac_objext; then | |
19273 | cat >conftest.$ac_ext <<_ACEOF | |
19274 | /* confdefs.h. */ | |
19275 | _ACEOF | |
19276 | cat confdefs.h >>conftest.$ac_ext | |
19277 | cat >>conftest.$ac_ext <<_ACEOF | |
19278 | /* end confdefs.h. */ | |
19279 | $ac_includes_default | |
19280 | int | |
19281 | main () | |
19282 | { | |
19283 | if (sizeof ((pid_t))) | |
19284 | return 0; | |
19285 | ; | |
19286 | return 0; | |
19287 | } | |
19288 | _ACEOF | |
19289 | rm -f conftest.$ac_objext | |
19290 | if { (ac_try="$ac_compile" | |
19291 | case "(($ac_try" in | |
2e4498b3 CR |
19292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19293 | *) ac_try_echo=$ac_try;; | |
19294 | esac | |
dd4f3dd8 CR |
19295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19296 | $as_echo "$ac_try_echo") >&5 | |
19297 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 19298 | ac_status=$? |
dd4f3dd8 CR |
19299 | grep -v '^ *+' conftest.er1 >conftest.err |
19300 | rm -f conftest.er1 | |
19301 | cat conftest.err >&5 | |
19302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19303 | (exit $ac_status); } && { | |
19304 | test -z "$ac_c_werror_flag" || | |
19305 | test ! -s conftest.err | |
19306 | } && test -s conftest.$ac_objext; then | |
19307 | : | |
19308 | else | |
19309 | $as_echo "$as_me: failed program was:" >&5 | |
19310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19311 | ||
19312 | ac_cv_type_pid_t=yes | |
19313 | fi | |
19314 | ||
19315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19316 | else |
dd4f3dd8 | 19317 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19318 | sed 's/^/| /' conftest.$ac_ext >&5 |
19319 | ||
dd4f3dd8 | 19320 | |
545f34cf | 19321 | fi |
d3ad40de CR |
19322 | |
19323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19324 | fi |
dd4f3dd8 CR |
19325 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
19326 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
76af2125 | 19327 | if test $ac_cv_type_pid_t = yes; then |
545f34cf CR |
19328 | : |
19329 | else | |
19330 | ||
19331 | cat >>confdefs.h <<_ACEOF | |
19332 | @%:@define pid_t int | |
19333 | _ACEOF | |
19334 | ||
19335 | fi | |
19336 | ||
dd4f3dd8 CR |
19337 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
19338 | $as_echo_n "checking for size_t... " >&6; } | |
545f34cf | 19339 | if test "${ac_cv_type_size_t+set}" = set; then |
dd4f3dd8 | 19340 | $as_echo_n "(cached) " >&6 |
545f34cf | 19341 | else |
dd4f3dd8 CR |
19342 | ac_cv_type_size_t=no |
19343 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19344 | /* confdefs.h. */ |
19345 | _ACEOF | |
19346 | cat confdefs.h >>conftest.$ac_ext | |
19347 | cat >>conftest.$ac_ext <<_ACEOF | |
19348 | /* end confdefs.h. */ | |
19349 | $ac_includes_default | |
19350 | int | |
19351 | main () | |
19352 | { | |
dd4f3dd8 CR |
19353 | if (sizeof (size_t)) |
19354 | return 0; | |
545f34cf CR |
19355 | ; |
19356 | return 0; | |
19357 | } | |
19358 | _ACEOF | |
19359 | rm -f conftest.$ac_objext | |
d3ad40de CR |
19360 | if { (ac_try="$ac_compile" |
19361 | case "(($ac_try" in | |
19362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19363 | *) ac_try_echo=$ac_try;; | |
19364 | esac | |
dd4f3dd8 CR |
19365 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19366 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19367 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 19368 | ac_status=$? |
a82a04b3 CR |
19369 | grep -v '^ *+' conftest.er1 >conftest.err |
19370 | rm -f conftest.er1 | |
19371 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19373 | (exit $ac_status); } && { | |
19374 | test -z "$ac_c_werror_flag" || | |
19375 | test ! -s conftest.err | |
19376 | } && test -s conftest.$ac_objext; then | |
19377 | cat >conftest.$ac_ext <<_ACEOF | |
19378 | /* confdefs.h. */ | |
19379 | _ACEOF | |
19380 | cat confdefs.h >>conftest.$ac_ext | |
19381 | cat >>conftest.$ac_ext <<_ACEOF | |
19382 | /* end confdefs.h. */ | |
19383 | $ac_includes_default | |
19384 | int | |
19385 | main () | |
19386 | { | |
19387 | if (sizeof ((size_t))) | |
19388 | return 0; | |
19389 | ; | |
19390 | return 0; | |
19391 | } | |
19392 | _ACEOF | |
19393 | rm -f conftest.$ac_objext | |
19394 | if { (ac_try="$ac_compile" | |
19395 | case "(($ac_try" in | |
2e4498b3 CR |
19396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19397 | *) ac_try_echo=$ac_try;; | |
19398 | esac | |
dd4f3dd8 CR |
19399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19400 | $as_echo "$ac_try_echo") >&5 | |
19401 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 19402 | ac_status=$? |
dd4f3dd8 CR |
19403 | grep -v '^ *+' conftest.er1 >conftest.err |
19404 | rm -f conftest.er1 | |
19405 | cat conftest.err >&5 | |
19406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19407 | (exit $ac_status); } && { | |
19408 | test -z "$ac_c_werror_flag" || | |
19409 | test ! -s conftest.err | |
19410 | } && test -s conftest.$ac_objext; then | |
19411 | : | |
545f34cf | 19412 | else |
dd4f3dd8 | 19413 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19414 | sed 's/^/| /' conftest.$ac_ext >&5 |
19415 | ||
dd4f3dd8 | 19416 | ac_cv_type_size_t=yes |
545f34cf | 19417 | fi |
d3ad40de CR |
19418 | |
19419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
19420 | else |
19421 | $as_echo "$as_me: failed program was:" >&5 | |
19422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19423 | ||
19424 | ||
545f34cf | 19425 | fi |
dd4f3dd8 CR |
19426 | |
19427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19428 | fi | |
19429 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19430 | $as_echo "$ac_cv_type_size_t" >&6; } | |
76af2125 | 19431 | if test $ac_cv_type_size_t = yes; then |
545f34cf CR |
19432 | : |
19433 | else | |
19434 | ||
19435 | cat >>confdefs.h <<_ACEOF | |
d3ad40de | 19436 | @%:@define size_t unsigned int |
545f34cf CR |
19437 | _ACEOF |
19438 | ||
19439 | fi | |
19440 | ||
dd4f3dd8 CR |
19441 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
19442 | $as_echo_n "checking for ssize_t... " >&6; } | |
545f34cf | 19443 | if test "${ac_cv_type_ssize_t+set}" = set; then |
dd4f3dd8 | 19444 | $as_echo_n "(cached) " >&6 |
545f34cf | 19445 | else |
dd4f3dd8 CR |
19446 | ac_cv_type_ssize_t=no |
19447 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19448 | /* confdefs.h. */ |
19449 | _ACEOF | |
19450 | cat confdefs.h >>conftest.$ac_ext | |
19451 | cat >>conftest.$ac_ext <<_ACEOF | |
19452 | /* end confdefs.h. */ | |
19453 | $ac_includes_default | |
19454 | int | |
19455 | main () | |
19456 | { | |
dd4f3dd8 CR |
19457 | if (sizeof (ssize_t)) |
19458 | return 0; | |
545f34cf CR |
19459 | ; |
19460 | return 0; | |
19461 | } | |
19462 | _ACEOF | |
19463 | rm -f conftest.$ac_objext | |
d3ad40de CR |
19464 | if { (ac_try="$ac_compile" |
19465 | case "(($ac_try" in | |
19466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19467 | *) ac_try_echo=$ac_try;; | |
19468 | esac | |
dd4f3dd8 CR |
19469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19470 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19471 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 19472 | ac_status=$? |
a82a04b3 CR |
19473 | grep -v '^ *+' conftest.er1 >conftest.err |
19474 | rm -f conftest.er1 | |
19475 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19477 | (exit $ac_status); } && { | |
19478 | test -z "$ac_c_werror_flag" || | |
19479 | test ! -s conftest.err | |
19480 | } && test -s conftest.$ac_objext; then | |
19481 | cat >conftest.$ac_ext <<_ACEOF | |
19482 | /* confdefs.h. */ | |
19483 | _ACEOF | |
19484 | cat confdefs.h >>conftest.$ac_ext | |
19485 | cat >>conftest.$ac_ext <<_ACEOF | |
19486 | /* end confdefs.h. */ | |
19487 | $ac_includes_default | |
19488 | int | |
19489 | main () | |
19490 | { | |
19491 | if (sizeof ((ssize_t))) | |
19492 | return 0; | |
19493 | ; | |
19494 | return 0; | |
19495 | } | |
19496 | _ACEOF | |
19497 | rm -f conftest.$ac_objext | |
19498 | if { (ac_try="$ac_compile" | |
19499 | case "(($ac_try" in | |
2e4498b3 CR |
19500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19501 | *) ac_try_echo=$ac_try;; | |
19502 | esac | |
dd4f3dd8 CR |
19503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19504 | $as_echo "$ac_try_echo") >&5 | |
19505 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 19506 | ac_status=$? |
dd4f3dd8 CR |
19507 | grep -v '^ *+' conftest.er1 >conftest.err |
19508 | rm -f conftest.er1 | |
19509 | cat conftest.err >&5 | |
19510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19511 | (exit $ac_status); } && { | |
19512 | test -z "$ac_c_werror_flag" || | |
19513 | test ! -s conftest.err | |
19514 | } && test -s conftest.$ac_objext; then | |
19515 | : | |
19516 | else | |
19517 | $as_echo "$as_me: failed program was:" >&5 | |
19518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19519 | ||
19520 | ac_cv_type_ssize_t=yes | |
19521 | fi | |
19522 | ||
19523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19524 | else |
dd4f3dd8 | 19525 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19526 | sed 's/^/| /' conftest.$ac_ext >&5 |
19527 | ||
dd4f3dd8 | 19528 | |
545f34cf | 19529 | fi |
d3ad40de CR |
19530 | |
19531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19532 | fi |
dd4f3dd8 CR |
19533 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
19534 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
76af2125 | 19535 | if test $ac_cv_type_ssize_t = yes; then |
545f34cf CR |
19536 | : |
19537 | else | |
19538 | ||
19539 | cat >>confdefs.h <<_ACEOF | |
19540 | @%:@define ssize_t int | |
19541 | _ACEOF | |
19542 | ||
19543 | fi | |
19544 | ||
dd4f3dd8 CR |
19545 | { $as_echo "$as_me:$LINENO: checking for time_t" >&5 |
19546 | $as_echo_n "checking for time_t... " >&6; } | |
545f34cf | 19547 | if test "${ac_cv_type_time_t+set}" = set; then |
dd4f3dd8 | 19548 | $as_echo_n "(cached) " >&6 |
545f34cf | 19549 | else |
dd4f3dd8 CR |
19550 | ac_cv_type_time_t=no |
19551 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19552 | /* confdefs.h. */ |
19553 | _ACEOF | |
19554 | cat confdefs.h >>conftest.$ac_ext | |
19555 | cat >>conftest.$ac_ext <<_ACEOF | |
19556 | /* end confdefs.h. */ | |
19557 | $ac_includes_default | |
19558 | int | |
19559 | main () | |
19560 | { | |
dd4f3dd8 CR |
19561 | if (sizeof (time_t)) |
19562 | return 0; | |
545f34cf CR |
19563 | ; |
19564 | return 0; | |
19565 | } | |
19566 | _ACEOF | |
19567 | rm -f conftest.$ac_objext | |
d3ad40de CR |
19568 | if { (ac_try="$ac_compile" |
19569 | case "(($ac_try" in | |
19570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19571 | *) ac_try_echo=$ac_try;; | |
19572 | esac | |
dd4f3dd8 CR |
19573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19574 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19575 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 19576 | ac_status=$? |
a82a04b3 CR |
19577 | grep -v '^ *+' conftest.er1 >conftest.err |
19578 | rm -f conftest.er1 | |
19579 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19581 | (exit $ac_status); } && { | |
19582 | test -z "$ac_c_werror_flag" || | |
19583 | test ! -s conftest.err | |
19584 | } && test -s conftest.$ac_objext; then | |
19585 | cat >conftest.$ac_ext <<_ACEOF | |
19586 | /* confdefs.h. */ | |
19587 | _ACEOF | |
19588 | cat confdefs.h >>conftest.$ac_ext | |
19589 | cat >>conftest.$ac_ext <<_ACEOF | |
19590 | /* end confdefs.h. */ | |
19591 | $ac_includes_default | |
19592 | int | |
19593 | main () | |
19594 | { | |
19595 | if (sizeof ((time_t))) | |
19596 | return 0; | |
19597 | ; | |
19598 | return 0; | |
19599 | } | |
19600 | _ACEOF | |
19601 | rm -f conftest.$ac_objext | |
19602 | if { (ac_try="$ac_compile" | |
19603 | case "(($ac_try" in | |
2e4498b3 CR |
19604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19605 | *) ac_try_echo=$ac_try;; | |
19606 | esac | |
dd4f3dd8 CR |
19607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19608 | $as_echo "$ac_try_echo") >&5 | |
19609 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 19610 | ac_status=$? |
dd4f3dd8 CR |
19611 | grep -v '^ *+' conftest.er1 >conftest.err |
19612 | rm -f conftest.er1 | |
19613 | cat conftest.err >&5 | |
19614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19615 | (exit $ac_status); } && { | |
19616 | test -z "$ac_c_werror_flag" || | |
19617 | test ! -s conftest.err | |
19618 | } && test -s conftest.$ac_objext; then | |
19619 | : | |
2e4498b3 | 19620 | else |
dd4f3dd8 | 19621 | $as_echo "$as_me: failed program was:" >&5 |
2e4498b3 CR |
19622 | sed 's/^/| /' conftest.$ac_ext >&5 |
19623 | ||
dd4f3dd8 | 19624 | ac_cv_type_time_t=yes |
2e4498b3 CR |
19625 | fi |
19626 | ||
19627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19628 | else |
dd4f3dd8 CR |
19629 | $as_echo "$as_me: failed program was:" >&5 |
19630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19631 | ||
19632 | ||
19633 | fi | |
19634 | ||
19635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19636 | fi | |
19637 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 | |
19638 | $as_echo "$ac_cv_type_time_t" >&6; } | |
76af2125 | 19639 | if test $ac_cv_type_time_t = yes; then |
dd4f3dd8 CR |
19640 | : |
19641 | else | |
19642 | ||
545f34cf CR |
19643 | cat >>confdefs.h <<_ACEOF |
19644 | @%:@define time_t long | |
19645 | _ACEOF | |
19646 | ||
19647 | fi | |
19648 | ||
19649 | ||
19650 | ||
dd4f3dd8 CR |
19651 | { $as_echo "$as_me:$LINENO: checking for long long" >&5 |
19652 | $as_echo_n "checking for long long... " >&6; } | |
545f34cf | 19653 | if test "${bash_cv_type_long_long+set}" = set; then |
dd4f3dd8 | 19654 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
19655 | else |
19656 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19657 | /* confdefs.h. */ |
19658 | _ACEOF | |
19659 | cat confdefs.h >>conftest.$ac_ext | |
19660 | cat >>conftest.$ac_ext <<_ACEOF | |
19661 | /* end confdefs.h. */ | |
19662 | ||
19663 | long long ll = 1; int i = 63; | |
19664 | int | |
19665 | main () | |
19666 | { | |
19667 | ||
19668 | long long llm = (long long) -1; | |
19669 | return ll << i | ll >> i | llm / ll | llm % ll; | |
19670 | ||
19671 | ; | |
19672 | return 0; | |
19673 | } | |
19674 | _ACEOF | |
19675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
19676 | if { (ac_try="$ac_link" |
19677 | case "(($ac_try" in | |
19678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19679 | *) ac_try_echo=$ac_try;; | |
19680 | esac | |
dd4f3dd8 CR |
19681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19682 | $as_echo "$ac_try_echo") >&5 | |
09767ff0 CR |
19683 | (eval "$ac_link") 2>conftest.er1 |
19684 | ac_status=$? | |
19685 | grep -v '^ *+' conftest.er1 >conftest.err | |
19686 | rm -f conftest.er1 | |
19687 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19689 | (exit $ac_status); } && { | |
19690 | test -z "$ac_c_werror_flag" || | |
19691 | test ! -s conftest.err | |
19692 | } && test -s conftest$ac_exeext && { | |
19693 | test "$cross_compiling" = yes || | |
19694 | $as_test_x conftest$ac_exeext | |
19695 | }; then | |
545f34cf CR |
19696 | bash_cv_type_long_long='long long' |
19697 | else | |
dd4f3dd8 | 19698 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19699 | sed 's/^/| /' conftest.$ac_ext >&5 |
19700 | ||
d3ad40de | 19701 | bash_cv_type_long_long='long' |
545f34cf | 19702 | fi |
d3ad40de | 19703 | |
dd4f3dd8 CR |
19704 | rm -rf conftest.dSYM |
19705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 19706 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 19707 | fi |
dd4f3dd8 CR |
19708 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5 |
19709 | $as_echo "$bash_cv_type_long_long" >&6; } | |
545f34cf CR |
19710 | if test "$bash_cv_type_long_long" = 'long long'; then |
19711 | cat >>confdefs.h <<\_ACEOF | |
19712 | @%:@define HAVE_LONG_LONG 1 | |
19713 | _ACEOF | |
19714 | ||
19715 | fi | |
19716 | ||
19717 | ||
dd4f3dd8 CR |
19718 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
19719 | $as_echo_n "checking for unsigned long long... " >&6; } | |
545f34cf | 19720 | if test "${bash_cv_type_unsigned_long_long+set}" = set; then |
dd4f3dd8 | 19721 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
19722 | else |
19723 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19724 | /* confdefs.h. */ |
19725 | _ACEOF | |
19726 | cat confdefs.h >>conftest.$ac_ext | |
19727 | cat >>conftest.$ac_ext <<_ACEOF | |
19728 | /* end confdefs.h. */ | |
19729 | ||
19730 | unsigned long long ull = 1; int i = 63; | |
19731 | int | |
19732 | main () | |
19733 | { | |
19734 | ||
19735 | unsigned long long ullmax = (unsigned long long) -1; | |
19736 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
19737 | ||
19738 | ; | |
19739 | return 0; | |
19740 | } | |
19741 | _ACEOF | |
19742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
19743 | if { (ac_try="$ac_link" |
19744 | case "(($ac_try" in | |
19745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19746 | *) ac_try_echo=$ac_try;; | |
19747 | esac | |
dd4f3dd8 CR |
19748 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19749 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19750 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 19751 | ac_status=$? |
a82a04b3 CR |
19752 | grep -v '^ *+' conftest.er1 >conftest.err |
19753 | rm -f conftest.er1 | |
19754 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19755 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19756 | (exit $ac_status); } && { | |
19757 | test -z "$ac_c_werror_flag" || | |
19758 | test ! -s conftest.err | |
19759 | } && test -s conftest$ac_exeext && { | |
19760 | test "$cross_compiling" = yes || | |
19761 | $as_test_x conftest$ac_exeext | |
19762 | }; then | |
545f34cf CR |
19763 | bash_cv_type_unsigned_long_long='unsigned long long' |
19764 | else | |
dd4f3dd8 | 19765 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19766 | sed 's/^/| /' conftest.$ac_ext >&5 |
19767 | ||
d3ad40de | 19768 | bash_cv_type_unsigned_long_long='unsigned long' |
545f34cf | 19769 | fi |
d3ad40de | 19770 | |
dd4f3dd8 CR |
19771 | rm -rf conftest.dSYM |
19772 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 19773 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 19774 | fi |
dd4f3dd8 CR |
19775 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5 |
19776 | $as_echo "$bash_cv_type_unsigned_long_long" >&6; } | |
545f34cf CR |
19777 | if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then |
19778 | cat >>confdefs.h <<\_ACEOF | |
19779 | @%:@define HAVE_UNSIGNED_LONG_LONG 1 | |
19780 | _ACEOF | |
19781 | ||
19782 | fi | |
19783 | ||
19784 | ||
dd4f3dd8 CR |
19785 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
19786 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
545f34cf | 19787 | if test "${ac_cv_type_signal+set}" = set; then |
dd4f3dd8 | 19788 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
19789 | else |
19790 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
19791 | /* confdefs.h. */ |
19792 | _ACEOF | |
19793 | cat confdefs.h >>conftest.$ac_ext | |
19794 | cat >>conftest.$ac_ext <<_ACEOF | |
19795 | /* end confdefs.h. */ | |
19796 | #include <sys/types.h> | |
19797 | #include <signal.h> | |
545f34cf CR |
19798 | |
19799 | int | |
19800 | main () | |
19801 | { | |
d3ad40de | 19802 | return *(signal (0, 0)) (0) == 1; |
545f34cf CR |
19803 | ; |
19804 | return 0; | |
19805 | } | |
19806 | _ACEOF | |
19807 | rm -f conftest.$ac_objext | |
d3ad40de CR |
19808 | if { (ac_try="$ac_compile" |
19809 | case "(($ac_try" in | |
19810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19811 | *) ac_try_echo=$ac_try;; | |
19812 | esac | |
dd4f3dd8 CR |
19813 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19814 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 19815 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 19816 | ac_status=$? |
a82a04b3 CR |
19817 | grep -v '^ *+' conftest.er1 >conftest.err |
19818 | rm -f conftest.er1 | |
19819 | cat conftest.err >&5 | |
dd4f3dd8 CR |
19820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19821 | (exit $ac_status); } && { | |
19822 | test -z "$ac_c_werror_flag" || | |
19823 | test ! -s conftest.err | |
19824 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 19825 | ac_cv_type_signal=int |
545f34cf | 19826 | else |
dd4f3dd8 | 19827 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
19828 | sed 's/^/| /' conftest.$ac_ext >&5 |
19829 | ||
d3ad40de | 19830 | ac_cv_type_signal=void |
545f34cf | 19831 | fi |
d3ad40de CR |
19832 | |
19833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 19834 | fi |
dd4f3dd8 CR |
19835 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
19836 | $as_echo "$ac_cv_type_signal" >&6; } | |
545f34cf CR |
19837 | |
19838 | cat >>confdefs.h <<_ACEOF | |
19839 | @%:@define RETSIGTYPE $ac_cv_type_signal | |
19840 | _ACEOF | |
19841 | ||
19842 | ||
a927e029 CR |
19843 | { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5 |
19844 | $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } | |
19845 | if test "${ac_cv_have_sig_atomic_t+set}" = set; then | |
19846 | $as_echo_n "(cached) " >&6 | |
19847 | else | |
19848 | cat >conftest.$ac_ext <<_ACEOF | |
19849 | /* confdefs.h. */ | |
19850 | _ACEOF | |
19851 | cat confdefs.h >>conftest.$ac_ext | |
19852 | cat >>conftest.$ac_ext <<_ACEOF | |
19853 | /* end confdefs.h. */ | |
19854 | ||
19855 | #include <signal.h> | |
19856 | ||
19857 | int | |
19858 | main () | |
19859 | { | |
19860 | sig_atomic_t x; | |
19861 | ; | |
19862 | return 0; | |
19863 | } | |
19864 | _ACEOF | |
19865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19866 | if { (ac_try="$ac_link" | |
19867 | case "(($ac_try" in | |
19868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19869 | *) ac_try_echo=$ac_try;; | |
19870 | esac | |
19871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19872 | $as_echo "$ac_try_echo") >&5 | |
19873 | (eval "$ac_link") 2>conftest.er1 | |
19874 | ac_status=$? | |
19875 | grep -v '^ *+' conftest.er1 >conftest.err | |
19876 | rm -f conftest.er1 | |
19877 | cat conftest.err >&5 | |
19878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19879 | (exit $ac_status); } && { | |
19880 | test -z "$ac_c_werror_flag" || | |
19881 | test ! -s conftest.err | |
19882 | } && test -s conftest$ac_exeext && { | |
19883 | test "$cross_compiling" = yes || | |
19884 | $as_test_x conftest$ac_exeext | |
19885 | }; then | |
19886 | ac_cv_have_sig_atomic_t=yes | |
19887 | else | |
19888 | $as_echo "$as_me: failed program was:" >&5 | |
19889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19890 | ||
19891 | ac_cv_have_sig_atomic_t=no | |
19892 | fi | |
19893 | ||
19894 | rm -rf conftest.dSYM | |
19895 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19896 | conftest$ac_exeext conftest.$ac_ext | |
19897 | fi | |
19898 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5 | |
19899 | $as_echo "$ac_cv_have_sig_atomic_t" >&6; } | |
19900 | if test "$ac_cv_have_sig_atomic_t" = "no" | |
19901 | then | |
19902 | { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | |
19903 | $as_echo_n "checking for sig_atomic_t... " >&6; } | |
19904 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | |
19905 | $as_echo_n "(cached) " >&6 | |
19906 | else | |
19907 | ac_cv_type_sig_atomic_t=no | |
19908 | cat >conftest.$ac_ext <<_ACEOF | |
19909 | /* confdefs.h. */ | |
19910 | _ACEOF | |
19911 | cat confdefs.h >>conftest.$ac_ext | |
19912 | cat >>conftest.$ac_ext <<_ACEOF | |
19913 | /* end confdefs.h. */ | |
19914 | $ac_includes_default | |
19915 | int | |
19916 | main () | |
19917 | { | |
19918 | if (sizeof (sig_atomic_t)) | |
19919 | return 0; | |
19920 | ; | |
19921 | return 0; | |
19922 | } | |
19923 | _ACEOF | |
19924 | rm -f conftest.$ac_objext | |
19925 | if { (ac_try="$ac_compile" | |
19926 | case "(($ac_try" in | |
19927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19928 | *) ac_try_echo=$ac_try;; | |
19929 | esac | |
19930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19931 | $as_echo "$ac_try_echo") >&5 | |
19932 | (eval "$ac_compile") 2>conftest.er1 | |
19933 | ac_status=$? | |
19934 | grep -v '^ *+' conftest.er1 >conftest.err | |
19935 | rm -f conftest.er1 | |
19936 | cat conftest.err >&5 | |
19937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19938 | (exit $ac_status); } && { | |
19939 | test -z "$ac_c_werror_flag" || | |
19940 | test ! -s conftest.err | |
19941 | } && test -s conftest.$ac_objext; then | |
19942 | cat >conftest.$ac_ext <<_ACEOF | |
19943 | /* confdefs.h. */ | |
19944 | _ACEOF | |
19945 | cat confdefs.h >>conftest.$ac_ext | |
19946 | cat >>conftest.$ac_ext <<_ACEOF | |
19947 | /* end confdefs.h. */ | |
19948 | $ac_includes_default | |
19949 | int | |
19950 | main () | |
19951 | { | |
19952 | if (sizeof ((sig_atomic_t))) | |
19953 | return 0; | |
19954 | ; | |
19955 | return 0; | |
19956 | } | |
19957 | _ACEOF | |
19958 | rm -f conftest.$ac_objext | |
19959 | if { (ac_try="$ac_compile" | |
19960 | case "(($ac_try" in | |
19961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19962 | *) ac_try_echo=$ac_try;; | |
19963 | esac | |
19964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19965 | $as_echo "$ac_try_echo") >&5 | |
19966 | (eval "$ac_compile") 2>conftest.er1 | |
19967 | ac_status=$? | |
19968 | grep -v '^ *+' conftest.er1 >conftest.err | |
19969 | rm -f conftest.er1 | |
19970 | cat conftest.err >&5 | |
19971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19972 | (exit $ac_status); } && { | |
19973 | test -z "$ac_c_werror_flag" || | |
19974 | test ! -s conftest.err | |
19975 | } && test -s conftest.$ac_objext; then | |
19976 | : | |
19977 | else | |
19978 | $as_echo "$as_me: failed program was:" >&5 | |
19979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19980 | ||
19981 | ac_cv_type_sig_atomic_t=yes | |
19982 | fi | |
19983 | ||
19984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19985 | else | |
19986 | $as_echo "$as_me: failed program was:" >&5 | |
19987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19988 | ||
19989 | ||
19990 | fi | |
19991 | ||
19992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19993 | fi | |
19994 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | |
19995 | $as_echo "$ac_cv_type_sig_atomic_t" >&6; } | |
76af2125 | 19996 | if test $ac_cv_type_sig_atomic_t = yes; then |
a927e029 CR |
19997 | : |
19998 | else | |
19999 | ||
20000 | cat >>confdefs.h <<_ACEOF | |
20001 | @%:@define sig_atomic_t int | |
20002 | _ACEOF | |
20003 | ||
20004 | fi | |
20005 | ||
20006 | fi | |
20007 | ||
545f34cf | 20008 | |
dd4f3dd8 CR |
20009 | # The cast to long int works around a bug in the HP C Compiler |
20010 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20011 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20012 | # This bug is HP SR number 8606223364. | |
20013 | { $as_echo "$as_me:$LINENO: checking size of char" >&5 | |
20014 | $as_echo_n "checking size of char... " >&6; } | |
545f34cf | 20015 | if test "${ac_cv_sizeof_char+set}" = set; then |
dd4f3dd8 | 20016 | $as_echo_n "(cached) " >&6 |
545f34cf | 20017 | else |
545f34cf CR |
20018 | if test "$cross_compiling" = yes; then |
20019 | # Depending upon the size, compute the lo and hi bounds. | |
20020 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20021 | /* confdefs.h. */ |
20022 | _ACEOF | |
20023 | cat confdefs.h >>conftest.$ac_ext | |
20024 | cat >>conftest.$ac_ext <<_ACEOF | |
20025 | /* end confdefs.h. */ | |
20026 | $ac_includes_default | |
20027 | int | |
20028 | main () | |
20029 | { | |
dd4f3dd8 | 20030 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= 0)@:>@; |
545f34cf CR |
20031 | test_array @<:@0@:>@ = 0 |
20032 | ||
20033 | ; | |
20034 | return 0; | |
20035 | } | |
20036 | _ACEOF | |
20037 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20038 | if { (ac_try="$ac_compile" |
20039 | case "(($ac_try" in | |
20040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20041 | *) ac_try_echo=$ac_try;; | |
20042 | esac | |
dd4f3dd8 CR |
20043 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20044 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20045 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20046 | ac_status=$? |
a82a04b3 CR |
20047 | grep -v '^ *+' conftest.er1 >conftest.err |
20048 | rm -f conftest.er1 | |
20049 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20050 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20051 | (exit $ac_status); } && { | |
20052 | test -z "$ac_c_werror_flag" || | |
20053 | test ! -s conftest.err | |
20054 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20055 | ac_lo=0 ac_mid=0 |
20056 | while :; do | |
20057 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20058 | /* confdefs.h. */ |
20059 | _ACEOF | |
20060 | cat confdefs.h >>conftest.$ac_ext | |
20061 | cat >>conftest.$ac_ext <<_ACEOF | |
20062 | /* end confdefs.h. */ | |
20063 | $ac_includes_default | |
20064 | int | |
20065 | main () | |
20066 | { | |
dd4f3dd8 | 20067 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@; |
545f34cf CR |
20068 | test_array @<:@0@:>@ = 0 |
20069 | ||
20070 | ; | |
20071 | return 0; | |
20072 | } | |
20073 | _ACEOF | |
20074 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20075 | if { (ac_try="$ac_compile" |
20076 | case "(($ac_try" in | |
20077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20078 | *) ac_try_echo=$ac_try;; | |
20079 | esac | |
dd4f3dd8 CR |
20080 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20081 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20082 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20083 | ac_status=$? |
a82a04b3 CR |
20084 | grep -v '^ *+' conftest.er1 >conftest.err |
20085 | rm -f conftest.er1 | |
20086 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20088 | (exit $ac_status); } && { | |
20089 | test -z "$ac_c_werror_flag" || | |
20090 | test ! -s conftest.err | |
20091 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20092 | ac_hi=$ac_mid; break |
20093 | else | |
dd4f3dd8 | 20094 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20095 | sed 's/^/| /' conftest.$ac_ext >&5 |
20096 | ||
d3ad40de CR |
20097 | ac_lo=`expr $ac_mid + 1` |
20098 | if test $ac_lo -le $ac_mid; then | |
20099 | ac_lo= ac_hi= | |
20100 | break | |
20101 | fi | |
20102 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
545f34cf | 20103 | fi |
d3ad40de CR |
20104 | |
20105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20106 | done |
20107 | else | |
dd4f3dd8 | 20108 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20109 | sed 's/^/| /' conftest.$ac_ext >&5 |
20110 | ||
d3ad40de | 20111 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
20112 | /* confdefs.h. */ |
20113 | _ACEOF | |
20114 | cat confdefs.h >>conftest.$ac_ext | |
20115 | cat >>conftest.$ac_ext <<_ACEOF | |
20116 | /* end confdefs.h. */ | |
20117 | $ac_includes_default | |
20118 | int | |
20119 | main () | |
20120 | { | |
dd4f3dd8 | 20121 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) < 0)@:>@; |
545f34cf CR |
20122 | test_array @<:@0@:>@ = 0 |
20123 | ||
20124 | ; | |
20125 | return 0; | |
20126 | } | |
20127 | _ACEOF | |
20128 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20129 | if { (ac_try="$ac_compile" |
20130 | case "(($ac_try" in | |
20131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20132 | *) ac_try_echo=$ac_try;; | |
20133 | esac | |
dd4f3dd8 CR |
20134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20135 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20136 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20137 | ac_status=$? |
a82a04b3 CR |
20138 | grep -v '^ *+' conftest.er1 >conftest.err |
20139 | rm -f conftest.er1 | |
20140 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20142 | (exit $ac_status); } && { | |
20143 | test -z "$ac_c_werror_flag" || | |
20144 | test ! -s conftest.err | |
20145 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20146 | ac_hi=-1 ac_mid=-1 |
20147 | while :; do | |
20148 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20149 | /* confdefs.h. */ |
20150 | _ACEOF | |
20151 | cat confdefs.h >>conftest.$ac_ext | |
20152 | cat >>conftest.$ac_ext <<_ACEOF | |
20153 | /* end confdefs.h. */ | |
20154 | $ac_includes_default | |
20155 | int | |
20156 | main () | |
20157 | { | |
dd4f3dd8 | 20158 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)@:>@; |
545f34cf CR |
20159 | test_array @<:@0@:>@ = 0 |
20160 | ||
20161 | ; | |
20162 | return 0; | |
20163 | } | |
20164 | _ACEOF | |
20165 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20166 | if { (ac_try="$ac_compile" |
20167 | case "(($ac_try" in | |
20168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20169 | *) ac_try_echo=$ac_try;; | |
20170 | esac | |
dd4f3dd8 CR |
20171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20172 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20173 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20174 | ac_status=$? |
a82a04b3 CR |
20175 | grep -v '^ *+' conftest.er1 >conftest.err |
20176 | rm -f conftest.er1 | |
20177 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20179 | (exit $ac_status); } && { | |
20180 | test -z "$ac_c_werror_flag" || | |
20181 | test ! -s conftest.err | |
20182 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20183 | ac_lo=$ac_mid; break |
20184 | else | |
dd4f3dd8 | 20185 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20186 | sed 's/^/| /' conftest.$ac_ext >&5 |
20187 | ||
d3ad40de CR |
20188 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20189 | if test $ac_mid -le $ac_hi; then | |
20190 | ac_lo= ac_hi= | |
20191 | break | |
20192 | fi | |
20193 | ac_mid=`expr 2 '*' $ac_mid` | |
545f34cf | 20194 | fi |
d3ad40de CR |
20195 | |
20196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20197 | done |
20198 | else | |
dd4f3dd8 | 20199 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20200 | sed 's/^/| /' conftest.$ac_ext >&5 |
20201 | ||
d3ad40de | 20202 | ac_lo= ac_hi= |
545f34cf | 20203 | fi |
d3ad40de CR |
20204 | |
20205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 20206 | fi |
d3ad40de CR |
20207 | |
20208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20209 | # Binary search between lo and hi bounds. |
20210 | while test "x$ac_lo" != "x$ac_hi"; do | |
20211 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20212 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20213 | /* confdefs.h. */ |
20214 | _ACEOF | |
20215 | cat confdefs.h >>conftest.$ac_ext | |
20216 | cat >>conftest.$ac_ext <<_ACEOF | |
20217 | /* end confdefs.h. */ | |
20218 | $ac_includes_default | |
20219 | int | |
20220 | main () | |
20221 | { | |
dd4f3dd8 | 20222 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@; |
545f34cf CR |
20223 | test_array @<:@0@:>@ = 0 |
20224 | ||
20225 | ; | |
20226 | return 0; | |
20227 | } | |
20228 | _ACEOF | |
20229 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20230 | if { (ac_try="$ac_compile" |
20231 | case "(($ac_try" in | |
20232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20233 | *) ac_try_echo=$ac_try;; | |
20234 | esac | |
dd4f3dd8 CR |
20235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20236 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20237 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20238 | ac_status=$? |
a82a04b3 CR |
20239 | grep -v '^ *+' conftest.er1 >conftest.err |
20240 | rm -f conftest.er1 | |
20241 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20243 | (exit $ac_status); } && { | |
20244 | test -z "$ac_c_werror_flag" || | |
20245 | test ! -s conftest.err | |
20246 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20247 | ac_hi=$ac_mid |
20248 | else | |
dd4f3dd8 | 20249 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20250 | sed 's/^/| /' conftest.$ac_ext >&5 |
20251 | ||
d3ad40de | 20252 | ac_lo=`expr '(' $ac_mid ')' + 1` |
545f34cf | 20253 | fi |
d3ad40de CR |
20254 | |
20255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20256 | done |
20257 | case $ac_lo in | |
20258 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
dd4f3dd8 | 20259 | '') if test "$ac_cv_type_char" = yes; then |
76af2125 | 20260 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) |
545f34cf | 20261 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 20262 | $as_echo "$as_me: error: cannot compute sizeof (char) |
545f34cf | 20263 | See \`config.log' for more details." >&2;} |
76af2125 | 20264 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
20265 | else |
20266 | ac_cv_sizeof_char=0 | |
20267 | fi ;; | |
545f34cf | 20268 | esac |
545f34cf CR |
20269 | else |
20270 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20271 | /* confdefs.h. */ |
20272 | _ACEOF | |
20273 | cat confdefs.h >>conftest.$ac_ext | |
20274 | cat >>conftest.$ac_ext <<_ACEOF | |
20275 | /* end confdefs.h. */ | |
20276 | $ac_includes_default | |
dd4f3dd8 CR |
20277 | static long int longval () { return (long int) (sizeof (char)); } |
20278 | static unsigned long int ulongval () { return (long int) (sizeof (char)); } | |
545f34cf CR |
20279 | @%:@include <stdio.h> |
20280 | @%:@include <stdlib.h> | |
20281 | int | |
20282 | main () | |
20283 | { | |
20284 | ||
20285 | FILE *f = fopen ("conftest.val", "w"); | |
20286 | if (! f) | |
d3ad40de | 20287 | return 1; |
dd4f3dd8 | 20288 | if (((long int) (sizeof (char))) < 0) |
545f34cf | 20289 | { |
d3ad40de | 20290 | long int i = longval (); |
dd4f3dd8 | 20291 | if (i != ((long int) (sizeof (char)))) |
d3ad40de | 20292 | return 1; |
dd4f3dd8 | 20293 | fprintf (f, "%ld", i); |
545f34cf CR |
20294 | } |
20295 | else | |
20296 | { | |
d3ad40de | 20297 | unsigned long int i = ulongval (); |
dd4f3dd8 | 20298 | if (i != ((long int) (sizeof (char)))) |
d3ad40de | 20299 | return 1; |
dd4f3dd8 | 20300 | fprintf (f, "%lu", i); |
545f34cf | 20301 | } |
dd4f3dd8 CR |
20302 | /* Do not output a trailing newline, as this causes \r\n confusion |
20303 | on some platforms. */ | |
d3ad40de | 20304 | return ferror (f) || fclose (f) != 0; |
545f34cf CR |
20305 | |
20306 | ; | |
20307 | return 0; | |
20308 | } | |
20309 | _ACEOF | |
20310 | rm -f conftest$ac_exeext | |
d3ad40de CR |
20311 | if { (ac_try="$ac_link" |
20312 | case "(($ac_try" in | |
20313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20314 | *) ac_try_echo=$ac_try;; | |
20315 | esac | |
dd4f3dd8 CR |
20316 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20317 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20318 | (eval "$ac_link") 2>&5 |
545f34cf | 20319 | ac_status=$? |
dd4f3dd8 | 20320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 20321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
20322 | { (case "(($ac_try" in |
20323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20324 | *) ac_try_echo=$ac_try;; | |
20325 | esac | |
dd4f3dd8 CR |
20326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20327 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20328 | (eval "$ac_try") 2>&5 |
545f34cf | 20329 | ac_status=$? |
dd4f3dd8 | 20330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
20331 | (exit $ac_status); }; }; then |
20332 | ac_cv_sizeof_char=`cat conftest.val` | |
20333 | else | |
dd4f3dd8 CR |
20334 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
20335 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
20336 | sed 's/^/| /' conftest.$ac_ext >&5 |
20337 | ||
20338 | ( exit $ac_status ) | |
dd4f3dd8 | 20339 | if test "$ac_cv_type_char" = yes; then |
76af2125 | 20340 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) |
545f34cf | 20341 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 20342 | $as_echo "$as_me: error: cannot compute sizeof (char) |
545f34cf | 20343 | See \`config.log' for more details." >&2;} |
76af2125 | 20344 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
20345 | else |
20346 | ac_cv_sizeof_char=0 | |
20347 | fi | |
545f34cf | 20348 | fi |
dd4f3dd8 | 20349 | rm -rf conftest.dSYM |
d3ad40de | 20350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
20351 | fi |
20352 | rm -f conftest.val | |
545f34cf | 20353 | fi |
dd4f3dd8 CR |
20354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
20355 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
545f34cf CR |
20356 | |
20357 | ||
545f34cf | 20358 | |
dd4f3dd8 CR |
20359 | cat >>confdefs.h <<_ACEOF |
20360 | @%:@define SIZEOF_CHAR $ac_cv_sizeof_char | |
20361 | _ACEOF | |
d3ad40de | 20362 | |
545f34cf | 20363 | |
dd4f3dd8 CR |
20364 | # The cast to long int works around a bug in the HP C Compiler |
20365 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20366 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20367 | # This bug is HP SR number 8606223364. | |
20368 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 | |
20369 | $as_echo_n "checking size of short... " >&6; } | |
545f34cf | 20370 | if test "${ac_cv_sizeof_short+set}" = set; then |
dd4f3dd8 | 20371 | $as_echo_n "(cached) " >&6 |
545f34cf | 20372 | else |
545f34cf CR |
20373 | if test "$cross_compiling" = yes; then |
20374 | # Depending upon the size, compute the lo and hi bounds. | |
20375 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20376 | /* confdefs.h. */ |
20377 | _ACEOF | |
20378 | cat confdefs.h >>conftest.$ac_ext | |
20379 | cat >>conftest.$ac_ext <<_ACEOF | |
20380 | /* end confdefs.h. */ | |
20381 | $ac_includes_default | |
20382 | int | |
20383 | main () | |
20384 | { | |
dd4f3dd8 | 20385 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= 0)@:>@; |
545f34cf CR |
20386 | test_array @<:@0@:>@ = 0 |
20387 | ||
20388 | ; | |
20389 | return 0; | |
20390 | } | |
20391 | _ACEOF | |
20392 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20393 | if { (ac_try="$ac_compile" |
20394 | case "(($ac_try" in | |
20395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20396 | *) ac_try_echo=$ac_try;; | |
20397 | esac | |
dd4f3dd8 CR |
20398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20399 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20400 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20401 | ac_status=$? |
a82a04b3 CR |
20402 | grep -v '^ *+' conftest.er1 >conftest.err |
20403 | rm -f conftest.er1 | |
20404 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20406 | (exit $ac_status); } && { | |
20407 | test -z "$ac_c_werror_flag" || | |
20408 | test ! -s conftest.err | |
20409 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20410 | ac_lo=0 ac_mid=0 |
20411 | while :; do | |
20412 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20413 | /* confdefs.h. */ |
20414 | _ACEOF | |
20415 | cat confdefs.h >>conftest.$ac_ext | |
20416 | cat >>conftest.$ac_ext <<_ACEOF | |
20417 | /* end confdefs.h. */ | |
20418 | $ac_includes_default | |
20419 | int | |
20420 | main () | |
20421 | { | |
dd4f3dd8 | 20422 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@; |
545f34cf CR |
20423 | test_array @<:@0@:>@ = 0 |
20424 | ||
20425 | ; | |
20426 | return 0; | |
20427 | } | |
20428 | _ACEOF | |
20429 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20430 | if { (ac_try="$ac_compile" |
20431 | case "(($ac_try" in | |
20432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20433 | *) ac_try_echo=$ac_try;; | |
20434 | esac | |
dd4f3dd8 CR |
20435 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20436 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20437 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20438 | ac_status=$? |
a82a04b3 CR |
20439 | grep -v '^ *+' conftest.er1 >conftest.err |
20440 | rm -f conftest.er1 | |
20441 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20443 | (exit $ac_status); } && { | |
20444 | test -z "$ac_c_werror_flag" || | |
20445 | test ! -s conftest.err | |
20446 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20447 | ac_hi=$ac_mid; break |
20448 | else | |
dd4f3dd8 | 20449 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20450 | sed 's/^/| /' conftest.$ac_ext >&5 |
20451 | ||
d3ad40de CR |
20452 | ac_lo=`expr $ac_mid + 1` |
20453 | if test $ac_lo -le $ac_mid; then | |
20454 | ac_lo= ac_hi= | |
20455 | break | |
20456 | fi | |
20457 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
545f34cf | 20458 | fi |
d3ad40de CR |
20459 | |
20460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20461 | done |
20462 | else | |
dd4f3dd8 | 20463 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20464 | sed 's/^/| /' conftest.$ac_ext >&5 |
20465 | ||
d3ad40de | 20466 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
20467 | /* confdefs.h. */ |
20468 | _ACEOF | |
20469 | cat confdefs.h >>conftest.$ac_ext | |
20470 | cat >>conftest.$ac_ext <<_ACEOF | |
20471 | /* end confdefs.h. */ | |
20472 | $ac_includes_default | |
20473 | int | |
20474 | main () | |
20475 | { | |
dd4f3dd8 | 20476 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) < 0)@:>@; |
545f34cf CR |
20477 | test_array @<:@0@:>@ = 0 |
20478 | ||
20479 | ; | |
20480 | return 0; | |
20481 | } | |
20482 | _ACEOF | |
20483 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20484 | if { (ac_try="$ac_compile" |
20485 | case "(($ac_try" in | |
20486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20487 | *) ac_try_echo=$ac_try;; | |
20488 | esac | |
dd4f3dd8 CR |
20489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20490 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20491 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20492 | ac_status=$? |
a82a04b3 CR |
20493 | grep -v '^ *+' conftest.er1 >conftest.err |
20494 | rm -f conftest.er1 | |
20495 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20497 | (exit $ac_status); } && { | |
20498 | test -z "$ac_c_werror_flag" || | |
20499 | test ! -s conftest.err | |
20500 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20501 | ac_hi=-1 ac_mid=-1 |
20502 | while :; do | |
20503 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20504 | /* confdefs.h. */ |
20505 | _ACEOF | |
20506 | cat confdefs.h >>conftest.$ac_ext | |
20507 | cat >>conftest.$ac_ext <<_ACEOF | |
20508 | /* end confdefs.h. */ | |
20509 | $ac_includes_default | |
20510 | int | |
20511 | main () | |
20512 | { | |
dd4f3dd8 | 20513 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)@:>@; |
545f34cf CR |
20514 | test_array @<:@0@:>@ = 0 |
20515 | ||
20516 | ; | |
20517 | return 0; | |
20518 | } | |
20519 | _ACEOF | |
20520 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20521 | if { (ac_try="$ac_compile" |
20522 | case "(($ac_try" in | |
20523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20524 | *) ac_try_echo=$ac_try;; | |
20525 | esac | |
dd4f3dd8 CR |
20526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20527 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20528 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20529 | ac_status=$? |
a82a04b3 CR |
20530 | grep -v '^ *+' conftest.er1 >conftest.err |
20531 | rm -f conftest.er1 | |
20532 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20534 | (exit $ac_status); } && { | |
20535 | test -z "$ac_c_werror_flag" || | |
20536 | test ! -s conftest.err | |
20537 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20538 | ac_lo=$ac_mid; break |
20539 | else | |
dd4f3dd8 | 20540 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20541 | sed 's/^/| /' conftest.$ac_ext >&5 |
20542 | ||
d3ad40de CR |
20543 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20544 | if test $ac_mid -le $ac_hi; then | |
20545 | ac_lo= ac_hi= | |
20546 | break | |
20547 | fi | |
20548 | ac_mid=`expr 2 '*' $ac_mid` | |
545f34cf | 20549 | fi |
d3ad40de CR |
20550 | |
20551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20552 | done |
20553 | else | |
dd4f3dd8 | 20554 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20555 | sed 's/^/| /' conftest.$ac_ext >&5 |
20556 | ||
d3ad40de | 20557 | ac_lo= ac_hi= |
545f34cf | 20558 | fi |
d3ad40de CR |
20559 | |
20560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 20561 | fi |
d3ad40de CR |
20562 | |
20563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20564 | # Binary search between lo and hi bounds. |
20565 | while test "x$ac_lo" != "x$ac_hi"; do | |
20566 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20567 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20568 | /* confdefs.h. */ |
20569 | _ACEOF | |
20570 | cat confdefs.h >>conftest.$ac_ext | |
20571 | cat >>conftest.$ac_ext <<_ACEOF | |
20572 | /* end confdefs.h. */ | |
20573 | $ac_includes_default | |
20574 | int | |
20575 | main () | |
20576 | { | |
dd4f3dd8 | 20577 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@; |
545f34cf CR |
20578 | test_array @<:@0@:>@ = 0 |
20579 | ||
20580 | ; | |
20581 | return 0; | |
20582 | } | |
20583 | _ACEOF | |
20584 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20585 | if { (ac_try="$ac_compile" |
20586 | case "(($ac_try" in | |
20587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20588 | *) ac_try_echo=$ac_try;; | |
20589 | esac | |
dd4f3dd8 CR |
20590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20591 | $as_echo "$ac_try_echo") >&5 | |
2e4498b3 CR |
20592 | (eval "$ac_compile") 2>conftest.er1 |
20593 | ac_status=$? | |
20594 | grep -v '^ *+' conftest.er1 >conftest.err | |
20595 | rm -f conftest.er1 | |
20596 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20598 | (exit $ac_status); } && { | |
20599 | test -z "$ac_c_werror_flag" || | |
20600 | test ! -s conftest.err | |
20601 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20602 | ac_hi=$ac_mid |
20603 | else | |
dd4f3dd8 | 20604 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20605 | sed 's/^/| /' conftest.$ac_ext >&5 |
20606 | ||
d3ad40de | 20607 | ac_lo=`expr '(' $ac_mid ')' + 1` |
545f34cf | 20608 | fi |
d3ad40de CR |
20609 | |
20610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20611 | done |
20612 | case $ac_lo in | |
20613 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
dd4f3dd8 | 20614 | '') if test "$ac_cv_type_short" = yes; then |
76af2125 | 20615 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
545f34cf | 20616 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 20617 | $as_echo "$as_me: error: cannot compute sizeof (short) |
545f34cf | 20618 | See \`config.log' for more details." >&2;} |
76af2125 | 20619 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
20620 | else |
20621 | ac_cv_sizeof_short=0 | |
20622 | fi ;; | |
545f34cf | 20623 | esac |
545f34cf CR |
20624 | else |
20625 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20626 | /* confdefs.h. */ |
20627 | _ACEOF | |
20628 | cat confdefs.h >>conftest.$ac_ext | |
20629 | cat >>conftest.$ac_ext <<_ACEOF | |
20630 | /* end confdefs.h. */ | |
20631 | $ac_includes_default | |
dd4f3dd8 CR |
20632 | static long int longval () { return (long int) (sizeof (short)); } |
20633 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } | |
545f34cf CR |
20634 | @%:@include <stdio.h> |
20635 | @%:@include <stdlib.h> | |
20636 | int | |
20637 | main () | |
20638 | { | |
20639 | ||
20640 | FILE *f = fopen ("conftest.val", "w"); | |
20641 | if (! f) | |
d3ad40de | 20642 | return 1; |
dd4f3dd8 | 20643 | if (((long int) (sizeof (short))) < 0) |
545f34cf | 20644 | { |
d3ad40de | 20645 | long int i = longval (); |
dd4f3dd8 | 20646 | if (i != ((long int) (sizeof (short)))) |
d3ad40de | 20647 | return 1; |
dd4f3dd8 | 20648 | fprintf (f, "%ld", i); |
545f34cf CR |
20649 | } |
20650 | else | |
20651 | { | |
d3ad40de | 20652 | unsigned long int i = ulongval (); |
dd4f3dd8 | 20653 | if (i != ((long int) (sizeof (short)))) |
d3ad40de | 20654 | return 1; |
dd4f3dd8 | 20655 | fprintf (f, "%lu", i); |
545f34cf | 20656 | } |
dd4f3dd8 CR |
20657 | /* Do not output a trailing newline, as this causes \r\n confusion |
20658 | on some platforms. */ | |
d3ad40de | 20659 | return ferror (f) || fclose (f) != 0; |
545f34cf CR |
20660 | |
20661 | ; | |
20662 | return 0; | |
20663 | } | |
20664 | _ACEOF | |
20665 | rm -f conftest$ac_exeext | |
d3ad40de CR |
20666 | if { (ac_try="$ac_link" |
20667 | case "(($ac_try" in | |
20668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20669 | *) ac_try_echo=$ac_try;; | |
20670 | esac | |
dd4f3dd8 CR |
20671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20672 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20673 | (eval "$ac_link") 2>&5 |
545f34cf | 20674 | ac_status=$? |
dd4f3dd8 | 20675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 20676 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
20677 | { (case "(($ac_try" in |
20678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20679 | *) ac_try_echo=$ac_try;; | |
20680 | esac | |
dd4f3dd8 CR |
20681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20682 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20683 | (eval "$ac_try") 2>&5 |
545f34cf | 20684 | ac_status=$? |
dd4f3dd8 | 20685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
20686 | (exit $ac_status); }; }; then |
20687 | ac_cv_sizeof_short=`cat conftest.val` | |
20688 | else | |
dd4f3dd8 CR |
20689 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
20690 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
20691 | sed 's/^/| /' conftest.$ac_ext >&5 |
20692 | ||
20693 | ( exit $ac_status ) | |
dd4f3dd8 | 20694 | if test "$ac_cv_type_short" = yes; then |
76af2125 | 20695 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
545f34cf | 20696 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 20697 | $as_echo "$as_me: error: cannot compute sizeof (short) |
545f34cf | 20698 | See \`config.log' for more details." >&2;} |
76af2125 | 20699 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
20700 | else |
20701 | ac_cv_sizeof_short=0 | |
20702 | fi | |
545f34cf | 20703 | fi |
dd4f3dd8 | 20704 | rm -rf conftest.dSYM |
d3ad40de | 20705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
20706 | fi |
20707 | rm -f conftest.val | |
2e4498b3 | 20708 | fi |
dd4f3dd8 CR |
20709 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
20710 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
545f34cf CR |
20711 | |
20712 | ||
545f34cf | 20713 | |
dd4f3dd8 CR |
20714 | cat >>confdefs.h <<_ACEOF |
20715 | @%:@define SIZEOF_SHORT $ac_cv_sizeof_short | |
20716 | _ACEOF | |
d3ad40de | 20717 | |
545f34cf | 20718 | |
dd4f3dd8 CR |
20719 | # The cast to long int works around a bug in the HP C Compiler |
20720 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20721 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20722 | # This bug is HP SR number 8606223364. | |
20723 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 | |
20724 | $as_echo_n "checking size of int... " >&6; } | |
545f34cf | 20725 | if test "${ac_cv_sizeof_int+set}" = set; then |
dd4f3dd8 | 20726 | $as_echo_n "(cached) " >&6 |
545f34cf | 20727 | else |
545f34cf CR |
20728 | if test "$cross_compiling" = yes; then |
20729 | # Depending upon the size, compute the lo and hi bounds. | |
20730 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20731 | /* confdefs.h. */ |
20732 | _ACEOF | |
20733 | cat confdefs.h >>conftest.$ac_ext | |
20734 | cat >>conftest.$ac_ext <<_ACEOF | |
20735 | /* end confdefs.h. */ | |
20736 | $ac_includes_default | |
20737 | int | |
20738 | main () | |
20739 | { | |
dd4f3dd8 | 20740 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@; |
545f34cf CR |
20741 | test_array @<:@0@:>@ = 0 |
20742 | ||
20743 | ; | |
20744 | return 0; | |
20745 | } | |
20746 | _ACEOF | |
20747 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20748 | if { (ac_try="$ac_compile" |
20749 | case "(($ac_try" in | |
20750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20751 | *) ac_try_echo=$ac_try;; | |
20752 | esac | |
dd4f3dd8 CR |
20753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20754 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20755 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20756 | ac_status=$? |
a82a04b3 CR |
20757 | grep -v '^ *+' conftest.er1 >conftest.err |
20758 | rm -f conftest.er1 | |
20759 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20761 | (exit $ac_status); } && { | |
20762 | test -z "$ac_c_werror_flag" || | |
20763 | test ! -s conftest.err | |
20764 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20765 | ac_lo=0 ac_mid=0 |
20766 | while :; do | |
20767 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20768 | /* confdefs.h. */ |
20769 | _ACEOF | |
20770 | cat confdefs.h >>conftest.$ac_ext | |
20771 | cat >>conftest.$ac_ext <<_ACEOF | |
20772 | /* end confdefs.h. */ | |
20773 | $ac_includes_default | |
20774 | int | |
20775 | main () | |
20776 | { | |
dd4f3dd8 | 20777 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@; |
545f34cf CR |
20778 | test_array @<:@0@:>@ = 0 |
20779 | ||
20780 | ; | |
20781 | return 0; | |
20782 | } | |
20783 | _ACEOF | |
20784 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20785 | if { (ac_try="$ac_compile" |
20786 | case "(($ac_try" in | |
20787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20788 | *) ac_try_echo=$ac_try;; | |
20789 | esac | |
dd4f3dd8 CR |
20790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20791 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20792 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20793 | ac_status=$? |
a82a04b3 CR |
20794 | grep -v '^ *+' conftest.er1 >conftest.err |
20795 | rm -f conftest.er1 | |
20796 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20798 | (exit $ac_status); } && { | |
20799 | test -z "$ac_c_werror_flag" || | |
20800 | test ! -s conftest.err | |
20801 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20802 | ac_hi=$ac_mid; break |
20803 | else | |
dd4f3dd8 | 20804 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20805 | sed 's/^/| /' conftest.$ac_ext >&5 |
20806 | ||
d3ad40de CR |
20807 | ac_lo=`expr $ac_mid + 1` |
20808 | if test $ac_lo -le $ac_mid; then | |
20809 | ac_lo= ac_hi= | |
20810 | break | |
20811 | fi | |
20812 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
545f34cf | 20813 | fi |
d3ad40de CR |
20814 | |
20815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20816 | done |
20817 | else | |
dd4f3dd8 | 20818 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20819 | sed 's/^/| /' conftest.$ac_ext >&5 |
20820 | ||
d3ad40de | 20821 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
20822 | /* confdefs.h. */ |
20823 | _ACEOF | |
20824 | cat confdefs.h >>conftest.$ac_ext | |
20825 | cat >>conftest.$ac_ext <<_ACEOF | |
20826 | /* end confdefs.h. */ | |
20827 | $ac_includes_default | |
20828 | int | |
20829 | main () | |
20830 | { | |
dd4f3dd8 | 20831 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@; |
545f34cf CR |
20832 | test_array @<:@0@:>@ = 0 |
20833 | ||
20834 | ; | |
20835 | return 0; | |
20836 | } | |
20837 | _ACEOF | |
20838 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20839 | if { (ac_try="$ac_compile" |
20840 | case "(($ac_try" in | |
20841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20842 | *) ac_try_echo=$ac_try;; | |
20843 | esac | |
dd4f3dd8 CR |
20844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20845 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20846 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20847 | ac_status=$? |
a82a04b3 CR |
20848 | grep -v '^ *+' conftest.er1 >conftest.err |
20849 | rm -f conftest.er1 | |
20850 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20852 | (exit $ac_status); } && { | |
20853 | test -z "$ac_c_werror_flag" || | |
20854 | test ! -s conftest.err | |
20855 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20856 | ac_hi=-1 ac_mid=-1 |
20857 | while :; do | |
20858 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20859 | /* confdefs.h. */ |
20860 | _ACEOF | |
20861 | cat confdefs.h >>conftest.$ac_ext | |
20862 | cat >>conftest.$ac_ext <<_ACEOF | |
20863 | /* end confdefs.h. */ | |
20864 | $ac_includes_default | |
20865 | int | |
20866 | main () | |
20867 | { | |
dd4f3dd8 | 20868 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@; |
545f34cf CR |
20869 | test_array @<:@0@:>@ = 0 |
20870 | ||
20871 | ; | |
20872 | return 0; | |
20873 | } | |
20874 | _ACEOF | |
20875 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20876 | if { (ac_try="$ac_compile" |
20877 | case "(($ac_try" in | |
20878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20879 | *) ac_try_echo=$ac_try;; | |
20880 | esac | |
dd4f3dd8 CR |
20881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20882 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20883 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20884 | ac_status=$? |
a82a04b3 CR |
20885 | grep -v '^ *+' conftest.er1 >conftest.err |
20886 | rm -f conftest.er1 | |
20887 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20889 | (exit $ac_status); } && { | |
20890 | test -z "$ac_c_werror_flag" || | |
20891 | test ! -s conftest.err | |
20892 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20893 | ac_lo=$ac_mid; break |
20894 | else | |
dd4f3dd8 | 20895 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20896 | sed 's/^/| /' conftest.$ac_ext >&5 |
20897 | ||
d3ad40de CR |
20898 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20899 | if test $ac_mid -le $ac_hi; then | |
20900 | ac_lo= ac_hi= | |
20901 | break | |
20902 | fi | |
20903 | ac_mid=`expr 2 '*' $ac_mid` | |
545f34cf | 20904 | fi |
d3ad40de CR |
20905 | |
20906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20907 | done |
20908 | else | |
dd4f3dd8 | 20909 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20910 | sed 's/^/| /' conftest.$ac_ext >&5 |
20911 | ||
d3ad40de | 20912 | ac_lo= ac_hi= |
545f34cf | 20913 | fi |
d3ad40de CR |
20914 | |
20915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 20916 | fi |
d3ad40de CR |
20917 | |
20918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20919 | # Binary search between lo and hi bounds. |
20920 | while test "x$ac_lo" != "x$ac_hi"; do | |
20921 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20922 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20923 | /* confdefs.h. */ |
20924 | _ACEOF | |
20925 | cat confdefs.h >>conftest.$ac_ext | |
20926 | cat >>conftest.$ac_ext <<_ACEOF | |
20927 | /* end confdefs.h. */ | |
20928 | $ac_includes_default | |
20929 | int | |
20930 | main () | |
20931 | { | |
dd4f3dd8 | 20932 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@; |
545f34cf CR |
20933 | test_array @<:@0@:>@ = 0 |
20934 | ||
20935 | ; | |
20936 | return 0; | |
20937 | } | |
20938 | _ACEOF | |
20939 | rm -f conftest.$ac_objext | |
d3ad40de CR |
20940 | if { (ac_try="$ac_compile" |
20941 | case "(($ac_try" in | |
20942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20943 | *) ac_try_echo=$ac_try;; | |
20944 | esac | |
dd4f3dd8 CR |
20945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
20946 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 20947 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 20948 | ac_status=$? |
a82a04b3 CR |
20949 | grep -v '^ *+' conftest.er1 >conftest.err |
20950 | rm -f conftest.er1 | |
20951 | cat conftest.err >&5 | |
dd4f3dd8 CR |
20952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20953 | (exit $ac_status); } && { | |
20954 | test -z "$ac_c_werror_flag" || | |
20955 | test ! -s conftest.err | |
20956 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
20957 | ac_hi=$ac_mid |
20958 | else | |
dd4f3dd8 | 20959 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
20960 | sed 's/^/| /' conftest.$ac_ext >&5 |
20961 | ||
d3ad40de | 20962 | ac_lo=`expr '(' $ac_mid ')' + 1` |
545f34cf | 20963 | fi |
d3ad40de CR |
20964 | |
20965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
20966 | done |
20967 | case $ac_lo in | |
20968 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
dd4f3dd8 | 20969 | '') if test "$ac_cv_type_int" = yes; then |
76af2125 | 20970 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
545f34cf | 20971 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 20972 | $as_echo "$as_me: error: cannot compute sizeof (int) |
545f34cf | 20973 | See \`config.log' for more details." >&2;} |
76af2125 | 20974 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
20975 | else |
20976 | ac_cv_sizeof_int=0 | |
20977 | fi ;; | |
545f34cf | 20978 | esac |
545f34cf CR |
20979 | else |
20980 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
20981 | /* confdefs.h. */ |
20982 | _ACEOF | |
20983 | cat confdefs.h >>conftest.$ac_ext | |
20984 | cat >>conftest.$ac_ext <<_ACEOF | |
20985 | /* end confdefs.h. */ | |
20986 | $ac_includes_default | |
dd4f3dd8 CR |
20987 | static long int longval () { return (long int) (sizeof (int)); } |
20988 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } | |
545f34cf CR |
20989 | @%:@include <stdio.h> |
20990 | @%:@include <stdlib.h> | |
20991 | int | |
20992 | main () | |
20993 | { | |
20994 | ||
20995 | FILE *f = fopen ("conftest.val", "w"); | |
20996 | if (! f) | |
d3ad40de | 20997 | return 1; |
dd4f3dd8 | 20998 | if (((long int) (sizeof (int))) < 0) |
545f34cf | 20999 | { |
d3ad40de | 21000 | long int i = longval (); |
dd4f3dd8 | 21001 | if (i != ((long int) (sizeof (int)))) |
d3ad40de | 21002 | return 1; |
dd4f3dd8 | 21003 | fprintf (f, "%ld", i); |
545f34cf CR |
21004 | } |
21005 | else | |
21006 | { | |
d3ad40de | 21007 | unsigned long int i = ulongval (); |
dd4f3dd8 | 21008 | if (i != ((long int) (sizeof (int)))) |
d3ad40de | 21009 | return 1; |
dd4f3dd8 | 21010 | fprintf (f, "%lu", i); |
545f34cf | 21011 | } |
dd4f3dd8 CR |
21012 | /* Do not output a trailing newline, as this causes \r\n confusion |
21013 | on some platforms. */ | |
d3ad40de | 21014 | return ferror (f) || fclose (f) != 0; |
545f34cf CR |
21015 | |
21016 | ; | |
21017 | return 0; | |
21018 | } | |
21019 | _ACEOF | |
21020 | rm -f conftest$ac_exeext | |
d3ad40de CR |
21021 | if { (ac_try="$ac_link" |
21022 | case "(($ac_try" in | |
21023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21024 | *) ac_try_echo=$ac_try;; | |
21025 | esac | |
dd4f3dd8 CR |
21026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21027 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21028 | (eval "$ac_link") 2>&5 |
545f34cf | 21029 | ac_status=$? |
dd4f3dd8 | 21030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 21031 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
21032 | { (case "(($ac_try" in |
21033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21034 | *) ac_try_echo=$ac_try;; | |
21035 | esac | |
dd4f3dd8 CR |
21036 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21037 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21038 | (eval "$ac_try") 2>&5 |
545f34cf | 21039 | ac_status=$? |
dd4f3dd8 | 21040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
21041 | (exit $ac_status); }; }; then |
21042 | ac_cv_sizeof_int=`cat conftest.val` | |
21043 | else | |
dd4f3dd8 CR |
21044 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21045 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
21046 | sed 's/^/| /' conftest.$ac_ext >&5 |
21047 | ||
21048 | ( exit $ac_status ) | |
dd4f3dd8 | 21049 | if test "$ac_cv_type_int" = yes; then |
76af2125 | 21050 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
545f34cf | 21051 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 21052 | $as_echo "$as_me: error: cannot compute sizeof (int) |
545f34cf | 21053 | See \`config.log' for more details." >&2;} |
76af2125 | 21054 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
21055 | else |
21056 | ac_cv_sizeof_int=0 | |
21057 | fi | |
545f34cf | 21058 | fi |
dd4f3dd8 | 21059 | rm -rf conftest.dSYM |
d3ad40de | 21060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
21061 | fi |
21062 | rm -f conftest.val | |
545f34cf | 21063 | fi |
dd4f3dd8 CR |
21064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
21065 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
545f34cf CR |
21066 | |
21067 | ||
545f34cf | 21068 | |
dd4f3dd8 CR |
21069 | cat >>confdefs.h <<_ACEOF |
21070 | @%:@define SIZEOF_INT $ac_cv_sizeof_int | |
21071 | _ACEOF | |
d3ad40de | 21072 | |
545f34cf | 21073 | |
dd4f3dd8 CR |
21074 | # The cast to long int works around a bug in the HP C Compiler |
21075 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21076 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21077 | # This bug is HP SR number 8606223364. | |
21078 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 | |
21079 | $as_echo_n "checking size of long... " >&6; } | |
545f34cf | 21080 | if test "${ac_cv_sizeof_long+set}" = set; then |
dd4f3dd8 | 21081 | $as_echo_n "(cached) " >&6 |
545f34cf | 21082 | else |
545f34cf CR |
21083 | if test "$cross_compiling" = yes; then |
21084 | # Depending upon the size, compute the lo and hi bounds. | |
21085 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21086 | /* confdefs.h. */ |
21087 | _ACEOF | |
21088 | cat confdefs.h >>conftest.$ac_ext | |
21089 | cat >>conftest.$ac_ext <<_ACEOF | |
21090 | /* end confdefs.h. */ | |
21091 | $ac_includes_default | |
21092 | int | |
21093 | main () | |
21094 | { | |
dd4f3dd8 | 21095 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@; |
545f34cf CR |
21096 | test_array @<:@0@:>@ = 0 |
21097 | ||
21098 | ; | |
21099 | return 0; | |
21100 | } | |
21101 | _ACEOF | |
21102 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21103 | if { (ac_try="$ac_compile" |
21104 | case "(($ac_try" in | |
21105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21106 | *) ac_try_echo=$ac_try;; | |
21107 | esac | |
dd4f3dd8 CR |
21108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21109 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21110 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21111 | ac_status=$? |
a82a04b3 CR |
21112 | grep -v '^ *+' conftest.er1 >conftest.err |
21113 | rm -f conftest.er1 | |
21114 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21116 | (exit $ac_status); } && { | |
21117 | test -z "$ac_c_werror_flag" || | |
21118 | test ! -s conftest.err | |
21119 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21120 | ac_lo=0 ac_mid=0 |
21121 | while :; do | |
21122 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21123 | /* confdefs.h. */ |
21124 | _ACEOF | |
21125 | cat confdefs.h >>conftest.$ac_ext | |
21126 | cat >>conftest.$ac_ext <<_ACEOF | |
21127 | /* end confdefs.h. */ | |
21128 | $ac_includes_default | |
21129 | int | |
21130 | main () | |
21131 | { | |
dd4f3dd8 | 21132 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@; |
545f34cf CR |
21133 | test_array @<:@0@:>@ = 0 |
21134 | ||
21135 | ; | |
21136 | return 0; | |
21137 | } | |
21138 | _ACEOF | |
21139 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21140 | if { (ac_try="$ac_compile" |
21141 | case "(($ac_try" in | |
21142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21143 | *) ac_try_echo=$ac_try;; | |
21144 | esac | |
dd4f3dd8 CR |
21145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21146 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21147 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21148 | ac_status=$? |
a82a04b3 CR |
21149 | grep -v '^ *+' conftest.er1 >conftest.err |
21150 | rm -f conftest.er1 | |
21151 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21152 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21153 | (exit $ac_status); } && { | |
21154 | test -z "$ac_c_werror_flag" || | |
21155 | test ! -s conftest.err | |
21156 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21157 | ac_hi=$ac_mid; break |
21158 | else | |
dd4f3dd8 | 21159 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21160 | sed 's/^/| /' conftest.$ac_ext >&5 |
21161 | ||
d3ad40de CR |
21162 | ac_lo=`expr $ac_mid + 1` |
21163 | if test $ac_lo -le $ac_mid; then | |
21164 | ac_lo= ac_hi= | |
21165 | break | |
21166 | fi | |
21167 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
545f34cf | 21168 | fi |
d3ad40de CR |
21169 | |
21170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21171 | done |
21172 | else | |
dd4f3dd8 | 21173 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21174 | sed 's/^/| /' conftest.$ac_ext >&5 |
21175 | ||
d3ad40de | 21176 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
21177 | /* confdefs.h. */ |
21178 | _ACEOF | |
21179 | cat confdefs.h >>conftest.$ac_ext | |
21180 | cat >>conftest.$ac_ext <<_ACEOF | |
21181 | /* end confdefs.h. */ | |
21182 | $ac_includes_default | |
21183 | int | |
21184 | main () | |
21185 | { | |
dd4f3dd8 | 21186 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@; |
545f34cf CR |
21187 | test_array @<:@0@:>@ = 0 |
21188 | ||
21189 | ; | |
21190 | return 0; | |
21191 | } | |
21192 | _ACEOF | |
21193 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21194 | if { (ac_try="$ac_compile" |
21195 | case "(($ac_try" in | |
21196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21197 | *) ac_try_echo=$ac_try;; | |
21198 | esac | |
dd4f3dd8 CR |
21199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21200 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21201 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21202 | ac_status=$? |
a82a04b3 CR |
21203 | grep -v '^ *+' conftest.er1 >conftest.err |
21204 | rm -f conftest.er1 | |
21205 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21207 | (exit $ac_status); } && { | |
21208 | test -z "$ac_c_werror_flag" || | |
21209 | test ! -s conftest.err | |
21210 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21211 | ac_hi=-1 ac_mid=-1 |
21212 | while :; do | |
21213 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21214 | /* confdefs.h. */ |
21215 | _ACEOF | |
21216 | cat confdefs.h >>conftest.$ac_ext | |
21217 | cat >>conftest.$ac_ext <<_ACEOF | |
21218 | /* end confdefs.h. */ | |
21219 | $ac_includes_default | |
21220 | int | |
21221 | main () | |
21222 | { | |
dd4f3dd8 | 21223 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@; |
545f34cf CR |
21224 | test_array @<:@0@:>@ = 0 |
21225 | ||
21226 | ; | |
21227 | return 0; | |
21228 | } | |
21229 | _ACEOF | |
21230 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21231 | if { (ac_try="$ac_compile" |
21232 | case "(($ac_try" in | |
21233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21234 | *) ac_try_echo=$ac_try;; | |
21235 | esac | |
dd4f3dd8 CR |
21236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21237 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21238 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21239 | ac_status=$? |
a82a04b3 CR |
21240 | grep -v '^ *+' conftest.er1 >conftest.err |
21241 | rm -f conftest.er1 | |
21242 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21243 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21244 | (exit $ac_status); } && { | |
21245 | test -z "$ac_c_werror_flag" || | |
21246 | test ! -s conftest.err | |
21247 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21248 | ac_lo=$ac_mid; break |
21249 | else | |
dd4f3dd8 | 21250 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21251 | sed 's/^/| /' conftest.$ac_ext >&5 |
21252 | ||
d3ad40de CR |
21253 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21254 | if test $ac_mid -le $ac_hi; then | |
21255 | ac_lo= ac_hi= | |
21256 | break | |
21257 | fi | |
21258 | ac_mid=`expr 2 '*' $ac_mid` | |
545f34cf | 21259 | fi |
d3ad40de CR |
21260 | |
21261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21262 | done |
21263 | else | |
dd4f3dd8 | 21264 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21265 | sed 's/^/| /' conftest.$ac_ext >&5 |
21266 | ||
d3ad40de | 21267 | ac_lo= ac_hi= |
545f34cf | 21268 | fi |
d3ad40de CR |
21269 | |
21270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 21271 | fi |
d3ad40de CR |
21272 | |
21273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21274 | # Binary search between lo and hi bounds. |
21275 | while test "x$ac_lo" != "x$ac_hi"; do | |
21276 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21277 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21278 | /* confdefs.h. */ |
21279 | _ACEOF | |
21280 | cat confdefs.h >>conftest.$ac_ext | |
21281 | cat >>conftest.$ac_ext <<_ACEOF | |
21282 | /* end confdefs.h. */ | |
21283 | $ac_includes_default | |
21284 | int | |
21285 | main () | |
21286 | { | |
dd4f3dd8 | 21287 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@; |
545f34cf CR |
21288 | test_array @<:@0@:>@ = 0 |
21289 | ||
21290 | ; | |
21291 | return 0; | |
21292 | } | |
21293 | _ACEOF | |
21294 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21295 | if { (ac_try="$ac_compile" |
21296 | case "(($ac_try" in | |
21297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21298 | *) ac_try_echo=$ac_try;; | |
21299 | esac | |
dd4f3dd8 CR |
21300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21301 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21302 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21303 | ac_status=$? |
a82a04b3 CR |
21304 | grep -v '^ *+' conftest.er1 >conftest.err |
21305 | rm -f conftest.er1 | |
21306 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21308 | (exit $ac_status); } && { | |
21309 | test -z "$ac_c_werror_flag" || | |
21310 | test ! -s conftest.err | |
21311 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21312 | ac_hi=$ac_mid |
21313 | else | |
dd4f3dd8 | 21314 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21315 | sed 's/^/| /' conftest.$ac_ext >&5 |
21316 | ||
d3ad40de | 21317 | ac_lo=`expr '(' $ac_mid ')' + 1` |
545f34cf | 21318 | fi |
d3ad40de CR |
21319 | |
21320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21321 | done |
21322 | case $ac_lo in | |
21323 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
dd4f3dd8 | 21324 | '') if test "$ac_cv_type_long" = yes; then |
76af2125 | 21325 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
545f34cf | 21326 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 21327 | $as_echo "$as_me: error: cannot compute sizeof (long) |
545f34cf | 21328 | See \`config.log' for more details." >&2;} |
76af2125 | 21329 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
21330 | else |
21331 | ac_cv_sizeof_long=0 | |
21332 | fi ;; | |
545f34cf | 21333 | esac |
545f34cf CR |
21334 | else |
21335 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21336 | /* confdefs.h. */ |
21337 | _ACEOF | |
21338 | cat confdefs.h >>conftest.$ac_ext | |
21339 | cat >>conftest.$ac_ext <<_ACEOF | |
21340 | /* end confdefs.h. */ | |
21341 | $ac_includes_default | |
dd4f3dd8 CR |
21342 | static long int longval () { return (long int) (sizeof (long)); } |
21343 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } | |
545f34cf CR |
21344 | @%:@include <stdio.h> |
21345 | @%:@include <stdlib.h> | |
21346 | int | |
21347 | main () | |
21348 | { | |
21349 | ||
21350 | FILE *f = fopen ("conftest.val", "w"); | |
21351 | if (! f) | |
d3ad40de | 21352 | return 1; |
dd4f3dd8 | 21353 | if (((long int) (sizeof (long))) < 0) |
545f34cf | 21354 | { |
d3ad40de | 21355 | long int i = longval (); |
dd4f3dd8 | 21356 | if (i != ((long int) (sizeof (long)))) |
d3ad40de | 21357 | return 1; |
dd4f3dd8 | 21358 | fprintf (f, "%ld", i); |
545f34cf CR |
21359 | } |
21360 | else | |
21361 | { | |
d3ad40de | 21362 | unsigned long int i = ulongval (); |
dd4f3dd8 | 21363 | if (i != ((long int) (sizeof (long)))) |
d3ad40de | 21364 | return 1; |
dd4f3dd8 | 21365 | fprintf (f, "%lu", i); |
545f34cf | 21366 | } |
dd4f3dd8 CR |
21367 | /* Do not output a trailing newline, as this causes \r\n confusion |
21368 | on some platforms. */ | |
d3ad40de | 21369 | return ferror (f) || fclose (f) != 0; |
545f34cf CR |
21370 | |
21371 | ; | |
21372 | return 0; | |
21373 | } | |
21374 | _ACEOF | |
21375 | rm -f conftest$ac_exeext | |
d3ad40de CR |
21376 | if { (ac_try="$ac_link" |
21377 | case "(($ac_try" in | |
21378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21379 | *) ac_try_echo=$ac_try;; | |
21380 | esac | |
dd4f3dd8 CR |
21381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21382 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21383 | (eval "$ac_link") 2>&5 |
545f34cf | 21384 | ac_status=$? |
dd4f3dd8 | 21385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 21386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
21387 | { (case "(($ac_try" in |
21388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21389 | *) ac_try_echo=$ac_try;; | |
21390 | esac | |
dd4f3dd8 CR |
21391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21392 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21393 | (eval "$ac_try") 2>&5 |
545f34cf | 21394 | ac_status=$? |
dd4f3dd8 | 21395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
21396 | (exit $ac_status); }; }; then |
21397 | ac_cv_sizeof_long=`cat conftest.val` | |
21398 | else | |
dd4f3dd8 CR |
21399 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21400 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
21401 | sed 's/^/| /' conftest.$ac_ext >&5 |
21402 | ||
21403 | ( exit $ac_status ) | |
dd4f3dd8 | 21404 | if test "$ac_cv_type_long" = yes; then |
76af2125 | 21405 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
545f34cf | 21406 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 21407 | $as_echo "$as_me: error: cannot compute sizeof (long) |
545f34cf | 21408 | See \`config.log' for more details." >&2;} |
76af2125 | 21409 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
21410 | else |
21411 | ac_cv_sizeof_long=0 | |
21412 | fi | |
545f34cf | 21413 | fi |
dd4f3dd8 | 21414 | rm -rf conftest.dSYM |
d3ad40de | 21415 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
21416 | fi |
21417 | rm -f conftest.val | |
2e4498b3 | 21418 | fi |
dd4f3dd8 CR |
21419 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
21420 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
545f34cf CR |
21421 | |
21422 | ||
545f34cf | 21423 | |
dd4f3dd8 CR |
21424 | cat >>confdefs.h <<_ACEOF |
21425 | @%:@define SIZEOF_LONG $ac_cv_sizeof_long | |
21426 | _ACEOF | |
d3ad40de | 21427 | |
545f34cf | 21428 | |
dd4f3dd8 CR |
21429 | # The cast to long int works around a bug in the HP C Compiler |
21430 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21431 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21432 | # This bug is HP SR number 8606223364. | |
21433 | { $as_echo "$as_me:$LINENO: checking size of char *" >&5 | |
21434 | $as_echo_n "checking size of char *... " >&6; } | |
545f34cf | 21435 | if test "${ac_cv_sizeof_char_p+set}" = set; then |
dd4f3dd8 | 21436 | $as_echo_n "(cached) " >&6 |
545f34cf | 21437 | else |
545f34cf CR |
21438 | if test "$cross_compiling" = yes; then |
21439 | # Depending upon the size, compute the lo and hi bounds. | |
21440 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21441 | /* confdefs.h. */ |
21442 | _ACEOF | |
21443 | cat confdefs.h >>conftest.$ac_ext | |
21444 | cat >>conftest.$ac_ext <<_ACEOF | |
21445 | /* end confdefs.h. */ | |
21446 | $ac_includes_default | |
21447 | int | |
21448 | main () | |
21449 | { | |
dd4f3dd8 | 21450 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= 0)@:>@; |
545f34cf CR |
21451 | test_array @<:@0@:>@ = 0 |
21452 | ||
21453 | ; | |
21454 | return 0; | |
21455 | } | |
21456 | _ACEOF | |
21457 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21458 | if { (ac_try="$ac_compile" |
21459 | case "(($ac_try" in | |
21460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21461 | *) ac_try_echo=$ac_try;; | |
21462 | esac | |
dd4f3dd8 CR |
21463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21464 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21465 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21466 | ac_status=$? |
a82a04b3 CR |
21467 | grep -v '^ *+' conftest.er1 >conftest.err |
21468 | rm -f conftest.er1 | |
21469 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21471 | (exit $ac_status); } && { | |
21472 | test -z "$ac_c_werror_flag" || | |
21473 | test ! -s conftest.err | |
21474 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21475 | ac_lo=0 ac_mid=0 |
21476 | while :; do | |
21477 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21478 | /* confdefs.h. */ |
21479 | _ACEOF | |
21480 | cat confdefs.h >>conftest.$ac_ext | |
21481 | cat >>conftest.$ac_ext <<_ACEOF | |
21482 | /* end confdefs.h. */ | |
21483 | $ac_includes_default | |
21484 | int | |
21485 | main () | |
21486 | { | |
dd4f3dd8 | 21487 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@; |
545f34cf CR |
21488 | test_array @<:@0@:>@ = 0 |
21489 | ||
21490 | ; | |
21491 | return 0; | |
21492 | } | |
21493 | _ACEOF | |
21494 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21495 | if { (ac_try="$ac_compile" |
21496 | case "(($ac_try" in | |
21497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21498 | *) ac_try_echo=$ac_try;; | |
21499 | esac | |
dd4f3dd8 CR |
21500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21501 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21502 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21503 | ac_status=$? |
a82a04b3 CR |
21504 | grep -v '^ *+' conftest.er1 >conftest.err |
21505 | rm -f conftest.er1 | |
21506 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21508 | (exit $ac_status); } && { | |
21509 | test -z "$ac_c_werror_flag" || | |
21510 | test ! -s conftest.err | |
21511 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21512 | ac_hi=$ac_mid; break |
21513 | else | |
dd4f3dd8 | 21514 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21515 | sed 's/^/| /' conftest.$ac_ext >&5 |
21516 | ||
d3ad40de CR |
21517 | ac_lo=`expr $ac_mid + 1` |
21518 | if test $ac_lo -le $ac_mid; then | |
21519 | ac_lo= ac_hi= | |
21520 | break | |
21521 | fi | |
21522 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
545f34cf | 21523 | fi |
d3ad40de CR |
21524 | |
21525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21526 | done |
21527 | else | |
dd4f3dd8 | 21528 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21529 | sed 's/^/| /' conftest.$ac_ext >&5 |
21530 | ||
d3ad40de | 21531 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
21532 | /* confdefs.h. */ |
21533 | _ACEOF | |
21534 | cat confdefs.h >>conftest.$ac_ext | |
21535 | cat >>conftest.$ac_ext <<_ACEOF | |
21536 | /* end confdefs.h. */ | |
21537 | $ac_includes_default | |
21538 | int | |
21539 | main () | |
21540 | { | |
dd4f3dd8 | 21541 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) < 0)@:>@; |
545f34cf CR |
21542 | test_array @<:@0@:>@ = 0 |
21543 | ||
21544 | ; | |
21545 | return 0; | |
21546 | } | |
21547 | _ACEOF | |
21548 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21549 | if { (ac_try="$ac_compile" |
21550 | case "(($ac_try" in | |
21551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21552 | *) ac_try_echo=$ac_try;; | |
21553 | esac | |
dd4f3dd8 CR |
21554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21555 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21556 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21557 | ac_status=$? |
a82a04b3 CR |
21558 | grep -v '^ *+' conftest.er1 >conftest.err |
21559 | rm -f conftest.er1 | |
21560 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21562 | (exit $ac_status); } && { | |
21563 | test -z "$ac_c_werror_flag" || | |
21564 | test ! -s conftest.err | |
21565 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21566 | ac_hi=-1 ac_mid=-1 |
21567 | while :; do | |
21568 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21569 | /* confdefs.h. */ |
21570 | _ACEOF | |
21571 | cat confdefs.h >>conftest.$ac_ext | |
21572 | cat >>conftest.$ac_ext <<_ACEOF | |
21573 | /* end confdefs.h. */ | |
21574 | $ac_includes_default | |
21575 | int | |
21576 | main () | |
21577 | { | |
dd4f3dd8 | 21578 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)@:>@; |
545f34cf CR |
21579 | test_array @<:@0@:>@ = 0 |
21580 | ||
21581 | ; | |
21582 | return 0; | |
21583 | } | |
21584 | _ACEOF | |
21585 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21586 | if { (ac_try="$ac_compile" |
21587 | case "(($ac_try" in | |
21588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21589 | *) ac_try_echo=$ac_try;; | |
21590 | esac | |
dd4f3dd8 CR |
21591 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21592 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21593 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21594 | ac_status=$? |
a82a04b3 CR |
21595 | grep -v '^ *+' conftest.er1 >conftest.err |
21596 | rm -f conftest.er1 | |
21597 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21599 | (exit $ac_status); } && { | |
21600 | test -z "$ac_c_werror_flag" || | |
21601 | test ! -s conftest.err | |
21602 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21603 | ac_lo=$ac_mid; break |
21604 | else | |
dd4f3dd8 | 21605 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21606 | sed 's/^/| /' conftest.$ac_ext >&5 |
21607 | ||
d3ad40de CR |
21608 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21609 | if test $ac_mid -le $ac_hi; then | |
21610 | ac_lo= ac_hi= | |
21611 | break | |
21612 | fi | |
21613 | ac_mid=`expr 2 '*' $ac_mid` | |
545f34cf | 21614 | fi |
d3ad40de CR |
21615 | |
21616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21617 | done |
21618 | else | |
dd4f3dd8 | 21619 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21620 | sed 's/^/| /' conftest.$ac_ext >&5 |
21621 | ||
d3ad40de | 21622 | ac_lo= ac_hi= |
545f34cf | 21623 | fi |
d3ad40de CR |
21624 | |
21625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 21626 | fi |
d3ad40de CR |
21627 | |
21628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21629 | # Binary search between lo and hi bounds. |
21630 | while test "x$ac_lo" != "x$ac_hi"; do | |
21631 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21632 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21633 | /* confdefs.h. */ |
21634 | _ACEOF | |
21635 | cat confdefs.h >>conftest.$ac_ext | |
21636 | cat >>conftest.$ac_ext <<_ACEOF | |
21637 | /* end confdefs.h. */ | |
21638 | $ac_includes_default | |
21639 | int | |
21640 | main () | |
21641 | { | |
dd4f3dd8 | 21642 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@; |
545f34cf CR |
21643 | test_array @<:@0@:>@ = 0 |
21644 | ||
21645 | ; | |
21646 | return 0; | |
21647 | } | |
21648 | _ACEOF | |
21649 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21650 | if { (ac_try="$ac_compile" |
21651 | case "(($ac_try" in | |
21652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21653 | *) ac_try_echo=$ac_try;; | |
21654 | esac | |
dd4f3dd8 CR |
21655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21656 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21657 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21658 | ac_status=$? |
a82a04b3 CR |
21659 | grep -v '^ *+' conftest.er1 >conftest.err |
21660 | rm -f conftest.er1 | |
21661 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21663 | (exit $ac_status); } && { | |
21664 | test -z "$ac_c_werror_flag" || | |
21665 | test ! -s conftest.err | |
21666 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21667 | ac_hi=$ac_mid |
21668 | else | |
dd4f3dd8 | 21669 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21670 | sed 's/^/| /' conftest.$ac_ext >&5 |
21671 | ||
d3ad40de | 21672 | ac_lo=`expr '(' $ac_mid ')' + 1` |
545f34cf | 21673 | fi |
d3ad40de CR |
21674 | |
21675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21676 | done |
21677 | case $ac_lo in | |
21678 | ?*) ac_cv_sizeof_char_p=$ac_lo;; | |
dd4f3dd8 | 21679 | '') if test "$ac_cv_type_char_p" = yes; then |
76af2125 | 21680 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) |
545f34cf | 21681 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 21682 | $as_echo "$as_me: error: cannot compute sizeof (char *) |
545f34cf | 21683 | See \`config.log' for more details." >&2;} |
76af2125 | 21684 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
21685 | else |
21686 | ac_cv_sizeof_char_p=0 | |
21687 | fi ;; | |
545f34cf | 21688 | esac |
545f34cf CR |
21689 | else |
21690 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21691 | /* confdefs.h. */ |
21692 | _ACEOF | |
21693 | cat confdefs.h >>conftest.$ac_ext | |
21694 | cat >>conftest.$ac_ext <<_ACEOF | |
21695 | /* end confdefs.h. */ | |
21696 | $ac_includes_default | |
dd4f3dd8 CR |
21697 | static long int longval () { return (long int) (sizeof (char *)); } |
21698 | static unsigned long int ulongval () { return (long int) (sizeof (char *)); } | |
545f34cf CR |
21699 | @%:@include <stdio.h> |
21700 | @%:@include <stdlib.h> | |
21701 | int | |
21702 | main () | |
21703 | { | |
21704 | ||
21705 | FILE *f = fopen ("conftest.val", "w"); | |
21706 | if (! f) | |
d3ad40de | 21707 | return 1; |
dd4f3dd8 | 21708 | if (((long int) (sizeof (char *))) < 0) |
545f34cf | 21709 | { |
d3ad40de | 21710 | long int i = longval (); |
dd4f3dd8 | 21711 | if (i != ((long int) (sizeof (char *)))) |
d3ad40de | 21712 | return 1; |
dd4f3dd8 | 21713 | fprintf (f, "%ld", i); |
545f34cf CR |
21714 | } |
21715 | else | |
21716 | { | |
d3ad40de | 21717 | unsigned long int i = ulongval (); |
dd4f3dd8 | 21718 | if (i != ((long int) (sizeof (char *)))) |
d3ad40de | 21719 | return 1; |
dd4f3dd8 | 21720 | fprintf (f, "%lu", i); |
545f34cf | 21721 | } |
dd4f3dd8 CR |
21722 | /* Do not output a trailing newline, as this causes \r\n confusion |
21723 | on some platforms. */ | |
d3ad40de | 21724 | return ferror (f) || fclose (f) != 0; |
545f34cf CR |
21725 | |
21726 | ; | |
21727 | return 0; | |
21728 | } | |
21729 | _ACEOF | |
21730 | rm -f conftest$ac_exeext | |
d3ad40de CR |
21731 | if { (ac_try="$ac_link" |
21732 | case "(($ac_try" in | |
21733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21734 | *) ac_try_echo=$ac_try;; | |
21735 | esac | |
dd4f3dd8 CR |
21736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21737 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21738 | (eval "$ac_link") 2>&5 |
545f34cf | 21739 | ac_status=$? |
dd4f3dd8 | 21740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 21741 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
21742 | { (case "(($ac_try" in |
21743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21744 | *) ac_try_echo=$ac_try;; | |
21745 | esac | |
dd4f3dd8 CR |
21746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21747 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21748 | (eval "$ac_try") 2>&5 |
545f34cf | 21749 | ac_status=$? |
dd4f3dd8 | 21750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
21751 | (exit $ac_status); }; }; then |
21752 | ac_cv_sizeof_char_p=`cat conftest.val` | |
21753 | else | |
dd4f3dd8 CR |
21754 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
21755 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
21756 | sed 's/^/| /' conftest.$ac_ext >&5 |
21757 | ||
21758 | ( exit $ac_status ) | |
dd4f3dd8 | 21759 | if test "$ac_cv_type_char_p" = yes; then |
76af2125 | 21760 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *) |
545f34cf | 21761 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 21762 | $as_echo "$as_me: error: cannot compute sizeof (char *) |
545f34cf | 21763 | See \`config.log' for more details." >&2;} |
76af2125 | 21764 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
21765 | else |
21766 | ac_cv_sizeof_char_p=0 | |
21767 | fi | |
545f34cf | 21768 | fi |
dd4f3dd8 | 21769 | rm -rf conftest.dSYM |
d3ad40de | 21770 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
21771 | fi |
21772 | rm -f conftest.val | |
545f34cf | 21773 | fi |
dd4f3dd8 CR |
21774 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5 |
21775 | $as_echo "$ac_cv_sizeof_char_p" >&6; } | |
545f34cf CR |
21776 | |
21777 | ||
545f34cf | 21778 | |
dd4f3dd8 CR |
21779 | cat >>confdefs.h <<_ACEOF |
21780 | @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p | |
21781 | _ACEOF | |
d3ad40de | 21782 | |
545f34cf | 21783 | |
dd4f3dd8 CR |
21784 | # The cast to long int works around a bug in the HP C Compiler |
21785 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21786 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21787 | # This bug is HP SR number 8606223364. | |
21788 | { $as_echo "$as_me:$LINENO: checking size of double" >&5 | |
21789 | $as_echo_n "checking size of double... " >&6; } | |
545f34cf | 21790 | if test "${ac_cv_sizeof_double+set}" = set; then |
dd4f3dd8 | 21791 | $as_echo_n "(cached) " >&6 |
545f34cf | 21792 | else |
545f34cf CR |
21793 | if test "$cross_compiling" = yes; then |
21794 | # Depending upon the size, compute the lo and hi bounds. | |
21795 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21796 | /* confdefs.h. */ |
21797 | _ACEOF | |
21798 | cat confdefs.h >>conftest.$ac_ext | |
21799 | cat >>conftest.$ac_ext <<_ACEOF | |
21800 | /* end confdefs.h. */ | |
21801 | $ac_includes_default | |
21802 | int | |
21803 | main () | |
21804 | { | |
dd4f3dd8 | 21805 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) >= 0)@:>@; |
545f34cf CR |
21806 | test_array @<:@0@:>@ = 0 |
21807 | ||
21808 | ; | |
21809 | return 0; | |
21810 | } | |
21811 | _ACEOF | |
21812 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21813 | if { (ac_try="$ac_compile" |
21814 | case "(($ac_try" in | |
21815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21816 | *) ac_try_echo=$ac_try;; | |
21817 | esac | |
dd4f3dd8 CR |
21818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21819 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21820 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21821 | ac_status=$? |
a82a04b3 CR |
21822 | grep -v '^ *+' conftest.er1 >conftest.err |
21823 | rm -f conftest.er1 | |
21824 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21826 | (exit $ac_status); } && { | |
21827 | test -z "$ac_c_werror_flag" || | |
21828 | test ! -s conftest.err | |
21829 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21830 | ac_lo=0 ac_mid=0 |
21831 | while :; do | |
21832 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21833 | /* confdefs.h. */ |
21834 | _ACEOF | |
21835 | cat confdefs.h >>conftest.$ac_ext | |
21836 | cat >>conftest.$ac_ext <<_ACEOF | |
21837 | /* end confdefs.h. */ | |
21838 | $ac_includes_default | |
21839 | int | |
21840 | main () | |
21841 | { | |
dd4f3dd8 | 21842 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)@:>@; |
545f34cf CR |
21843 | test_array @<:@0@:>@ = 0 |
21844 | ||
21845 | ; | |
21846 | return 0; | |
21847 | } | |
21848 | _ACEOF | |
21849 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21850 | if { (ac_try="$ac_compile" |
21851 | case "(($ac_try" in | |
21852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21853 | *) ac_try_echo=$ac_try;; | |
21854 | esac | |
dd4f3dd8 CR |
21855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21856 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21857 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21858 | ac_status=$? |
a82a04b3 CR |
21859 | grep -v '^ *+' conftest.er1 >conftest.err |
21860 | rm -f conftest.er1 | |
21861 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21863 | (exit $ac_status); } && { | |
21864 | test -z "$ac_c_werror_flag" || | |
21865 | test ! -s conftest.err | |
21866 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21867 | ac_hi=$ac_mid; break |
21868 | else | |
dd4f3dd8 | 21869 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21870 | sed 's/^/| /' conftest.$ac_ext >&5 |
21871 | ||
d3ad40de CR |
21872 | ac_lo=`expr $ac_mid + 1` |
21873 | if test $ac_lo -le $ac_mid; then | |
21874 | ac_lo= ac_hi= | |
21875 | break | |
21876 | fi | |
21877 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
545f34cf | 21878 | fi |
d3ad40de CR |
21879 | |
21880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21881 | done |
21882 | else | |
dd4f3dd8 | 21883 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21884 | sed 's/^/| /' conftest.$ac_ext >&5 |
21885 | ||
d3ad40de | 21886 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
21887 | /* confdefs.h. */ |
21888 | _ACEOF | |
21889 | cat confdefs.h >>conftest.$ac_ext | |
21890 | cat >>conftest.$ac_ext <<_ACEOF | |
21891 | /* end confdefs.h. */ | |
21892 | $ac_includes_default | |
21893 | int | |
21894 | main () | |
21895 | { | |
dd4f3dd8 | 21896 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) < 0)@:>@; |
545f34cf CR |
21897 | test_array @<:@0@:>@ = 0 |
21898 | ||
21899 | ; | |
21900 | return 0; | |
21901 | } | |
21902 | _ACEOF | |
21903 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21904 | if { (ac_try="$ac_compile" |
21905 | case "(($ac_try" in | |
21906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21907 | *) ac_try_echo=$ac_try;; | |
21908 | esac | |
dd4f3dd8 CR |
21909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21910 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21911 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21912 | ac_status=$? |
a82a04b3 CR |
21913 | grep -v '^ *+' conftest.er1 >conftest.err |
21914 | rm -f conftest.er1 | |
21915 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21917 | (exit $ac_status); } && { | |
21918 | test -z "$ac_c_werror_flag" || | |
21919 | test ! -s conftest.err | |
21920 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21921 | ac_hi=-1 ac_mid=-1 |
21922 | while :; do | |
21923 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21924 | /* confdefs.h. */ |
21925 | _ACEOF | |
21926 | cat confdefs.h >>conftest.$ac_ext | |
21927 | cat >>conftest.$ac_ext <<_ACEOF | |
21928 | /* end confdefs.h. */ | |
21929 | $ac_includes_default | |
21930 | int | |
21931 | main () | |
21932 | { | |
dd4f3dd8 | 21933 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)@:>@; |
545f34cf CR |
21934 | test_array @<:@0@:>@ = 0 |
21935 | ||
21936 | ; | |
21937 | return 0; | |
21938 | } | |
21939 | _ACEOF | |
21940 | rm -f conftest.$ac_objext | |
d3ad40de CR |
21941 | if { (ac_try="$ac_compile" |
21942 | case "(($ac_try" in | |
21943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21944 | *) ac_try_echo=$ac_try;; | |
21945 | esac | |
dd4f3dd8 CR |
21946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
21947 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 21948 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 21949 | ac_status=$? |
a82a04b3 CR |
21950 | grep -v '^ *+' conftest.er1 >conftest.err |
21951 | rm -f conftest.er1 | |
21952 | cat conftest.err >&5 | |
dd4f3dd8 CR |
21953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21954 | (exit $ac_status); } && { | |
21955 | test -z "$ac_c_werror_flag" || | |
21956 | test ! -s conftest.err | |
21957 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
21958 | ac_lo=$ac_mid; break |
21959 | else | |
dd4f3dd8 | 21960 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21961 | sed 's/^/| /' conftest.$ac_ext >&5 |
21962 | ||
d3ad40de CR |
21963 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21964 | if test $ac_mid -le $ac_hi; then | |
21965 | ac_lo= ac_hi= | |
21966 | break | |
21967 | fi | |
21968 | ac_mid=`expr 2 '*' $ac_mid` | |
545f34cf | 21969 | fi |
d3ad40de CR |
21970 | |
21971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21972 | done |
21973 | else | |
dd4f3dd8 | 21974 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
21975 | sed 's/^/| /' conftest.$ac_ext >&5 |
21976 | ||
d3ad40de | 21977 | ac_lo= ac_hi= |
545f34cf | 21978 | fi |
d3ad40de CR |
21979 | |
21980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 21981 | fi |
d3ad40de CR |
21982 | |
21983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
21984 | # Binary search between lo and hi bounds. |
21985 | while test "x$ac_lo" != "x$ac_hi"; do | |
21986 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21987 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
21988 | /* confdefs.h. */ |
21989 | _ACEOF | |
21990 | cat confdefs.h >>conftest.$ac_ext | |
21991 | cat >>conftest.$ac_ext <<_ACEOF | |
21992 | /* end confdefs.h. */ | |
21993 | $ac_includes_default | |
21994 | int | |
21995 | main () | |
21996 | { | |
dd4f3dd8 | 21997 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)@:>@; |
545f34cf CR |
21998 | test_array @<:@0@:>@ = 0 |
21999 | ||
22000 | ; | |
22001 | return 0; | |
22002 | } | |
22003 | _ACEOF | |
22004 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22005 | if { (ac_try="$ac_compile" |
22006 | case "(($ac_try" in | |
22007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22008 | *) ac_try_echo=$ac_try;; | |
22009 | esac | |
dd4f3dd8 CR |
22010 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22011 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22012 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22013 | ac_status=$? |
a82a04b3 CR |
22014 | grep -v '^ *+' conftest.er1 >conftest.err |
22015 | rm -f conftest.er1 | |
22016 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22017 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22018 | (exit $ac_status); } && { | |
22019 | test -z "$ac_c_werror_flag" || | |
22020 | test ! -s conftest.err | |
22021 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
22022 | ac_hi=$ac_mid |
22023 | else | |
dd4f3dd8 | 22024 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22025 | sed 's/^/| /' conftest.$ac_ext >&5 |
22026 | ||
d3ad40de | 22027 | ac_lo=`expr '(' $ac_mid ')' + 1` |
545f34cf | 22028 | fi |
d3ad40de CR |
22029 | |
22030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
22031 | done |
22032 | case $ac_lo in | |
22033 | ?*) ac_cv_sizeof_double=$ac_lo;; | |
dd4f3dd8 | 22034 | '') if test "$ac_cv_type_double" = yes; then |
76af2125 | 22035 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
545f34cf | 22036 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 22037 | $as_echo "$as_me: error: cannot compute sizeof (double) |
545f34cf | 22038 | See \`config.log' for more details." >&2;} |
76af2125 | 22039 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
22040 | else |
22041 | ac_cv_sizeof_double=0 | |
22042 | fi ;; | |
545f34cf | 22043 | esac |
545f34cf CR |
22044 | else |
22045 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22046 | /* confdefs.h. */ |
22047 | _ACEOF | |
22048 | cat confdefs.h >>conftest.$ac_ext | |
22049 | cat >>conftest.$ac_ext <<_ACEOF | |
22050 | /* end confdefs.h. */ | |
22051 | $ac_includes_default | |
dd4f3dd8 CR |
22052 | static long int longval () { return (long int) (sizeof (double)); } |
22053 | static unsigned long int ulongval () { return (long int) (sizeof (double)); } | |
545f34cf CR |
22054 | @%:@include <stdio.h> |
22055 | @%:@include <stdlib.h> | |
22056 | int | |
22057 | main () | |
22058 | { | |
22059 | ||
22060 | FILE *f = fopen ("conftest.val", "w"); | |
22061 | if (! f) | |
d3ad40de | 22062 | return 1; |
dd4f3dd8 | 22063 | if (((long int) (sizeof (double))) < 0) |
545f34cf | 22064 | { |
d3ad40de | 22065 | long int i = longval (); |
dd4f3dd8 | 22066 | if (i != ((long int) (sizeof (double)))) |
d3ad40de | 22067 | return 1; |
dd4f3dd8 | 22068 | fprintf (f, "%ld", i); |
545f34cf CR |
22069 | } |
22070 | else | |
22071 | { | |
d3ad40de | 22072 | unsigned long int i = ulongval (); |
dd4f3dd8 | 22073 | if (i != ((long int) (sizeof (double)))) |
d3ad40de | 22074 | return 1; |
dd4f3dd8 | 22075 | fprintf (f, "%lu", i); |
545f34cf | 22076 | } |
dd4f3dd8 CR |
22077 | /* Do not output a trailing newline, as this causes \r\n confusion |
22078 | on some platforms. */ | |
d3ad40de | 22079 | return ferror (f) || fclose (f) != 0; |
545f34cf CR |
22080 | |
22081 | ; | |
22082 | return 0; | |
22083 | } | |
22084 | _ACEOF | |
22085 | rm -f conftest$ac_exeext | |
d3ad40de CR |
22086 | if { (ac_try="$ac_link" |
22087 | case "(($ac_try" in | |
22088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22089 | *) ac_try_echo=$ac_try;; | |
22090 | esac | |
dd4f3dd8 CR |
22091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22092 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22093 | (eval "$ac_link") 2>&5 |
545f34cf | 22094 | ac_status=$? |
dd4f3dd8 | 22095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 22096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
22097 | { (case "(($ac_try" in |
22098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22099 | *) ac_try_echo=$ac_try;; | |
22100 | esac | |
dd4f3dd8 CR |
22101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22102 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22103 | (eval "$ac_try") 2>&5 |
545f34cf | 22104 | ac_status=$? |
dd4f3dd8 | 22105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
22106 | (exit $ac_status); }; }; then |
22107 | ac_cv_sizeof_double=`cat conftest.val` | |
22108 | else | |
dd4f3dd8 CR |
22109 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
22110 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
22111 | sed 's/^/| /' conftest.$ac_ext >&5 |
22112 | ||
22113 | ( exit $ac_status ) | |
dd4f3dd8 | 22114 | if test "$ac_cv_type_double" = yes; then |
76af2125 | 22115 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
545f34cf | 22116 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 22117 | $as_echo "$as_me: error: cannot compute sizeof (double) |
545f34cf | 22118 | See \`config.log' for more details." >&2;} |
76af2125 | 22119 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
22120 | else |
22121 | ac_cv_sizeof_double=0 | |
22122 | fi | |
545f34cf | 22123 | fi |
dd4f3dd8 | 22124 | rm -rf conftest.dSYM |
d3ad40de | 22125 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
22126 | fi |
22127 | rm -f conftest.val | |
2e4498b3 | 22128 | fi |
dd4f3dd8 CR |
22129 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
22130 | $as_echo "$ac_cv_sizeof_double" >&6; } | |
545f34cf CR |
22131 | |
22132 | ||
545f34cf | 22133 | |
dd4f3dd8 CR |
22134 | cat >>confdefs.h <<_ACEOF |
22135 | @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
22136 | _ACEOF | |
d3ad40de | 22137 | |
545f34cf | 22138 | |
dd4f3dd8 CR |
22139 | # The cast to long int works around a bug in the HP C Compiler |
22140 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
22141 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22142 | # This bug is HP SR number 8606223364. | |
22143 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 | |
22144 | $as_echo_n "checking size of long long... " >&6; } | |
545f34cf | 22145 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
dd4f3dd8 | 22146 | $as_echo_n "(cached) " >&6 |
545f34cf | 22147 | else |
545f34cf CR |
22148 | if test "$cross_compiling" = yes; then |
22149 | # Depending upon the size, compute the lo and hi bounds. | |
22150 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22151 | /* confdefs.h. */ |
22152 | _ACEOF | |
22153 | cat confdefs.h >>conftest.$ac_ext | |
22154 | cat >>conftest.$ac_ext <<_ACEOF | |
22155 | /* end confdefs.h. */ | |
22156 | $ac_includes_default | |
22157 | int | |
22158 | main () | |
22159 | { | |
dd4f3dd8 | 22160 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= 0)@:>@; |
545f34cf CR |
22161 | test_array @<:@0@:>@ = 0 |
22162 | ||
22163 | ; | |
22164 | return 0; | |
22165 | } | |
22166 | _ACEOF | |
22167 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22168 | if { (ac_try="$ac_compile" |
22169 | case "(($ac_try" in | |
22170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22171 | *) ac_try_echo=$ac_try;; | |
22172 | esac | |
dd4f3dd8 CR |
22173 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22174 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22175 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22176 | ac_status=$? |
a82a04b3 CR |
22177 | grep -v '^ *+' conftest.er1 >conftest.err |
22178 | rm -f conftest.er1 | |
22179 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22181 | (exit $ac_status); } && { | |
22182 | test -z "$ac_c_werror_flag" || | |
22183 | test ! -s conftest.err | |
22184 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
22185 | ac_lo=0 ac_mid=0 |
22186 | while :; do | |
22187 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22188 | /* confdefs.h. */ |
22189 | _ACEOF | |
22190 | cat confdefs.h >>conftest.$ac_ext | |
22191 | cat >>conftest.$ac_ext <<_ACEOF | |
22192 | /* end confdefs.h. */ | |
22193 | $ac_includes_default | |
22194 | int | |
22195 | main () | |
22196 | { | |
dd4f3dd8 | 22197 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@; |
545f34cf CR |
22198 | test_array @<:@0@:>@ = 0 |
22199 | ||
22200 | ; | |
22201 | return 0; | |
22202 | } | |
22203 | _ACEOF | |
22204 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22205 | if { (ac_try="$ac_compile" |
22206 | case "(($ac_try" in | |
22207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22208 | *) ac_try_echo=$ac_try;; | |
22209 | esac | |
dd4f3dd8 CR |
22210 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22211 | $as_echo "$ac_try_echo") >&5 | |
2e4498b3 CR |
22212 | (eval "$ac_compile") 2>conftest.er1 |
22213 | ac_status=$? | |
22214 | grep -v '^ *+' conftest.er1 >conftest.err | |
22215 | rm -f conftest.er1 | |
22216 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22218 | (exit $ac_status); } && { | |
22219 | test -z "$ac_c_werror_flag" || | |
22220 | test ! -s conftest.err | |
22221 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
22222 | ac_hi=$ac_mid; break |
22223 | else | |
dd4f3dd8 | 22224 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22225 | sed 's/^/| /' conftest.$ac_ext >&5 |
22226 | ||
d3ad40de CR |
22227 | ac_lo=`expr $ac_mid + 1` |
22228 | if test $ac_lo -le $ac_mid; then | |
22229 | ac_lo= ac_hi= | |
22230 | break | |
22231 | fi | |
22232 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
545f34cf | 22233 | fi |
d3ad40de CR |
22234 | |
22235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
22236 | done |
22237 | else | |
dd4f3dd8 | 22238 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22239 | sed 's/^/| /' conftest.$ac_ext >&5 |
22240 | ||
d3ad40de | 22241 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
22242 | /* confdefs.h. */ |
22243 | _ACEOF | |
22244 | cat confdefs.h >>conftest.$ac_ext | |
22245 | cat >>conftest.$ac_ext <<_ACEOF | |
22246 | /* end confdefs.h. */ | |
22247 | $ac_includes_default | |
22248 | int | |
22249 | main () | |
22250 | { | |
dd4f3dd8 | 22251 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) < 0)@:>@; |
545f34cf CR |
22252 | test_array @<:@0@:>@ = 0 |
22253 | ||
22254 | ; | |
22255 | return 0; | |
22256 | } | |
22257 | _ACEOF | |
22258 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22259 | if { (ac_try="$ac_compile" |
22260 | case "(($ac_try" in | |
22261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22262 | *) ac_try_echo=$ac_try;; | |
22263 | esac | |
dd4f3dd8 CR |
22264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22265 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22266 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22267 | ac_status=$? |
a82a04b3 CR |
22268 | grep -v '^ *+' conftest.er1 >conftest.err |
22269 | rm -f conftest.er1 | |
22270 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22272 | (exit $ac_status); } && { | |
22273 | test -z "$ac_c_werror_flag" || | |
22274 | test ! -s conftest.err | |
22275 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
22276 | ac_hi=-1 ac_mid=-1 |
22277 | while :; do | |
22278 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22279 | /* confdefs.h. */ |
22280 | _ACEOF | |
22281 | cat confdefs.h >>conftest.$ac_ext | |
22282 | cat >>conftest.$ac_ext <<_ACEOF | |
22283 | /* end confdefs.h. */ | |
22284 | $ac_includes_default | |
22285 | int | |
22286 | main () | |
22287 | { | |
dd4f3dd8 | 22288 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)@:>@; |
545f34cf CR |
22289 | test_array @<:@0@:>@ = 0 |
22290 | ||
22291 | ; | |
22292 | return 0; | |
22293 | } | |
22294 | _ACEOF | |
22295 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22296 | if { (ac_try="$ac_compile" |
22297 | case "(($ac_try" in | |
22298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22299 | *) ac_try_echo=$ac_try;; | |
22300 | esac | |
dd4f3dd8 CR |
22301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22302 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22303 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22304 | ac_status=$? |
a82a04b3 CR |
22305 | grep -v '^ *+' conftest.er1 >conftest.err |
22306 | rm -f conftest.er1 | |
22307 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22309 | (exit $ac_status); } && { | |
22310 | test -z "$ac_c_werror_flag" || | |
22311 | test ! -s conftest.err | |
22312 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
22313 | ac_lo=$ac_mid; break |
22314 | else | |
dd4f3dd8 | 22315 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22316 | sed 's/^/| /' conftest.$ac_ext >&5 |
22317 | ||
d3ad40de CR |
22318 | ac_hi=`expr '(' $ac_mid ')' - 1` |
22319 | if test $ac_mid -le $ac_hi; then | |
22320 | ac_lo= ac_hi= | |
22321 | break | |
22322 | fi | |
22323 | ac_mid=`expr 2 '*' $ac_mid` | |
545f34cf | 22324 | fi |
d3ad40de CR |
22325 | |
22326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
22327 | done |
22328 | else | |
dd4f3dd8 | 22329 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22330 | sed 's/^/| /' conftest.$ac_ext >&5 |
22331 | ||
d3ad40de | 22332 | ac_lo= ac_hi= |
545f34cf | 22333 | fi |
d3ad40de CR |
22334 | |
22335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22336 | fi |
d3ad40de CR |
22337 | |
22338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
22339 | # Binary search between lo and hi bounds. |
22340 | while test "x$ac_lo" != "x$ac_hi"; do | |
22341 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22342 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22343 | /* confdefs.h. */ |
22344 | _ACEOF | |
22345 | cat confdefs.h >>conftest.$ac_ext | |
22346 | cat >>conftest.$ac_ext <<_ACEOF | |
22347 | /* end confdefs.h. */ | |
22348 | $ac_includes_default | |
22349 | int | |
22350 | main () | |
22351 | { | |
dd4f3dd8 | 22352 | static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@; |
545f34cf CR |
22353 | test_array @<:@0@:>@ = 0 |
22354 | ||
22355 | ; | |
22356 | return 0; | |
22357 | } | |
22358 | _ACEOF | |
22359 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22360 | if { (ac_try="$ac_compile" |
22361 | case "(($ac_try" in | |
22362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22363 | *) ac_try_echo=$ac_try;; | |
22364 | esac | |
dd4f3dd8 CR |
22365 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22366 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22367 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22368 | ac_status=$? |
a82a04b3 CR |
22369 | grep -v '^ *+' conftest.er1 >conftest.err |
22370 | rm -f conftest.er1 | |
22371 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22373 | (exit $ac_status); } && { | |
22374 | test -z "$ac_c_werror_flag" || | |
22375 | test ! -s conftest.err | |
22376 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
22377 | ac_hi=$ac_mid |
22378 | else | |
dd4f3dd8 | 22379 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22380 | sed 's/^/| /' conftest.$ac_ext >&5 |
22381 | ||
d3ad40de | 22382 | ac_lo=`expr '(' $ac_mid ')' + 1` |
545f34cf | 22383 | fi |
d3ad40de CR |
22384 | |
22385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
22386 | done |
22387 | case $ac_lo in | |
22388 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
dd4f3dd8 | 22389 | '') if test "$ac_cv_type_long_long" = yes; then |
76af2125 | 22390 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
545f34cf | 22391 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 22392 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
545f34cf | 22393 | See \`config.log' for more details." >&2;} |
76af2125 | 22394 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
22395 | else |
22396 | ac_cv_sizeof_long_long=0 | |
22397 | fi ;; | |
545f34cf | 22398 | esac |
545f34cf CR |
22399 | else |
22400 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22401 | /* confdefs.h. */ |
22402 | _ACEOF | |
22403 | cat confdefs.h >>conftest.$ac_ext | |
22404 | cat >>conftest.$ac_ext <<_ACEOF | |
22405 | /* end confdefs.h. */ | |
22406 | $ac_includes_default | |
dd4f3dd8 CR |
22407 | static long int longval () { return (long int) (sizeof (long long)); } |
22408 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } | |
545f34cf CR |
22409 | @%:@include <stdio.h> |
22410 | @%:@include <stdlib.h> | |
22411 | int | |
22412 | main () | |
22413 | { | |
22414 | ||
22415 | FILE *f = fopen ("conftest.val", "w"); | |
22416 | if (! f) | |
d3ad40de | 22417 | return 1; |
dd4f3dd8 | 22418 | if (((long int) (sizeof (long long))) < 0) |
545f34cf | 22419 | { |
d3ad40de | 22420 | long int i = longval (); |
dd4f3dd8 | 22421 | if (i != ((long int) (sizeof (long long)))) |
d3ad40de | 22422 | return 1; |
dd4f3dd8 | 22423 | fprintf (f, "%ld", i); |
545f34cf CR |
22424 | } |
22425 | else | |
22426 | { | |
d3ad40de | 22427 | unsigned long int i = ulongval (); |
dd4f3dd8 | 22428 | if (i != ((long int) (sizeof (long long)))) |
d3ad40de | 22429 | return 1; |
dd4f3dd8 | 22430 | fprintf (f, "%lu", i); |
545f34cf | 22431 | } |
dd4f3dd8 CR |
22432 | /* Do not output a trailing newline, as this causes \r\n confusion |
22433 | on some platforms. */ | |
d3ad40de | 22434 | return ferror (f) || fclose (f) != 0; |
545f34cf CR |
22435 | |
22436 | ; | |
22437 | return 0; | |
22438 | } | |
22439 | _ACEOF | |
22440 | rm -f conftest$ac_exeext | |
d3ad40de CR |
22441 | if { (ac_try="$ac_link" |
22442 | case "(($ac_try" in | |
22443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22444 | *) ac_try_echo=$ac_try;; | |
22445 | esac | |
dd4f3dd8 CR |
22446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22447 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22448 | (eval "$ac_link") 2>&5 |
545f34cf | 22449 | ac_status=$? |
dd4f3dd8 | 22450 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 22451 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
22452 | { (case "(($ac_try" in |
22453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22454 | *) ac_try_echo=$ac_try;; | |
22455 | esac | |
dd4f3dd8 CR |
22456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22457 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22458 | (eval "$ac_try") 2>&5 |
545f34cf | 22459 | ac_status=$? |
dd4f3dd8 | 22460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
22461 | (exit $ac_status); }; }; then |
22462 | ac_cv_sizeof_long_long=`cat conftest.val` | |
22463 | else | |
dd4f3dd8 CR |
22464 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
22465 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
22466 | sed 's/^/| /' conftest.$ac_ext >&5 |
22467 | ||
22468 | ( exit $ac_status ) | |
dd4f3dd8 | 22469 | if test "$ac_cv_type_long_long" = yes; then |
76af2125 | 22470 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
545f34cf | 22471 | See \`config.log' for more details." >&5 |
dd4f3dd8 | 22472 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
545f34cf | 22473 | See \`config.log' for more details." >&2;} |
76af2125 | 22474 | { (exit 77); exit 77; }; } |
dd4f3dd8 CR |
22475 | else |
22476 | ac_cv_sizeof_long_long=0 | |
22477 | fi | |
545f34cf | 22478 | fi |
dd4f3dd8 | 22479 | rm -rf conftest.dSYM |
d3ad40de | 22480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
22481 | fi |
22482 | rm -f conftest.val | |
545f34cf | 22483 | fi |
dd4f3dd8 CR |
22484 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
22485 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
22486 | ||
22487 | ||
22488 | ||
545f34cf CR |
22489 | cat >>confdefs.h <<_ACEOF |
22490 | @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
22491 | _ACEOF | |
22492 | ||
22493 | ||
22494 | ||
dd4f3dd8 CR |
22495 | { $as_echo "$as_me:$LINENO: checking for u_int" >&5 |
22496 | $as_echo_n "checking for u_int... " >&6; } | |
545f34cf | 22497 | if test "${ac_cv_type_u_int+set}" = set; then |
dd4f3dd8 | 22498 | $as_echo_n "(cached) " >&6 |
545f34cf | 22499 | else |
dd4f3dd8 CR |
22500 | ac_cv_type_u_int=no |
22501 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22502 | /* confdefs.h. */ |
22503 | _ACEOF | |
22504 | cat confdefs.h >>conftest.$ac_ext | |
22505 | cat >>conftest.$ac_ext <<_ACEOF | |
22506 | /* end confdefs.h. */ | |
22507 | $ac_includes_default | |
22508 | int | |
22509 | main () | |
22510 | { | |
dd4f3dd8 CR |
22511 | if (sizeof (u_int)) |
22512 | return 0; | |
545f34cf CR |
22513 | ; |
22514 | return 0; | |
22515 | } | |
22516 | _ACEOF | |
22517 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22518 | if { (ac_try="$ac_compile" |
22519 | case "(($ac_try" in | |
22520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22521 | *) ac_try_echo=$ac_try;; | |
22522 | esac | |
dd4f3dd8 CR |
22523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22524 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22525 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22526 | ac_status=$? |
a82a04b3 CR |
22527 | grep -v '^ *+' conftest.er1 >conftest.err |
22528 | rm -f conftest.er1 | |
22529 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22531 | (exit $ac_status); } && { | |
22532 | test -z "$ac_c_werror_flag" || | |
22533 | test ! -s conftest.err | |
22534 | } && test -s conftest.$ac_objext; then | |
22535 | cat >conftest.$ac_ext <<_ACEOF | |
22536 | /* confdefs.h. */ | |
22537 | _ACEOF | |
22538 | cat confdefs.h >>conftest.$ac_ext | |
22539 | cat >>conftest.$ac_ext <<_ACEOF | |
22540 | /* end confdefs.h. */ | |
22541 | $ac_includes_default | |
22542 | int | |
22543 | main () | |
22544 | { | |
22545 | if (sizeof ((u_int))) | |
22546 | return 0; | |
22547 | ; | |
22548 | return 0; | |
22549 | } | |
22550 | _ACEOF | |
22551 | rm -f conftest.$ac_objext | |
22552 | if { (ac_try="$ac_compile" | |
22553 | case "(($ac_try" in | |
2e4498b3 CR |
22554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22555 | *) ac_try_echo=$ac_try;; | |
22556 | esac | |
dd4f3dd8 CR |
22557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22558 | $as_echo "$ac_try_echo") >&5 | |
22559 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 22560 | ac_status=$? |
dd4f3dd8 CR |
22561 | grep -v '^ *+' conftest.er1 >conftest.err |
22562 | rm -f conftest.er1 | |
22563 | cat conftest.err >&5 | |
22564 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22565 | (exit $ac_status); } && { | |
22566 | test -z "$ac_c_werror_flag" || | |
22567 | test ! -s conftest.err | |
22568 | } && test -s conftest.$ac_objext; then | |
22569 | : | |
22570 | else | |
22571 | $as_echo "$as_me: failed program was:" >&5 | |
22572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22573 | ||
22574 | ac_cv_type_u_int=yes | |
22575 | fi | |
22576 | ||
22577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22578 | else |
dd4f3dd8 | 22579 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22580 | sed 's/^/| /' conftest.$ac_ext >&5 |
22581 | ||
dd4f3dd8 | 22582 | |
545f34cf | 22583 | fi |
d3ad40de CR |
22584 | |
22585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22586 | fi |
dd4f3dd8 CR |
22587 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5 |
22588 | $as_echo "$ac_cv_type_u_int" >&6; } | |
76af2125 | 22589 | if test $ac_cv_type_u_int = yes; then |
545f34cf CR |
22590 | : |
22591 | else | |
22592 | ||
22593 | cat >>confdefs.h <<_ACEOF | |
22594 | @%:@define u_int unsigned int | |
22595 | _ACEOF | |
22596 | ||
22597 | fi | |
22598 | ||
dd4f3dd8 CR |
22599 | { $as_echo "$as_me:$LINENO: checking for u_long" >&5 |
22600 | $as_echo_n "checking for u_long... " >&6; } | |
545f34cf | 22601 | if test "${ac_cv_type_u_long+set}" = set; then |
dd4f3dd8 | 22602 | $as_echo_n "(cached) " >&6 |
545f34cf | 22603 | else |
dd4f3dd8 CR |
22604 | ac_cv_type_u_long=no |
22605 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22606 | /* confdefs.h. */ |
22607 | _ACEOF | |
22608 | cat confdefs.h >>conftest.$ac_ext | |
22609 | cat >>conftest.$ac_ext <<_ACEOF | |
22610 | /* end confdefs.h. */ | |
22611 | $ac_includes_default | |
22612 | int | |
22613 | main () | |
22614 | { | |
dd4f3dd8 CR |
22615 | if (sizeof (u_long)) |
22616 | return 0; | |
545f34cf CR |
22617 | ; |
22618 | return 0; | |
22619 | } | |
22620 | _ACEOF | |
22621 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22622 | if { (ac_try="$ac_compile" |
22623 | case "(($ac_try" in | |
22624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22625 | *) ac_try_echo=$ac_try;; | |
22626 | esac | |
dd4f3dd8 CR |
22627 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22628 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22629 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22630 | ac_status=$? |
a82a04b3 CR |
22631 | grep -v '^ *+' conftest.er1 >conftest.err |
22632 | rm -f conftest.er1 | |
22633 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22635 | (exit $ac_status); } && { | |
22636 | test -z "$ac_c_werror_flag" || | |
22637 | test ! -s conftest.err | |
22638 | } && test -s conftest.$ac_objext; then | |
22639 | cat >conftest.$ac_ext <<_ACEOF | |
22640 | /* confdefs.h. */ | |
22641 | _ACEOF | |
22642 | cat confdefs.h >>conftest.$ac_ext | |
22643 | cat >>conftest.$ac_ext <<_ACEOF | |
22644 | /* end confdefs.h. */ | |
22645 | $ac_includes_default | |
22646 | int | |
22647 | main () | |
22648 | { | |
22649 | if (sizeof ((u_long))) | |
22650 | return 0; | |
22651 | ; | |
22652 | return 0; | |
22653 | } | |
22654 | _ACEOF | |
22655 | rm -f conftest.$ac_objext | |
22656 | if { (ac_try="$ac_compile" | |
22657 | case "(($ac_try" in | |
2e4498b3 CR |
22658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22659 | *) ac_try_echo=$ac_try;; | |
22660 | esac | |
dd4f3dd8 CR |
22661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22662 | $as_echo "$ac_try_echo") >&5 | |
22663 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 22664 | ac_status=$? |
dd4f3dd8 CR |
22665 | grep -v '^ *+' conftest.er1 >conftest.err |
22666 | rm -f conftest.er1 | |
22667 | cat conftest.err >&5 | |
22668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22669 | (exit $ac_status); } && { | |
22670 | test -z "$ac_c_werror_flag" || | |
22671 | test ! -s conftest.err | |
22672 | } && test -s conftest.$ac_objext; then | |
22673 | : | |
22674 | else | |
22675 | $as_echo "$as_me: failed program was:" >&5 | |
22676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22677 | ||
22678 | ac_cv_type_u_long=yes | |
22679 | fi | |
22680 | ||
22681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22682 | else |
dd4f3dd8 | 22683 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22684 | sed 's/^/| /' conftest.$ac_ext >&5 |
22685 | ||
dd4f3dd8 | 22686 | |
545f34cf | 22687 | fi |
d3ad40de CR |
22688 | |
22689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22690 | fi |
dd4f3dd8 CR |
22691 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5 |
22692 | $as_echo "$ac_cv_type_u_long" >&6; } | |
76af2125 | 22693 | if test $ac_cv_type_u_long = yes; then |
545f34cf CR |
22694 | : |
22695 | else | |
22696 | ||
22697 | cat >>confdefs.h <<_ACEOF | |
22698 | @%:@define u_long unsigned long | |
22699 | _ACEOF | |
22700 | ||
22701 | fi | |
22702 | ||
22703 | ||
22704 | ||
22705 | if test "$ac_cv_sizeof_short" = 2; then | |
dd4f3dd8 CR |
22706 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 |
22707 | $as_echo_n "checking for bits16_t... " >&6; } | |
545f34cf | 22708 | if test "${ac_cv_type_bits16_t+set}" = set; then |
dd4f3dd8 | 22709 | $as_echo_n "(cached) " >&6 |
545f34cf | 22710 | else |
dd4f3dd8 CR |
22711 | ac_cv_type_bits16_t=no |
22712 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22713 | /* confdefs.h. */ |
22714 | _ACEOF | |
22715 | cat confdefs.h >>conftest.$ac_ext | |
22716 | cat >>conftest.$ac_ext <<_ACEOF | |
22717 | /* end confdefs.h. */ | |
22718 | $ac_includes_default | |
22719 | int | |
22720 | main () | |
22721 | { | |
dd4f3dd8 CR |
22722 | if (sizeof (bits16_t)) |
22723 | return 0; | |
545f34cf CR |
22724 | ; |
22725 | return 0; | |
22726 | } | |
22727 | _ACEOF | |
22728 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22729 | if { (ac_try="$ac_compile" |
22730 | case "(($ac_try" in | |
22731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22732 | *) ac_try_echo=$ac_try;; | |
22733 | esac | |
dd4f3dd8 CR |
22734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22735 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22736 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22737 | ac_status=$? |
a82a04b3 CR |
22738 | grep -v '^ *+' conftest.er1 >conftest.err |
22739 | rm -f conftest.er1 | |
22740 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22742 | (exit $ac_status); } && { | |
22743 | test -z "$ac_c_werror_flag" || | |
22744 | test ! -s conftest.err | |
22745 | } && test -s conftest.$ac_objext; then | |
22746 | cat >conftest.$ac_ext <<_ACEOF | |
22747 | /* confdefs.h. */ | |
22748 | _ACEOF | |
22749 | cat confdefs.h >>conftest.$ac_ext | |
22750 | cat >>conftest.$ac_ext <<_ACEOF | |
22751 | /* end confdefs.h. */ | |
22752 | $ac_includes_default | |
22753 | int | |
22754 | main () | |
22755 | { | |
22756 | if (sizeof ((bits16_t))) | |
22757 | return 0; | |
22758 | ; | |
22759 | return 0; | |
22760 | } | |
22761 | _ACEOF | |
22762 | rm -f conftest.$ac_objext | |
22763 | if { (ac_try="$ac_compile" | |
22764 | case "(($ac_try" in | |
2e4498b3 CR |
22765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22766 | *) ac_try_echo=$ac_try;; | |
22767 | esac | |
dd4f3dd8 CR |
22768 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22769 | $as_echo "$ac_try_echo") >&5 | |
22770 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 22771 | ac_status=$? |
dd4f3dd8 CR |
22772 | grep -v '^ *+' conftest.er1 >conftest.err |
22773 | rm -f conftest.er1 | |
22774 | cat conftest.err >&5 | |
22775 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22776 | (exit $ac_status); } && { | |
22777 | test -z "$ac_c_werror_flag" || | |
22778 | test ! -s conftest.err | |
22779 | } && test -s conftest.$ac_objext; then | |
22780 | : | |
22781 | else | |
22782 | $as_echo "$as_me: failed program was:" >&5 | |
22783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22784 | ||
22785 | ac_cv_type_bits16_t=yes | |
22786 | fi | |
22787 | ||
22788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22789 | else |
dd4f3dd8 | 22790 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22791 | sed 's/^/| /' conftest.$ac_ext >&5 |
22792 | ||
dd4f3dd8 | 22793 | |
545f34cf | 22794 | fi |
d3ad40de CR |
22795 | |
22796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22797 | fi |
dd4f3dd8 CR |
22798 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
22799 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
76af2125 | 22800 | if test $ac_cv_type_bits16_t = yes; then |
545f34cf CR |
22801 | : |
22802 | else | |
22803 | ||
22804 | cat >>confdefs.h <<_ACEOF | |
22805 | @%:@define bits16_t short | |
22806 | _ACEOF | |
22807 | ||
22808 | fi | |
22809 | ||
22810 | elif test "$ac_cv_sizeof_char" = 2; then | |
dd4f3dd8 CR |
22811 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 |
22812 | $as_echo_n "checking for bits16_t... " >&6; } | |
545f34cf | 22813 | if test "${ac_cv_type_bits16_t+set}" = set; then |
dd4f3dd8 | 22814 | $as_echo_n "(cached) " >&6 |
545f34cf | 22815 | else |
dd4f3dd8 CR |
22816 | ac_cv_type_bits16_t=no |
22817 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22818 | /* confdefs.h. */ |
22819 | _ACEOF | |
22820 | cat confdefs.h >>conftest.$ac_ext | |
22821 | cat >>conftest.$ac_ext <<_ACEOF | |
22822 | /* end confdefs.h. */ | |
22823 | $ac_includes_default | |
22824 | int | |
22825 | main () | |
22826 | { | |
dd4f3dd8 CR |
22827 | if (sizeof (bits16_t)) |
22828 | return 0; | |
545f34cf CR |
22829 | ; |
22830 | return 0; | |
22831 | } | |
22832 | _ACEOF | |
22833 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22834 | if { (ac_try="$ac_compile" |
22835 | case "(($ac_try" in | |
22836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22837 | *) ac_try_echo=$ac_try;; | |
22838 | esac | |
dd4f3dd8 CR |
22839 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22840 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22841 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22842 | ac_status=$? |
a82a04b3 CR |
22843 | grep -v '^ *+' conftest.er1 >conftest.err |
22844 | rm -f conftest.er1 | |
22845 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22847 | (exit $ac_status); } && { | |
22848 | test -z "$ac_c_werror_flag" || | |
22849 | test ! -s conftest.err | |
22850 | } && test -s conftest.$ac_objext; then | |
22851 | cat >conftest.$ac_ext <<_ACEOF | |
22852 | /* confdefs.h. */ | |
22853 | _ACEOF | |
22854 | cat confdefs.h >>conftest.$ac_ext | |
22855 | cat >>conftest.$ac_ext <<_ACEOF | |
22856 | /* end confdefs.h. */ | |
22857 | $ac_includes_default | |
22858 | int | |
22859 | main () | |
22860 | { | |
22861 | if (sizeof ((bits16_t))) | |
22862 | return 0; | |
22863 | ; | |
22864 | return 0; | |
22865 | } | |
22866 | _ACEOF | |
22867 | rm -f conftest.$ac_objext | |
22868 | if { (ac_try="$ac_compile" | |
22869 | case "(($ac_try" in | |
2e4498b3 CR |
22870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22871 | *) ac_try_echo=$ac_try;; | |
22872 | esac | |
dd4f3dd8 CR |
22873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22874 | $as_echo "$ac_try_echo") >&5 | |
22875 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 22876 | ac_status=$? |
dd4f3dd8 CR |
22877 | grep -v '^ *+' conftest.er1 >conftest.err |
22878 | rm -f conftest.er1 | |
22879 | cat conftest.err >&5 | |
22880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22881 | (exit $ac_status); } && { | |
22882 | test -z "$ac_c_werror_flag" || | |
22883 | test ! -s conftest.err | |
22884 | } && test -s conftest.$ac_objext; then | |
22885 | : | |
545f34cf | 22886 | else |
dd4f3dd8 | 22887 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
22888 | sed 's/^/| /' conftest.$ac_ext >&5 |
22889 | ||
dd4f3dd8 | 22890 | ac_cv_type_bits16_t=yes |
545f34cf | 22891 | fi |
d3ad40de CR |
22892 | |
22893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
22894 | else |
22895 | $as_echo "$as_me: failed program was:" >&5 | |
22896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22897 | ||
22898 | ||
545f34cf | 22899 | fi |
dd4f3dd8 CR |
22900 | |
22901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22902 | fi | |
22903 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 | |
22904 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
76af2125 | 22905 | if test $ac_cv_type_bits16_t = yes; then |
545f34cf CR |
22906 | : |
22907 | else | |
22908 | ||
22909 | cat >>confdefs.h <<_ACEOF | |
22910 | @%:@define bits16_t char | |
22911 | _ACEOF | |
22912 | ||
22913 | fi | |
22914 | ||
22915 | else | |
dd4f3dd8 CR |
22916 | { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5 |
22917 | $as_echo_n "checking for bits16_t... " >&6; } | |
545f34cf | 22918 | if test "${ac_cv_type_bits16_t+set}" = set; then |
dd4f3dd8 | 22919 | $as_echo_n "(cached) " >&6 |
545f34cf | 22920 | else |
dd4f3dd8 CR |
22921 | ac_cv_type_bits16_t=no |
22922 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
22923 | /* confdefs.h. */ |
22924 | _ACEOF | |
22925 | cat confdefs.h >>conftest.$ac_ext | |
22926 | cat >>conftest.$ac_ext <<_ACEOF | |
22927 | /* end confdefs.h. */ | |
22928 | $ac_includes_default | |
22929 | int | |
22930 | main () | |
22931 | { | |
dd4f3dd8 CR |
22932 | if (sizeof (bits16_t)) |
22933 | return 0; | |
545f34cf CR |
22934 | ; |
22935 | return 0; | |
22936 | } | |
22937 | _ACEOF | |
22938 | rm -f conftest.$ac_objext | |
d3ad40de CR |
22939 | if { (ac_try="$ac_compile" |
22940 | case "(($ac_try" in | |
22941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22942 | *) ac_try_echo=$ac_try;; | |
22943 | esac | |
dd4f3dd8 CR |
22944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22945 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 22946 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 22947 | ac_status=$? |
a82a04b3 CR |
22948 | grep -v '^ *+' conftest.er1 >conftest.err |
22949 | rm -f conftest.er1 | |
22950 | cat conftest.err >&5 | |
dd4f3dd8 CR |
22951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22952 | (exit $ac_status); } && { | |
22953 | test -z "$ac_c_werror_flag" || | |
22954 | test ! -s conftest.err | |
22955 | } && test -s conftest.$ac_objext; then | |
22956 | cat >conftest.$ac_ext <<_ACEOF | |
22957 | /* confdefs.h. */ | |
22958 | _ACEOF | |
22959 | cat confdefs.h >>conftest.$ac_ext | |
22960 | cat >>conftest.$ac_ext <<_ACEOF | |
22961 | /* end confdefs.h. */ | |
22962 | $ac_includes_default | |
22963 | int | |
22964 | main () | |
22965 | { | |
22966 | if (sizeof ((bits16_t))) | |
22967 | return 0; | |
22968 | ; | |
22969 | return 0; | |
22970 | } | |
22971 | _ACEOF | |
22972 | rm -f conftest.$ac_objext | |
22973 | if { (ac_try="$ac_compile" | |
22974 | case "(($ac_try" in | |
2e4498b3 CR |
22975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22976 | *) ac_try_echo=$ac_try;; | |
22977 | esac | |
dd4f3dd8 CR |
22978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22979 | $as_echo "$ac_try_echo") >&5 | |
22980 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 22981 | ac_status=$? |
dd4f3dd8 CR |
22982 | grep -v '^ *+' conftest.er1 >conftest.err |
22983 | rm -f conftest.er1 | |
22984 | cat conftest.err >&5 | |
22985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22986 | (exit $ac_status); } && { | |
22987 | test -z "$ac_c_werror_flag" || | |
22988 | test ! -s conftest.err | |
22989 | } && test -s conftest.$ac_objext; then | |
22990 | : | |
22991 | else | |
22992 | $as_echo "$as_me: failed program was:" >&5 | |
22993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22994 | ||
22995 | ac_cv_type_bits16_t=yes | |
22996 | fi | |
22997 | ||
22998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 22999 | else |
dd4f3dd8 | 23000 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23001 | sed 's/^/| /' conftest.$ac_ext >&5 |
23002 | ||
dd4f3dd8 | 23003 | |
545f34cf | 23004 | fi |
d3ad40de CR |
23005 | |
23006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23007 | fi |
dd4f3dd8 CR |
23008 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5 |
23009 | $as_echo "$ac_cv_type_bits16_t" >&6; } | |
76af2125 | 23010 | if test $ac_cv_type_bits16_t = yes; then |
545f34cf CR |
23011 | : |
23012 | else | |
23013 | ||
23014 | cat >>confdefs.h <<_ACEOF | |
23015 | @%:@define bits16_t short | |
23016 | _ACEOF | |
23017 | ||
23018 | fi | |
23019 | ||
23020 | fi | |
23021 | ||
23022 | ||
23023 | if test "$ac_cv_sizeof_short" = 2; then | |
dd4f3dd8 CR |
23024 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 |
23025 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
545f34cf | 23026 | if test "${ac_cv_type_u_bits16_t+set}" = set; then |
dd4f3dd8 | 23027 | $as_echo_n "(cached) " >&6 |
545f34cf | 23028 | else |
dd4f3dd8 CR |
23029 | ac_cv_type_u_bits16_t=no |
23030 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23031 | /* confdefs.h. */ |
23032 | _ACEOF | |
23033 | cat confdefs.h >>conftest.$ac_ext | |
23034 | cat >>conftest.$ac_ext <<_ACEOF | |
23035 | /* end confdefs.h. */ | |
23036 | $ac_includes_default | |
23037 | int | |
23038 | main () | |
23039 | { | |
dd4f3dd8 CR |
23040 | if (sizeof (u_bits16_t)) |
23041 | return 0; | |
545f34cf CR |
23042 | ; |
23043 | return 0; | |
23044 | } | |
23045 | _ACEOF | |
23046 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23047 | if { (ac_try="$ac_compile" |
23048 | case "(($ac_try" in | |
23049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23050 | *) ac_try_echo=$ac_try;; | |
23051 | esac | |
dd4f3dd8 CR |
23052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23053 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23054 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23055 | ac_status=$? |
a82a04b3 CR |
23056 | grep -v '^ *+' conftest.er1 >conftest.err |
23057 | rm -f conftest.er1 | |
23058 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23060 | (exit $ac_status); } && { | |
23061 | test -z "$ac_c_werror_flag" || | |
23062 | test ! -s conftest.err | |
23063 | } && test -s conftest.$ac_objext; then | |
23064 | cat >conftest.$ac_ext <<_ACEOF | |
23065 | /* confdefs.h. */ | |
23066 | _ACEOF | |
23067 | cat confdefs.h >>conftest.$ac_ext | |
23068 | cat >>conftest.$ac_ext <<_ACEOF | |
23069 | /* end confdefs.h. */ | |
23070 | $ac_includes_default | |
23071 | int | |
23072 | main () | |
23073 | { | |
23074 | if (sizeof ((u_bits16_t))) | |
23075 | return 0; | |
23076 | ; | |
23077 | return 0; | |
23078 | } | |
23079 | _ACEOF | |
23080 | rm -f conftest.$ac_objext | |
23081 | if { (ac_try="$ac_compile" | |
23082 | case "(($ac_try" in | |
2e4498b3 CR |
23083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23084 | *) ac_try_echo=$ac_try;; | |
23085 | esac | |
dd4f3dd8 CR |
23086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23087 | $as_echo "$ac_try_echo") >&5 | |
23088 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23089 | ac_status=$? |
dd4f3dd8 CR |
23090 | grep -v '^ *+' conftest.er1 >conftest.err |
23091 | rm -f conftest.er1 | |
23092 | cat conftest.err >&5 | |
23093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23094 | (exit $ac_status); } && { | |
23095 | test -z "$ac_c_werror_flag" || | |
23096 | test ! -s conftest.err | |
23097 | } && test -s conftest.$ac_objext; then | |
23098 | : | |
23099 | else | |
23100 | $as_echo "$as_me: failed program was:" >&5 | |
23101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23102 | ||
23103 | ac_cv_type_u_bits16_t=yes | |
23104 | fi | |
23105 | ||
23106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23107 | else |
dd4f3dd8 | 23108 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23109 | sed 's/^/| /' conftest.$ac_ext >&5 |
23110 | ||
dd4f3dd8 | 23111 | |
545f34cf | 23112 | fi |
d3ad40de CR |
23113 | |
23114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23115 | fi |
dd4f3dd8 CR |
23116 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 |
23117 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
76af2125 | 23118 | if test $ac_cv_type_u_bits16_t = yes; then |
545f34cf CR |
23119 | : |
23120 | else | |
23121 | ||
23122 | cat >>confdefs.h <<_ACEOF | |
23123 | @%:@define u_bits16_t unsigned short | |
23124 | _ACEOF | |
23125 | ||
23126 | fi | |
23127 | ||
23128 | elif test "$ac_cv_sizeof_char" = 2; then | |
dd4f3dd8 CR |
23129 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 |
23130 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
545f34cf | 23131 | if test "${ac_cv_type_u_bits16_t+set}" = set; then |
dd4f3dd8 | 23132 | $as_echo_n "(cached) " >&6 |
545f34cf | 23133 | else |
dd4f3dd8 CR |
23134 | ac_cv_type_u_bits16_t=no |
23135 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23136 | /* confdefs.h. */ |
23137 | _ACEOF | |
23138 | cat confdefs.h >>conftest.$ac_ext | |
23139 | cat >>conftest.$ac_ext <<_ACEOF | |
23140 | /* end confdefs.h. */ | |
23141 | $ac_includes_default | |
23142 | int | |
23143 | main () | |
23144 | { | |
dd4f3dd8 CR |
23145 | if (sizeof (u_bits16_t)) |
23146 | return 0; | |
545f34cf CR |
23147 | ; |
23148 | return 0; | |
23149 | } | |
23150 | _ACEOF | |
23151 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23152 | if { (ac_try="$ac_compile" |
23153 | case "(($ac_try" in | |
23154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23155 | *) ac_try_echo=$ac_try;; | |
23156 | esac | |
dd4f3dd8 CR |
23157 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23158 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23159 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23160 | ac_status=$? |
a82a04b3 CR |
23161 | grep -v '^ *+' conftest.er1 >conftest.err |
23162 | rm -f conftest.er1 | |
23163 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23165 | (exit $ac_status); } && { | |
23166 | test -z "$ac_c_werror_flag" || | |
23167 | test ! -s conftest.err | |
23168 | } && test -s conftest.$ac_objext; then | |
23169 | cat >conftest.$ac_ext <<_ACEOF | |
23170 | /* confdefs.h. */ | |
23171 | _ACEOF | |
23172 | cat confdefs.h >>conftest.$ac_ext | |
23173 | cat >>conftest.$ac_ext <<_ACEOF | |
23174 | /* end confdefs.h. */ | |
23175 | $ac_includes_default | |
23176 | int | |
23177 | main () | |
23178 | { | |
23179 | if (sizeof ((u_bits16_t))) | |
23180 | return 0; | |
23181 | ; | |
23182 | return 0; | |
23183 | } | |
23184 | _ACEOF | |
23185 | rm -f conftest.$ac_objext | |
23186 | if { (ac_try="$ac_compile" | |
23187 | case "(($ac_try" in | |
2e4498b3 CR |
23188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23189 | *) ac_try_echo=$ac_try;; | |
23190 | esac | |
dd4f3dd8 CR |
23191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23192 | $as_echo "$ac_try_echo") >&5 | |
23193 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23194 | ac_status=$? |
dd4f3dd8 CR |
23195 | grep -v '^ *+' conftest.er1 >conftest.err |
23196 | rm -f conftest.er1 | |
23197 | cat conftest.err >&5 | |
23198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23199 | (exit $ac_status); } && { | |
23200 | test -z "$ac_c_werror_flag" || | |
23201 | test ! -s conftest.err | |
23202 | } && test -s conftest.$ac_objext; then | |
23203 | : | |
23204 | else | |
23205 | $as_echo "$as_me: failed program was:" >&5 | |
23206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23207 | ||
23208 | ac_cv_type_u_bits16_t=yes | |
23209 | fi | |
23210 | ||
23211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23212 | else |
dd4f3dd8 | 23213 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23214 | sed 's/^/| /' conftest.$ac_ext >&5 |
23215 | ||
dd4f3dd8 | 23216 | |
545f34cf | 23217 | fi |
d3ad40de CR |
23218 | |
23219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23220 | fi |
dd4f3dd8 CR |
23221 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 |
23222 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
76af2125 | 23223 | if test $ac_cv_type_u_bits16_t = yes; then |
545f34cf CR |
23224 | : |
23225 | else | |
23226 | ||
23227 | cat >>confdefs.h <<_ACEOF | |
23228 | @%:@define u_bits16_t unsigned char | |
23229 | _ACEOF | |
23230 | ||
23231 | fi | |
23232 | ||
23233 | else | |
dd4f3dd8 CR |
23234 | { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5 |
23235 | $as_echo_n "checking for u_bits16_t... " >&6; } | |
545f34cf | 23236 | if test "${ac_cv_type_u_bits16_t+set}" = set; then |
dd4f3dd8 | 23237 | $as_echo_n "(cached) " >&6 |
545f34cf | 23238 | else |
dd4f3dd8 CR |
23239 | ac_cv_type_u_bits16_t=no |
23240 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23241 | /* confdefs.h. */ |
23242 | _ACEOF | |
23243 | cat confdefs.h >>conftest.$ac_ext | |
23244 | cat >>conftest.$ac_ext <<_ACEOF | |
23245 | /* end confdefs.h. */ | |
23246 | $ac_includes_default | |
23247 | int | |
23248 | main () | |
23249 | { | |
dd4f3dd8 CR |
23250 | if (sizeof (u_bits16_t)) |
23251 | return 0; | |
545f34cf CR |
23252 | ; |
23253 | return 0; | |
23254 | } | |
23255 | _ACEOF | |
23256 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23257 | if { (ac_try="$ac_compile" |
23258 | case "(($ac_try" in | |
23259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23260 | *) ac_try_echo=$ac_try;; | |
23261 | esac | |
dd4f3dd8 CR |
23262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23263 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23264 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23265 | ac_status=$? |
a82a04b3 CR |
23266 | grep -v '^ *+' conftest.er1 >conftest.err |
23267 | rm -f conftest.er1 | |
23268 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23270 | (exit $ac_status); } && { | |
23271 | test -z "$ac_c_werror_flag" || | |
23272 | test ! -s conftest.err | |
23273 | } && test -s conftest.$ac_objext; then | |
23274 | cat >conftest.$ac_ext <<_ACEOF | |
23275 | /* confdefs.h. */ | |
23276 | _ACEOF | |
23277 | cat confdefs.h >>conftest.$ac_ext | |
23278 | cat >>conftest.$ac_ext <<_ACEOF | |
23279 | /* end confdefs.h. */ | |
23280 | $ac_includes_default | |
23281 | int | |
23282 | main () | |
23283 | { | |
23284 | if (sizeof ((u_bits16_t))) | |
23285 | return 0; | |
23286 | ; | |
23287 | return 0; | |
23288 | } | |
23289 | _ACEOF | |
23290 | rm -f conftest.$ac_objext | |
23291 | if { (ac_try="$ac_compile" | |
23292 | case "(($ac_try" in | |
2e4498b3 CR |
23293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23294 | *) ac_try_echo=$ac_try;; | |
23295 | esac | |
dd4f3dd8 CR |
23296 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23297 | $as_echo "$ac_try_echo") >&5 | |
23298 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23299 | ac_status=$? |
dd4f3dd8 CR |
23300 | grep -v '^ *+' conftest.er1 >conftest.err |
23301 | rm -f conftest.er1 | |
23302 | cat conftest.err >&5 | |
23303 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23304 | (exit $ac_status); } && { | |
23305 | test -z "$ac_c_werror_flag" || | |
23306 | test ! -s conftest.err | |
23307 | } && test -s conftest.$ac_objext; then | |
23308 | : | |
545f34cf | 23309 | else |
dd4f3dd8 | 23310 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23311 | sed 's/^/| /' conftest.$ac_ext >&5 |
23312 | ||
dd4f3dd8 | 23313 | ac_cv_type_u_bits16_t=yes |
545f34cf | 23314 | fi |
d3ad40de CR |
23315 | |
23316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
23317 | else |
23318 | $as_echo "$as_me: failed program was:" >&5 | |
23319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23320 | ||
23321 | ||
545f34cf | 23322 | fi |
dd4f3dd8 CR |
23323 | |
23324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23325 | fi | |
23326 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5 | |
23327 | $as_echo "$ac_cv_type_u_bits16_t" >&6; } | |
76af2125 | 23328 | if test $ac_cv_type_u_bits16_t = yes; then |
545f34cf CR |
23329 | : |
23330 | else | |
23331 | ||
23332 | cat >>confdefs.h <<_ACEOF | |
23333 | @%:@define u_bits16_t unsigned short | |
23334 | _ACEOF | |
23335 | ||
23336 | fi | |
23337 | ||
23338 | fi | |
23339 | ||
23340 | ||
23341 | if test "$ac_cv_sizeof_int" = 4; then | |
dd4f3dd8 CR |
23342 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 |
23343 | $as_echo_n "checking for bits32_t... " >&6; } | |
545f34cf | 23344 | if test "${ac_cv_type_bits32_t+set}" = set; then |
dd4f3dd8 | 23345 | $as_echo_n "(cached) " >&6 |
545f34cf | 23346 | else |
dd4f3dd8 CR |
23347 | ac_cv_type_bits32_t=no |
23348 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23349 | /* confdefs.h. */ |
23350 | _ACEOF | |
23351 | cat confdefs.h >>conftest.$ac_ext | |
23352 | cat >>conftest.$ac_ext <<_ACEOF | |
23353 | /* end confdefs.h. */ | |
23354 | $ac_includes_default | |
23355 | int | |
23356 | main () | |
23357 | { | |
dd4f3dd8 CR |
23358 | if (sizeof (bits32_t)) |
23359 | return 0; | |
545f34cf CR |
23360 | ; |
23361 | return 0; | |
23362 | } | |
23363 | _ACEOF | |
23364 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23365 | if { (ac_try="$ac_compile" |
23366 | case "(($ac_try" in | |
23367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23368 | *) ac_try_echo=$ac_try;; | |
23369 | esac | |
dd4f3dd8 CR |
23370 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23371 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23372 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23373 | ac_status=$? |
a82a04b3 CR |
23374 | grep -v '^ *+' conftest.er1 >conftest.err |
23375 | rm -f conftest.er1 | |
23376 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23378 | (exit $ac_status); } && { | |
23379 | test -z "$ac_c_werror_flag" || | |
23380 | test ! -s conftest.err | |
23381 | } && test -s conftest.$ac_objext; then | |
23382 | cat >conftest.$ac_ext <<_ACEOF | |
23383 | /* confdefs.h. */ | |
23384 | _ACEOF | |
23385 | cat confdefs.h >>conftest.$ac_ext | |
23386 | cat >>conftest.$ac_ext <<_ACEOF | |
23387 | /* end confdefs.h. */ | |
23388 | $ac_includes_default | |
23389 | int | |
23390 | main () | |
23391 | { | |
23392 | if (sizeof ((bits32_t))) | |
23393 | return 0; | |
23394 | ; | |
23395 | return 0; | |
23396 | } | |
23397 | _ACEOF | |
23398 | rm -f conftest.$ac_objext | |
23399 | if { (ac_try="$ac_compile" | |
23400 | case "(($ac_try" in | |
2e4498b3 CR |
23401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23402 | *) ac_try_echo=$ac_try;; | |
23403 | esac | |
dd4f3dd8 CR |
23404 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23405 | $as_echo "$ac_try_echo") >&5 | |
23406 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23407 | ac_status=$? |
dd4f3dd8 CR |
23408 | grep -v '^ *+' conftest.er1 >conftest.err |
23409 | rm -f conftest.er1 | |
23410 | cat conftest.err >&5 | |
23411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23412 | (exit $ac_status); } && { | |
23413 | test -z "$ac_c_werror_flag" || | |
23414 | test ! -s conftest.err | |
23415 | } && test -s conftest.$ac_objext; then | |
23416 | : | |
23417 | else | |
23418 | $as_echo "$as_me: failed program was:" >&5 | |
23419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23420 | ||
23421 | ac_cv_type_bits32_t=yes | |
23422 | fi | |
545f34cf | 23423 | |
dd4f3dd8 CR |
23424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23425 | else | |
23426 | $as_echo "$as_me: failed program was:" >&5 | |
23427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23428 | ||
23429 | ||
545f34cf | 23430 | fi |
d3ad40de CR |
23431 | |
23432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23433 | fi |
dd4f3dd8 CR |
23434 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 |
23435 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
76af2125 | 23436 | if test $ac_cv_type_bits32_t = yes; then |
545f34cf CR |
23437 | : |
23438 | else | |
23439 | ||
23440 | cat >>confdefs.h <<_ACEOF | |
23441 | @%:@define bits32_t int | |
23442 | _ACEOF | |
23443 | ||
23444 | fi | |
23445 | ||
23446 | elif test "$ac_cv_sizeof_long" = 4; then | |
dd4f3dd8 CR |
23447 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 |
23448 | $as_echo_n "checking for bits32_t... " >&6; } | |
545f34cf | 23449 | if test "${ac_cv_type_bits32_t+set}" = set; then |
dd4f3dd8 | 23450 | $as_echo_n "(cached) " >&6 |
545f34cf | 23451 | else |
dd4f3dd8 CR |
23452 | ac_cv_type_bits32_t=no |
23453 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23454 | /* confdefs.h. */ |
23455 | _ACEOF | |
23456 | cat confdefs.h >>conftest.$ac_ext | |
23457 | cat >>conftest.$ac_ext <<_ACEOF | |
23458 | /* end confdefs.h. */ | |
23459 | $ac_includes_default | |
23460 | int | |
23461 | main () | |
23462 | { | |
dd4f3dd8 CR |
23463 | if (sizeof (bits32_t)) |
23464 | return 0; | |
545f34cf CR |
23465 | ; |
23466 | return 0; | |
23467 | } | |
23468 | _ACEOF | |
23469 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23470 | if { (ac_try="$ac_compile" |
23471 | case "(($ac_try" in | |
23472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23473 | *) ac_try_echo=$ac_try;; | |
23474 | esac | |
dd4f3dd8 CR |
23475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23476 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23477 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23478 | ac_status=$? |
a82a04b3 CR |
23479 | grep -v '^ *+' conftest.er1 >conftest.err |
23480 | rm -f conftest.er1 | |
23481 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23483 | (exit $ac_status); } && { | |
23484 | test -z "$ac_c_werror_flag" || | |
23485 | test ! -s conftest.err | |
23486 | } && test -s conftest.$ac_objext; then | |
23487 | cat >conftest.$ac_ext <<_ACEOF | |
23488 | /* confdefs.h. */ | |
23489 | _ACEOF | |
23490 | cat confdefs.h >>conftest.$ac_ext | |
23491 | cat >>conftest.$ac_ext <<_ACEOF | |
23492 | /* end confdefs.h. */ | |
23493 | $ac_includes_default | |
23494 | int | |
23495 | main () | |
23496 | { | |
23497 | if (sizeof ((bits32_t))) | |
23498 | return 0; | |
23499 | ; | |
23500 | return 0; | |
23501 | } | |
23502 | _ACEOF | |
23503 | rm -f conftest.$ac_objext | |
23504 | if { (ac_try="$ac_compile" | |
23505 | case "(($ac_try" in | |
2e4498b3 CR |
23506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23507 | *) ac_try_echo=$ac_try;; | |
23508 | esac | |
dd4f3dd8 CR |
23509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23510 | $as_echo "$ac_try_echo") >&5 | |
23511 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23512 | ac_status=$? |
dd4f3dd8 CR |
23513 | grep -v '^ *+' conftest.er1 >conftest.err |
23514 | rm -f conftest.er1 | |
23515 | cat conftest.err >&5 | |
23516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23517 | (exit $ac_status); } && { | |
23518 | test -z "$ac_c_werror_flag" || | |
23519 | test ! -s conftest.err | |
23520 | } && test -s conftest.$ac_objext; then | |
23521 | : | |
545f34cf | 23522 | else |
dd4f3dd8 | 23523 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23524 | sed 's/^/| /' conftest.$ac_ext >&5 |
23525 | ||
dd4f3dd8 | 23526 | ac_cv_type_bits32_t=yes |
545f34cf | 23527 | fi |
d3ad40de CR |
23528 | |
23529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
23530 | else |
23531 | $as_echo "$as_me: failed program was:" >&5 | |
23532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23533 | ||
23534 | ||
545f34cf | 23535 | fi |
dd4f3dd8 CR |
23536 | |
23537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23538 | fi | |
23539 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 | |
23540 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
76af2125 | 23541 | if test $ac_cv_type_bits32_t = yes; then |
545f34cf CR |
23542 | : |
23543 | else | |
23544 | ||
23545 | cat >>confdefs.h <<_ACEOF | |
23546 | @%:@define bits32_t long | |
23547 | _ACEOF | |
23548 | ||
23549 | fi | |
23550 | ||
23551 | else | |
dd4f3dd8 CR |
23552 | { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5 |
23553 | $as_echo_n "checking for bits32_t... " >&6; } | |
545f34cf | 23554 | if test "${ac_cv_type_bits32_t+set}" = set; then |
dd4f3dd8 | 23555 | $as_echo_n "(cached) " >&6 |
545f34cf | 23556 | else |
dd4f3dd8 CR |
23557 | ac_cv_type_bits32_t=no |
23558 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23559 | /* confdefs.h. */ |
23560 | _ACEOF | |
23561 | cat confdefs.h >>conftest.$ac_ext | |
23562 | cat >>conftest.$ac_ext <<_ACEOF | |
23563 | /* end confdefs.h. */ | |
23564 | $ac_includes_default | |
23565 | int | |
23566 | main () | |
23567 | { | |
dd4f3dd8 CR |
23568 | if (sizeof (bits32_t)) |
23569 | return 0; | |
545f34cf CR |
23570 | ; |
23571 | return 0; | |
23572 | } | |
23573 | _ACEOF | |
23574 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23575 | if { (ac_try="$ac_compile" |
23576 | case "(($ac_try" in | |
23577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23578 | *) ac_try_echo=$ac_try;; | |
23579 | esac | |
dd4f3dd8 CR |
23580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23581 | $as_echo "$ac_try_echo") >&5 | |
2e4498b3 CR |
23582 | (eval "$ac_compile") 2>conftest.er1 |
23583 | ac_status=$? | |
23584 | grep -v '^ *+' conftest.er1 >conftest.err | |
23585 | rm -f conftest.er1 | |
23586 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23588 | (exit $ac_status); } && { | |
23589 | test -z "$ac_c_werror_flag" || | |
23590 | test ! -s conftest.err | |
23591 | } && test -s conftest.$ac_objext; then | |
23592 | cat >conftest.$ac_ext <<_ACEOF | |
23593 | /* confdefs.h. */ | |
23594 | _ACEOF | |
23595 | cat confdefs.h >>conftest.$ac_ext | |
23596 | cat >>conftest.$ac_ext <<_ACEOF | |
23597 | /* end confdefs.h. */ | |
23598 | $ac_includes_default | |
23599 | int | |
23600 | main () | |
23601 | { | |
23602 | if (sizeof ((bits32_t))) | |
23603 | return 0; | |
23604 | ; | |
23605 | return 0; | |
23606 | } | |
23607 | _ACEOF | |
23608 | rm -f conftest.$ac_objext | |
23609 | if { (ac_try="$ac_compile" | |
23610 | case "(($ac_try" in | |
2e4498b3 CR |
23611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23612 | *) ac_try_echo=$ac_try;; | |
23613 | esac | |
dd4f3dd8 CR |
23614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23615 | $as_echo "$ac_try_echo") >&5 | |
23616 | (eval "$ac_compile") 2>conftest.er1 | |
09767ff0 | 23617 | ac_status=$? |
dd4f3dd8 CR |
23618 | grep -v '^ *+' conftest.er1 >conftest.err |
23619 | rm -f conftest.er1 | |
23620 | cat conftest.err >&5 | |
23621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23622 | (exit $ac_status); } && { | |
23623 | test -z "$ac_c_werror_flag" || | |
23624 | test ! -s conftest.err | |
23625 | } && test -s conftest.$ac_objext; then | |
23626 | : | |
23627 | else | |
23628 | $as_echo "$as_me: failed program was:" >&5 | |
23629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23630 | ||
23631 | ac_cv_type_bits32_t=yes | |
23632 | fi | |
23633 | ||
23634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23635 | else |
dd4f3dd8 | 23636 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23637 | sed 's/^/| /' conftest.$ac_ext >&5 |
23638 | ||
dd4f3dd8 | 23639 | |
545f34cf | 23640 | fi |
d3ad40de CR |
23641 | |
23642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23643 | fi |
dd4f3dd8 CR |
23644 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5 |
23645 | $as_echo "$ac_cv_type_bits32_t" >&6; } | |
76af2125 | 23646 | if test $ac_cv_type_bits32_t = yes; then |
545f34cf CR |
23647 | : |
23648 | else | |
23649 | ||
23650 | cat >>confdefs.h <<_ACEOF | |
23651 | @%:@define bits32_t int | |
23652 | _ACEOF | |
23653 | ||
23654 | fi | |
23655 | ||
23656 | fi | |
23657 | ||
23658 | ||
23659 | if test "$ac_cv_sizeof_int" = 4; then | |
dd4f3dd8 CR |
23660 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 |
23661 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
545f34cf | 23662 | if test "${ac_cv_type_u_bits32_t+set}" = set; then |
dd4f3dd8 | 23663 | $as_echo_n "(cached) " >&6 |
545f34cf | 23664 | else |
dd4f3dd8 CR |
23665 | ac_cv_type_u_bits32_t=no |
23666 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23667 | /* confdefs.h. */ |
23668 | _ACEOF | |
23669 | cat confdefs.h >>conftest.$ac_ext | |
23670 | cat >>conftest.$ac_ext <<_ACEOF | |
23671 | /* end confdefs.h. */ | |
23672 | $ac_includes_default | |
23673 | int | |
23674 | main () | |
23675 | { | |
dd4f3dd8 CR |
23676 | if (sizeof (u_bits32_t)) |
23677 | return 0; | |
545f34cf CR |
23678 | ; |
23679 | return 0; | |
23680 | } | |
23681 | _ACEOF | |
23682 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23683 | if { (ac_try="$ac_compile" |
23684 | case "(($ac_try" in | |
23685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23686 | *) ac_try_echo=$ac_try;; | |
23687 | esac | |
dd4f3dd8 CR |
23688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23689 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23690 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23691 | ac_status=$? |
a82a04b3 CR |
23692 | grep -v '^ *+' conftest.er1 >conftest.err |
23693 | rm -f conftest.er1 | |
23694 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23696 | (exit $ac_status); } && { | |
23697 | test -z "$ac_c_werror_flag" || | |
23698 | test ! -s conftest.err | |
23699 | } && test -s conftest.$ac_objext; then | |
23700 | cat >conftest.$ac_ext <<_ACEOF | |
23701 | /* confdefs.h. */ | |
23702 | _ACEOF | |
23703 | cat confdefs.h >>conftest.$ac_ext | |
23704 | cat >>conftest.$ac_ext <<_ACEOF | |
23705 | /* end confdefs.h. */ | |
23706 | $ac_includes_default | |
23707 | int | |
23708 | main () | |
23709 | { | |
23710 | if (sizeof ((u_bits32_t))) | |
23711 | return 0; | |
23712 | ; | |
23713 | return 0; | |
23714 | } | |
23715 | _ACEOF | |
23716 | rm -f conftest.$ac_objext | |
23717 | if { (ac_try="$ac_compile" | |
23718 | case "(($ac_try" in | |
2e4498b3 CR |
23719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23720 | *) ac_try_echo=$ac_try;; | |
23721 | esac | |
dd4f3dd8 CR |
23722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23723 | $as_echo "$ac_try_echo") >&5 | |
23724 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23725 | ac_status=$? |
dd4f3dd8 CR |
23726 | grep -v '^ *+' conftest.er1 >conftest.err |
23727 | rm -f conftest.er1 | |
23728 | cat conftest.err >&5 | |
23729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23730 | (exit $ac_status); } && { | |
23731 | test -z "$ac_c_werror_flag" || | |
23732 | test ! -s conftest.err | |
23733 | } && test -s conftest.$ac_objext; then | |
23734 | : | |
23735 | else | |
23736 | $as_echo "$as_me: failed program was:" >&5 | |
23737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23738 | ||
23739 | ac_cv_type_u_bits32_t=yes | |
23740 | fi | |
23741 | ||
23742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23743 | else |
dd4f3dd8 | 23744 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23745 | sed 's/^/| /' conftest.$ac_ext >&5 |
23746 | ||
dd4f3dd8 | 23747 | |
545f34cf | 23748 | fi |
d3ad40de CR |
23749 | |
23750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23751 | fi |
dd4f3dd8 CR |
23752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 |
23753 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
76af2125 | 23754 | if test $ac_cv_type_u_bits32_t = yes; then |
545f34cf CR |
23755 | : |
23756 | else | |
23757 | ||
23758 | cat >>confdefs.h <<_ACEOF | |
23759 | @%:@define u_bits32_t unsigned int | |
23760 | _ACEOF | |
23761 | ||
23762 | fi | |
23763 | ||
23764 | elif test "$ac_cv_sizeof_long" = 4; then | |
dd4f3dd8 CR |
23765 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 |
23766 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
545f34cf | 23767 | if test "${ac_cv_type_u_bits32_t+set}" = set; then |
dd4f3dd8 | 23768 | $as_echo_n "(cached) " >&6 |
545f34cf | 23769 | else |
dd4f3dd8 CR |
23770 | ac_cv_type_u_bits32_t=no |
23771 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23772 | /* confdefs.h. */ |
23773 | _ACEOF | |
23774 | cat confdefs.h >>conftest.$ac_ext | |
23775 | cat >>conftest.$ac_ext <<_ACEOF | |
23776 | /* end confdefs.h. */ | |
23777 | $ac_includes_default | |
23778 | int | |
23779 | main () | |
23780 | { | |
dd4f3dd8 CR |
23781 | if (sizeof (u_bits32_t)) |
23782 | return 0; | |
545f34cf CR |
23783 | ; |
23784 | return 0; | |
23785 | } | |
23786 | _ACEOF | |
23787 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23788 | if { (ac_try="$ac_compile" |
23789 | case "(($ac_try" in | |
23790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23791 | *) ac_try_echo=$ac_try;; | |
23792 | esac | |
dd4f3dd8 CR |
23793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23794 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23795 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23796 | ac_status=$? |
a82a04b3 CR |
23797 | grep -v '^ *+' conftest.er1 >conftest.err |
23798 | rm -f conftest.er1 | |
23799 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23801 | (exit $ac_status); } && { | |
23802 | test -z "$ac_c_werror_flag" || | |
23803 | test ! -s conftest.err | |
23804 | } && test -s conftest.$ac_objext; then | |
23805 | cat >conftest.$ac_ext <<_ACEOF | |
23806 | /* confdefs.h. */ | |
23807 | _ACEOF | |
23808 | cat confdefs.h >>conftest.$ac_ext | |
23809 | cat >>conftest.$ac_ext <<_ACEOF | |
23810 | /* end confdefs.h. */ | |
23811 | $ac_includes_default | |
23812 | int | |
23813 | main () | |
23814 | { | |
23815 | if (sizeof ((u_bits32_t))) | |
23816 | return 0; | |
23817 | ; | |
23818 | return 0; | |
23819 | } | |
23820 | _ACEOF | |
23821 | rm -f conftest.$ac_objext | |
23822 | if { (ac_try="$ac_compile" | |
23823 | case "(($ac_try" in | |
2e4498b3 CR |
23824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23825 | *) ac_try_echo=$ac_try;; | |
23826 | esac | |
dd4f3dd8 CR |
23827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23828 | $as_echo "$ac_try_echo") >&5 | |
23829 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23830 | ac_status=$? |
dd4f3dd8 CR |
23831 | grep -v '^ *+' conftest.er1 >conftest.err |
23832 | rm -f conftest.er1 | |
23833 | cat conftest.err >&5 | |
23834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23835 | (exit $ac_status); } && { | |
23836 | test -z "$ac_c_werror_flag" || | |
23837 | test ! -s conftest.err | |
23838 | } && test -s conftest.$ac_objext; then | |
23839 | : | |
23840 | else | |
23841 | $as_echo "$as_me: failed program was:" >&5 | |
23842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23843 | ||
23844 | ac_cv_type_u_bits32_t=yes | |
23845 | fi | |
23846 | ||
23847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23848 | else |
dd4f3dd8 | 23849 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23850 | sed 's/^/| /' conftest.$ac_ext >&5 |
23851 | ||
dd4f3dd8 | 23852 | |
545f34cf | 23853 | fi |
d3ad40de CR |
23854 | |
23855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 23856 | fi |
dd4f3dd8 CR |
23857 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 |
23858 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
76af2125 | 23859 | if test $ac_cv_type_u_bits32_t = yes; then |
545f34cf CR |
23860 | : |
23861 | else | |
23862 | ||
23863 | cat >>confdefs.h <<_ACEOF | |
23864 | @%:@define u_bits32_t unsigned long | |
23865 | _ACEOF | |
23866 | ||
23867 | fi | |
23868 | ||
23869 | else | |
dd4f3dd8 CR |
23870 | { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5 |
23871 | $as_echo_n "checking for u_bits32_t... " >&6; } | |
545f34cf | 23872 | if test "${ac_cv_type_u_bits32_t+set}" = set; then |
dd4f3dd8 | 23873 | $as_echo_n "(cached) " >&6 |
545f34cf | 23874 | else |
dd4f3dd8 CR |
23875 | ac_cv_type_u_bits32_t=no |
23876 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23877 | /* confdefs.h. */ |
23878 | _ACEOF | |
23879 | cat confdefs.h >>conftest.$ac_ext | |
23880 | cat >>conftest.$ac_ext <<_ACEOF | |
23881 | /* end confdefs.h. */ | |
23882 | $ac_includes_default | |
23883 | int | |
23884 | main () | |
23885 | { | |
dd4f3dd8 CR |
23886 | if (sizeof (u_bits32_t)) |
23887 | return 0; | |
545f34cf CR |
23888 | ; |
23889 | return 0; | |
23890 | } | |
23891 | _ACEOF | |
23892 | rm -f conftest.$ac_objext | |
d3ad40de CR |
23893 | if { (ac_try="$ac_compile" |
23894 | case "(($ac_try" in | |
23895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23896 | *) ac_try_echo=$ac_try;; | |
23897 | esac | |
dd4f3dd8 CR |
23898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23899 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 23900 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 23901 | ac_status=$? |
a82a04b3 CR |
23902 | grep -v '^ *+' conftest.er1 >conftest.err |
23903 | rm -f conftest.er1 | |
23904 | cat conftest.err >&5 | |
dd4f3dd8 CR |
23905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23906 | (exit $ac_status); } && { | |
23907 | test -z "$ac_c_werror_flag" || | |
23908 | test ! -s conftest.err | |
23909 | } && test -s conftest.$ac_objext; then | |
23910 | cat >conftest.$ac_ext <<_ACEOF | |
23911 | /* confdefs.h. */ | |
23912 | _ACEOF | |
23913 | cat confdefs.h >>conftest.$ac_ext | |
23914 | cat >>conftest.$ac_ext <<_ACEOF | |
23915 | /* end confdefs.h. */ | |
23916 | $ac_includes_default | |
23917 | int | |
23918 | main () | |
23919 | { | |
23920 | if (sizeof ((u_bits32_t))) | |
23921 | return 0; | |
23922 | ; | |
23923 | return 0; | |
23924 | } | |
23925 | _ACEOF | |
23926 | rm -f conftest.$ac_objext | |
23927 | if { (ac_try="$ac_compile" | |
23928 | case "(($ac_try" in | |
2e4498b3 CR |
23929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23930 | *) ac_try_echo=$ac_try;; | |
23931 | esac | |
dd4f3dd8 CR |
23932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
23933 | $as_echo "$ac_try_echo") >&5 | |
23934 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 23935 | ac_status=$? |
dd4f3dd8 CR |
23936 | grep -v '^ *+' conftest.er1 >conftest.err |
23937 | rm -f conftest.er1 | |
23938 | cat conftest.err >&5 | |
23939 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23940 | (exit $ac_status); } && { | |
23941 | test -z "$ac_c_werror_flag" || | |
23942 | test ! -s conftest.err | |
23943 | } && test -s conftest.$ac_objext; then | |
23944 | : | |
545f34cf | 23945 | else |
dd4f3dd8 | 23946 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
23947 | sed 's/^/| /' conftest.$ac_ext >&5 |
23948 | ||
dd4f3dd8 | 23949 | ac_cv_type_u_bits32_t=yes |
545f34cf | 23950 | fi |
d3ad40de CR |
23951 | |
23952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
23953 | else |
23954 | $as_echo "$as_me: failed program was:" >&5 | |
23955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23956 | ||
23957 | ||
545f34cf | 23958 | fi |
dd4f3dd8 CR |
23959 | |
23960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23961 | fi | |
23962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5 | |
23963 | $as_echo "$ac_cv_type_u_bits32_t" >&6; } | |
76af2125 | 23964 | if test $ac_cv_type_u_bits32_t = yes; then |
545f34cf CR |
23965 | : |
23966 | else | |
23967 | ||
23968 | cat >>confdefs.h <<_ACEOF | |
23969 | @%:@define u_bits32_t unsigned int | |
23970 | _ACEOF | |
23971 | ||
23972 | fi | |
23973 | ||
23974 | fi | |
23975 | ||
23976 | ||
23977 | if test "$ac_cv_sizeof_char_p" = 8; then | |
dd4f3dd8 CR |
23978 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 |
23979 | $as_echo_n "checking for bits64_t... " >&6; } | |
545f34cf | 23980 | if test "${ac_cv_type_bits64_t+set}" = set; then |
dd4f3dd8 | 23981 | $as_echo_n "(cached) " >&6 |
545f34cf | 23982 | else |
dd4f3dd8 CR |
23983 | ac_cv_type_bits64_t=no |
23984 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
23985 | /* confdefs.h. */ |
23986 | _ACEOF | |
23987 | cat confdefs.h >>conftest.$ac_ext | |
23988 | cat >>conftest.$ac_ext <<_ACEOF | |
23989 | /* end confdefs.h. */ | |
23990 | $ac_includes_default | |
23991 | int | |
23992 | main () | |
23993 | { | |
dd4f3dd8 CR |
23994 | if (sizeof (bits64_t)) |
23995 | return 0; | |
545f34cf CR |
23996 | ; |
23997 | return 0; | |
23998 | } | |
23999 | _ACEOF | |
24000 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24001 | if { (ac_try="$ac_compile" |
24002 | case "(($ac_try" in | |
24003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24004 | *) ac_try_echo=$ac_try;; | |
24005 | esac | |
dd4f3dd8 CR |
24006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24007 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24008 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24009 | ac_status=$? |
a82a04b3 CR |
24010 | grep -v '^ *+' conftest.er1 >conftest.err |
24011 | rm -f conftest.er1 | |
24012 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24014 | (exit $ac_status); } && { | |
24015 | test -z "$ac_c_werror_flag" || | |
24016 | test ! -s conftest.err | |
24017 | } && test -s conftest.$ac_objext; then | |
24018 | cat >conftest.$ac_ext <<_ACEOF | |
24019 | /* confdefs.h. */ | |
24020 | _ACEOF | |
24021 | cat confdefs.h >>conftest.$ac_ext | |
24022 | cat >>conftest.$ac_ext <<_ACEOF | |
24023 | /* end confdefs.h. */ | |
24024 | $ac_includes_default | |
24025 | int | |
24026 | main () | |
24027 | { | |
24028 | if (sizeof ((bits64_t))) | |
24029 | return 0; | |
24030 | ; | |
24031 | return 0; | |
24032 | } | |
24033 | _ACEOF | |
24034 | rm -f conftest.$ac_objext | |
24035 | if { (ac_try="$ac_compile" | |
24036 | case "(($ac_try" in | |
2e4498b3 CR |
24037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24038 | *) ac_try_echo=$ac_try;; | |
24039 | esac | |
dd4f3dd8 CR |
24040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24041 | $as_echo "$ac_try_echo") >&5 | |
24042 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24043 | ac_status=$? |
dd4f3dd8 CR |
24044 | grep -v '^ *+' conftest.er1 >conftest.err |
24045 | rm -f conftest.er1 | |
24046 | cat conftest.err >&5 | |
24047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24048 | (exit $ac_status); } && { | |
24049 | test -z "$ac_c_werror_flag" || | |
24050 | test ! -s conftest.err | |
24051 | } && test -s conftest.$ac_objext; then | |
24052 | : | |
24053 | else | |
24054 | $as_echo "$as_me: failed program was:" >&5 | |
24055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
545f34cf | 24056 | |
dd4f3dd8 | 24057 | ac_cv_type_bits64_t=yes |
545f34cf | 24058 | fi |
d3ad40de CR |
24059 | |
24060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
24061 | else |
24062 | $as_echo "$as_me: failed program was:" >&5 | |
24063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24064 | ||
24065 | ||
545f34cf | 24066 | fi |
dd4f3dd8 CR |
24067 | |
24068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24069 | fi | |
24070 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
24071 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
76af2125 | 24072 | if test $ac_cv_type_bits64_t = yes; then |
545f34cf CR |
24073 | : |
24074 | else | |
24075 | ||
24076 | cat >>confdefs.h <<_ACEOF | |
24077 | @%:@define bits64_t char * | |
24078 | _ACEOF | |
24079 | ||
24080 | fi | |
24081 | ||
24082 | elif test "$ac_cv_sizeof_double" = 8; then | |
dd4f3dd8 CR |
24083 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 |
24084 | $as_echo_n "checking for bits64_t... " >&6; } | |
545f34cf | 24085 | if test "${ac_cv_type_bits64_t+set}" = set; then |
dd4f3dd8 | 24086 | $as_echo_n "(cached) " >&6 |
545f34cf | 24087 | else |
dd4f3dd8 CR |
24088 | ac_cv_type_bits64_t=no |
24089 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24090 | /* confdefs.h. */ |
24091 | _ACEOF | |
24092 | cat confdefs.h >>conftest.$ac_ext | |
24093 | cat >>conftest.$ac_ext <<_ACEOF | |
24094 | /* end confdefs.h. */ | |
24095 | $ac_includes_default | |
24096 | int | |
24097 | main () | |
24098 | { | |
dd4f3dd8 CR |
24099 | if (sizeof (bits64_t)) |
24100 | return 0; | |
545f34cf CR |
24101 | ; |
24102 | return 0; | |
24103 | } | |
24104 | _ACEOF | |
24105 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24106 | if { (ac_try="$ac_compile" |
24107 | case "(($ac_try" in | |
24108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24109 | *) ac_try_echo=$ac_try;; | |
24110 | esac | |
dd4f3dd8 CR |
24111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24112 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24113 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24114 | ac_status=$? |
a82a04b3 CR |
24115 | grep -v '^ *+' conftest.er1 >conftest.err |
24116 | rm -f conftest.er1 | |
24117 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24119 | (exit $ac_status); } && { | |
24120 | test -z "$ac_c_werror_flag" || | |
24121 | test ! -s conftest.err | |
24122 | } && test -s conftest.$ac_objext; then | |
24123 | cat >conftest.$ac_ext <<_ACEOF | |
24124 | /* confdefs.h. */ | |
24125 | _ACEOF | |
24126 | cat confdefs.h >>conftest.$ac_ext | |
24127 | cat >>conftest.$ac_ext <<_ACEOF | |
24128 | /* end confdefs.h. */ | |
24129 | $ac_includes_default | |
24130 | int | |
24131 | main () | |
24132 | { | |
24133 | if (sizeof ((bits64_t))) | |
24134 | return 0; | |
24135 | ; | |
24136 | return 0; | |
24137 | } | |
24138 | _ACEOF | |
24139 | rm -f conftest.$ac_objext | |
24140 | if { (ac_try="$ac_compile" | |
24141 | case "(($ac_try" in | |
2e4498b3 CR |
24142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24143 | *) ac_try_echo=$ac_try;; | |
24144 | esac | |
dd4f3dd8 CR |
24145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24146 | $as_echo "$ac_try_echo") >&5 | |
24147 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24148 | ac_status=$? |
dd4f3dd8 CR |
24149 | grep -v '^ *+' conftest.er1 >conftest.err |
24150 | rm -f conftest.er1 | |
24151 | cat conftest.err >&5 | |
24152 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24153 | (exit $ac_status); } && { | |
24154 | test -z "$ac_c_werror_flag" || | |
24155 | test ! -s conftest.err | |
24156 | } && test -s conftest.$ac_objext; then | |
24157 | : | |
545f34cf | 24158 | else |
dd4f3dd8 | 24159 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24160 | sed 's/^/| /' conftest.$ac_ext >&5 |
24161 | ||
dd4f3dd8 | 24162 | ac_cv_type_bits64_t=yes |
545f34cf | 24163 | fi |
d3ad40de CR |
24164 | |
24165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
24166 | else |
24167 | $as_echo "$as_me: failed program was:" >&5 | |
24168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24169 | ||
24170 | ||
545f34cf | 24171 | fi |
dd4f3dd8 CR |
24172 | |
24173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24174 | fi | |
24175 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
24176 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
76af2125 | 24177 | if test $ac_cv_type_bits64_t = yes; then |
545f34cf CR |
24178 | : |
24179 | else | |
24180 | ||
24181 | cat >>confdefs.h <<_ACEOF | |
24182 | @%:@define bits64_t double | |
24183 | _ACEOF | |
24184 | ||
24185 | fi | |
24186 | ||
24187 | elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then | |
dd4f3dd8 CR |
24188 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 |
24189 | $as_echo_n "checking for bits64_t... " >&6; } | |
545f34cf | 24190 | if test "${ac_cv_type_bits64_t+set}" = set; then |
dd4f3dd8 | 24191 | $as_echo_n "(cached) " >&6 |
545f34cf | 24192 | else |
dd4f3dd8 CR |
24193 | ac_cv_type_bits64_t=no |
24194 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24195 | /* confdefs.h. */ |
24196 | _ACEOF | |
24197 | cat confdefs.h >>conftest.$ac_ext | |
24198 | cat >>conftest.$ac_ext <<_ACEOF | |
24199 | /* end confdefs.h. */ | |
24200 | $ac_includes_default | |
24201 | int | |
24202 | main () | |
24203 | { | |
dd4f3dd8 CR |
24204 | if (sizeof (bits64_t)) |
24205 | return 0; | |
545f34cf CR |
24206 | ; |
24207 | return 0; | |
24208 | } | |
24209 | _ACEOF | |
24210 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24211 | if { (ac_try="$ac_compile" |
24212 | case "(($ac_try" in | |
24213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24214 | *) ac_try_echo=$ac_try;; | |
24215 | esac | |
dd4f3dd8 CR |
24216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24217 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24218 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24219 | ac_status=$? |
a82a04b3 CR |
24220 | grep -v '^ *+' conftest.er1 >conftest.err |
24221 | rm -f conftest.er1 | |
24222 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24224 | (exit $ac_status); } && { | |
24225 | test -z "$ac_c_werror_flag" || | |
24226 | test ! -s conftest.err | |
24227 | } && test -s conftest.$ac_objext; then | |
24228 | cat >conftest.$ac_ext <<_ACEOF | |
24229 | /* confdefs.h. */ | |
24230 | _ACEOF | |
24231 | cat confdefs.h >>conftest.$ac_ext | |
24232 | cat >>conftest.$ac_ext <<_ACEOF | |
24233 | /* end confdefs.h. */ | |
24234 | $ac_includes_default | |
24235 | int | |
24236 | main () | |
24237 | { | |
24238 | if (sizeof ((bits64_t))) | |
24239 | return 0; | |
24240 | ; | |
24241 | return 0; | |
24242 | } | |
24243 | _ACEOF | |
24244 | rm -f conftest.$ac_objext | |
24245 | if { (ac_try="$ac_compile" | |
24246 | case "(($ac_try" in | |
2e4498b3 CR |
24247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24248 | *) ac_try_echo=$ac_try;; | |
24249 | esac | |
dd4f3dd8 CR |
24250 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24251 | $as_echo "$ac_try_echo") >&5 | |
24252 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24253 | ac_status=$? |
dd4f3dd8 CR |
24254 | grep -v '^ *+' conftest.er1 >conftest.err |
24255 | rm -f conftest.er1 | |
24256 | cat conftest.err >&5 | |
24257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24258 | (exit $ac_status); } && { | |
24259 | test -z "$ac_c_werror_flag" || | |
24260 | test ! -s conftest.err | |
24261 | } && test -s conftest.$ac_objext; then | |
24262 | : | |
545f34cf | 24263 | else |
dd4f3dd8 | 24264 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24265 | sed 's/^/| /' conftest.$ac_ext >&5 |
24266 | ||
dd4f3dd8 | 24267 | ac_cv_type_bits64_t=yes |
545f34cf | 24268 | fi |
d3ad40de CR |
24269 | |
24270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
24271 | else |
24272 | $as_echo "$as_me: failed program was:" >&5 | |
24273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24274 | ||
24275 | ||
545f34cf | 24276 | fi |
dd4f3dd8 CR |
24277 | |
24278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24279 | fi | |
24280 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
24281 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
76af2125 | 24282 | if test $ac_cv_type_bits64_t = yes; then |
545f34cf CR |
24283 | : |
24284 | else | |
24285 | ||
24286 | cat >>confdefs.h <<_ACEOF | |
24287 | @%:@define bits64_t long long | |
24288 | _ACEOF | |
24289 | ||
24290 | fi | |
24291 | ||
24292 | elif test "$ac_cv_sizeof_long" = 8; then | |
dd4f3dd8 CR |
24293 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 |
24294 | $as_echo_n "checking for bits64_t... " >&6; } | |
545f34cf | 24295 | if test "${ac_cv_type_bits64_t+set}" = set; then |
dd4f3dd8 | 24296 | $as_echo_n "(cached) " >&6 |
545f34cf | 24297 | else |
dd4f3dd8 CR |
24298 | ac_cv_type_bits64_t=no |
24299 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24300 | /* confdefs.h. */ |
24301 | _ACEOF | |
24302 | cat confdefs.h >>conftest.$ac_ext | |
24303 | cat >>conftest.$ac_ext <<_ACEOF | |
24304 | /* end confdefs.h. */ | |
24305 | $ac_includes_default | |
24306 | int | |
24307 | main () | |
24308 | { | |
dd4f3dd8 CR |
24309 | if (sizeof (bits64_t)) |
24310 | return 0; | |
545f34cf CR |
24311 | ; |
24312 | return 0; | |
24313 | } | |
24314 | _ACEOF | |
24315 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24316 | if { (ac_try="$ac_compile" |
24317 | case "(($ac_try" in | |
24318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24319 | *) ac_try_echo=$ac_try;; | |
24320 | esac | |
dd4f3dd8 CR |
24321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24322 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24323 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24324 | ac_status=$? |
a82a04b3 CR |
24325 | grep -v '^ *+' conftest.er1 >conftest.err |
24326 | rm -f conftest.er1 | |
24327 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24329 | (exit $ac_status); } && { | |
24330 | test -z "$ac_c_werror_flag" || | |
24331 | test ! -s conftest.err | |
24332 | } && test -s conftest.$ac_objext; then | |
24333 | cat >conftest.$ac_ext <<_ACEOF | |
24334 | /* confdefs.h. */ | |
24335 | _ACEOF | |
24336 | cat confdefs.h >>conftest.$ac_ext | |
24337 | cat >>conftest.$ac_ext <<_ACEOF | |
24338 | /* end confdefs.h. */ | |
24339 | $ac_includes_default | |
24340 | int | |
24341 | main () | |
24342 | { | |
24343 | if (sizeof ((bits64_t))) | |
24344 | return 0; | |
24345 | ; | |
24346 | return 0; | |
24347 | } | |
24348 | _ACEOF | |
24349 | rm -f conftest.$ac_objext | |
24350 | if { (ac_try="$ac_compile" | |
24351 | case "(($ac_try" in | |
2e4498b3 CR |
24352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24353 | *) ac_try_echo=$ac_try;; | |
24354 | esac | |
dd4f3dd8 CR |
24355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24356 | $as_echo "$ac_try_echo") >&5 | |
24357 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24358 | ac_status=$? |
dd4f3dd8 CR |
24359 | grep -v '^ *+' conftest.er1 >conftest.err |
24360 | rm -f conftest.er1 | |
24361 | cat conftest.err >&5 | |
24362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24363 | (exit $ac_status); } && { | |
24364 | test -z "$ac_c_werror_flag" || | |
24365 | test ! -s conftest.err | |
24366 | } && test -s conftest.$ac_objext; then | |
24367 | : | |
545f34cf | 24368 | else |
dd4f3dd8 | 24369 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24370 | sed 's/^/| /' conftest.$ac_ext >&5 |
24371 | ||
dd4f3dd8 | 24372 | ac_cv_type_bits64_t=yes |
545f34cf | 24373 | fi |
d3ad40de CR |
24374 | |
24375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
24376 | else |
24377 | $as_echo "$as_me: failed program was:" >&5 | |
24378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24379 | ||
24380 | ||
545f34cf | 24381 | fi |
dd4f3dd8 CR |
24382 | |
24383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24384 | fi | |
24385 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
24386 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
76af2125 | 24387 | if test $ac_cv_type_bits64_t = yes; then |
545f34cf CR |
24388 | : |
24389 | else | |
24390 | ||
24391 | cat >>confdefs.h <<_ACEOF | |
24392 | @%:@define bits64_t long | |
24393 | _ACEOF | |
24394 | ||
24395 | fi | |
24396 | ||
24397 | else | |
dd4f3dd8 CR |
24398 | { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5 |
24399 | $as_echo_n "checking for bits64_t... " >&6; } | |
545f34cf | 24400 | if test "${ac_cv_type_bits64_t+set}" = set; then |
dd4f3dd8 | 24401 | $as_echo_n "(cached) " >&6 |
545f34cf | 24402 | else |
dd4f3dd8 CR |
24403 | ac_cv_type_bits64_t=no |
24404 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24405 | /* confdefs.h. */ |
24406 | _ACEOF | |
24407 | cat confdefs.h >>conftest.$ac_ext | |
24408 | cat >>conftest.$ac_ext <<_ACEOF | |
24409 | /* end confdefs.h. */ | |
24410 | $ac_includes_default | |
24411 | int | |
24412 | main () | |
24413 | { | |
dd4f3dd8 CR |
24414 | if (sizeof (bits64_t)) |
24415 | return 0; | |
545f34cf CR |
24416 | ; |
24417 | return 0; | |
24418 | } | |
24419 | _ACEOF | |
24420 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24421 | if { (ac_try="$ac_compile" |
24422 | case "(($ac_try" in | |
24423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24424 | *) ac_try_echo=$ac_try;; | |
24425 | esac | |
dd4f3dd8 CR |
24426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24427 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24428 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24429 | ac_status=$? |
a82a04b3 CR |
24430 | grep -v '^ *+' conftest.er1 >conftest.err |
24431 | rm -f conftest.er1 | |
24432 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24434 | (exit $ac_status); } && { | |
24435 | test -z "$ac_c_werror_flag" || | |
24436 | test ! -s conftest.err | |
24437 | } && test -s conftest.$ac_objext; then | |
24438 | cat >conftest.$ac_ext <<_ACEOF | |
24439 | /* confdefs.h. */ | |
24440 | _ACEOF | |
24441 | cat confdefs.h >>conftest.$ac_ext | |
24442 | cat >>conftest.$ac_ext <<_ACEOF | |
24443 | /* end confdefs.h. */ | |
24444 | $ac_includes_default | |
24445 | int | |
24446 | main () | |
24447 | { | |
24448 | if (sizeof ((bits64_t))) | |
24449 | return 0; | |
24450 | ; | |
24451 | return 0; | |
24452 | } | |
24453 | _ACEOF | |
24454 | rm -f conftest.$ac_objext | |
24455 | if { (ac_try="$ac_compile" | |
24456 | case "(($ac_try" in | |
2e4498b3 CR |
24457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24458 | *) ac_try_echo=$ac_try;; | |
24459 | esac | |
dd4f3dd8 CR |
24460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24461 | $as_echo "$ac_try_echo") >&5 | |
24462 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24463 | ac_status=$? |
dd4f3dd8 CR |
24464 | grep -v '^ *+' conftest.er1 >conftest.err |
24465 | rm -f conftest.er1 | |
24466 | cat conftest.err >&5 | |
24467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24468 | (exit $ac_status); } && { | |
24469 | test -z "$ac_c_werror_flag" || | |
24470 | test ! -s conftest.err | |
24471 | } && test -s conftest.$ac_objext; then | |
24472 | : | |
545f34cf | 24473 | else |
dd4f3dd8 | 24474 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24475 | sed 's/^/| /' conftest.$ac_ext >&5 |
24476 | ||
dd4f3dd8 | 24477 | ac_cv_type_bits64_t=yes |
545f34cf | 24478 | fi |
d3ad40de CR |
24479 | |
24480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
24481 | else |
24482 | $as_echo "$as_me: failed program was:" >&5 | |
24483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24484 | ||
24485 | ||
545f34cf | 24486 | fi |
dd4f3dd8 CR |
24487 | |
24488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24489 | fi | |
24490 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5 | |
24491 | $as_echo "$ac_cv_type_bits64_t" >&6; } | |
76af2125 | 24492 | if test $ac_cv_type_bits64_t = yes; then |
545f34cf CR |
24493 | : |
24494 | else | |
24495 | ||
24496 | cat >>confdefs.h <<_ACEOF | |
24497 | @%:@define bits64_t double | |
24498 | _ACEOF | |
24499 | ||
24500 | fi | |
24501 | ||
24502 | fi | |
24503 | ||
24504 | ||
24505 | ||
24506 | if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then | |
dd4f3dd8 CR |
24507 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24508 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
545f34cf | 24509 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
dd4f3dd8 | 24510 | $as_echo_n "(cached) " >&6 |
545f34cf | 24511 | else |
dd4f3dd8 CR |
24512 | ac_cv_type_ptrdiff_t=no |
24513 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24514 | /* confdefs.h. */ |
24515 | _ACEOF | |
24516 | cat confdefs.h >>conftest.$ac_ext | |
24517 | cat >>conftest.$ac_ext <<_ACEOF | |
24518 | /* end confdefs.h. */ | |
24519 | $ac_includes_default | |
24520 | int | |
24521 | main () | |
24522 | { | |
dd4f3dd8 CR |
24523 | if (sizeof (ptrdiff_t)) |
24524 | return 0; | |
545f34cf CR |
24525 | ; |
24526 | return 0; | |
24527 | } | |
24528 | _ACEOF | |
24529 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24530 | if { (ac_try="$ac_compile" |
24531 | case "(($ac_try" in | |
24532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24533 | *) ac_try_echo=$ac_try;; | |
24534 | esac | |
dd4f3dd8 CR |
24535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24536 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24537 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24538 | ac_status=$? |
a82a04b3 CR |
24539 | grep -v '^ *+' conftest.er1 >conftest.err |
24540 | rm -f conftest.er1 | |
24541 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24543 | (exit $ac_status); } && { | |
24544 | test -z "$ac_c_werror_flag" || | |
24545 | test ! -s conftest.err | |
24546 | } && test -s conftest.$ac_objext; then | |
24547 | cat >conftest.$ac_ext <<_ACEOF | |
24548 | /* confdefs.h. */ | |
24549 | _ACEOF | |
24550 | cat confdefs.h >>conftest.$ac_ext | |
24551 | cat >>conftest.$ac_ext <<_ACEOF | |
24552 | /* end confdefs.h. */ | |
24553 | $ac_includes_default | |
24554 | int | |
24555 | main () | |
24556 | { | |
24557 | if (sizeof ((ptrdiff_t))) | |
24558 | return 0; | |
24559 | ; | |
24560 | return 0; | |
24561 | } | |
24562 | _ACEOF | |
24563 | rm -f conftest.$ac_objext | |
24564 | if { (ac_try="$ac_compile" | |
24565 | case "(($ac_try" in | |
2e4498b3 CR |
24566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24567 | *) ac_try_echo=$ac_try;; | |
24568 | esac | |
dd4f3dd8 CR |
24569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24570 | $as_echo "$ac_try_echo") >&5 | |
24571 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24572 | ac_status=$? |
dd4f3dd8 CR |
24573 | grep -v '^ *+' conftest.er1 >conftest.err |
24574 | rm -f conftest.er1 | |
24575 | cat conftest.err >&5 | |
24576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24577 | (exit $ac_status); } && { | |
24578 | test -z "$ac_c_werror_flag" || | |
24579 | test ! -s conftest.err | |
24580 | } && test -s conftest.$ac_objext; then | |
24581 | : | |
545f34cf | 24582 | else |
dd4f3dd8 | 24583 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24584 | sed 's/^/| /' conftest.$ac_ext >&5 |
24585 | ||
dd4f3dd8 | 24586 | ac_cv_type_ptrdiff_t=yes |
545f34cf | 24587 | fi |
d3ad40de CR |
24588 | |
24589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
24590 | else |
24591 | $as_echo "$as_me: failed program was:" >&5 | |
24592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24593 | ||
24594 | ||
545f34cf | 24595 | fi |
dd4f3dd8 CR |
24596 | |
24597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24598 | fi | |
24599 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 | |
24600 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
76af2125 | 24601 | if test $ac_cv_type_ptrdiff_t = yes; then |
545f34cf CR |
24602 | : |
24603 | else | |
24604 | ||
24605 | cat >>confdefs.h <<_ACEOF | |
24606 | @%:@define ptrdiff_t int | |
24607 | _ACEOF | |
24608 | ||
24609 | fi | |
24610 | ||
24611 | elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then | |
dd4f3dd8 CR |
24612 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24613 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
545f34cf | 24614 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
dd4f3dd8 | 24615 | $as_echo_n "(cached) " >&6 |
545f34cf | 24616 | else |
dd4f3dd8 CR |
24617 | ac_cv_type_ptrdiff_t=no |
24618 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24619 | /* confdefs.h. */ |
24620 | _ACEOF | |
24621 | cat confdefs.h >>conftest.$ac_ext | |
24622 | cat >>conftest.$ac_ext <<_ACEOF | |
24623 | /* end confdefs.h. */ | |
24624 | $ac_includes_default | |
24625 | int | |
24626 | main () | |
24627 | { | |
dd4f3dd8 CR |
24628 | if (sizeof (ptrdiff_t)) |
24629 | return 0; | |
545f34cf CR |
24630 | ; |
24631 | return 0; | |
24632 | } | |
24633 | _ACEOF | |
24634 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24635 | if { (ac_try="$ac_compile" |
24636 | case "(($ac_try" in | |
24637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24638 | *) ac_try_echo=$ac_try;; | |
24639 | esac | |
dd4f3dd8 CR |
24640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24641 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24642 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24643 | ac_status=$? |
a82a04b3 CR |
24644 | grep -v '^ *+' conftest.er1 >conftest.err |
24645 | rm -f conftest.er1 | |
24646 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24648 | (exit $ac_status); } && { | |
24649 | test -z "$ac_c_werror_flag" || | |
24650 | test ! -s conftest.err | |
24651 | } && test -s conftest.$ac_objext; then | |
24652 | cat >conftest.$ac_ext <<_ACEOF | |
24653 | /* confdefs.h. */ | |
24654 | _ACEOF | |
24655 | cat confdefs.h >>conftest.$ac_ext | |
24656 | cat >>conftest.$ac_ext <<_ACEOF | |
24657 | /* end confdefs.h. */ | |
24658 | $ac_includes_default | |
24659 | int | |
24660 | main () | |
24661 | { | |
24662 | if (sizeof ((ptrdiff_t))) | |
24663 | return 0; | |
24664 | ; | |
24665 | return 0; | |
24666 | } | |
24667 | _ACEOF | |
24668 | rm -f conftest.$ac_objext | |
24669 | if { (ac_try="$ac_compile" | |
24670 | case "(($ac_try" in | |
2e4498b3 CR |
24671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24672 | *) ac_try_echo=$ac_try;; | |
24673 | esac | |
dd4f3dd8 CR |
24674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24675 | $as_echo "$ac_try_echo") >&5 | |
24676 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24677 | ac_status=$? |
dd4f3dd8 CR |
24678 | grep -v '^ *+' conftest.er1 >conftest.err |
24679 | rm -f conftest.er1 | |
24680 | cat conftest.err >&5 | |
24681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24682 | (exit $ac_status); } && { | |
24683 | test -z "$ac_c_werror_flag" || | |
24684 | test ! -s conftest.err | |
24685 | } && test -s conftest.$ac_objext; then | |
24686 | : | |
545f34cf | 24687 | else |
dd4f3dd8 | 24688 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24689 | sed 's/^/| /' conftest.$ac_ext >&5 |
24690 | ||
dd4f3dd8 CR |
24691 | ac_cv_type_ptrdiff_t=yes |
24692 | fi | |
24693 | ||
24694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24695 | else | |
24696 | $as_echo "$as_me: failed program was:" >&5 | |
24697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24698 | ||
24699 | ||
545f34cf | 24700 | fi |
d3ad40de CR |
24701 | |
24702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 24703 | fi |
dd4f3dd8 CR |
24704 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
24705 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
76af2125 | 24706 | if test $ac_cv_type_ptrdiff_t = yes; then |
545f34cf CR |
24707 | : |
24708 | else | |
24709 | ||
24710 | cat >>confdefs.h <<_ACEOF | |
24711 | @%:@define ptrdiff_t long | |
24712 | _ACEOF | |
24713 | ||
24714 | fi | |
24715 | ||
24716 | elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then | |
dd4f3dd8 CR |
24717 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24718 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
545f34cf | 24719 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
dd4f3dd8 | 24720 | $as_echo_n "(cached) " >&6 |
545f34cf | 24721 | else |
dd4f3dd8 CR |
24722 | ac_cv_type_ptrdiff_t=no |
24723 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24724 | /* confdefs.h. */ |
24725 | _ACEOF | |
24726 | cat confdefs.h >>conftest.$ac_ext | |
24727 | cat >>conftest.$ac_ext <<_ACEOF | |
24728 | /* end confdefs.h. */ | |
24729 | $ac_includes_default | |
24730 | int | |
24731 | main () | |
24732 | { | |
dd4f3dd8 CR |
24733 | if (sizeof (ptrdiff_t)) |
24734 | return 0; | |
545f34cf CR |
24735 | ; |
24736 | return 0; | |
24737 | } | |
24738 | _ACEOF | |
24739 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24740 | if { (ac_try="$ac_compile" |
24741 | case "(($ac_try" in | |
24742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24743 | *) ac_try_echo=$ac_try;; | |
24744 | esac | |
dd4f3dd8 CR |
24745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24746 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24747 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24748 | ac_status=$? |
a82a04b3 CR |
24749 | grep -v '^ *+' conftest.er1 >conftest.err |
24750 | rm -f conftest.er1 | |
24751 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24753 | (exit $ac_status); } && { | |
24754 | test -z "$ac_c_werror_flag" || | |
24755 | test ! -s conftest.err | |
24756 | } && test -s conftest.$ac_objext; then | |
24757 | cat >conftest.$ac_ext <<_ACEOF | |
24758 | /* confdefs.h. */ | |
24759 | _ACEOF | |
24760 | cat confdefs.h >>conftest.$ac_ext | |
24761 | cat >>conftest.$ac_ext <<_ACEOF | |
24762 | /* end confdefs.h. */ | |
24763 | $ac_includes_default | |
24764 | int | |
24765 | main () | |
24766 | { | |
24767 | if (sizeof ((ptrdiff_t))) | |
24768 | return 0; | |
24769 | ; | |
24770 | return 0; | |
24771 | } | |
24772 | _ACEOF | |
24773 | rm -f conftest.$ac_objext | |
24774 | if { (ac_try="$ac_compile" | |
24775 | case "(($ac_try" in | |
2e4498b3 CR |
24776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24777 | *) ac_try_echo=$ac_try;; | |
24778 | esac | |
dd4f3dd8 CR |
24779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24780 | $as_echo "$ac_try_echo") >&5 | |
24781 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 24782 | ac_status=$? |
dd4f3dd8 CR |
24783 | grep -v '^ *+' conftest.er1 >conftest.err |
24784 | rm -f conftest.er1 | |
24785 | cat conftest.err >&5 | |
24786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24787 | (exit $ac_status); } && { | |
24788 | test -z "$ac_c_werror_flag" || | |
24789 | test ! -s conftest.err | |
24790 | } && test -s conftest.$ac_objext; then | |
24791 | : | |
545f34cf | 24792 | else |
dd4f3dd8 | 24793 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24794 | sed 's/^/| /' conftest.$ac_ext >&5 |
24795 | ||
dd4f3dd8 CR |
24796 | ac_cv_type_ptrdiff_t=yes |
24797 | fi | |
24798 | ||
24799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24800 | else | |
24801 | $as_echo "$as_me: failed program was:" >&5 | |
24802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24803 | ||
24804 | ||
545f34cf | 24805 | fi |
d3ad40de CR |
24806 | |
24807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 24808 | fi |
dd4f3dd8 CR |
24809 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
24810 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
76af2125 | 24811 | if test $ac_cv_type_ptrdiff_t = yes; then |
545f34cf CR |
24812 | : |
24813 | else | |
24814 | ||
24815 | cat >>confdefs.h <<_ACEOF | |
24816 | @%:@define ptrdiff_t long long | |
24817 | _ACEOF | |
24818 | ||
24819 | fi | |
24820 | ||
24821 | else | |
dd4f3dd8 CR |
24822 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
24823 | $as_echo_n "checking for ptrdiff_t... " >&6; } | |
545f34cf | 24824 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
dd4f3dd8 | 24825 | $as_echo_n "(cached) " >&6 |
545f34cf | 24826 | else |
dd4f3dd8 CR |
24827 | ac_cv_type_ptrdiff_t=no |
24828 | cat >conftest.$ac_ext <<_ACEOF | |
24829 | /* confdefs.h. */ | |
24830 | _ACEOF | |
24831 | cat confdefs.h >>conftest.$ac_ext | |
24832 | cat >>conftest.$ac_ext <<_ACEOF | |
24833 | /* end confdefs.h. */ | |
24834 | $ac_includes_default | |
24835 | int | |
24836 | main () | |
24837 | { | |
24838 | if (sizeof (ptrdiff_t)) | |
24839 | return 0; | |
24840 | ; | |
24841 | return 0; | |
24842 | } | |
24843 | _ACEOF | |
24844 | rm -f conftest.$ac_objext | |
24845 | if { (ac_try="$ac_compile" | |
24846 | case "(($ac_try" in | |
24847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24848 | *) ac_try_echo=$ac_try;; | |
24849 | esac | |
24850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24851 | $as_echo "$ac_try_echo") >&5 | |
24852 | (eval "$ac_compile") 2>conftest.er1 | |
24853 | ac_status=$? | |
24854 | grep -v '^ *+' conftest.er1 >conftest.err | |
24855 | rm -f conftest.er1 | |
24856 | cat conftest.err >&5 | |
24857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24858 | (exit $ac_status); } && { | |
24859 | test -z "$ac_c_werror_flag" || | |
24860 | test ! -s conftest.err | |
24861 | } && test -s conftest.$ac_objext; then | |
545f34cf | 24862 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
24863 | /* confdefs.h. */ |
24864 | _ACEOF | |
24865 | cat confdefs.h >>conftest.$ac_ext | |
24866 | cat >>conftest.$ac_ext <<_ACEOF | |
24867 | /* end confdefs.h. */ | |
24868 | $ac_includes_default | |
24869 | int | |
24870 | main () | |
24871 | { | |
dd4f3dd8 CR |
24872 | if (sizeof ((ptrdiff_t))) |
24873 | return 0; | |
545f34cf CR |
24874 | ; |
24875 | return 0; | |
24876 | } | |
24877 | _ACEOF | |
24878 | rm -f conftest.$ac_objext | |
d3ad40de CR |
24879 | if { (ac_try="$ac_compile" |
24880 | case "(($ac_try" in | |
24881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24882 | *) ac_try_echo=$ac_try;; | |
24883 | esac | |
dd4f3dd8 CR |
24884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
24885 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 24886 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 24887 | ac_status=$? |
a82a04b3 CR |
24888 | grep -v '^ *+' conftest.er1 >conftest.err |
24889 | rm -f conftest.er1 | |
24890 | cat conftest.err >&5 | |
dd4f3dd8 CR |
24891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24892 | (exit $ac_status); } && { | |
24893 | test -z "$ac_c_werror_flag" || | |
24894 | test ! -s conftest.err | |
24895 | } && test -s conftest.$ac_objext; then | |
24896 | : | |
545f34cf | 24897 | else |
dd4f3dd8 | 24898 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
24899 | sed 's/^/| /' conftest.$ac_ext >&5 |
24900 | ||
dd4f3dd8 | 24901 | ac_cv_type_ptrdiff_t=yes |
545f34cf | 24902 | fi |
d3ad40de CR |
24903 | |
24904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dd4f3dd8 CR |
24905 | else |
24906 | $as_echo "$as_me: failed program was:" >&5 | |
24907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24908 | ||
24909 | ||
545f34cf | 24910 | fi |
dd4f3dd8 CR |
24911 | |
24912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24913 | fi | |
24914 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 | |
24915 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } | |
76af2125 | 24916 | if test $ac_cv_type_ptrdiff_t = yes; then |
545f34cf CR |
24917 | : |
24918 | else | |
24919 | ||
24920 | cat >>confdefs.h <<_ACEOF | |
24921 | @%:@define ptrdiff_t int | |
24922 | _ACEOF | |
24923 | ||
24924 | fi | |
24925 | ||
24926 | fi | |
24927 | ||
24928 | ||
dd4f3dd8 CR |
24929 | { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
24930 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
545f34cf | 24931 | if test "${ac_cv_header_stat_broken+set}" = set; then |
dd4f3dd8 | 24932 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
24933 | else |
24934 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
24935 | /* confdefs.h. */ |
24936 | _ACEOF | |
24937 | cat confdefs.h >>conftest.$ac_ext | |
24938 | cat >>conftest.$ac_ext <<_ACEOF | |
24939 | /* end confdefs.h. */ | |
24940 | #include <sys/types.h> | |
24941 | #include <sys/stat.h> | |
24942 | ||
d3ad40de | 24943 | #if defined S_ISBLK && defined S_IFDIR |
dd4f3dd8 | 24944 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
545f34cf CR |
24945 | #endif |
24946 | ||
d3ad40de | 24947 | #if defined S_ISBLK && defined S_IFCHR |
dd4f3dd8 | 24948 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
545f34cf CR |
24949 | #endif |
24950 | ||
d3ad40de | 24951 | #if defined S_ISLNK && defined S_IFREG |
dd4f3dd8 | 24952 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
545f34cf CR |
24953 | #endif |
24954 | ||
d3ad40de | 24955 | #if defined S_ISSOCK && defined S_IFREG |
dd4f3dd8 | 24956 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
545f34cf CR |
24957 | #endif |
24958 | ||
24959 | _ACEOF | |
dd4f3dd8 CR |
24960 | rm -f conftest.$ac_objext |
24961 | if { (ac_try="$ac_compile" | |
24962 | case "(($ac_try" in | |
24963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24964 | *) ac_try_echo=$ac_try;; | |
24965 | esac | |
24966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24967 | $as_echo "$ac_try_echo") >&5 | |
24968 | (eval "$ac_compile") 2>conftest.er1 | |
24969 | ac_status=$? | |
24970 | grep -v '^ *+' conftest.er1 >conftest.err | |
24971 | rm -f conftest.er1 | |
24972 | cat conftest.err >&5 | |
24973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24974 | (exit $ac_status); } && { | |
24975 | test -z "$ac_c_werror_flag" || | |
24976 | test ! -s conftest.err | |
24977 | } && test -s conftest.$ac_objext; then | |
2e4498b3 | 24978 | ac_cv_header_stat_broken=no |
dd4f3dd8 CR |
24979 | else |
24980 | $as_echo "$as_me: failed program was:" >&5 | |
24981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24982 | ||
24983 | ac_cv_header_stat_broken=yes | |
545f34cf | 24984 | fi |
545f34cf | 24985 | |
dd4f3dd8 | 24986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
545f34cf | 24987 | fi |
dd4f3dd8 CR |
24988 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
24989 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
545f34cf CR |
24990 | if test $ac_cv_header_stat_broken = yes; then |
24991 | ||
24992 | cat >>confdefs.h <<\_ACEOF | |
24993 | @%:@define STAT_MACROS_BROKEN 1 | |
24994 | _ACEOF | |
24995 | ||
24996 | fi | |
24997 | ||
24998 | ||
dd4f3dd8 CR |
24999 | { $as_echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5 |
25000 | $as_echo_n "checking whether @%:@! works in shell scripts... " >&6; } | |
545f34cf | 25001 | if test "${ac_cv_sys_interpreter+set}" = set; then |
dd4f3dd8 | 25002 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25003 | else |
25004 | echo '#! /bin/cat | |
25005 | exit 69 | |
25006 | ' >conftest | |
25007 | chmod u+x conftest | |
dd4f3dd8 | 25008 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
545f34cf CR |
25009 | if test $? -ne 69; then |
25010 | ac_cv_sys_interpreter=yes | |
25011 | else | |
25012 | ac_cv_sys_interpreter=no | |
25013 | fi | |
25014 | rm -f conftest | |
25015 | fi | |
dd4f3dd8 CR |
25016 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5 |
25017 | $as_echo "$ac_cv_sys_interpreter" >&6; } | |
545f34cf CR |
25018 | interpval=$ac_cv_sys_interpreter |
25019 | ||
25020 | if test $ac_cv_sys_interpreter = yes; then | |
25021 | cat >>confdefs.h <<\_ACEOF | |
25022 | @%:@define HAVE_HASH_BANG_EXEC 1 | |
25023 | _ACEOF | |
25024 | ||
25025 | fi | |
25026 | ||
25027 | if test "$ac_cv_func_lstat" = "no"; then | |
dd4f3dd8 CR |
25028 | { $as_echo "$as_me:$LINENO: checking for lstat" >&5 |
25029 | $as_echo_n "checking for lstat... " >&6; } | |
545f34cf | 25030 | if test "${bash_cv_func_lstat+set}" = set; then |
dd4f3dd8 | 25031 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25032 | else |
25033 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25034 | /* confdefs.h. */ |
25035 | _ACEOF | |
25036 | cat confdefs.h >>conftest.$ac_ext | |
25037 | cat >>conftest.$ac_ext <<_ACEOF | |
25038 | /* end confdefs.h. */ | |
25039 | ||
25040 | #include <sys/types.h> | |
25041 | #include <sys/stat.h> | |
25042 | ||
25043 | int | |
25044 | main () | |
25045 | { | |
25046 | lstat(".",(struct stat *)0); | |
25047 | ; | |
25048 | return 0; | |
25049 | } | |
25050 | _ACEOF | |
25051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
25052 | if { (ac_try="$ac_link" |
25053 | case "(($ac_try" in | |
25054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25055 | *) ac_try_echo=$ac_try;; | |
25056 | esac | |
dd4f3dd8 CR |
25057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25058 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25059 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 25060 | ac_status=$? |
a82a04b3 CR |
25061 | grep -v '^ *+' conftest.er1 >conftest.err |
25062 | rm -f conftest.er1 | |
25063 | cat conftest.err >&5 | |
dd4f3dd8 CR |
25064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25065 | (exit $ac_status); } && { | |
25066 | test -z "$ac_c_werror_flag" || | |
25067 | test ! -s conftest.err | |
25068 | } && test -s conftest$ac_exeext && { | |
25069 | test "$cross_compiling" = yes || | |
25070 | $as_test_x conftest$ac_exeext | |
25071 | }; then | |
545f34cf CR |
25072 | bash_cv_func_lstat=yes |
25073 | else | |
dd4f3dd8 | 25074 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
25075 | sed 's/^/| /' conftest.$ac_ext >&5 |
25076 | ||
d3ad40de | 25077 | bash_cv_func_lstat=no |
545f34cf | 25078 | fi |
d3ad40de | 25079 | |
dd4f3dd8 CR |
25080 | rm -rf conftest.dSYM |
25081 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 25082 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 25083 | fi |
dd4f3dd8 CR |
25084 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 |
25085 | $as_echo "$bash_cv_func_lstat" >&6; } | |
545f34cf CR |
25086 | if test $bash_cv_func_lstat = yes; then |
25087 | cat >>confdefs.h <<\_ACEOF | |
25088 | @%:@define HAVE_LSTAT 1 | |
25089 | _ACEOF | |
25090 | ||
25091 | fi | |
25092 | ||
25093 | fi | |
25094 | ||
25095 | ||
dd4f3dd8 CR |
25096 | { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5 |
25097 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
545f34cf | 25098 | if test "${bash_cv_func_ctype_nonascii+set}" = set; then |
dd4f3dd8 | 25099 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25100 | else |
25101 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
25102 | { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 |
25103 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
25104 | bash_cv_func_ctype_nonascii=no |
25105 | ||
25106 | else | |
25107 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25108 | /* confdefs.h. */ |
25109 | _ACEOF | |
25110 | cat confdefs.h >>conftest.$ac_ext | |
25111 | cat >>conftest.$ac_ext <<_ACEOF | |
25112 | /* end confdefs.h. */ | |
25113 | ||
25114 | #ifdef HAVE_LOCALE_H | |
25115 | #include <locale.h> | |
25116 | #endif | |
25117 | #include <stdio.h> | |
25118 | #include <ctype.h> | |
25119 | ||
25120 | main(c, v) | |
25121 | int c; | |
25122 | char *v[]; | |
25123 | { | |
25124 | char *deflocale; | |
25125 | unsigned char x; | |
25126 | int r1, r2; | |
25127 | ||
25128 | #ifdef HAVE_SETLOCALE | |
25129 | /* We take a shot here. If that locale is not known, try the | |
25130 | system default. We try this one because '\342' (226) is | |
25131 | known to be a printable character in that locale. */ | |
25132 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
25133 | if (deflocale == 0) | |
25134 | deflocale = setlocale(LC_ALL, ""); | |
25135 | #endif | |
25136 | ||
25137 | x = '\342'; | |
25138 | r1 = isprint(x); | |
25139 | x -= 128; | |
25140 | r2 = isprint(x); | |
25141 | exit (r1 == 0 || r2 == 0); | |
25142 | } | |
25143 | ||
25144 | _ACEOF | |
25145 | rm -f conftest$ac_exeext | |
d3ad40de CR |
25146 | if { (ac_try="$ac_link" |
25147 | case "(($ac_try" in | |
25148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25149 | *) ac_try_echo=$ac_try;; | |
25150 | esac | |
dd4f3dd8 CR |
25151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25152 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25153 | (eval "$ac_link") 2>&5 |
545f34cf | 25154 | ac_status=$? |
dd4f3dd8 | 25155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 25156 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
25157 | { (case "(($ac_try" in |
25158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25159 | *) ac_try_echo=$ac_try;; | |
25160 | esac | |
dd4f3dd8 CR |
25161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25162 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25163 | (eval "$ac_try") 2>&5 |
545f34cf | 25164 | ac_status=$? |
dd4f3dd8 | 25165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
25166 | (exit $ac_status); }; }; then |
25167 | bash_cv_func_ctype_nonascii=yes | |
25168 | else | |
dd4f3dd8 CR |
25169 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25170 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
25171 | sed 's/^/| /' conftest.$ac_ext >&5 |
25172 | ||
25173 | ( exit $ac_status ) | |
25174 | bash_cv_func_ctype_nonascii=no | |
25175 | fi | |
dd4f3dd8 | 25176 | rm -rf conftest.dSYM |
d3ad40de | 25177 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 25178 | fi |
d3ad40de CR |
25179 | |
25180 | ||
545f34cf CR |
25181 | fi |
25182 | ||
dd4f3dd8 CR |
25183 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5 |
25184 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
545f34cf CR |
25185 | if test $bash_cv_func_ctype_nonascii = yes; then |
25186 | cat >>confdefs.h <<\_ACEOF | |
25187 | @%:@define CTYPE_NON_ASCII 1 | |
25188 | _ACEOF | |
25189 | ||
25190 | fi | |
25191 | ||
dd4f3dd8 CR |
25192 | { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5 |
25193 | $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; } | |
545f34cf | 25194 | if test "${bash_cv_dup2_broken+set}" = set; then |
dd4f3dd8 | 25195 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25196 | else |
25197 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
25198 | { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 |
25199 | $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
25200 | bash_cv_dup2_broken=no |
25201 | else | |
25202 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25203 | /* confdefs.h. */ |
25204 | _ACEOF | |
25205 | cat confdefs.h >>conftest.$ac_ext | |
25206 | cat >>conftest.$ac_ext <<_ACEOF | |
25207 | /* end confdefs.h. */ | |
25208 | ||
25209 | #include <sys/types.h> | |
25210 | #include <fcntl.h> | |
25211 | main() | |
25212 | { | |
25213 | int fd1, fd2, fl; | |
25214 | fd1 = open("/dev/null", 2); | |
25215 | if (fcntl(fd1, 2, 1) < 0) | |
25216 | exit(1); | |
25217 | fd2 = dup2(fd1, 1); | |
25218 | if (fd2 < 0) | |
25219 | exit(2); | |
25220 | fl = fcntl(fd2, 1, 0); | |
25221 | /* fl will be 1 if dup2 did not reset the close-on-exec flag. */ | |
25222 | exit(fl != 1); | |
25223 | } | |
25224 | ||
25225 | _ACEOF | |
25226 | rm -f conftest$ac_exeext | |
d3ad40de CR |
25227 | if { (ac_try="$ac_link" |
25228 | case "(($ac_try" in | |
25229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25230 | *) ac_try_echo=$ac_try;; | |
25231 | esac | |
dd4f3dd8 CR |
25232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25233 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25234 | (eval "$ac_link") 2>&5 |
545f34cf | 25235 | ac_status=$? |
dd4f3dd8 | 25236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 25237 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
25238 | { (case "(($ac_try" in |
25239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25240 | *) ac_try_echo=$ac_try;; | |
25241 | esac | |
dd4f3dd8 CR |
25242 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25243 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25244 | (eval "$ac_try") 2>&5 |
545f34cf | 25245 | ac_status=$? |
dd4f3dd8 | 25246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
25247 | (exit $ac_status); }; }; then |
25248 | bash_cv_dup2_broken=yes | |
25249 | else | |
dd4f3dd8 CR |
25250 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25251 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
25252 | sed 's/^/| /' conftest.$ac_ext >&5 |
25253 | ||
25254 | ( exit $ac_status ) | |
25255 | bash_cv_dup2_broken=no | |
25256 | fi | |
dd4f3dd8 | 25257 | rm -rf conftest.dSYM |
d3ad40de | 25258 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
25259 | fi |
25260 | ||
d3ad40de CR |
25261 | |
25262 | ||
545f34cf CR |
25263 | fi |
25264 | ||
dd4f3dd8 CR |
25265 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5 |
25266 | $as_echo "$bash_cv_dup2_broken" >&6; } | |
545f34cf CR |
25267 | if test $bash_cv_dup2_broken = yes; then |
25268 | cat >>confdefs.h <<\_ACEOF | |
25269 | @%:@define DUP2_BROKEN 1 | |
25270 | _ACEOF | |
25271 | ||
25272 | fi | |
25273 | ||
25274 | ||
dd4f3dd8 CR |
25275 | { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5 |
25276 | $as_echo_n "checking whether pgrps need synchronization... " >&6; } | |
545f34cf | 25277 | if test "${bash_cv_pgrp_pipe+set}" = set; then |
dd4f3dd8 | 25278 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25279 | else |
25280 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
25281 | { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5 |
25282 | $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
25283 | bash_cv_pgrp_pipe=no |
25284 | else | |
25285 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25286 | /* confdefs.h. */ |
25287 | _ACEOF | |
25288 | cat confdefs.h >>conftest.$ac_ext | |
25289 | cat >>conftest.$ac_ext <<_ACEOF | |
25290 | /* end confdefs.h. */ | |
25291 | ||
25292 | #ifdef HAVE_UNISTD_H | |
25293 | # include <unistd.h> | |
25294 | #endif | |
25295 | main() | |
25296 | { | |
25297 | # ifdef GETPGRP_VOID | |
25298 | # define getpgID() getpgrp() | |
25299 | # else | |
25300 | # define getpgID() getpgrp(0) | |
25301 | # define setpgid(x,y) setpgrp(x,y) | |
25302 | # endif | |
25303 | int pid1, pid2, fds[2]; | |
25304 | int status; | |
25305 | char ok; | |
25306 | ||
25307 | switch (pid1 = fork()) { | |
25308 | case -1: | |
25309 | exit(1); | |
25310 | case 0: | |
25311 | setpgid(0, getpid()); | |
25312 | exit(0); | |
25313 | } | |
25314 | setpgid(pid1, pid1); | |
25315 | ||
25316 | sleep(2); /* let first child die */ | |
25317 | ||
25318 | if (pipe(fds) < 0) | |
25319 | exit(2); | |
25320 | ||
25321 | switch (pid2 = fork()) { | |
25322 | case -1: | |
25323 | exit(3); | |
25324 | case 0: | |
25325 | setpgid(0, pid1); | |
25326 | ok = getpgID() == pid1; | |
25327 | write(fds[1], &ok, 1); | |
25328 | exit(0); | |
25329 | } | |
25330 | setpgid(pid2, pid1); | |
25331 | ||
25332 | close(fds[1]); | |
25333 | if (read(fds[0], &ok, 1) != 1) | |
25334 | exit(4); | |
25335 | wait(&status); | |
25336 | wait(&status); | |
25337 | exit(ok ? 0 : 5); | |
25338 | } | |
25339 | ||
25340 | _ACEOF | |
25341 | rm -f conftest$ac_exeext | |
d3ad40de CR |
25342 | if { (ac_try="$ac_link" |
25343 | case "(($ac_try" in | |
25344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25345 | *) ac_try_echo=$ac_try;; | |
25346 | esac | |
dd4f3dd8 CR |
25347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25348 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25349 | (eval "$ac_link") 2>&5 |
545f34cf | 25350 | ac_status=$? |
dd4f3dd8 | 25351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 25352 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
25353 | { (case "(($ac_try" in |
25354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25355 | *) ac_try_echo=$ac_try;; | |
25356 | esac | |
dd4f3dd8 CR |
25357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25358 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25359 | (eval "$ac_try") 2>&5 |
545f34cf | 25360 | ac_status=$? |
dd4f3dd8 | 25361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
25362 | (exit $ac_status); }; }; then |
25363 | bash_cv_pgrp_pipe=no | |
25364 | else | |
dd4f3dd8 CR |
25365 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25366 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
25367 | sed 's/^/| /' conftest.$ac_ext >&5 |
25368 | ||
25369 | ( exit $ac_status ) | |
25370 | bash_cv_pgrp_pipe=yes | |
25371 | fi | |
dd4f3dd8 | 25372 | rm -rf conftest.dSYM |
d3ad40de | 25373 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf CR |
25374 | fi |
25375 | ||
d3ad40de CR |
25376 | |
25377 | ||
545f34cf CR |
25378 | fi |
25379 | ||
dd4f3dd8 CR |
25380 | { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5 |
25381 | $as_echo "$bash_cv_pgrp_pipe" >&6; } | |
545f34cf CR |
25382 | if test $bash_cv_pgrp_pipe = yes; then |
25383 | cat >>confdefs.h <<\_ACEOF | |
25384 | @%:@define PGRP_PIPE 1 | |
25385 | _ACEOF | |
25386 | ||
25387 | fi | |
25388 | ||
25389 | ||
dd4f3dd8 CR |
25390 | { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5 |
25391 | $as_echo_n "checking for type of signal functions... " >&6; } | |
545f34cf | 25392 | if test "${bash_cv_signal_vintage+set}" = set; then |
dd4f3dd8 | 25393 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25394 | else |
25395 | ||
25396 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25397 | /* confdefs.h. */ |
25398 | _ACEOF | |
25399 | cat confdefs.h >>conftest.$ac_ext | |
25400 | cat >>conftest.$ac_ext <<_ACEOF | |
25401 | /* end confdefs.h. */ | |
25402 | #include <signal.h> | |
25403 | int | |
25404 | main () | |
25405 | { | |
25406 | ||
25407 | sigset_t ss; | |
25408 | struct sigaction sa; | |
25409 | sigemptyset(&ss); sigsuspend(&ss); | |
25410 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
25411 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
25412 | ||
25413 | ; | |
25414 | return 0; | |
25415 | } | |
25416 | _ACEOF | |
25417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
25418 | if { (ac_try="$ac_link" |
25419 | case "(($ac_try" in | |
25420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25421 | *) ac_try_echo=$ac_try;; | |
25422 | esac | |
dd4f3dd8 CR |
25423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25424 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25425 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 25426 | ac_status=$? |
a82a04b3 CR |
25427 | grep -v '^ *+' conftest.er1 >conftest.err |
25428 | rm -f conftest.er1 | |
25429 | cat conftest.err >&5 | |
dd4f3dd8 CR |
25430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25431 | (exit $ac_status); } && { | |
25432 | test -z "$ac_c_werror_flag" || | |
25433 | test ! -s conftest.err | |
25434 | } && test -s conftest$ac_exeext && { | |
25435 | test "$cross_compiling" = yes || | |
25436 | $as_test_x conftest$ac_exeext | |
25437 | }; then | |
545f34cf CR |
25438 | bash_cv_signal_vintage=posix |
25439 | else | |
dd4f3dd8 | 25440 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
25441 | sed 's/^/| /' conftest.$ac_ext >&5 |
25442 | ||
d3ad40de | 25443 | |
545f34cf | 25444 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
25445 | /* confdefs.h. */ |
25446 | _ACEOF | |
25447 | cat confdefs.h >>conftest.$ac_ext | |
25448 | cat >>conftest.$ac_ext <<_ACEOF | |
25449 | /* end confdefs.h. */ | |
25450 | #include <signal.h> | |
25451 | int | |
25452 | main () | |
25453 | { | |
25454 | ||
25455 | int mask = sigmask(SIGINT); | |
25456 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
25457 | ||
25458 | ; | |
25459 | return 0; | |
25460 | } | |
25461 | _ACEOF | |
25462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
25463 | if { (ac_try="$ac_link" |
25464 | case "(($ac_try" in | |
25465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25466 | *) ac_try_echo=$ac_try;; | |
25467 | esac | |
dd4f3dd8 CR |
25468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25469 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25470 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 25471 | ac_status=$? |
a82a04b3 CR |
25472 | grep -v '^ *+' conftest.er1 >conftest.err |
25473 | rm -f conftest.er1 | |
25474 | cat conftest.err >&5 | |
dd4f3dd8 CR |
25475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25476 | (exit $ac_status); } && { | |
25477 | test -z "$ac_c_werror_flag" || | |
25478 | test ! -s conftest.err | |
25479 | } && test -s conftest$ac_exeext && { | |
25480 | test "$cross_compiling" = yes || | |
25481 | $as_test_x conftest$ac_exeext | |
25482 | }; then | |
545f34cf CR |
25483 | bash_cv_signal_vintage=4.2bsd |
25484 | else | |
dd4f3dd8 | 25485 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
25486 | sed 's/^/| /' conftest.$ac_ext >&5 |
25487 | ||
d3ad40de | 25488 | |
545f34cf | 25489 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
25490 | /* confdefs.h. */ |
25491 | _ACEOF | |
25492 | cat confdefs.h >>conftest.$ac_ext | |
25493 | cat >>conftest.$ac_ext <<_ACEOF | |
25494 | /* end confdefs.h. */ | |
25495 | ||
25496 | #include <signal.h> | |
25497 | RETSIGTYPE foo() { } | |
25498 | int | |
25499 | main () | |
25500 | { | |
25501 | ||
25502 | int mask = sigmask(SIGINT); | |
25503 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
25504 | sighold(SIGINT); sigpause(SIGINT); | |
25505 | ||
25506 | ; | |
25507 | return 0; | |
25508 | } | |
25509 | _ACEOF | |
25510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
25511 | if { (ac_try="$ac_link" |
25512 | case "(($ac_try" in | |
25513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25514 | *) ac_try_echo=$ac_try;; | |
25515 | esac | |
dd4f3dd8 CR |
25516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25517 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25518 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 25519 | ac_status=$? |
a82a04b3 CR |
25520 | grep -v '^ *+' conftest.er1 >conftest.err |
25521 | rm -f conftest.er1 | |
25522 | cat conftest.err >&5 | |
dd4f3dd8 CR |
25523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25524 | (exit $ac_status); } && { | |
25525 | test -z "$ac_c_werror_flag" || | |
25526 | test ! -s conftest.err | |
25527 | } && test -s conftest$ac_exeext && { | |
25528 | test "$cross_compiling" = yes || | |
25529 | $as_test_x conftest$ac_exeext | |
25530 | }; then | |
545f34cf CR |
25531 | bash_cv_signal_vintage=svr3 |
25532 | else | |
dd4f3dd8 | 25533 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
25534 | sed 's/^/| /' conftest.$ac_ext >&5 |
25535 | ||
d3ad40de | 25536 | bash_cv_signal_vintage=v7 |
545f34cf CR |
25537 | |
25538 | fi | |
d3ad40de | 25539 | |
dd4f3dd8 CR |
25540 | rm -rf conftest.dSYM |
25541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 25542 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
25543 | |
25544 | fi | |
d3ad40de | 25545 | |
dd4f3dd8 CR |
25546 | rm -rf conftest.dSYM |
25547 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 25548 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
25549 | |
25550 | fi | |
d3ad40de | 25551 | |
dd4f3dd8 CR |
25552 | rm -rf conftest.dSYM |
25553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 25554 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
25555 | |
25556 | fi | |
25557 | ||
dd4f3dd8 CR |
25558 | { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 |
25559 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
545f34cf CR |
25560 | if test "$bash_cv_signal_vintage" = posix; then |
25561 | cat >>confdefs.h <<\_ACEOF | |
25562 | @%:@define HAVE_POSIX_SIGNALS 1 | |
25563 | _ACEOF | |
25564 | ||
25565 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then | |
25566 | cat >>confdefs.h <<\_ACEOF | |
25567 | @%:@define HAVE_BSD_SIGNALS 1 | |
25568 | _ACEOF | |
25569 | ||
25570 | elif test "$bash_cv_signal_vintage" = svr3; then | |
25571 | cat >>confdefs.h <<\_ACEOF | |
25572 | @%:@define HAVE_USG_SIGHOLD 1 | |
25573 | _ACEOF | |
25574 | ||
25575 | fi | |
25576 | ||
25577 | ||
dd4f3dd8 CR |
25578 | { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5 |
25579 | $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; } | |
545f34cf | 25580 | if test "${bash_cv_sys_errlist+set}" = set; then |
dd4f3dd8 | 25581 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25582 | else |
25583 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25584 | /* confdefs.h. */ |
25585 | _ACEOF | |
25586 | cat confdefs.h >>conftest.$ac_ext | |
25587 | cat >>conftest.$ac_ext <<_ACEOF | |
25588 | /* end confdefs.h. */ | |
25589 | #include <errno.h> | |
25590 | int | |
25591 | main () | |
25592 | { | |
25593 | extern char *sys_errlist[]; | |
25594 | extern int sys_nerr; | |
25595 | char *msg = sys_errlist[sys_nerr - 1]; | |
25596 | ; | |
25597 | return 0; | |
25598 | } | |
25599 | _ACEOF | |
25600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
25601 | if { (ac_try="$ac_link" |
25602 | case "(($ac_try" in | |
25603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25604 | *) ac_try_echo=$ac_try;; | |
25605 | esac | |
dd4f3dd8 CR |
25606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25607 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25608 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 25609 | ac_status=$? |
a82a04b3 CR |
25610 | grep -v '^ *+' conftest.er1 >conftest.err |
25611 | rm -f conftest.er1 | |
25612 | cat conftest.err >&5 | |
dd4f3dd8 CR |
25613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25614 | (exit $ac_status); } && { | |
25615 | test -z "$ac_c_werror_flag" || | |
25616 | test ! -s conftest.err | |
25617 | } && test -s conftest$ac_exeext && { | |
25618 | test "$cross_compiling" = yes || | |
25619 | $as_test_x conftest$ac_exeext | |
25620 | }; then | |
545f34cf CR |
25621 | bash_cv_sys_errlist=yes |
25622 | else | |
dd4f3dd8 | 25623 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
25624 | sed 's/^/| /' conftest.$ac_ext >&5 |
25625 | ||
d3ad40de | 25626 | bash_cv_sys_errlist=no |
545f34cf | 25627 | fi |
d3ad40de | 25628 | |
dd4f3dd8 CR |
25629 | rm -rf conftest.dSYM |
25630 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 25631 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 25632 | fi |
dd4f3dd8 CR |
25633 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5 |
25634 | $as_echo "$bash_cv_sys_errlist" >&6; } | |
545f34cf CR |
25635 | if test $bash_cv_sys_errlist = yes; then |
25636 | cat >>confdefs.h <<\_ACEOF | |
25637 | @%:@define HAVE_SYS_ERRLIST 1 | |
25638 | _ACEOF | |
25639 | ||
25640 | fi | |
25641 | ||
25642 | ||
dd4f3dd8 CR |
25643 | { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5 |
25644 | $as_echo_n "checking for sys_siglist in system C library... " >&6; } | |
545f34cf | 25645 | if test "${bash_cv_sys_siglist+set}" = set; then |
dd4f3dd8 | 25646 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25647 | else |
25648 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
25649 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5 |
25650 | $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
25651 | bash_cv_sys_siglist=no |
25652 | else | |
25653 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25654 | /* confdefs.h. */ |
25655 | _ACEOF | |
25656 | cat confdefs.h >>conftest.$ac_ext | |
25657 | cat >>conftest.$ac_ext <<_ACEOF | |
25658 | /* end confdefs.h. */ | |
25659 | ||
25660 | #include <sys/types.h> | |
25661 | #include <signal.h> | |
25662 | #ifdef HAVE_UNISTD_H | |
25663 | #include <unistd.h> | |
25664 | #endif | |
d3ad40de | 25665 | #if !HAVE_DECL_SYS_SIGLIST |
545f34cf CR |
25666 | extern char *sys_siglist[]; |
25667 | #endif | |
25668 | main() | |
25669 | { | |
25670 | char *msg = sys_siglist[2]; | |
25671 | exit(msg == 0); | |
25672 | } | |
25673 | _ACEOF | |
25674 | rm -f conftest$ac_exeext | |
d3ad40de CR |
25675 | if { (ac_try="$ac_link" |
25676 | case "(($ac_try" in | |
25677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25678 | *) ac_try_echo=$ac_try;; | |
25679 | esac | |
dd4f3dd8 CR |
25680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25681 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25682 | (eval "$ac_link") 2>&5 |
545f34cf | 25683 | ac_status=$? |
dd4f3dd8 | 25684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 25685 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
25686 | { (case "(($ac_try" in |
25687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25688 | *) ac_try_echo=$ac_try;; | |
25689 | esac | |
dd4f3dd8 CR |
25690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25691 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25692 | (eval "$ac_try") 2>&5 |
545f34cf | 25693 | ac_status=$? |
dd4f3dd8 | 25694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
25695 | (exit $ac_status); }; }; then |
25696 | bash_cv_sys_siglist=yes | |
25697 | else | |
dd4f3dd8 CR |
25698 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25699 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
25700 | sed 's/^/| /' conftest.$ac_ext >&5 |
25701 | ||
25702 | ( exit $ac_status ) | |
25703 | bash_cv_sys_siglist=no | |
25704 | fi | |
dd4f3dd8 | 25705 | rm -rf conftest.dSYM |
d3ad40de | 25706 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 25707 | fi |
d3ad40de CR |
25708 | |
25709 | ||
545f34cf CR |
25710 | fi |
25711 | ||
dd4f3dd8 CR |
25712 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5 |
25713 | $as_echo "$bash_cv_sys_siglist" >&6; } | |
545f34cf CR |
25714 | if test $bash_cv_sys_siglist = yes; then |
25715 | cat >>confdefs.h <<\_ACEOF | |
25716 | @%:@define HAVE_SYS_SIGLIST 1 | |
25717 | _ACEOF | |
25718 | ||
25719 | fi | |
25720 | ||
dd4f3dd8 CR |
25721 | { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5 |
25722 | $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; } | |
545f34cf | 25723 | if test "${bash_cv_decl_under_sys_siglist+set}" = set; then |
dd4f3dd8 | 25724 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25725 | else |
25726 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25727 | /* confdefs.h. */ |
25728 | _ACEOF | |
25729 | cat confdefs.h >>conftest.$ac_ext | |
25730 | cat >>conftest.$ac_ext <<_ACEOF | |
25731 | /* end confdefs.h. */ | |
25732 | ||
25733 | #include <sys/types.h> | |
25734 | #include <signal.h> | |
25735 | #ifdef HAVE_UNISTD_H | |
25736 | #include <unistd.h> | |
25737 | #endif | |
25738 | int | |
25739 | main () | |
25740 | { | |
25741 | char *msg = _sys_siglist[2]; | |
25742 | ; | |
25743 | return 0; | |
25744 | } | |
25745 | _ACEOF | |
25746 | rm -f conftest.$ac_objext | |
d3ad40de CR |
25747 | if { (ac_try="$ac_compile" |
25748 | case "(($ac_try" in | |
25749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25750 | *) ac_try_echo=$ac_try;; | |
25751 | esac | |
dd4f3dd8 CR |
25752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25753 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25754 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 25755 | ac_status=$? |
a82a04b3 CR |
25756 | grep -v '^ *+' conftest.er1 >conftest.err |
25757 | rm -f conftest.er1 | |
25758 | cat conftest.err >&5 | |
dd4f3dd8 CR |
25759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25760 | (exit $ac_status); } && { | |
25761 | test -z "$ac_c_werror_flag" || | |
25762 | test ! -s conftest.err | |
25763 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
25764 | bash_cv_decl_under_sys_siglist=yes |
25765 | else | |
dd4f3dd8 | 25766 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
25767 | sed 's/^/| /' conftest.$ac_ext >&5 |
25768 | ||
d3ad40de | 25769 | bash_cv_decl_under_sys_siglist=no |
545f34cf | 25770 | fi |
d3ad40de CR |
25771 | |
25772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 25773 | fi |
dd4f3dd8 CR |
25774 | { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5 |
25775 | $as_echo "$bash_cv_decl_under_sys_siglist" >&6; } | |
545f34cf CR |
25776 | if test $bash_cv_decl_under_sys_siglist = yes; then |
25777 | cat >>confdefs.h <<\_ACEOF | |
25778 | @%:@define UNDER_SYS_SIGLIST_DECLARED 1 | |
25779 | _ACEOF | |
25780 | ||
25781 | fi | |
25782 | ||
25783 | ||
dd4f3dd8 CR |
25784 | { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5 |
25785 | $as_echo_n "checking for _sys_siglist in system C library... " >&6; } | |
545f34cf | 25786 | if test "${bash_cv_under_sys_siglist+set}" = set; then |
dd4f3dd8 | 25787 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25788 | else |
25789 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
25790 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5 |
25791 | $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
25792 | bash_cv_under_sys_siglist=no |
25793 | else | |
25794 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25795 | /* confdefs.h. */ |
25796 | _ACEOF | |
25797 | cat confdefs.h >>conftest.$ac_ext | |
25798 | cat >>conftest.$ac_ext <<_ACEOF | |
25799 | /* end confdefs.h. */ | |
25800 | ||
25801 | #include <sys/types.h> | |
25802 | #include <signal.h> | |
25803 | #ifdef HAVE_UNISTD_H | |
25804 | #include <unistd.h> | |
25805 | #endif | |
25806 | #ifndef UNDER_SYS_SIGLIST_DECLARED | |
25807 | extern char *_sys_siglist[]; | |
25808 | #endif | |
25809 | main() | |
25810 | { | |
25811 | char *msg = (char *)_sys_siglist[2]; | |
25812 | exit(msg == 0); | |
25813 | } | |
25814 | _ACEOF | |
25815 | rm -f conftest$ac_exeext | |
d3ad40de CR |
25816 | if { (ac_try="$ac_link" |
25817 | case "(($ac_try" in | |
25818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25819 | *) ac_try_echo=$ac_try;; | |
25820 | esac | |
dd4f3dd8 CR |
25821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25822 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25823 | (eval "$ac_link") 2>&5 |
545f34cf | 25824 | ac_status=$? |
dd4f3dd8 | 25825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 25826 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
25827 | { (case "(($ac_try" in |
25828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25829 | *) ac_try_echo=$ac_try;; | |
25830 | esac | |
dd4f3dd8 CR |
25831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25832 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25833 | (eval "$ac_try") 2>&5 |
545f34cf | 25834 | ac_status=$? |
dd4f3dd8 | 25835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
25836 | (exit $ac_status); }; }; then |
25837 | bash_cv_under_sys_siglist=yes | |
25838 | else | |
dd4f3dd8 CR |
25839 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25840 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
25841 | sed 's/^/| /' conftest.$ac_ext >&5 |
25842 | ||
25843 | ( exit $ac_status ) | |
25844 | bash_cv_under_sys_siglist=no | |
25845 | fi | |
dd4f3dd8 | 25846 | rm -rf conftest.dSYM |
d3ad40de | 25847 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 25848 | fi |
d3ad40de CR |
25849 | |
25850 | ||
545f34cf CR |
25851 | fi |
25852 | ||
dd4f3dd8 CR |
25853 | { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5 |
25854 | $as_echo "$bash_cv_under_sys_siglist" >&6; } | |
545f34cf CR |
25855 | if test $bash_cv_under_sys_siglist = yes; then |
25856 | cat >>confdefs.h <<\_ACEOF | |
25857 | @%:@define HAVE_UNDER_SYS_SIGLIST 1 | |
25858 | _ACEOF | |
25859 | ||
25860 | fi | |
25861 | ||
25862 | ||
dd4f3dd8 CR |
25863 | { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 |
25864 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
545f34cf | 25865 | if test "${bash_cv_void_sighandler+set}" = set; then |
dd4f3dd8 | 25866 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25867 | else |
25868 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25869 | /* confdefs.h. */ |
25870 | _ACEOF | |
25871 | cat confdefs.h >>conftest.$ac_ext | |
25872 | cat >>conftest.$ac_ext <<_ACEOF | |
25873 | /* end confdefs.h. */ | |
25874 | #include <sys/types.h> | |
25875 | #include <signal.h> | |
25876 | #ifdef signal | |
25877 | #undef signal | |
25878 | #endif | |
25879 | #ifdef __cplusplus | |
25880 | extern "C" | |
25881 | #endif | |
25882 | void (*signal ()) (); | |
25883 | int | |
25884 | main () | |
25885 | { | |
25886 | int i; | |
25887 | ; | |
25888 | return 0; | |
25889 | } | |
25890 | _ACEOF | |
25891 | rm -f conftest.$ac_objext | |
d3ad40de CR |
25892 | if { (ac_try="$ac_compile" |
25893 | case "(($ac_try" in | |
25894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25895 | *) ac_try_echo=$ac_try;; | |
25896 | esac | |
dd4f3dd8 CR |
25897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
25898 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 25899 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 25900 | ac_status=$? |
a82a04b3 CR |
25901 | grep -v '^ *+' conftest.er1 >conftest.err |
25902 | rm -f conftest.er1 | |
25903 | cat conftest.err >&5 | |
dd4f3dd8 CR |
25904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25905 | (exit $ac_status); } && { | |
25906 | test -z "$ac_c_werror_flag" || | |
25907 | test ! -s conftest.err | |
25908 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
25909 | bash_cv_void_sighandler=yes |
25910 | else | |
dd4f3dd8 | 25911 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
25912 | sed 's/^/| /' conftest.$ac_ext >&5 |
25913 | ||
d3ad40de | 25914 | bash_cv_void_sighandler=no |
545f34cf | 25915 | fi |
d3ad40de CR |
25916 | |
25917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 25918 | fi |
dd4f3dd8 CR |
25919 | { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 |
25920 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
545f34cf CR |
25921 | if test $bash_cv_void_sighandler = yes; then |
25922 | cat >>confdefs.h <<\_ACEOF | |
25923 | @%:@define VOID_SIGHANDLER 1 | |
25924 | _ACEOF | |
25925 | ||
25926 | fi | |
25927 | ||
25928 | ||
25929 | ||
dd4f3dd8 CR |
25930 | { $as_echo "$as_me:$LINENO: checking for clock_t" >&5 |
25931 | $as_echo_n "checking for clock_t... " >&6; } | |
545f34cf | 25932 | if test "${bash_cv_type_clock_t+set}" = set; then |
dd4f3dd8 | 25933 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25934 | else |
25935 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25936 | /* confdefs.h. */ |
25937 | _ACEOF | |
25938 | cat confdefs.h >>conftest.$ac_ext | |
25939 | cat >>conftest.$ac_ext <<_ACEOF | |
25940 | /* end confdefs.h. */ | |
25941 | #include <sys/types.h> | |
25942 | #if STDC_HEADERS | |
25943 | #include <stdlib.h> | |
25944 | #include <stddef.h> | |
25945 | #endif | |
25946 | #if HAVE_INTTYPES_H | |
25947 | #include <inttypes.h> | |
25948 | #endif | |
25949 | #include <sys/times.h> | |
25950 | ||
25951 | _ACEOF | |
25952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25953 | $EGREP "clock_t" >/dev/null 2>&1; then | |
25954 | bash_cv_type_clock_t=yes | |
25955 | else | |
25956 | bash_cv_type_clock_t=no | |
25957 | fi | |
25958 | rm -f conftest* | |
25959 | ||
25960 | fi | |
25961 | ||
dd4f3dd8 CR |
25962 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5 |
25963 | $as_echo "$bash_cv_type_clock_t" >&6; } | |
545f34cf CR |
25964 | |
25965 | if test $bash_cv_type_clock_t = no; then | |
25966 | cat >>confdefs.h <<_ACEOF | |
25967 | @%:@define clock_t long | |
25968 | _ACEOF | |
25969 | ||
25970 | fi | |
25971 | ||
25972 | ||
25973 | ||
dd4f3dd8 CR |
25974 | { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5 |
25975 | $as_echo_n "checking for sigset_t... " >&6; } | |
545f34cf | 25976 | if test "${bash_cv_type_sigset_t+set}" = set; then |
dd4f3dd8 | 25977 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
25978 | else |
25979 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
25980 | /* confdefs.h. */ |
25981 | _ACEOF | |
25982 | cat confdefs.h >>conftest.$ac_ext | |
25983 | cat >>conftest.$ac_ext <<_ACEOF | |
25984 | /* end confdefs.h. */ | |
25985 | #include <sys/types.h> | |
25986 | #if STDC_HEADERS | |
25987 | #include <stdlib.h> | |
25988 | #include <stddef.h> | |
25989 | #endif | |
25990 | #if HAVE_INTTYPES_H | |
25991 | #include <inttypes.h> | |
25992 | #endif | |
25993 | #include <signal.h> | |
25994 | ||
25995 | _ACEOF | |
25996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25997 | $EGREP "sigset_t" >/dev/null 2>&1; then | |
25998 | bash_cv_type_sigset_t=yes | |
25999 | else | |
26000 | bash_cv_type_sigset_t=no | |
26001 | fi | |
26002 | rm -f conftest* | |
26003 | ||
26004 | fi | |
26005 | ||
dd4f3dd8 CR |
26006 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5 |
26007 | $as_echo "$bash_cv_type_sigset_t" >&6; } | |
545f34cf CR |
26008 | |
26009 | if test $bash_cv_type_sigset_t = no; then | |
26010 | cat >>confdefs.h <<_ACEOF | |
26011 | @%:@define sigset_t int | |
26012 | _ACEOF | |
26013 | ||
26014 | fi | |
26015 | ||
26016 | ||
26017 | ||
dd4f3dd8 CR |
26018 | { $as_echo "$as_me:$LINENO: checking for quad_t" >&5 |
26019 | $as_echo_n "checking for quad_t... " >&6; } | |
545f34cf | 26020 | if test "${bash_cv_type_quad_t+set}" = set; then |
dd4f3dd8 | 26021 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26022 | else |
26023 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26024 | /* confdefs.h. */ |
26025 | _ACEOF | |
26026 | cat confdefs.h >>conftest.$ac_ext | |
26027 | cat >>conftest.$ac_ext <<_ACEOF | |
26028 | /* end confdefs.h. */ | |
26029 | #include <sys/types.h> | |
26030 | #if STDC_HEADERS | |
26031 | #include <stdlib.h> | |
26032 | #include <stddef.h> | |
26033 | #endif | |
26034 | #if HAVE_INTTYPES_H | |
26035 | #include <inttypes.h> | |
26036 | #endif | |
26037 | ||
26038 | ||
26039 | _ACEOF | |
26040 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
26041 | $EGREP "quad_t" >/dev/null 2>&1; then | |
26042 | bash_cv_type_quad_t=yes | |
26043 | else | |
26044 | bash_cv_type_quad_t=no | |
26045 | fi | |
26046 | rm -f conftest* | |
26047 | ||
26048 | fi | |
26049 | ||
dd4f3dd8 CR |
26050 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5 |
26051 | $as_echo "$bash_cv_type_quad_t" >&6; } | |
545f34cf CR |
26052 | if test $bash_cv_type_quad_t = yes; then |
26053 | cat >>confdefs.h <<\_ACEOF | |
26054 | @%:@define HAVE_QUAD_T 1 | |
26055 | _ACEOF | |
26056 | ||
26057 | fi | |
26058 | if test $bash_cv_type_quad_t = no; then | |
26059 | cat >>confdefs.h <<_ACEOF | |
26060 | @%:@define quad_t long | |
26061 | _ACEOF | |
26062 | ||
26063 | fi | |
26064 | ||
26065 | ||
26066 | ||
dd4f3dd8 CR |
26067 | { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 |
26068 | $as_echo_n "checking for intmax_t... " >&6; } | |
545f34cf | 26069 | if test "${bash_cv_type_intmax_t+set}" = set; then |
dd4f3dd8 | 26070 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26071 | else |
26072 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26073 | /* confdefs.h. */ |
26074 | _ACEOF | |
26075 | cat confdefs.h >>conftest.$ac_ext | |
26076 | cat >>conftest.$ac_ext <<_ACEOF | |
26077 | /* end confdefs.h. */ | |
26078 | #include <sys/types.h> | |
26079 | #if STDC_HEADERS | |
26080 | #include <stdlib.h> | |
26081 | #include <stddef.h> | |
26082 | #endif | |
26083 | #if HAVE_INTTYPES_H | |
26084 | #include <inttypes.h> | |
26085 | #endif | |
26086 | ||
26087 | ||
26088 | _ACEOF | |
26089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
26090 | $EGREP "intmax_t" >/dev/null 2>&1; then | |
26091 | bash_cv_type_intmax_t=yes | |
26092 | else | |
26093 | bash_cv_type_intmax_t=no | |
26094 | fi | |
26095 | rm -f conftest* | |
26096 | ||
26097 | fi | |
26098 | ||
dd4f3dd8 CR |
26099 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5 |
26100 | $as_echo "$bash_cv_type_intmax_t" >&6; } | |
545f34cf CR |
26101 | |
26102 | if test $bash_cv_type_intmax_t = no; then | |
26103 | cat >>confdefs.h <<_ACEOF | |
26104 | @%:@define intmax_t $bash_cv_type_long_long | |
26105 | _ACEOF | |
26106 | ||
26107 | fi | |
26108 | ||
26109 | ||
26110 | ||
dd4f3dd8 CR |
26111 | { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
26112 | $as_echo_n "checking for uintmax_t... " >&6; } | |
545f34cf | 26113 | if test "${bash_cv_type_uintmax_t+set}" = set; then |
dd4f3dd8 | 26114 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26115 | else |
26116 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26117 | /* confdefs.h. */ |
26118 | _ACEOF | |
26119 | cat confdefs.h >>conftest.$ac_ext | |
26120 | cat >>conftest.$ac_ext <<_ACEOF | |
26121 | /* end confdefs.h. */ | |
26122 | #include <sys/types.h> | |
26123 | #if STDC_HEADERS | |
26124 | #include <stdlib.h> | |
26125 | #include <stddef.h> | |
26126 | #endif | |
26127 | #if HAVE_INTTYPES_H | |
26128 | #include <inttypes.h> | |
26129 | #endif | |
26130 | ||
26131 | ||
26132 | _ACEOF | |
26133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
26134 | $EGREP "uintmax_t" >/dev/null 2>&1; then | |
26135 | bash_cv_type_uintmax_t=yes | |
26136 | else | |
26137 | bash_cv_type_uintmax_t=no | |
26138 | fi | |
26139 | rm -f conftest* | |
26140 | ||
26141 | fi | |
26142 | ||
dd4f3dd8 CR |
26143 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5 |
26144 | $as_echo "$bash_cv_type_uintmax_t" >&6; } | |
545f34cf CR |
26145 | |
26146 | if test $bash_cv_type_uintmax_t = no; then | |
26147 | cat >>confdefs.h <<_ACEOF | |
26148 | @%:@define uintmax_t $bash_cv_type_unsigned_long_long | |
26149 | _ACEOF | |
26150 | ||
26151 | fi | |
26152 | ||
26153 | if test "$ac_cv_header_sys_socket_h" = "yes"; then | |
26154 | ||
26155 | ||
dd4f3dd8 CR |
26156 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 |
26157 | $as_echo_n "checking for socklen_t... " >&6; } | |
545f34cf | 26158 | if test "${bash_cv_type_socklen_t+set}" = set; then |
dd4f3dd8 | 26159 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26160 | else |
26161 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26162 | /* confdefs.h. */ |
26163 | _ACEOF | |
26164 | cat confdefs.h >>conftest.$ac_ext | |
26165 | cat >>conftest.$ac_ext <<_ACEOF | |
26166 | /* end confdefs.h. */ | |
26167 | #include <sys/types.h> | |
26168 | #if STDC_HEADERS | |
26169 | #include <stdlib.h> | |
26170 | #include <stddef.h> | |
26171 | #endif | |
26172 | #if HAVE_INTTYPES_H | |
26173 | #include <inttypes.h> | |
26174 | #endif | |
26175 | #include <sys/socket.h> | |
26176 | ||
26177 | _ACEOF | |
26178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
26179 | $EGREP "socklen_t" >/dev/null 2>&1; then | |
26180 | bash_cv_type_socklen_t=yes | |
26181 | else | |
26182 | bash_cv_type_socklen_t=no | |
26183 | fi | |
26184 | rm -f conftest* | |
26185 | ||
26186 | fi | |
26187 | ||
dd4f3dd8 CR |
26188 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5 |
26189 | $as_echo "$bash_cv_type_socklen_t" >&6; } | |
545f34cf CR |
26190 | if test $bash_cv_type_socklen_t = yes; then |
26191 | cat >>confdefs.h <<\_ACEOF | |
26192 | @%:@define HAVE_SOCKLEN_T 1 | |
26193 | _ACEOF | |
26194 | ||
26195 | fi | |
26196 | if test $bash_cv_type_socklen_t = no; then | |
26197 | cat >>confdefs.h <<_ACEOF | |
26198 | @%:@define socklen_t int | |
26199 | _ACEOF | |
26200 | ||
26201 | fi | |
26202 | ||
26203 | fi | |
dd4f3dd8 CR |
26204 | { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5 |
26205 | $as_echo_n "checking for size and type of struct rlimit fields... " >&6; } | |
545f34cf | 26206 | if test "${bash_cv_type_rlimit+set}" = set; then |
dd4f3dd8 | 26207 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26208 | else |
26209 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26210 | /* confdefs.h. */ |
26211 | _ACEOF | |
26212 | cat confdefs.h >>conftest.$ac_ext | |
26213 | cat >>conftest.$ac_ext <<_ACEOF | |
26214 | /* end confdefs.h. */ | |
26215 | #include <sys/types.h> | |
26216 | #include <sys/resource.h> | |
26217 | int | |
26218 | main () | |
26219 | { | |
26220 | rlim_t xxx; | |
26221 | ; | |
26222 | return 0; | |
26223 | } | |
26224 | _ACEOF | |
26225 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26226 | if { (ac_try="$ac_compile" |
26227 | case "(($ac_try" in | |
26228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26229 | *) ac_try_echo=$ac_try;; | |
26230 | esac | |
dd4f3dd8 CR |
26231 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26232 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26233 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26234 | ac_status=$? |
a82a04b3 CR |
26235 | grep -v '^ *+' conftest.er1 >conftest.err |
26236 | rm -f conftest.er1 | |
26237 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26239 | (exit $ac_status); } && { | |
26240 | test -z "$ac_c_werror_flag" || | |
26241 | test ! -s conftest.err | |
26242 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26243 | bash_cv_type_rlimit=rlim_t |
26244 | else | |
dd4f3dd8 | 26245 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26246 | sed 's/^/| /' conftest.$ac_ext >&5 |
26247 | ||
d3ad40de | 26248 | |
545f34cf | 26249 | if test "$cross_compiling" = yes; then |
dd4f3dd8 CR |
26250 | { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5 |
26251 | $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;} | |
545f34cf CR |
26252 | bash_cv_type_rlimit=long |
26253 | else | |
26254 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26255 | /* confdefs.h. */ |
26256 | _ACEOF | |
26257 | cat confdefs.h >>conftest.$ac_ext | |
26258 | cat >>conftest.$ac_ext <<_ACEOF | |
26259 | /* end confdefs.h. */ | |
26260 | ||
26261 | #include <sys/types.h> | |
26262 | #include <sys/time.h> | |
26263 | #include <sys/resource.h> | |
26264 | main() | |
26265 | { | |
26266 | #ifdef HAVE_QUAD_T | |
26267 | struct rlimit rl; | |
26268 | if (sizeof(rl.rlim_cur) == sizeof(quad_t)) | |
26269 | exit(0); | |
26270 | #endif | |
26271 | exit(1); | |
26272 | } | |
26273 | _ACEOF | |
26274 | rm -f conftest$ac_exeext | |
d3ad40de CR |
26275 | if { (ac_try="$ac_link" |
26276 | case "(($ac_try" in | |
26277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26278 | *) ac_try_echo=$ac_try;; | |
26279 | esac | |
dd4f3dd8 CR |
26280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26281 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26282 | (eval "$ac_link") 2>&5 |
545f34cf | 26283 | ac_status=$? |
dd4f3dd8 | 26284 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 26285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
26286 | { (case "(($ac_try" in |
26287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26288 | *) ac_try_echo=$ac_try;; | |
26289 | esac | |
dd4f3dd8 CR |
26290 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26291 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26292 | (eval "$ac_try") 2>&5 |
545f34cf | 26293 | ac_status=$? |
dd4f3dd8 | 26294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
26295 | (exit $ac_status); }; }; then |
26296 | bash_cv_type_rlimit=quad_t | |
26297 | else | |
dd4f3dd8 CR |
26298 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
26299 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
26300 | sed 's/^/| /' conftest.$ac_ext >&5 |
26301 | ||
26302 | ( exit $ac_status ) | |
26303 | bash_cv_type_rlimit=long | |
26304 | fi | |
dd4f3dd8 | 26305 | rm -rf conftest.dSYM |
d3ad40de | 26306 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 26307 | fi |
d3ad40de CR |
26308 | |
26309 | ||
545f34cf | 26310 | fi |
d3ad40de CR |
26311 | |
26312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
26313 | |
26314 | fi | |
26315 | ||
dd4f3dd8 CR |
26316 | { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5 |
26317 | $as_echo "$bash_cv_type_rlimit" >&6; } | |
545f34cf CR |
26318 | if test $bash_cv_type_rlimit = quad_t; then |
26319 | cat >>confdefs.h <<\_ACEOF | |
26320 | @%:@define RLIMTYPE quad_t | |
26321 | _ACEOF | |
26322 | ||
26323 | elif test $bash_cv_type_rlimit = rlim_t; then | |
26324 | cat >>confdefs.h <<\_ACEOF | |
26325 | @%:@define RLIMTYPE rlim_t | |
26326 | _ACEOF | |
26327 | ||
26328 | fi | |
26329 | ||
26330 | ||
26331 | ||
dd4f3dd8 CR |
26332 | { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5 |
26333 | $as_echo_n "checking for struct termios.c_line... " >&6; } | |
545f34cf | 26334 | if test "${ac_cv_member_struct_termios_c_line+set}" = set; then |
dd4f3dd8 | 26335 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26336 | else |
26337 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26338 | /* confdefs.h. */ |
26339 | _ACEOF | |
26340 | cat confdefs.h >>conftest.$ac_ext | |
26341 | cat >>conftest.$ac_ext <<_ACEOF | |
26342 | /* end confdefs.h. */ | |
26343 | ||
26344 | #include <sys/types.h> | |
26345 | #include <termios.h> | |
26346 | ||
26347 | ||
26348 | int | |
26349 | main () | |
26350 | { | |
26351 | static struct termios ac_aggr; | |
26352 | if (ac_aggr.c_line) | |
26353 | return 0; | |
26354 | ; | |
26355 | return 0; | |
26356 | } | |
26357 | _ACEOF | |
26358 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26359 | if { (ac_try="$ac_compile" |
26360 | case "(($ac_try" in | |
26361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26362 | *) ac_try_echo=$ac_try;; | |
26363 | esac | |
dd4f3dd8 CR |
26364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26365 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26366 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26367 | ac_status=$? |
a82a04b3 CR |
26368 | grep -v '^ *+' conftest.er1 >conftest.err |
26369 | rm -f conftest.er1 | |
26370 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26372 | (exit $ac_status); } && { | |
26373 | test -z "$ac_c_werror_flag" || | |
26374 | test ! -s conftest.err | |
26375 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26376 | ac_cv_member_struct_termios_c_line=yes |
26377 | else | |
dd4f3dd8 | 26378 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26379 | sed 's/^/| /' conftest.$ac_ext >&5 |
26380 | ||
d3ad40de | 26381 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
26382 | /* confdefs.h. */ |
26383 | _ACEOF | |
26384 | cat confdefs.h >>conftest.$ac_ext | |
26385 | cat >>conftest.$ac_ext <<_ACEOF | |
26386 | /* end confdefs.h. */ | |
26387 | ||
26388 | #include <sys/types.h> | |
26389 | #include <termios.h> | |
26390 | ||
26391 | ||
26392 | int | |
26393 | main () | |
26394 | { | |
26395 | static struct termios ac_aggr; | |
26396 | if (sizeof ac_aggr.c_line) | |
26397 | return 0; | |
26398 | ; | |
26399 | return 0; | |
26400 | } | |
26401 | _ACEOF | |
26402 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26403 | if { (ac_try="$ac_compile" |
26404 | case "(($ac_try" in | |
26405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26406 | *) ac_try_echo=$ac_try;; | |
26407 | esac | |
dd4f3dd8 CR |
26408 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26409 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26410 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26411 | ac_status=$? |
a82a04b3 CR |
26412 | grep -v '^ *+' conftest.er1 >conftest.err |
26413 | rm -f conftest.er1 | |
26414 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26416 | (exit $ac_status); } && { | |
26417 | test -z "$ac_c_werror_flag" || | |
26418 | test ! -s conftest.err | |
26419 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26420 | ac_cv_member_struct_termios_c_line=yes |
26421 | else | |
dd4f3dd8 | 26422 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26423 | sed 's/^/| /' conftest.$ac_ext >&5 |
26424 | ||
d3ad40de | 26425 | ac_cv_member_struct_termios_c_line=no |
545f34cf | 26426 | fi |
d3ad40de CR |
26427 | |
26428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 26429 | fi |
d3ad40de CR |
26430 | |
26431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 26432 | fi |
dd4f3dd8 CR |
26433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5 |
26434 | $as_echo "$ac_cv_member_struct_termios_c_line" >&6; } | |
76af2125 | 26435 | if test $ac_cv_member_struct_termios_c_line = yes; then |
545f34cf CR |
26436 | cat >>confdefs.h <<\_ACEOF |
26437 | @%:@define TERMIOS_LDISC 1 | |
26438 | _ACEOF | |
26439 | ||
26440 | fi | |
26441 | ||
26442 | ||
26443 | ||
dd4f3dd8 CR |
26444 | { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5 |
26445 | $as_echo_n "checking for struct termio.c_line... " >&6; } | |
545f34cf | 26446 | if test "${ac_cv_member_struct_termio_c_line+set}" = set; then |
dd4f3dd8 | 26447 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26448 | else |
26449 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26450 | /* confdefs.h. */ |
26451 | _ACEOF | |
26452 | cat confdefs.h >>conftest.$ac_ext | |
26453 | cat >>conftest.$ac_ext <<_ACEOF | |
26454 | /* end confdefs.h. */ | |
26455 | ||
26456 | #include <sys/types.h> | |
26457 | #include <termio.h> | |
26458 | ||
26459 | ||
26460 | int | |
26461 | main () | |
26462 | { | |
26463 | static struct termio ac_aggr; | |
26464 | if (ac_aggr.c_line) | |
26465 | return 0; | |
26466 | ; | |
26467 | return 0; | |
26468 | } | |
26469 | _ACEOF | |
26470 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26471 | if { (ac_try="$ac_compile" |
26472 | case "(($ac_try" in | |
26473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26474 | *) ac_try_echo=$ac_try;; | |
26475 | esac | |
dd4f3dd8 CR |
26476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26477 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26478 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26479 | ac_status=$? |
a82a04b3 CR |
26480 | grep -v '^ *+' conftest.er1 >conftest.err |
26481 | rm -f conftest.er1 | |
26482 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26484 | (exit $ac_status); } && { | |
26485 | test -z "$ac_c_werror_flag" || | |
26486 | test ! -s conftest.err | |
26487 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26488 | ac_cv_member_struct_termio_c_line=yes |
26489 | else | |
dd4f3dd8 | 26490 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26491 | sed 's/^/| /' conftest.$ac_ext >&5 |
26492 | ||
d3ad40de | 26493 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
26494 | /* confdefs.h. */ |
26495 | _ACEOF | |
26496 | cat confdefs.h >>conftest.$ac_ext | |
26497 | cat >>conftest.$ac_ext <<_ACEOF | |
26498 | /* end confdefs.h. */ | |
26499 | ||
26500 | #include <sys/types.h> | |
26501 | #include <termio.h> | |
26502 | ||
26503 | ||
26504 | int | |
26505 | main () | |
26506 | { | |
26507 | static struct termio ac_aggr; | |
26508 | if (sizeof ac_aggr.c_line) | |
26509 | return 0; | |
26510 | ; | |
26511 | return 0; | |
26512 | } | |
26513 | _ACEOF | |
26514 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26515 | if { (ac_try="$ac_compile" |
26516 | case "(($ac_try" in | |
26517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26518 | *) ac_try_echo=$ac_try;; | |
26519 | esac | |
dd4f3dd8 CR |
26520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26521 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26522 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26523 | ac_status=$? |
a82a04b3 CR |
26524 | grep -v '^ *+' conftest.er1 >conftest.err |
26525 | rm -f conftest.er1 | |
26526 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26528 | (exit $ac_status); } && { | |
26529 | test -z "$ac_c_werror_flag" || | |
26530 | test ! -s conftest.err | |
26531 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26532 | ac_cv_member_struct_termio_c_line=yes |
26533 | else | |
dd4f3dd8 | 26534 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26535 | sed 's/^/| /' conftest.$ac_ext >&5 |
26536 | ||
d3ad40de | 26537 | ac_cv_member_struct_termio_c_line=no |
545f34cf | 26538 | fi |
d3ad40de CR |
26539 | |
26540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 26541 | fi |
d3ad40de CR |
26542 | |
26543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 26544 | fi |
dd4f3dd8 CR |
26545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5 |
26546 | $as_echo "$ac_cv_member_struct_termio_c_line" >&6; } | |
76af2125 | 26547 | if test $ac_cv_member_struct_termio_c_line = yes; then |
545f34cf CR |
26548 | cat >>confdefs.h <<\_ACEOF |
26549 | @%:@define TERMIO_LDISC 1 | |
26550 | _ACEOF | |
26551 | ||
26552 | fi | |
26553 | ||
26554 | ||
26555 | ||
dd4f3dd8 CR |
26556 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5 |
26557 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
545f34cf | 26558 | if test "${bash_cv_dirent_has_dino+set}" = set; then |
dd4f3dd8 | 26559 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26560 | else |
26561 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26562 | /* confdefs.h. */ |
26563 | _ACEOF | |
26564 | cat confdefs.h >>conftest.$ac_ext | |
26565 | cat >>conftest.$ac_ext <<_ACEOF | |
26566 | /* end confdefs.h. */ | |
26567 | ||
26568 | #include <stdio.h> | |
26569 | #include <sys/types.h> | |
26570 | #ifdef HAVE_UNISTD_H | |
26571 | # include <unistd.h> | |
26572 | #endif /* HAVE_UNISTD_H */ | |
26573 | #if defined(HAVE_DIRENT_H) | |
26574 | # include <dirent.h> | |
26575 | #else | |
26576 | # define dirent direct | |
26577 | # ifdef HAVE_SYS_NDIR_H | |
26578 | # include <sys/ndir.h> | |
26579 | # endif /* SYSNDIR */ | |
26580 | # ifdef HAVE_SYS_DIR_H | |
26581 | # include <sys/dir.h> | |
26582 | # endif /* SYSDIR */ | |
26583 | # ifdef HAVE_NDIR_H | |
26584 | # include <ndir.h> | |
26585 | # endif | |
26586 | #endif /* HAVE_DIRENT_H */ | |
26587 | ||
26588 | int | |
26589 | main () | |
26590 | { | |
26591 | ||
26592 | struct dirent d; int z; z = d.d_ino; | |
26593 | ||
26594 | ; | |
26595 | return 0; | |
26596 | } | |
26597 | _ACEOF | |
26598 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26599 | if { (ac_try="$ac_compile" |
26600 | case "(($ac_try" in | |
26601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26602 | *) ac_try_echo=$ac_try;; | |
26603 | esac | |
dd4f3dd8 CR |
26604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26605 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26606 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26607 | ac_status=$? |
a82a04b3 CR |
26608 | grep -v '^ *+' conftest.er1 >conftest.err |
26609 | rm -f conftest.er1 | |
26610 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26612 | (exit $ac_status); } && { | |
26613 | test -z "$ac_c_werror_flag" || | |
26614 | test ! -s conftest.err | |
26615 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26616 | bash_cv_dirent_has_dino=yes |
26617 | else | |
dd4f3dd8 | 26618 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26619 | sed 's/^/| /' conftest.$ac_ext >&5 |
26620 | ||
d3ad40de | 26621 | bash_cv_dirent_has_dino=no |
545f34cf | 26622 | fi |
d3ad40de CR |
26623 | |
26624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
26625 | fi |
26626 | ||
dd4f3dd8 CR |
26627 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 |
26628 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
545f34cf CR |
26629 | if test $bash_cv_dirent_has_dino = yes; then |
26630 | cat >>confdefs.h <<\_ACEOF | |
4931aca6 | 26631 | @%:@define HAVE_STRUCT_DIRENT_D_INO 1 |
545f34cf CR |
26632 | _ACEOF |
26633 | ||
26634 | fi | |
26635 | ||
26636 | ||
dd4f3dd8 CR |
26637 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5 |
26638 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
545f34cf | 26639 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then |
dd4f3dd8 | 26640 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26641 | else |
26642 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26643 | /* confdefs.h. */ |
26644 | _ACEOF | |
26645 | cat confdefs.h >>conftest.$ac_ext | |
26646 | cat >>conftest.$ac_ext <<_ACEOF | |
26647 | /* end confdefs.h. */ | |
26648 | ||
26649 | #include <stdio.h> | |
26650 | #include <sys/types.h> | |
26651 | #ifdef HAVE_UNISTD_H | |
26652 | # include <unistd.h> | |
26653 | #endif /* HAVE_UNISTD_H */ | |
26654 | #if defined(HAVE_DIRENT_H) | |
26655 | # include <dirent.h> | |
26656 | #else | |
26657 | # define dirent direct | |
26658 | # ifdef HAVE_SYS_NDIR_H | |
26659 | # include <sys/ndir.h> | |
26660 | # endif /* SYSNDIR */ | |
26661 | # ifdef HAVE_SYS_DIR_H | |
26662 | # include <sys/dir.h> | |
26663 | # endif /* SYSDIR */ | |
26664 | # ifdef HAVE_NDIR_H | |
26665 | # include <ndir.h> | |
26666 | # endif | |
26667 | #endif /* HAVE_DIRENT_H */ | |
26668 | ||
26669 | int | |
26670 | main () | |
26671 | { | |
26672 | ||
26673 | struct dirent d; int z; z = d.d_fileno; | |
26674 | ||
26675 | ; | |
26676 | return 0; | |
26677 | } | |
26678 | _ACEOF | |
26679 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26680 | if { (ac_try="$ac_compile" |
26681 | case "(($ac_try" in | |
26682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26683 | *) ac_try_echo=$ac_try;; | |
26684 | esac | |
dd4f3dd8 CR |
26685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26686 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26687 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26688 | ac_status=$? |
a82a04b3 CR |
26689 | grep -v '^ *+' conftest.er1 >conftest.err |
26690 | rm -f conftest.er1 | |
26691 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26692 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26693 | (exit $ac_status); } && { | |
26694 | test -z "$ac_c_werror_flag" || | |
26695 | test ! -s conftest.err | |
26696 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26697 | bash_cv_dirent_has_d_fileno=yes |
26698 | else | |
dd4f3dd8 | 26699 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26700 | sed 's/^/| /' conftest.$ac_ext >&5 |
26701 | ||
d3ad40de | 26702 | bash_cv_dirent_has_d_fileno=no |
545f34cf | 26703 | fi |
d3ad40de CR |
26704 | |
26705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
26706 | fi |
26707 | ||
dd4f3dd8 CR |
26708 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 |
26709 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
545f34cf CR |
26710 | if test $bash_cv_dirent_has_d_fileno = yes; then |
26711 | cat >>confdefs.h <<\_ACEOF | |
4931aca6 CR |
26712 | @%:@define HAVE_STRUCT_DIRENT_D_FILENO 1 |
26713 | _ACEOF | |
26714 | ||
26715 | fi | |
26716 | ||
26717 | ||
dd4f3dd8 CR |
26718 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 |
26719 | $as_echo_n "checking for struct dirent.d_namlen... " >&6; } | |
4931aca6 | 26720 | if test "${bash_cv_dirent_has_d_namlen+set}" = set; then |
dd4f3dd8 | 26721 | $as_echo_n "(cached) " >&6 |
4931aca6 CR |
26722 | else |
26723 | cat >conftest.$ac_ext <<_ACEOF | |
4931aca6 CR |
26724 | /* confdefs.h. */ |
26725 | _ACEOF | |
26726 | cat confdefs.h >>conftest.$ac_ext | |
26727 | cat >>conftest.$ac_ext <<_ACEOF | |
26728 | /* end confdefs.h. */ | |
26729 | ||
26730 | #include <stdio.h> | |
26731 | #include <sys/types.h> | |
26732 | #ifdef HAVE_UNISTD_H | |
26733 | # include <unistd.h> | |
26734 | #endif /* HAVE_UNISTD_H */ | |
26735 | #if defined(HAVE_DIRENT_H) | |
26736 | # include <dirent.h> | |
26737 | #else | |
26738 | # define dirent direct | |
26739 | # ifdef HAVE_SYS_NDIR_H | |
26740 | # include <sys/ndir.h> | |
26741 | # endif /* SYSNDIR */ | |
26742 | # ifdef HAVE_SYS_DIR_H | |
26743 | # include <sys/dir.h> | |
26744 | # endif /* SYSDIR */ | |
26745 | # ifdef HAVE_NDIR_H | |
26746 | # include <ndir.h> | |
26747 | # endif | |
26748 | #endif /* HAVE_DIRENT_H */ | |
26749 | ||
26750 | int | |
26751 | main () | |
26752 | { | |
26753 | ||
26754 | struct dirent d; int z; z = d.d_namlen; | |
26755 | ||
26756 | ; | |
26757 | return 0; | |
26758 | } | |
26759 | _ACEOF | |
26760 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26761 | if { (ac_try="$ac_compile" |
26762 | case "(($ac_try" in | |
26763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26764 | *) ac_try_echo=$ac_try;; | |
26765 | esac | |
dd4f3dd8 CR |
26766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26767 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26768 | (eval "$ac_compile") 2>conftest.er1 |
4931aca6 | 26769 | ac_status=$? |
a82a04b3 CR |
26770 | grep -v '^ *+' conftest.er1 >conftest.err |
26771 | rm -f conftest.er1 | |
26772 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26774 | (exit $ac_status); } && { | |
26775 | test -z "$ac_c_werror_flag" || | |
26776 | test ! -s conftest.err | |
26777 | } && test -s conftest.$ac_objext; then | |
4931aca6 CR |
26778 | bash_cv_dirent_has_d_namlen=yes |
26779 | else | |
dd4f3dd8 | 26780 | $as_echo "$as_me: failed program was:" >&5 |
4931aca6 CR |
26781 | sed 's/^/| /' conftest.$ac_ext >&5 |
26782 | ||
d3ad40de | 26783 | bash_cv_dirent_has_d_namlen=no |
4931aca6 | 26784 | fi |
d3ad40de CR |
26785 | |
26786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4931aca6 CR |
26787 | fi |
26788 | ||
dd4f3dd8 CR |
26789 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5 |
26790 | $as_echo "$bash_cv_dirent_has_d_namlen" >&6; } | |
4931aca6 CR |
26791 | if test $bash_cv_dirent_has_d_namlen = yes; then |
26792 | cat >>confdefs.h <<\_ACEOF | |
26793 | @%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1 | |
545f34cf CR |
26794 | _ACEOF |
26795 | ||
26796 | fi | |
26797 | ||
dd4f3dd8 CR |
26798 | { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
26799 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
545f34cf | 26800 | if test "${bash_cv_struct_winsize_header+set}" = set; then |
dd4f3dd8 | 26801 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26802 | else |
26803 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26804 | /* confdefs.h. */ |
26805 | _ACEOF | |
26806 | cat confdefs.h >>conftest.$ac_ext | |
26807 | cat >>conftest.$ac_ext <<_ACEOF | |
26808 | /* end confdefs.h. */ | |
26809 | #include <sys/types.h> | |
26810 | #include <sys/ioctl.h> | |
26811 | int | |
26812 | main () | |
26813 | { | |
26814 | struct winsize x; | |
26815 | ; | |
26816 | return 0; | |
26817 | } | |
26818 | _ACEOF | |
26819 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26820 | if { (ac_try="$ac_compile" |
26821 | case "(($ac_try" in | |
26822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26823 | *) ac_try_echo=$ac_try;; | |
26824 | esac | |
dd4f3dd8 CR |
26825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26826 | $as_echo "$ac_try_echo") >&5 | |
26827 | (eval "$ac_compile") 2>conftest.er1 | |
2e4498b3 | 26828 | ac_status=$? |
dd4f3dd8 CR |
26829 | grep -v '^ *+' conftest.er1 >conftest.err |
26830 | rm -f conftest.er1 | |
26831 | cat conftest.err >&5 | |
26832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26833 | (exit $ac_status); } && { | |
26834 | test -z "$ac_c_werror_flag" || | |
26835 | test ! -s conftest.err | |
26836 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26837 | bash_cv_struct_winsize_header=ioctl_h |
26838 | else | |
dd4f3dd8 | 26839 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26840 | sed 's/^/| /' conftest.$ac_ext >&5 |
26841 | ||
d3ad40de | 26842 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
26843 | /* confdefs.h. */ |
26844 | _ACEOF | |
26845 | cat confdefs.h >>conftest.$ac_ext | |
26846 | cat >>conftest.$ac_ext <<_ACEOF | |
26847 | /* end confdefs.h. */ | |
26848 | #include <sys/types.h> | |
26849 | #include <termios.h> | |
26850 | int | |
26851 | main () | |
26852 | { | |
26853 | struct winsize x; | |
26854 | ; | |
26855 | return 0; | |
26856 | } | |
26857 | _ACEOF | |
26858 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26859 | if { (ac_try="$ac_compile" |
26860 | case "(($ac_try" in | |
26861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26862 | *) ac_try_echo=$ac_try;; | |
26863 | esac | |
dd4f3dd8 CR |
26864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26865 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26866 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26867 | ac_status=$? |
a82a04b3 CR |
26868 | grep -v '^ *+' conftest.er1 >conftest.err |
26869 | rm -f conftest.er1 | |
26870 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26872 | (exit $ac_status); } && { | |
26873 | test -z "$ac_c_werror_flag" || | |
26874 | test ! -s conftest.err | |
26875 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
26876 | bash_cv_struct_winsize_header=termios_h |
26877 | else | |
dd4f3dd8 | 26878 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
26879 | sed 's/^/| /' conftest.$ac_ext >&5 |
26880 | ||
d3ad40de | 26881 | bash_cv_struct_winsize_header=other |
545f34cf | 26882 | fi |
d3ad40de CR |
26883 | |
26884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
26885 | |
26886 | fi | |
d3ad40de CR |
26887 | |
26888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
26889 | fi |
26890 | ||
26891 | if test $bash_cv_struct_winsize_header = ioctl_h; then | |
dd4f3dd8 CR |
26892 | { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 |
26893 | $as_echo "sys/ioctl.h" >&6; } | |
545f34cf CR |
26894 | cat >>confdefs.h <<\_ACEOF |
26895 | @%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1 | |
26896 | _ACEOF | |
26897 | ||
26898 | elif test $bash_cv_struct_winsize_header = termios_h; then | |
dd4f3dd8 CR |
26899 | { $as_echo "$as_me:$LINENO: result: termios.h" >&5 |
26900 | $as_echo "termios.h" >&6; } | |
545f34cf CR |
26901 | cat >>confdefs.h <<\_ACEOF |
26902 | @%:@define STRUCT_WINSIZE_IN_TERMIOS 1 | |
26903 | _ACEOF | |
26904 | ||
26905 | else | |
dd4f3dd8 CR |
26906 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
26907 | $as_echo "not found" >&6; } | |
545f34cf CR |
26908 | fi |
26909 | ||
dd4f3dd8 CR |
26910 | { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5 |
26911 | $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; } | |
545f34cf | 26912 | if test "${bash_cv_struct_timeval+set}" = set; then |
dd4f3dd8 | 26913 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26914 | else |
26915 | ||
26916 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26917 | /* confdefs.h. */ |
26918 | _ACEOF | |
26919 | cat confdefs.h >>conftest.$ac_ext | |
26920 | cat >>conftest.$ac_ext <<_ACEOF | |
26921 | /* end confdefs.h. */ | |
26922 | #include <sys/time.h> | |
26923 | ||
26924 | _ACEOF | |
26925 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
26926 | $EGREP "struct timeval" >/dev/null 2>&1; then | |
26927 | bash_cv_struct_timeval=yes | |
26928 | else | |
26929 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26930 | /* confdefs.h. */ |
26931 | _ACEOF | |
26932 | cat confdefs.h >>conftest.$ac_ext | |
26933 | cat >>conftest.$ac_ext <<_ACEOF | |
26934 | /* end confdefs.h. */ | |
26935 | #include <time.h> | |
26936 | ||
26937 | _ACEOF | |
26938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
26939 | $EGREP "struct timeval" >/dev/null 2>&1; then | |
26940 | bash_cv_struct_timeval=yes | |
26941 | else | |
26942 | bash_cv_struct_timeval=no | |
26943 | fi | |
26944 | rm -f conftest* | |
26945 | ||
26946 | fi | |
26947 | rm -f conftest* | |
26948 | ||
26949 | ||
26950 | fi | |
26951 | ||
dd4f3dd8 CR |
26952 | { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5 |
26953 | $as_echo "$bash_cv_struct_timeval" >&6; } | |
545f34cf CR |
26954 | if test $bash_cv_struct_timeval = yes; then |
26955 | cat >>confdefs.h <<\_ACEOF | |
26956 | @%:@define HAVE_TIMEVAL 1 | |
26957 | _ACEOF | |
26958 | ||
26959 | fi | |
26960 | ||
dd4f3dd8 CR |
26961 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
26962 | $as_echo_n "checking for struct stat.st_blocks... " >&6; } | |
545f34cf | 26963 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
dd4f3dd8 | 26964 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
26965 | else |
26966 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
26967 | /* confdefs.h. */ |
26968 | _ACEOF | |
26969 | cat confdefs.h >>conftest.$ac_ext | |
26970 | cat >>conftest.$ac_ext <<_ACEOF | |
26971 | /* end confdefs.h. */ | |
26972 | $ac_includes_default | |
26973 | int | |
26974 | main () | |
26975 | { | |
26976 | static struct stat ac_aggr; | |
26977 | if (ac_aggr.st_blocks) | |
26978 | return 0; | |
26979 | ; | |
26980 | return 0; | |
26981 | } | |
26982 | _ACEOF | |
26983 | rm -f conftest.$ac_objext | |
d3ad40de CR |
26984 | if { (ac_try="$ac_compile" |
26985 | case "(($ac_try" in | |
26986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26987 | *) ac_try_echo=$ac_try;; | |
26988 | esac | |
dd4f3dd8 CR |
26989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
26990 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 26991 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 26992 | ac_status=$? |
a82a04b3 CR |
26993 | grep -v '^ *+' conftest.er1 >conftest.err |
26994 | rm -f conftest.er1 | |
26995 | cat conftest.err >&5 | |
dd4f3dd8 CR |
26996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26997 | (exit $ac_status); } && { | |
26998 | test -z "$ac_c_werror_flag" || | |
26999 | test ! -s conftest.err | |
27000 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
27001 | ac_cv_member_struct_stat_st_blocks=yes |
27002 | else | |
dd4f3dd8 | 27003 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
27004 | sed 's/^/| /' conftest.$ac_ext >&5 |
27005 | ||
d3ad40de | 27006 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
27007 | /* confdefs.h. */ |
27008 | _ACEOF | |
27009 | cat confdefs.h >>conftest.$ac_ext | |
27010 | cat >>conftest.$ac_ext <<_ACEOF | |
27011 | /* end confdefs.h. */ | |
27012 | $ac_includes_default | |
27013 | int | |
27014 | main () | |
27015 | { | |
27016 | static struct stat ac_aggr; | |
27017 | if (sizeof ac_aggr.st_blocks) | |
27018 | return 0; | |
27019 | ; | |
27020 | return 0; | |
27021 | } | |
27022 | _ACEOF | |
27023 | rm -f conftest.$ac_objext | |
d3ad40de CR |
27024 | if { (ac_try="$ac_compile" |
27025 | case "(($ac_try" in | |
27026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27027 | *) ac_try_echo=$ac_try;; | |
27028 | esac | |
dd4f3dd8 CR |
27029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27030 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27031 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 27032 | ac_status=$? |
a82a04b3 CR |
27033 | grep -v '^ *+' conftest.er1 >conftest.err |
27034 | rm -f conftest.er1 | |
27035 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27037 | (exit $ac_status); } && { | |
27038 | test -z "$ac_c_werror_flag" || | |
27039 | test ! -s conftest.err | |
27040 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
27041 | ac_cv_member_struct_stat_st_blocks=yes |
27042 | else | |
dd4f3dd8 | 27043 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
27044 | sed 's/^/| /' conftest.$ac_ext >&5 |
27045 | ||
d3ad40de | 27046 | ac_cv_member_struct_stat_st_blocks=no |
545f34cf | 27047 | fi |
d3ad40de CR |
27048 | |
27049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 27050 | fi |
d3ad40de CR |
27051 | |
27052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 27053 | fi |
dd4f3dd8 CR |
27054 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
27055 | $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; } | |
76af2125 | 27056 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
545f34cf CR |
27057 | |
27058 | cat >>confdefs.h <<_ACEOF | |
27059 | @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
27060 | _ACEOF | |
27061 | ||
27062 | ||
27063 | fi | |
27064 | ||
dd4f3dd8 CR |
27065 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
27066 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
545f34cf | 27067 | if test "${ac_cv_struct_tm+set}" = set; then |
dd4f3dd8 | 27068 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27069 | else |
27070 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27071 | /* confdefs.h. */ |
27072 | _ACEOF | |
27073 | cat confdefs.h >>conftest.$ac_ext | |
27074 | cat >>conftest.$ac_ext <<_ACEOF | |
27075 | /* end confdefs.h. */ | |
27076 | #include <sys/types.h> | |
27077 | #include <time.h> | |
27078 | ||
27079 | int | |
27080 | main () | |
27081 | { | |
dd4f3dd8 CR |
27082 | struct tm tm; |
27083 | int *p = &tm.tm_sec; | |
27084 | return !p; | |
545f34cf CR |
27085 | ; |
27086 | return 0; | |
27087 | } | |
27088 | _ACEOF | |
27089 | rm -f conftest.$ac_objext | |
d3ad40de CR |
27090 | if { (ac_try="$ac_compile" |
27091 | case "(($ac_try" in | |
27092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27093 | *) ac_try_echo=$ac_try;; | |
27094 | esac | |
dd4f3dd8 CR |
27095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27096 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27097 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 27098 | ac_status=$? |
a82a04b3 CR |
27099 | grep -v '^ *+' conftest.er1 >conftest.err |
27100 | rm -f conftest.er1 | |
27101 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27103 | (exit $ac_status); } && { | |
27104 | test -z "$ac_c_werror_flag" || | |
27105 | test ! -s conftest.err | |
27106 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
27107 | ac_cv_struct_tm=time.h |
27108 | else | |
dd4f3dd8 | 27109 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
27110 | sed 's/^/| /' conftest.$ac_ext >&5 |
27111 | ||
d3ad40de | 27112 | ac_cv_struct_tm=sys/time.h |
545f34cf | 27113 | fi |
d3ad40de CR |
27114 | |
27115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf | 27116 | fi |
dd4f3dd8 CR |
27117 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
27118 | $as_echo "$ac_cv_struct_tm" >&6; } | |
545f34cf CR |
27119 | if test $ac_cv_struct_tm = sys/time.h; then |
27120 | ||
27121 | cat >>confdefs.h <<\_ACEOF | |
27122 | @%:@define TM_IN_SYS_TIME 1 | |
27123 | _ACEOF | |
27124 | ||
27125 | fi | |
27126 | ||
dd4f3dd8 CR |
27127 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
27128 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } | |
545f34cf | 27129 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
dd4f3dd8 | 27130 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27131 | else |
27132 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27133 | /* confdefs.h. */ |
27134 | _ACEOF | |
27135 | cat confdefs.h >>conftest.$ac_ext | |
27136 | cat >>conftest.$ac_ext <<_ACEOF | |
27137 | /* end confdefs.h. */ | |
27138 | #include <sys/types.h> | |
27139 | #include <$ac_cv_struct_tm> | |
27140 | ||
27141 | ||
27142 | int | |
27143 | main () | |
27144 | { | |
27145 | static struct tm ac_aggr; | |
27146 | if (ac_aggr.tm_zone) | |
27147 | return 0; | |
27148 | ; | |
27149 | return 0; | |
27150 | } | |
27151 | _ACEOF | |
27152 | rm -f conftest.$ac_objext | |
d3ad40de CR |
27153 | if { (ac_try="$ac_compile" |
27154 | case "(($ac_try" in | |
27155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27156 | *) ac_try_echo=$ac_try;; | |
27157 | esac | |
dd4f3dd8 CR |
27158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27159 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27160 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 27161 | ac_status=$? |
a82a04b3 CR |
27162 | grep -v '^ *+' conftest.er1 >conftest.err |
27163 | rm -f conftest.er1 | |
27164 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27166 | (exit $ac_status); } && { | |
27167 | test -z "$ac_c_werror_flag" || | |
27168 | test ! -s conftest.err | |
27169 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
27170 | ac_cv_member_struct_tm_tm_zone=yes |
27171 | else | |
dd4f3dd8 | 27172 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
27173 | sed 's/^/| /' conftest.$ac_ext >&5 |
27174 | ||
d3ad40de | 27175 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
27176 | /* confdefs.h. */ |
27177 | _ACEOF | |
27178 | cat confdefs.h >>conftest.$ac_ext | |
27179 | cat >>conftest.$ac_ext <<_ACEOF | |
27180 | /* end confdefs.h. */ | |
27181 | #include <sys/types.h> | |
27182 | #include <$ac_cv_struct_tm> | |
27183 | ||
27184 | ||
27185 | int | |
27186 | main () | |
27187 | { | |
27188 | static struct tm ac_aggr; | |
27189 | if (sizeof ac_aggr.tm_zone) | |
28157acd | 27190 | return 0; |
545f34cf CR |
27191 | ; |
27192 | return 0; | |
27193 | } | |
27194 | _ACEOF | |
9d6e5e30 | 27195 | rm -f conftest.$ac_objext |
d3ad40de CR |
27196 | if { (ac_try="$ac_compile" |
27197 | case "(($ac_try" in | |
27198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27199 | *) ac_try_echo=$ac_try;; | |
27200 | esac | |
dd4f3dd8 CR |
27201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27202 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de CR |
27203 | (eval "$ac_compile") 2>conftest.er1 |
27204 | ac_status=$? | |
27205 | grep -v '^ *+' conftest.er1 >conftest.err | |
27206 | rm -f conftest.er1 | |
27207 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27209 | (exit $ac_status); } && { | |
27210 | test -z "$ac_c_werror_flag" || | |
27211 | test ! -s conftest.err | |
27212 | } && test -s conftest.$ac_objext; then | |
d3ad40de CR |
27213 | ac_cv_member_struct_tm_tm_zone=yes |
27214 | else | |
dd4f3dd8 | 27215 | $as_echo "$as_me: failed program was:" >&5 |
d3ad40de CR |
27216 | sed 's/^/| /' conftest.$ac_ext >&5 |
27217 | ||
27218 | ac_cv_member_struct_tm_tm_zone=no | |
27219 | fi | |
27220 | ||
27221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27222 | fi | |
27223 | ||
27224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27225 | fi | |
dd4f3dd8 CR |
27226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
27227 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } | |
76af2125 | 27228 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
d3ad40de CR |
27229 | |
27230 | cat >>confdefs.h <<_ACEOF | |
27231 | @%:@define HAVE_STRUCT_TM_TM_ZONE 1 | |
27232 | _ACEOF | |
27233 | ||
27234 | ||
27235 | fi | |
27236 | ||
27237 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
27238 | ||
27239 | cat >>confdefs.h <<\_ACEOF | |
27240 | @%:@define HAVE_TM_ZONE 1 | |
27241 | _ACEOF | |
27242 | ||
27243 | else | |
dd4f3dd8 CR |
27244 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
27245 | $as_echo_n "checking whether tzname is declared... " >&6; } | |
d3ad40de | 27246 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
dd4f3dd8 | 27247 | $as_echo_n "(cached) " >&6 |
d3ad40de CR |
27248 | else |
27249 | cat >conftest.$ac_ext <<_ACEOF | |
27250 | /* confdefs.h. */ | |
27251 | _ACEOF | |
27252 | cat confdefs.h >>conftest.$ac_ext | |
27253 | cat >>conftest.$ac_ext <<_ACEOF | |
27254 | /* end confdefs.h. */ | |
27255 | #include <time.h> | |
27256 | ||
27257 | int | |
27258 | main () | |
27259 | { | |
27260 | #ifndef tzname | |
dd4f3dd8 | 27261 | (void) tzname; |
d3ad40de CR |
27262 | #endif |
27263 | ||
27264 | ; | |
27265 | return 0; | |
27266 | } | |
27267 | _ACEOF | |
27268 | rm -f conftest.$ac_objext | |
27269 | if { (ac_try="$ac_compile" | |
27270 | case "(($ac_try" in | |
27271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27272 | *) ac_try_echo=$ac_try;; | |
27273 | esac | |
dd4f3dd8 CR |
27274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27275 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27276 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 27277 | ac_status=$? |
a82a04b3 CR |
27278 | grep -v '^ *+' conftest.er1 >conftest.err |
27279 | rm -f conftest.er1 | |
27280 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27282 | (exit $ac_status); } && { | |
27283 | test -z "$ac_c_werror_flag" || | |
27284 | test ! -s conftest.err | |
27285 | } && test -s conftest.$ac_objext; then | |
d3ad40de | 27286 | ac_cv_have_decl_tzname=yes |
545f34cf | 27287 | else |
dd4f3dd8 | 27288 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
27289 | sed 's/^/| /' conftest.$ac_ext >&5 |
27290 | ||
d3ad40de | 27291 | ac_cv_have_decl_tzname=no |
545f34cf | 27292 | fi |
d3ad40de CR |
27293 | |
27294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
28157acd | 27295 | fi |
dd4f3dd8 CR |
27296 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
27297 | $as_echo "$ac_cv_have_decl_tzname" >&6; } | |
76af2125 | 27298 | if test $ac_cv_have_decl_tzname = yes; then |
9d6e5e30 CR |
27299 | |
27300 | cat >>confdefs.h <<_ACEOF | |
d3ad40de CR |
27301 | @%:@define HAVE_DECL_TZNAME 1 |
27302 | _ACEOF | |
27303 | ||
27304 | ||
27305 | else | |
27306 | cat >>confdefs.h <<_ACEOF | |
27307 | @%:@define HAVE_DECL_TZNAME 0 | |
9d6e5e30 CR |
27308 | _ACEOF |
27309 | ||
27310 | ||
545f34cf CR |
27311 | fi |
27312 | ||
9d6e5e30 | 27313 | |
dd4f3dd8 CR |
27314 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 |
27315 | $as_echo_n "checking for tzname... " >&6; } | |
9d6e5e30 | 27316 | if test "${ac_cv_var_tzname+set}" = set; then |
dd4f3dd8 | 27317 | $as_echo_n "(cached) " >&6 |
545f34cf | 27318 | else |
9d6e5e30 CR |
27319 | cat >conftest.$ac_ext <<_ACEOF |
27320 | /* confdefs.h. */ | |
27321 | _ACEOF | |
27322 | cat confdefs.h >>conftest.$ac_ext | |
27323 | cat >>conftest.$ac_ext <<_ACEOF | |
27324 | /* end confdefs.h. */ | |
27325 | #include <time.h> | |
d3ad40de CR |
27326 | #if !HAVE_DECL_TZNAME |
27327 | extern char *tzname[]; | |
9d6e5e30 CR |
27328 | #endif |
27329 | ||
27330 | int | |
27331 | main () | |
27332 | { | |
d3ad40de | 27333 | return tzname[0][0]; |
9d6e5e30 CR |
27334 | ; |
27335 | return 0; | |
27336 | } | |
27337 | _ACEOF | |
27338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
27339 | if { (ac_try="$ac_link" |
27340 | case "(($ac_try" in | |
27341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27342 | *) ac_try_echo=$ac_try;; | |
27343 | esac | |
dd4f3dd8 CR |
27344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27345 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27346 | (eval "$ac_link") 2>conftest.er1 |
9d6e5e30 CR |
27347 | ac_status=$? |
27348 | grep -v '^ *+' conftest.er1 >conftest.err | |
27349 | rm -f conftest.er1 | |
27350 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27352 | (exit $ac_status); } && { | |
27353 | test -z "$ac_c_werror_flag" || | |
27354 | test ! -s conftest.err | |
27355 | } && test -s conftest$ac_exeext && { | |
27356 | test "$cross_compiling" = yes || | |
27357 | $as_test_x conftest$ac_exeext | |
27358 | }; then | |
9d6e5e30 CR |
27359 | ac_cv_var_tzname=yes |
27360 | else | |
dd4f3dd8 | 27361 | $as_echo "$as_me: failed program was:" >&5 |
9d6e5e30 CR |
27362 | sed 's/^/| /' conftest.$ac_ext >&5 |
27363 | ||
d3ad40de | 27364 | ac_cv_var_tzname=no |
9d6e5e30 | 27365 | fi |
d3ad40de | 27366 | |
dd4f3dd8 CR |
27367 | rm -rf conftest.dSYM |
27368 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9d6e5e30 CR |
27369 | conftest$ac_exeext conftest.$ac_ext |
27370 | fi | |
dd4f3dd8 CR |
27371 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
27372 | $as_echo "$ac_cv_var_tzname" >&6; } | |
9d6e5e30 CR |
27373 | if test $ac_cv_var_tzname = yes; then |
27374 | ||
27375 | cat >>confdefs.h <<\_ACEOF | |
27376 | @%:@define HAVE_TZNAME 1 | |
27377 | _ACEOF | |
27378 | ||
27379 | fi | |
27380 | fi | |
27381 | ||
dd4f3dd8 CR |
27382 | { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5 |
27383 | $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; } | |
9d6e5e30 | 27384 | if test "${bash_cv_struct_timezone+set}" = set; then |
dd4f3dd8 | 27385 | $as_echo_n "(cached) " >&6 |
9d6e5e30 CR |
27386 | else |
27387 | ||
545f34cf | 27388 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
27389 | /* confdefs.h. */ |
27390 | _ACEOF | |
27391 | cat confdefs.h >>conftest.$ac_ext | |
27392 | cat >>conftest.$ac_ext <<_ACEOF | |
27393 | /* end confdefs.h. */ | |
27394 | #include <sys/time.h> | |
27395 | ||
27396 | _ACEOF | |
27397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
27398 | $EGREP "struct timezone" >/dev/null 2>&1; then | |
27399 | bash_cv_struct_timezone=yes | |
27400 | else | |
27401 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27402 | /* confdefs.h. */ |
27403 | _ACEOF | |
27404 | cat confdefs.h >>conftest.$ac_ext | |
27405 | cat >>conftest.$ac_ext <<_ACEOF | |
27406 | /* end confdefs.h. */ | |
27407 | #include <time.h> | |
27408 | ||
27409 | _ACEOF | |
27410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
27411 | $EGREP "struct timezone" >/dev/null 2>&1; then | |
27412 | bash_cv_struct_timezone=yes | |
27413 | else | |
27414 | bash_cv_struct_timezone=no | |
27415 | fi | |
27416 | rm -f conftest* | |
27417 | ||
27418 | fi | |
27419 | rm -f conftest* | |
27420 | ||
27421 | ||
27422 | fi | |
27423 | ||
dd4f3dd8 CR |
27424 | { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5 |
27425 | $as_echo "$bash_cv_struct_timezone" >&6; } | |
545f34cf CR |
27426 | if test $bash_cv_struct_timezone = yes; then |
27427 | cat >>confdefs.h <<\_ACEOF | |
27428 | @%:@define HAVE_STRUCT_TIMEZONE 1 | |
27429 | _ACEOF | |
27430 | ||
27431 | fi | |
27432 | ||
27433 | ||
dd4f3dd8 CR |
27434 | { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5 |
27435 | $as_echo_n "checking for the existence of strsignal... " >&6; } | |
545f34cf | 27436 | if test "${bash_cv_have_strsignal+set}" = set; then |
dd4f3dd8 | 27437 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27438 | else |
27439 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27440 | /* confdefs.h. */ |
27441 | _ACEOF | |
27442 | cat confdefs.h >>conftest.$ac_ext | |
27443 | cat >>conftest.$ac_ext <<_ACEOF | |
27444 | /* end confdefs.h. */ | |
27445 | #include <sys/types.h> | |
27446 | #include <signal.h> | |
27447 | int | |
27448 | main () | |
27449 | { | |
27450 | char *s = (char *)strsignal(2); | |
27451 | ; | |
27452 | return 0; | |
27453 | } | |
27454 | _ACEOF | |
27455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
27456 | if { (ac_try="$ac_link" |
27457 | case "(($ac_try" in | |
27458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27459 | *) ac_try_echo=$ac_try;; | |
27460 | esac | |
dd4f3dd8 CR |
27461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27462 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27463 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 27464 | ac_status=$? |
a82a04b3 CR |
27465 | grep -v '^ *+' conftest.er1 >conftest.err |
27466 | rm -f conftest.er1 | |
27467 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27469 | (exit $ac_status); } && { | |
27470 | test -z "$ac_c_werror_flag" || | |
27471 | test ! -s conftest.err | |
27472 | } && test -s conftest$ac_exeext && { | |
27473 | test "$cross_compiling" = yes || | |
27474 | $as_test_x conftest$ac_exeext | |
27475 | }; then | |
545f34cf CR |
27476 | bash_cv_have_strsignal=yes |
27477 | else | |
dd4f3dd8 | 27478 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
27479 | sed 's/^/| /' conftest.$ac_ext >&5 |
27480 | ||
d3ad40de | 27481 | bash_cv_have_strsignal=no |
545f34cf | 27482 | fi |
d3ad40de | 27483 | |
dd4f3dd8 CR |
27484 | rm -rf conftest.dSYM |
27485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 27486 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
27487 | fi |
27488 | ||
dd4f3dd8 CR |
27489 | { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5 |
27490 | $as_echo "$bash_cv_have_strsignal" >&6; } | |
545f34cf CR |
27491 | if test $bash_cv_have_strsignal = yes; then |
27492 | cat >>confdefs.h <<\_ACEOF | |
27493 | @%:@define HAVE_STRSIGNAL 1 | |
27494 | _ACEOF | |
27495 | ||
27496 | fi | |
27497 | ||
dd4f3dd8 CR |
27498 | { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5 |
27499 | $as_echo_n "checking if opendir() opens non-directories... " >&6; } | |
545f34cf | 27500 | if test "${bash_cv_opendir_not_robust+set}" = set; then |
dd4f3dd8 | 27501 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27502 | else |
27503 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
27504 | { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5 |
27505 | $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
27506 | bash_cv_opendir_not_robust=no |
27507 | ||
27508 | else | |
27509 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27510 | /* confdefs.h. */ |
27511 | _ACEOF | |
27512 | cat confdefs.h >>conftest.$ac_ext | |
27513 | cat >>conftest.$ac_ext <<_ACEOF | |
27514 | /* end confdefs.h. */ | |
27515 | ||
27516 | #include <stdio.h> | |
27517 | #include <sys/types.h> | |
27518 | #include <fcntl.h> | |
27519 | #ifdef HAVE_UNISTD_H | |
27520 | # include <unistd.h> | |
27521 | #endif /* HAVE_UNISTD_H */ | |
27522 | #if defined(HAVE_DIRENT_H) | |
27523 | # include <dirent.h> | |
27524 | #else | |
27525 | # define dirent direct | |
27526 | # ifdef HAVE_SYS_NDIR_H | |
27527 | # include <sys/ndir.h> | |
27528 | # endif /* SYSNDIR */ | |
27529 | # ifdef HAVE_SYS_DIR_H | |
27530 | # include <sys/dir.h> | |
27531 | # endif /* SYSDIR */ | |
27532 | # ifdef HAVE_NDIR_H | |
27533 | # include <ndir.h> | |
27534 | # endif | |
27535 | #endif /* HAVE_DIRENT_H */ | |
27536 | main() | |
27537 | { | |
27538 | DIR *dir; | |
27539 | int fd, err; | |
30915f17 | 27540 | err = mkdir("bash-aclocal", 0700); |
545f34cf CR |
27541 | if (err < 0) { |
27542 | perror("mkdir"); | |
27543 | exit(1); | |
27544 | } | |
30915f17 CR |
27545 | unlink("bash-aclocal/not_a_directory"); |
27546 | fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666); | |
545f34cf CR |
27547 | write(fd, "\n", 1); |
27548 | close(fd); | |
30915f17 CR |
27549 | dir = opendir("bash-aclocal/not_a_directory"); |
27550 | unlink("bash-aclocal/not_a_directory"); | |
27551 | rmdir("bash-aclocal"); | |
545f34cf CR |
27552 | exit (dir == 0); |
27553 | } | |
27554 | _ACEOF | |
27555 | rm -f conftest$ac_exeext | |
d3ad40de CR |
27556 | if { (ac_try="$ac_link" |
27557 | case "(($ac_try" in | |
27558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27559 | *) ac_try_echo=$ac_try;; | |
27560 | esac | |
dd4f3dd8 CR |
27561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27562 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27563 | (eval "$ac_link") 2>&5 |
545f34cf | 27564 | ac_status=$? |
dd4f3dd8 | 27565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 27566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
27567 | { (case "(($ac_try" in |
27568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27569 | *) ac_try_echo=$ac_try;; | |
27570 | esac | |
dd4f3dd8 CR |
27571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27572 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27573 | (eval "$ac_try") 2>&5 |
545f34cf | 27574 | ac_status=$? |
dd4f3dd8 | 27575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
27576 | (exit $ac_status); }; }; then |
27577 | bash_cv_opendir_not_robust=yes | |
27578 | else | |
dd4f3dd8 CR |
27579 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27580 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
27581 | sed 's/^/| /' conftest.$ac_ext >&5 |
27582 | ||
27583 | ( exit $ac_status ) | |
27584 | bash_cv_opendir_not_robust=no | |
27585 | fi | |
dd4f3dd8 | 27586 | rm -rf conftest.dSYM |
d3ad40de | 27587 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 27588 | fi |
d3ad40de CR |
27589 | |
27590 | ||
545f34cf CR |
27591 | fi |
27592 | ||
dd4f3dd8 CR |
27593 | { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5 |
27594 | $as_echo "$bash_cv_opendir_not_robust" >&6; } | |
545f34cf CR |
27595 | if test $bash_cv_opendir_not_robust = yes; then |
27596 | cat >>confdefs.h <<\_ACEOF | |
27597 | @%:@define OPENDIR_NOT_ROBUST 1 | |
27598 | _ACEOF | |
27599 | ||
27600 | fi | |
27601 | ||
dd4f3dd8 CR |
27602 | { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5 |
27603 | $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; } | |
545f34cf | 27604 | if test "${bash_cv_ulimit_maxfds+set}" = set; then |
dd4f3dd8 | 27605 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27606 | else |
27607 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
27608 | { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5 |
27609 | $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
27610 | bash_cv_ulimit_maxfds=no |
27611 | ||
27612 | else | |
27613 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27614 | /* confdefs.h. */ |
27615 | _ACEOF | |
27616 | cat confdefs.h >>conftest.$ac_ext | |
27617 | cat >>conftest.$ac_ext <<_ACEOF | |
27618 | /* end confdefs.h. */ | |
27619 | ||
27620 | main() | |
27621 | { | |
27622 | long maxfds = ulimit(4, 0L); | |
27623 | exit (maxfds == -1L); | |
27624 | } | |
27625 | ||
27626 | _ACEOF | |
27627 | rm -f conftest$ac_exeext | |
d3ad40de CR |
27628 | if { (ac_try="$ac_link" |
27629 | case "(($ac_try" in | |
27630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27631 | *) ac_try_echo=$ac_try;; | |
27632 | esac | |
dd4f3dd8 CR |
27633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27634 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27635 | (eval "$ac_link") 2>&5 |
545f34cf | 27636 | ac_status=$? |
dd4f3dd8 | 27637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 27638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
27639 | { (case "(($ac_try" in |
27640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27641 | *) ac_try_echo=$ac_try;; | |
27642 | esac | |
dd4f3dd8 CR |
27643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27644 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27645 | (eval "$ac_try") 2>&5 |
545f34cf | 27646 | ac_status=$? |
dd4f3dd8 | 27647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
27648 | (exit $ac_status); }; }; then |
27649 | bash_cv_ulimit_maxfds=yes | |
27650 | else | |
dd4f3dd8 CR |
27651 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27652 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
27653 | sed 's/^/| /' conftest.$ac_ext >&5 |
27654 | ||
27655 | ( exit $ac_status ) | |
27656 | bash_cv_ulimit_maxfds=no | |
27657 | fi | |
dd4f3dd8 | 27658 | rm -rf conftest.dSYM |
d3ad40de | 27659 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 27660 | fi |
d3ad40de | 27661 | |
547ef914 | 27662 | |
09767ff0 | 27663 | fi |
547ef914 | 27664 | |
dd4f3dd8 CR |
27665 | { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5 |
27666 | $as_echo "$bash_cv_ulimit_maxfds" >&6; } | |
2e4498b3 CR |
27667 | if test $bash_cv_ulimit_maxfds = yes; then |
27668 | cat >>confdefs.h <<\_ACEOF | |
27669 | @%:@define ULIMIT_MAXFDS 1 | |
27670 | _ACEOF | |
27671 | ||
27672 | fi | |
27673 | ||
27674 | ||
27675 | ||
53ac45a3 CR |
27676 | |
27677 | ||
27678 | ||
27679 | ||
27680 | ||
27681 | ||
27682 | ||
27683 | ||
27684 | ||
27685 | ||
27686 | ||
27687 | ||
27688 | ||
27689 | ||
27690 | ||
dd4f3dd8 CR |
27691 | { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5 |
27692 | $as_echo_n "checking whether fpurge is declared... " >&6; } | |
53ac45a3 | 27693 | if test "${ac_cv_have_decl_fpurge+set}" = set; then |
dd4f3dd8 | 27694 | $as_echo_n "(cached) " >&6 |
53ac45a3 CR |
27695 | else |
27696 | cat >conftest.$ac_ext <<_ACEOF | |
27697 | /* confdefs.h. */ | |
27698 | _ACEOF | |
27699 | cat confdefs.h >>conftest.$ac_ext | |
27700 | cat >>conftest.$ac_ext <<_ACEOF | |
27701 | /* end confdefs.h. */ | |
27702 | #include <stdio.h> | |
27703 | ||
27704 | int | |
27705 | main () | |
27706 | { | |
27707 | #ifndef fpurge | |
dd4f3dd8 | 27708 | (void) fpurge; |
53ac45a3 CR |
27709 | #endif |
27710 | ||
27711 | ; | |
27712 | return 0; | |
27713 | } | |
27714 | _ACEOF | |
27715 | rm -f conftest.$ac_objext | |
27716 | if { (ac_try="$ac_compile" | |
27717 | case "(($ac_try" in | |
27718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27719 | *) ac_try_echo=$ac_try;; | |
27720 | esac | |
dd4f3dd8 CR |
27721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27722 | $as_echo "$ac_try_echo") >&5 | |
53ac45a3 CR |
27723 | (eval "$ac_compile") 2>conftest.er1 |
27724 | ac_status=$? | |
27725 | grep -v '^ *+' conftest.er1 >conftest.err | |
27726 | rm -f conftest.er1 | |
27727 | cat conftest.err >&5 | |
dd4f3dd8 CR |
27728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27729 | (exit $ac_status); } && { | |
27730 | test -z "$ac_c_werror_flag" || | |
27731 | test ! -s conftest.err | |
27732 | } && test -s conftest.$ac_objext; then | |
53ac45a3 CR |
27733 | ac_cv_have_decl_fpurge=yes |
27734 | else | |
dd4f3dd8 | 27735 | $as_echo "$as_me: failed program was:" >&5 |
53ac45a3 CR |
27736 | sed 's/^/| /' conftest.$ac_ext >&5 |
27737 | ||
27738 | ac_cv_have_decl_fpurge=no | |
27739 | fi | |
27740 | ||
27741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27742 | fi | |
dd4f3dd8 CR |
27743 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5 |
27744 | $as_echo "$ac_cv_have_decl_fpurge" >&6; } | |
76af2125 | 27745 | if test $ac_cv_have_decl_fpurge = yes; then |
53ac45a3 CR |
27746 | |
27747 | cat >>confdefs.h <<_ACEOF | |
27748 | @%:@define HAVE_DECL_FPURGE 1 | |
27749 | _ACEOF | |
27750 | ||
27751 | ||
27752 | else | |
27753 | cat >>confdefs.h <<_ACEOF | |
27754 | @%:@define HAVE_DECL_FPURGE 0 | |
27755 | _ACEOF | |
27756 | ||
27757 | ||
27758 | fi | |
27759 | ||
27760 | ||
27761 | ||
dd4f3dd8 CR |
27762 | { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5 |
27763 | $as_echo_n "checking to see if getenv can be redefined... " >&6; } | |
545f34cf | 27764 | if test "${bash_cv_getenv_redef+set}" = set; then |
dd4f3dd8 | 27765 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27766 | else |
27767 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
27768 | { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5 |
27769 | $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;} | |
545f34cf CR |
27770 | bash_cv_getenv_redef=yes |
27771 | ||
27772 | else | |
27773 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27774 | /* confdefs.h. */ |
27775 | _ACEOF | |
27776 | cat confdefs.h >>conftest.$ac_ext | |
27777 | cat >>conftest.$ac_ext <<_ACEOF | |
27778 | /* end confdefs.h. */ | |
27779 | ||
27780 | #ifdef HAVE_UNISTD_H | |
27781 | # include <unistd.h> | |
27782 | #endif | |
27783 | #ifndef __STDC__ | |
27784 | # ifndef const | |
27785 | # define const | |
27786 | # endif | |
27787 | #endif | |
27788 | char * | |
27789 | getenv (name) | |
27790 | #if defined (__linux__) || defined (__bsdi__) || defined (convex) | |
27791 | const char *name; | |
27792 | #else | |
27793 | char const *name; | |
27794 | #endif /* !__linux__ && !__bsdi__ && !convex */ | |
27795 | { | |
27796 | return "42"; | |
27797 | } | |
27798 | main() | |
27799 | { | |
27800 | char *s; | |
27801 | /* The next allows this program to run, but does not allow bash to link | |
27802 | when it redefines getenv. I'm not really interested in figuring out | |
27803 | why not. */ | |
27804 | #if defined (NeXT) | |
27805 | exit(1); | |
27806 | #endif | |
27807 | s = getenv("ABCDE"); | |
27808 | exit(s == 0); /* force optimizer to leave getenv in */ | |
27809 | } | |
27810 | ||
27811 | _ACEOF | |
27812 | rm -f conftest$ac_exeext | |
d3ad40de CR |
27813 | if { (ac_try="$ac_link" |
27814 | case "(($ac_try" in | |
27815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27816 | *) ac_try_echo=$ac_try;; | |
27817 | esac | |
dd4f3dd8 CR |
27818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27819 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27820 | (eval "$ac_link") 2>&5 |
545f34cf | 27821 | ac_status=$? |
dd4f3dd8 | 27822 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 27823 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
27824 | { (case "(($ac_try" in |
27825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27826 | *) ac_try_echo=$ac_try;; | |
27827 | esac | |
dd4f3dd8 CR |
27828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27829 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27830 | (eval "$ac_try") 2>&5 |
545f34cf | 27831 | ac_status=$? |
dd4f3dd8 | 27832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
27833 | (exit $ac_status); }; }; then |
27834 | bash_cv_getenv_redef=yes | |
27835 | else | |
dd4f3dd8 CR |
27836 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27837 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
27838 | sed 's/^/| /' conftest.$ac_ext >&5 |
27839 | ||
27840 | ( exit $ac_status ) | |
27841 | bash_cv_getenv_redef=no | |
27842 | fi | |
dd4f3dd8 | 27843 | rm -rf conftest.dSYM |
d3ad40de | 27844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 27845 | fi |
d3ad40de CR |
27846 | |
27847 | ||
545f34cf CR |
27848 | fi |
27849 | ||
dd4f3dd8 CR |
27850 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5 |
27851 | $as_echo "$bash_cv_getenv_redef" >&6; } | |
545f34cf CR |
27852 | if test $bash_cv_getenv_redef = yes; then |
27853 | cat >>confdefs.h <<\_ACEOF | |
27854 | @%:@define CAN_REDEFINE_GETENV 1 | |
27855 | _ACEOF | |
27856 | ||
27857 | fi | |
27858 | ||
27859 | if test "$ac_cv_func_getcwd" = "yes"; then | |
dd4f3dd8 CR |
27860 | { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5 |
27861 | $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; } | |
f085a21f | 27862 | if test "${bash_cv_getcwd_malloc+set}" = set; then |
dd4f3dd8 | 27863 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27864 | else |
27865 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
27866 | { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5 |
27867 | $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;} | |
f085a21f | 27868 | bash_cv_getcwd_malloc=no |
545f34cf CR |
27869 | |
27870 | else | |
27871 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27872 | /* confdefs.h. */ |
27873 | _ACEOF | |
27874 | cat confdefs.h >>conftest.$ac_ext | |
27875 | cat >>conftest.$ac_ext <<_ACEOF | |
27876 | /* end confdefs.h. */ | |
27877 | ||
27878 | #include <stdio.h> | |
27879 | #ifdef HAVE_UNISTD_H | |
27880 | #include <unistd.h> | |
27881 | #endif | |
27882 | ||
545f34cf CR |
27883 | main() |
27884 | { | |
f085a21f CR |
27885 | char *xpwd; |
27886 | xpwd = getcwd(0, 0); | |
27887 | exit (xpwd == 0); | |
545f34cf CR |
27888 | } |
27889 | ||
27890 | _ACEOF | |
27891 | rm -f conftest$ac_exeext | |
d3ad40de CR |
27892 | if { (ac_try="$ac_link" |
27893 | case "(($ac_try" in | |
27894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27895 | *) ac_try_echo=$ac_try;; | |
27896 | esac | |
dd4f3dd8 CR |
27897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27898 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27899 | (eval "$ac_link") 2>&5 |
545f34cf | 27900 | ac_status=$? |
dd4f3dd8 | 27901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 27902 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
27903 | { (case "(($ac_try" in |
27904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27905 | *) ac_try_echo=$ac_try;; | |
27906 | esac | |
dd4f3dd8 CR |
27907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
27908 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 27909 | (eval "$ac_try") 2>&5 |
545f34cf | 27910 | ac_status=$? |
dd4f3dd8 | 27911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 27912 | (exit $ac_status); }; }; then |
f085a21f | 27913 | bash_cv_getcwd_malloc=yes |
545f34cf | 27914 | else |
dd4f3dd8 CR |
27915 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
27916 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
27917 | sed 's/^/| /' conftest.$ac_ext >&5 |
27918 | ||
27919 | ( exit $ac_status ) | |
f085a21f | 27920 | bash_cv_getcwd_malloc=no |
545f34cf | 27921 | fi |
dd4f3dd8 | 27922 | rm -rf conftest.dSYM |
d3ad40de | 27923 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 27924 | fi |
d3ad40de CR |
27925 | |
27926 | ||
545f34cf CR |
27927 | fi |
27928 | ||
dd4f3dd8 CR |
27929 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5 |
27930 | $as_echo "$bash_cv_getcwd_malloc" >&6; } | |
f085a21f | 27931 | if test $bash_cv_getcwd_malloc = no; then |
545f34cf CR |
27932 | cat >>confdefs.h <<\_ACEOF |
27933 | @%:@define GETCWD_BROKEN 1 | |
27934 | _ACEOF | |
27935 | ||
d3ad40de | 27936 | case " $LIB@&t@OBJS " in |
a82a04b3 | 27937 | *" getcwd.$ac_objext "* ) ;; |
d3ad40de CR |
27938 | *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext" |
27939 | ;; | |
a82a04b3 CR |
27940 | esac |
27941 | ||
545f34cf CR |
27942 | fi |
27943 | ||
27944 | fi | |
27945 | ||
dd4f3dd8 CR |
27946 | { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
27947 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
545f34cf | 27948 | if test "${bash_cv_func_sigsetjmp+set}" = set; then |
dd4f3dd8 | 27949 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
27950 | else |
27951 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
27952 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
27953 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
545f34cf CR |
27954 | bash_cv_func_sigsetjmp=missing |
27955 | ||
27956 | else | |
27957 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
27958 | /* confdefs.h. */ |
27959 | _ACEOF | |
27960 | cat confdefs.h >>conftest.$ac_ext | |
27961 | cat >>conftest.$ac_ext <<_ACEOF | |
27962 | /* end confdefs.h. */ | |
27963 | ||
27964 | #ifdef HAVE_UNISTD_H | |
27965 | #include <unistd.h> | |
27966 | #endif | |
27967 | #include <sys/types.h> | |
27968 | #include <signal.h> | |
27969 | #include <setjmp.h> | |
27970 | ||
27971 | main() | |
27972 | { | |
27973 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) | |
27974 | exit (1); | |
27975 | #else | |
27976 | ||
27977 | int code; | |
27978 | sigset_t set, oset; | |
27979 | sigjmp_buf xx; | |
27980 | ||
27981 | /* get the mask */ | |
27982 | sigemptyset(&set); | |
27983 | sigemptyset(&oset); | |
27984 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
27985 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
27986 | ||
27987 | /* save it */ | |
27988 | code = sigsetjmp(xx, 1); | |
27989 | if (code) | |
27990 | exit(0); /* could get sigmask and compare to oset here. */ | |
27991 | ||
27992 | /* change it */ | |
27993 | sigaddset(&set, SIGINT); | |
27994 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
27995 | ||
27996 | /* and siglongjmp */ | |
27997 | siglongjmp(xx, 10); | |
27998 | exit(1); | |
27999 | #endif | |
28000 | } | |
28001 | _ACEOF | |
28002 | rm -f conftest$ac_exeext | |
d3ad40de CR |
28003 | if { (ac_try="$ac_link" |
28004 | case "(($ac_try" in | |
28005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28006 | *) ac_try_echo=$ac_try;; | |
28007 | esac | |
dd4f3dd8 CR |
28008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28009 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28010 | (eval "$ac_link") 2>&5 |
545f34cf | 28011 | ac_status=$? |
dd4f3dd8 | 28012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 28013 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
28014 | { (case "(($ac_try" in |
28015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28016 | *) ac_try_echo=$ac_try;; | |
28017 | esac | |
dd4f3dd8 CR |
28018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28019 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28020 | (eval "$ac_try") 2>&5 |
545f34cf | 28021 | ac_status=$? |
dd4f3dd8 | 28022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
28023 | (exit $ac_status); }; }; then |
28024 | bash_cv_func_sigsetjmp=present | |
28025 | else | |
dd4f3dd8 CR |
28026 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28027 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
28028 | sed 's/^/| /' conftest.$ac_ext >&5 |
28029 | ||
28030 | ( exit $ac_status ) | |
28031 | bash_cv_func_sigsetjmp=missing | |
28032 | fi | |
dd4f3dd8 | 28033 | rm -rf conftest.dSYM |
d3ad40de | 28034 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 28035 | fi |
d3ad40de CR |
28036 | |
28037 | ||
545f34cf CR |
28038 | fi |
28039 | ||
dd4f3dd8 CR |
28040 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 |
28041 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
545f34cf CR |
28042 | if test $bash_cv_func_sigsetjmp = present; then |
28043 | cat >>confdefs.h <<\_ACEOF | |
28044 | @%:@define HAVE_POSIX_SIGSETJMP 1 | |
28045 | _ACEOF | |
28046 | ||
28047 | fi | |
28048 | ||
28049 | ||
dd4f3dd8 CR |
28050 | { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 |
28051 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
545f34cf | 28052 | if test "${bash_cv_func_strcoll_broken+set}" = set; then |
dd4f3dd8 | 28053 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28054 | else |
28055 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
28056 | { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
28057 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
28058 | bash_cv_func_strcoll_broken=no |
28059 | ||
28060 | else | |
28061 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28062 | /* confdefs.h. */ |
28063 | _ACEOF | |
28064 | cat confdefs.h >>conftest.$ac_ext | |
28065 | cat >>conftest.$ac_ext <<_ACEOF | |
28066 | /* end confdefs.h. */ | |
28067 | ||
28068 | #include <stdio.h> | |
28069 | #if defined (HAVE_LOCALE_H) | |
28070 | #include <locale.h> | |
28071 | #endif | |
28072 | ||
28073 | main(c, v) | |
28074 | int c; | |
28075 | char *v[]; | |
28076 | { | |
28077 | int r1, r2; | |
28078 | char *deflocale, *defcoll; | |
28079 | ||
28080 | #ifdef HAVE_SETLOCALE | |
28081 | deflocale = setlocale(LC_ALL, ""); | |
28082 | defcoll = setlocale(LC_COLLATE, ""); | |
28083 | #endif | |
28084 | ||
28085 | #ifdef HAVE_STRCOLL | |
28086 | /* These two values are taken from tests/glob-test. */ | |
28087 | r1 = strcoll("abd", "aXd"); | |
28088 | #else | |
28089 | r1 = 0; | |
28090 | #endif | |
28091 | r2 = strcmp("abd", "aXd"); | |
28092 | ||
28093 | /* These two should both be greater than 0. It is permissible for | |
28094 | a system to return different values, as long as the sign is the | |
28095 | same. */ | |
28096 | ||
28097 | /* Exit with 1 (failure) if these two values are both > 0, since | |
28098 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
28099 | in the default locale. */ | |
28100 | exit (r1 > 0 && r2 > 0); | |
28101 | } | |
28102 | ||
28103 | _ACEOF | |
28104 | rm -f conftest$ac_exeext | |
d3ad40de CR |
28105 | if { (ac_try="$ac_link" |
28106 | case "(($ac_try" in | |
28107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28108 | *) ac_try_echo=$ac_try;; | |
28109 | esac | |
dd4f3dd8 CR |
28110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28111 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28112 | (eval "$ac_link") 2>&5 |
545f34cf | 28113 | ac_status=$? |
dd4f3dd8 | 28114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 28115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
28116 | { (case "(($ac_try" in |
28117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28118 | *) ac_try_echo=$ac_try;; | |
28119 | esac | |
dd4f3dd8 CR |
28120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28121 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28122 | (eval "$ac_try") 2>&5 |
545f34cf | 28123 | ac_status=$? |
dd4f3dd8 | 28124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
28125 | (exit $ac_status); }; }; then |
28126 | bash_cv_func_strcoll_broken=yes | |
28127 | else | |
dd4f3dd8 CR |
28128 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28129 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
28130 | sed 's/^/| /' conftest.$ac_ext >&5 |
28131 | ||
28132 | ( exit $ac_status ) | |
28133 | bash_cv_func_strcoll_broken=no | |
28134 | fi | |
dd4f3dd8 | 28135 | rm -rf conftest.dSYM |
d3ad40de | 28136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 28137 | fi |
d3ad40de CR |
28138 | |
28139 | ||
545f34cf CR |
28140 | fi |
28141 | ||
dd4f3dd8 CR |
28142 | { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 |
28143 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
545f34cf CR |
28144 | if test $bash_cv_func_strcoll_broken = yes; then |
28145 | cat >>confdefs.h <<\_ACEOF | |
28146 | @%:@define STRCOLL_BROKEN 1 | |
28147 | _ACEOF | |
28148 | ||
28149 | fi | |
28150 | ||
28151 | ||
28152 | ||
28153 | if test "$ac_cv_func_putenv" = "yes"; then | |
28154 | ||
28155 | ||
28156 | ||
dd4f3dd8 CR |
28157 | { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5 |
28158 | $as_echo_n "checking for standard-conformant putenv declaration... " >&6; } | |
545f34cf | 28159 | if test "${bash_cv_std_putenv+set}" = set; then |
dd4f3dd8 | 28160 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28161 | else |
28162 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28163 | /* confdefs.h. */ |
28164 | _ACEOF | |
28165 | cat confdefs.h >>conftest.$ac_ext | |
28166 | cat >>conftest.$ac_ext <<_ACEOF | |
28167 | /* end confdefs.h. */ | |
28168 | ||
28169 | #if STDC_HEADERS | |
28170 | #include <stdlib.h> | |
28171 | #include <stddef.h> | |
28172 | #endif | |
28173 | #ifndef __STDC__ | |
28174 | # ifndef const | |
28175 | # define const | |
28176 | # endif | |
28177 | #endif | |
28178 | #ifdef PROTOTYPES | |
28179 | extern int putenv (char *); | |
28180 | #else | |
28181 | extern int putenv (); | |
28182 | #endif | |
28183 | ||
28184 | int | |
28185 | main () | |
28186 | { | |
28187 | return (putenv == 0); | |
28188 | ; | |
28189 | return 0; | |
28190 | } | |
28191 | _ACEOF | |
28192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
28193 | if { (ac_try="$ac_link" |
28194 | case "(($ac_try" in | |
28195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28196 | *) ac_try_echo=$ac_try;; | |
28197 | esac | |
dd4f3dd8 CR |
28198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28199 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28200 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 28201 | ac_status=$? |
a82a04b3 CR |
28202 | grep -v '^ *+' conftest.er1 >conftest.err |
28203 | rm -f conftest.er1 | |
28204 | cat conftest.err >&5 | |
dd4f3dd8 CR |
28205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28206 | (exit $ac_status); } && { | |
28207 | test -z "$ac_c_werror_flag" || | |
28208 | test ! -s conftest.err | |
28209 | } && test -s conftest$ac_exeext && { | |
28210 | test "$cross_compiling" = yes || | |
28211 | $as_test_x conftest$ac_exeext | |
28212 | }; then | |
545f34cf CR |
28213 | bash_cv_std_putenv=yes |
28214 | else | |
dd4f3dd8 | 28215 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
28216 | sed 's/^/| /' conftest.$ac_ext >&5 |
28217 | ||
d3ad40de | 28218 | bash_cv_std_putenv=no |
545f34cf CR |
28219 | |
28220 | fi | |
d3ad40de | 28221 | |
dd4f3dd8 CR |
28222 | rm -rf conftest.dSYM |
28223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 28224 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 28225 | fi |
dd4f3dd8 CR |
28226 | { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5 |
28227 | $as_echo "$bash_cv_std_putenv" >&6; } | |
545f34cf CR |
28228 | if test $bash_cv_std_putenv = yes; then |
28229 | cat >>confdefs.h <<\_ACEOF | |
28230 | @%:@define HAVE_STD_PUTENV 1 | |
28231 | _ACEOF | |
28232 | ||
28233 | fi | |
28234 | ||
28235 | else | |
28236 | cat >>confdefs.h <<\_ACEOF | |
28237 | @%:@define HAVE_STD_PUTENV 1 | |
28238 | _ACEOF | |
28239 | ||
28240 | fi | |
28241 | if test "$ac_cv_func_unsetenv" = "yes"; then | |
28242 | ||
28243 | ||
28244 | ||
dd4f3dd8 CR |
28245 | { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5 |
28246 | $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; } | |
545f34cf | 28247 | if test "${bash_cv_std_unsetenv+set}" = set; then |
dd4f3dd8 | 28248 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28249 | else |
28250 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28251 | /* confdefs.h. */ |
28252 | _ACEOF | |
28253 | cat confdefs.h >>conftest.$ac_ext | |
28254 | cat >>conftest.$ac_ext <<_ACEOF | |
28255 | /* end confdefs.h. */ | |
28256 | ||
28257 | #if STDC_HEADERS | |
28258 | #include <stdlib.h> | |
28259 | #include <stddef.h> | |
28260 | #endif | |
28261 | #ifndef __STDC__ | |
28262 | # ifndef const | |
28263 | # define const | |
28264 | # endif | |
28265 | #endif | |
28266 | #ifdef PROTOTYPES | |
28267 | extern int unsetenv (const char *); | |
28268 | #else | |
28269 | extern int unsetenv (); | |
28270 | #endif | |
28271 | ||
28272 | int | |
28273 | main () | |
28274 | { | |
28275 | return (unsetenv == 0); | |
28276 | ; | |
28277 | return 0; | |
28278 | } | |
28279 | _ACEOF | |
28280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
28281 | if { (ac_try="$ac_link" |
28282 | case "(($ac_try" in | |
28283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28284 | *) ac_try_echo=$ac_try;; | |
28285 | esac | |
dd4f3dd8 CR |
28286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28287 | $as_echo "$ac_try_echo") >&5 | |
28288 | (eval "$ac_link") 2>conftest.er1 | |
2e4498b3 | 28289 | ac_status=$? |
dd4f3dd8 CR |
28290 | grep -v '^ *+' conftest.er1 >conftest.err |
28291 | rm -f conftest.er1 | |
28292 | cat conftest.err >&5 | |
28293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28294 | (exit $ac_status); } && { | |
28295 | test -z "$ac_c_werror_flag" || | |
28296 | test ! -s conftest.err | |
28297 | } && test -s conftest$ac_exeext && { | |
28298 | test "$cross_compiling" = yes || | |
28299 | $as_test_x conftest$ac_exeext | |
28300 | }; then | |
545f34cf CR |
28301 | bash_cv_std_unsetenv=yes |
28302 | else | |
dd4f3dd8 | 28303 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
28304 | sed 's/^/| /' conftest.$ac_ext >&5 |
28305 | ||
d3ad40de | 28306 | bash_cv_std_unsetenv=no |
545f34cf CR |
28307 | |
28308 | fi | |
d3ad40de | 28309 | |
dd4f3dd8 CR |
28310 | rm -rf conftest.dSYM |
28311 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 28312 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 28313 | fi |
dd4f3dd8 CR |
28314 | { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5 |
28315 | $as_echo "$bash_cv_std_unsetenv" >&6; } | |
545f34cf CR |
28316 | if test $bash_cv_std_unsetenv = yes; then |
28317 | cat >>confdefs.h <<\_ACEOF | |
28318 | @%:@define HAVE_STD_UNSETENV 1 | |
28319 | _ACEOF | |
28320 | ||
28321 | fi | |
28322 | ||
28323 | else | |
28324 | cat >>confdefs.h <<\_ACEOF | |
28325 | @%:@define HAVE_STD_UNSETENV 1 | |
28326 | _ACEOF | |
28327 | ||
28328 | fi | |
28329 | ||
dd4f3dd8 CR |
28330 | { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5 |
28331 | $as_echo_n "checking for printf floating point output in hex notation... " >&6; } | |
545f34cf | 28332 | if test "${bash_cv_printf_a_format+set}" = set; then |
dd4f3dd8 | 28333 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28334 | else |
28335 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
28336 | { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5 |
28337 | $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
28338 | bash_cv_printf_a_format=no |
28339 | ||
28340 | else | |
28341 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28342 | /* confdefs.h. */ |
28343 | _ACEOF | |
28344 | cat confdefs.h >>conftest.$ac_ext | |
28345 | cat >>conftest.$ac_ext <<_ACEOF | |
28346 | /* end confdefs.h. */ | |
28347 | ||
28348 | #include <stdio.h> | |
28349 | #include <string.h> | |
28350 | ||
28351 | int | |
28352 | main() | |
28353 | { | |
28354 | double y = 0.0; | |
28355 | char abuf[1024]; | |
28356 | ||
28357 | sprintf(abuf, "%A", y); | |
28358 | exit(strchr(abuf, 'P') == (char *)0); | |
28359 | } | |
28360 | ||
28361 | _ACEOF | |
28362 | rm -f conftest$ac_exeext | |
d3ad40de CR |
28363 | if { (ac_try="$ac_link" |
28364 | case "(($ac_try" in | |
28365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28366 | *) ac_try_echo=$ac_try;; | |
28367 | esac | |
dd4f3dd8 CR |
28368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28369 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28370 | (eval "$ac_link") 2>&5 |
545f34cf | 28371 | ac_status=$? |
dd4f3dd8 | 28372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 28373 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
28374 | { (case "(($ac_try" in |
28375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28376 | *) ac_try_echo=$ac_try;; | |
28377 | esac | |
dd4f3dd8 CR |
28378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28379 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28380 | (eval "$ac_try") 2>&5 |
545f34cf | 28381 | ac_status=$? |
dd4f3dd8 | 28382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
28383 | (exit $ac_status); }; }; then |
28384 | bash_cv_printf_a_format=yes | |
28385 | else | |
dd4f3dd8 CR |
28386 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28387 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
28388 | sed 's/^/| /' conftest.$ac_ext >&5 |
28389 | ||
28390 | ( exit $ac_status ) | |
28391 | bash_cv_printf_a_format=no | |
28392 | fi | |
dd4f3dd8 | 28393 | rm -rf conftest.dSYM |
d3ad40de | 28394 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 28395 | fi |
d3ad40de CR |
28396 | |
28397 | ||
545f34cf CR |
28398 | fi |
28399 | ||
dd4f3dd8 CR |
28400 | { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5 |
28401 | $as_echo "$bash_cv_printf_a_format" >&6; } | |
545f34cf CR |
28402 | if test $bash_cv_printf_a_format = yes; then |
28403 | cat >>confdefs.h <<\_ACEOF | |
28404 | @%:@define HAVE_PRINTF_A_FORMAT 1 | |
28405 | _ACEOF | |
28406 | ||
28407 | fi | |
28408 | ||
28409 | ||
28410 | ||
28411 | ||
dd4f3dd8 CR |
28412 | { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 |
28413 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
545f34cf | 28414 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then |
dd4f3dd8 | 28415 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28416 | else |
28417 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
28418 | { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
28419 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
545f34cf CR |
28420 | bash_cv_must_reinstall_sighandlers=no |
28421 | ||
28422 | else | |
28423 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28424 | /* confdefs.h. */ |
28425 | _ACEOF | |
28426 | cat confdefs.h >>conftest.$ac_ext | |
28427 | cat >>conftest.$ac_ext <<_ACEOF | |
28428 | /* end confdefs.h. */ | |
28429 | ||
28430 | #include <signal.h> | |
28431 | #ifdef HAVE_UNISTD_H | |
28432 | #include <unistd.h> | |
28433 | #endif | |
28434 | ||
28435 | typedef RETSIGTYPE sigfunc(); | |
28436 | ||
28437 | int nsigint; | |
28438 | ||
28439 | #ifdef HAVE_POSIX_SIGNALS | |
28440 | sigfunc * | |
28441 | set_signal_handler(sig, handler) | |
28442 | int sig; | |
28443 | sigfunc *handler; | |
28444 | { | |
28445 | struct sigaction act, oact; | |
28446 | act.sa_handler = handler; | |
28447 | act.sa_flags = 0; | |
28448 | sigemptyset (&act.sa_mask); | |
28449 | sigemptyset (&oact.sa_mask); | |
28450 | sigaction (sig, &act, &oact); | |
28451 | return (oact.sa_handler); | |
28452 | } | |
28453 | #else | |
28454 | #define set_signal_handler(s, h) signal(s, h) | |
28455 | #endif | |
28456 | ||
28457 | RETSIGTYPE | |
28458 | sigint(s) | |
28459 | int s; | |
28460 | { | |
28461 | nsigint++; | |
28462 | } | |
28463 | ||
28464 | main() | |
28465 | { | |
28466 | nsigint = 0; | |
28467 | set_signal_handler(SIGINT, sigint); | |
28468 | kill((int)getpid(), SIGINT); | |
28469 | kill((int)getpid(), SIGINT); | |
28470 | exit(nsigint != 2); | |
28471 | } | |
28472 | ||
28473 | _ACEOF | |
28474 | rm -f conftest$ac_exeext | |
d3ad40de CR |
28475 | if { (ac_try="$ac_link" |
28476 | case "(($ac_try" in | |
28477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28478 | *) ac_try_echo=$ac_try;; | |
28479 | esac | |
dd4f3dd8 CR |
28480 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28481 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28482 | (eval "$ac_link") 2>&5 |
545f34cf | 28483 | ac_status=$? |
dd4f3dd8 | 28484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 28485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
28486 | { (case "(($ac_try" in |
28487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28488 | *) ac_try_echo=$ac_try;; | |
28489 | esac | |
dd4f3dd8 CR |
28490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28491 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28492 | (eval "$ac_try") 2>&5 |
545f34cf | 28493 | ac_status=$? |
dd4f3dd8 | 28494 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
28495 | (exit $ac_status); }; }; then |
28496 | bash_cv_must_reinstall_sighandlers=no | |
28497 | else | |
dd4f3dd8 CR |
28498 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28499 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
28500 | sed 's/^/| /' conftest.$ac_ext >&5 |
28501 | ||
28502 | ( exit $ac_status ) | |
28503 | bash_cv_must_reinstall_sighandlers=yes | |
28504 | fi | |
dd4f3dd8 | 28505 | rm -rf conftest.dSYM |
d3ad40de | 28506 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 28507 | fi |
d3ad40de CR |
28508 | |
28509 | ||
545f34cf CR |
28510 | fi |
28511 | ||
dd4f3dd8 CR |
28512 | { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 |
28513 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
545f34cf CR |
28514 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
28515 | cat >>confdefs.h <<\_ACEOF | |
28516 | @%:@define MUST_REINSTALL_SIGHANDLERS 1 | |
28517 | _ACEOF | |
28518 | ||
28519 | fi | |
28520 | ||
28521 | ||
dd4f3dd8 CR |
28522 | { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5 |
28523 | $as_echo_n "checking for presence of necessary job control definitions... " >&6; } | |
545f34cf | 28524 | if test "${bash_cv_job_control_missing+set}" = set; then |
dd4f3dd8 | 28525 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28526 | else |
28527 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
28528 | { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5 |
28529 | $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;} | |
545f34cf CR |
28530 | bash_cv_job_control_missing=missing |
28531 | ||
28532 | else | |
28533 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28534 | /* confdefs.h. */ |
28535 | _ACEOF | |
28536 | cat confdefs.h >>conftest.$ac_ext | |
28537 | cat >>conftest.$ac_ext <<_ACEOF | |
28538 | /* end confdefs.h. */ | |
28539 | ||
28540 | #include <sys/types.h> | |
28541 | #ifdef HAVE_SYS_WAIT_H | |
28542 | #include <sys/wait.h> | |
28543 | #endif | |
28544 | #ifdef HAVE_UNISTD_H | |
28545 | #include <unistd.h> | |
28546 | #endif | |
28547 | #include <signal.h> | |
28548 | ||
28549 | /* Add more tests in here as appropriate. */ | |
28550 | main() | |
28551 | { | |
28552 | /* signal type */ | |
28553 | #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS) | |
28554 | exit(1); | |
28555 | #endif | |
28556 | ||
28557 | /* signals and tty control. */ | |
28558 | #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT) | |
28559 | exit (1); | |
28560 | #endif | |
28561 | ||
28562 | /* process control */ | |
28563 | #if !defined (WNOHANG) || !defined (WUNTRACED) | |
28564 | exit(1); | |
28565 | #endif | |
28566 | ||
28567 | /* Posix systems have tcgetpgrp and waitpid. */ | |
28568 | #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP) | |
28569 | exit(1); | |
28570 | #endif | |
28571 | ||
28572 | #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID) | |
28573 | exit(1); | |
28574 | #endif | |
28575 | ||
28576 | /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */ | |
28577 | #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3) | |
28578 | exit(1); | |
28579 | #endif | |
28580 | ||
28581 | exit(0); | |
28582 | } | |
28583 | _ACEOF | |
28584 | rm -f conftest$ac_exeext | |
d3ad40de CR |
28585 | if { (ac_try="$ac_link" |
28586 | case "(($ac_try" in | |
28587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28588 | *) ac_try_echo=$ac_try;; | |
28589 | esac | |
dd4f3dd8 CR |
28590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28591 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28592 | (eval "$ac_link") 2>&5 |
545f34cf | 28593 | ac_status=$? |
dd4f3dd8 | 28594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 28595 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
28596 | { (case "(($ac_try" in |
28597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28598 | *) ac_try_echo=$ac_try;; | |
28599 | esac | |
dd4f3dd8 CR |
28600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28601 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28602 | (eval "$ac_try") 2>&5 |
545f34cf | 28603 | ac_status=$? |
dd4f3dd8 | 28604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
28605 | (exit $ac_status); }; }; then |
28606 | bash_cv_job_control_missing=present | |
28607 | else | |
dd4f3dd8 CR |
28608 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28609 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
28610 | sed 's/^/| /' conftest.$ac_ext >&5 |
28611 | ||
28612 | ( exit $ac_status ) | |
28613 | bash_cv_job_control_missing=missing | |
28614 | fi | |
dd4f3dd8 | 28615 | rm -rf conftest.dSYM |
d3ad40de | 28616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 28617 | fi |
d3ad40de CR |
28618 | |
28619 | ||
545f34cf CR |
28620 | fi |
28621 | ||
dd4f3dd8 CR |
28622 | { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5 |
28623 | $as_echo "$bash_cv_job_control_missing" >&6; } | |
545f34cf CR |
28624 | if test $bash_cv_job_control_missing = missing; then |
28625 | cat >>confdefs.h <<\_ACEOF | |
28626 | @%:@define JOB_CONTROL_MISSING 1 | |
28627 | _ACEOF | |
28628 | ||
28629 | fi | |
28630 | ||
dd4f3dd8 CR |
28631 | { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5 |
28632 | $as_echo_n "checking for presence of named pipes... " >&6; } | |
545f34cf | 28633 | if test "${bash_cv_sys_named_pipes+set}" = set; then |
dd4f3dd8 | 28634 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28635 | else |
28636 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
28637 | { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5 |
28638 | $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;} | |
545f34cf CR |
28639 | bash_cv_sys_named_pipes=missing |
28640 | ||
28641 | else | |
28642 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28643 | /* confdefs.h. */ |
28644 | _ACEOF | |
28645 | cat confdefs.h >>conftest.$ac_ext | |
28646 | cat >>conftest.$ac_ext <<_ACEOF | |
28647 | /* end confdefs.h. */ | |
28648 | ||
28649 | #include <sys/types.h> | |
28650 | #include <sys/stat.h> | |
28651 | #ifdef HAVE_UNISTD_H | |
28652 | #include <unistd.h> | |
28653 | #endif | |
28654 | ||
28655 | /* Add more tests in here as appropriate. */ | |
28656 | main() | |
28657 | { | |
28658 | int fd, err; | |
28659 | ||
28660 | #if defined (HAVE_MKFIFO) | |
28661 | exit (0); | |
28662 | #endif | |
28663 | ||
28664 | #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO)) | |
28665 | exit (1); | |
28666 | #endif | |
28667 | ||
28668 | #if defined (NeXT) | |
28669 | exit (1); | |
28670 | #endif | |
30915f17 | 28671 | err = mkdir("bash-aclocal", 0700); |
545f34cf CR |
28672 | if (err < 0) { |
28673 | perror ("mkdir"); | |
28674 | exit(1); | |
28675 | } | |
30915f17 | 28676 | fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0); |
545f34cf | 28677 | if (fd == -1) { |
30915f17 | 28678 | rmdir ("bash-aclocal"); |
545f34cf CR |
28679 | exit (1); |
28680 | } | |
28681 | close(fd); | |
30915f17 CR |
28682 | unlink ("bash-aclocal/sh-np-autoconf"); |
28683 | rmdir ("bash-aclocal"); | |
545f34cf CR |
28684 | exit(0); |
28685 | } | |
28686 | _ACEOF | |
28687 | rm -f conftest$ac_exeext | |
d3ad40de CR |
28688 | if { (ac_try="$ac_link" |
28689 | case "(($ac_try" in | |
28690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28691 | *) ac_try_echo=$ac_try;; | |
28692 | esac | |
dd4f3dd8 CR |
28693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28694 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28695 | (eval "$ac_link") 2>&5 |
545f34cf | 28696 | ac_status=$? |
dd4f3dd8 | 28697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 28698 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
28699 | { (case "(($ac_try" in |
28700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28701 | *) ac_try_echo=$ac_try;; | |
28702 | esac | |
dd4f3dd8 CR |
28703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28704 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28705 | (eval "$ac_try") 2>&5 |
545f34cf | 28706 | ac_status=$? |
dd4f3dd8 | 28707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
28708 | (exit $ac_status); }; }; then |
28709 | bash_cv_sys_named_pipes=present | |
28710 | else | |
dd4f3dd8 CR |
28711 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28712 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
28713 | sed 's/^/| /' conftest.$ac_ext >&5 |
28714 | ||
28715 | ( exit $ac_status ) | |
28716 | bash_cv_sys_named_pipes=missing | |
28717 | fi | |
dd4f3dd8 | 28718 | rm -rf conftest.dSYM |
d3ad40de | 28719 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 28720 | fi |
d3ad40de CR |
28721 | |
28722 | ||
545f34cf CR |
28723 | fi |
28724 | ||
dd4f3dd8 CR |
28725 | { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5 |
28726 | $as_echo "$bash_cv_sys_named_pipes" >&6; } | |
545f34cf CR |
28727 | if test $bash_cv_sys_named_pipes = missing; then |
28728 | cat >>confdefs.h <<\_ACEOF | |
28729 | @%:@define NAMED_PIPES_MISSING 1 | |
28730 | _ACEOF | |
28731 | ||
28732 | fi | |
28733 | ||
28734 | ||
dd4f3dd8 CR |
28735 | { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
28736 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
545f34cf | 28737 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then |
dd4f3dd8 | 28738 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28739 | else |
28740 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28741 | /* confdefs.h. */ |
28742 | _ACEOF | |
28743 | cat confdefs.h >>conftest.$ac_ext | |
28744 | cat >>conftest.$ac_ext <<_ACEOF | |
28745 | /* end confdefs.h. */ | |
28746 | #include <sys/types.h> | |
28747 | #include <termios.h> | |
28748 | #ifdef TIOCGWINSZ | |
28749 | yes | |
28750 | #endif | |
28751 | ||
28752 | _ACEOF | |
28753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28754 | $EGREP "yes" >/dev/null 2>&1; then | |
28755 | ac_cv_sys_tiocgwinsz_in_termios_h=yes | |
28756 | else | |
28757 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
28758 | fi | |
28759 | rm -f conftest* | |
28760 | ||
28761 | fi | |
dd4f3dd8 CR |
28762 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
28763 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
545f34cf CR |
28764 | |
28765 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then | |
dd4f3dd8 CR |
28766 | { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
28767 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
545f34cf | 28768 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then |
dd4f3dd8 | 28769 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28770 | else |
28771 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28772 | /* confdefs.h. */ |
28773 | _ACEOF | |
28774 | cat confdefs.h >>conftest.$ac_ext | |
28775 | cat >>conftest.$ac_ext <<_ACEOF | |
28776 | /* end confdefs.h. */ | |
28777 | #include <sys/types.h> | |
28778 | #include <sys/ioctl.h> | |
28779 | #ifdef TIOCGWINSZ | |
28780 | yes | |
28781 | #endif | |
28782 | ||
28783 | _ACEOF | |
28784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28785 | $EGREP "yes" >/dev/null 2>&1; then | |
28786 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes | |
28787 | else | |
28788 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no | |
28789 | fi | |
28790 | rm -f conftest* | |
28791 | ||
28792 | fi | |
dd4f3dd8 CR |
28793 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
28794 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
545f34cf CR |
28795 | |
28796 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then | |
28797 | ||
28798 | cat >>confdefs.h <<\_ACEOF | |
28799 | @%:@define GWINSZ_IN_SYS_IOCTL 1 | |
28800 | _ACEOF | |
28801 | ||
28802 | fi | |
28803 | fi | |
28804 | ||
dd4f3dd8 CR |
28805 | { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 |
28806 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
545f34cf | 28807 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then |
dd4f3dd8 | 28808 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28809 | else |
28810 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28811 | /* confdefs.h. */ |
28812 | _ACEOF | |
28813 | cat confdefs.h >>conftest.$ac_ext | |
28814 | cat >>conftest.$ac_ext <<_ACEOF | |
28815 | /* end confdefs.h. */ | |
28816 | #include <sys/types.h> | |
28817 | #include <sys/ioctl.h> | |
28818 | int | |
28819 | main () | |
28820 | { | |
28821 | int x = TIOCSTAT; | |
28822 | ; | |
28823 | return 0; | |
28824 | } | |
28825 | _ACEOF | |
28826 | rm -f conftest.$ac_objext | |
d3ad40de CR |
28827 | if { (ac_try="$ac_compile" |
28828 | case "(($ac_try" in | |
28829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28830 | *) ac_try_echo=$ac_try;; | |
28831 | esac | |
dd4f3dd8 CR |
28832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28833 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28834 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 28835 | ac_status=$? |
a82a04b3 CR |
28836 | grep -v '^ *+' conftest.er1 >conftest.err |
28837 | rm -f conftest.er1 | |
28838 | cat conftest.err >&5 | |
dd4f3dd8 CR |
28839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28840 | (exit $ac_status); } && { | |
28841 | test -z "$ac_c_werror_flag" || | |
28842 | test ! -s conftest.err | |
28843 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
28844 | bash_cv_tiocstat_in_ioctl=yes |
28845 | else | |
dd4f3dd8 | 28846 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
28847 | sed 's/^/| /' conftest.$ac_ext >&5 |
28848 | ||
d3ad40de | 28849 | bash_cv_tiocstat_in_ioctl=no |
545f34cf | 28850 | fi |
d3ad40de CR |
28851 | |
28852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
28853 | fi |
28854 | ||
dd4f3dd8 CR |
28855 | { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 |
28856 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
545f34cf CR |
28857 | if test $bash_cv_tiocstat_in_ioctl = yes; then |
28858 | cat >>confdefs.h <<\_ACEOF | |
28859 | @%:@define TIOCSTAT_IN_SYS_IOCTL 1 | |
28860 | _ACEOF | |
28861 | ||
28862 | fi | |
28863 | ||
dd4f3dd8 CR |
28864 | { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 |
28865 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
545f34cf | 28866 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then |
dd4f3dd8 | 28867 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
28868 | else |
28869 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
28870 | /* confdefs.h. */ |
28871 | _ACEOF | |
28872 | cat confdefs.h >>conftest.$ac_ext | |
28873 | cat >>conftest.$ac_ext <<_ACEOF | |
28874 | /* end confdefs.h. */ | |
28875 | #include <sys/types.h> | |
28876 | #include <sys/ioctl.h> | |
28877 | int | |
28878 | main () | |
28879 | { | |
28880 | int x = FIONREAD; | |
28881 | ; | |
28882 | return 0; | |
28883 | } | |
28884 | _ACEOF | |
28885 | rm -f conftest.$ac_objext | |
d3ad40de CR |
28886 | if { (ac_try="$ac_compile" |
28887 | case "(($ac_try" in | |
28888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28889 | *) ac_try_echo=$ac_try;; | |
28890 | esac | |
dd4f3dd8 CR |
28891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28892 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28893 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 28894 | ac_status=$? |
a82a04b3 CR |
28895 | grep -v '^ *+' conftest.er1 >conftest.err |
28896 | rm -f conftest.er1 | |
28897 | cat conftest.err >&5 | |
dd4f3dd8 CR |
28898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28899 | (exit $ac_status); } && { | |
28900 | test -z "$ac_c_werror_flag" || | |
28901 | test ! -s conftest.err | |
28902 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
28903 | bash_cv_fionread_in_ioctl=yes |
28904 | else | |
dd4f3dd8 | 28905 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
28906 | sed 's/^/| /' conftest.$ac_ext >&5 |
28907 | ||
d3ad40de | 28908 | bash_cv_fionread_in_ioctl=no |
545f34cf | 28909 | fi |
d3ad40de CR |
28910 | |
28911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
28912 | fi |
28913 | ||
dd4f3dd8 CR |
28914 | { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 |
28915 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
545f34cf CR |
28916 | if test $bash_cv_fionread_in_ioctl = yes; then |
28917 | cat >>confdefs.h <<\_ACEOF | |
28918 | @%:@define FIONREAD_IN_SYS_IOCTL 1 | |
28919 | _ACEOF | |
28920 | ||
28921 | fi | |
28922 | ||
28923 | ||
cac4cdbf | 28924 | |
dd4f3dd8 CR |
28925 | { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5 |
28926 | $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; } | |
cac4cdbf | 28927 | if test "${bash_cv_wcontinued_broken+set}" = set; then |
dd4f3dd8 | 28928 | $as_echo_n "(cached) " >&6 |
cac4cdbf CR |
28929 | else |
28930 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
28931 | { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5 |
28932 | $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;} | |
cac4cdbf CR |
28933 | bash_cv_wcontinued_broken=no |
28934 | ||
28935 | else | |
28936 | cat >conftest.$ac_ext <<_ACEOF | |
cac4cdbf CR |
28937 | /* confdefs.h. */ |
28938 | _ACEOF | |
28939 | cat confdefs.h >>conftest.$ac_ext | |
28940 | cat >>conftest.$ac_ext <<_ACEOF | |
28941 | /* end confdefs.h. */ | |
28942 | ||
28943 | #include <sys/types.h> | |
28944 | #include <sys/wait.h> | |
28945 | #include <unistd.h> | |
28946 | #include <errno.h> | |
28947 | ||
28948 | #ifndef errno | |
28949 | extern int errno; | |
28950 | #endif | |
28951 | main() | |
28952 | { | |
28953 | int x; | |
28954 | ||
28955 | x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); | |
28956 | if (x == -1 && errno == EINVAL) | |
28957 | exit (1); | |
28958 | else | |
28959 | exit (0); | |
28960 | } | |
28961 | ||
28962 | _ACEOF | |
28963 | rm -f conftest$ac_exeext | |
d3ad40de CR |
28964 | if { (ac_try="$ac_link" |
28965 | case "(($ac_try" in | |
28966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28967 | *) ac_try_echo=$ac_try;; | |
28968 | esac | |
dd4f3dd8 CR |
28969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28970 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28971 | (eval "$ac_link") 2>&5 |
cac4cdbf | 28972 | ac_status=$? |
dd4f3dd8 | 28973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cac4cdbf | 28974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
28975 | { (case "(($ac_try" in |
28976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28977 | *) ac_try_echo=$ac_try;; | |
28978 | esac | |
dd4f3dd8 CR |
28979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
28980 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 28981 | (eval "$ac_try") 2>&5 |
cac4cdbf | 28982 | ac_status=$? |
dd4f3dd8 | 28983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cac4cdbf CR |
28984 | (exit $ac_status); }; }; then |
28985 | bash_cv_wcontinued_broken=no | |
28986 | else | |
dd4f3dd8 CR |
28987 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
28988 | $as_echo "$as_me: failed program was:" >&5 | |
cac4cdbf CR |
28989 | sed 's/^/| /' conftest.$ac_ext >&5 |
28990 | ||
28991 | ( exit $ac_status ) | |
28992 | bash_cv_wcontinued_broken=yes | |
28993 | fi | |
dd4f3dd8 | 28994 | rm -rf conftest.dSYM |
d3ad40de | 28995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
cac4cdbf | 28996 | fi |
d3ad40de CR |
28997 | |
28998 | ||
cac4cdbf CR |
28999 | fi |
29000 | ||
dd4f3dd8 CR |
29001 | { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5 |
29002 | $as_echo "$bash_cv_wcontinued_broken" >&6; } | |
cac4cdbf CR |
29003 | if test $bash_cv_wcontinued_broken = yes; then |
29004 | cat >>confdefs.h <<\_ACEOF | |
29005 | @%:@define WCONTINUED_BROKEN 1 | |
29006 | _ACEOF | |
29007 | ||
29008 | fi | |
29009 | ||
29010 | ||
dd4f3dd8 CR |
29011 | { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 |
29012 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
545f34cf | 29013 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then |
dd4f3dd8 | 29014 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29015 | else |
29016 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29017 | /* confdefs.h. */ |
29018 | _ACEOF | |
29019 | cat confdefs.h >>conftest.$ac_ext | |
29020 | cat >>conftest.$ac_ext <<_ACEOF | |
29021 | /* end confdefs.h. */ | |
29022 | #include <sys/types.h> | |
29023 | int | |
29024 | main () | |
29025 | { | |
29026 | speed_t x; | |
29027 | ; | |
29028 | return 0; | |
29029 | } | |
29030 | _ACEOF | |
29031 | rm -f conftest.$ac_objext | |
d3ad40de CR |
29032 | if { (ac_try="$ac_compile" |
29033 | case "(($ac_try" in | |
29034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29035 | *) ac_try_echo=$ac_try;; | |
29036 | esac | |
dd4f3dd8 CR |
29037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29038 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29039 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 29040 | ac_status=$? |
a82a04b3 CR |
29041 | grep -v '^ *+' conftest.er1 >conftest.err |
29042 | rm -f conftest.er1 | |
29043 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29045 | (exit $ac_status); } && { | |
29046 | test -z "$ac_c_werror_flag" || | |
29047 | test ! -s conftest.err | |
29048 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
29049 | bash_cv_speed_t_in_sys_types=yes |
29050 | else | |
dd4f3dd8 | 29051 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29052 | sed 's/^/| /' conftest.$ac_ext >&5 |
29053 | ||
d3ad40de | 29054 | bash_cv_speed_t_in_sys_types=no |
545f34cf | 29055 | fi |
d3ad40de CR |
29056 | |
29057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
29058 | fi |
29059 | ||
dd4f3dd8 CR |
29060 | { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 |
29061 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
545f34cf CR |
29062 | if test $bash_cv_speed_t_in_sys_types = yes; then |
29063 | cat >>confdefs.h <<\_ACEOF | |
29064 | @%:@define SPEED_T_IN_SYS_TYPES 1 | |
29065 | _ACEOF | |
29066 | ||
29067 | fi | |
29068 | ||
dd4f3dd8 CR |
29069 | { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 |
29070 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
545f34cf | 29071 | if test "${bash_cv_getpw_declared+set}" = set; then |
dd4f3dd8 | 29072 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29073 | else |
29074 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29075 | /* confdefs.h. */ |
29076 | _ACEOF | |
29077 | cat confdefs.h >>conftest.$ac_ext | |
29078 | cat >>conftest.$ac_ext <<_ACEOF | |
29079 | /* end confdefs.h. */ | |
29080 | ||
29081 | #include <sys/types.h> | |
29082 | #ifdef HAVE_UNISTD_H | |
29083 | # include <unistd.h> | |
29084 | #endif | |
29085 | #include <pwd.h> | |
29086 | ||
29087 | _ACEOF | |
29088 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
29089 | $EGREP "getpwuid" >/dev/null 2>&1; then | |
29090 | bash_cv_getpw_declared=yes | |
29091 | else | |
29092 | bash_cv_getpw_declared=no | |
29093 | fi | |
29094 | rm -f conftest* | |
29095 | ||
29096 | fi | |
29097 | ||
dd4f3dd8 CR |
29098 | { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 |
29099 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
545f34cf CR |
29100 | if test $bash_cv_getpw_declared = yes; then |
29101 | cat >>confdefs.h <<\_ACEOF | |
29102 | @%:@define HAVE_GETPW_DECLS 1 | |
29103 | _ACEOF | |
29104 | ||
29105 | fi | |
29106 | ||
dd4f3dd8 CR |
29107 | { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5 |
29108 | $as_echo_n "checking for unusable real-time signals due to large values... " >&6; } | |
545f34cf | 29109 | if test "${bash_cv_unusable_rtsigs+set}" = set; then |
dd4f3dd8 | 29110 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29111 | else |
29112 | if test "$cross_compiling" = yes; then | |
dd4f3dd8 CR |
29113 | { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5 |
29114 | $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;} | |
545f34cf CR |
29115 | bash_cv_unusable_rtsigs=yes |
29116 | ||
29117 | else | |
29118 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29119 | /* confdefs.h. */ |
29120 | _ACEOF | |
29121 | cat confdefs.h >>conftest.$ac_ext | |
29122 | cat >>conftest.$ac_ext <<_ACEOF | |
29123 | /* end confdefs.h. */ | |
29124 | ||
29125 | #include <sys/types.h> | |
29126 | #include <signal.h> | |
29127 | ||
29128 | #ifndef NSIG | |
29129 | # define NSIG 64 | |
29130 | #endif | |
29131 | ||
29132 | main () | |
29133 | { | |
29134 | int n_sigs = 2 * NSIG; | |
29135 | #ifdef SIGRTMIN | |
29136 | int rtmin = SIGRTMIN; | |
29137 | #else | |
29138 | int rtmin = 0; | |
29139 | #endif | |
29140 | ||
29141 | exit(rtmin < n_sigs); | |
29142 | } | |
29143 | _ACEOF | |
29144 | rm -f conftest$ac_exeext | |
d3ad40de CR |
29145 | if { (ac_try="$ac_link" |
29146 | case "(($ac_try" in | |
29147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29148 | *) ac_try_echo=$ac_try;; | |
29149 | esac | |
dd4f3dd8 CR |
29150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29151 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29152 | (eval "$ac_link") 2>&5 |
545f34cf | 29153 | ac_status=$? |
dd4f3dd8 | 29154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf | 29155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ad40de CR |
29156 | { (case "(($ac_try" in |
29157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29158 | *) ac_try_echo=$ac_try;; | |
29159 | esac | |
dd4f3dd8 CR |
29160 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29161 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29162 | (eval "$ac_try") 2>&5 |
545f34cf | 29163 | ac_status=$? |
dd4f3dd8 | 29164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
545f34cf CR |
29165 | (exit $ac_status); }; }; then |
29166 | bash_cv_unusable_rtsigs=yes | |
29167 | else | |
dd4f3dd8 CR |
29168 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
29169 | $as_echo "$as_me: failed program was:" >&5 | |
545f34cf CR |
29170 | sed 's/^/| /' conftest.$ac_ext >&5 |
29171 | ||
29172 | ( exit $ac_status ) | |
29173 | bash_cv_unusable_rtsigs=no | |
29174 | fi | |
dd4f3dd8 | 29175 | rm -rf conftest.dSYM |
d3ad40de | 29176 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
545f34cf | 29177 | fi |
d3ad40de CR |
29178 | |
29179 | ||
545f34cf CR |
29180 | fi |
29181 | ||
dd4f3dd8 CR |
29182 | { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5 |
29183 | $as_echo "$bash_cv_unusable_rtsigs" >&6; } | |
545f34cf CR |
29184 | if test $bash_cv_unusable_rtsigs = yes; then |
29185 | cat >>confdefs.h <<\_ACEOF | |
29186 | @%:@define UNUSABLE_RT_SIGNALS 1 | |
29187 | _ACEOF | |
29188 | ||
29189 | fi | |
29190 | ||
29191 | ||
29192 | ||
29193 | ||
29194 | ||
29195 | if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then | |
29196 | SIGLIST_O=siglist.o | |
29197 | else | |
29198 | SIGLIST_O= | |
29199 | fi | |
29200 | ||
29201 | ||
29202 | ||
29203 | case "$host_os" in | |
dd4f3dd8 CR |
29204 | hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5 |
29205 | $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; } | |
545f34cf | 29206 | if test "${bash_cv_kernel_rlimit+set}" = set; then |
dd4f3dd8 | 29207 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29208 | else |
29209 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29210 | /* confdefs.h. */ |
29211 | _ACEOF | |
29212 | cat confdefs.h >>conftest.$ac_ext | |
29213 | cat >>conftest.$ac_ext <<_ACEOF | |
29214 | /* end confdefs.h. */ | |
29215 | ||
29216 | #include <sys/types.h> | |
29217 | #include <sys/resource.h> | |
29218 | ||
29219 | int | |
29220 | main () | |
29221 | { | |
29222 | ||
29223 | int f; | |
29224 | f = RLIMIT_DATA; | |
29225 | ||
29226 | ; | |
29227 | return 0; | |
29228 | } | |
29229 | _ACEOF | |
29230 | rm -f conftest.$ac_objext | |
d3ad40de CR |
29231 | if { (ac_try="$ac_compile" |
29232 | case "(($ac_try" in | |
29233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29234 | *) ac_try_echo=$ac_try;; | |
29235 | esac | |
dd4f3dd8 CR |
29236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29237 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29238 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 29239 | ac_status=$? |
a82a04b3 CR |
29240 | grep -v '^ *+' conftest.er1 >conftest.err |
29241 | rm -f conftest.er1 | |
29242 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29243 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29244 | (exit $ac_status); } && { | |
29245 | test -z "$ac_c_werror_flag" || | |
29246 | test ! -s conftest.err | |
29247 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
29248 | bash_cv_kernel_rlimit=no |
29249 | else | |
dd4f3dd8 | 29250 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29251 | sed 's/^/| /' conftest.$ac_ext >&5 |
29252 | ||
d3ad40de | 29253 | cat >conftest.$ac_ext <<_ACEOF |
545f34cf CR |
29254 | /* confdefs.h. */ |
29255 | _ACEOF | |
29256 | cat confdefs.h >>conftest.$ac_ext | |
29257 | cat >>conftest.$ac_ext <<_ACEOF | |
29258 | /* end confdefs.h. */ | |
29259 | ||
29260 | #include <sys/types.h> | |
29261 | #define _KERNEL | |
29262 | #include <sys/resource.h> | |
29263 | #undef _KERNEL | |
29264 | ||
29265 | int | |
29266 | main () | |
29267 | { | |
29268 | ||
29269 | int f; | |
29270 | f = RLIMIT_DATA; | |
29271 | ||
29272 | ; | |
29273 | return 0; | |
29274 | } | |
29275 | _ACEOF | |
29276 | rm -f conftest.$ac_objext | |
d3ad40de CR |
29277 | if { (ac_try="$ac_compile" |
29278 | case "(($ac_try" in | |
29279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29280 | *) ac_try_echo=$ac_try;; | |
29281 | esac | |
dd4f3dd8 CR |
29282 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29283 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29284 | (eval "$ac_compile") 2>conftest.er1 |
545f34cf | 29285 | ac_status=$? |
a82a04b3 CR |
29286 | grep -v '^ *+' conftest.er1 >conftest.err |
29287 | rm -f conftest.er1 | |
29288 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29289 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29290 | (exit $ac_status); } && { | |
29291 | test -z "$ac_c_werror_flag" || | |
29292 | test ! -s conftest.err | |
29293 | } && test -s conftest.$ac_objext; then | |
545f34cf CR |
29294 | bash_cv_kernel_rlimit=yes |
29295 | else | |
dd4f3dd8 | 29296 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29297 | sed 's/^/| /' conftest.$ac_ext >&5 |
29298 | ||
d3ad40de | 29299 | bash_cv_kernel_rlimit=no |
545f34cf | 29300 | fi |
d3ad40de CR |
29301 | |
29302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
29303 | |
29304 | fi | |
d3ad40de CR |
29305 | |
29306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
545f34cf CR |
29307 | fi |
29308 | ||
dd4f3dd8 CR |
29309 | { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5 |
29310 | $as_echo "$bash_cv_kernel_rlimit" >&6; } | |
545f34cf CR |
29311 | if test $bash_cv_kernel_rlimit = yes; then |
29312 | cat >>confdefs.h <<\_ACEOF | |
29313 | @%:@define RLIMIT_NEEDS_KERNEL 1 | |
29314 | _ACEOF | |
29315 | ||
29316 | fi | |
29317 | ;; | |
29318 | esac | |
29319 | ||
29320 | if test "$opt_readline" = yes; then | |
29321 | case "$host_os" in | |
29322 | aix*) prefer_curses=yes ;; | |
29323 | esac | |
29324 | ||
29325 | if test "X$bash_cv_termcap_lib" = "X"; then | |
29326 | _bash_needmsg=yes | |
29327 | else | |
dd4f3dd8 CR |
29328 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
29329 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
545f34cf CR |
29330 | _bash_needmsg= |
29331 | fi | |
29332 | if test "${bash_cv_termcap_lib+set}" = set; then | |
dd4f3dd8 | 29333 | $as_echo_n "(cached) " >&6 |
545f34cf | 29334 | else |
dd4f3dd8 CR |
29335 | { $as_echo "$as_me:$LINENO: checking for tgetent" >&5 |
29336 | $as_echo_n "checking for tgetent... " >&6; } | |
545f34cf | 29337 | if test "${ac_cv_func_tgetent+set}" = set; then |
dd4f3dd8 | 29338 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29339 | else |
29340 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29341 | /* confdefs.h. */ |
29342 | _ACEOF | |
29343 | cat confdefs.h >>conftest.$ac_ext | |
29344 | cat >>conftest.$ac_ext <<_ACEOF | |
29345 | /* end confdefs.h. */ | |
a82a04b3 CR |
29346 | /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. |
29347 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29348 | #define tgetent innocuous_tgetent | |
29349 | ||
545f34cf CR |
29350 | /* System header to define __stub macros and hopefully few prototypes, |
29351 | which can conflict with char tgetent (); below. | |
29352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29353 | <limits.h> exists even on freestanding compilers. */ | |
a82a04b3 | 29354 | |
545f34cf CR |
29355 | #ifdef __STDC__ |
29356 | # include <limits.h> | |
29357 | #else | |
29358 | # include <assert.h> | |
29359 | #endif | |
a82a04b3 CR |
29360 | |
29361 | #undef tgetent | |
29362 | ||
d3ad40de CR |
29363 | /* Override any GCC internal prototype to avoid an error. |
29364 | Use char because int might match the return type of a GCC | |
29365 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
29366 | #ifdef __cplusplus |
29367 | extern "C" | |
545f34cf | 29368 | #endif |
545f34cf CR |
29369 | char tgetent (); |
29370 | /* The GNU C library defines this for functions which it implements | |
29371 | to always fail with ENOSYS. Some functions are actually named | |
29372 | something starting with __ and the normal name is an alias. */ | |
d3ad40de | 29373 | #if defined __stub_tgetent || defined __stub___tgetent |
545f34cf | 29374 | choke me |
545f34cf CR |
29375 | #endif |
29376 | ||
29377 | int | |
29378 | main () | |
29379 | { | |
d3ad40de | 29380 | return tgetent (); |
545f34cf CR |
29381 | ; |
29382 | return 0; | |
29383 | } | |
29384 | _ACEOF | |
29385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
29386 | if { (ac_try="$ac_link" |
29387 | case "(($ac_try" in | |
29388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29389 | *) ac_try_echo=$ac_try;; | |
29390 | esac | |
dd4f3dd8 CR |
29391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29392 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29393 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 29394 | ac_status=$? |
a82a04b3 CR |
29395 | grep -v '^ *+' conftest.er1 >conftest.err |
29396 | rm -f conftest.er1 | |
29397 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29399 | (exit $ac_status); } && { | |
29400 | test -z "$ac_c_werror_flag" || | |
29401 | test ! -s conftest.err | |
29402 | } && test -s conftest$ac_exeext && { | |
29403 | test "$cross_compiling" = yes || | |
29404 | $as_test_x conftest$ac_exeext | |
29405 | }; then | |
545f34cf CR |
29406 | ac_cv_func_tgetent=yes |
29407 | else | |
dd4f3dd8 | 29408 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29409 | sed 's/^/| /' conftest.$ac_ext >&5 |
29410 | ||
d3ad40de | 29411 | ac_cv_func_tgetent=no |
545f34cf | 29412 | fi |
d3ad40de | 29413 | |
dd4f3dd8 CR |
29414 | rm -rf conftest.dSYM |
29415 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 29416 | conftest$ac_exeext conftest.$ac_ext |
545f34cf | 29417 | fi |
dd4f3dd8 CR |
29418 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 |
29419 | $as_echo "$ac_cv_func_tgetent" >&6; } | |
76af2125 | 29420 | if test $ac_cv_func_tgetent = yes; then |
545f34cf CR |
29421 | bash_cv_termcap_lib=libc |
29422 | else | |
dd4f3dd8 CR |
29423 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
29424 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
545f34cf | 29425 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
dd4f3dd8 | 29426 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29427 | else |
29428 | ac_check_lib_save_LIBS=$LIBS | |
29429 | LIBS="-ltermcap $LIBS" | |
29430 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29431 | /* confdefs.h. */ |
29432 | _ACEOF | |
29433 | cat confdefs.h >>conftest.$ac_ext | |
29434 | cat >>conftest.$ac_ext <<_ACEOF | |
29435 | /* end confdefs.h. */ | |
29436 | ||
d3ad40de CR |
29437 | /* Override any GCC internal prototype to avoid an error. |
29438 | Use char because int might match the return type of a GCC | |
29439 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
29440 | #ifdef __cplusplus |
29441 | extern "C" | |
29442 | #endif | |
545f34cf CR |
29443 | char tgetent (); |
29444 | int | |
29445 | main () | |
29446 | { | |
d3ad40de | 29447 | return tgetent (); |
545f34cf CR |
29448 | ; |
29449 | return 0; | |
29450 | } | |
29451 | _ACEOF | |
29452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
29453 | if { (ac_try="$ac_link" |
29454 | case "(($ac_try" in | |
29455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29456 | *) ac_try_echo=$ac_try;; | |
29457 | esac | |
dd4f3dd8 CR |
29458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29459 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29460 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 29461 | ac_status=$? |
a82a04b3 CR |
29462 | grep -v '^ *+' conftest.er1 >conftest.err |
29463 | rm -f conftest.er1 | |
29464 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29466 | (exit $ac_status); } && { | |
29467 | test -z "$ac_c_werror_flag" || | |
29468 | test ! -s conftest.err | |
29469 | } && test -s conftest$ac_exeext && { | |
29470 | test "$cross_compiling" = yes || | |
29471 | $as_test_x conftest$ac_exeext | |
29472 | }; then | |
545f34cf CR |
29473 | ac_cv_lib_termcap_tgetent=yes |
29474 | else | |
dd4f3dd8 | 29475 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29476 | sed 's/^/| /' conftest.$ac_ext >&5 |
29477 | ||
d3ad40de | 29478 | ac_cv_lib_termcap_tgetent=no |
545f34cf | 29479 | fi |
d3ad40de | 29480 | |
dd4f3dd8 CR |
29481 | rm -rf conftest.dSYM |
29482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 29483 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
29484 | LIBS=$ac_check_lib_save_LIBS |
29485 | fi | |
dd4f3dd8 CR |
29486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
29487 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
76af2125 | 29488 | if test $ac_cv_lib_termcap_tgetent = yes; then |
545f34cf CR |
29489 | bash_cv_termcap_lib=libtermcap |
29490 | else | |
dd4f3dd8 CR |
29491 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
29492 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
545f34cf | 29493 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
dd4f3dd8 | 29494 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29495 | else |
29496 | ac_check_lib_save_LIBS=$LIBS | |
29497 | LIBS="-ltinfo $LIBS" | |
29498 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29499 | /* confdefs.h. */ |
29500 | _ACEOF | |
29501 | cat confdefs.h >>conftest.$ac_ext | |
29502 | cat >>conftest.$ac_ext <<_ACEOF | |
29503 | /* end confdefs.h. */ | |
29504 | ||
d3ad40de CR |
29505 | /* Override any GCC internal prototype to avoid an error. |
29506 | Use char because int might match the return type of a GCC | |
29507 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
29508 | #ifdef __cplusplus |
29509 | extern "C" | |
29510 | #endif | |
545f34cf CR |
29511 | char tgetent (); |
29512 | int | |
29513 | main () | |
29514 | { | |
d3ad40de | 29515 | return tgetent (); |
545f34cf CR |
29516 | ; |
29517 | return 0; | |
29518 | } | |
29519 | _ACEOF | |
29520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
29521 | if { (ac_try="$ac_link" |
29522 | case "(($ac_try" in | |
29523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29524 | *) ac_try_echo=$ac_try;; | |
29525 | esac | |
dd4f3dd8 CR |
29526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29527 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29528 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 29529 | ac_status=$? |
a82a04b3 CR |
29530 | grep -v '^ *+' conftest.er1 >conftest.err |
29531 | rm -f conftest.er1 | |
29532 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29534 | (exit $ac_status); } && { | |
29535 | test -z "$ac_c_werror_flag" || | |
29536 | test ! -s conftest.err | |
29537 | } && test -s conftest$ac_exeext && { | |
29538 | test "$cross_compiling" = yes || | |
29539 | $as_test_x conftest$ac_exeext | |
29540 | }; then | |
545f34cf CR |
29541 | ac_cv_lib_tinfo_tgetent=yes |
29542 | else | |
dd4f3dd8 | 29543 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29544 | sed 's/^/| /' conftest.$ac_ext >&5 |
29545 | ||
d3ad40de | 29546 | ac_cv_lib_tinfo_tgetent=no |
545f34cf | 29547 | fi |
d3ad40de | 29548 | |
dd4f3dd8 CR |
29549 | rm -rf conftest.dSYM |
29550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 29551 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
29552 | LIBS=$ac_check_lib_save_LIBS |
29553 | fi | |
dd4f3dd8 CR |
29554 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
29555 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
76af2125 | 29556 | if test $ac_cv_lib_tinfo_tgetent = yes; then |
545f34cf CR |
29557 | bash_cv_termcap_lib=libtinfo |
29558 | else | |
dd4f3dd8 CR |
29559 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
29560 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
545f34cf | 29561 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then |
dd4f3dd8 | 29562 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29563 | else |
29564 | ac_check_lib_save_LIBS=$LIBS | |
29565 | LIBS="-lcurses $LIBS" | |
29566 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29567 | /* confdefs.h. */ |
29568 | _ACEOF | |
29569 | cat confdefs.h >>conftest.$ac_ext | |
29570 | cat >>conftest.$ac_ext <<_ACEOF | |
29571 | /* end confdefs.h. */ | |
29572 | ||
d3ad40de CR |
29573 | /* Override any GCC internal prototype to avoid an error. |
29574 | Use char because int might match the return type of a GCC | |
29575 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
29576 | #ifdef __cplusplus |
29577 | extern "C" | |
29578 | #endif | |
545f34cf CR |
29579 | char tgetent (); |
29580 | int | |
29581 | main () | |
29582 | { | |
d3ad40de | 29583 | return tgetent (); |
545f34cf CR |
29584 | ; |
29585 | return 0; | |
29586 | } | |
29587 | _ACEOF | |
29588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
29589 | if { (ac_try="$ac_link" |
29590 | case "(($ac_try" in | |
29591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29592 | *) ac_try_echo=$ac_try;; | |
29593 | esac | |
dd4f3dd8 CR |
29594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29595 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29596 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 29597 | ac_status=$? |
a82a04b3 CR |
29598 | grep -v '^ *+' conftest.er1 >conftest.err |
29599 | rm -f conftest.er1 | |
29600 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29602 | (exit $ac_status); } && { | |
29603 | test -z "$ac_c_werror_flag" || | |
29604 | test ! -s conftest.err | |
29605 | } && test -s conftest$ac_exeext && { | |
29606 | test "$cross_compiling" = yes || | |
29607 | $as_test_x conftest$ac_exeext | |
29608 | }; then | |
545f34cf CR |
29609 | ac_cv_lib_curses_tgetent=yes |
29610 | else | |
dd4f3dd8 | 29611 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29612 | sed 's/^/| /' conftest.$ac_ext >&5 |
29613 | ||
d3ad40de | 29614 | ac_cv_lib_curses_tgetent=no |
545f34cf | 29615 | fi |
d3ad40de | 29616 | |
dd4f3dd8 CR |
29617 | rm -rf conftest.dSYM |
29618 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 29619 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
29620 | LIBS=$ac_check_lib_save_LIBS |
29621 | fi | |
dd4f3dd8 CR |
29622 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
29623 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
76af2125 | 29624 | if test $ac_cv_lib_curses_tgetent = yes; then |
545f34cf CR |
29625 | bash_cv_termcap_lib=libcurses |
29626 | else | |
dd4f3dd8 CR |
29627 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
29628 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
545f34cf | 29629 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
dd4f3dd8 | 29630 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29631 | else |
29632 | ac_check_lib_save_LIBS=$LIBS | |
29633 | LIBS="-lncurses $LIBS" | |
29634 | cat >conftest.$ac_ext <<_ACEOF | |
545f34cf CR |
29635 | /* confdefs.h. */ |
29636 | _ACEOF | |
29637 | cat confdefs.h >>conftest.$ac_ext | |
29638 | cat >>conftest.$ac_ext <<_ACEOF | |
29639 | /* end confdefs.h. */ | |
29640 | ||
d3ad40de CR |
29641 | /* Override any GCC internal prototype to avoid an error. |
29642 | Use char because int might match the return type of a GCC | |
29643 | builtin and then its argument prototype would still apply. */ | |
545f34cf CR |
29644 | #ifdef __cplusplus |
29645 | extern "C" | |
29646 | #endif | |
545f34cf CR |
29647 | char tgetent (); |
29648 | int | |
29649 | main () | |
29650 | { | |
d3ad40de | 29651 | return tgetent (); |
545f34cf CR |
29652 | ; |
29653 | return 0; | |
29654 | } | |
29655 | _ACEOF | |
29656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d3ad40de CR |
29657 | if { (ac_try="$ac_link" |
29658 | case "(($ac_try" in | |
29659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29660 | *) ac_try_echo=$ac_try;; | |
29661 | esac | |
dd4f3dd8 CR |
29662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
29663 | $as_echo "$ac_try_echo") >&5 | |
d3ad40de | 29664 | (eval "$ac_link") 2>conftest.er1 |
545f34cf | 29665 | ac_status=$? |
a82a04b3 CR |
29666 | grep -v '^ *+' conftest.er1 >conftest.err |
29667 | rm -f conftest.er1 | |
29668 | cat conftest.err >&5 | |
dd4f3dd8 CR |
29669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29670 | (exit $ac_status); } && { | |
29671 | test -z "$ac_c_werror_flag" || | |
29672 | test ! -s conftest.err | |
29673 | } && test -s conftest$ac_exeext && { | |
29674 | test "$cross_compiling" = yes || | |
29675 | $as_test_x conftest$ac_exeext | |
29676 | }; then | |
545f34cf CR |
29677 | ac_cv_lib_ncurses_tgetent=yes |
29678 | else | |
dd4f3dd8 | 29679 | $as_echo "$as_me: failed program was:" >&5 |
545f34cf CR |
29680 | sed 's/^/| /' conftest.$ac_ext >&5 |
29681 | ||
d3ad40de | 29682 | ac_cv_lib_ncurses_tgetent=no |
545f34cf | 29683 | fi |
d3ad40de | 29684 | |
dd4f3dd8 CR |
29685 | rm -rf conftest.dSYM |
29686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a82a04b3 | 29687 | conftest$ac_exeext conftest.$ac_ext |
545f34cf CR |
29688 | LIBS=$ac_check_lib_save_LIBS |
29689 | fi | |
dd4f3dd8 CR |
29690 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
29691 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
76af2125 | 29692 | if test $ac_cv_lib_ncurses_tgetent = yes; then |
545f34cf CR |
29693 | bash_cv_termcap_lib=libncurses |
29694 | else | |
29695 | bash_cv_termcap_lib=gnutermcap | |
29696 | fi | |
29697 | ||
29698 | fi | |
29699 | ||
29700 | fi | |
29701 | ||
29702 | fi | |
29703 | ||
29704 | fi | |
29705 | ||
29706 | fi | |
29707 | ||
29708 | if test "X$_bash_needmsg" = "Xyes"; then | |
dd4f3dd8 CR |
29709 | { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
29710 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
545f34cf | 29711 | fi |
dd4f3dd8 CR |
29712 | { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
29713 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
545f34cf CR |
29714 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
29715 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
29716 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
29717 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
29718 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
29719 | TERMCAP_LIB=-ltermcap | |
29720 | TERMCAP_DEP= | |
29721 | elif test $bash_cv_termcap_lib = libtinfo; then | |
29722 | TERMCAP_LIB=-ltinfo | |
29723 | TERMCAP_DEP= | |
29724 | elif test $bash_cv_termcap_lib = libncurses; then | |
29725 | TERMCAP_LIB=-lncurses | |
29726 | TERMCAP_DEP= | |
29727 | elif test $bash_cv_termcap_lib = libc; then | |
29728 | TERMCAP_LIB= | |
29729 | TERMCAP_DEP= | |
29730 | else | |
29731 | TERMCAP_LIB=-lcurses | |
29732 | TERMCAP_DEP= | |
29733 | fi | |
29734 | ||
29735 | fi | |
29736 | ||
29737 | ||
29738 | ||
dd4f3dd8 CR |
29739 | { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5 |
29740 | $as_echo_n "checking whether /dev/fd is available... " >&6; } | |
545f34cf | 29741 | if test "${bash_cv_dev_fd+set}" = set; then |
dd4f3dd8 | 29742 | $as_echo_n "(cached) " >&6 |
545f34cf | 29743 | else |
d3ad40de CR |
29744 | bash_cv_dev_fd="" |
29745 | if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then | |
de3341d1 | 29746 | # check for systems like FreeBSD 5 that only provide /dev/fd/[012] |
d3ad40de | 29747 | if (exec test -r /dev/fd/3 3</dev/null) ; then |
de3341d1 CR |
29748 | bash_cv_dev_fd=standard |
29749 | else | |
29750 | bash_cv_dev_fd=absent | |
29751 | fi | |
d3ad40de CR |
29752 | fi |
29753 | if test -z "$bash_cv_dev_fd" ; then | |
29754 | if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then | |
29755 | bash_cv_dev_fd=whacky | |
29756 | else | |
29757 | bash_cv_dev_fd=absent | |
29758 | fi | |
29759 | fi | |
545f34cf CR |
29760 | |
29761 | fi | |
29762 | ||
dd4f3dd8 CR |
29763 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5 |
29764 | $as_echo "$bash_cv_dev_fd" >&6; } | |
545f34cf CR |
29765 | if test $bash_cv_dev_fd = "standard"; then |
29766 | cat >>confdefs.h <<\_ACEOF | |
29767 | @%:@define HAVE_DEV_FD 1 | |
29768 | _ACEOF | |
29769 | ||
29770 | cat >>confdefs.h <<\_ACEOF | |
29771 | @%:@define DEV_FD_PREFIX "/dev/fd/" | |
29772 | _ACEOF | |
29773 | ||
29774 | elif test $bash_cv_dev_fd = "whacky"; then | |
29775 | cat >>confdefs.h <<\_ACEOF | |
29776 | @%:@define HAVE_DEV_FD 1 | |
29777 | _ACEOF | |
29778 | ||
29779 | cat >>confdefs.h <<\_ACEOF | |
29780 | @%:@define DEV_FD_PREFIX "/proc/self/fd/" | |
29781 | _ACEOF | |
29782 | ||
29783 | fi | |
29784 | ||
dd4f3dd8 CR |
29785 | { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5 |
29786 | $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; } | |
545f34cf | 29787 | if test "${bash_cv_dev_stdin+set}" = set; then |
dd4f3dd8 | 29788 | $as_echo_n "(cached) " >&6 |
545f34cf | 29789 | else |
d3ad40de | 29790 | if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then |
545f34cf | 29791 | bash_cv_dev_stdin=present |
d3ad40de | 29792 | elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then |
545f34cf CR |
29793 | bash_cv_dev_stdin=present |
29794 | else | |
29795 | bash_cv_dev_stdin=absent | |
29796 | fi | |
29797 | ||
29798 | fi | |
29799 | ||
dd4f3dd8 CR |
29800 | { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5 |
29801 | $as_echo "$bash_cv_dev_stdin" >&6; } | |
545f34cf CR |
29802 | if test $bash_cv_dev_stdin = "present"; then |
29803 | cat >>confdefs.h <<\_ACEOF | |
29804 | @%:@define HAVE_DEV_STDIN 1 | |
29805 | _ACEOF | |
29806 | ||
29807 | fi | |
29808 | ||
dd4f3dd8 CR |
29809 | { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5 |
29810 | $as_echo_n "checking for default mail directory... " >&6; } | |
545f34cf | 29811 | if test "${bash_cv_mail_dir+set}" = set; then |
dd4f3dd8 | 29812 | $as_echo_n "(cached) " >&6 |
545f34cf CR |
29813 | else |
29814 | if test -d /var/mail; then | |
29815 | bash_cv_mail_dir=/var/mail | |
29816 | elif test -d /var/spool/mail; then | |
29817 | bash_cv_mail_dir=/var/spool/mail | |
29818 | elif test -d /usr/mail; then | |
29819 | bash_cv_mail_dir=/usr/mail | |
29820 | elif test -d /usr/spool/mail; then | |
29821 | bash_cv_mail_dir=/usr/spool/mail | |
29822 | else | |
29823 | bash_cv_mail_dir=unknown | |
29824 | fi | |
29825 | ||
29826 | fi | |
29827 | ||
dd4f3dd8 CR |
29828 | { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5 |
29829 | $as_echo "$bash_cv_mail_dir" >&6; } | |
545f34cf CR |
29830 | cat >>confdefs.h <<_ACEOF |
29831 | @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir" | |
29832 | _ACEOF | |
29833 | ||
29834 | ||
29835 | ||
29836 | if test "$bash_cv_job_control_missing" = missing; then | |
29837 | opt_job_control=no | |
29838 | fi | |
29839 | ||
29840 | if test "$opt_job_control" = yes; then | |
29841 | cat >>confdefs.h <<\_ACEOF | |
29842 | @%:@define JOB_CONTROL 1 | |
29843 | _ACEOF | |
29844 | ||
29845 | JOBS_O=jobs.o | |
29846 | else | |
29847 | JOBS_O=nojobs.o | |
29848 | fi | |
29849 | ||
29850 | ||
29851 | ||
29852 | ||
29853 | LOCAL_DEFS=-DSHELL | |
29854 | ||
29855 | ||
29856 | case "${host_os}" in | |
29857 | sysv4.2*) cat >>confdefs.h <<\_ACEOF | |
29858 | @%:@define SVR4_2 1 | |
29859 | _ACEOF | |
29860 | ||
29861 | cat >>confdefs.h <<\_ACEOF | |
29862 | @%:@define SVR4 1 | |
29863 | _ACEOF | |
29864 | ;; | |
29865 | sysv4*) cat >>confdefs.h <<\_ACEOF | |
29866 | @%:@define SVR4 1 | |
29867 | _ACEOF | |
29868 | ;; | |
29869 | sysv5*) cat >>confdefs.h <<\_ACEOF | |
29870 | @%:@define SVR5 1 | |
29871 | _ACEOF | |
29872 | ;; | |
29873 | hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;; | |
29874 | hpux*) LOCAL_CFLAGS=-DHPUX ;; | |
29875 | dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;; | |
29876 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
29877 | rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;; | |
29878 | darwin*) LOCAL_CFLAGS=-DMACOSX ;; | |
29879 | sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;; | |
29880 | sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;; | |
29881 | sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;; | |
29882 | sunos4*) LOCAL_CFLAGS=-DSunOS4 ;; | |
d3ad40de | 29883 | solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;; |
db31fb26 CR |
29884 | solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;; |
29885 | solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;; | |
29886 | solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;; | |
d3ad40de | 29887 | solaris2*) LOCAL_CFLAGS=-DSOLARIS ;; |
545f34cf | 29888 | lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; |
3ffb039a CR |
29889 | linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading |
29890 | case "`uname -r`" in | |
29891 | 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF | |
29892 | @%:@define PGRP_PIPE 1 | |
29893 | _ACEOF | |
29894 | ;; | |
29895 | esac ;; | |
fd3925f1 | 29896 | *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;; |
545f34cf CR |
29897 | *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;; |
29898 | powerux*) LOCAL_LIBS="-lgen" ;; | |
29899 | cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; | |
a82a04b3 | 29900 | opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;; |
545f34cf CR |
29901 | esac |
29902 | ||
29903 | case "${host_os}-${CC}" in | |
29904 | aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;; | |
29905 | aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;; | |
29906 | bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux | |
29907 | esac | |
29908 | ||
29909 | case "${host_os}" in | |
29910 | freebsd[3-9]*) | |
29911 | if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then | |
29912 | LOCAL_LDFLAGS=-rdynamic # allow dynamic loading | |
29913 | fi ;; | |
29914 | freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading | |
798a67db | 29915 | dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading |
545f34cf CR |
29916 | esac |
29917 | ||
29918 | case "$host_cpu" in | |
29919 | *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it | |
29920 | esac | |
29921 | ||
29922 | case "$host_cpu-$host_os" in | |
29923 | ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;; | |
29924 | esac | |
29925 | ||
29926 | case "$host_cpu-$host_vendor-$host_os" in | |
29927 | m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;; | |
29928 | mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;; | |
29929 | esac | |
29930 | ||
29931 | # | |
29932 | # Shared object configuration section. These values are generated by | |
29933 | # ${srcdir}/support/shobj-conf | |
29934 | # | |
29935 | if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf | |
29936 | then | |
dd4f3dd8 CR |
29937 | { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5 |
29938 | $as_echo_n "checking shared object configuration for loadable builtins... " >&6; } | |
545f34cf CR |
29939 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"` |
29940 | ||
29941 | ||
29942 | ||
29943 | ||
29944 | ||
29945 | ||
29946 | ||
dd4f3dd8 CR |
29947 | { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5 |
29948 | $as_echo "$SHOBJ_STATUS" >&6; } | |
545f34cf CR |
29949 | fi |
29950 | ||
29951 | # try to create a directory tree if the source is elsewhere | |
29952 | # this should be packaged into a script accessible via ${srcdir}/support | |
29953 | case "$srcdir" in | |
29954 | .) ;; | |
29955 | *) for d in doc tests support lib examples; do # dirs | |
29956 | test -d $d || mkdir $d | |
29957 | done | |
29958 | for ld in readline glob tilde malloc sh termcap; do # libdirs | |
29959 | test -d lib/$ld || mkdir lib/$ld | |
29960 | done | |
29961 | test -d examples/loadables || mkdir examples/loadables # loadable builtins | |
29962 | test -d examples/loadables/perl || mkdir examples/loadables/perl | |
29963 | ;; | |
29964 | esac | |
29965 | ||
29966 | BUILD_DIR=`pwd` | |
10590446 CR |
29967 | case "$BUILD_DIR" in |
29968 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
29969 | *) ;; | |
29970 | esac | |
545f34cf | 29971 | |
b709b946 CR |
29972 | if test -z "$localedir"; then |
29973 | localedir='${datarootdir}/locale' | |
29974 | fi | |
29975 | if test -z "$datarootdir"; then | |
29976 | datarootdir='${prefix}/share' | |
29977 | fi | |
29978 | ||
29979 | ||
29980 | ||
29981 | ||
545f34cf CR |
29982 | |
29983 | ||
b709b946 | 29984 | # Some versions of autoconf don't substitute these automatically |
545f34cf CR |
29985 | |
29986 | ||
29987 | ||
29988 | ||
29989 | ||
29990 | ||
29991 | ||
29992 | ||
29993 | ||
29994 | ||
29995 | ||
29996 | ||
29997 | ||
29998 | ||
29999 | ||
30000 | ||
30001 | ||
30002 | ||
30003 | ||
30004 | ||
30005 | ||
30006 | #AC_SUBST(ALLOCA_SOURCE) | |
30007 | #AC_SUBST(ALLOCA_OBJECT) | |
30008 | ||
d3ad40de CR |
30009 | ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile" |
30010 | ||
30011 | ac_config_commands="$ac_config_commands default" | |
30012 | ||
545f34cf CR |
30013 | cat >confcache <<\_ACEOF |
30014 | # This file is a shell script that caches the results of configure | |
30015 | # tests run on this system so they can be shared between configure | |
30016 | # scripts and configure runs, see configure's option --config-cache. | |
30017 | # It is not useful on other systems. If it contains results you don't | |
30018 | # want to keep, you may remove or edit it. | |
30019 | # | |
30020 | # config.status only pays attention to the cache file if you give it | |
30021 | # the --recheck option to rerun configure. | |
30022 | # | |
30023 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
30024 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
30025 | # following values. | |
30026 | ||
30027 | _ACEOF | |
30028 | ||
30029 | # The following way of writing the cache mishandles newlines in values, | |
30030 | # but we know of no workaround that is simple, portable, and efficient. | |
d3ad40de | 30031 | # So, we kill variables containing newlines. |
545f34cf CR |
30032 | # Ultrix sh set writes to stderr and can't be redirected directly, |
30033 | # and sets the high bit in the cache file unless we assign to the vars. | |
d3ad40de CR |
30034 | ( |
30035 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
30036 | eval ac_val=\$$ac_var | |
30037 | case $ac_val in #( | |
30038 | *${as_nl}*) | |
30039 | case $ac_var in #( | |
76af2125 CR |
30040 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
30041 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
d3ad40de CR |
30042 | esac |
30043 | case $ac_var in #( | |
30044 | _ | IFS | as_nl) ;; #( | |
dd4f3dd8 | 30045 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
d3ad40de CR |
30046 | *) $as_unset $ac_var ;; |
30047 | esac ;; | |
30048 | esac | |
30049 | done | |
30050 | ||
545f34cf | 30051 | (set) 2>&1 | |
d3ad40de CR |
30052 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
30053 | *${as_nl}ac_space=\ *) | |
545f34cf CR |
30054 | # `set' does not quote correctly, so add quotes (double-quote |
30055 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
30056 | sed -n \ | |
a82a04b3 CR |
30057 | "s/'/'\\\\''/g; |
30058 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
d3ad40de | 30059 | ;; #( |
545f34cf CR |
30060 | *) |
30061 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
d3ad40de | 30062 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
545f34cf | 30063 | ;; |
d3ad40de CR |
30064 | esac | |
30065 | sort | |
30066 | ) | | |
545f34cf | 30067 | sed ' |
d3ad40de | 30068 | /^ac_cv_env_/b end |
545f34cf | 30069 | t clear |
d3ad40de | 30070 | :clear |
545f34cf CR |
30071 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
30072 | t end | |
d3ad40de CR |
30073 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
30074 | :end' >>confcache | |
30075 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
30076 | if test -w "$cache_file"; then | |
30077 | test "x$cache_file" != "x/dev/null" && | |
dd4f3dd8 CR |
30078 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
30079 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
545f34cf CR |
30080 | cat confcache >$cache_file |
30081 | else | |
dd4f3dd8 CR |
30082 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
30083 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
545f34cf CR |
30084 | fi |
30085 | fi | |
30086 | rm -f confcache | |
30087 | ||
30088 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
30089 | # Let make expand exec_prefix. | |
30090 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
30091 | ||
545f34cf CR |
30092 | DEFS=-DHAVE_CONFIG_H |
30093 | ||
30094 | ac_libobjs= | |
30095 | ac_ltlibobjs= | |
30096 | for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue | |
30097 | # 1. Remove the extension, and $U if already installed. | |
d3ad40de | 30098 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
dd4f3dd8 | 30099 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
d3ad40de CR |
30100 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
30101 | # will be set to the directory where LIBOBJS objects are built. | |
30102 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
30103 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
545f34cf CR |
30104 | done |
30105 | LIB@&t@OBJS=$ac_libobjs | |
30106 | ||
30107 | LTLIBOBJS=$ac_ltlibobjs | |
30108 | ||
30109 | ||
30110 | ||
30111 | : ${CONFIG_STATUS=./config.status} | |
dd4f3dd8 | 30112 | ac_write_fail=0 |
545f34cf CR |
30113 | ac_clean_files_save=$ac_clean_files |
30114 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
dd4f3dd8 CR |
30115 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
30116 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
30117 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
545f34cf CR |
30118 | #! $SHELL |
30119 | # Generated by $as_me. | |
30120 | # Run this file to recreate the current configuration. | |
30121 | # Compiler output produced by configure, useful for debugging | |
30122 | # configure, is in config.log if it exists. | |
30123 | ||
30124 | debug=false | |
30125 | ac_cs_recheck=false | |
30126 | ac_cs_silent=false | |
30127 | SHELL=\${CONFIG_SHELL-$SHELL} | |
30128 | _ACEOF | |
30129 | ||
dd4f3dd8 | 30130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
545f34cf CR |
30131 | ## --------------------- ## |
30132 | ## M4sh Initialization. ## | |
30133 | ## --------------------- ## | |
30134 | ||
dd4f3dd8 CR |
30135 | # Be more Bourne compatible |
30136 | DUALCASE=1; export DUALCASE # for MKS sh | |
545f34cf CR |
30137 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
30138 | emulate sh | |
30139 | NULLCMD=: | |
dd4f3dd8 | 30140 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
545f34cf CR |
30141 | # is contrary to our usage. Disable this feature. |
30142 | alias -g '${1+"$@"}'='"$@"' | |
d3ad40de CR |
30143 | setopt NO_GLOB_SUBST |
30144 | else | |
dd4f3dd8 CR |
30145 | case `(set -o) 2>/dev/null` in |
30146 | *posix*) set -o posix ;; | |
30147 | esac | |
30148 | ||
545f34cf | 30149 | fi |
dd4f3dd8 CR |
30150 | |
30151 | ||
545f34cf | 30152 | |
d3ad40de CR |
30153 | |
30154 | # PATH needs CR | |
30155 | # Avoid depending upon Character Ranges. | |
30156 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
30157 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
30158 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
30159 | as_cr_digits='0123456789' | |
30160 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
30161 | ||
dd4f3dd8 CR |
30162 | as_nl=' |
30163 | ' | |
30164 | export as_nl | |
30165 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
30166 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
30167 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
30168 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
30169 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
30170 | as_echo='printf %s\n' | |
30171 | as_echo_n='printf %s' | |
30172 | else | |
30173 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
30174 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
30175 | as_echo_n='/usr/ucb/echo -n' | |
d3ad40de | 30176 | else |
dd4f3dd8 CR |
30177 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
30178 | as_echo_n_body='eval | |
30179 | arg=$1; | |
30180 | case $arg in | |
30181 | *"$as_nl"*) | |
30182 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
30183 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
30184 | esac; | |
30185 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
30186 | ' | |
30187 | export as_echo_n_body | |
30188 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
d3ad40de | 30189 | fi |
dd4f3dd8 CR |
30190 | export as_echo_body |
30191 | as_echo='sh -c $as_echo_body as_echo' | |
30192 | fi | |
30193 | ||
30194 | # The user is always right. | |
30195 | if test "${PATH_SEPARATOR+set}" != set; then | |
30196 | PATH_SEPARATOR=: | |
30197 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
30198 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
30199 | PATH_SEPARATOR=';' | |
30200 | } | |
d3ad40de CR |
30201 | fi |
30202 | ||
545f34cf | 30203 | # Support unset when possible. |
a82a04b3 | 30204 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
545f34cf CR |
30205 | as_unset=unset |
30206 | else | |
30207 | as_unset=false | |
30208 | fi | |
30209 | ||
30210 | ||
d3ad40de CR |
30211 | # IFS |
30212 | # We need space, tab and new line, in precisely that order. Quoting is | |
30213 | # there to prevent editors from complaining about space-tab. | |
30214 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
30215 | # splitting by setting IFS to empty value.) | |
d3ad40de CR |
30216 | IFS=" "" $as_nl" |
30217 | ||
30218 | # Find who we are. Look in the path if we contain no directory separator. | |
30219 | case $0 in | |
30220 | *[\\/]* ) as_myself=$0 ;; | |
30221 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30222 | for as_dir in $PATH | |
30223 | do | |
30224 | IFS=$as_save_IFS | |
30225 | test -z "$as_dir" && as_dir=. | |
30226 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
30227 | done | |
30228 | IFS=$as_save_IFS | |
30229 | ||
30230 | ;; | |
30231 | esac | |
30232 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
30233 | # in which case we are not to be found in the path. | |
30234 | if test "x$as_myself" = x; then | |
30235 | as_myself=$0 | |
30236 | fi | |
30237 | if test ! -f "$as_myself"; then | |
dd4f3dd8 | 30238 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
d3ad40de CR |
30239 | { (exit 1); exit 1; } |
30240 | fi | |
30241 | ||
545f34cf | 30242 | # Work around bugs in pre-3.0 UWIN ksh. |
d3ad40de CR |
30243 | for as_var in ENV MAIL MAILPATH |
30244 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
30245 | done | |
545f34cf CR |
30246 | PS1='$ ' |
30247 | PS2='> ' | |
30248 | PS4='+ ' | |
30249 | ||
30250 | # NLS nuisances. | |
dd4f3dd8 CR |
30251 | LC_ALL=C |
30252 | export LC_ALL | |
30253 | LANGUAGE=C | |
30254 | export LANGUAGE | |
545f34cf CR |
30255 | |
30256 | # Required to use basename. | |
d3ad40de CR |
30257 | if expr a : '\(a\)' >/dev/null 2>&1 && |
30258 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
545f34cf CR |
30259 | as_expr=expr |
30260 | else | |
30261 | as_expr=false | |
30262 | fi | |
30263 | ||
d3ad40de | 30264 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
545f34cf CR |
30265 | as_basename=basename |
30266 | else | |
30267 | as_basename=false | |
30268 | fi | |
30269 | ||
30270 | ||
30271 | # Name of the executable. | |
d3ad40de | 30272 | as_me=`$as_basename -- "$0" || |
545f34cf CR |
30273 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
30274 | X"$0" : 'X\(//\)$' \| \ | |
d3ad40de | 30275 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
dd4f3dd8 | 30276 | $as_echo X/"$0" | |
d3ad40de CR |
30277 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
30278 | s//\1/ | |
30279 | q | |
30280 | } | |
30281 | /^X\/\(\/\/\)$/{ | |
30282 | s//\1/ | |
30283 | q | |
30284 | } | |
30285 | /^X\/\(\/\).*/{ | |
30286 | s//\1/ | |
30287 | q | |
30288 | } | |
30289 | s/.*/./; q'` | |
28157acd | 30290 | |
d3ad40de CR |
30291 | # CDPATH. |
30292 | $as_unset CDPATH | |
545f34cf | 30293 | |
545f34cf CR |
30294 | |
30295 | ||
30296 | as_lineno_1=$LINENO | |
30297 | as_lineno_2=$LINENO | |
545f34cf | 30298 | test "x$as_lineno_1" != "x$as_lineno_2" && |
d3ad40de | 30299 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
545f34cf CR |
30300 | |
30301 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
30302 | # uniformly replaced by the line number. The first 'sed' inserts a | |
d3ad40de CR |
30303 | # line-number line after each line using $LINENO; the second 'sed' |
30304 | # does the real work. The second script uses 'N' to pair each | |
30305 | # line-number line with the line containing $LINENO, and appends | |
30306 | # trailing '-' during substitution so that $LINENO is not a special | |
30307 | # case at line end. | |
545f34cf | 30308 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
d3ad40de CR |
30309 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
30310 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
30311 | sed -n ' | |
30312 | p | |
30313 | /[$]LINENO/= | |
30314 | ' <$as_myself | | |
545f34cf | 30315 | sed ' |
d3ad40de CR |
30316 | s/[$]LINENO.*/&-/ |
30317 | t lineno | |
30318 | b | |
30319 | :lineno | |
545f34cf | 30320 | N |
d3ad40de CR |
30321 | :loop |
30322 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
545f34cf | 30323 | t loop |
d3ad40de | 30324 | s/-\n.*// |
545f34cf | 30325 | ' >$as_me.lineno && |
d3ad40de | 30326 | chmod +x "$as_me.lineno" || |
dd4f3dd8 | 30327 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
545f34cf CR |
30328 | { (exit 1); exit 1; }; } |
30329 | ||
30330 | # Don't try to exec as it changes $[0], causing all sort of problems | |
30331 | # (the dirname of $[0] is not the place where we might find the | |
d3ad40de CR |
30332 | # original and so on. Autoconf is especially sensitive to this). |
30333 | . "./$as_me.lineno" | |
545f34cf CR |
30334 | # Exit status is that of the last command. |
30335 | exit | |
30336 | } | |
30337 | ||
30338 | ||
d3ad40de CR |
30339 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
30340 | as_dirname=dirname | |
30341 | else | |
30342 | as_dirname=false | |
30343 | fi | |
30344 | ||
30345 | ECHO_C= ECHO_N= ECHO_T= | |
30346 | case `echo -n x` in | |
30347 | -n*) | |
30348 | case `echo 'x\c'` in | |
30349 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
30350 | *) ECHO_C='\c';; | |
30351 | esac;; | |
30352 | *) | |
30353 | ECHO_N='-n';; | |
545f34cf | 30354 | esac |
d3ad40de CR |
30355 | if expr a : '\(a\)' >/dev/null 2>&1 && |
30356 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
545f34cf CR |
30357 | as_expr=expr |
30358 | else | |
30359 | as_expr=false | |
30360 | fi | |
30361 | ||
28157acd | 30362 | rm -f conf$$ conf$$.exe conf$$.file |
d3ad40de CR |
30363 | if test -d conf$$.dir; then |
30364 | rm -f conf$$.dir/conf$$.file | |
30365 | else | |
30366 | rm -f conf$$.dir | |
dd4f3dd8 CR |
30367 | mkdir conf$$.dir 2>/dev/null |
30368 | fi | |
30369 | if (echo >conf$$.file) 2>/dev/null; then | |
30370 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
30371 | as_ln_s='ln -s' | |
30372 | # ... but there are two gotchas: | |
30373 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
30374 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
30375 | # In both cases, we have to default to `cp -p'. | |
30376 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
30377 | as_ln_s='cp -p' | |
30378 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
30379 | as_ln_s=ln | |
30380 | else | |
545f34cf | 30381 | as_ln_s='cp -p' |
dd4f3dd8 | 30382 | fi |
545f34cf CR |
30383 | else |
30384 | as_ln_s='cp -p' | |
30385 | fi | |
d3ad40de CR |
30386 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
30387 | rmdir conf$$.dir 2>/dev/null | |
545f34cf CR |
30388 | |
30389 | if mkdir -p . 2>/dev/null; then | |
30390 | as_mkdir_p=: | |
30391 | else | |
a82a04b3 | 30392 | test -d ./-p && rmdir ./-p |
545f34cf CR |
30393 | as_mkdir_p=false |
30394 | fi | |
30395 | ||
dd4f3dd8 CR |
30396 | if test -x / >/dev/null 2>&1; then |
30397 | as_test_x='test -x' | |
d3ad40de | 30398 | else |
dd4f3dd8 CR |
30399 | if ls -dL / >/dev/null 2>&1; then |
30400 | as_ls_L_option=L | |
30401 | else | |
30402 | as_ls_L_option= | |
30403 | fi | |
30404 | as_test_x=' | |
30405 | eval sh -c '\'' | |
30406 | if test -d "$1"; then | |
30407 | test -d "$1/."; | |
30408 | else | |
30409 | case $1 in | |
30410 | -*)set "./$1";; | |
30411 | esac; | |
30412 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
30413 | ???[sx]*):;;*)false;;esac;fi | |
30414 | '\'' sh | |
30415 | ' | |
d3ad40de | 30416 | fi |
dd4f3dd8 | 30417 | as_executable_p=$as_test_x |
545f34cf CR |
30418 | |
30419 | # Sed expression to map a string onto a valid CPP name. | |
a82a04b3 | 30420 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
545f34cf CR |
30421 | |
30422 | # Sed expression to map a string onto a valid variable name. | |
a82a04b3 | 30423 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
545f34cf CR |
30424 | |
30425 | ||
545f34cf CR |
30426 | exec 6>&1 |
30427 | ||
d3ad40de | 30428 | # Save the log message, to keep $[0] and so on meaningful, and to |
545f34cf | 30429 | # report actual input values of CONFIG_FILES etc. instead of their |
d3ad40de CR |
30430 | # values after options handling. |
30431 | ac_log=" | |
76af2125 CR |
30432 | This file was extended by bash $as_me 4.0-maint, which was |
30433 | generated by GNU Autoconf 2.62. Invocation command line was | |
545f34cf CR |
30434 | |
30435 | CONFIG_FILES = $CONFIG_FILES | |
30436 | CONFIG_HEADERS = $CONFIG_HEADERS | |
30437 | CONFIG_LINKS = $CONFIG_LINKS | |
30438 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
30439 | $ $0 $@ | |
30440 | ||
d3ad40de CR |
30441 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
30442 | " | |
30443 | ||
545f34cf CR |
30444 | _ACEOF |
30445 | ||
dd4f3dd8 | 30446 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
545f34cf | 30447 | # Files that config.status was made for. |
d3ad40de CR |
30448 | config_files="$ac_config_files" |
30449 | config_headers="$ac_config_headers" | |
30450 | config_commands="$ac_config_commands" | |
28157acd | 30451 | |
d3ad40de | 30452 | _ACEOF |
545f34cf | 30453 | |
dd4f3dd8 | 30454 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
545f34cf CR |
30455 | ac_cs_usage="\ |
30456 | \`$as_me' instantiates files from templates according to the | |
30457 | current configuration. | |
30458 | ||
76af2125 | 30459 | Usage: $0 [OPTIONS] [FILE]... |
545f34cf CR |
30460 | |
30461 | -h, --help print this help, then exit | |
dd4f3dd8 | 30462 | -V, --version print version number and configuration settings, then exit |
76af2125 | 30463 | -q, --quiet do not print progress messages |
545f34cf CR |
30464 | -d, --debug don't remove temporary files |
30465 | --recheck update $as_me by reconfiguring in the same conditions | |
76af2125 | 30466 | --file=FILE[:TEMPLATE] |
dd4f3dd8 | 30467 | instantiate the configuration file FILE |
76af2125 | 30468 | --header=FILE[:TEMPLATE] |
dd4f3dd8 | 30469 | instantiate the configuration header FILE |
545f34cf CR |
30470 | |
30471 | Configuration files: | |
30472 | $config_files | |
30473 | ||
30474 | Configuration headers: | |
30475 | $config_headers | |
30476 | ||
30477 | Configuration commands: | |
30478 | $config_commands | |
30479 | ||
30480 | Report bugs to <bug-autoconf@gnu.org>." | |
28157acd | 30481 | |
d3ad40de | 30482 | _ACEOF |
dd4f3dd8 | 30483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
545f34cf | 30484 | ac_cs_version="\\ |
76af2125 CR |
30485 | bash config.status 4.0-maint |
30486 | configured by $0, generated by GNU Autoconf 2.62, | |
dd4f3dd8 | 30487 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
545f34cf | 30488 | |
dc9f44b3 | 30489 | Copyright (C) 2008 Free Software Foundation, Inc. |
545f34cf CR |
30490 | This config.status script is free software; the Free Software Foundation |
30491 | gives unlimited permission to copy, distribute and modify it." | |
d3ad40de CR |
30492 | |
30493 | ac_pwd='$ac_pwd' | |
30494 | srcdir='$srcdir' | |
30495 | INSTALL='$INSTALL' | |
dd4f3dd8 | 30496 | test -n "\$AWK" || AWK=awk |
545f34cf CR |
30497 | _ACEOF |
30498 | ||
dd4f3dd8 CR |
30499 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
30500 | # The default lists apply if the user does not specify any file. | |
545f34cf CR |
30501 | ac_need_defaults=: |
30502 | while test $# != 0 | |
30503 | do | |
30504 | case $1 in | |
30505 | --*=*) | |
d3ad40de CR |
30506 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
30507 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
545f34cf CR |
30508 | ac_shift=: |
30509 | ;; | |
d3ad40de | 30510 | *) |
545f34cf CR |
30511 | ac_option=$1 |
30512 | ac_optarg=$2 | |
30513 | ac_shift=shift | |
30514 | ;; | |
545f34cf CR |
30515 | esac |
30516 | ||
30517 | case $ac_option in | |
30518 | # Handling of the options. | |
545f34cf CR |
30519 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
30520 | ac_cs_recheck=: ;; | |
d3ad40de | 30521 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
dd4f3dd8 | 30522 | $as_echo "$ac_cs_version"; exit ;; |
d3ad40de | 30523 | --debug | --debu | --deb | --de | --d | -d ) |
545f34cf CR |
30524 | debug=: ;; |
30525 | --file | --fil | --fi | --f ) | |
30526 | $ac_shift | |
dd4f3dd8 CR |
30527 | case $ac_optarg in |
30528 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
30529 | esac | |
30530 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
545f34cf CR |
30531 | ac_need_defaults=false;; |
30532 | --header | --heade | --head | --hea ) | |
30533 | $ac_shift | |
dd4f3dd8 CR |
30534 | case $ac_optarg in |
30535 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
30536 | esac | |
30537 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
545f34cf | 30538 | ac_need_defaults=false;; |
d3ad40de CR |
30539 | --he | --h) |
30540 | # Conflict between --help and --header | |
dd4f3dd8 | 30541 | { $as_echo "$as_me: error: ambiguous option: $1 |
d3ad40de CR |
30542 | Try \`$0 --help' for more information." >&2 |
30543 | { (exit 1); exit 1; }; };; | |
30544 | --help | --hel | -h ) | |
dd4f3dd8 | 30545 | $as_echo "$ac_cs_usage"; exit ;; |
545f34cf CR |
30546 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
30547 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
30548 | ac_cs_silent=: ;; | |
30549 | ||
30550 | # This is an error. | |
dd4f3dd8 | 30551 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
d3ad40de | 30552 | Try \`$0 --help' for more information." >&2 |
545f34cf CR |
30553 | { (exit 1); exit 1; }; } ;; |
30554 | ||
d3ad40de CR |
30555 | *) ac_config_targets="$ac_config_targets $1" |
30556 | ac_need_defaults=false ;; | |
545f34cf CR |
30557 | |
30558 | esac | |
30559 | shift | |
30560 | done | |
30561 | ||
30562 | ac_configure_extra_args= | |
30563 | ||
30564 | if $ac_cs_silent; then | |
30565 | exec 6>/dev/null | |
30566 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
30567 | fi | |
30568 | ||
30569 | _ACEOF | |
dd4f3dd8 | 30570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
545f34cf | 30571 | if \$ac_cs_recheck; then |
dd4f3dd8 CR |
30572 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
30573 | shift | |
30574 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
30575 | CONFIG_SHELL='$SHELL' | |
d3ad40de | 30576 | export CONFIG_SHELL |
dd4f3dd8 | 30577 | exec "\$@" |
545f34cf CR |
30578 | fi |
30579 | ||
30580 | _ACEOF | |
dd4f3dd8 | 30581 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d3ad40de CR |
30582 | exec 5>>config.log |
30583 | { | |
30584 | echo | |
30585 | sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX | |
30586 | @%:@@%:@ Running $as_me. @%:@@%:@ | |
30587 | _ASBOX | |
dd4f3dd8 | 30588 | $as_echo "$ac_log" |
d3ad40de | 30589 | } >&5 |
545f34cf | 30590 | |
d3ad40de | 30591 | _ACEOF |
dd4f3dd8 | 30592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
545f34cf | 30593 | # |
d3ad40de | 30594 | # INIT-COMMANDS |
545f34cf | 30595 | # |
545f34cf CR |
30596 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
30597 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
30598 | # from automake. | |
30599 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
30600 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
30601 | LINGUAS="${LINGUAS-%UNSET%}" | |
30602 | ||
30603 | ||
30604 | _ACEOF | |
30605 | ||
dd4f3dd8 | 30606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d3ad40de CR |
30607 | |
30608 | # Handling of arguments. | |
545f34cf CR |
30609 | for ac_config_target in $ac_config_targets |
30610 | do | |
d3ad40de CR |
30611 | case $ac_config_target in |
30612 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
30613 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
30614 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
30615 | "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;; | |
30616 | "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;; | |
30617 | "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;; | |
30618 | "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;; | |
30619 | "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;; | |
30620 | "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;; | |
30621 | "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;; | |
30622 | "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;; | |
30623 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
30624 | "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; | |
30625 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
30626 | "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;; | |
30627 | "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;; | |
30628 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
30629 | ||
dd4f3dd8 CR |
30630 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
30631 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
545f34cf CR |
30632 | { (exit 1); exit 1; }; };; |
30633 | esac | |
30634 | done | |
30635 | ||
d3ad40de | 30636 | |
545f34cf CR |
30637 | # If the user did not use the arguments to specify the items to instantiate, |
30638 | # then the envvar interface is used. Set only those that are not. | |
30639 | # We use the long form for the default assignment because of an extremely | |
30640 | # bizarre bug on SunOS 4.1.3. | |
30641 | if $ac_need_defaults; then | |
30642 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
30643 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
30644 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
30645 | fi | |
30646 | ||
30647 | # Have a temporary directory for convenience. Make it in the build tree | |
d3ad40de | 30648 | # simply because there is no reason against having it here, and in addition, |
545f34cf | 30649 | # creating and moving files from /tmp can sometimes cause problems. |
d3ad40de CR |
30650 | # Hook for its removal unless debugging. |
30651 | # Note that there is a small window in which the directory will not be cleaned: | |
30652 | # after its creation but before its name has been assigned to `$tmp'. | |
545f34cf CR |
30653 | $debug || |
30654 | { | |
d3ad40de CR |
30655 | tmp= |
30656 | trap 'exit_status=$? | |
30657 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
30658 | ' 0 | |
545f34cf CR |
30659 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
30660 | } | |
545f34cf CR |
30661 | # Create a (secure) tmp directory for tmp files. |
30662 | ||
30663 | { | |
d3ad40de | 30664 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
545f34cf CR |
30665 | test -n "$tmp" && test -d "$tmp" |
30666 | } || | |
30667 | { | |
d3ad40de CR |
30668 | tmp=./conf$$-$RANDOM |
30669 | (umask 077 && mkdir "$tmp") | |
545f34cf CR |
30670 | } || |
30671 | { | |
dd4f3dd8 | 30672 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
545f34cf CR |
30673 | { (exit 1); exit 1; } |
30674 | } | |
30675 | ||
dd4f3dd8 CR |
30676 | # Set up the scripts for CONFIG_FILES section. |
30677 | # No need to generate them if there are no CONFIG_FILES. | |
30678 | # This happens for instance with `./config.status config.h'. | |
d3ad40de CR |
30679 | if test -n "$CONFIG_FILES"; then |
30680 | ||
d3ad40de | 30681 | |
dd4f3dd8 CR |
30682 | ac_cr='\r' |
30683 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
30684 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
30685 | ac_cs_awk_cr='\\r' | |
30686 | else | |
30687 | ac_cs_awk_cr=$ac_cr | |
d3ad40de CR |
30688 | fi |
30689 | ||
dd4f3dd8 | 30690 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
d3ad40de CR |
30691 | _ACEOF |
30692 | ||
30693 | ||
dd4f3dd8 CR |
30694 | { |
30695 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
30696 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
30697 | echo "_ACEOF" | |
30698 | } >conf$$subs.sh || | |
30699 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
30700 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
30701 | { (exit 1); exit 1; }; } | |
30702 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
d3ad40de CR |
30703 | ac_delim='%!_!# ' |
30704 | for ac_last_try in false false false false false :; do | |
dd4f3dd8 CR |
30705 | . ./conf$$subs.sh || |
30706 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
30707 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
30708 | { (exit 1); exit 1; }; } | |
30709 | ||
76af2125 | 30710 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
d3ad40de CR |
30711 | break |
30712 | elif $ac_last_try; then | |
dd4f3dd8 CR |
30713 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
30714 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
d3ad40de CR |
30715 | { (exit 1); exit 1; }; } |
30716 | else | |
30717 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
30718 | fi | |
30719 | done | |
dd4f3dd8 CR |
30720 | rm -f conf$$subs.sh |
30721 | ||
30722 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30723 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
30724 | _ACEOF | |
30725 | sed -n ' | |
30726 | h | |
30727 | s/^/S["/; s/!.*/"]=/ | |
30728 | p | |
30729 | g | |
30730 | s/^[^!]*!// | |
30731 | :repl | |
30732 | t repl | |
30733 | s/'"$ac_delim"'$// | |
30734 | t delim | |
30735 | :nl | |
30736 | h | |
30737 | s/\(.\{148\}\).*/\1/ | |
30738 | t more1 | |
30739 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
30740 | p | |
30741 | n | |
30742 | b repl | |
30743 | :more1 | |
30744 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
30745 | p | |
30746 | g | |
30747 | s/.\{148\}// | |
30748 | t nl | |
30749 | :delim | |
30750 | h | |
30751 | s/\(.\{148\}\).*/\1/ | |
30752 | t more2 | |
30753 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
30754 | p | |
30755 | b | |
30756 | :more2 | |
30757 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
30758 | p | |
30759 | g | |
30760 | s/.\{148\}// | |
30761 | t delim | |
30762 | ' <conf$$subs.awk | sed ' | |
30763 | /^[^""]/{ | |
30764 | N | |
30765 | s/\n// | |
30766 | } | |
30767 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
30768 | rm -f conf$$subs.awk | |
30769 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30770 | _ACAWK | |
30771 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
30772 | for (key in S) S_is_set[key] = 1 | |
30773 | FS = "\a" | |
30774 | ||
30775 | } | |
30776 | { | |
30777 | line = $ 0 | |
30778 | nfields = split(line, field, "@") | |
30779 | substed = 0 | |
30780 | len = length(field[1]) | |
30781 | for (i = 2; i < nfields; i++) { | |
30782 | key = field[i] | |
30783 | keylen = length(key) | |
30784 | if (S_is_set[key]) { | |
30785 | value = S[key] | |
30786 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
30787 | len += length(value) + length(field[++i]) | |
30788 | substed = 1 | |
30789 | } else | |
30790 | len += 1 + keylen | |
30791 | } | |
d3ad40de | 30792 | |
dd4f3dd8 CR |
30793 | print line |
30794 | } | |
9d6e5e30 | 30795 | |
dd4f3dd8 | 30796 | _ACAWK |
d3ad40de | 30797 | _ACEOF |
dd4f3dd8 CR |
30798 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
30799 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
30800 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
30801 | else | |
30802 | cat | |
30803 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
30804 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
30805 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
30806 | { (exit 1); exit 1; }; } | |
9d6e5e30 | 30807 | _ACEOF |
d3ad40de | 30808 | |
d3ad40de CR |
30809 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
30810 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
30811 | # trailing colons and then remove the whole line if VPATH becomes empty | |
30812 | # (actually we leave an empty line to preserve line numbers). | |
30813 | if test "x$srcdir" = x.; then | |
30814 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
30815 | s/:*\$(srcdir):*/:/ | |
30816 | s/:*\${srcdir}:*/:/ | |
30817 | s/:*@srcdir@:*/:/ | |
30818 | s/^\([^=]*=[ ]*\):*/\1/ | |
30819 | s/:*$// | |
30820 | s/^[^=]*=[ ]*$// | |
30821 | }' | |
30822 | fi | |
30823 | ||
dd4f3dd8 | 30824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d3ad40de CR |
30825 | fi # test -n "$CONFIG_FILES" |
30826 | ||
dd4f3dd8 CR |
30827 | # Set up the scripts for CONFIG_HEADERS section. |
30828 | # No need to generate them if there are no CONFIG_HEADERS. | |
30829 | # This happens for instance with `./config.status Makefile'. | |
30830 | if test -n "$CONFIG_HEADERS"; then | |
30831 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
30832 | BEGIN { | |
30833 | _ACEOF | |
30834 | ||
30835 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
30836 | # here-document in config.status, that substitutes the proper values into | |
30837 | # config.h.in to produce config.h. | |
30838 | ||
30839 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
30840 | # handling of long lines. | |
30841 | ac_delim='%!_!# ' | |
30842 | for ac_last_try in false false :; do | |
30843 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
30844 | if test -z "$ac_t"; then | |
30845 | break | |
30846 | elif $ac_last_try; then | |
30847 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
30848 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
30849 | { (exit 1); exit 1; }; } | |
30850 | else | |
30851 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
30852 | fi | |
30853 | done | |
30854 | ||
30855 | # For the awk script, D is an array of macro values keyed by name, | |
30856 | # likewise P contains macro parameters if any. Preserve backslash | |
30857 | # newline sequences. | |
30858 | ||
30859 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
30860 | sed -n ' | |
30861 | s/.\{148\}/&'"$ac_delim"'/g | |
30862 | t rset | |
30863 | :rset | |
30864 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
30865 | t def | |
30866 | d | |
30867 | :def | |
30868 | s/\\$// | |
30869 | t bsnl | |
30870 | s/["\\]/\\&/g | |
30871 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
30872 | D["\1"]=" \3"/p | |
30873 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
30874 | d | |
30875 | :bsnl | |
30876 | s/["\\]/\\&/g | |
30877 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
30878 | D["\1"]=" \3\\\\\\n"\\/p | |
30879 | t cont | |
30880 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
30881 | t cont | |
30882 | d | |
30883 | :cont | |
30884 | n | |
30885 | s/.\{148\}/&'"$ac_delim"'/g | |
30886 | t clear | |
30887 | :clear | |
30888 | s/\\$// | |
30889 | t bsnlc | |
30890 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
30891 | d | |
30892 | :bsnlc | |
30893 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
30894 | b cont | |
30895 | ' <confdefs.h | sed ' | |
30896 | s/'"$ac_delim"'/"\\\ | |
30897 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
30898 | ||
30899 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
30900 | for (key in D) D_is_set[key] = 1 | |
30901 | FS = "\a" | |
30902 | } | |
30903 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
30904 | line = \$ 0 | |
30905 | split(line, arg, " ") | |
30906 | if (arg[1] == "#") { | |
30907 | defundef = arg[2] | |
30908 | mac1 = arg[3] | |
30909 | } else { | |
30910 | defundef = substr(arg[1], 2) | |
30911 | mac1 = arg[2] | |
30912 | } | |
30913 | split(mac1, mac2, "(") #) | |
30914 | macro = mac2[1] | |
30915 | if (D_is_set[macro]) { | |
30916 | # Preserve the white space surrounding the "#". | |
76af2125 | 30917 | prefix = substr(line, 1, index(line, defundef) - 1) |
dd4f3dd8 CR |
30918 | print prefix "define", macro P[macro] D[macro] |
30919 | next | |
30920 | } else { | |
30921 | # Replace #undef with comments. This is necessary, for example, | |
30922 | # in the case of _POSIX_SOURCE, which is predefined and required | |
30923 | # on some systems where configure will not decide to define it. | |
30924 | if (defundef == "undef") { | |
76af2125 | 30925 | print "/*", line, "*/" |
dd4f3dd8 CR |
30926 | next |
30927 | } | |
30928 | } | |
30929 | } | |
30930 | { print } | |
30931 | _ACAWK | |
30932 | _ACEOF | |
30933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
30934 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
30935 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
30936 | { (exit 1); exit 1; }; } | |
30937 | fi # test -n "$CONFIG_HEADERS" | |
30938 | ||
d3ad40de | 30939 | |
dd4f3dd8 CR |
30940 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
30941 | shift | |
30942 | for ac_tag | |
d3ad40de CR |
30943 | do |
30944 | case $ac_tag in | |
30945 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
30946 | esac | |
30947 | case $ac_mode$ac_tag in | |
30948 | :[FHL]*:*);; | |
76af2125 CR |
30949 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
30950 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
d3ad40de CR |
30951 | { (exit 1); exit 1; }; };; |
30952 | :[FH]-) ac_tag=-:-;; | |
30953 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
30954 | esac | |
30955 | ac_save_IFS=$IFS | |
30956 | IFS=: | |
30957 | set x $ac_tag | |
30958 | IFS=$ac_save_IFS | |
30959 | shift | |
30960 | ac_file=$1 | |
30961 | shift | |
30962 | ||
30963 | case $ac_mode in | |
30964 | :L) ac_source=$1;; | |
30965 | :[FH]) | |
30966 | ac_file_inputs= | |
30967 | for ac_f | |
30968 | do | |
30969 | case $ac_f in | |
30970 | -) ac_f="$tmp/stdin";; | |
30971 | *) # Look for the file first in the build tree, then in the source tree | |
30972 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
30973 | # because $ac_f cannot contain `:'. | |
30974 | test -f "$ac_f" || | |
30975 | case $ac_f in | |
30976 | [\\/$]*) false;; | |
30977 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
30978 | esac || | |
dd4f3dd8 CR |
30979 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
30980 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
d3ad40de CR |
30981 | { (exit 1); exit 1; }; };; |
30982 | esac | |
dd4f3dd8 CR |
30983 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
30984 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
d3ad40de CR |
30985 | done |
30986 | ||
30987 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
30988 | # use $as_me), people would be surprised to read: | |
30989 | # /* config.h. Generated by config.status. */ | |
dd4f3dd8 CR |
30990 | configure_input='Generated from '` |
30991 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
30992 | `' by configure.' | |
d3ad40de CR |
30993 | if test x"$ac_file" != x-; then |
30994 | configure_input="$ac_file. $configure_input" | |
dd4f3dd8 CR |
30995 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
30996 | $as_echo "$as_me: creating $ac_file" >&6;} | |
d3ad40de | 30997 | fi |
dd4f3dd8 CR |
30998 | # Neutralize special characters interpreted by sed in replacement strings. |
30999 | case $configure_input in #( | |
31000 | *\&* | *\|* | *\\* ) | |
31001 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
31002 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
31003 | *) ac_sed_conf_input=$configure_input;; | |
31004 | esac | |
d3ad40de CR |
31005 | |
31006 | case $ac_tag in | |
dd4f3dd8 CR |
31007 | *:-:* | *:-) cat >"$tmp/stdin" \ |
31008 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
31009 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
31010 | { (exit 1); exit 1; }; } ;; | |
d3ad40de CR |
31011 | esac |
31012 | ;; | |
545f34cf CR |
31013 | esac |
31014 | ||
d3ad40de | 31015 | ac_dir=`$as_dirname -- "$ac_file" || |
545f34cf | 31016 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a82a04b3 CR |
31017 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
31018 | X"$ac_file" : 'X\(//\)$' \| \ | |
d3ad40de | 31019 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
dd4f3dd8 | 31020 | $as_echo X"$ac_file" | |
d3ad40de CR |
31021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
31022 | s//\1/ | |
31023 | q | |
31024 | } | |
31025 | /^X\(\/\/\)[^/].*/{ | |
31026 | s//\1/ | |
31027 | q | |
31028 | } | |
31029 | /^X\(\/\/\)$/{ | |
31030 | s//\1/ | |
31031 | q | |
31032 | } | |
31033 | /^X\(\/\).*/{ | |
31034 | s//\1/ | |
31035 | q | |
31036 | } | |
31037 | s/.*/./; q'` | |
31038 | { as_dir="$ac_dir" | |
31039 | case $as_dir in #( | |
31040 | -*) as_dir=./$as_dir;; | |
31041 | esac | |
31042 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
545f34cf | 31043 | as_dirs= |
d3ad40de CR |
31044 | while :; do |
31045 | case $as_dir in #( | |
dd4f3dd8 | 31046 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
d3ad40de CR |
31047 | *) as_qdir=$as_dir;; |
31048 | esac | |
31049 | as_dirs="'$as_qdir' $as_dirs" | |
31050 | as_dir=`$as_dirname -- "$as_dir" || | |
545f34cf | 31051 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a82a04b3 CR |
31052 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
31053 | X"$as_dir" : 'X\(//\)$' \| \ | |
d3ad40de | 31054 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
dd4f3dd8 | 31055 | $as_echo X"$as_dir" | |
d3ad40de CR |
31056 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
31057 | s//\1/ | |
31058 | q | |
31059 | } | |
31060 | /^X\(\/\/\)[^/].*/{ | |
31061 | s//\1/ | |
31062 | q | |
31063 | } | |
31064 | /^X\(\/\/\)$/{ | |
31065 | s//\1/ | |
31066 | q | |
31067 | } | |
31068 | /^X\(\/\).*/{ | |
31069 | s//\1/ | |
31070 | q | |
31071 | } | |
31072 | s/.*/./; q'` | |
31073 | test -d "$as_dir" && break | |
545f34cf | 31074 | done |
d3ad40de | 31075 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
dd4f3dd8 CR |
31076 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
31077 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
545f34cf | 31078 | { (exit 1); exit 1; }; }; } |
545f34cf CR |
31079 | ac_builddir=. |
31080 | ||
d3ad40de CR |
31081 | case "$ac_dir" in |
31082 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
31083 | *) | |
dd4f3dd8 | 31084 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
d3ad40de | 31085 | # A ".." for each directory in $ac_dir_suffix. |
dd4f3dd8 | 31086 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
d3ad40de CR |
31087 | case $ac_top_builddir_sub in |
31088 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
31089 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
31090 | esac ;; | |
31091 | esac | |
31092 | ac_abs_top_builddir=$ac_pwd | |
31093 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
31094 | # for backward compatibility: | |
31095 | ac_top_builddir=$ac_top_build_prefix | |
545f34cf CR |
31096 | |
31097 | case $srcdir in | |
d3ad40de | 31098 | .) # We are building in place. |
545f34cf | 31099 | ac_srcdir=. |
d3ad40de CR |
31100 | ac_top_srcdir=$ac_top_builddir_sub |
31101 | ac_abs_top_srcdir=$ac_pwd ;; | |
31102 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
545f34cf | 31103 | ac_srcdir=$srcdir$ac_dir_suffix; |
d3ad40de CR |
31104 | ac_top_srcdir=$srcdir |
31105 | ac_abs_top_srcdir=$srcdir ;; | |
31106 | *) # Relative name. | |
31107 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
31108 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
31109 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
545f34cf | 31110 | esac |
d3ad40de | 31111 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a82a04b3 | 31112 | |
545f34cf | 31113 | |
d3ad40de CR |
31114 | case $ac_mode in |
31115 | :F) | |
31116 | # | |
31117 | # CONFIG_FILE | |
31118 | # | |
545f34cf CR |
31119 | |
31120 | case $INSTALL in | |
31121 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
d3ad40de | 31122 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
545f34cf | 31123 | esac |
d3ad40de | 31124 | _ACEOF |
545f34cf | 31125 | |
dd4f3dd8 | 31126 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d3ad40de CR |
31127 | # If the template does not know about datarootdir, expand it. |
31128 | # FIXME: This hack should be removed a few years after 2.60. | |
31129 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
31130 | ||
dd4f3dd8 CR |
31131 | ac_sed_dataroot=' |
31132 | /datarootdir/ { | |
d3ad40de CR |
31133 | p |
31134 | q | |
31135 | } | |
31136 | /@datadir@/p | |
31137 | /@docdir@/p | |
31138 | /@infodir@/p | |
31139 | /@localedir@/p | |
31140 | /@mandir@/p | |
dd4f3dd8 CR |
31141 | ' |
31142 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
d3ad40de CR |
31143 | *datarootdir*) ac_datarootdir_seen=yes;; |
31144 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
dd4f3dd8 CR |
31145 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
31146 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
d3ad40de | 31147 | _ACEOF |
dd4f3dd8 | 31148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
d3ad40de CR |
31149 | ac_datarootdir_hack=' |
31150 | s&@datadir@&$datadir&g | |
31151 | s&@docdir@&$docdir&g | |
31152 | s&@infodir@&$infodir&g | |
31153 | s&@localedir@&$localedir&g | |
31154 | s&@mandir@&$mandir&g | |
31155 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
31156 | esac | |
9d6e5e30 | 31157 | _ACEOF |
d3ad40de CR |
31158 | |
31159 | # Neutralize VPATH when `$srcdir' = `.'. | |
31160 | # Shell code in configure.ac might set extrasub. | |
31161 | # FIXME: do we really want to maintain this feature? | |
dd4f3dd8 CR |
31162 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
31163 | ac_sed_extra="$ac_vpsub | |
545f34cf CR |
31164 | $extrasub |
31165 | _ACEOF | |
dd4f3dd8 | 31166 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
545f34cf CR |
31167 | :t |
31168 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
dd4f3dd8 | 31169 | s|@configure_input@|$ac_sed_conf_input|;t t |
d3ad40de | 31170 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
dd4f3dd8 | 31171 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
d3ad40de CR |
31172 | s&@srcdir@&$ac_srcdir&;t t |
31173 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
31174 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
31175 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
31176 | s&@builddir@&$ac_builddir&;t t | |
31177 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
31178 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
31179 | s&@INSTALL@&$ac_INSTALL&;t t | |
31180 | $ac_datarootdir_hack | |
dd4f3dd8 CR |
31181 | " |
31182 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
31183 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
31184 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
31185 | { (exit 1); exit 1; }; } | |
d3ad40de CR |
31186 | |
31187 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
31188 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
31189 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
dd4f3dd8 | 31190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d3ad40de | 31191 | which seems to be undefined. Please make sure it is defined." >&5 |
dd4f3dd8 | 31192 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d3ad40de CR |
31193 | which seems to be undefined. Please make sure it is defined." >&2;} |
31194 | ||
31195 | rm -f "$tmp/stdin" | |
545f34cf | 31196 | case $ac_file in |
dd4f3dd8 CR |
31197 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
31198 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
31199 | esac \ | |
31200 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
31201 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
31202 | { (exit 1); exit 1; }; } | |
d3ad40de CR |
31203 | ;; |
31204 | :H) | |
31205 | # | |
31206 | # CONFIG_HEADER | |
31207 | # | |
545f34cf | 31208 | if test x"$ac_file" != x-; then |
dd4f3dd8 CR |
31209 | { |
31210 | $as_echo "/* $configure_input */" \ | |
31211 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
31212 | } >"$tmp/config.h" \ | |
31213 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
31214 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
31215 | { (exit 1); exit 1; }; } | |
31216 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
31217 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
31218 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
545f34cf | 31219 | else |
dd4f3dd8 CR |
31220 | rm -f "$ac_file" |
31221 | mv "$tmp/config.h" "$ac_file" \ | |
31222 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
31223 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
31224 | { (exit 1); exit 1; }; } | |
545f34cf CR |
31225 | fi |
31226 | else | |
dd4f3dd8 CR |
31227 | $as_echo "/* $configure_input */" \ |
31228 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
31229 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
31230 | $as_echo "$as_me: error: could not create -" >&2;} | |
31231 | { (exit 1); exit 1; }; } | |
545f34cf | 31232 | fi |
d3ad40de CR |
31233 | ;; |
31234 | ||
dd4f3dd8 CR |
31235 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
31236 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
d3ad40de CR |
31237 | ;; |
31238 | esac | |
545f34cf CR |
31239 | |
31240 | ||
d3ad40de CR |
31241 | case $ac_file$ac_mode in |
31242 | "default-1":C) | |
545f34cf CR |
31243 | for ac_file in $CONFIG_FILES; do |
31244 | # Support "outfile[:infile[:infile...]]" | |
31245 | case "$ac_file" in | |
31246 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
31247 | esac | |
31248 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
31249 | case "$ac_file" in */Makefile.in) | |
31250 | # Adjust a relative srcdir. | |
31251 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
31252 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
31253 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
31254 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
31255 | # In autoconf-2.50 it is called $srcdir. | |
31256 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
31257 | case "$ac_given_srcdir" in | |
31258 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
31259 | /*) top_srcdir="$ac_given_srcdir" ;; | |
31260 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
31261 | esac | |
31262 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
31263 | rm -f "$ac_dir/POTFILES" | |
31264 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
31265 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
31266 | POMAKEFILEDEPS="POTFILES.in" | |
31267 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
31268 | # on $ac_dir but don't depend on user-specified configuration | |
31269 | # parameters. | |
31270 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
31271 | # The LINGUAS file contains the set of available languages. | |
31272 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
31273 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
31274 | fi | |
31275 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
31276 | # Hide the ALL_LINGUAS assigment from automake. | |
31277 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
31278 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
31279 | else | |
31280 | # The set of available languages was given in configure.in. | |
31281 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
31282 | fi | |
31283 | case "$ac_given_srcdir" in | |
31284 | .) srcdirpre= ;; | |
31285 | *) srcdirpre='$(srcdir)/' ;; | |
31286 | esac | |
31287 | POFILES= | |
31288 | GMOFILES= | |
31289 | UPDATEPOFILES= | |
31290 | DUMMYPOFILES= | |
31291 | for lang in $ALL_LINGUAS; do | |
31292 | POFILES="$POFILES $srcdirpre$lang.po" | |
31293 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
31294 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
31295 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
31296 | done | |
31297 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
31298 | # environment variable. | |
31299 | INST_LINGUAS= | |
31300 | if test -n "$ALL_LINGUAS"; then | |
31301 | for presentlang in $ALL_LINGUAS; do | |
31302 | useit=no | |
31303 | if test "%UNSET%" != "$LINGUAS"; then | |
31304 | desiredlanguages="$LINGUAS" | |
31305 | else | |
31306 | desiredlanguages="$ALL_LINGUAS" | |
31307 | fi | |
31308 | for desiredlang in $desiredlanguages; do | |
31309 | # Use the presentlang catalog if desiredlang is | |
31310 | # a. equal to presentlang, or | |
31311 | # b. a variant of presentlang (because in this case, | |
31312 | # presentlang can be used as a fallback for messages | |
31313 | # which are not translated in the desiredlang catalog). | |
31314 | case "$desiredlang" in | |
31315 | "$presentlang"*) useit=yes;; | |
31316 | esac | |
31317 | done | |
31318 | if test $useit = yes; then | |
31319 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
31320 | fi | |
31321 | done | |
31322 | fi | |
31323 | CATALOGS= | |
31324 | if test -n "$INST_LINGUAS"; then | |
31325 | for lang in $INST_LINGUAS; do | |
31326 | CATALOGS="$CATALOGS $lang.gmo" | |
31327 | done | |
31328 | fi | |
31329 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
31330 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
31331 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
31332 | if test -f "$f"; then | |
31333 | case "$f" in | |
31334 | *.orig | *.bak | *~) ;; | |
31335 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
31336 | esac | |
31337 | fi | |
31338 | done | |
31339 | fi | |
31340 | ;; | |
31341 | esac | |
31342 | done ;; | |
d3ad40de | 31343 | "default":C) |
545f34cf CR |
31344 | # Makefile uses this timestamp file to record whether config.h is up to date. |
31345 | echo timestamp > stamp-h | |
31346 | ;; | |
d3ad40de | 31347 | |
545f34cf | 31348 | esac |
d3ad40de | 31349 | done # for ac_tag |
545f34cf | 31350 | |
545f34cf CR |
31351 | |
31352 | { (exit 0); exit 0; } | |
31353 | _ACEOF | |
31354 | chmod +x $CONFIG_STATUS | |
31355 | ac_clean_files=$ac_clean_files_save | |
31356 | ||
dd4f3dd8 CR |
31357 | test $ac_write_fail = 0 || |
31358 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
31359 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
31360 | { (exit 1); exit 1; }; } | |
31361 | ||
545f34cf CR |
31362 | |
31363 | # configure is writing to config.log, and then calls config.status. | |
31364 | # config.status does its own redirection, appending to config.log. | |
31365 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
31366 | # by configure, so config.status won't be able to write to it; its | |
31367 | # output is simply discarded. So we exec the FD to /dev/null, | |
31368 | # effectively closing config.log, so it can be properly (re)opened and | |
31369 | # appended to by config.status. When coming back to configure, we | |
31370 | # need to make the FD available again. | |
31371 | if test "$no_create" != yes; then | |
31372 | ac_cs_success=: | |
31373 | ac_config_status_args= | |
31374 | test "$silent" = yes && | |
31375 | ac_config_status_args="$ac_config_status_args --quiet" | |
31376 | exec 5>/dev/null | |
31377 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
31378 | exec 5>>config.log | |
31379 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
31380 | # would make configure fail if this is the last instruction. | |
31381 | $ac_cs_success || { (exit 1); exit 1; } | |
31382 | fi | |
dd4f3dd8 | 31383 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
76af2125 CR |
31384 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
31385 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} | |
dd4f3dd8 | 31386 | fi |
545f34cf | 31387 |