]> git.ipfire.org Git - thirdparty/bash.git/blob - configure
Bash-5.2 patch 26: fix typo when specifying readline's custom color prefix
[thirdparty/bash.git] / configure
1 #! /bin/sh
2 # From configure.ac for Bash 5.0, version 5.005.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for bash 5.0-release.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (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'
57 else
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'
70 fi
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 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
207 fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='bash'
583 PACKAGE_TARNAME='bash'
584 PACKAGE_VERSION='5.0-release'
585 PACKAGE_STRING='bash 5.0-release'
586 PACKAGE_BUGREPORT='bug-bash@gnu.org'
587 PACKAGE_URL=''
588
589 ac_unique_file="shell.h"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_header_list=
627 ac_func_list=
628 ac_subst_vars='LTLIBOBJS
629 LOCAL_DEFS
630 LOCAL_LDFLAGS
631 LOCAL_CFLAGS
632 LOCAL_LIBS
633 MALLOC_DEBUG
634 DEBUG
635 RELSTATUS
636 BASHVERS
637 ARFLAGS
638 headersdir
639 loadablesdir
640 BUILD_DIR
641 incdir
642 PROFILE_FLAGS
643 SHOBJ_STATUS
644 SHOBJ_LIBS
645 SHOBJ_XLDFLAGS
646 SHOBJ_LDFLAGS
647 SHOBJ_LD
648 SHOBJ_CFLAGS
649 SHOBJ_CC
650 JOBS_O
651 TERMCAP_DEP
652 TERMCAP_LIB
653 SIGLIST_O
654 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
655 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
656 TIME_H_DEFINES_STRUCT_TIMESPEC
657 LIBINTL_H
658 INTL_INC
659 INTL_DEP
660 LIBOBJS
661 POSUB
662 LTLIBINTL
663 LIBINTL
664 INTLLIBS
665 INTL_LIBTOOL_SUFFIX_PREFIX
666 INTLOBJS
667 GENCAT
668 INSTOBJEXT
669 DATADIRNAME
670 CATOBJEXT
671 USE_INCLUDED_LIBINTL
672 BUILD_INCLUDED_LIBINTL
673 INTLBISON
674 LTLIBICONV
675 LIBICONV
676 GLIBC21
677 ALLOCA
678 MSGMERGE
679 XGETTEXT
680 GMSGFMT
681 MSGFMT
682 USE_NLS
683 MKINSTALLDIRS
684 SIZE
685 MAKE_SHELL
686 SET_MAKE
687 YFLAGS
688 YACC
689 RANLIB
690 AR
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 TILDE_LIB
695 HIST_LIBDIR
696 HISTORY_DEP
697 HISTORY_LIB
698 RL_INCLUDE
699 RL_INCLUDEDIR
700 RL_LIBDIR
701 READLINE_DEP
702 READLINE_LIB
703 RL_MINOR
704 RL_MAJOR
705 RL_VERSION
706 LIBS_FOR_BUILD
707 STATIC_LD
708 SIGNAMES_O
709 SIGNAMES_H
710 CROSS_COMPILE
711 EGREP
712 GREP
713 CPP
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 HELPSTRINGS
722 HELPFILES_TARGET
723 HELPINSTALL
724 HELPDIRDEFINE
725 HELPDIR
726 MALLOC_DEP
727 MALLOC_LDFLAGS
728 MALLOC_LIBRARY
729 MALLOC_LIB
730 MALLOC_SRC
731 MALLOC_TARGET
732 TESTSCRIPT
733 CPPFLAGS_FOR_BUILD
734 LDFLAGS_FOR_BUILD
735 CFLAGS_FOR_BUILD
736 CC_FOR_BUILD
737 DEBUGGER_START_FILE
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 with_afs
788 with_bash_malloc
789 with_curses
790 with_gnu_malloc
791 with_installed_readline
792 enable_minimal_config
793 enable_alias
794 enable_arith_for_command
795 enable_array_variables
796 enable_bang_history
797 enable_brace_expansion
798 enable_casemod_attributes
799 enable_casemod_expansions
800 enable_command_timing
801 enable_cond_command
802 enable_cond_regexp
803 enable_coprocesses
804 enable_debugger
805 enable_dev_fd_stat_broken
806 enable_direxpand_default
807 enable_directory_stack
808 enable_disabled_builtins
809 enable_dparen_arithmetic
810 enable_extended_glob
811 enable_extended_glob_default
812 enable_function_import
813 enable_glob_asciiranges_default
814 enable_help_builtin
815 enable_history
816 enable_job_control
817 enable_multibyte
818 enable_net_redirections
819 enable_process_substitution
820 enable_progcomp
821 enable_prompt_string_decoding
822 enable_readline
823 enable_restricted
824 enable_select
825 enable_separate_helpfiles
826 enable_single_help_strings
827 enable_strict_posix_default
828 enable_usg_echo_default
829 enable_xpg_echo_default
830 enable_mem_scramble
831 enable_profiling
832 enable_static_link
833 enable_largefile
834 enable_nls
835 with_gnu_ld
836 enable_rpath
837 with_libiconv_prefix
838 with_included_gettext
839 with_libintl_prefix
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 DEBUGGER_START_FILE
845 CC_FOR_BUILD
846 CFLAGS_FOR_BUILD
847 LDFLAGS_FOR_BUILD
848 CPPFLAGS_FOR_BUILD
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP
855 YACC
856 YFLAGS'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
899 htmldir='${docdir}'
900 dvidir='${docdir}'
901 pdfdir='${docdir}'
902 psdir='${docdir}'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
906
907 ac_prev=
908 ac_dashdash=
909 for ac_option
910 do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures bash 5.0-release to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1451
1452 cat <<\_ACEOF
1453
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of bash 5.0-release:";;
1463 esac
1464 cat <<\_ACEOF
1465
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-minimal-config a minimal sh-like configuration
1471 --enable-alias enable shell aliases
1472 --enable-arith-for-command
1473 enable arithmetic for command
1474 --enable-array-variables
1475 include shell array variables
1476 --enable-bang-history turn on csh-style history substitution
1477 --enable-brace-expansion
1478 include brace expansion
1479 --enable-casemod-attributes
1480 include case-modifying variable attributes
1481 --enable-casemod-expansions
1482 include case-modifying word expansions
1483 --enable-command-timing enable the time reserved word and command timing
1484 --enable-cond-command enable the conditional command
1485 --enable-cond-regexp enable extended regular expression matching in
1486 conditional commands
1487 --enable-coprocesses enable coprocess support and the coproc reserved
1488 word
1489 --enable-debugger enable support for bash debugger
1490 --enable-dev-fd-stat-broken
1491 enable this option if stat on /dev/fd/N and fstat on
1492 file descriptor N don't return the same results
1493 --enable-direxpand-default
1494 enable the direxpand shell option by default
1495 --enable-directory-stack
1496 enable builtins pushd/popd/dirs
1497 --enable-disabled-builtins
1498 allow disabled builtins to still be invoked
1499 --enable-dparen-arithmetic
1500 include ((...)) command
1501 --enable-extended-glob include ksh-style extended pattern matching
1502 --enable-extended-glob-default
1503 force extended pattern matching to be enabled by
1504 default
1505 --enable-function-import
1506 allow bash to import exported function definitions
1507 by default
1508 --enable-glob-asciiranges-default
1509 force bracket range expressions in pattern matching
1510 to use the C locale by default
1511 --enable-help-builtin include the help builtin
1512 --enable-history turn on command history
1513 --enable-job-control enable job control features
1514 --enable-multibyte enable multibyte characters if OS supports them
1515 --enable-net-redirections
1516 enable /dev/tcp/host/port redirection
1517 --enable-process-substitution
1518 enable process substitution
1519 --enable-progcomp enable programmable completion and the complete
1520 builtin
1521 --enable-prompt-string-decoding
1522 turn on escape character decoding in prompts
1523 --enable-readline turn on command line editing
1524 --enable-restricted enable a restricted shell
1525 --enable-select include select command
1526 --enable-separate-helpfiles
1527 use external files for help builtin documentation
1528 --enable-single-help-strings
1529 store help documentation as a single string to ease
1530 translation
1531 --enable-strict-posix-default
1532 configure bash to be posix-conformant by default
1533 --enable-usg-echo-default
1534 a synonym for --enable-xpg-echo-default
1535 --enable-xpg-echo-default
1536 make the echo builtin expand escape sequences by
1537 default
1538 --enable-mem-scramble scramble memory on calls to malloc and free
1539 --enable-profiling allow profiling with gprof
1540 --enable-static-link link bash statically, for use as a root shell
1541 --disable-largefile omit support for large files
1542 --disable-nls do not use Native Language Support
1543 --disable-rpath do not hardcode runtime library paths
1544
1545 Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-afs if you are running AFS
1549 --with-bash-malloc use the Bash version of malloc
1550 --with-curses use the curses library instead of the termcap
1551 library
1552 --with-gnu-malloc synonym for --with-bash-malloc
1553 --with-installed-readline
1554 use a version of the readline library that is
1555 already installed
1556 --with-gnu-ld assume the C compiler uses GNU ld default=no
1557 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1558 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1559 --with-included-gettext use the GNU gettext library included here
1560 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1561 --without-libintl-prefix don't search for libintl in includedir and libdir
1562
1563 Some influential environment variables:
1564 DEBUGGER_START_FILE
1565 location of bash debugger initialization file
1566 CC_FOR_BUILD
1567 C compiler used when compiling binaries used only at build time
1568 CFLAGS_FOR_BUILD
1569 Compilation options (CFLAGS) used when compiling binaries used
1570 only at build time
1571 LDFLAGS_FOR_BUILD
1572 Linker options (LDFLAGS) used when compiling binaries used only
1573 at build time
1574 CPPFLAGS_FOR_BUILD
1575 C preprocessor options (CPPFLAGS) used when compiling binaries
1576 used only at build time
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CPP C preprocessor
1585 YACC The `Yet Another Compiler Compiler' implementation to use.
1586 Defaults to the first program found out of: `bison -y', `byacc',
1587 `yacc'.
1588 YFLAGS The list of arguments that will be passed by default to $YACC.
1589 This script will default YFLAGS to the empty string to avoid a
1590 default value of `-d' given by some make applications.
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <bug-bash@gnu.org>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 bash configure 5.0-release
1659 generated by GNU Autoconf 2.69
1660
1661 Copyright (C) 2012 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1666 fi
1667
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1671
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_compile
1709
1710 # ac_fn_c_try_link LINENO
1711 # -----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_link ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext conftest$ac_exeext
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 test -x conftest$ac_exeext
1738 }; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745 fi
1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748 # interfere with the next link command; also delete a directory that is
1749 # left behind by Apple's compiler. We do this before executing the actions.
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_link
1755
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_cpp ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } > conftest.i && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }; then :
1781 ac_retval=0
1782 else
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=1
1787 fi
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_cpp
1792
1793 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796 # the include files in INCLUDES and setting the cache variable VAR
1797 # accordingly.
1798 ac_fn_c_check_header_mongrel ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if eval \${$3+:} false; then :
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1806 fi
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 else
1811 # Is the header compilable?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813 $as_echo_n "checking $2 usability... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 $4
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 ac_header_compiler=yes
1821 else
1822 ac_header_compiler=no
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826 $as_echo "$ac_header_compiler" >&6; }
1827
1828 # Is the header present?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830 $as_echo_n "checking $2 presence... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_cpp "$LINENO"; then :
1836 ac_header_preproc=yes
1837 else
1838 ac_header_preproc=no
1839 fi
1840 rm -f conftest.err conftest.i conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842 $as_echo "$ac_header_preproc" >&6; }
1843
1844 # So? What about this header?
1845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 yes:no: )
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 ;;
1852 no:yes:* )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1856 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1860 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ( $as_echo "## ------------------------------- ##
1864 ## Report this to bug-bash@gnu.org ##
1865 ## ------------------------------- ##"
1866 ) | sed "s/^/$as_me: WARNING: /" >&2
1867 ;;
1868 esac
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=\$ac_header_compiler"
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 fi
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_header_mongrel
1883
1884 # ac_fn_c_try_run LINENO
1885 # ----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1887 # that executables *can* be run.
1888 ac_fn_c_try_run ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>&5
1899 ac_status=$?
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1902 { { case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_try") 2>&5
1909 ac_status=$?
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; }; }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: program exited with status $ac_status" >&5
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=$ac_status
1919 fi
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924 } # ac_fn_c_try_run
1925
1926 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists and can be compiled using the include files in
1929 # INCLUDES, setting the cache variable VAR accordingly.
1930 ac_fn_c_check_header_compile ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 eval "$3=yes"
1945 else
1946 eval "$3=no"
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 fi
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955 } # ac_fn_c_check_header_compile
1956
1957 # ac_fn_c_check_func LINENO FUNC VAR
1958 # ----------------------------------
1959 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1960 ac_fn_c_check_func ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1972 #define $2 innocuous_$2
1973
1974 /* System header to define __stub macros and hopefully few prototypes,
1975 which can conflict with char $2 (); below.
1976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1977 <limits.h> exists even on freestanding compilers. */
1978
1979 #ifdef __STDC__
1980 # include <limits.h>
1981 #else
1982 # include <assert.h>
1983 #endif
1984
1985 #undef $2
1986
1987 /* Override any GCC internal prototype to avoid an error.
1988 Use char because int might match the return type of a GCC
1989 builtin and then its argument prototype would still apply. */
1990 #ifdef __cplusplus
1991 extern "C"
1992 #endif
1993 char $2 ();
1994 /* The GNU C library defines this for functions which it implements
1995 to always fail with ENOSYS. Some functions are actually named
1996 something starting with __ and the normal name is an alias. */
1997 #if defined __stub_$2 || defined __stub___$2
1998 choke me
1999 #endif
2000
2001 int
2002 main ()
2003 {
2004 return $2 ();
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_link "$LINENO"; then :
2010 eval "$3=yes"
2011 else
2012 eval "$3=no"
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext \
2015 conftest$ac_exeext conftest.$ac_ext
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022 } # ac_fn_c_check_func
2023
2024 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2025 # -------------------------------------------
2026 # Tests whether TYPE exists after having included INCLUDES, setting cache
2027 # variable VAR accordingly.
2028 ac_fn_c_check_type ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 eval "$3=no"
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 int
2041 main ()
2042 {
2043 if (sizeof ($2))
2044 return 0;
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 $4
2053 int
2054 main ()
2055 {
2056 if (sizeof (($2)))
2057 return 0;
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063
2064 else
2065 eval "$3=yes"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_type
2077
2078 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2079 # ---------------------------------------------
2080 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2081 # accordingly.
2082 ac_fn_c_check_decl ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 as_decl_name=`echo $2|sed 's/ *(.*//'`
2086 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2088 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2089 if eval \${$3+:} false; then :
2090 $as_echo_n "(cached) " >&6
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $4
2095 int
2096 main ()
2097 {
2098 #ifndef $as_decl_name
2099 #ifdef __cplusplus
2100 (void) $as_decl_use;
2101 #else
2102 (void) $as_decl_name;
2103 #endif
2104 #endif
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 eval "$3=yes"
2112 else
2113 eval "$3=no"
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 fi
2117 eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121
2122 } # ac_fn_c_check_decl
2123
2124 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2125 # --------------------------------------------
2126 # Tries to find the compile-time value of EXPR in a program that includes
2127 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2128 # computed
2129 ac_fn_c_compute_int ()
2130 {
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 if test "$cross_compiling" = yes; then
2133 # Depending upon the size, compute the lo and hi bounds.
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) >= 0)];
2141 test_array [0] = 0;
2142 return test_array [0];
2143
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_lo=0 ac_mid=0
2150 while :; do
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 test_array [0] = 0;
2159 return test_array [0];
2160
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_hi=$ac_mid; break
2167 else
2168 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2169 if test $ac_lo -le $ac_mid; then
2170 ac_lo= ac_hi=
2171 break
2172 fi
2173 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 $4
2181 int
2182 main ()
2183 {
2184 static int test_array [1 - 2 * !(($2) < 0)];
2185 test_array [0] = 0;
2186 return test_array [0];
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=-1 ac_mid=-1
2194 while :; do
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 $4
2198 int
2199 main ()
2200 {
2201 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2202 test_array [0] = 0;
2203 return test_array [0];
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_lo=$ac_mid; break
2211 else
2212 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2213 if test $ac_mid -le $ac_hi; then
2214 ac_lo= ac_hi=
2215 break
2216 fi
2217 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 done
2221 else
2222 ac_lo= ac_hi=
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 # Binary search between lo and hi bounds.
2228 while test "x$ac_lo" != "x$ac_hi"; do
2229 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $4
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2237 test_array [0] = 0;
2238 return test_array [0];
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 ac_hi=$ac_mid
2246 else
2247 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 done
2251 case $ac_lo in #((
2252 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2253 '') ac_retval=1 ;;
2254 esac
2255 else
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $4
2259 static long int longval () { return $2; }
2260 static unsigned long int ulongval () { return $2; }
2261 #include <stdio.h>
2262 #include <stdlib.h>
2263 int
2264 main ()
2265 {
2266
2267 FILE *f = fopen ("conftest.val", "w");
2268 if (! f)
2269 return 1;
2270 if (($2) < 0)
2271 {
2272 long int i = longval ();
2273 if (i != ($2))
2274 return 1;
2275 fprintf (f, "%ld", i);
2276 }
2277 else
2278 {
2279 unsigned long int i = ulongval ();
2280 if (i != ($2))
2281 return 1;
2282 fprintf (f, "%lu", i);
2283 }
2284 /* Do not output a trailing newline, as this causes \r\n confusion
2285 on some platforms. */
2286 return ferror (f) || fclose (f) != 0;
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_run "$LINENO"; then :
2293 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2294 else
2295 ac_retval=1
2296 fi
2297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2298 conftest.$ac_objext conftest.beam conftest.$ac_ext
2299 rm -f conftest.val
2300
2301 fi
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 as_fn_set_status $ac_retval
2304
2305 } # ac_fn_c_compute_int
2306
2307 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2308 # ----------------------------------------------------
2309 # Tries to find if the field MEMBER exists in type AGGR, after including
2310 # INCLUDES, setting cache variable VAR accordingly.
2311 ac_fn_c_check_member ()
2312 {
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2315 $as_echo_n "checking for $2.$3... " >&6; }
2316 if eval \${$4+:} false; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $5
2322 int
2323 main ()
2324 {
2325 static $2 ac_aggr;
2326 if (ac_aggr.$3)
2327 return 0;
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$4=yes"
2334 else
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $5
2338 int
2339 main ()
2340 {
2341 static $2 ac_aggr;
2342 if (sizeof ac_aggr.$3)
2343 return 0;
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 eval "$4=yes"
2350 else
2351 eval "$4=no"
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 fi
2357 eval ac_res=\$$4
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361
2362 } # ac_fn_c_check_member
2363 cat >config.log <<_ACEOF
2364 This file contains any messages produced by compilers while
2365 running configure, to aid debugging if configure makes a mistake.
2366
2367 It was created by bash $as_me 5.0-release, which was
2368 generated by GNU Autoconf 2.69. Invocation command line was
2369
2370 $ $0 $@
2371
2372 _ACEOF
2373 exec 5>>config.log
2374 {
2375 cat <<_ASUNAME
2376 ## --------- ##
2377 ## Platform. ##
2378 ## --------- ##
2379
2380 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2381 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2382 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2383 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2384 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2385
2386 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2387 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2388
2389 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2390 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2391 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2392 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2393 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2394 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2395 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2396
2397 _ASUNAME
2398
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 $as_echo "PATH: $as_dir"
2405 done
2406 IFS=$as_save_IFS
2407
2408 } >&5
2409
2410 cat >&5 <<_ACEOF
2411
2412
2413 ## ----------- ##
2414 ## Core tests. ##
2415 ## ----------- ##
2416
2417 _ACEOF
2418
2419
2420 # Keep a trace of the command line.
2421 # Strip out --no-create and --no-recursion so they do not pile up.
2422 # Strip out --silent because we don't want to record it for future runs.
2423 # Also quote any args containing shell meta-characters.
2424 # Make two passes to allow for proper duplicate-argument suppression.
2425 ac_configure_args=
2426 ac_configure_args0=
2427 ac_configure_args1=
2428 ac_must_keep_next=false
2429 for ac_pass in 1 2
2430 do
2431 for ac_arg
2432 do
2433 case $ac_arg in
2434 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2436 | -silent | --silent | --silen | --sile | --sil)
2437 continue ;;
2438 *\'*)
2439 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 esac
2441 case $ac_pass in
2442 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2443 2)
2444 as_fn_append ac_configure_args1 " '$ac_arg'"
2445 if test $ac_must_keep_next = true; then
2446 ac_must_keep_next=false # Got value, back to normal.
2447 else
2448 case $ac_arg in
2449 *=* | --config-cache | -C | -disable-* | --disable-* \
2450 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2451 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2452 | -with-* | --with-* | -without-* | --without-* | --x)
2453 case "$ac_configure_args0 " in
2454 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2455 esac
2456 ;;
2457 -* ) ac_must_keep_next=true ;;
2458 esac
2459 fi
2460 as_fn_append ac_configure_args " '$ac_arg'"
2461 ;;
2462 esac
2463 done
2464 done
2465 { ac_configure_args0=; unset ac_configure_args0;}
2466 { ac_configure_args1=; unset ac_configure_args1;}
2467
2468 # When interrupted or exit'd, cleanup temporary files, and complete
2469 # config.log. We remove comments because anyway the quotes in there
2470 # would cause problems or look ugly.
2471 # WARNING: Use '\'' to represent an apostrophe within the trap.
2472 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2473 trap 'exit_status=$?
2474 # Save into config.log some information that might help in debugging.
2475 {
2476 echo
2477
2478 $as_echo "## ---------------- ##
2479 ## Cache variables. ##
2480 ## ---------------- ##"
2481 echo
2482 # The following way of writing the cache mishandles newlines in values,
2483 (
2484 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2485 eval ac_val=\$$ac_var
2486 case $ac_val in #(
2487 *${as_nl}*)
2488 case $ac_var in #(
2489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2491 esac
2492 case $ac_var in #(
2493 _ | IFS | as_nl) ;; #(
2494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2495 *) { eval $ac_var=; unset $ac_var;} ;;
2496 esac ;;
2497 esac
2498 done
2499 (set) 2>&1 |
2500 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2501 *${as_nl}ac_space=\ *)
2502 sed -n \
2503 "s/'\''/'\''\\\\'\'''\''/g;
2504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2505 ;; #(
2506 *)
2507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2508 ;;
2509 esac |
2510 sort
2511 )
2512 echo
2513
2514 $as_echo "## ----------------- ##
2515 ## Output variables. ##
2516 ## ----------------- ##"
2517 echo
2518 for ac_var in $ac_subst_vars
2519 do
2520 eval ac_val=\$$ac_var
2521 case $ac_val in
2522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 esac
2524 $as_echo "$ac_var='\''$ac_val'\''"
2525 done | sort
2526 echo
2527
2528 if test -n "$ac_subst_files"; then
2529 $as_echo "## ------------------- ##
2530 ## File substitutions. ##
2531 ## ------------------- ##"
2532 echo
2533 for ac_var in $ac_subst_files
2534 do
2535 eval ac_val=\$$ac_var
2536 case $ac_val in
2537 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2538 esac
2539 $as_echo "$ac_var='\''$ac_val'\''"
2540 done | sort
2541 echo
2542 fi
2543
2544 if test -s confdefs.h; then
2545 $as_echo "## ----------- ##
2546 ## confdefs.h. ##
2547 ## ----------- ##"
2548 echo
2549 cat confdefs.h
2550 echo
2551 fi
2552 test "$ac_signal" != 0 &&
2553 $as_echo "$as_me: caught signal $ac_signal"
2554 $as_echo "$as_me: exit $exit_status"
2555 } >&5
2556 rm -f core *.core core.conftest.* &&
2557 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558 exit $exit_status
2559 ' 0
2560 for ac_signal in 1 2 13 15; do
2561 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2562 done
2563 ac_signal=0
2564
2565 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2566 rm -f -r conftest* confdefs.h
2567
2568 $as_echo "/* confdefs.h */" > confdefs.h
2569
2570 # Predefined preprocessor variables.
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_NAME "$PACKAGE_NAME"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_STRING "$PACKAGE_STRING"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_URL "$PACKAGE_URL"
2594 _ACEOF
2595
2596
2597 # Let the site file select an alternate cache file if it wants to.
2598 # Prefer an explicitly selected file to automatically selected ones.
2599 ac_site_file1=NONE
2600 ac_site_file2=NONE
2601 if test -n "$CONFIG_SITE"; then
2602 # We do not want a PATH search for config.site.
2603 case $CONFIG_SITE in #((
2604 -*) ac_site_file1=./$CONFIG_SITE;;
2605 */*) ac_site_file1=$CONFIG_SITE;;
2606 *) ac_site_file1=./$CONFIG_SITE;;
2607 esac
2608 elif test "x$prefix" != xNONE; then
2609 ac_site_file1=$prefix/share/config.site
2610 ac_site_file2=$prefix/etc/config.site
2611 else
2612 ac_site_file1=$ac_default_prefix/share/config.site
2613 ac_site_file2=$ac_default_prefix/etc/config.site
2614 fi
2615 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2616 do
2617 test "x$ac_site_file" = xNONE && continue
2618 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2620 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2621 sed 's/^/| /' "$ac_site_file" >&5
2622 . "$ac_site_file" \
2623 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 as_fn_error $? "failed to load site script $ac_site_file
2626 See \`config.log' for more details" "$LINENO" 5; }
2627 fi
2628 done
2629
2630 if test -r "$cache_file"; then
2631 # Some versions of bash will fail to source /dev/null (special files
2632 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2633 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2635 $as_echo "$as_me: loading cache $cache_file" >&6;}
2636 case $cache_file in
2637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2638 *) . "./$cache_file";;
2639 esac
2640 fi
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2643 $as_echo "$as_me: creating cache $cache_file" >&6;}
2644 >$cache_file
2645 fi
2646
2647 as_fn_append ac_header_list " stdlib.h"
2648 as_fn_append ac_header_list " unistd.h"
2649 as_fn_append ac_header_list " sys/param.h"
2650 as_fn_append ac_header_list " sys/time.h"
2651 as_fn_append ac_func_list " alarm"
2652 as_fn_append ac_func_list " sbrk"
2653 as_fn_append ac_func_list " fpurge"
2654 as_fn_append ac_func_list " __fpurge"
2655 as_fn_append ac_func_list " snprintf"
2656 as_fn_append ac_func_list " vsnprintf"
2657 # Check that the precious variables saved in the cache have kept the same
2658 # value.
2659 ac_cache_corrupted=false
2660 for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2666 set,)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2670 ,set)
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2672 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2674 ,);;
2675 *)
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x $ac_old_val`
2679 ac_new_val_w=`echo x $ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683 ac_cache_corrupted=:
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2686 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2693 fi;;
2694 esac
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2697 case $ac_new_val in
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2700 esac
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704 esac
2705 fi
2706 done
2707 if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2713 fi
2714 ## -------------------- ##
2715 ## Main body of script. ##
2716 ## -------------------- ##
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724
2725
2726
2727
2728
2729 ac_aux_dir=
2730 for ac_dir in ./support "$srcdir"/./support; do
2731 if test -f "$ac_dir/install-sh"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/install-sh -c"
2734 break
2735 elif test -f "$ac_dir/install.sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install.sh -c"
2738 break
2739 elif test -f "$ac_dir/shtool"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/shtool install -c"
2742 break
2743 fi
2744 done
2745 if test -z "$ac_aux_dir"; then
2746 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2747 fi
2748
2749 # These three variables are undocumented and unsupported,
2750 # and are intended to be withdrawn in a future Autoconf release.
2751 # They can cause serious problems if a builder's source tree is in a directory
2752 # whose full name contains unusual characters.
2753 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2754 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2755 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2756
2757
2758 ac_config_headers="$ac_config_headers config.h"
2759
2760
2761 BASHVERS=5.0
2762 RELSTATUS=release
2763
2764 case "$RELSTATUS" in
2765 alp*|bet*|dev*|rc*|releng*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2766 *) DEBUG= MALLOC_DEBUG= ;;
2767 esac
2768
2769 # Make sure we can run config.sub.
2770 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2771 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2774 $as_echo_n "checking build system type... " >&6; }
2775 if ${ac_cv_build+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 ac_build_alias=$build_alias
2779 test "x$ac_build_alias" = x &&
2780 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2781 test "x$ac_build_alias" = x &&
2782 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2783 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2785
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2788 $as_echo "$ac_cv_build" >&6; }
2789 case $ac_cv_build in
2790 *-*-*) ;;
2791 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2792 esac
2793 build=$ac_cv_build
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_build
2796 shift
2797 build_cpu=$1
2798 build_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 build_os=$*
2803 IFS=$ac_save_IFS
2804 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2805
2806
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2808 $as_echo_n "checking host system type... " >&6; }
2809 if ${ac_cv_host+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test "x$host_alias" = x; then
2813 ac_cv_host=$ac_cv_build
2814 else
2815 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2817 fi
2818
2819 fi
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2821 $as_echo "$ac_cv_host" >&6; }
2822 case $ac_cv_host in
2823 *-*-*) ;;
2824 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2825 esac
2826 host=$ac_cv_host
2827 ac_save_IFS=$IFS; IFS='-'
2828 set x $ac_cv_host
2829 shift
2830 host_cpu=$1
2831 host_vendor=$2
2832 shift; shift
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2835 host_os=$*
2836 IFS=$ac_save_IFS
2837 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2838
2839
2840
2841
2842 opt_bash_malloc=yes
2843 opt_afs=no
2844 opt_curses=no
2845 opt_with_installed_readline=no
2846
2847 #htmldir=
2848
2849 case "${host_cpu}-${host_os}" in
2850 # mostly obsolete platforms
2851 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2852 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2853 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2854 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2855 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2856 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2857 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2858 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2859 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2860 # These need additional investigation
2861 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2862 *-aix*) opt_bash_malloc=no ;; # AIX machines
2863 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2864 # Mach-derived systems have a ton of extra malloc functions and lack sbrk(2)
2865 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2866 *-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep
2867 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2868 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2869 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2870 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2871 # Niche or non-mainstream-shell-user systems
2872 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX [67].x
2873 *-nsk*) opt_bash_malloc=no ;; # HP NonStop
2874 *-haiku*) opt_bash_malloc=no ;; # Haiku OS
2875 # Deprecated -- bash malloc is suitable
2876 #sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2877 #mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2878 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2879 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2880 #*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2881 #*-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2882 esac
2883
2884 # memory scrambling on free()
2885 case "${host_os}" in
2886 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2887 *) opt_memscramble=yes ;;
2888 esac
2889
2890
2891
2892
2893 # Check whether --with-afs was given.
2894 if test "${with_afs+set}" = set; then :
2895 withval=$with_afs; opt_afs=$withval
2896 fi
2897
2898
2899 # Check whether --with-bash-malloc was given.
2900 if test "${with_bash_malloc+set}" = set; then :
2901 withval=$with_bash_malloc; opt_bash_malloc=$withval
2902 fi
2903
2904
2905 # Check whether --with-curses was given.
2906 if test "${with_curses+set}" = set; then :
2907 withval=$with_curses; opt_curses=$withval
2908 fi
2909
2910
2911 # Check whether --with-gnu-malloc was given.
2912 if test "${with_gnu_malloc+set}" = set; then :
2913 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2914 fi
2915
2916
2917 # Check whether --with-installed-readline was given.
2918 if test "${with_installed_readline+set}" = set; then :
2919 withval=$with_installed_readline; opt_with_installed_readline=$withval
2920 fi
2921
2922
2923 if test "$opt_bash_malloc" = yes; then
2924 MALLOC_TARGET=malloc
2925 MALLOC_SRC=malloc.c
2926
2927 MALLOC_LIB='-lmalloc'
2928 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2929 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2930 MALLOC_DEP='$(MALLOC_LIBRARY)'
2931
2932 $as_echo "#define USING_BASH_MALLOC 1" >>confdefs.h
2933
2934 else
2935 MALLOC_LIB=
2936 MALLOC_LIBRARY=
2937 MALLOC_LDFLAGS=
2938 MALLOC_DEP=
2939 fi
2940
2941 if test "$opt_afs" = yes; then
2942 $as_echo "#define AFS 1" >>confdefs.h
2943
2944 fi
2945
2946 if test "$opt_curses" = yes; then
2947 prefer_curses=yes
2948 fi
2949
2950 if test -z "${DEBUGGER_START_FILE}"; then
2951 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2952 fi
2953
2954 opt_minimal_config=no
2955
2956 opt_job_control=yes
2957 opt_alias=yes
2958 opt_readline=yes
2959 opt_history=yes
2960 opt_bang_history=yes
2961 opt_dirstack=yes
2962 opt_restricted=yes
2963 opt_process_subst=yes
2964 opt_prompt_decoding=yes
2965 opt_select=yes
2966 opt_help=yes
2967 opt_array_variables=yes
2968 opt_dparen_arith=yes
2969 opt_extended_glob=yes
2970 opt_brace_expansion=yes
2971 opt_disabled_builtins=no
2972 opt_command_timing=yes
2973 opt_xpg_echo=no
2974 opt_strict_posix=no
2975 opt_cond_command=yes
2976 opt_cond_regexp=yes
2977 opt_coproc=yes
2978 opt_arith_for_command=yes
2979 opt_net_redirs=yes
2980 opt_progcomp=yes
2981 opt_separate_help=no
2982 opt_multibyte=yes
2983 opt_debugger=yes
2984 opt_single_longdoc_strings=yes
2985 opt_casemod_attrs=yes
2986 opt_casemod_expansions=yes
2987 opt_extglob_default=no
2988 opt_dircomplete_expand_default=no
2989 opt_globascii_default=yes
2990 opt_function_import=yes
2991 opt_dev_fd_stat_broken=no
2992
2993 opt_static_link=no
2994 opt_profiling=no
2995
2996 # Check whether --enable-minimal-config was given.
2997 if test "${enable_minimal_config+set}" = set; then :
2998 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2999 fi
3000
3001
3002 if test $opt_minimal_config = yes; then
3003 opt_job_control=no opt_alias=no opt_readline=no
3004 opt_history=no opt_bang_history=no opt_dirstack=no
3005 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
3006 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
3007 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
3008 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
3009 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3010 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
3011 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
3012 opt_globascii_default=yes
3013 fi
3014
3015 # Check whether --enable-alias was given.
3016 if test "${enable_alias+set}" = set; then :
3017 enableval=$enable_alias; opt_alias=$enableval
3018 fi
3019
3020 # Check whether --enable-arith-for-command was given.
3021 if test "${enable_arith_for_command+set}" = set; then :
3022 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3023 fi
3024
3025 # Check whether --enable-array-variables was given.
3026 if test "${enable_array_variables+set}" = set; then :
3027 enableval=$enable_array_variables; opt_array_variables=$enableval
3028 fi
3029
3030 # Check whether --enable-bang-history was given.
3031 if test "${enable_bang_history+set}" = set; then :
3032 enableval=$enable_bang_history; opt_bang_history=$enableval
3033 fi
3034
3035 # Check whether --enable-brace-expansion was given.
3036 if test "${enable_brace_expansion+set}" = set; then :
3037 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3038 fi
3039
3040 # Check whether --enable-casemod-attributes was given.
3041 if test "${enable_casemod_attributes+set}" = set; then :
3042 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3043 fi
3044
3045 # Check whether --enable-casemod-expansions was given.
3046 if test "${enable_casemod_expansions+set}" = set; then :
3047 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3048 fi
3049
3050 # Check whether --enable-command-timing was given.
3051 if test "${enable_command_timing+set}" = set; then :
3052 enableval=$enable_command_timing; opt_command_timing=$enableval
3053 fi
3054
3055 # Check whether --enable-cond-command was given.
3056 if test "${enable_cond_command+set}" = set; then :
3057 enableval=$enable_cond_command; opt_cond_command=$enableval
3058 fi
3059
3060 # Check whether --enable-cond-regexp was given.
3061 if test "${enable_cond_regexp+set}" = set; then :
3062 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3063 fi
3064
3065 # Check whether --enable-coprocesses was given.
3066 if test "${enable_coprocesses+set}" = set; then :
3067 enableval=$enable_coprocesses; opt_coproc=$enableval
3068 fi
3069
3070 # Check whether --enable-debugger was given.
3071 if test "${enable_debugger+set}" = set; then :
3072 enableval=$enable_debugger; opt_debugger=$enableval
3073 fi
3074
3075 # Check whether --enable-dev-fd-stat-broken was given.
3076 if test "${enable_dev_fd_stat_broken+set}" = set; then :
3077 enableval=$enable_dev_fd_stat_broken; opt_dev_fd_stat_broken=$enableval
3078 fi
3079
3080 # Check whether --enable-direxpand-default was given.
3081 if test "${enable_direxpand_default+set}" = set; then :
3082 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3083 fi
3084
3085 # Check whether --enable-directory-stack was given.
3086 if test "${enable_directory_stack+set}" = set; then :
3087 enableval=$enable_directory_stack; opt_dirstack=$enableval
3088 fi
3089
3090 # Check whether --enable-disabled-builtins was given.
3091 if test "${enable_disabled_builtins+set}" = set; then :
3092 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3093 fi
3094
3095 # Check whether --enable-dparen-arithmetic was given.
3096 if test "${enable_dparen_arithmetic+set}" = set; then :
3097 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3098 fi
3099
3100 # Check whether --enable-extended-glob was given.
3101 if test "${enable_extended_glob+set}" = set; then :
3102 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3103 fi
3104
3105 # Check whether --enable-extended-glob-default was given.
3106 if test "${enable_extended_glob_default+set}" = set; then :
3107 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3108 fi
3109
3110 # Check whether --enable-function-import was given.
3111 if test "${enable_function_import+set}" = set; then :
3112 enableval=$enable_function_import; opt_function_import=$enableval
3113 fi
3114
3115 # Check whether --enable-glob-asciiranges-default was given.
3116 if test "${enable_glob_asciiranges_default+set}" = set; then :
3117 enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval
3118 fi
3119
3120 # Check whether --enable-help-builtin was given.
3121 if test "${enable_help_builtin+set}" = set; then :
3122 enableval=$enable_help_builtin; opt_help=$enableval
3123 fi
3124
3125 # Check whether --enable-history was given.
3126 if test "${enable_history+set}" = set; then :
3127 enableval=$enable_history; opt_history=$enableval
3128 fi
3129
3130 # Check whether --enable-job-control was given.
3131 if test "${enable_job_control+set}" = set; then :
3132 enableval=$enable_job_control; opt_job_control=$enableval
3133 fi
3134
3135 # Check whether --enable-multibyte was given.
3136 if test "${enable_multibyte+set}" = set; then :
3137 enableval=$enable_multibyte; opt_multibyte=$enableval
3138 fi
3139
3140 # Check whether --enable-net-redirections was given.
3141 if test "${enable_net_redirections+set}" = set; then :
3142 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3143 fi
3144
3145 # Check whether --enable-process-substitution was given.
3146 if test "${enable_process_substitution+set}" = set; then :
3147 enableval=$enable_process_substitution; opt_process_subst=$enableval
3148 fi
3149
3150 # Check whether --enable-progcomp was given.
3151 if test "${enable_progcomp+set}" = set; then :
3152 enableval=$enable_progcomp; opt_progcomp=$enableval
3153 fi
3154
3155 # Check whether --enable-prompt-string-decoding was given.
3156 if test "${enable_prompt_string_decoding+set}" = set; then :
3157 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3158 fi
3159
3160 # Check whether --enable-readline was given.
3161 if test "${enable_readline+set}" = set; then :
3162 enableval=$enable_readline; opt_readline=$enableval
3163 fi
3164
3165 # Check whether --enable-restricted was given.
3166 if test "${enable_restricted+set}" = set; then :
3167 enableval=$enable_restricted; opt_restricted=$enableval
3168 fi
3169
3170 # Check whether --enable-select was given.
3171 if test "${enable_select+set}" = set; then :
3172 enableval=$enable_select; opt_select=$enableval
3173 fi
3174
3175 # Check whether --enable-separate-helpfiles was given.
3176 if test "${enable_separate_helpfiles+set}" = set; then :
3177 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3178 fi
3179
3180 # Check whether --enable-single-help-strings was given.
3181 if test "${enable_single_help_strings+set}" = set; then :
3182 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3183 fi
3184
3185 # Check whether --enable-strict-posix-default was given.
3186 if test "${enable_strict_posix_default+set}" = set; then :
3187 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3188 fi
3189
3190 # Check whether --enable-usg-echo-default was given.
3191 if test "${enable_usg_echo_default+set}" = set; then :
3192 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3193 fi
3194
3195 # Check whether --enable-xpg-echo-default was given.
3196 if test "${enable_xpg_echo_default+set}" = set; then :
3197 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3198 fi
3199
3200
3201 # Check whether --enable-mem-scramble was given.
3202 if test "${enable_mem_scramble+set}" = set; then :
3203 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3204 fi
3205
3206 # Check whether --enable-profiling was given.
3207 if test "${enable_profiling+set}" = set; then :
3208 enableval=$enable_profiling; opt_profiling=$enableval
3209 fi
3210
3211 # Check whether --enable-static-link was given.
3212 if test "${enable_static_link+set}" = set; then :
3213 enableval=$enable_static_link; opt_static_link=$enableval
3214 fi
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224 if test $opt_alias = yes; then
3225 $as_echo "#define ALIAS 1" >>confdefs.h
3226
3227 fi
3228 if test $opt_dirstack = yes; then
3229 $as_echo "#define PUSHD_AND_POPD 1" >>confdefs.h
3230
3231 fi
3232 if test $opt_restricted = yes; then
3233 $as_echo "#define RESTRICTED_SHELL 1" >>confdefs.h
3234
3235 fi
3236 if test $opt_process_subst = yes; then
3237 $as_echo "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3238
3239 fi
3240 if test $opt_prompt_decoding = yes; then
3241 $as_echo "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3242
3243 fi
3244 if test $opt_select = yes; then
3245 $as_echo "#define SELECT_COMMAND 1" >>confdefs.h
3246
3247 fi
3248 if test $opt_help = yes; then
3249 $as_echo "#define HELP_BUILTIN 1" >>confdefs.h
3250
3251 fi
3252 if test $opt_array_variables = yes; then
3253 $as_echo "#define ARRAY_VARS 1" >>confdefs.h
3254
3255 fi
3256 if test $opt_dparen_arith = yes; then
3257 $as_echo "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3258
3259 fi
3260 if test $opt_brace_expansion = yes; then
3261 $as_echo "#define BRACE_EXPANSION 1" >>confdefs.h
3262
3263 fi
3264 if test $opt_disabled_builtins = yes; then
3265 $as_echo "#define DISABLED_BUILTINS 1" >>confdefs.h
3266
3267 fi
3268 if test $opt_command_timing = yes; then
3269 $as_echo "#define COMMAND_TIMING 1" >>confdefs.h
3270
3271 fi
3272 if test $opt_xpg_echo = yes ; then
3273 $as_echo "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3274
3275 fi
3276 if test $opt_strict_posix = yes; then
3277 $as_echo "#define STRICT_POSIX 1" >>confdefs.h
3278
3279 fi
3280 if test $opt_extended_glob = yes ; then
3281 $as_echo "#define EXTENDED_GLOB 1" >>confdefs.h
3282
3283 fi
3284 if test $opt_extglob_default = yes; then
3285 $as_echo "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3286
3287 else
3288 $as_echo "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3289
3290 fi
3291 if test $opt_cond_command = yes ; then
3292 $as_echo "#define COND_COMMAND 1" >>confdefs.h
3293
3294 fi
3295 if test $opt_cond_regexp = yes ; then
3296 $as_echo "#define COND_REGEXP 1" >>confdefs.h
3297
3298 fi
3299 if test $opt_coproc = yes; then
3300 $as_echo "#define COPROCESS_SUPPORT 1" >>confdefs.h
3301
3302 fi
3303 if test $opt_arith_for_command = yes; then
3304 $as_echo "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3305
3306 fi
3307 if test $opt_net_redirs = yes; then
3308 $as_echo "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3309
3310 fi
3311 if test $opt_progcomp = yes; then
3312 $as_echo "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3313
3314 fi
3315 if test $opt_multibyte = no; then
3316 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3317
3318 fi
3319 if test $opt_debugger = yes; then
3320 $as_echo "#define DEBUGGER 1" >>confdefs.h
3321
3322 fi
3323 if test $opt_casemod_attrs = yes; then
3324 $as_echo "#define CASEMOD_ATTRS 1" >>confdefs.h
3325
3326 fi
3327 if test $opt_casemod_expansions = yes; then
3328 $as_echo "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3329
3330 fi
3331 if test $opt_dircomplete_expand_default = yes; then
3332 $as_echo "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3333
3334 fi
3335 if test $opt_globascii_default = yes; then
3336 $as_echo "#define GLOBASCII_DEFAULT 1" >>confdefs.h
3337
3338 else
3339 $as_echo "#define GLOBASCII_DEFAULT 0" >>confdefs.h
3340
3341 fi
3342 if test $opt_function_import = yes; then
3343 $as_echo "#define FUNCTION_IMPORT 1" >>confdefs.h
3344
3345 fi
3346 if test $opt_dev_fd_stat_broken = yes; then
3347 $as_echo "#define DEV_FD_STAT_BROKEN 1" >>confdefs.h
3348
3349 fi
3350
3351 if test $opt_memscramble = yes; then
3352 $as_echo "#define MEMSCRAMBLE 1" >>confdefs.h
3353
3354 fi
3355
3356 if test "$opt_minimal_config" = yes; then
3357 TESTSCRIPT=run-minimal
3358 else
3359 TESTSCRIPT=run-all
3360 fi
3361
3362 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3363 if test "$opt_separate_help" != no; then
3364 if test "$opt_separate_help" = "yes" ; then
3365 HELPDIR='${datadir}/bash'
3366 else
3367 HELPDIR=$opt_separate_help
3368 fi
3369 HELPDIRDEFINE='-H ${HELPDIR}'
3370 HELPINSTALL='install-help'
3371 HELPFILES_TARGET='helpdoc'
3372 fi
3373 HELPSTRINGS=
3374 if test "$opt_single_longdoc_strings" != "yes"; then
3375 HELPSTRINGS='-S'
3376 fi
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395 if test -z "$CFLAGS"; then
3396 AUTO_CFLAGS="-g ${GCC+-O2} ${GCC+-Wno-parentheses}"
3397 AUTO_LDFLAGS="-g ${GCC+-O2}"
3398 else
3399 AUTO_CFLAGS= AUTO_LDFLAGS=
3400 fi
3401
3402 echo ""
3403 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3404 echo ""
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_CC+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 CC=$ac_cv_prog_CC
3440 if test -n "$CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442 $as_echo "$CC" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448
3449 fi
3450 if test -z "$ac_cv_prog_CC"; then
3451 ac_ct_CC=$CC
3452 # Extract the first word of "gcc", so it can be a program name with args.
3453 set dummy gcc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_ac_ct_CC="gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488 if test "x$ac_ct_CC" = x; then
3489 CC=""
3490 else
3491 case $cross_compiling:$ac_tool_warned in
3492 yes:)
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495 ac_tool_warned=yes ;;
3496 esac
3497 CC=$ac_ct_CC
3498 fi
3499 else
3500 CC="$ac_cv_prog_CC"
3501 fi
3502
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}cc; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$CC"; then
3513 ac_cv_prog_CC="$CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_CC="${ac_tool_prefix}cc"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526 done
3527 done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 CC=$ac_cv_prog_CC
3533 if test -n "$CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535 $as_echo "$CC" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542 fi
3543 fi
3544 if test -z "$CC"; then
3545 # Extract the first word of "cc", so it can be a program name with args.
3546 set dummy cc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 else
3555 ac_prog_rejected=no
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3564 ac_prog_rejected=yes
3565 continue
3566 fi
3567 ac_cv_prog_CC="cc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 if test $ac_prog_rejected = yes; then
3576 # We found a bogon in the path, so make sure we never use it.
3577 set dummy $ac_cv_prog_CC
3578 shift
3579 if test $# != 0; then
3580 # We chose a different compiler from the bogus one.
3581 # However, it has the same basename, so the bogon will be chosen
3582 # first if we set CC to just the basename; use the full file name.
3583 shift
3584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3585 fi
3586 fi
3587 fi
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599 fi
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 for ac_prog in cl.exe
3603 do
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_CC+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625 done
3626 done
3627 IFS=$as_save_IFS
3628
3629 fi
3630 fi
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 fi
3639
3640
3641 test -n "$CC" && break
3642 done
3643 fi
3644 if test -z "$CC"; then
3645 ac_ct_CC=$CC
3646 for ac_prog in cl.exe
3647 do
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_ac_ct_CC="$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669 done
3670 done
3671 IFS=$as_save_IFS
3672
3673 fi
3674 fi
3675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 fi
3683
3684
3685 test -n "$ac_ct_CC" && break
3686 done
3687
3688 if test "x$ac_ct_CC" = x; then
3689 CC=""
3690 else
3691 case $cross_compiling:$ac_tool_warned in
3692 yes:)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695 ac_tool_warned=yes ;;
3696 esac
3697 CC=$ac_ct_CC
3698 fi
3699 fi
3700
3701 fi
3702
3703
3704 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "no acceptable C compiler found in \$PATH
3707 See \`config.log' for more details" "$LINENO" 5; }
3708
3709 # Provide some information about the compiler.
3710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3711 set X $ac_compile
3712 ac_compiler=$2
3713 for ac_option in --version -v -V -qversion; do
3714 { { ac_try="$ac_compiler $ac_option >&5"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3722 ac_status=$?
3723 if test -s conftest.err; then
3724 sed '10a\
3725 ... rest of stderr output deleted ...
3726 10q' conftest.err >conftest.er1
3727 cat conftest.er1 >&5
3728 fi
3729 rm -f conftest.er1 conftest.err
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }
3732 done
3733
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736
3737 int
3738 main ()
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 ac_clean_files_save=$ac_clean_files
3746 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3747 # Try to create an executable without -o first, disregard a.out.
3748 # It will help us diagnose broken compilers, and finding out an intuition
3749 # of exeext.
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3751 $as_echo_n "checking whether the C compiler works... " >&6; }
3752 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3753
3754 # The possible output files:
3755 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3756
3757 ac_rmfiles=
3758 for ac_file in $ac_files
3759 do
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763 esac
3764 done
3765 rm -f $ac_rmfiles
3766
3767 if { { ac_try="$ac_link_default"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_link_default") 2>&5
3775 ac_status=$?
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; then :
3778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3781 # so that the user can short-circuit this test for compilers unknown to
3782 # Autoconf.
3783 for ac_file in $ac_files ''
3784 do
3785 test -f "$ac_file" || continue
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3788 ;;
3789 [ab].out )
3790 # We found the default executable, but exeext='' is most
3791 # certainly right.
3792 break;;
3793 *.* )
3794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3795 then :; else
3796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797 fi
3798 # We set ac_cv_exeext here because the later test for it is not
3799 # safe: cross compilers may not add the suffix if given an `-o'
3800 # argument, so we may need to know it at that point already.
3801 # Even if this section looks crufty: it has the advantage of
3802 # actually working.
3803 break;;
3804 * )
3805 break;;
3806 esac
3807 done
3808 test "$ac_cv_exeext" = no && ac_cv_exeext=
3809
3810 else
3811 ac_file=''
3812 fi
3813 if test -z "$ac_file"; then :
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 $as_echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error 77 "C compiler cannot create executables
3822 See \`config.log' for more details" "$LINENO" 5; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3825 $as_echo "yes" >&6; }
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3828 $as_echo_n "checking for C compiler default output file name... " >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3830 $as_echo "$ac_file" >&6; }
3831 ac_exeext=$ac_cv_exeext
3832
3833 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3834 ac_clean_files=$ac_clean_files_save
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3836 $as_echo_n "checking for suffix of executables... " >&6; }
3837 if { { ac_try="$ac_link"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_link") 2>&5
3845 ac_status=$?
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3849 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3850 # work properly (i.e., refer to `conftest.exe'), while it won't with
3851 # `rm'.
3852 for ac_file in conftest.exe conftest conftest.*; do
3853 test -f "$ac_file" || continue
3854 case $ac_file in
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3857 break;;
3858 * ) break;;
3859 esac
3860 done
3861 else
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3865 See \`config.log' for more details" "$LINENO" 5; }
3866 fi
3867 rm -f conftest conftest$ac_cv_exeext
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3869 $as_echo "$ac_cv_exeext" >&6; }
3870
3871 rm -f conftest.$ac_ext
3872 EXEEXT=$ac_cv_exeext
3873 ac_exeext=$EXEEXT
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <stdio.h>
3877 int
3878 main ()
3879 {
3880 FILE *f = fopen ("conftest.out", "w");
3881 return ferror (f) || fclose (f) != 0;
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 ac_clean_files="$ac_clean_files conftest.out"
3888 # Check that the compiler produces executables we can run. If not, either
3889 # the compiler is broken, or we cross compile.
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3891 $as_echo_n "checking whether we are cross compiling... " >&6; }
3892 if test "$cross_compiling" != yes; then
3893 { { ac_try="$ac_link"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }
3904 if { ac_try='./conftest$ac_cv_exeext'
3905 { { case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_try") 2>&5
3912 ac_status=$?
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; }; then
3915 cross_compiling=no
3916 else
3917 if test "$cross_compiling" = maybe; then
3918 cross_compiling=yes
3919 else
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error $? "cannot run C compiled programs.
3923 If you meant to cross compile, use \`--host'.
3924 See \`config.log' for more details" "$LINENO" 5; }
3925 fi
3926 fi
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3929 $as_echo "$cross_compiling" >&6; }
3930
3931 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3932 ac_clean_files=$ac_clean_files_save
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3934 $as_echo_n "checking for suffix of object files... " >&6; }
3935 if ${ac_cv_objext+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940
3941 int
3942 main ()
3943 {
3944
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.o conftest.obj
3950 if { { ac_try="$ac_compile"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_compile") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 for ac_file in conftest.o conftest.obj conftest.*; do
3962 test -f "$ac_file" || continue;
3963 case $ac_file in
3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3965 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3966 break;;
3967 esac
3968 done
3969 else
3970 $as_echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error $? "cannot compute suffix of object files: cannot compile
3976 See \`config.log' for more details" "$LINENO" 5; }
3977 fi
3978 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3981 $as_echo "$ac_cv_objext" >&6; }
3982 OBJEXT=$ac_cv_objext
3983 ac_objext=$OBJEXT
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3985 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3986 if ${ac_cv_c_compiler_gnu+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991
3992 int
3993 main ()
3994 {
3995 #ifndef __GNUC__
3996 choke me
3997 #endif
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004 ac_compiler_gnu=yes
4005 else
4006 ac_compiler_gnu=no
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4010
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4013 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4014 if test $ac_compiler_gnu = yes; then
4015 GCC=yes
4016 else
4017 GCC=
4018 fi
4019 ac_test_CFLAGS=${CFLAGS+set}
4020 ac_save_CFLAGS=$CFLAGS
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4022 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4023 if ${ac_cv_prog_cc_g+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 ac_save_c_werror_flag=$ac_c_werror_flag
4027 ac_c_werror_flag=yes
4028 ac_cv_prog_cc_g=no
4029 CFLAGS="-g"
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032
4033 int
4034 main ()
4035 {
4036
4037 ;
4038 return 0;
4039 }
4040 _ACEOF
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042 ac_cv_prog_cc_g=yes
4043 else
4044 CFLAGS=""
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057
4058 else
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4060 CFLAGS="-g"
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_cv_prog_cc_g=yes
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4083 $as_echo "$ac_cv_prog_cc_g" >&6; }
4084 if test "$ac_test_CFLAGS" = set; then
4085 CFLAGS=$ac_save_CFLAGS
4086 elif test $ac_cv_prog_cc_g = yes; then
4087 if test "$GCC" = yes; then
4088 CFLAGS="-g -O2"
4089 else
4090 CFLAGS="-g"
4091 fi
4092 else
4093 if test "$GCC" = yes; then
4094 CFLAGS="-O2"
4095 else
4096 CFLAGS=
4097 fi
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4100 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4101 if ${ac_cv_prog_cc_c89+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_cv_prog_cc_c89=no
4105 ac_save_CC=$CC
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <stdarg.h>
4109 #include <stdio.h>
4110 struct stat;
4111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4112 struct buf { int x; };
4113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4114 static char *e (p, i)
4115 char **p;
4116 int i;
4117 {
4118 return p[i];
4119 }
4120 static char *f (char * (*g) (char **, int), char **p, ...)
4121 {
4122 char *s;
4123 va_list v;
4124 va_start (v,p);
4125 s = g (p, va_arg (v,int));
4126 va_end (v);
4127 return s;
4128 }
4129
4130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4131 function prototypes and stuff, but not '\xHH' hex character constants.
4132 These don't provoke an error unfortunately, instead are silently treated
4133 as 'x'. The following induces an error, until -std is added to get
4134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4135 array size at least. It's necessary to write '\x00'==0 to get something
4136 that's true only with -std. */
4137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4138
4139 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4140 inside strings and character constants. */
4141 #define FOO(x) 'x'
4142 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4143
4144 int test (int i, double x);
4145 struct s1 {int (*f) (int a);};
4146 struct s2 {int (*f) (double a);};
4147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4148 int argc;
4149 char **argv;
4150 int
4151 main ()
4152 {
4153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4160 do
4161 CC="$ac_save_CC $ac_arg"
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_c89=$ac_arg
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext
4166 test "x$ac_cv_prog_cc_c89" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4170
4171 fi
4172 # AC_CACHE_VAL
4173 case "x$ac_cv_prog_cc_c89" in
4174 x)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4176 $as_echo "none needed" >&6; } ;;
4177 xno)
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4179 $as_echo "unsupported" >&6; } ;;
4180 *)
4181 CC="$CC $ac_cv_prog_cc_c89"
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4183 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4184 esac
4185 if test "x$ac_cv_prog_cc_c89" != xno; then :
4186
4187 fi
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195
4196
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4199 $as_echo_n "checking for strerror in -lcposix... " >&6; }
4200 if ${ac_cv_lib_cposix_strerror+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 ac_check_lib_save_LIBS=$LIBS
4204 LIBS="-lcposix $LIBS"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207
4208 /* Override any GCC internal prototype to avoid an error.
4209 Use char because int might match the return type of a GCC
4210 builtin and then its argument prototype would still apply. */
4211 #ifdef __cplusplus
4212 extern "C"
4213 #endif
4214 char strerror ();
4215 int
4216 main ()
4217 {
4218 return strerror ();
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_link "$LINENO"; then :
4224 ac_cv_lib_cposix_strerror=yes
4225 else
4226 ac_cv_lib_cposix_strerror=no
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext \
4229 conftest$ac_exeext conftest.$ac_ext
4230 LIBS=$ac_check_lib_save_LIBS
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4233 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4234 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4235 LIBS="$LIBS -lcposix"
4236 fi
4237
4238
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4247 # On Suns, sometimes $CPP names a directory.
4248 if test -n "$CPP" && test -d "$CPP"; then
4249 CPP=
4250 fi
4251 if test -z "$CPP"; then
4252 if ${ac_cv_prog_CPP+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 # Double quotes because CPP needs to be expanded
4256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4257 do
4258 ac_preproc_ok=false
4259 for ac_c_preproc_warn_flag in '' yes
4260 do
4261 # Use a header file that comes with gcc, so configuring glibc
4262 # with a fresh cross-compiler works.
4263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264 # <limits.h> exists even on freestanding compilers.
4265 # On the NeXT, cc -E runs the code through the compiler's parser,
4266 # not just through cpp. "Syntax error" is here to catch this case.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 #ifdef __STDC__
4270 # include <limits.h>
4271 #else
4272 # include <assert.h>
4273 #endif
4274 Syntax error
4275 _ACEOF
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4277
4278 else
4279 # Broken: fails on valid input.
4280 continue
4281 fi
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4283
4284 # OK, works on sane cases. Now check whether nonexistent headers
4285 # can be detected and how.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <ac_nonexistent.h>
4289 _ACEOF
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291 # Broken: success on invalid input.
4292 continue
4293 else
4294 # Passes both tests.
4295 ac_preproc_ok=:
4296 break
4297 fi
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4299
4300 done
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then :
4304 break
4305 fi
4306
4307 done
4308 ac_cv_prog_CPP=$CPP
4309
4310 fi
4311 CPP=$ac_cv_prog_CPP
4312 else
4313 ac_cv_prog_CPP=$CPP
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4316 $as_echo "$CPP" >&6; }
4317 ac_preproc_ok=false
4318 for ac_c_preproc_warn_flag in '' yes
4319 do
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #ifdef __STDC__
4329 # include <limits.h>
4330 #else
4331 # include <assert.h>
4332 #endif
4333 Syntax error
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4336
4337 else
4338 # Broken: fails on valid input.
4339 continue
4340 fi
4341 rm -f conftest.err conftest.i conftest.$ac_ext
4342
4343 # OK, works on sane cases. Now check whether nonexistent headers
4344 # can be detected and how.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4348 _ACEOF
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350 # Broken: success on invalid input.
4351 continue
4352 else
4353 # Passes both tests.
4354 ac_preproc_ok=:
4355 break
4356 fi
4357 rm -f conftest.err conftest.i conftest.$ac_ext
4358
4359 done
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then :
4363
4364 else
4365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details" "$LINENO" 5; }
4369 fi
4370
4371 ac_ext=c
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4379 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4380 if ${ac_cv_path_GREP+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 if test -z "$GREP"; then
4384 ac_path_GREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in grep ggrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_GREP" || continue
4395 # Check for GNU ac_path_GREP and select it if it is found.
4396 # Check for GNU $ac_path_GREP
4397 case `"$ac_path_GREP" --version 2>&1` in
4398 *GNU*)
4399 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4400 *)
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'GREP' >> "conftest.nl"
4409 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_GREP="$ac_path_GREP"
4415 ac_path_GREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4422
4423 $ac_path_GREP_found && break 3
4424 done
4425 done
4426 done
4427 IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_GREP"; then
4429 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 fi
4431 else
4432 ac_cv_path_GREP=$GREP
4433 fi
4434
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4437 $as_echo "$ac_cv_path_GREP" >&6; }
4438 GREP="$ac_cv_path_GREP"
4439
4440
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4442 $as_echo_n "checking for egrep... " >&6; }
4443 if ${ac_cv_path_EGREP+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4447 then ac_cv_path_EGREP="$GREP -E"
4448 else
4449 if test -z "$EGREP"; then
4450 ac_path_EGREP_found=false
4451 # Loop through the user's path and test for each of PROGNAME-LIST
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454 do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_prog in egrep; do
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4460 as_fn_executable_p "$ac_path_EGREP" || continue
4461 # Check for GNU ac_path_EGREP and select it if it is found.
4462 # Check for GNU $ac_path_EGREP
4463 case `"$ac_path_EGREP" --version 2>&1` in
4464 *GNU*)
4465 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4466 *)
4467 ac_count=0
4468 $as_echo_n 0123456789 >"conftest.in"
4469 while :
4470 do
4471 cat "conftest.in" "conftest.in" >"conftest.tmp"
4472 mv "conftest.tmp" "conftest.in"
4473 cp "conftest.in" "conftest.nl"
4474 $as_echo 'EGREP' >> "conftest.nl"
4475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4477 as_fn_arith $ac_count + 1 && ac_count=$as_val
4478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4479 # Best one so far, save it but keep looking for a better one
4480 ac_cv_path_EGREP="$ac_path_EGREP"
4481 ac_path_EGREP_max=$ac_count
4482 fi
4483 # 10*(2^10) chars as input seems more than enough
4484 test $ac_count -gt 10 && break
4485 done
4486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487 esac
4488
4489 $ac_path_EGREP_found && break 3
4490 done
4491 done
4492 done
4493 IFS=$as_save_IFS
4494 if test -z "$ac_cv_path_EGREP"; then
4495 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4496 fi
4497 else
4498 ac_cv_path_EGREP=$EGREP
4499 fi
4500
4501 fi
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4504 $as_echo "$ac_cv_path_EGREP" >&6; }
4505 EGREP="$ac_cv_path_EGREP"
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4509 $as_echo_n "checking for ANSI C header files... " >&6; }
4510 if ${ac_cv_header_stdc+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #include <stdlib.h>
4516 #include <stdarg.h>
4517 #include <string.h>
4518 #include <float.h>
4519
4520 int
4521 main ()
4522 {
4523
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 if ac_fn_c_try_compile "$LINENO"; then :
4529 ac_cv_header_stdc=yes
4530 else
4531 ac_cv_header_stdc=no
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534
4535 if test $ac_cv_header_stdc = yes; then
4536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 #include <string.h>
4540
4541 _ACEOF
4542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4543 $EGREP "memchr" >/dev/null 2>&1; then :
4544
4545 else
4546 ac_cv_header_stdc=no
4547 fi
4548 rm -f conftest*
4549
4550 fi
4551
4552 if test $ac_cv_header_stdc = yes; then
4553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <stdlib.h>
4557
4558 _ACEOF
4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560 $EGREP "free" >/dev/null 2>&1; then :
4561
4562 else
4563 ac_cv_header_stdc=no
4564 fi
4565 rm -f conftest*
4566
4567 fi
4568
4569 if test $ac_cv_header_stdc = yes; then
4570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4571 if test "$cross_compiling" = yes; then :
4572 :
4573 else
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <ctype.h>
4577 #include <stdlib.h>
4578 #if ((' ' & 0x0FF) == 0x020)
4579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4581 #else
4582 # define ISLOWER(c) \
4583 (('a' <= (c) && (c) <= 'i') \
4584 || ('j' <= (c) && (c) <= 'r') \
4585 || ('s' <= (c) && (c) <= 'z'))
4586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4587 #endif
4588
4589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4590 int
4591 main ()
4592 {
4593 int i;
4594 for (i = 0; i < 256; i++)
4595 if (XOR (islower (i), ISLOWER (i))
4596 || toupper (i) != TOUPPER (i))
4597 return 2;
4598 return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_c_try_run "$LINENO"; then :
4602
4603 else
4604 ac_cv_header_stdc=no
4605 fi
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4607 conftest.$ac_objext conftest.beam conftest.$ac_ext
4608 fi
4609
4610 fi
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4613 $as_echo "$ac_cv_header_stdc" >&6; }
4614 if test $ac_cv_header_stdc = yes; then
4615
4616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4617
4618 fi
4619
4620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4622 inttypes.h stdint.h unistd.h
4623 do :
4624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4626 "
4627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4628 cat >>confdefs.h <<_ACEOF
4629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4630 _ACEOF
4631
4632 fi
4633
4634 done
4635
4636
4637
4638 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4639 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4640 MINIX=yes
4641 else
4642 MINIX=
4643 fi
4644
4645
4646 if test "$MINIX" = yes; then
4647
4648 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4649
4650
4651 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4652
4653
4654 $as_echo "#define _MINIX 1" >>confdefs.h
4655
4656 fi
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4660 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4661 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 # define __EXTENSIONS__ 1
4668 $ac_includes_default
4669 int
4670 main ()
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 ac_cv_safe_to_define___extensions__=yes
4679 else
4680 ac_cv_safe_to_define___extensions__=no
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4685 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4686 test $ac_cv_safe_to_define___extensions__ = yes &&
4687 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4688
4689 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4690
4691 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4692
4693 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4694
4695 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4696
4697
4698
4699
4700 # Check whether --enable-largefile was given.
4701 if test "${enable_largefile+set}" = set; then :
4702 enableval=$enable_largefile;
4703 fi
4704
4705 if test "$enable_largefile" != no; then
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4708 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4709 if ${ac_cv_sys_largefile_CC+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 ac_cv_sys_largefile_CC=no
4713 if test "$GCC" != yes; then
4714 ac_save_CC=$CC
4715 while :; do
4716 # IRIX 6.2 and later do not support large files by default,
4717 # so use the C compiler's -n32 option if that helps.
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 #include <sys/types.h>
4721 /* Check that off_t can represent 2**63 - 1 correctly.
4722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4723 since some C++ compilers masquerading as C compilers
4724 incorrectly reject 9223372036854775807. */
4725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4727 && LARGE_OFF_T % 2147483647 == 1)
4728 ? 1 : -1];
4729 int
4730 main ()
4731 {
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 break
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext
4741 CC="$CC -n32"
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_sys_largefile_CC=' -n32'; break
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext
4746 break
4747 done
4748 CC=$ac_save_CC
4749 rm -f conftest.$ac_ext
4750 fi
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4753 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4754 if test "$ac_cv_sys_largefile_CC" != no; then
4755 CC=$CC$ac_cv_sys_largefile_CC
4756 fi
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4759 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4760 if ${ac_cv_sys_file_offset_bits+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 while :; do
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <sys/types.h>
4767 /* Check that off_t can represent 2**63 - 1 correctly.
4768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4769 since some C++ compilers masquerading as C compilers
4770 incorrectly reject 9223372036854775807. */
4771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4773 && LARGE_OFF_T % 2147483647 == 1)
4774 ? 1 : -1];
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784 ac_cv_sys_file_offset_bits=no; break
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 #define _FILE_OFFSET_BITS 64
4790 #include <sys/types.h>
4791 /* Check that off_t can represent 2**63 - 1 correctly.
4792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4793 since some C++ compilers masquerading as C compilers
4794 incorrectly reject 9223372036854775807. */
4795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4797 && LARGE_OFF_T % 2147483647 == 1)
4798 ? 1 : -1];
4799 int
4800 main ()
4801 {
4802
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 ac_cv_sys_file_offset_bits=64; break
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 ac_cv_sys_file_offset_bits=unknown
4812 break
4813 done
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4816 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4817 case $ac_cv_sys_file_offset_bits in #(
4818 no | unknown) ;;
4819 *)
4820 cat >>confdefs.h <<_ACEOF
4821 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4822 _ACEOF
4823 ;;
4824 esac
4825 rm -rf conftest*
4826 if test $ac_cv_sys_file_offset_bits = unknown; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4828 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4829 if ${ac_cv_sys_large_files+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 while :; do
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <sys/types.h>
4836 /* Check that off_t can represent 2**63 - 1 correctly.
4837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4838 since some C++ compilers masquerading as C compilers
4839 incorrectly reject 9223372036854775807. */
4840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4842 && LARGE_OFF_T % 2147483647 == 1)
4843 ? 1 : -1];
4844 int
4845 main ()
4846 {
4847
4848 ;
4849 return 0;
4850 }
4851 _ACEOF
4852 if ac_fn_c_try_compile "$LINENO"; then :
4853 ac_cv_sys_large_files=no; break
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 #define _LARGE_FILES 1
4859 #include <sys/types.h>
4860 /* Check that off_t can represent 2**63 - 1 correctly.
4861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4862 since some C++ compilers masquerading as C compilers
4863 incorrectly reject 9223372036854775807. */
4864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4866 && LARGE_OFF_T % 2147483647 == 1)
4867 ? 1 : -1];
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_sys_large_files=1; break
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 ac_cv_sys_large_files=unknown
4881 break
4882 done
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4885 $as_echo "$ac_cv_sys_large_files" >&6; }
4886 case $ac_cv_sys_large_files in #(
4887 no | unknown) ;;
4888 *)
4889 cat >>confdefs.h <<_ACEOF
4890 #define _LARGE_FILES $ac_cv_sys_large_files
4891 _ACEOF
4892 ;;
4893 esac
4894 rm -rf conftest*
4895 fi
4896
4897
4898 fi
4899
4900
4901
4902 SIGNAMES_O=
4903 SIGNAMES_H=lsignames.h
4904
4905
4906
4907 CROSS_COMPILE=
4908 if test "x$cross_compiling" = "xyes"; then
4909 case "${host}" in
4910 *-cygwin*)
4911 cross_cache=${srcdir}/cross-build/cygwin32.cache
4912 ;;
4913 *-mingw*)
4914 cross_cache=${srcdir}/cross-build/cygwin32.cache
4915 ;;
4916 i[3456]86-*-beos*)
4917 cross_cache=${srcdir}/cross-build/x86-beos.cache
4918 ;;
4919 *-qnx*)
4920 cross_cache=${srcdir}/cross-build/qnx.cache
4921 ;;
4922 *) echo "configure: cross-compiling for $host is not supported" >&2
4923 ;;
4924 esac
4925 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4926 echo "loading cross-build cache file ${cross_cache}"
4927 . ${cross_cache}
4928 fi
4929 unset cross_cache
4930 SIGNAMES_O='signames.o'
4931 CROSS_COMPILE='-DCROSS_COMPILING'
4932
4933 fi
4934
4935
4936
4937
4938 CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
4939 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
4940
4941 if test "$opt_profiling" = "yes"; then
4942 PROFILE_FLAGS=-pg
4943 case "$host_os" in
4944 solaris2*|linux*) ;;
4945 *) opt_static_link=yes ;;
4946 esac
4947 DEBUG= MALLOC_DEBUG=
4948 fi
4949
4950 prefer_shared=yes
4951 prefer_static=no
4952
4953 if test "$opt_static_link" = yes; then
4954 prefer_static=yes
4955 prefer_shared=no
4956 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4957 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4958 STATIC_LD="-static"
4959 case "$host_os" in
4960 solaris2*|linux*) ;;
4961 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4962 esac
4963 fi
4964 fi
4965
4966 # set the appropriate make variables for building the "build tools"
4967 # modify defaults based on whether or not we are cross compiling, since the
4968 # options for the target host may not be appropriate for the build host
4969 if test "X$cross_compiling" = "Xno"; then
4970 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
4971 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
4972 if test X"$opt_profiling" = Xyes; then
4973 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(BASE_LDFLAGS)'}
4974 else
4975 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4976 fi
4977 # CFLAGS set above to default value if not passed in environment
4978 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
4979 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
4980 else
4981 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
4982 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4983 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4984 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
4985 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
4986 fi
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 if test $ac_cv_c_compiler_gnu = yes; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5001 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5002 if ${ac_cv_prog_gcc_traditional+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 ac_pattern="Autoconf.*'x'"
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <sgtty.h>
5009 Autoconf TIOCGETP
5010 _ACEOF
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5013 ac_cv_prog_gcc_traditional=yes
5014 else
5015 ac_cv_prog_gcc_traditional=no
5016 fi
5017 rm -f conftest*
5018
5019
5020 if test $ac_cv_prog_gcc_traditional = no; then
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <termio.h>
5024 Autoconf TCGETA
5025 _ACEOF
5026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5027 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5028 ac_cv_prog_gcc_traditional=yes
5029 fi
5030 rm -f conftest*
5031
5032 fi
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5035 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5036 if test $ac_cv_prog_gcc_traditional = yes; then
5037 CC="$CC -traditional"
5038 fi
5039 fi
5040
5041
5042
5043 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5044 then
5045 # If the user specified --with-installed-readline=PREFIX and PREFIX
5046 # is not `yes', set ac_cv_rl_prefix to PREFIX
5047 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5048
5049
5050 if test "X$bash_cv_termcap_lib" = "X"; then
5051 _bash_needmsg=yes
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5054 $as_echo_n "checking which library has the termcap functions... " >&6; }
5055 _bash_needmsg=
5056 fi
5057 if ${bash_cv_termcap_lib+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5061 if test "x$ac_cv_func_tgetent" = xyes; then :
5062 bash_cv_termcap_lib=libc
5063 else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5065 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5066 if ${ac_cv_lib_termcap_tgetent+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 ac_check_lib_save_LIBS=$LIBS
5070 LIBS="-ltermcap $LIBS"
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073
5074 /* Override any GCC internal prototype to avoid an error.
5075 Use char because int might match the return type of a GCC
5076 builtin and then its argument prototype would still apply. */
5077 #ifdef __cplusplus
5078 extern "C"
5079 #endif
5080 char tgetent ();
5081 int
5082 main ()
5083 {
5084 return tgetent ();
5085 ;
5086 return 0;
5087 }
5088 _ACEOF
5089 if ac_fn_c_try_link "$LINENO"; then :
5090 ac_cv_lib_termcap_tgetent=yes
5091 else
5092 ac_cv_lib_termcap_tgetent=no
5093 fi
5094 rm -f core conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5097 fi
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5099 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5100 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
5101 bash_cv_termcap_lib=libtermcap
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5104 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5105 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 ac_check_lib_save_LIBS=$LIBS
5109 LIBS="-ltinfo $LIBS"
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112
5113 /* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5116 #ifdef __cplusplus
5117 extern "C"
5118 #endif
5119 char tgetent ();
5120 int
5121 main ()
5122 {
5123 return tgetent ();
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_link "$LINENO"; then :
5129 ac_cv_lib_tinfo_tgetent=yes
5130 else
5131 ac_cv_lib_tinfo_tgetent=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
5135 LIBS=$ac_check_lib_save_LIBS
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5138 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5139 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
5140 bash_cv_termcap_lib=libtinfo
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5143 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5144 if ${ac_cv_lib_curses_tgetent+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 ac_check_lib_save_LIBS=$LIBS
5148 LIBS="-lcurses $LIBS"
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151
5152 /* Override any GCC internal prototype to avoid an error.
5153 Use char because int might match the return type of a GCC
5154 builtin and then its argument prototype would still apply. */
5155 #ifdef __cplusplus
5156 extern "C"
5157 #endif
5158 char tgetent ();
5159 int
5160 main ()
5161 {
5162 return tgetent ();
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_link "$LINENO"; then :
5168 ac_cv_lib_curses_tgetent=yes
5169 else
5170 ac_cv_lib_curses_tgetent=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext \
5173 conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5177 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5178 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
5179 bash_cv_termcap_lib=libcurses
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5182 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5183 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 ac_check_lib_save_LIBS=$LIBS
5187 LIBS="-lncurses $LIBS"
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190
5191 /* Override any GCC internal prototype to avoid an error.
5192 Use char because int might match the return type of a GCC
5193 builtin and then its argument prototype would still apply. */
5194 #ifdef __cplusplus
5195 extern "C"
5196 #endif
5197 char tgetent ();
5198 int
5199 main ()
5200 {
5201 return tgetent ();
5202 ;
5203 return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_link "$LINENO"; then :
5207 ac_cv_lib_ncurses_tgetent=yes
5208 else
5209 ac_cv_lib_ncurses_tgetent=no
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext \
5212 conftest$ac_exeext conftest.$ac_ext
5213 LIBS=$ac_check_lib_save_LIBS
5214 fi
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5216 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5217 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
5218 bash_cv_termcap_lib=libncurses
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
5221 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
5222 if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-lncursesw $LIBS"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229
5230 /* Override any GCC internal prototype to avoid an error.
5231 Use char because int might match the return type of a GCC
5232 builtin and then its argument prototype would still apply. */
5233 #ifdef __cplusplus
5234 extern "C"
5235 #endif
5236 char tgetent ();
5237 int
5238 main ()
5239 {
5240 return tgetent ();
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_link "$LINENO"; then :
5246 ac_cv_lib_ncursesw_tgetent=yes
5247 else
5248 ac_cv_lib_ncursesw_tgetent=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext \
5251 conftest$ac_exeext conftest.$ac_ext
5252 LIBS=$ac_check_lib_save_LIBS
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
5255 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
5256 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
5257 bash_cv_termcap_lib=libncursesw
5258 else
5259 bash_cv_termcap_lib=gnutermcap
5260 fi
5261
5262 fi
5263
5264 fi
5265
5266 fi
5267
5268 fi
5269
5270 fi
5271
5272 fi
5273
5274 if test "X$_bash_needmsg" = "Xyes"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5276 $as_echo_n "checking which library has the termcap functions... " >&6; }
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5279 $as_echo "using $bash_cv_termcap_lib" >&6; }
5280 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5281 LDFLAGS="$LDFLAGS -L./lib/termcap"
5282 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5283 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5284 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5285 TERMCAP_LIB=-ltermcap
5286 TERMCAP_DEP=
5287 elif test $bash_cv_termcap_lib = libtinfo; then
5288 TERMCAP_LIB=-ltinfo
5289 TERMCAP_DEP=
5290 elif test $bash_cv_termcap_lib = libncurses; then
5291 TERMCAP_LIB=-lncurses
5292 TERMCAP_DEP=
5293 elif test $bash_cv_termcap_lib = libc; then
5294 TERMCAP_LIB=
5295 TERMCAP_DEP=
5296 else
5297 TERMCAP_LIB=-lcurses
5298 TERMCAP_DEP=
5299 fi
5300
5301
5302
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5305 $as_echo_n "checking version of installed readline library... " >&6; }
5306
5307 # What a pain in the ass this is.
5308
5309 # save cpp and ld options
5310 _save_CFLAGS="$CFLAGS"
5311 _save_LDFLAGS="$LDFLAGS"
5312 _save_LIBS="$LIBS"
5313
5314 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5315 # allows the caller to do something like $_rl_prefix=$withval if the user
5316 # specifies --with-installed-readline=PREFIX as an argument to configure
5317
5318 if test -z "$ac_cv_rl_prefix"; then
5319 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5320 fi
5321
5322 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5323 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5324
5325 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5326 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5327 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5328
5329 if ${ac_cv_rl_version+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test "$cross_compiling" = yes; then :
5333 ac_cv_rl_version='8.0'
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337
5338 #include <stdio.h>
5339 #include <readline/readline.h>
5340
5341 extern int rl_gnu_readline_p;
5342
5343 main()
5344 {
5345 FILE *fp;
5346 fp = fopen("conftest.rlv", "w");
5347 if (fp == 0)
5348 exit(1);
5349 if (rl_gnu_readline_p != 1)
5350 fprintf(fp, "0.0\n");
5351 else
5352 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5353 fclose(fp);
5354 exit(0);
5355 }
5356
5357 _ACEOF
5358 if ac_fn_c_try_run "$LINENO"; then :
5359 ac_cv_rl_version=`cat conftest.rlv`
5360 else
5361 ac_cv_rl_version='0.0'
5362 fi
5363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5364 conftest.$ac_objext conftest.beam conftest.$ac_ext
5365 fi
5366
5367 fi
5368
5369
5370 CFLAGS="$_save_CFLAGS"
5371 LDFLAGS="$_save_LDFLAGS"
5372 LIBS="$_save_LIBS"
5373
5374 RL_MAJOR=0
5375 RL_MINOR=0
5376
5377 # (
5378 case "$ac_cv_rl_version" in
5379 2*|3*|4*|5*|6*|7*|8*|9*)
5380 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5381 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5382 ;;
5383 esac
5384
5385 # (((
5386 case $RL_MAJOR in
5387 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5388 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5389 *) _RL_MAJOR=00 ;;
5390 esac
5391
5392 # (((
5393 case $RL_MINOR in
5394 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5395 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5396 *) _RL_MINOR=00 ;;
5397 esac
5398
5399 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5400
5401 # Readline versions greater than 4.2 have these defines in readline.h
5402
5403 if test $ac_cv_rl_version = '0.0' ; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5405 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5406 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5407 # set these for use by the caller
5408 RL_PREFIX=$ac_cv_rl_prefix
5409 RL_LIBDIR=$ac_cv_rl_libdir
5410 RL_INCLUDEDIR=$ac_cv_rl_includedir
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5412 $as_echo "$ac_cv_rl_version" >&6; }
5413 else
5414
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define RL_READLINE_VERSION $RL_VERSION
5418 _ACEOF
5419
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define RL_VERSION_MAJOR $RL_MAJOR
5423 _ACEOF
5424
5425
5426 cat >>confdefs.h <<_ACEOF
5427 #define RL_VERSION_MINOR $RL_MINOR
5428 _ACEOF
5429
5430
5431
5432
5433
5434
5435 # set these for use by the caller
5436 RL_PREFIX=$ac_cv_rl_prefix
5437 RL_LIBDIR=$ac_cv_rl_libdir
5438 RL_INCLUDEDIR=$ac_cv_rl_includedir
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5441 $as_echo "$ac_cv_rl_version" >&6; }
5442
5443 fi
5444
5445
5446 case "$ac_cv_rl_version" in
5447 8*|9*) ;;
5448 *) opt_with_installed_readline=no
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
5450 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
5452 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5453 ;;
5454 esac
5455 fi
5456
5457 TILDE_LIB=-ltilde
5458 if test $opt_readline = yes; then
5459 $as_echo "#define READLINE 1" >>confdefs.h
5460
5461 if test "$opt_with_installed_readline" != "no" ; then
5462 case "$opt_with_installed_readline" in
5463 yes) RL_INCLUDE= ;;
5464 *) case "$RL_INCLUDEDIR" in
5465 /usr/include) ;;
5466 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5467 esac
5468 ;;
5469 esac
5470 READLINE_DEP=
5471 READLINE_LIB=-lreadline
5472 # section for OS versions that don't allow unresolved symbols
5473 # to be compiled into dynamic libraries.
5474 case "$host_os" in
5475 cygwin*) TILDE_LIB= ;;
5476 esac
5477 else
5478 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5479 READLINE_DEP='$(READLINE_LIBRARY)'
5480 # section for OS versions that ship an older/broken version of
5481 # readline as a standard dynamic library and don't allow a
5482 # static version specified as -llibname to override the
5483 # dynamic version
5484 case "${host_os}" in
5485 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5486 *) READLINE_LIB=-lreadline ;;
5487 esac
5488 fi
5489 else
5490 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5491 READLINE_LIB= READLINE_DEP=
5492 fi
5493 if test $opt_history = yes || test $opt_bang_history = yes; then
5494 if test $opt_history = yes; then
5495 $as_echo "#define HISTORY 1" >>confdefs.h
5496
5497 fi
5498 if test $opt_bang_history = yes; then
5499 $as_echo "#define BANG_HISTORY 1" >>confdefs.h
5500
5501 fi
5502 if test "$opt_with_installed_readline" != "no"; then
5503 HIST_LIBDIR=$RL_LIBDIR
5504 HISTORY_DEP=
5505 HISTORY_LIB=-lhistory
5506 case "$opt_with_installed_readline" in
5507 yes) RL_INCLUDE= ;;
5508 *) case "$RL_INCLUDEDIR" in
5509 /usr/include) ;;
5510 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5511 esac
5512 ;;
5513 esac
5514 else
5515 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5516 HISTORY_DEP='$(HISTORY_LIBRARY)'
5517 # section for OS versions that ship an older version of
5518 # readline as a standard dynamic library and don't allow a
5519 # static version specified as -llibname to override the
5520 # dynamic version
5521 case "${host_os}" in
5522 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5523 *) HISTORY_LIB=-lhistory ;;
5524 esac
5525 fi
5526 else
5527 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5528 HISTORY_LIB= HISTORY_DEP=
5529 fi
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 # Find a good install program. We prefer a C program (faster),
5542 # so one script is as good as another. But avoid the broken or
5543 # incompatible versions:
5544 # SysV /etc/install, /usr/sbin/install
5545 # SunOS /usr/etc/install
5546 # IRIX /sbin/install
5547 # AIX /bin/install
5548 # AmigaOS /C/install, which installs bootblocks on floppy discs
5549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5552 # OS/2's system install, which has a completely different semantic
5553 # ./install, which can be erroneously created by make from ./install.sh.
5554 # Reject install programs that cannot install multiple files.
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5556 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5557 if test -z "$INSTALL"; then
5558 if ${ac_cv_path_install+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 # Account for people who put trailing slashes in PATH elements.
5567 case $as_dir/ in #((
5568 ./ | .// | /[cC]/* | \
5569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5570 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5571 /usr/ucb/* ) ;;
5572 *)
5573 # OSF1 and SCO ODT 3.0 have their own names for install.
5574 # Don't use installbsd from OSF since it installs stuff as root
5575 # by default.
5576 for ac_prog in ginstall scoinst install; do
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5579 if test $ac_prog = install &&
5580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5581 # AIX install. It has an incompatible calling convention.
5582 :
5583 elif test $ac_prog = install &&
5584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5585 # program-specific install script used by HP pwplus--don't use.
5586 :
5587 else
5588 rm -rf conftest.one conftest.two conftest.dir
5589 echo one > conftest.one
5590 echo two > conftest.two
5591 mkdir conftest.dir
5592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5593 test -s conftest.one && test -s conftest.two &&
5594 test -s conftest.dir/conftest.one &&
5595 test -s conftest.dir/conftest.two
5596 then
5597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5598 break 3
5599 fi
5600 fi
5601 fi
5602 done
5603 done
5604 ;;
5605 esac
5606
5607 done
5608 IFS=$as_save_IFS
5609
5610 rm -rf conftest.one conftest.two conftest.dir
5611
5612 fi
5613 if test "${ac_cv_path_install+set}" = set; then
5614 INSTALL=$ac_cv_path_install
5615 else
5616 # As a last resort, use the slow shell script. Don't cache a
5617 # value for INSTALL within a source directory, because that will
5618 # break other packages using the cache if that directory is
5619 # removed, or if the value is a relative name.
5620 INSTALL=$ac_install_sh
5621 fi
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5624 $as_echo "$INSTALL" >&6; }
5625
5626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5627 # It thinks the first close brace ends the variable substitution.
5628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5629
5630 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5631
5632 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5633
5634 if test -n "$ac_tool_prefix"; then
5635 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}ar; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_AR+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 if test -n "$AR"; then
5643 ac_cv_prog_AR="$AR" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_AR="${ac_tool_prefix}ar"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 AR=$ac_cv_prog_AR
5663 if test -n "$AR"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5665 $as_echo "$AR" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 fi
5673 if test -z "$ac_cv_prog_AR"; then
5674 ac_ct_AR=$AR
5675 # Extract the first word of "ar", so it can be a program name with args.
5676 set dummy ar; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$ac_ct_AR"; then
5683 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_ac_ct_AR="ar"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5695 fi
5696 done
5697 done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5703 if test -n "$ac_ct_AR"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5705 $as_echo "$ac_ct_AR" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5709 fi
5710
5711 if test "x$ac_ct_AR" = x; then
5712 AR=""
5713 else
5714 case $cross_compiling:$ac_tool_warned in
5715 yes:)
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718 ac_tool_warned=yes ;;
5719 esac
5720 AR=$ac_ct_AR
5721 fi
5722 else
5723 AR="$ac_cv_prog_AR"
5724 fi
5725
5726 test -n "$ARFLAGS" || ARFLAGS="cr"
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_RANLIB+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$RANLIB"; then
5736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 RANLIB=$ac_cv_prog_RANLIB
5756 if test -n "$RANLIB"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5758 $as_echo "$RANLIB" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765 fi
5766 if test -z "$ac_cv_prog_RANLIB"; then
5767 ac_ct_RANLIB=$RANLIB
5768 # Extract the first word of "ranlib", so it can be a program name with args.
5769 set dummy ranlib; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 if test -n "$ac_ct_RANLIB"; then
5776 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_RANLIB="ranlib"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5796 if test -n "$ac_ct_RANLIB"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5798 $as_echo "$ac_ct_RANLIB" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804 if test "x$ac_ct_RANLIB" = x; then
5805 RANLIB=":"
5806 else
5807 case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813 RANLIB=$ac_ct_RANLIB
5814 fi
5815 else
5816 RANLIB="$ac_cv_prog_RANLIB"
5817 fi
5818
5819 for ac_prog in 'bison -y' byacc
5820 do
5821 # Extract the first word of "$ac_prog", so it can be a program name with args.
5822 set dummy $ac_prog; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_prog_YACC+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$YACC"; then
5829 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_YACC="$ac_prog"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846 fi
5847 fi
5848 YACC=$ac_cv_prog_YACC
5849 if test -n "$YACC"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5851 $as_echo "$YACC" >&6; }
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857
5858 test -n "$YACC" && break
5859 done
5860 test -n "$YACC" || YACC="yacc"
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5863 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5864 set x ${MAKE-make}
5865 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5866 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 cat >conftest.make <<\_ACEOF
5870 SHELL = /bin/sh
5871 all:
5872 @echo '@@@%%%=$(MAKE)=@@@%%%'
5873 _ACEOF
5874 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5875 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5876 *@@@%%%=?*=@@@%%%*)
5877 eval ac_cv_prog_make_${ac_make}_set=yes;;
5878 *)
5879 eval ac_cv_prog_make_${ac_make}_set=no;;
5880 esac
5881 rm -f conftest.make
5882 fi
5883 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5885 $as_echo "yes" >&6; }
5886 SET_MAKE=
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 SET_MAKE="MAKE=${MAKE-make}"
5891 fi
5892
5893
5894 case "$ac_cv_prog_YACC" in
5895 *bison*) ;;
5896 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
5897 $as_echo "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
5898 esac
5899
5900 case "$host_os" in
5901 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5902 *) MAKE_SHELL=/bin/sh ;;
5903 esac
5904
5905
5906 if test x$SIZE = x; then
5907 if test x$ac_tool_prefix = x; then
5908 SIZE=size
5909 else
5910 SIZE=${ac_tool_prefix}size
5911 save_IFS=$IFS ; IFS=:
5912 size_found=0
5913 for dir in $PATH; do
5914 if test -x $dir/$SIZE ; then
5915 size_found=1
5916 break
5917 fi
5918 done
5919 if test $size_found -eq 0; then
5920 SIZE=:
5921 fi
5922 IFS=$save_IFS
5923 fi
5924 fi
5925
5926
5927 # Checks for stat-related time functions.
5928
5929 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
5930 # Foundation, Inc.
5931
5932 # This file is free software; the Free Software Foundation
5933 # gives unlimited permission to copy and/or distribute it,
5934 # with or without modifications, as long as this notice is preserved.
5935
5936
5937 # st_atim.tv_nsec - Linux, Solaris, Cygwin
5938 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
5939 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
5940 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
5941
5942 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
5943 # st_birthtim - Cygwin 1.7.0+
5944
5945
5946
5947 # Configure checks for struct timespec
5948
5949 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
5950
5951 # This file is free software; the Free Software Foundation
5952 # gives unlimited permission to copy and/or distribute it,
5953 # with or without modifications, as long as this notice is preserved.
5954
5955 # Original written by Paul Eggert and Jim Meyering.
5956 # Modified by Chet Ramey for bash
5957
5958
5959
5960
5961
5962 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5963
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5966 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5967 if ${ac_cv_c_const+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972
5973 int
5974 main ()
5975 {
5976
5977 #ifndef __cplusplus
5978 /* Ultrix mips cc rejects this sort of thing. */
5979 typedef int charset[2];
5980 const charset cs = { 0, 0 };
5981 /* SunOS 4.1.1 cc rejects this. */
5982 char const *const *pcpcc;
5983 char **ppc;
5984 /* NEC SVR4.0.2 mips cc rejects this. */
5985 struct point {int x, y;};
5986 static struct point const zero = {0,0};
5987 /* AIX XL C 1.02.0.0 rejects this.
5988 It does not let you subtract one const X* pointer from another in
5989 an arm of an if-expression whose if-part is not a constant
5990 expression */
5991 const char *g = "string";
5992 pcpcc = &g + (g ? g-g : 0);
5993 /* HPUX 7.0 cc rejects these. */
5994 ++pcpcc;
5995 ppc = (char**) pcpcc;
5996 pcpcc = (char const *const *) ppc;
5997 { /* SCO 3.2v4 cc rejects this sort of thing. */
5998 char tx;
5999 char *t = &tx;
6000 char const *s = 0 ? (char *) 0 : (char const *) 0;
6001
6002 *t++ = 0;
6003 if (s) return 0;
6004 }
6005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6006 int x[] = {25, 17};
6007 const int *foo = &x[0];
6008 ++foo;
6009 }
6010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6011 typedef const int *iptr;
6012 iptr p = 0;
6013 ++p;
6014 }
6015 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6017 struct s { int j; const int *ap[3]; } bx;
6018 struct s *b = &bx; b->j = 5;
6019 }
6020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6021 const int foo = 10;
6022 if (!foo) return 0;
6023 }
6024 return !cs[0] && !zero.x;
6025 #endif
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_c_const=yes
6033 else
6034 ac_cv_c_const=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6039 $as_echo "$ac_cv_c_const" >&6; }
6040 if test $ac_cv_c_const = no; then
6041
6042 $as_echo "#define const /**/" >>confdefs.h
6043
6044 fi
6045
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6047 $as_echo_n "checking for inline... " >&6; }
6048 if ${ac_cv_c_inline+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 ac_cv_c_inline=no
6052 for ac_kw in inline __inline__ __inline; do
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #ifndef __cplusplus
6056 typedef int foo_t;
6057 static $ac_kw foo_t static_foo () {return 0; }
6058 $ac_kw foo_t foo () {return 0; }
6059 #endif
6060
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 ac_cv_c_inline=$ac_kw
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 test "$ac_cv_c_inline" != no && break
6067 done
6068
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6071 $as_echo "$ac_cv_c_inline" >&6; }
6072
6073 case $ac_cv_c_inline in
6074 inline | yes) ;;
6075 *)
6076 case $ac_cv_c_inline in
6077 no) ac_val=;;
6078 *) ac_val=$ac_cv_c_inline;;
6079 esac
6080 cat >>confdefs.h <<_ACEOF
6081 #ifndef __cplusplus
6082 #define inline $ac_val
6083 #endif
6084 _ACEOF
6085 ;;
6086 esac
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6089 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6090 if ${ac_cv_c_bigendian+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 ac_cv_c_bigendian=unknown
6094 # See if we're dealing with a universal compiler.
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 #ifndef __APPLE_CC__
6098 not a universal capable compiler
6099 #endif
6100 typedef int dummy;
6101
6102 _ACEOF
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104
6105 # Check for potential -arch flags. It is not universal unless
6106 # there are at least two -arch flags with different values.
6107 ac_arch=
6108 ac_prev=
6109 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6110 if test -n "$ac_prev"; then
6111 case $ac_word in
6112 i?86 | x86_64 | ppc | ppc64)
6113 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6114 ac_arch=$ac_word
6115 else
6116 ac_cv_c_bigendian=universal
6117 break
6118 fi
6119 ;;
6120 esac
6121 ac_prev=
6122 elif test "x$ac_word" = "x-arch"; then
6123 ac_prev=arch
6124 fi
6125 done
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 if test $ac_cv_c_bigendian = unknown; then
6129 # See if sys/param.h defines the BYTE_ORDER macro.
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6133 #include <sys/param.h>
6134
6135 int
6136 main ()
6137 {
6138 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6139 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6140 && LITTLE_ENDIAN)
6141 bogus endian macros
6142 #endif
6143
6144 ;
6145 return 0;
6146 }
6147 _ACEOF
6148 if ac_fn_c_try_compile "$LINENO"; then :
6149 # It does; now see whether it defined to BIG_ENDIAN or not.
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 #include <sys/types.h>
6153 #include <sys/param.h>
6154
6155 int
6156 main ()
6157 {
6158 #if BYTE_ORDER != BIG_ENDIAN
6159 not big endian
6160 #endif
6161
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 ac_cv_c_bigendian=yes
6168 else
6169 ac_cv_c_bigendian=no
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 if test $ac_cv_c_bigendian = unknown; then
6176 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <limits.h>
6180
6181 int
6182 main ()
6183 {
6184 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6185 bogus endian macros
6186 #endif
6187
6188 ;
6189 return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193 # It does; now see whether it defined to _BIG_ENDIAN or not.
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 #include <limits.h>
6197
6198 int
6199 main ()
6200 {
6201 #ifndef _BIG_ENDIAN
6202 not big endian
6203 #endif
6204
6205 ;
6206 return 0;
6207 }
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 ac_cv_c_bigendian=yes
6211 else
6212 ac_cv_c_bigendian=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 if test $ac_cv_c_bigendian = unknown; then
6219 # Compile a test program.
6220 if test "$cross_compiling" = yes; then :
6221 # Try to guess by grepping values from an object file.
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 short int ascii_mm[] =
6225 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6226 short int ascii_ii[] =
6227 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6228 int use_ascii (int i) {
6229 return ascii_mm[i] + ascii_ii[i];
6230 }
6231 short int ebcdic_ii[] =
6232 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6233 short int ebcdic_mm[] =
6234 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6235 int use_ebcdic (int i) {
6236 return ebcdic_mm[i] + ebcdic_ii[i];
6237 }
6238 extern int foo;
6239
6240 int
6241 main ()
6242 {
6243 return use_ascii (foo) == use_ebcdic (foo);
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_compile "$LINENO"; then :
6249 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6250 ac_cv_c_bigendian=yes
6251 fi
6252 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6253 if test "$ac_cv_c_bigendian" = unknown; then
6254 ac_cv_c_bigendian=no
6255 else
6256 # finding both strings is unlikely to happen, but who knows?
6257 ac_cv_c_bigendian=unknown
6258 fi
6259 fi
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 $ac_includes_default
6266 int
6267 main ()
6268 {
6269
6270 /* Are we little or big endian? From Harbison&Steele. */
6271 union
6272 {
6273 long int l;
6274 char c[sizeof (long int)];
6275 } u;
6276 u.l = 1;
6277 return u.c[sizeof (long int) - 1] == 1;
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_run "$LINENO"; then :
6284 ac_cv_c_bigendian=no
6285 else
6286 ac_cv_c_bigendian=yes
6287 fi
6288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6289 conftest.$ac_objext conftest.beam conftest.$ac_ext
6290 fi
6291
6292 fi
6293 fi
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6295 $as_echo "$ac_cv_c_bigendian" >&6; }
6296 case $ac_cv_c_bigendian in #(
6297 yes)
6298 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6299 ;; #(
6300 no)
6301 ;; #(
6302 universal)
6303
6304 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6305
6306 ;; #(
6307 *)
6308 as_fn_error $? "unknown endianness
6309 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6310 esac
6311
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6313 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6314 if ${ac_cv_c_stringize+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #define x(y) #y
6320
6321 char *s = x(teststring);
6322 _ACEOF
6323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324 $EGREP "#teststring" >/dev/null 2>&1; then :
6325 ac_cv_c_stringize=no
6326 else
6327 ac_cv_c_stringize=yes
6328 fi
6329 rm -f conftest*
6330
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6333 $as_echo "$ac_cv_c_stringize" >&6; }
6334 if test $ac_cv_c_stringize = yes; then
6335
6336 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6337
6338 fi
6339
6340
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6343 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6344 if ${ac_cv_type_long_double_wider+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 #include <float.h>
6350 long double const a[] =
6351 {
6352 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6353 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6354 };
6355 long double
6356 f (long double x)
6357 {
6358 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6359 + (x ? f (x) : 'c'));
6360 }
6361
6362 int
6363 main ()
6364 {
6365 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6366 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6367 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6368 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6369 && (int) LDBL_EPSILON == 0
6370 )];
6371 test_array [0] = 0;
6372 return test_array [0];
6373
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379 ac_cv_type_long_double_wider=yes
6380 else
6381 ac_cv_type_long_double_wider=no
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 fi
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6386 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6387 if test $ac_cv_type_long_double_wider = yes; then
6388
6389 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6390
6391 fi
6392
6393 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6394 if test $ac_cv_c_long_double = yes; then
6395
6396 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6397
6398 fi
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6401 $as_echo_n "checking for function prototypes... " >&6; }
6402 if test "$ac_cv_prog_cc_c89" != no; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6404 $as_echo "yes" >&6; }
6405
6406 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6407
6408
6409 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6410
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6417 $as_echo_n "checking whether char is unsigned... " >&6; }
6418 if ${ac_cv_c_char_unsigned+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 $ac_includes_default
6424 int
6425 main ()
6426 {
6427 static int test_array [1 - 2 * !(((char) -1) < 0)];
6428 test_array [0] = 0;
6429 return test_array [0];
6430
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 ac_cv_c_char_unsigned=no
6437 else
6438 ac_cv_c_char_unsigned=yes
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6443 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6444 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6445 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
6446
6447 fi
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6450 $as_echo_n "checking for working volatile... " >&6; }
6451 if ${ac_cv_c_volatile+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456
6457 int
6458 main ()
6459 {
6460
6461 volatile int x;
6462 int * volatile y = (int *) 0;
6463 return !x && !y;
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 ac_cv_c_volatile=yes
6470 else
6471 ac_cv_c_volatile=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6476 $as_echo "$ac_cv_c_volatile" >&6; }
6477 if test $ac_cv_c_volatile = no; then
6478
6479 $as_echo "#define volatile /**/" >>confdefs.h
6480
6481 fi
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6484 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6485 if ${ac_cv_c_restrict+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 ac_cv_c_restrict=no
6489 # The order here caters to the fact that C++ does not require restrict.
6490 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 typedef int * int_ptr;
6494 int foo (int_ptr $ac_kw ip) {
6495 return ip[0];
6496 }
6497 int
6498 main ()
6499 {
6500 int s[1];
6501 int * $ac_kw t = s;
6502 t[0] = 0;
6503 return foo(t)
6504 ;
6505 return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509 ac_cv_c_restrict=$ac_kw
6510 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 test "$ac_cv_c_restrict" != no && break
6513 done
6514
6515 fi
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6517 $as_echo "$ac_cv_c_restrict" >&6; }
6518
6519 case $ac_cv_c_restrict in
6520 restrict) ;;
6521 no) $as_echo "#define restrict /**/" >>confdefs.h
6522 ;;
6523 *) cat >>confdefs.h <<_ACEOF
6524 #define restrict $ac_cv_c_restrict
6525 _ACEOF
6526 ;;
6527 esac
6528
6529
6530
6531 MKINSTALLDIRS=
6532 if test -n "$ac_aux_dir"; then
6533 case "$ac_aux_dir" in
6534 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6535 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6536 esac
6537 fi
6538 if test -z "$MKINSTALLDIRS"; then
6539 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6540 fi
6541
6542
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6545 $as_echo_n "checking whether NLS is requested... " >&6; }
6546 # Check whether --enable-nls was given.
6547 if test "${enable_nls+set}" = set; then :
6548 enableval=$enable_nls; USE_NLS=$enableval
6549 else
6550 USE_NLS=yes
6551 fi
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6554 $as_echo "$USE_NLS" >&6; }
6555
6556
6557
6558
6559
6560
6561 # Prepare PATH_SEPARATOR.
6562 # The user is always right.
6563 if test "${PATH_SEPARATOR+set}" != set; then
6564 echo "#! /bin/sh" >conf$$.sh
6565 echo "exit 0" >>conf$$.sh
6566 chmod +x conf$$.sh
6567 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6568 PATH_SEPARATOR=';'
6569 else
6570 PATH_SEPARATOR=:
6571 fi
6572 rm -f conf$$.sh
6573 fi
6574
6575 # Find out how to test for executable files. Don't use a zero-byte file,
6576 # as systems may use methods other than mode bits to determine executability.
6577 cat >conf$$.file <<_ASEOF
6578 #! /bin/sh
6579 exit 0
6580 _ASEOF
6581 chmod +x conf$$.file
6582 if test -x conf$$.file >/dev/null 2>&1; then
6583 ac_executable_p="test -x"
6584 else
6585 ac_executable_p="test -f"
6586 fi
6587 rm -f conf$$.file
6588
6589 # Extract the first word of "msgfmt", so it can be a program name with args.
6590 set dummy msgfmt; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_path_MSGFMT+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 case "$MSGFMT" in
6597 [\\/]* | ?:[\\/]*)
6598 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6599 ;;
6600 *)
6601 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6602 for ac_dir in $PATH; do
6603 IFS="$ac_save_IFS"
6604 test -z "$ac_dir" && ac_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6607 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6608 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6609 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6610 break 2
6611 fi
6612 fi
6613 done
6614 done
6615 IFS="$ac_save_IFS"
6616 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6617 ;;
6618 esac
6619 fi
6620 MSGFMT="$ac_cv_path_MSGFMT"
6621 if test "$MSGFMT" != ":"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6623 $as_echo "$MSGFMT" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6630 set dummy gmsgfmt; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_path_GMSGFMT+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 case $GMSGFMT in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6639 ;;
6640 *)
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6657 ;;
6658 esac
6659 fi
6660 GMSGFMT=$ac_cv_path_GMSGFMT
6661 if test -n "$GMSGFMT"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6663 $as_echo "$GMSGFMT" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670
6671
6672 # Prepare PATH_SEPARATOR.
6673 # The user is always right.
6674 if test "${PATH_SEPARATOR+set}" != set; then
6675 echo "#! /bin/sh" >conf$$.sh
6676 echo "exit 0" >>conf$$.sh
6677 chmod +x conf$$.sh
6678 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6679 PATH_SEPARATOR=';'
6680 else
6681 PATH_SEPARATOR=:
6682 fi
6683 rm -f conf$$.sh
6684 fi
6685
6686 # Find out how to test for executable files. Don't use a zero-byte file,
6687 # as systems may use methods other than mode bits to determine executability.
6688 cat >conf$$.file <<_ASEOF
6689 #! /bin/sh
6690 exit 0
6691 _ASEOF
6692 chmod +x conf$$.file
6693 if test -x conf$$.file >/dev/null 2>&1; then
6694 ac_executable_p="test -x"
6695 else
6696 ac_executable_p="test -f"
6697 fi
6698 rm -f conf$$.file
6699
6700 # Extract the first word of "xgettext", so it can be a program name with args.
6701 set dummy xgettext; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_path_XGETTEXT+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 case "$XGETTEXT" in
6708 [\\/]* | ?:[\\/]*)
6709 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6710 ;;
6711 *)
6712 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6713 for ac_dir in $PATH; do
6714 IFS="$ac_save_IFS"
6715 test -z "$ac_dir" && ac_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6718 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6719 (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
6720 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6721 break 2
6722 fi
6723 fi
6724 done
6725 done
6726 IFS="$ac_save_IFS"
6727 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6728 ;;
6729 esac
6730 fi
6731 XGETTEXT="$ac_cv_path_XGETTEXT"
6732 if test "$XGETTEXT" != ":"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6734 $as_echo "$XGETTEXT" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740 rm -f messages.po
6741
6742
6743 # Prepare PATH_SEPARATOR.
6744 # The user is always right.
6745 if test "${PATH_SEPARATOR+set}" != set; then
6746 echo "#! /bin/sh" >conf$$.sh
6747 echo "exit 0" >>conf$$.sh
6748 chmod +x conf$$.sh
6749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6750 PATH_SEPARATOR=';'
6751 else
6752 PATH_SEPARATOR=:
6753 fi
6754 rm -f conf$$.sh
6755 fi
6756
6757 # Find out how to test for executable files. Don't use a zero-byte file,
6758 # as systems may use methods other than mode bits to determine executability.
6759 cat >conf$$.file <<_ASEOF
6760 #! /bin/sh
6761 exit 0
6762 _ASEOF
6763 chmod +x conf$$.file
6764 if test -x conf$$.file >/dev/null 2>&1; then
6765 ac_executable_p="test -x"
6766 else
6767 ac_executable_p="test -f"
6768 fi
6769 rm -f conf$$.file
6770
6771 # Extract the first word of "msgmerge", so it can be a program name with args.
6772 set dummy msgmerge; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_path_MSGMERGE+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 case "$MSGMERGE" in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6781 ;;
6782 *)
6783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6784 for ac_dir in $PATH; do
6785 IFS="$ac_save_IFS"
6786 test -z "$ac_dir" && ac_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6789 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6790 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6791 break 2
6792 fi
6793 fi
6794 done
6795 done
6796 IFS="$ac_save_IFS"
6797 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6798 ;;
6799 esac
6800 fi
6801 MSGMERGE="$ac_cv_path_MSGMERGE"
6802 if test "$MSGMERGE" != ":"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6804 $as_echo "$MSGMERGE" >&6; }
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810
6811 if test "$GMSGFMT" != ":"; then
6812 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6813 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6814 : ;
6815 else
6816 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6818 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6819 GMSGFMT=":"
6820 fi
6821 fi
6822
6823 if test "$XGETTEXT" != ":"; then
6824 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6825 (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
6826 : ;
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6829 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6830 XGETTEXT=":"
6831 fi
6832 rm -f messages.po
6833 fi
6834
6835 ac_config_commands="$ac_config_commands default-1"
6836
6837
6838 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6839 if test "x$ac_cv_type_off_t" = xyes; then :
6840
6841 else
6842
6843 cat >>confdefs.h <<_ACEOF
6844 #define off_t long int
6845 _ACEOF
6846
6847 fi
6848
6849 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6850 if test "x$ac_cv_type_size_t" = xyes; then :
6851
6852 else
6853
6854 cat >>confdefs.h <<_ACEOF
6855 #define size_t unsigned int
6856 _ACEOF
6857
6858 fi
6859
6860 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6861 # for constant arguments. Useless!
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6863 $as_echo_n "checking for working alloca.h... " >&6; }
6864 if ${ac_cv_working_alloca_h+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 #include <alloca.h>
6870 int
6871 main ()
6872 {
6873 char *p = (char *) alloca (2 * sizeof (int));
6874 if (p) return 0;
6875 ;
6876 return 0;
6877 }
6878 _ACEOF
6879 if ac_fn_c_try_link "$LINENO"; then :
6880 ac_cv_working_alloca_h=yes
6881 else
6882 ac_cv_working_alloca_h=no
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext \
6885 conftest$ac_exeext conftest.$ac_ext
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6888 $as_echo "$ac_cv_working_alloca_h" >&6; }
6889 if test $ac_cv_working_alloca_h = yes; then
6890
6891 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6892
6893 fi
6894
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6896 $as_echo_n "checking for alloca... " >&6; }
6897 if ${ac_cv_func_alloca_works+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #ifdef __GNUC__
6903 # define alloca __builtin_alloca
6904 #else
6905 # ifdef _MSC_VER
6906 # include <malloc.h>
6907 # define alloca _alloca
6908 # else
6909 # ifdef HAVE_ALLOCA_H
6910 # include <alloca.h>
6911 # else
6912 # ifdef _AIX
6913 #pragma alloca
6914 # else
6915 # ifndef alloca /* predefined by HP cc +Olibcalls */
6916 void *alloca (size_t);
6917 # endif
6918 # endif
6919 # endif
6920 # endif
6921 #endif
6922
6923 int
6924 main ()
6925 {
6926 char *p = (char *) alloca (1);
6927 if (p) return 0;
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933 ac_cv_func_alloca_works=yes
6934 else
6935 ac_cv_func_alloca_works=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6941 $as_echo "$ac_cv_func_alloca_works" >&6; }
6942
6943 if test $ac_cv_func_alloca_works = yes; then
6944
6945 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6946
6947 else
6948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6949 # that cause trouble. Some versions do not even contain alloca or
6950 # contain a buggy version. If you still want to use their alloca,
6951 # use ar to extract alloca.o from them instead of compiling alloca.c.
6952
6953 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6954
6955 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6956
6957
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6959 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6960 if ${ac_cv_os_cray+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 #if defined CRAY && ! defined CRAY2
6966 webecray
6967 #else
6968 wenotbecray
6969 #endif
6970
6971 _ACEOF
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973 $EGREP "webecray" >/dev/null 2>&1; then :
6974 ac_cv_os_cray=yes
6975 else
6976 ac_cv_os_cray=no
6977 fi
6978 rm -f conftest*
6979
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6982 $as_echo "$ac_cv_os_cray" >&6; }
6983 if test $ac_cv_os_cray = yes; then
6984 for ac_func in _getb67 GETB67 getb67; do
6985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6987 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6988
6989 cat >>confdefs.h <<_ACEOF
6990 #define CRAY_STACKSEG_END $ac_func
6991 _ACEOF
6992
6993 break
6994 fi
6995
6996 done
6997 fi
6998
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7000 $as_echo_n "checking stack direction for C alloca... " >&6; }
7001 if ${ac_cv_c_stack_direction+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 if test "$cross_compiling" = yes; then :
7005 ac_cv_c_stack_direction=0
7006 else
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 $ac_includes_default
7010 int
7011 find_stack_direction (int *addr, int depth)
7012 {
7013 int dir, dummy = 0;
7014 if (! addr)
7015 addr = &dummy;
7016 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7017 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7018 return dir + dummy;
7019 }
7020
7021 int
7022 main (int argc, char **argv)
7023 {
7024 return find_stack_direction (0, argc + !argv + 20) < 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_run "$LINENO"; then :
7028 ac_cv_c_stack_direction=1
7029 else
7030 ac_cv_c_stack_direction=-1
7031 fi
7032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7033 conftest.$ac_objext conftest.beam conftest.$ac_ext
7034 fi
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7038 $as_echo "$ac_cv_c_stack_direction" >&6; }
7039 cat >>confdefs.h <<_ACEOF
7040 #define STACK_DIRECTION $ac_cv_c_stack_direction
7041 _ACEOF
7042
7043
7044 fi
7045
7046
7047
7048
7049 for ac_header in $ac_header_list
7050 do :
7051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7052 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7053 "
7054 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7055 cat >>confdefs.h <<_ACEOF
7056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7057 _ACEOF
7058
7059 fi
7060
7061 done
7062
7063
7064
7065
7066
7067
7068
7069
7070 for ac_func in getpagesize
7071 do :
7072 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7073 if test "x$ac_cv_func_getpagesize" = xyes; then :
7074 cat >>confdefs.h <<_ACEOF
7075 #define HAVE_GETPAGESIZE 1
7076 _ACEOF
7077
7078 fi
7079 done
7080
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7082 $as_echo_n "checking for working mmap... " >&6; }
7083 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test "$cross_compiling" = yes; then :
7087 ac_cv_func_mmap_fixed_mapped=no
7088 else
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 $ac_includes_default
7092 /* malloc might have been renamed as rpl_malloc. */
7093 #undef malloc
7094
7095 /* Thanks to Mike Haertel and Jim Avera for this test.
7096 Here is a matrix of mmap possibilities:
7097 mmap private not fixed
7098 mmap private fixed at somewhere currently unmapped
7099 mmap private fixed at somewhere already mapped
7100 mmap shared not fixed
7101 mmap shared fixed at somewhere currently unmapped
7102 mmap shared fixed at somewhere already mapped
7103 For private mappings, we should verify that changes cannot be read()
7104 back from the file, nor mmap's back from the file at a different
7105 address. (There have been systems where private was not correctly
7106 implemented like the infamous i386 svr4.0, and systems where the
7107 VM page cache was not coherent with the file system buffer cache
7108 like early versions of FreeBSD and possibly contemporary NetBSD.)
7109 For shared mappings, we should conversely verify that changes get
7110 propagated back to all the places they're supposed to be.
7111
7112 Grep wants private fixed already mapped.
7113 The main things grep needs to know about mmap are:
7114 * does it exist and is it safe to write into the mmap'd area
7115 * how to use it (BSD variants) */
7116
7117 #include <fcntl.h>
7118 #include <sys/mman.h>
7119
7120 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7121 char *malloc ();
7122 #endif
7123
7124 /* This mess was copied from the GNU getpagesize.h. */
7125 #ifndef HAVE_GETPAGESIZE
7126 # ifdef _SC_PAGESIZE
7127 # define getpagesize() sysconf(_SC_PAGESIZE)
7128 # else /* no _SC_PAGESIZE */
7129 # ifdef HAVE_SYS_PARAM_H
7130 # include <sys/param.h>
7131 # ifdef EXEC_PAGESIZE
7132 # define getpagesize() EXEC_PAGESIZE
7133 # else /* no EXEC_PAGESIZE */
7134 # ifdef NBPG
7135 # define getpagesize() NBPG * CLSIZE
7136 # ifndef CLSIZE
7137 # define CLSIZE 1
7138 # endif /* no CLSIZE */
7139 # else /* no NBPG */
7140 # ifdef NBPC
7141 # define getpagesize() NBPC
7142 # else /* no NBPC */
7143 # ifdef PAGESIZE
7144 # define getpagesize() PAGESIZE
7145 # endif /* PAGESIZE */
7146 # endif /* no NBPC */
7147 # endif /* no NBPG */
7148 # endif /* no EXEC_PAGESIZE */
7149 # else /* no HAVE_SYS_PARAM_H */
7150 # define getpagesize() 8192 /* punt totally */
7151 # endif /* no HAVE_SYS_PARAM_H */
7152 # endif /* no _SC_PAGESIZE */
7153
7154 #endif /* no HAVE_GETPAGESIZE */
7155
7156 int
7157 main ()
7158 {
7159 char *data, *data2, *data3;
7160 const char *cdata2;
7161 int i, pagesize;
7162 int fd, fd2;
7163
7164 pagesize = getpagesize ();
7165
7166 /* First, make a file with some known garbage in it. */
7167 data = (char *) malloc (pagesize);
7168 if (!data)
7169 return 1;
7170 for (i = 0; i < pagesize; ++i)
7171 *(data + i) = rand ();
7172 umask (0);
7173 fd = creat ("conftest.mmap", 0600);
7174 if (fd < 0)
7175 return 2;
7176 if (write (fd, data, pagesize) != pagesize)
7177 return 3;
7178 close (fd);
7179
7180 /* Next, check that the tail of a page is zero-filled. File must have
7181 non-zero length, otherwise we risk SIGBUS for entire page. */
7182 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7183 if (fd2 < 0)
7184 return 4;
7185 cdata2 = "";
7186 if (write (fd2, cdata2, 1) != 1)
7187 return 5;
7188 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7189 if (data2 == MAP_FAILED)
7190 return 6;
7191 for (i = 0; i < pagesize; ++i)
7192 if (*(data2 + i))
7193 return 7;
7194 close (fd2);
7195 if (munmap (data2, pagesize))
7196 return 8;
7197
7198 /* Next, try to mmap the file at a fixed address which already has
7199 something else allocated at it. If we can, also make sure that
7200 we see the same garbage. */
7201 fd = open ("conftest.mmap", O_RDWR);
7202 if (fd < 0)
7203 return 9;
7204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7206 return 10;
7207 for (i = 0; i < pagesize; ++i)
7208 if (*(data + i) != *(data2 + i))
7209 return 11;
7210
7211 /* Finally, make sure that changes to the mapped area do not
7212 percolate back to the file as seen by read(). (This is a bug on
7213 some variants of i386 svr4.0.) */
7214 for (i = 0; i < pagesize; ++i)
7215 *(data2 + i) = *(data2 + i) + 1;
7216 data3 = (char *) malloc (pagesize);
7217 if (!data3)
7218 return 12;
7219 if (read (fd, data3, pagesize) != pagesize)
7220 return 13;
7221 for (i = 0; i < pagesize; ++i)
7222 if (*(data + i) != *(data3 + i))
7223 return 14;
7224 close (fd);
7225 return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_run "$LINENO"; then :
7229 ac_cv_func_mmap_fixed_mapped=yes
7230 else
7231 ac_cv_func_mmap_fixed_mapped=no
7232 fi
7233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7234 conftest.$ac_objext conftest.beam conftest.$ac_ext
7235 fi
7236
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7239 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7241
7242 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7243
7244 fi
7245 rm -f conftest.mmap conftest.txt
7246
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7249 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7250 if ${ac_cv_gnu_library_2_1+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255
7256 #include <features.h>
7257 #ifdef __GNU_LIBRARY__
7258 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7259 Lucky GNU user
7260 #endif
7261 #endif
7262
7263 _ACEOF
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7266 ac_cv_gnu_library_2_1=yes
7267 else
7268 ac_cv_gnu_library_2_1=no
7269 fi
7270 rm -f conftest*
7271
7272
7273
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7276 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7277
7278 GLIBC21="$ac_cv_gnu_library_2_1"
7279
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7284 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7285 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288
7289 if test "$cross_compiling" = yes; then :
7290
7291 # Guess based on the CPU.
7292 case "$host_cpu" in
7293 alpha* | i3456786 | m68k | s390*)
7294 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7295 *)
7296 gt_cv_int_divbyzero_sigfpe="guessing no";;
7297 esac
7298
7299 else
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302
7303 #include <stdlib.h>
7304 #include <signal.h>
7305
7306 static void
7307 #ifdef __cplusplus
7308 sigfpe_handler (int sig)
7309 #else
7310 sigfpe_handler (sig) int sig;
7311 #endif
7312 {
7313 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7314 exit (sig != SIGFPE);
7315 }
7316
7317 int x = 1;
7318 int y = 0;
7319 int z;
7320 int nan;
7321
7322 int main ()
7323 {
7324 signal (SIGFPE, sigfpe_handler);
7325 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7326 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7327 signal (SIGTRAP, sigfpe_handler);
7328 #endif
7329 /* Linux/SPARC yields signal SIGILL. */
7330 #if defined (__sparc__) && defined (__linux__)
7331 signal (SIGILL, sigfpe_handler);
7332 #endif
7333
7334 z = x / y;
7335 nan = y / y;
7336 exit (1);
7337 }
7338
7339 _ACEOF
7340 if ac_fn_c_try_run "$LINENO"; then :
7341 gt_cv_int_divbyzero_sigfpe=yes
7342 else
7343 gt_cv_int_divbyzero_sigfpe=no
7344 fi
7345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7346 conftest.$ac_objext conftest.beam conftest.$ac_ext
7347 fi
7348
7349
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7352 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7353 case "$gt_cv_int_divbyzero_sigfpe" in
7354 *yes) value=1;;
7355 *) value=0;;
7356 esac
7357
7358 cat >>confdefs.h <<_ACEOF
7359 #define INTDIV0_RAISES_SIGFPE $value
7360 _ACEOF
7361
7362
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7365 $as_echo_n "checking for inttypes.h... " >&6; }
7366 if ${jm_ac_cv_header_inttypes_h+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 #include <sys/types.h>
7372 #include <inttypes.h>
7373 int
7374 main ()
7375 {
7376 uintmax_t i = (uintmax_t) -1;
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382 jm_ac_cv_header_inttypes_h=yes
7383 else
7384 jm_ac_cv_header_inttypes_h=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 fi
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
7389 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
7390 if test $jm_ac_cv_header_inttypes_h = yes; then
7391
7392 cat >>confdefs.h <<_ACEOF
7393 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7394 _ACEOF
7395
7396 fi
7397
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7400 $as_echo_n "checking for stdint.h... " >&6; }
7401 if ${jm_ac_cv_header_stdint_h+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <stdint.h>
7408 int
7409 main ()
7410 {
7411 uintmax_t i = (uintmax_t) -1;
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 if ac_fn_c_try_compile "$LINENO"; then :
7417 jm_ac_cv_header_stdint_h=yes
7418 else
7419 jm_ac_cv_header_stdint_h=no
7420 fi
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
7424 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
7425 if test $jm_ac_cv_header_stdint_h = yes; then
7426
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_STDINT_H_WITH_UINTMAX 1
7429 _ACEOF
7430
7431 fi
7432
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7435 $as_echo_n "checking for unsigned long long... " >&6; }
7436 if ${ac_cv_type_unsigned_long_long+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 unsigned long long ull = 1; int i = 63;
7442 int
7443 main ()
7444 {
7445 unsigned long long ullmax = (unsigned long long) -1;
7446 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7447 ;
7448 return 0;
7449 }
7450 _ACEOF
7451 if ac_fn_c_try_link "$LINENO"; then :
7452 ac_cv_type_unsigned_long_long=yes
7453 else
7454 ac_cv_type_unsigned_long_long=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7460 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7461 if test $ac_cv_type_unsigned_long_long = yes; then
7462
7463 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7464
7465 fi
7466
7467
7468
7469
7470 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7471
7472 test $ac_cv_type_unsigned_long_long = yes \
7473 && ac_type='unsigned long long' \
7474 || ac_type='unsigned long'
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define uintmax_t $ac_type
7478 _ACEOF
7479
7480 else
7481
7482 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7483
7484 fi
7485
7486
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7488 $as_echo_n "checking for inttypes.h... " >&6; }
7489 if ${gt_cv_header_inttypes_h+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <sys/types.h>
7496 #include <inttypes.h>
7497 int
7498 main ()
7499 {
7500
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 gt_cv_header_inttypes_h=yes
7507 else
7508 gt_cv_header_inttypes_h=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7514 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7515 if test $gt_cv_header_inttypes_h = yes; then
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define HAVE_INTTYPES_H 1
7519 _ACEOF
7520
7521 fi
7522
7523
7524
7525 if test $gt_cv_header_inttypes_h = yes; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7527 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7528 if ${gt_cv_inttypes_pri_broken+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #include <inttypes.h>
7535 #ifdef PRId32
7536 char *p = PRId32;
7537 #endif
7538
7539 int
7540 main ()
7541 {
7542
7543 ;
7544 return 0;
7545 }
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 gt_cv_inttypes_pri_broken=no
7549 else
7550 gt_cv_inttypes_pri_broken=yes
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7556 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7557 fi
7558 if test "$gt_cv_inttypes_pri_broken" = yes; then
7559
7560 cat >>confdefs.h <<_ACEOF
7561 #define PRI_MACROS_BROKEN 1
7562 _ACEOF
7563
7564 fi
7565
7566
7567 if test "X$prefix" = "XNONE"; then
7568 acl_final_prefix="$ac_default_prefix"
7569 else
7570 acl_final_prefix="$prefix"
7571 fi
7572 if test "X$exec_prefix" = "XNONE"; then
7573 acl_final_exec_prefix='${prefix}'
7574 else
7575 acl_final_exec_prefix="$exec_prefix"
7576 fi
7577 acl_save_prefix="$prefix"
7578 prefix="$acl_final_prefix"
7579 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7580 prefix="$acl_save_prefix"
7581
7582
7583 # Check whether --with-gnu-ld was given.
7584 if test "${with_gnu_ld+set}" = set; then :
7585 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7586 else
7587 with_gnu_ld=no
7588 fi
7589
7590 # Prepare PATH_SEPARATOR.
7591 # The user is always right.
7592 if test "${PATH_SEPARATOR+set}" != set; then
7593 echo "#! /bin/sh" >conf$$.sh
7594 echo "exit 0" >>conf$$.sh
7595 chmod +x conf$$.sh
7596 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7597 PATH_SEPARATOR=';'
7598 else
7599 PATH_SEPARATOR=:
7600 fi
7601 rm -f conf$$.sh
7602 fi
7603 ac_prog=ld
7604 if test "$GCC" = yes; then
7605 # Check if gcc -print-prog-name=ld gives a path.
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7607 $as_echo_n "checking for ld used by GCC... " >&6; }
7608 case $host in
7609 *-*-mingw*)
7610 # gcc leaves a trailing carriage return which upsets mingw
7611 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7612 *)
7613 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7614 esac
7615 case $ac_prog in
7616 # Accept absolute paths.
7617 [\\/]* | [A-Za-z]:[\\/]*)
7618 re_direlt='/[^/][^/]*/\.\./'
7619 # Canonicalize the path of ld
7620 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7621 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7622 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7623 done
7624 test -z "$LD" && LD="$ac_prog"
7625 ;;
7626 "")
7627 # If it fails, then pretend we aren't using GCC.
7628 ac_prog=ld
7629 ;;
7630 *)
7631 # If it is relative, then search for the first ld in PATH.
7632 with_gnu_ld=unknown
7633 ;;
7634 esac
7635 elif test "$with_gnu_ld" = yes; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7637 $as_echo_n "checking for GNU ld... " >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7640 $as_echo_n "checking for non-GNU ld... " >&6; }
7641 fi
7642 if ${acl_cv_path_LD+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -z "$LD"; then
7646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7647 for ac_dir in $PATH; do
7648 test -z "$ac_dir" && ac_dir=.
7649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7650 acl_cv_path_LD="$ac_dir/$ac_prog"
7651 # Check to see if the program is GNU ld. I'd rather use --version,
7652 # but apparently some GNU ld's only accept -v.
7653 # Break only if it was the GNU/non-GNU ld that we prefer.
7654 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7655 test "$with_gnu_ld" != no && break
7656 else
7657 test "$with_gnu_ld" != yes && break
7658 fi
7659 fi
7660 done
7661 IFS="$ac_save_ifs"
7662 else
7663 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7664 fi
7665 fi
7666
7667 LD="$acl_cv_path_LD"
7668 if test -n "$LD"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7670 $as_echo "$LD" >&6; }
7671 else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7677 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7678 if ${acl_cv_prog_gnu_ld+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7682 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7683 acl_cv_prog_gnu_ld=yes
7684 else
7685 acl_cv_prog_gnu_ld=no
7686 fi
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7689 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7690 with_gnu_ld=$acl_cv_prog_gnu_ld
7691
7692
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7695 $as_echo_n "checking for shared library run path origin... " >&6; }
7696 if ${acl_cv_rpath+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699
7700 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7701 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7702 . ./conftest.sh
7703 rm -f ./conftest.sh
7704 acl_cv_rpath=done
7705
7706 fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7708 $as_echo "$acl_cv_rpath" >&6; }
7709 wl="$acl_cv_wl"
7710 libext="$acl_cv_libext"
7711 shlibext="$acl_cv_shlibext"
7712 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7713 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7714 hardcode_direct="$acl_cv_hardcode_direct"
7715 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7716 # Check whether --enable-rpath was given.
7717 if test "${enable_rpath+set}" = set; then :
7718 enableval=$enable_rpath; :
7719 else
7720 enable_rpath=yes
7721 fi
7722
7723
7724
7725
7726
7727
7728
7729
7730 use_additional=yes
7731
7732 acl_save_prefix="$prefix"
7733 prefix="$acl_final_prefix"
7734 acl_save_exec_prefix="$exec_prefix"
7735 exec_prefix="$acl_final_exec_prefix"
7736
7737 eval additional_includedir=\"$includedir\"
7738 eval additional_libdir=\"$libdir\"
7739
7740 exec_prefix="$acl_save_exec_prefix"
7741 prefix="$acl_save_prefix"
7742
7743
7744 # Check whether --with-libiconv-prefix was given.
7745 if test "${with_libiconv_prefix+set}" = set; then :
7746 withval=$with_libiconv_prefix;
7747 if test "X$withval" = "Xno"; then
7748 use_additional=no
7749 else
7750 if test "X$withval" = "X"; then
7751
7752 acl_save_prefix="$prefix"
7753 prefix="$acl_final_prefix"
7754 acl_save_exec_prefix="$exec_prefix"
7755 exec_prefix="$acl_final_exec_prefix"
7756
7757 eval additional_includedir=\"$includedir\"
7758 eval additional_libdir=\"$libdir\"
7759
7760 exec_prefix="$acl_save_exec_prefix"
7761 prefix="$acl_save_prefix"
7762
7763 else
7764 additional_includedir="$withval/include"
7765 additional_libdir="$withval/lib"
7766 fi
7767 fi
7768
7769 fi
7770
7771 LIBICONV=
7772 LTLIBICONV=
7773 INCICONV=
7774 rpathdirs=
7775 ltrpathdirs=
7776 names_already_handled=
7777 names_next_round='iconv '
7778 while test -n "$names_next_round"; do
7779 names_this_round="$names_next_round"
7780 names_next_round=
7781 for name in $names_this_round; do
7782 already_handled=
7783 for n in $names_already_handled; do
7784 if test "$n" = "$name"; then
7785 already_handled=yes
7786 break
7787 fi
7788 done
7789 if test -z "$already_handled"; then
7790 names_already_handled="$names_already_handled $name"
7791 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7792 eval value=\"\$HAVE_LIB$uppername\"
7793 if test -n "$value"; then
7794 if test "$value" = yes; then
7795 eval value=\"\$LIB$uppername\"
7796 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7797 eval value=\"\$LTLIB$uppername\"
7798 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7799 else
7800 :
7801 fi
7802 else
7803 found_dir=
7804 found_la=
7805 found_so=
7806 found_a=
7807 if test $use_additional = yes; then
7808 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7809 found_dir="$additional_libdir"
7810 found_so="$additional_libdir/lib$name.$shlibext"
7811 if test -f "$additional_libdir/lib$name.la"; then
7812 found_la="$additional_libdir/lib$name.la"
7813 fi
7814 else
7815 if test -f "$additional_libdir/lib$name.$libext"; then
7816 found_dir="$additional_libdir"
7817 found_a="$additional_libdir/lib$name.$libext"
7818 if test -f "$additional_libdir/lib$name.la"; then
7819 found_la="$additional_libdir/lib$name.la"
7820 fi
7821 fi
7822 fi
7823 fi
7824 if test "X$found_dir" = "X"; then
7825 for x in $LDFLAGS $LTLIBICONV; do
7826
7827 acl_save_prefix="$prefix"
7828 prefix="$acl_final_prefix"
7829 acl_save_exec_prefix="$exec_prefix"
7830 exec_prefix="$acl_final_exec_prefix"
7831 eval x=\"$x\"
7832 exec_prefix="$acl_save_exec_prefix"
7833 prefix="$acl_save_prefix"
7834
7835 case "$x" in
7836 -L*)
7837 dir=`echo "X$x" | sed -e 's/^X-L//'`
7838 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7839 found_dir="$dir"
7840 found_so="$dir/lib$name.$shlibext"
7841 if test -f "$dir/lib$name.la"; then
7842 found_la="$dir/lib$name.la"
7843 fi
7844 else
7845 if test -f "$dir/lib$name.$libext"; then
7846 found_dir="$dir"
7847 found_a="$dir/lib$name.$libext"
7848 if test -f "$dir/lib$name.la"; then
7849 found_la="$dir/lib$name.la"
7850 fi
7851 fi
7852 fi
7853 ;;
7854 esac
7855 if test "X$found_dir" != "X"; then
7856 break
7857 fi
7858 done
7859 fi
7860 if test "X$found_dir" != "X"; then
7861 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7862 if test "X$found_so" != "X"; then
7863 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7864 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7865 else
7866 haveit=
7867 for x in $ltrpathdirs; do
7868 if test "X$x" = "X$found_dir"; then
7869 haveit=yes
7870 break
7871 fi
7872 done
7873 if test -z "$haveit"; then
7874 ltrpathdirs="$ltrpathdirs $found_dir"
7875 fi
7876 if test "$hardcode_direct" = yes; then
7877 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7878 else
7879 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7880 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7881 haveit=
7882 for x in $rpathdirs; do
7883 if test "X$x" = "X$found_dir"; then
7884 haveit=yes
7885 break
7886 fi
7887 done
7888 if test -z "$haveit"; then
7889 rpathdirs="$rpathdirs $found_dir"
7890 fi
7891 else
7892 haveit=
7893 for x in $LDFLAGS $LIBICONV; do
7894
7895 acl_save_prefix="$prefix"
7896 prefix="$acl_final_prefix"
7897 acl_save_exec_prefix="$exec_prefix"
7898 exec_prefix="$acl_final_exec_prefix"
7899 eval x=\"$x\"
7900 exec_prefix="$acl_save_exec_prefix"
7901 prefix="$acl_save_prefix"
7902
7903 if test "X$x" = "X-L$found_dir"; then
7904 haveit=yes
7905 break
7906 fi
7907 done
7908 if test -z "$haveit"; then
7909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7910 fi
7911 if test "$hardcode_minus_L" != no; then
7912 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7913 else
7914 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7915 fi
7916 fi
7917 fi
7918 fi
7919 else
7920 if test "X$found_a" != "X"; then
7921 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7922 else
7923 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7924 fi
7925 fi
7926 additional_includedir=
7927 case "$found_dir" in
7928 */lib | */lib/)
7929 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7930 additional_includedir="$basedir/include"
7931 ;;
7932 esac
7933 if test "X$additional_includedir" != "X"; then
7934 if test "X$additional_includedir" != "X/usr/include"; then
7935 haveit=
7936 if test "X$additional_includedir" = "X/usr/local/include"; then
7937 if test -n "$GCC"; then
7938 case $host_os in
7939 linux*) haveit=yes;;
7940 esac
7941 fi
7942 fi
7943 if test -z "$haveit"; then
7944 for x in $CPPFLAGS $INCICONV; do
7945
7946 acl_save_prefix="$prefix"
7947 prefix="$acl_final_prefix"
7948 acl_save_exec_prefix="$exec_prefix"
7949 exec_prefix="$acl_final_exec_prefix"
7950 eval x=\"$x\"
7951 exec_prefix="$acl_save_exec_prefix"
7952 prefix="$acl_save_prefix"
7953
7954 if test "X$x" = "X-I$additional_includedir"; then
7955 haveit=yes
7956 break
7957 fi
7958 done
7959 if test -z "$haveit"; then
7960 if test -d "$additional_includedir"; then
7961 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7962 fi
7963 fi
7964 fi
7965 fi
7966 fi
7967 if test -n "$found_la"; then
7968 save_libdir="$libdir"
7969 case "$found_la" in
7970 */* | *\\*) . "$found_la" ;;
7971 *) . "./$found_la" ;;
7972 esac
7973 libdir="$save_libdir"
7974 for dep in $dependency_libs; do
7975 case "$dep" in
7976 -L*)
7977 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7978 if test "X$additional_libdir" != "X/usr/lib"; then
7979 haveit=
7980 if test "X$additional_libdir" = "X/usr/local/lib"; then
7981 if test -n "$GCC"; then
7982 case $host_os in
7983 linux*) haveit=yes;;
7984 esac
7985 fi
7986 fi
7987 if test -z "$haveit"; then
7988 haveit=
7989 for x in $LDFLAGS $LIBICONV; do
7990
7991 acl_save_prefix="$prefix"
7992 prefix="$acl_final_prefix"
7993 acl_save_exec_prefix="$exec_prefix"
7994 exec_prefix="$acl_final_exec_prefix"
7995 eval x=\"$x\"
7996 exec_prefix="$acl_save_exec_prefix"
7997 prefix="$acl_save_prefix"
7998
7999 if test "X$x" = "X-L$additional_libdir"; then
8000 haveit=yes
8001 break
8002 fi
8003 done
8004 if test -z "$haveit"; then
8005 if test -d "$additional_libdir"; then
8006 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8007 fi
8008 fi
8009 haveit=
8010 for x in $LDFLAGS $LTLIBICONV; do
8011
8012 acl_save_prefix="$prefix"
8013 prefix="$acl_final_prefix"
8014 acl_save_exec_prefix="$exec_prefix"
8015 exec_prefix="$acl_final_exec_prefix"
8016 eval x=\"$x\"
8017 exec_prefix="$acl_save_exec_prefix"
8018 prefix="$acl_save_prefix"
8019
8020 if test "X$x" = "X-L$additional_libdir"; then
8021 haveit=yes
8022 break
8023 fi
8024 done
8025 if test -z "$haveit"; then
8026 if test -d "$additional_libdir"; then
8027 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8028 fi
8029 fi
8030 fi
8031 fi
8032 ;;
8033 -R*)
8034 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8035 if test "$enable_rpath" != no; then
8036 haveit=
8037 for x in $rpathdirs; do
8038 if test "X$x" = "X$dir"; then
8039 haveit=yes
8040 break
8041 fi
8042 done
8043 if test -z "$haveit"; then
8044 rpathdirs="$rpathdirs $dir"
8045 fi
8046 haveit=
8047 for x in $ltrpathdirs; do
8048 if test "X$x" = "X$dir"; then
8049 haveit=yes
8050 break
8051 fi
8052 done
8053 if test -z "$haveit"; then
8054 ltrpathdirs="$ltrpathdirs $dir"
8055 fi
8056 fi
8057 ;;
8058 -l*)
8059 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8060 ;;
8061 *.la)
8062 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8063 ;;
8064 *)
8065 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8066 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8067 ;;
8068 esac
8069 done
8070 fi
8071 else
8072 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8074 fi
8075 fi
8076 fi
8077 done
8078 done
8079 if test "X$rpathdirs" != "X"; then
8080 if test -n "$hardcode_libdir_separator"; then
8081 alldirs=
8082 for found_dir in $rpathdirs; do
8083 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8084 done
8085 acl_save_libdir="$libdir"
8086 libdir="$alldirs"
8087 eval flag=\"$hardcode_libdir_flag_spec\"
8088 libdir="$acl_save_libdir"
8089 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8090 else
8091 for found_dir in $rpathdirs; do
8092 acl_save_libdir="$libdir"
8093 libdir="$found_dir"
8094 eval flag=\"$hardcode_libdir_flag_spec\"
8095 libdir="$acl_save_libdir"
8096 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8097 done
8098 fi
8099 fi
8100 if test "X$ltrpathdirs" != "X"; then
8101 for found_dir in $ltrpathdirs; do
8102 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8103 done
8104 fi
8105
8106
8107
8108
8109 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8110 stdlib.h string.h unistd.h sys/param.h
8111 do :
8112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8115 cat >>confdefs.h <<_ACEOF
8116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8117 _ACEOF
8118
8119 fi
8120
8121 done
8122
8123 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8124 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
8125 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8126 __fsetlocking
8127 do :
8128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8131 cat >>confdefs.h <<_ACEOF
8132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8133 _ACEOF
8134
8135 fi
8136 done
8137
8138
8139
8140
8141
8142
8143
8144 am_save_CPPFLAGS="$CPPFLAGS"
8145
8146 for element in $INCICONV; do
8147 haveit=
8148 for x in $CPPFLAGS; do
8149
8150 acl_save_prefix="$prefix"
8151 prefix="$acl_final_prefix"
8152 acl_save_exec_prefix="$exec_prefix"
8153 exec_prefix="$acl_final_exec_prefix"
8154 eval x=\"$x\"
8155 exec_prefix="$acl_save_exec_prefix"
8156 prefix="$acl_save_prefix"
8157
8158 if test "X$x" = "X$element"; then
8159 haveit=yes
8160 break
8161 fi
8162 done
8163 if test -z "$haveit"; then
8164 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8165 fi
8166 done
8167
8168
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8170 $as_echo_n "checking for iconv... " >&6; }
8171 if ${am_cv_func_iconv+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174
8175 am_cv_func_iconv="no, consider installing GNU libiconv"
8176 am_cv_lib_iconv=no
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #include <stdlib.h>
8180 #include <iconv.h>
8181 int
8182 main ()
8183 {
8184 iconv_t cd = iconv_open("","");
8185 iconv(cd,NULL,NULL,NULL,NULL);
8186 iconv_close(cd);
8187 ;
8188 return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 am_cv_func_iconv=yes
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 if test "$am_cv_func_iconv" != yes; then
8197 am_save_LIBS="$LIBS"
8198 LIBS="$LIBS $LIBICONV"
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <stdlib.h>
8202 #include <iconv.h>
8203 int
8204 main ()
8205 {
8206 iconv_t cd = iconv_open("","");
8207 iconv(cd,NULL,NULL,NULL,NULL);
8208 iconv_close(cd);
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_link "$LINENO"; then :
8214 am_cv_lib_iconv=yes
8215 am_cv_func_iconv=yes
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 LIBS="$am_save_LIBS"
8220 fi
8221
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8224 $as_echo "$am_cv_func_iconv" >&6; }
8225 if test "$am_cv_func_iconv" = yes; then
8226
8227 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8228
8229 fi
8230 if test "$am_cv_lib_iconv" = yes; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8232 $as_echo_n "checking how to link with libiconv... " >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8234 $as_echo "$LIBICONV" >&6; }
8235 else
8236 CPPFLAGS="$am_save_CPPFLAGS"
8237 LIBICONV=
8238 LTLIBICONV=
8239 fi
8240
8241
8242
8243 if test "$am_cv_func_iconv" = yes; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8245 $as_echo_n "checking for iconv declaration... " >&6; }
8246 if ${am_cv_proto_iconv+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252
8253 #include <stdlib.h>
8254 #include <iconv.h>
8255 extern
8256 #ifdef __cplusplus
8257 "C"
8258 #endif
8259 #if defined(__STDC__) || defined(__cplusplus)
8260 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8261 #else
8262 size_t iconv();
8263 #endif
8264
8265 int
8266 main ()
8267 {
8268
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274 am_cv_proto_iconv_arg1=""
8275 else
8276 am_cv_proto_iconv_arg1="const"
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 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);"
8280 fi
8281
8282 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8284 }$am_cv_proto_iconv" >&5
8285 $as_echo "${ac_t:-
8286 }$am_cv_proto_iconv" >&6; }
8287
8288 cat >>confdefs.h <<_ACEOF
8289 #define ICONV_CONST $am_cv_proto_iconv_arg1
8290 _ACEOF
8291
8292 fi
8293
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8296 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8297 if ${am_cv_langinfo_codeset+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 #include <langinfo.h>
8303 int
8304 main ()
8305 {
8306 char* cs = nl_langinfo(CODESET);
8307 ;
8308 return 0;
8309 }
8310 _ACEOF
8311 if ac_fn_c_try_link "$LINENO"; then :
8312 am_cv_langinfo_codeset=yes
8313 else
8314 am_cv_langinfo_codeset=no
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8321 $as_echo "$am_cv_langinfo_codeset" >&6; }
8322 if test $am_cv_langinfo_codeset = yes; then
8323
8324 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8325
8326 fi
8327
8328 if test $ac_cv_header_locale_h = yes; then
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8331 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8332 if ${am_cv_val_LC_MESSAGES+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #include <locale.h>
8338 int
8339 main ()
8340 {
8341 return LC_MESSAGES
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 am_cv_val_LC_MESSAGES=yes
8348 else
8349 am_cv_val_LC_MESSAGES=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8355 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8356 if test $am_cv_val_LC_MESSAGES = yes; then
8357
8358 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8359
8360 fi
8361
8362 fi
8363
8364 for ac_prog in bison
8365 do
8366 # Extract the first word of "$ac_prog", so it can be a program name with args.
8367 set dummy $ac_prog; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if ${ac_cv_prog_INTLBISON+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 if test -n "$INTLBISON"; then
8374 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_INTLBISON="$ac_prog"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387 done
8388 done
8389 IFS=$as_save_IFS
8390
8391 fi
8392 fi
8393 INTLBISON=$ac_cv_prog_INTLBISON
8394 if test -n "$INTLBISON"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8396 $as_echo "$INTLBISON" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402
8403 test -n "$INTLBISON" && break
8404 done
8405
8406 if test -z "$INTLBISON"; then
8407 ac_verc_fail=yes
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8410 $as_echo_n "checking version of bison... " >&6; }
8411 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8412 case $ac_prog_version in
8413 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8414 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8415 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8416 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8417 esac
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8419 $as_echo "$ac_prog_version" >&6; }
8420 fi
8421 if test $ac_verc_fail = yes; then
8422 INTLBISON=:
8423 fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8441 $as_echo_n "checking whether NLS is requested... " >&6; }
8442 # Check whether --enable-nls was given.
8443 if test "${enable_nls+set}" = set; then :
8444 enableval=$enable_nls; USE_NLS=$enableval
8445 else
8446 USE_NLS=yes
8447 fi
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8450 $as_echo "$USE_NLS" >&6; }
8451
8452
8453
8454
8455 BUILD_INCLUDED_LIBINTL=no
8456 USE_INCLUDED_LIBINTL=no
8457
8458 LIBINTL=
8459 LTLIBINTL=
8460 POSUB=
8461
8462 if test "$USE_NLS" = "yes"; then
8463 gt_use_preinstalled_gnugettext=no
8464
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8466 $as_echo_n "checking whether included gettext is requested... " >&6; }
8467
8468 # Check whether --with-included-gettext was given.
8469 if test "${with_included_gettext+set}" = set; then :
8470 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8471 else
8472 nls_cv_force_use_gnu_gettext=no
8473 fi
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8476 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8477
8478 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8479 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8480
8481
8482
8483
8484
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8487 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8488 if ${gt_cv_func_gnugettext2_libc+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #include <libintl.h>
8494 extern int _nl_msg_cat_cntr;
8495 extern int *_nl_domain_bindings;
8496 int
8497 main ()
8498 {
8499 bindtextdomain ("", "");
8500 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 gt_cv_func_gnugettext2_libc=yes
8507 else
8508 gt_cv_func_gnugettext2_libc=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
8514 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
8515
8516 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8517
8518
8519
8520 use_additional=yes
8521
8522 acl_save_prefix="$prefix"
8523 prefix="$acl_final_prefix"
8524 acl_save_exec_prefix="$exec_prefix"
8525 exec_prefix="$acl_final_exec_prefix"
8526
8527 eval additional_includedir=\"$includedir\"
8528 eval additional_libdir=\"$libdir\"
8529
8530 exec_prefix="$acl_save_exec_prefix"
8531 prefix="$acl_save_prefix"
8532
8533
8534 # Check whether --with-libintl-prefix was given.
8535 if test "${with_libintl_prefix+set}" = set; then :
8536 withval=$with_libintl_prefix;
8537 if test "X$withval" = "Xno"; then
8538 use_additional=no
8539 else
8540 if test "X$withval" = "X"; then
8541
8542 acl_save_prefix="$prefix"
8543 prefix="$acl_final_prefix"
8544 acl_save_exec_prefix="$exec_prefix"
8545 exec_prefix="$acl_final_exec_prefix"
8546
8547 eval additional_includedir=\"$includedir\"
8548 eval additional_libdir=\"$libdir\"
8549
8550 exec_prefix="$acl_save_exec_prefix"
8551 prefix="$acl_save_prefix"
8552
8553 else
8554 additional_includedir="$withval/include"
8555 additional_libdir="$withval/lib"
8556 fi
8557 fi
8558
8559 fi
8560
8561 LIBINTL=
8562 LTLIBINTL=
8563 INCINTL=
8564 rpathdirs=
8565 ltrpathdirs=
8566 names_already_handled=
8567 names_next_round='intl '
8568 while test -n "$names_next_round"; do
8569 names_this_round="$names_next_round"
8570 names_next_round=
8571 for name in $names_this_round; do
8572 already_handled=
8573 for n in $names_already_handled; do
8574 if test "$n" = "$name"; then
8575 already_handled=yes
8576 break
8577 fi
8578 done
8579 if test -z "$already_handled"; then
8580 names_already_handled="$names_already_handled $name"
8581 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8582 eval value=\"\$HAVE_LIB$uppername\"
8583 if test -n "$value"; then
8584 if test "$value" = yes; then
8585 eval value=\"\$LIB$uppername\"
8586 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8587 eval value=\"\$LTLIB$uppername\"
8588 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8589 else
8590 :
8591 fi
8592 else
8593 found_dir=
8594 found_la=
8595 found_so=
8596 found_a=
8597 if test $use_additional = yes; then
8598 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8599 found_dir="$additional_libdir"
8600 found_so="$additional_libdir/lib$name.$shlibext"
8601 if test -f "$additional_libdir/lib$name.la"; then
8602 found_la="$additional_libdir/lib$name.la"
8603 fi
8604 else
8605 if test -f "$additional_libdir/lib$name.$libext"; then
8606 found_dir="$additional_libdir"
8607 found_a="$additional_libdir/lib$name.$libext"
8608 if test -f "$additional_libdir/lib$name.la"; then
8609 found_la="$additional_libdir/lib$name.la"
8610 fi
8611 fi
8612 fi
8613 fi
8614 if test "X$found_dir" = "X"; then
8615 for x in $LDFLAGS $LTLIBINTL; do
8616
8617 acl_save_prefix="$prefix"
8618 prefix="$acl_final_prefix"
8619 acl_save_exec_prefix="$exec_prefix"
8620 exec_prefix="$acl_final_exec_prefix"
8621 eval x=\"$x\"
8622 exec_prefix="$acl_save_exec_prefix"
8623 prefix="$acl_save_prefix"
8624
8625 case "$x" in
8626 -L*)
8627 dir=`echo "X$x" | sed -e 's/^X-L//'`
8628 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8629 found_dir="$dir"
8630 found_so="$dir/lib$name.$shlibext"
8631 if test -f "$dir/lib$name.la"; then
8632 found_la="$dir/lib$name.la"
8633 fi
8634 else
8635 if test -f "$dir/lib$name.$libext"; then
8636 found_dir="$dir"
8637 found_a="$dir/lib$name.$libext"
8638 if test -f "$dir/lib$name.la"; then
8639 found_la="$dir/lib$name.la"
8640 fi
8641 fi
8642 fi
8643 ;;
8644 esac
8645 if test "X$found_dir" != "X"; then
8646 break
8647 fi
8648 done
8649 fi
8650 if test "X$found_dir" != "X"; then
8651 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8652 if test "X$found_so" != "X"; then
8653 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8654 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8655 else
8656 haveit=
8657 for x in $ltrpathdirs; do
8658 if test "X$x" = "X$found_dir"; then
8659 haveit=yes
8660 break
8661 fi
8662 done
8663 if test -z "$haveit"; then
8664 ltrpathdirs="$ltrpathdirs $found_dir"
8665 fi
8666 if test "$hardcode_direct" = yes; then
8667 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8668 else
8669 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8670 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8671 haveit=
8672 for x in $rpathdirs; do
8673 if test "X$x" = "X$found_dir"; then
8674 haveit=yes
8675 break
8676 fi
8677 done
8678 if test -z "$haveit"; then
8679 rpathdirs="$rpathdirs $found_dir"
8680 fi
8681 else
8682 haveit=
8683 for x in $LDFLAGS $LIBINTL; do
8684
8685 acl_save_prefix="$prefix"
8686 prefix="$acl_final_prefix"
8687 acl_save_exec_prefix="$exec_prefix"
8688 exec_prefix="$acl_final_exec_prefix"
8689 eval x=\"$x\"
8690 exec_prefix="$acl_save_exec_prefix"
8691 prefix="$acl_save_prefix"
8692
8693 if test "X$x" = "X-L$found_dir"; then
8694 haveit=yes
8695 break
8696 fi
8697 done
8698 if test -z "$haveit"; then
8699 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8700 fi
8701 if test "$hardcode_minus_L" != no; then
8702 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8703 else
8704 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8705 fi
8706 fi
8707 fi
8708 fi
8709 else
8710 if test "X$found_a" != "X"; then
8711 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8712 else
8713 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8714 fi
8715 fi
8716 additional_includedir=
8717 case "$found_dir" in
8718 */lib | */lib/)
8719 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8720 additional_includedir="$basedir/include"
8721 ;;
8722 esac
8723 if test "X$additional_includedir" != "X"; then
8724 if test "X$additional_includedir" != "X/usr/include"; then
8725 haveit=
8726 if test "X$additional_includedir" = "X/usr/local/include"; then
8727 if test -n "$GCC"; then
8728 case $host_os in
8729 linux*) haveit=yes;;
8730 esac
8731 fi
8732 fi
8733 if test -z "$haveit"; then
8734 for x in $CPPFLAGS $INCINTL; do
8735
8736 acl_save_prefix="$prefix"
8737 prefix="$acl_final_prefix"
8738 acl_save_exec_prefix="$exec_prefix"
8739 exec_prefix="$acl_final_exec_prefix"
8740 eval x=\"$x\"
8741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8743
8744 if test "X$x" = "X-I$additional_includedir"; then
8745 haveit=yes
8746 break
8747 fi
8748 done
8749 if test -z "$haveit"; then
8750 if test -d "$additional_includedir"; then
8751 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8752 fi
8753 fi
8754 fi
8755 fi
8756 fi
8757 if test -n "$found_la"; then
8758 save_libdir="$libdir"
8759 case "$found_la" in
8760 */* | *\\*) . "$found_la" ;;
8761 *) . "./$found_la" ;;
8762 esac
8763 libdir="$save_libdir"
8764 for dep in $dependency_libs; do
8765 case "$dep" in
8766 -L*)
8767 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8768 if test "X$additional_libdir" != "X/usr/lib"; then
8769 haveit=
8770 if test "X$additional_libdir" = "X/usr/local/lib"; then
8771 if test -n "$GCC"; then
8772 case $host_os in
8773 linux*) haveit=yes;;
8774 esac
8775 fi
8776 fi
8777 if test -z "$haveit"; then
8778 haveit=
8779 for x in $LDFLAGS $LIBINTL; do
8780
8781 acl_save_prefix="$prefix"
8782 prefix="$acl_final_prefix"
8783 acl_save_exec_prefix="$exec_prefix"
8784 exec_prefix="$acl_final_exec_prefix"
8785 eval x=\"$x\"
8786 exec_prefix="$acl_save_exec_prefix"
8787 prefix="$acl_save_prefix"
8788
8789 if test "X$x" = "X-L$additional_libdir"; then
8790 haveit=yes
8791 break
8792 fi
8793 done
8794 if test -z "$haveit"; then
8795 if test -d "$additional_libdir"; then
8796 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8797 fi
8798 fi
8799 haveit=
8800 for x in $LDFLAGS $LTLIBINTL; do
8801
8802 acl_save_prefix="$prefix"
8803 prefix="$acl_final_prefix"
8804 acl_save_exec_prefix="$exec_prefix"
8805 exec_prefix="$acl_final_exec_prefix"
8806 eval x=\"$x\"
8807 exec_prefix="$acl_save_exec_prefix"
8808 prefix="$acl_save_prefix"
8809
8810 if test "X$x" = "X-L$additional_libdir"; then
8811 haveit=yes
8812 break
8813 fi
8814 done
8815 if test -z "$haveit"; then
8816 if test -d "$additional_libdir"; then
8817 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8818 fi
8819 fi
8820 fi
8821 fi
8822 ;;
8823 -R*)
8824 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8825 if test "$enable_rpath" != no; then
8826 haveit=
8827 for x in $rpathdirs; do
8828 if test "X$x" = "X$dir"; then
8829 haveit=yes
8830 break
8831 fi
8832 done
8833 if test -z "$haveit"; then
8834 rpathdirs="$rpathdirs $dir"
8835 fi
8836 haveit=
8837 for x in $ltrpathdirs; do
8838 if test "X$x" = "X$dir"; then
8839 haveit=yes
8840 break
8841 fi
8842 done
8843 if test -z "$haveit"; then
8844 ltrpathdirs="$ltrpathdirs $dir"
8845 fi
8846 fi
8847 ;;
8848 -l*)
8849 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8850 ;;
8851 *.la)
8852 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8853 ;;
8854 *)
8855 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8856 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8857 ;;
8858 esac
8859 done
8860 fi
8861 else
8862 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8863 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8864 fi
8865 fi
8866 fi
8867 done
8868 done
8869 if test "X$rpathdirs" != "X"; then
8870 if test -n "$hardcode_libdir_separator"; then
8871 alldirs=
8872 for found_dir in $rpathdirs; do
8873 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8874 done
8875 acl_save_libdir="$libdir"
8876 libdir="$alldirs"
8877 eval flag=\"$hardcode_libdir_flag_spec\"
8878 libdir="$acl_save_libdir"
8879 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8880 else
8881 for found_dir in $rpathdirs; do
8882 acl_save_libdir="$libdir"
8883 libdir="$found_dir"
8884 eval flag=\"$hardcode_libdir_flag_spec\"
8885 libdir="$acl_save_libdir"
8886 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8887 done
8888 fi
8889 fi
8890 if test "X$ltrpathdirs" != "X"; then
8891 for found_dir in $ltrpathdirs; do
8892 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8893 done
8894 fi
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8897 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8898 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 gt_save_CPPFLAGS="$CPPFLAGS"
8902 CPPFLAGS="$CPPFLAGS $INCINTL"
8903 gt_save_LIBS="$LIBS"
8904 LIBS="$LIBS $LIBINTL"
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #include <libintl.h>
8908 extern int _nl_msg_cat_cntr;
8909 extern
8910 #ifdef __cplusplus
8911 "C"
8912 #endif
8913 const char *_nl_expand_alias ();
8914 int
8915 main ()
8916 {
8917 bindtextdomain ("", "");
8918 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 gt_cv_func_gnugettext2_libintl=yes
8925 else
8926 gt_cv_func_gnugettext2_libintl=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8931 LIBS="$LIBS $LIBICONV"
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934 #include <libintl.h>
8935 extern int _nl_msg_cat_cntr;
8936 extern
8937 #ifdef __cplusplus
8938 "C"
8939 #endif
8940 const char *_nl_expand_alias ();
8941 int
8942 main ()
8943 {
8944 bindtextdomain ("", "");
8945 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8946 ;
8947 return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_link "$LINENO"; then :
8951 LIBINTL="$LIBINTL $LIBICONV"
8952 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8953 gt_cv_func_gnugettext2_libintl=yes
8954
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8958 fi
8959 CPPFLAGS="$gt_save_CPPFLAGS"
8960 LIBS="$gt_save_LIBS"
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
8963 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
8964 fi
8965
8966 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8967 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8968 && test "$PACKAGE" != gettext-runtime \
8969 && test "$PACKAGE" != gettext-tools; }; then
8970 gt_use_preinstalled_gnugettext=yes
8971 else
8972 LIBINTL=
8973 LTLIBINTL=
8974 INCINTL=
8975 fi
8976
8977
8978 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8979 nls_cv_use_gnu_gettext=yes
8980 fi
8981 fi
8982
8983 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8984 BUILD_INCLUDED_LIBINTL=yes
8985 USE_INCLUDED_LIBINTL=yes
8986 LIBINTL="lib/intl/libintl.a $LIBICONV"
8987 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
8988 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8989 fi
8990
8991 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8992 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8993 CATOBJEXT=.gmo
8994 fi
8995
8996
8997 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8998 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8999
9000 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9001
9002 else
9003 USE_NLS=no
9004 fi
9005 fi
9006
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9008 $as_echo_n "checking whether to use NLS... " >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9010 $as_echo "$USE_NLS" >&6; }
9011 if test "$USE_NLS" = "yes"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9013 $as_echo_n "checking where the gettext function comes from... " >&6; }
9014 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9015 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9016 gt_source="external libintl"
9017 else
9018 gt_source="libc"
9019 fi
9020 else
9021 gt_source="included intl directory"
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9024 $as_echo "$gt_source" >&6; }
9025 fi
9026
9027 if test "$USE_NLS" = "yes"; then
9028
9029 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9030 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9032 $as_echo_n "checking how to link with libintl... " >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9034 $as_echo "$LIBINTL" >&6; }
9035
9036 for element in $INCINTL; do
9037 haveit=
9038 for x in $CPPFLAGS; do
9039
9040 acl_save_prefix="$prefix"
9041 prefix="$acl_final_prefix"
9042 acl_save_exec_prefix="$exec_prefix"
9043 exec_prefix="$acl_final_exec_prefix"
9044 eval x=\"$x\"
9045 exec_prefix="$acl_save_exec_prefix"
9046 prefix="$acl_save_prefix"
9047
9048 if test "X$x" = "X$element"; then
9049 haveit=yes
9050 break
9051 fi
9052 done
9053 if test -z "$haveit"; then
9054 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9055 fi
9056 done
9057
9058 fi
9059
9060
9061 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9062
9063
9064 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9065
9066 fi
9067
9068 POSUB=po
9069 fi
9070
9071
9072 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9073 BUILD_INCLUDED_LIBINTL=yes
9074 fi
9075
9076
9077
9078
9079
9080 nls_cv_header_intl=
9081 nls_cv_header_libgt=
9082
9083 DATADIRNAME=share
9084
9085
9086 INSTOBJEXT=.mo
9087
9088
9089 GENCAT=gencat
9090
9091
9092 if test "$USE_INCLUDED_LIBINTL" = yes; then
9093 INTLOBJS="\$(GETTOBJS)"
9094 fi
9095
9096
9097 INTL_LIBTOOL_SUFFIX_PREFIX=
9098
9099
9100
9101 INTLLIBS="$LIBINTL"
9102
9103
9104
9105
9106
9107
9108
9109 ac_header_dirent=no
9110 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9111 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9113 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9114 if eval \${$as_ac_Header+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #include <sys/types.h>
9120 #include <$ac_hdr>
9121
9122 int
9123 main ()
9124 {
9125 if ((DIR *) 0)
9126 return 0;
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_compile "$LINENO"; then :
9132 eval "$as_ac_Header=yes"
9133 else
9134 eval "$as_ac_Header=no"
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 fi
9138 eval ac_res=\$$as_ac_Header
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9140 $as_echo "$ac_res" >&6; }
9141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9142 cat >>confdefs.h <<_ACEOF
9143 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9144 _ACEOF
9145
9146 ac_header_dirent=$ac_hdr; break
9147 fi
9148
9149 done
9150 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9151 if test $ac_header_dirent = dirent.h; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9153 $as_echo_n "checking for library containing opendir... " >&6; }
9154 if ${ac_cv_search_opendir+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 ac_func_search_save_LIBS=$LIBS
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9164 #ifdef __cplusplus
9165 extern "C"
9166 #endif
9167 char opendir ();
9168 int
9169 main ()
9170 {
9171 return opendir ();
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 for ac_lib in '' dir; do
9177 if test -z "$ac_lib"; then
9178 ac_res="none required"
9179 else
9180 ac_res=-l$ac_lib
9181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9182 fi
9183 if ac_fn_c_try_link "$LINENO"; then :
9184 ac_cv_search_opendir=$ac_res
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext
9188 if ${ac_cv_search_opendir+:} false; then :
9189 break
9190 fi
9191 done
9192 if ${ac_cv_search_opendir+:} false; then :
9193
9194 else
9195 ac_cv_search_opendir=no
9196 fi
9197 rm conftest.$ac_ext
9198 LIBS=$ac_func_search_save_LIBS
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9201 $as_echo "$ac_cv_search_opendir" >&6; }
9202 ac_res=$ac_cv_search_opendir
9203 if test "$ac_res" != no; then :
9204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9205
9206 fi
9207
9208 else
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9210 $as_echo_n "checking for library containing opendir... " >&6; }
9211 if ${ac_cv_search_opendir+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 ac_func_search_save_LIBS=$LIBS
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 char opendir ();
9225 int
9226 main ()
9227 {
9228 return opendir ();
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 for ac_lib in '' x; do
9234 if test -z "$ac_lib"; then
9235 ac_res="none required"
9236 else
9237 ac_res=-l$ac_lib
9238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9239 fi
9240 if ac_fn_c_try_link "$LINENO"; then :
9241 ac_cv_search_opendir=$ac_res
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext
9245 if ${ac_cv_search_opendir+:} false; then :
9246 break
9247 fi
9248 done
9249 if ${ac_cv_search_opendir+:} false; then :
9250
9251 else
9252 ac_cv_search_opendir=no
9253 fi
9254 rm conftest.$ac_ext
9255 LIBS=$ac_func_search_save_LIBS
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9258 $as_echo "$ac_cv_search_opendir" >&6; }
9259 ac_res=$ac_cv_search_opendir
9260 if test "$ac_res" != no; then :
9261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9262
9263 fi
9264
9265 fi
9266
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9268 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9269 if ${ac_cv_header_time+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 #include <sys/types.h>
9275 #include <sys/time.h>
9276 #include <time.h>
9277
9278 int
9279 main ()
9280 {
9281 if ((struct tm *) 0)
9282 return 0;
9283 ;
9284 return 0;
9285 }
9286 _ACEOF
9287 if ac_fn_c_try_compile "$LINENO"; then :
9288 ac_cv_header_time=yes
9289 else
9290 ac_cv_header_time=no
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 fi
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9295 $as_echo "$ac_cv_header_time" >&6; }
9296 if test $ac_cv_header_time = yes; then
9297
9298 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9299
9300 fi
9301
9302
9303
9304 for ac_header in inttypes.h
9305 do :
9306 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9307 if test "x$ac_cv_header_inttypes_h" = xyes; then :
9308 cat >>confdefs.h <<_ACEOF
9309 #define HAVE_INTTYPES_H 1
9310 _ACEOF
9311
9312 fi
9313
9314 done
9315
9316
9317
9318 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9319 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9320 stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \
9321 regex.h syslog.h ulimit.h
9322 do :
9323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9326 cat >>confdefs.h <<_ACEOF
9327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9328 _ACEOF
9329
9330 fi
9331
9332 done
9333
9334 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h sys/ioctl.h \
9335 sys/mman.h sys/param.h sys/socket.h sys/stat.h \
9336 sys/time.h sys/times.h sys/types.h sys/wait.h
9337 do :
9338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9341 cat >>confdefs.h <<_ACEOF
9342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9343 _ACEOF
9344
9345 fi
9346
9347 done
9348
9349 for ac_header in netinet/in.h arpa/inet.h
9350 do :
9351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9353 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9354 cat >>confdefs.h <<_ACEOF
9355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9356 _ACEOF
9357
9358 fi
9359
9360 done
9361
9362
9363 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
9364 #if HAVE_SYS_STREAM_H
9365 # include <sys/stream.h>
9366 #endif
9367
9368 "
9369 if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
9370
9371 fi
9372
9373
9374
9375 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
9376 #if HAVE_SYS_TIME_H
9377 # include <sys/time.h>
9378 #endif
9379
9380 "
9381 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
9382 $as_echo "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
9383
9384 fi
9385
9386
9387
9388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9389 # for constant arguments. Useless!
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9391 $as_echo_n "checking for working alloca.h... " >&6; }
9392 if ${ac_cv_working_alloca_h+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 #include <alloca.h>
9398 int
9399 main ()
9400 {
9401 char *p = (char *) alloca (2 * sizeof (int));
9402 if (p) return 0;
9403 ;
9404 return 0;
9405 }
9406 _ACEOF
9407 if ac_fn_c_try_link "$LINENO"; then :
9408 ac_cv_working_alloca_h=yes
9409 else
9410 ac_cv_working_alloca_h=no
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9416 $as_echo "$ac_cv_working_alloca_h" >&6; }
9417 if test $ac_cv_working_alloca_h = yes; then
9418
9419 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9420
9421 fi
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9424 $as_echo_n "checking for alloca... " >&6; }
9425 if ${ac_cv_func_alloca_works+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 #ifdef __GNUC__
9431 # define alloca __builtin_alloca
9432 #else
9433 # ifdef _MSC_VER
9434 # include <malloc.h>
9435 # define alloca _alloca
9436 # else
9437 # ifdef HAVE_ALLOCA_H
9438 # include <alloca.h>
9439 # else
9440 # ifdef _AIX
9441 #pragma alloca
9442 # else
9443 # ifndef alloca /* predefined by HP cc +Olibcalls */
9444 void *alloca (size_t);
9445 # endif
9446 # endif
9447 # endif
9448 # endif
9449 #endif
9450
9451 int
9452 main ()
9453 {
9454 char *p = (char *) alloca (1);
9455 if (p) return 0;
9456 ;
9457 return 0;
9458 }
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461 ac_cv_func_alloca_works=yes
9462 else
9463 ac_cv_func_alloca_works=no
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9469 $as_echo "$ac_cv_func_alloca_works" >&6; }
9470
9471 if test $ac_cv_func_alloca_works = yes; then
9472
9473 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9474
9475 else
9476 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9477 # that cause trouble. Some versions do not even contain alloca or
9478 # contain a buggy version. If you still want to use their alloca,
9479 # use ar to extract alloca.o from them instead of compiling alloca.c.
9480
9481 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9482
9483 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9484
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9487 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9488 if ${ac_cv_os_cray+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 #if defined CRAY && ! defined CRAY2
9494 webecray
9495 #else
9496 wenotbecray
9497 #endif
9498
9499 _ACEOF
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "webecray" >/dev/null 2>&1; then :
9502 ac_cv_os_cray=yes
9503 else
9504 ac_cv_os_cray=no
9505 fi
9506 rm -f conftest*
9507
9508 fi
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9510 $as_echo "$ac_cv_os_cray" >&6; }
9511 if test $ac_cv_os_cray = yes; then
9512 for ac_func in _getb67 GETB67 getb67; do
9513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9516
9517 cat >>confdefs.h <<_ACEOF
9518 #define CRAY_STACKSEG_END $ac_func
9519 _ACEOF
9520
9521 break
9522 fi
9523
9524 done
9525 fi
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9528 $as_echo_n "checking stack direction for C alloca... " >&6; }
9529 if ${ac_cv_c_stack_direction+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 if test "$cross_compiling" = yes; then :
9533 ac_cv_c_stack_direction=0
9534 else
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 int
9539 find_stack_direction (int *addr, int depth)
9540 {
9541 int dir, dummy = 0;
9542 if (! addr)
9543 addr = &dummy;
9544 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9545 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9546 return dir + dummy;
9547 }
9548
9549 int
9550 main (int argc, char **argv)
9551 {
9552 return find_stack_direction (0, argc + !argv + 20) < 0;
9553 }
9554 _ACEOF
9555 if ac_fn_c_try_run "$LINENO"; then :
9556 ac_cv_c_stack_direction=1
9557 else
9558 ac_cv_c_stack_direction=-1
9559 fi
9560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9561 conftest.$ac_objext conftest.beam conftest.$ac_ext
9562 fi
9563
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9566 $as_echo "$ac_cv_c_stack_direction" >&6; }
9567 cat >>confdefs.h <<_ACEOF
9568 #define STACK_DIRECTION $ac_cv_c_stack_direction
9569 _ACEOF
9570
9571
9572 fi
9573
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9575 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9576 if ${ac_cv_type_uid_t+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 #include <sys/types.h>
9582
9583 _ACEOF
9584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9585 $EGREP "uid_t" >/dev/null 2>&1; then :
9586 ac_cv_type_uid_t=yes
9587 else
9588 ac_cv_type_uid_t=no
9589 fi
9590 rm -f conftest*
9591
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9594 $as_echo "$ac_cv_type_uid_t" >&6; }
9595 if test $ac_cv_type_uid_t = no; then
9596
9597 $as_echo "#define uid_t int" >>confdefs.h
9598
9599
9600 $as_echo "#define gid_t int" >>confdefs.h
9601
9602 fi
9603
9604 for ac_header in unistd.h
9605 do :
9606 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
9607 if test "x$ac_cv_header_unistd_h" = xyes; then :
9608 cat >>confdefs.h <<_ACEOF
9609 #define HAVE_UNISTD_H 1
9610 _ACEOF
9611
9612 fi
9613
9614 done
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
9617 $as_echo_n "checking for working chown... " >&6; }
9618 if ${ac_cv_func_chown_works+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 if test "$cross_compiling" = yes; then :
9622 ac_cv_func_chown_works=no
9623 else
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626 $ac_includes_default
9627 #include <fcntl.h>
9628
9629 int
9630 main ()
9631 {
9632 char *f = "conftest.chown";
9633 struct stat before, after;
9634
9635 if (creat (f, 0600) < 0)
9636 return 1;
9637 if (stat (f, &before) < 0)
9638 return 1;
9639 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9640 return 1;
9641 if (stat (f, &after) < 0)
9642 return 1;
9643 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9644
9645 ;
9646 return 0;
9647 }
9648 _ACEOF
9649 if ac_fn_c_try_run "$LINENO"; then :
9650 ac_cv_func_chown_works=yes
9651 else
9652 ac_cv_func_chown_works=no
9653 fi
9654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9655 conftest.$ac_objext conftest.beam conftest.$ac_ext
9656 fi
9657
9658 rm -f conftest.chown
9659
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
9662 $as_echo "$ac_cv_func_chown_works" >&6; }
9663 if test $ac_cv_func_chown_works = yes; then
9664
9665 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
9666
9667 fi
9668
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9670 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9671 if ${ac_cv_func_getpgrp_void+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 # Use it with a single arg.
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 $ac_includes_default
9678 int
9679 main ()
9680 {
9681 getpgrp (0);
9682 ;
9683 return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_c_try_compile "$LINENO"; then :
9687 ac_cv_func_getpgrp_void=no
9688 else
9689 ac_cv_func_getpgrp_void=yes
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9695 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9696 if test $ac_cv_func_getpgrp_void = yes; then
9697
9698 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9699
9700 fi
9701
9702 if ${ac_cv_func_setvbuf_reversed+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 ac_cv_func_setvbuf_reversed=no
9706 fi
9707
9708
9709 for ac_func in vprintf
9710 do :
9711 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9712 if test "x$ac_cv_func_vprintf" = xyes; then :
9713 cat >>confdefs.h <<_ACEOF
9714 #define HAVE_VPRINTF 1
9715 _ACEOF
9716
9717 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9718 if test "x$ac_cv_func__doprnt" = xyes; then :
9719
9720 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9721
9722 fi
9723
9724 fi
9725 done
9726
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9729 $as_echo_n "checking for working strcoll... " >&6; }
9730 if ${ac_cv_func_strcoll_works+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 if test "$cross_compiling" = yes; then :
9734 ac_cv_func_strcoll_works=no
9735 else
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 $ac_includes_default
9739 int
9740 main ()
9741 {
9742 return (strcoll ("abc", "def") >= 0 ||
9743 strcoll ("ABC", "DEF") >= 0 ||
9744 strcoll ("123", "456") >= 0)
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_run "$LINENO"; then :
9750 ac_cv_func_strcoll_works=yes
9751 else
9752 ac_cv_func_strcoll_works=no
9753 fi
9754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9755 conftest.$ac_objext conftest.beam conftest.$ac_ext
9756 fi
9757
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9760 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9761 if test $ac_cv_func_strcoll_works = yes; then
9762
9763 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9764
9765 fi
9766
9767
9768
9769 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
9770 MALLOC_TARGET=alloca
9771 MALLOC_SRC=alloca.c
9772
9773 MALLOC_LIB='-lmalloc'
9774 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
9775 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
9776 MALLOC_DEP='$(MALLOC_LIBRARY)'
9777 fi
9778
9779 if test "$ac_cv_func_vprintf" = no; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
9781 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #include <stdio.h>
9785
9786 _ACEOF
9787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9788 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then :
9789 ac_cv_func_vprintf=yes
9790 fi
9791 rm -f conftest*
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
9794 $as_echo "$ac_cv_func_vprintf" >&6; }
9795 if test $ac_cv_func_vprintf = yes; then
9796 $as_echo "#define HAVE_VPRINTF 1" >>confdefs.h
9797
9798 fi
9799 fi
9800
9801 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
9802 case " $LIBOBJS " in
9803 *" vprint.$ac_objext "* ) ;;
9804 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
9805 ;;
9806 esac
9807
9808 fi
9809
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9811 $as_echo_n "checking return type of signal handlers... " >&6; }
9812 if ${ac_cv_type_signal+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 #include <sys/types.h>
9818 #include <signal.h>
9819
9820 int
9821 main ()
9822 {
9823 return *(signal (0, 0)) (0) == 1;
9824 ;
9825 return 0;
9826 }
9827 _ACEOF
9828 if ac_fn_c_try_compile "$LINENO"; then :
9829 ac_cv_type_signal=int
9830 else
9831 ac_cv_type_signal=void
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 fi
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9836 $as_echo "$ac_cv_type_signal" >&6; }
9837
9838 cat >>confdefs.h <<_ACEOF
9839 #define RETSIGTYPE $ac_cv_type_signal
9840 _ACEOF
9841
9842
9843
9844 ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype"
9845 if test "x$ac_cv_func___setostype" = xyes; then :
9846 $as_echo "#define HAVE_SETOSTYPE 1" >>confdefs.h
9847
9848 fi
9849
9850 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
9851 if test "x$ac_cv_func_wait3" = xyes; then :
9852 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
9853
9854 fi
9855
9856
9857 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
9858 if test "x$ac_cv_func_mkfifo" = xyes; then :
9859 $as_echo "#define HAVE_MKFIFO 1" >>confdefs.h
9860
9861 else
9862 $as_echo "#define MKFIFO_MISSING 1" >>confdefs.h
9863
9864 fi
9865
9866
9867 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
9868 getpagesize getpeername getrlimit getrusage gettimeofday \
9869 kill killpg lstat pselect readlink select setdtablesize \
9870 setitimer tcgetpgrp uname ulimit waitpid
9871 do :
9872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9873 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9874 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9875 cat >>confdefs.h <<_ACEOF
9876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9877 _ACEOF
9878
9879 fi
9880 done
9881
9882 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
9883 if test "x$ac_cv_func_rename" = xyes; then :
9884 $as_echo "#define HAVE_RENAME 1" >>confdefs.h
9885
9886 else
9887 case " $LIBOBJS " in
9888 *" rename.$ac_objext "* ) ;;
9889 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
9890 ;;
9891 esac
9892
9893 fi
9894
9895
9896
9897 for ac_func in bcopy bzero confstr faccessat fnmatch \
9898 getaddrinfo gethostbyname getservbyname getservent inet_aton \
9899 imaxdiv memmove pathconf putenv raise random regcomp regexec \
9900 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
9901 sysconf syslog tcgetattr times ttyname tzset unsetenv
9902 do :
9903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9905 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9906 cat >>confdefs.h <<_ACEOF
9907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9908 _ACEOF
9909
9910 fi
9911 done
9912
9913
9914 for ac_func in vasprintf asprintf
9915 do :
9916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9918 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9919 cat >>confdefs.h <<_ACEOF
9920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9921 _ACEOF
9922
9923 fi
9924 done
9925
9926 for ac_func in isascii isblank isgraph isprint isspace isxdigit
9927 do :
9928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9931 cat >>confdefs.h <<_ACEOF
9932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9933 _ACEOF
9934
9935 fi
9936 done
9937
9938 for ac_func in getpwent getpwnam getpwuid
9939 do :
9940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9942 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9945 _ACEOF
9946
9947 fi
9948 done
9949
9950 for ac_func in mkstemp
9951 do :
9952 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
9953 if test "x$ac_cv_func_mkstemp" = xyes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_MKSTEMP 1
9956 _ACEOF
9957
9958 fi
9959 done
9960
9961 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
9962 if test "x$ac_cv_func_getcwd" = xyes; then :
9963 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
9964
9965 else
9966 case " $LIBOBJS " in
9967 *" getcwd.$ac_objext "* ) ;;
9968 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
9969 ;;
9970 esac
9971
9972 fi
9973
9974 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
9975 if test "x$ac_cv_func_memset" = xyes; then :
9976 $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
9977
9978 else
9979 case " $LIBOBJS " in
9980 *" memset.$ac_objext "* ) ;;
9981 *) LIBOBJS="$LIBOBJS memset.$ac_objext"
9982 ;;
9983 esac
9984
9985 fi
9986
9987
9988 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9989 if test "x$ac_cv_func_strcasecmp" = xyes; then :
9990 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
9991
9992 else
9993 case " $LIBOBJS " in
9994 *" strcasecmp.$ac_objext "* ) ;;
9995 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
9996 ;;
9997 esac
9998
9999 fi
10000
10001 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
10002 if test "x$ac_cv_func_strcasestr" = xyes; then :
10003 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
10004
10005 else
10006 case " $LIBOBJS " in
10007 *" strcasestr.$ac_objext "* ) ;;
10008 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
10009 ;;
10010 esac
10011
10012 fi
10013
10014 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
10015 if test "x$ac_cv_func_strerror" = xyes; then :
10016 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
10017
10018 else
10019 case " $LIBOBJS " in
10020 *" strerror.$ac_objext "* ) ;;
10021 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
10022 ;;
10023 esac
10024
10025 fi
10026
10027 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10028 if test "x$ac_cv_func_strftime" = xyes; then :
10029 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10030
10031 else
10032 case " $LIBOBJS " in
10033 *" strftime.$ac_objext "* ) ;;
10034 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
10035 ;;
10036 esac
10037
10038 fi
10039
10040 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
10041 if test "x$ac_cv_func_strnlen" = xyes; then :
10042 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
10043
10044 else
10045 case " $LIBOBJS " in
10046 *" strnlen.$ac_objext "* ) ;;
10047 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
10048 ;;
10049 esac
10050
10051 fi
10052
10053 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
10054 if test "x$ac_cv_func_strpbrk" = xyes; then :
10055 $as_echo "#define HAVE_STRPBRK 1" >>confdefs.h
10056
10057 else
10058 case " $LIBOBJS " in
10059 *" strpbrk.$ac_objext "* ) ;;
10060 *) LIBOBJS="$LIBOBJS strpbrk.$ac_objext"
10061 ;;
10062 esac
10063
10064 fi
10065
10066 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
10067 if test "x$ac_cv_func_strstr" = xyes; then :
10068 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
10069
10070 else
10071 case " $LIBOBJS " in
10072 *" strstr.$ac_objext "* ) ;;
10073 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
10074 ;;
10075 esac
10076
10077 fi
10078
10079
10080 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
10081 if test "x$ac_cv_func_strtod" = xyes; then :
10082 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
10083
10084 else
10085 case " $LIBOBJS " in
10086 *" strtod.$ac_objext "* ) ;;
10087 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10088 ;;
10089 esac
10090
10091 fi
10092
10093 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
10094 if test "x$ac_cv_func_strtol" = xyes; then :
10095 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
10096
10097 else
10098 case " $LIBOBJS " in
10099 *" strtol.$ac_objext "* ) ;;
10100 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
10101 ;;
10102 esac
10103
10104 fi
10105
10106 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
10107 if test "x$ac_cv_func_strtoul" = xyes; then :
10108 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
10109
10110 else
10111 case " $LIBOBJS " in
10112 *" strtoul.$ac_objext "* ) ;;
10113 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
10114 ;;
10115 esac
10116
10117 fi
10118
10119 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
10120 if test "x$ac_cv_func_strtoll" = xyes; then :
10121 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
10122
10123 else
10124 case " $LIBOBJS " in
10125 *" strtoll.$ac_objext "* ) ;;
10126 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext"
10127 ;;
10128 esac
10129
10130 fi
10131
10132 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
10133 if test "x$ac_cv_func_strtoull" = xyes; then :
10134 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
10135
10136 else
10137 case " $LIBOBJS " in
10138 *" strtoull.$ac_objext "* ) ;;
10139 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
10140 ;;
10141 esac
10142
10143 fi
10144
10145 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
10146 if test "x$ac_cv_func_strtoimax" = xyes; then :
10147 $as_echo "#define HAVE_STRTOIMAX 1" >>confdefs.h
10148
10149 else
10150 case " $LIBOBJS " in
10151 *" strtoimax.$ac_objext "* ) ;;
10152 *) LIBOBJS="$LIBOBJS strtoimax.$ac_objext"
10153 ;;
10154 esac
10155
10156 fi
10157
10158 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
10159 if test "x$ac_cv_func_strtoumax" = xyes; then :
10160 $as_echo "#define HAVE_STRTOUMAX 1" >>confdefs.h
10161
10162 else
10163 case " $LIBOBJS " in
10164 *" strtoumax.$ac_objext "* ) ;;
10165 *) LIBOBJS="$LIBOBJS strtoumax.$ac_objext"
10166 ;;
10167 esac
10168
10169 fi
10170
10171
10172 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
10173 if test "x$ac_cv_func_dprintf" = xyes; then :
10174 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
10175
10176 else
10177 case " $LIBOBJS " in
10178 *" dprintf.$ac_objext "* ) ;;
10179 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
10180 ;;
10181 esac
10182
10183 fi
10184
10185
10186 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
10187 if test "x$ac_cv_func_strchrnul" = xyes; then :
10188 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
10189
10190 else
10191 case " $LIBOBJS " in
10192 *" strchrnul.$ac_objext "* ) ;;
10193 *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext"
10194 ;;
10195 esac
10196
10197 fi
10198
10199
10200 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
10201 if test "x$ac_cv_func_strdup" = xyes; then :
10202 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
10203
10204 else
10205 case " $LIBOBJS " in
10206 *" strdup.$ac_objext "* ) ;;
10207 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
10208 ;;
10209 esac
10210
10211 fi
10212
10213
10214
10215 for ac_header in libaudit.h
10216 do :
10217 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10218 if test "x$ac_cv_header_libaudit_h" = xyes; then :
10219 cat >>confdefs.h <<_ACEOF
10220 #define HAVE_LIBAUDIT_H 1
10221 _ACEOF
10222
10223 fi
10224
10225 done
10226
10227 ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
10228 "
10229 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
10230 ac_have_decl=1
10231 else
10232 ac_have_decl=0
10233 fi
10234
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
10237 _ACEOF
10238
10239
10240 ac_fn_c_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
10241 if test "x$ac_cv_have_decl_confstr" = xyes; then :
10242 ac_have_decl=1
10243 else
10244 ac_have_decl=0
10245 fi
10246
10247 cat >>confdefs.h <<_ACEOF
10248 #define HAVE_DECL_CONFSTR $ac_have_decl
10249 _ACEOF
10250
10251 ac_fn_c_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
10252 if test "x$ac_cv_have_decl_printf" = xyes; then :
10253 ac_have_decl=1
10254 else
10255 ac_have_decl=0
10256 fi
10257
10258 cat >>confdefs.h <<_ACEOF
10259 #define HAVE_DECL_PRINTF $ac_have_decl
10260 _ACEOF
10261
10262 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
10263 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
10264 ac_have_decl=1
10265 else
10266 ac_have_decl=0
10267 fi
10268
10269 cat >>confdefs.h <<_ACEOF
10270 #define HAVE_DECL_SBRK $ac_have_decl
10271 _ACEOF
10272
10273 ac_fn_c_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
10274 if test "x$ac_cv_have_decl_setregid" = xyes; then :
10275 ac_have_decl=1
10276 else
10277 ac_have_decl=0
10278 fi
10279
10280 cat >>confdefs.h <<_ACEOF
10281 #define HAVE_DECL_SETREGID $ac_have_decl
10282 _ACEOF
10283
10284 ac_fn_c_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
10285 if test "x$ac_cv_have_decl_strcpy" = xyes; then :
10286 ac_have_decl=1
10287 else
10288 ac_have_decl=0
10289 fi
10290
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_DECL_STRCPY $ac_have_decl
10293 _ACEOF
10294
10295 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
10296 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
10297 ac_have_decl=1
10298 else
10299 ac_have_decl=0
10300 fi
10301
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_DECL_STRSIGNAL $ac_have_decl
10304 _ACEOF
10305
10306
10307 ac_fn_c_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
10308 if test "x$ac_cv_have_decl_strtold" = xyes; then :
10309 ac_have_decl=1
10310 else
10311 ac_have_decl=0
10312 fi
10313
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_DECL_STRTOLD $ac_have_decl
10316 _ACEOF
10317 if test $ac_have_decl = 1; then :
10318
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
10320 $as_echo_n "checking for broken strtold... " >&6; }
10321 if ${bash_cv_strtold_broken+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <stdlib.h>
10327 int
10328 main ()
10329 {
10330 long double r; char *foo, bar; r = strtold(foo, &bar);
10331 ;
10332 return 0;
10333 }
10334 _ACEOF
10335 if ac_fn_c_try_compile "$LINENO"; then :
10336 bash_cv_strtold_broken=no
10337 else
10338 bash_cv_strtold_broken=yes
10339 fi
10340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341
10342
10343 fi
10344
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
10346 $as_echo "$bash_cv_strtold_broken" >&6; }
10347 if test "$bash_cv_strtold_broken" = "yes" ; then
10348 $as_echo "#define STRTOLD_BROKEN 1" >>confdefs.h
10349
10350 fi
10351
10352 fi
10353
10354
10355
10356
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
10359 $as_echo_n "checking for declaration of strtoimax... " >&6; }
10360 if ${bash_cv_decl_strtoimax+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365
10366 #if STDC_HEADERS
10367 # include <stdlib.h>
10368 #endif
10369 #if HAVE_INTTYPES_H
10370 # include <inttypes.h>
10371 #endif
10372
10373 int
10374 main ()
10375 {
10376 return !strtoimax;
10377 ;
10378 return 0;
10379 }
10380 _ACEOF
10381 if ac_fn_c_try_link "$LINENO"; then :
10382 bash_cv_decl_strtoimax=yes
10383 else
10384 bash_cv_decl_strtoimax=no
10385 fi
10386 rm -f core conftest.err conftest.$ac_objext \
10387 conftest$ac_exeext conftest.$ac_ext
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5
10390 $as_echo "$bash_cv_decl_strtoimax" >&6; }
10391 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10392 if test $bash_cv_decl_strtoimax = yes; then
10393 cat >>confdefs.h <<_ACEOF
10394 #define $bash_tr_func 1
10395 _ACEOF
10396
10397 else
10398 cat >>confdefs.h <<_ACEOF
10399 #define $bash_tr_func 0
10400 _ACEOF
10401
10402 fi
10403
10404
10405
10406
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
10408 $as_echo_n "checking for declaration of strtol... " >&6; }
10409 if ${bash_cv_decl_strtol+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414
10415 #if STDC_HEADERS
10416 # include <stdlib.h>
10417 #endif
10418 #if HAVE_INTTYPES_H
10419 # include <inttypes.h>
10420 #endif
10421
10422 int
10423 main ()
10424 {
10425 return !strtol;
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 if ac_fn_c_try_link "$LINENO"; then :
10431 bash_cv_decl_strtol=yes
10432 else
10433 bash_cv_decl_strtol=no
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5
10439 $as_echo "$bash_cv_decl_strtol" >&6; }
10440 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10441 if test $bash_cv_decl_strtol = yes; then
10442 cat >>confdefs.h <<_ACEOF
10443 #define $bash_tr_func 1
10444 _ACEOF
10445
10446 else
10447 cat >>confdefs.h <<_ACEOF
10448 #define $bash_tr_func 0
10449 _ACEOF
10450
10451 fi
10452
10453
10454
10455
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
10457 $as_echo_n "checking for declaration of strtoll... " >&6; }
10458 if ${bash_cv_decl_strtoll+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463
10464 #if STDC_HEADERS
10465 # include <stdlib.h>
10466 #endif
10467 #if HAVE_INTTYPES_H
10468 # include <inttypes.h>
10469 #endif
10470
10471 int
10472 main ()
10473 {
10474 return !strtoll;
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 bash_cv_decl_strtoll=yes
10481 else
10482 bash_cv_decl_strtoll=no
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 fi
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5
10488 $as_echo "$bash_cv_decl_strtoll" >&6; }
10489 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10490 if test $bash_cv_decl_strtoll = yes; then
10491 cat >>confdefs.h <<_ACEOF
10492 #define $bash_tr_func 1
10493 _ACEOF
10494
10495 else
10496 cat >>confdefs.h <<_ACEOF
10497 #define $bash_tr_func 0
10498 _ACEOF
10499
10500 fi
10501
10502
10503
10504
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
10506 $as_echo_n "checking for declaration of strtoul... " >&6; }
10507 if ${bash_cv_decl_strtoul+:} false; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512
10513 #if STDC_HEADERS
10514 # include <stdlib.h>
10515 #endif
10516 #if HAVE_INTTYPES_H
10517 # include <inttypes.h>
10518 #endif
10519
10520 int
10521 main ()
10522 {
10523 return !strtoul;
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"; then :
10529 bash_cv_decl_strtoul=yes
10530 else
10531 bash_cv_decl_strtoul=no
10532 fi
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 fi
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5
10537 $as_echo "$bash_cv_decl_strtoul" >&6; }
10538 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10539 if test $bash_cv_decl_strtoul = yes; then
10540 cat >>confdefs.h <<_ACEOF
10541 #define $bash_tr_func 1
10542 _ACEOF
10543
10544 else
10545 cat >>confdefs.h <<_ACEOF
10546 #define $bash_tr_func 0
10547 _ACEOF
10548
10549 fi
10550
10551
10552
10553
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
10555 $as_echo_n "checking for declaration of strtoull... " >&6; }
10556 if ${bash_cv_decl_strtoull+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561
10562 #if STDC_HEADERS
10563 # include <stdlib.h>
10564 #endif
10565 #if HAVE_INTTYPES_H
10566 # include <inttypes.h>
10567 #endif
10568
10569 int
10570 main ()
10571 {
10572 return !strtoull;
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 bash_cv_decl_strtoull=yes
10579 else
10580 bash_cv_decl_strtoull=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 fi
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5
10586 $as_echo "$bash_cv_decl_strtoull" >&6; }
10587 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10588 if test $bash_cv_decl_strtoull = yes; then
10589 cat >>confdefs.h <<_ACEOF
10590 #define $bash_tr_func 1
10591 _ACEOF
10592
10593 else
10594 cat >>confdefs.h <<_ACEOF
10595 #define $bash_tr_func 0
10596 _ACEOF
10597
10598 fi
10599
10600
10601
10602
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
10604 $as_echo_n "checking for declaration of strtoumax... " >&6; }
10605 if ${bash_cv_decl_strtoumax+:} false; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610
10611 #if STDC_HEADERS
10612 # include <stdlib.h>
10613 #endif
10614 #if HAVE_INTTYPES_H
10615 # include <inttypes.h>
10616 #endif
10617
10618 int
10619 main ()
10620 {
10621 return !strtoumax;
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 if ac_fn_c_try_link "$LINENO"; then :
10627 bash_cv_decl_strtoumax=yes
10628 else
10629 bash_cv_decl_strtoumax=no
10630 fi
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5
10635 $as_echo "$bash_cv_decl_strtoumax" >&6; }
10636 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10637 if test $bash_cv_decl_strtoumax = yes; then
10638 cat >>confdefs.h <<_ACEOF
10639 #define $bash_tr_func 1
10640 _ACEOF
10641
10642 else
10643 cat >>confdefs.h <<_ACEOF
10644 #define $bash_tr_func 0
10645 _ACEOF
10646
10647 fi
10648
10649
10650
10651
10652
10653
10654
10655 for ac_func in $ac_func_list
10656 do :
10657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10658 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10659 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10660 cat >>confdefs.h <<_ACEOF
10661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10662 _ACEOF
10663
10664 fi
10665 done
10666
10667
10668
10669
10670
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10672 $as_echo_n "checking for working mktime... " >&6; }
10673 if ${ac_cv_func_working_mktime+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10676 if test "$cross_compiling" = yes; then :
10677 ac_cv_func_working_mktime=no
10678 else
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 /* Test program from Paul Eggert and Tony Leneis. */
10682 #ifdef TIME_WITH_SYS_TIME
10683 # include <sys/time.h>
10684 # include <time.h>
10685 #else
10686 # ifdef HAVE_SYS_TIME_H
10687 # include <sys/time.h>
10688 # else
10689 # include <time.h>
10690 # endif
10691 #endif
10692
10693 #include <limits.h>
10694 #include <stdlib.h>
10695
10696 #ifdef HAVE_UNISTD_H
10697 # include <unistd.h>
10698 #endif
10699
10700 #ifndef HAVE_ALARM
10701 # define alarm(X) /* empty */
10702 #endif
10703
10704 /* Work around redefinition to rpl_putenv by other config tests. */
10705 #undef putenv
10706
10707 static time_t time_t_max;
10708 static time_t time_t_min;
10709
10710 /* Values we'll use to set the TZ environment variable. */
10711 static const char *tz_strings[] = {
10712 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10713 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10714 };
10715 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10716
10717 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10718 Based on a problem report from Andreas Jaeger. */
10719 static int
10720 spring_forward_gap ()
10721 {
10722 /* glibc (up to about 1998-10-07) failed this test. */
10723 struct tm tm;
10724
10725 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10726 instead of "TZ=America/Vancouver" in order to detect the bug even
10727 on systems that don't support the Olson extension, or don't have the
10728 full zoneinfo tables installed. */
10729 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10730
10731 tm.tm_year = 98;
10732 tm.tm_mon = 3;
10733 tm.tm_mday = 5;
10734 tm.tm_hour = 2;
10735 tm.tm_min = 0;
10736 tm.tm_sec = 0;
10737 tm.tm_isdst = -1;
10738 return mktime (&tm) != (time_t) -1;
10739 }
10740
10741 static int
10742 mktime_test1 (time_t now)
10743 {
10744 struct tm *lt;
10745 return ! (lt = localtime (&now)) || mktime (lt) == now;
10746 }
10747
10748 static int
10749 mktime_test (time_t now)
10750 {
10751 return (mktime_test1 (now)
10752 && mktime_test1 ((time_t) (time_t_max - now))
10753 && mktime_test1 ((time_t) (time_t_min + now)));
10754 }
10755
10756 static int
10757 irix_6_4_bug ()
10758 {
10759 /* Based on code from Ariel Faigon. */
10760 struct tm tm;
10761 tm.tm_year = 96;
10762 tm.tm_mon = 3;
10763 tm.tm_mday = 0;
10764 tm.tm_hour = 0;
10765 tm.tm_min = 0;
10766 tm.tm_sec = 0;
10767 tm.tm_isdst = -1;
10768 mktime (&tm);
10769 return tm.tm_mon == 2 && tm.tm_mday == 31;
10770 }
10771
10772 static int
10773 bigtime_test (int j)
10774 {
10775 struct tm tm;
10776 time_t now;
10777 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10778 now = mktime (&tm);
10779 if (now != (time_t) -1)
10780 {
10781 struct tm *lt = localtime (&now);
10782 if (! (lt
10783 && lt->tm_year == tm.tm_year
10784 && lt->tm_mon == tm.tm_mon
10785 && lt->tm_mday == tm.tm_mday
10786 && lt->tm_hour == tm.tm_hour
10787 && lt->tm_min == tm.tm_min
10788 && lt->tm_sec == tm.tm_sec
10789 && lt->tm_yday == tm.tm_yday
10790 && lt->tm_wday == tm.tm_wday
10791 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10792 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10793 return 0;
10794 }
10795 return 1;
10796 }
10797
10798 static int
10799 year_2050_test ()
10800 {
10801 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10802 ignoring leap seconds. */
10803 unsigned long int answer = 2527315200UL;
10804
10805 struct tm tm;
10806 time_t t;
10807 tm.tm_year = 2050 - 1900;
10808 tm.tm_mon = 2 - 1;
10809 tm.tm_mday = 1;
10810 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10811 tm.tm_isdst = -1;
10812
10813 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10814 instead of "TZ=America/Vancouver" in order to detect the bug even
10815 on systems that don't support the Olson extension, or don't have the
10816 full zoneinfo tables installed. */
10817 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10818
10819 t = mktime (&tm);
10820
10821 /* Check that the result is either a failure, or close enough
10822 to the correct answer that we can assume the discrepancy is
10823 due to leap seconds. */
10824 return (t == (time_t) -1
10825 || (0 < t && answer - 120 <= t && t <= answer + 120));
10826 }
10827
10828 int
10829 main ()
10830 {
10831 time_t t, delta;
10832 int i, j;
10833
10834 /* This test makes some buggy mktime implementations loop.
10835 Give up after 60 seconds; a mktime slower than that
10836 isn't worth using anyway. */
10837 alarm (60);
10838
10839 for (;;)
10840 {
10841 t = (time_t_max << 1) + 1;
10842 if (t <= time_t_max)
10843 break;
10844 time_t_max = t;
10845 }
10846 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10847
10848 delta = time_t_max / 997; /* a suitable prime number */
10849 for (i = 0; i < N_STRINGS; i++)
10850 {
10851 if (tz_strings[i])
10852 putenv ((char*) tz_strings[i]);
10853
10854 for (t = 0; t <= time_t_max - delta; t += delta)
10855 if (! mktime_test (t))
10856 return 1;
10857 if (! (mktime_test ((time_t) 1)
10858 && mktime_test ((time_t) (60 * 60))
10859 && mktime_test ((time_t) (60 * 60 * 24))))
10860 return 1;
10861
10862 for (j = 1; ; j <<= 1)
10863 if (! bigtime_test (j))
10864 return 1;
10865 else if (INT_MAX / 2 < j)
10866 break;
10867 if (! bigtime_test (INT_MAX))
10868 return 1;
10869 }
10870 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10871 }
10872 _ACEOF
10873 if ac_fn_c_try_run "$LINENO"; then :
10874 ac_cv_func_working_mktime=yes
10875 else
10876 ac_cv_func_working_mktime=no
10877 fi
10878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10879 conftest.$ac_objext conftest.beam conftest.$ac_ext
10880 fi
10881
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10884 $as_echo "$ac_cv_func_working_mktime" >&6; }
10885 if test $ac_cv_func_working_mktime = no; then
10886 case " $LIBOBJS " in
10887 *" mktime.$ac_objext "* ) ;;
10888 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10889 ;;
10890 esac
10891
10892 fi
10893
10894
10895
10896 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
10897 do :
10898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10901 cat >>confdefs.h <<_ACEOF
10902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10903 _ACEOF
10904
10905 fi
10906
10907 done
10908
10909
10910
10911 for ac_func in getpagesize
10912 do :
10913 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10914 if test "x$ac_cv_func_getpagesize" = xyes; then :
10915 cat >>confdefs.h <<_ACEOF
10916 #define HAVE_GETPAGESIZE 1
10917 _ACEOF
10918
10919 fi
10920 done
10921
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10923 $as_echo_n "checking for working mmap... " >&6; }
10924 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 if test "$cross_compiling" = yes; then :
10928 ac_cv_func_mmap_fixed_mapped=no
10929 else
10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10932 $ac_includes_default
10933 /* malloc might have been renamed as rpl_malloc. */
10934 #undef malloc
10935
10936 /* Thanks to Mike Haertel and Jim Avera for this test.
10937 Here is a matrix of mmap possibilities:
10938 mmap private not fixed
10939 mmap private fixed at somewhere currently unmapped
10940 mmap private fixed at somewhere already mapped
10941 mmap shared not fixed
10942 mmap shared fixed at somewhere currently unmapped
10943 mmap shared fixed at somewhere already mapped
10944 For private mappings, we should verify that changes cannot be read()
10945 back from the file, nor mmap's back from the file at a different
10946 address. (There have been systems where private was not correctly
10947 implemented like the infamous i386 svr4.0, and systems where the
10948 VM page cache was not coherent with the file system buffer cache
10949 like early versions of FreeBSD and possibly contemporary NetBSD.)
10950 For shared mappings, we should conversely verify that changes get
10951 propagated back to all the places they're supposed to be.
10952
10953 Grep wants private fixed already mapped.
10954 The main things grep needs to know about mmap are:
10955 * does it exist and is it safe to write into the mmap'd area
10956 * how to use it (BSD variants) */
10957
10958 #include <fcntl.h>
10959 #include <sys/mman.h>
10960
10961 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10962 char *malloc ();
10963 #endif
10964
10965 /* This mess was copied from the GNU getpagesize.h. */
10966 #ifndef HAVE_GETPAGESIZE
10967 # ifdef _SC_PAGESIZE
10968 # define getpagesize() sysconf(_SC_PAGESIZE)
10969 # else /* no _SC_PAGESIZE */
10970 # ifdef HAVE_SYS_PARAM_H
10971 # include <sys/param.h>
10972 # ifdef EXEC_PAGESIZE
10973 # define getpagesize() EXEC_PAGESIZE
10974 # else /* no EXEC_PAGESIZE */
10975 # ifdef NBPG
10976 # define getpagesize() NBPG * CLSIZE
10977 # ifndef CLSIZE
10978 # define CLSIZE 1
10979 # endif /* no CLSIZE */
10980 # else /* no NBPG */
10981 # ifdef NBPC
10982 # define getpagesize() NBPC
10983 # else /* no NBPC */
10984 # ifdef PAGESIZE
10985 # define getpagesize() PAGESIZE
10986 # endif /* PAGESIZE */
10987 # endif /* no NBPC */
10988 # endif /* no NBPG */
10989 # endif /* no EXEC_PAGESIZE */
10990 # else /* no HAVE_SYS_PARAM_H */
10991 # define getpagesize() 8192 /* punt totally */
10992 # endif /* no HAVE_SYS_PARAM_H */
10993 # endif /* no _SC_PAGESIZE */
10994
10995 #endif /* no HAVE_GETPAGESIZE */
10996
10997 int
10998 main ()
10999 {
11000 char *data, *data2, *data3;
11001 const char *cdata2;
11002 int i, pagesize;
11003 int fd, fd2;
11004
11005 pagesize = getpagesize ();
11006
11007 /* First, make a file with some known garbage in it. */
11008 data = (char *) malloc (pagesize);
11009 if (!data)
11010 return 1;
11011 for (i = 0; i < pagesize; ++i)
11012 *(data + i) = rand ();
11013 umask (0);
11014 fd = creat ("conftest.mmap", 0600);
11015 if (fd < 0)
11016 return 2;
11017 if (write (fd, data, pagesize) != pagesize)
11018 return 3;
11019 close (fd);
11020
11021 /* Next, check that the tail of a page is zero-filled. File must have
11022 non-zero length, otherwise we risk SIGBUS for entire page. */
11023 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11024 if (fd2 < 0)
11025 return 4;
11026 cdata2 = "";
11027 if (write (fd2, cdata2, 1) != 1)
11028 return 5;
11029 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11030 if (data2 == MAP_FAILED)
11031 return 6;
11032 for (i = 0; i < pagesize; ++i)
11033 if (*(data2 + i))
11034 return 7;
11035 close (fd2);
11036 if (munmap (data2, pagesize))
11037 return 8;
11038
11039 /* Next, try to mmap the file at a fixed address which already has
11040 something else allocated at it. If we can, also make sure that
11041 we see the same garbage. */
11042 fd = open ("conftest.mmap", O_RDWR);
11043 if (fd < 0)
11044 return 9;
11045 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11046 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11047 return 10;
11048 for (i = 0; i < pagesize; ++i)
11049 if (*(data + i) != *(data2 + i))
11050 return 11;
11051
11052 /* Finally, make sure that changes to the mapped area do not
11053 percolate back to the file as seen by read(). (This is a bug on
11054 some variants of i386 svr4.0.) */
11055 for (i = 0; i < pagesize; ++i)
11056 *(data2 + i) = *(data2 + i) + 1;
11057 data3 = (char *) malloc (pagesize);
11058 if (!data3)
11059 return 12;
11060 if (read (fd, data3, pagesize) != pagesize)
11061 return 13;
11062 for (i = 0; i < pagesize; ++i)
11063 if (*(data + i) != *(data3 + i))
11064 return 14;
11065 close (fd);
11066 return 0;
11067 }
11068 _ACEOF
11069 if ac_fn_c_try_run "$LINENO"; then :
11070 ac_cv_func_mmap_fixed_mapped=yes
11071 else
11072 ac_cv_func_mmap_fixed_mapped=no
11073 fi
11074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11075 conftest.$ac_objext conftest.beam conftest.$ac_ext
11076 fi
11077
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11080 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11082
11083 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11084
11085 fi
11086 rm -f conftest.mmap conftest.txt
11087
11088 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
11089 munmap mremap stpcpy strcspn
11090 do :
11091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11093 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11094 cat >>confdefs.h <<_ACEOF
11095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096 _ACEOF
11097
11098 fi
11099 done
11100
11101
11102 INTL_DEP= INTL_INC= LIBINTL_H=
11103 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
11104 INTL_DEP='${INTL_LIBDIR}/libintl.a'
11105 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
11106 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
11107 fi
11108
11109
11110
11111
11112
11113
11114 for ac_header in wctype.h
11115 do :
11116 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
11117 if test "x$ac_cv_header_wctype_h" = xyes; then :
11118 cat >>confdefs.h <<_ACEOF
11119 #define HAVE_WCTYPE_H 1
11120 _ACEOF
11121
11122 fi
11123
11124 done
11125
11126 for ac_header in wchar.h
11127 do :
11128 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
11129 if test "x$ac_cv_header_wchar_h" = xyes; then :
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_WCHAR_H 1
11132 _ACEOF
11133
11134 fi
11135
11136 done
11137
11138 for ac_header in langinfo.h
11139 do :
11140 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
11141 if test "x$ac_cv_header_langinfo_h" = xyes; then :
11142 cat >>confdefs.h <<_ACEOF
11143 #define HAVE_LANGINFO_H 1
11144 _ACEOF
11145
11146 fi
11147
11148 done
11149
11150
11151 for ac_header in mbstr.h
11152 do :
11153 ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
11154 if test "x$ac_cv_header_mbstr_h" = xyes; then :
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_MBSTR_H 1
11157 _ACEOF
11158
11159 fi
11160
11161 done
11162
11163
11164 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
11165 if test "x$ac_cv_func_mbrlen" = xyes; then :
11166 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
11167
11168 fi
11169
11170 ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
11171 if test "x$ac_cv_func_mbscasecmp" = xyes; then :
11172 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
11173
11174 fi
11175
11176 ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
11177 if test "x$ac_cv_func_mbscmp" = xyes; then :
11178 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
11179
11180 fi
11181
11182 ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
11183 if test "x$ac_cv_func_mbsnrtowcs" = xyes; then :
11184 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
11185
11186 fi
11187
11188 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
11189 if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
11190 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
11191
11192 fi
11193
11194
11195 ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
11196 if test "x$ac_cv_func_mbschr" = xyes; then :
11197 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
11198
11199 else
11200 case " $LIBOBJS " in
11201 *" mbschr.$ac_objext "* ) ;;
11202 *) LIBOBJS="$LIBOBJS mbschr.$ac_objext"
11203 ;;
11204 esac
11205
11206 fi
11207
11208
11209
11210 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
11211 if test "x$ac_cv_func_wcrtomb" = xyes; then :
11212 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
11213
11214 fi
11215
11216 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
11217 if test "x$ac_cv_func_wcscoll" = xyes; then :
11218 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
11219
11220 fi
11221
11222 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
11223 if test "x$ac_cv_func_wcsdup" = xyes; then :
11224 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
11225
11226 fi
11227
11228 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
11229 if test "x$ac_cv_func_wcwidth" = xyes; then :
11230 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
11231
11232 fi
11233
11234 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
11235 if test "x$ac_cv_func_wctype" = xyes; then :
11236 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
11237
11238 fi
11239
11240
11241 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
11242 if test "x$ac_cv_func_wcswidth" = xyes; then :
11243 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
11244
11245 else
11246 case " $LIBOBJS " in
11247 *" wcswidth.$ac_objext "* ) ;;
11248 *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext"
11249 ;;
11250 esac
11251
11252 fi
11253
11254
11255
11256
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
11258 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
11259 if ${ac_cv_func_mbrtowc+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11264 #include <wchar.h>
11265 int
11266 main ()
11267 {
11268 wchar_t wc;
11269 char const s[] = "";
11270 size_t n = 1;
11271 mbstate_t state;
11272 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11273 ;
11274 return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11278 ac_cv_func_mbrtowc=yes
11279 else
11280 ac_cv_func_mbrtowc=no
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284 fi
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
11286 $as_echo "$ac_cv_func_mbrtowc" >&6; }
11287 if test $ac_cv_func_mbrtowc = yes; then
11288
11289 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
11290
11291 fi
11292
11293 if test $ac_cv_func_mbrtowc = yes; then
11294 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11295
11296 fi
11297
11298 for ac_func in iswlower iswupper towlower towupper iswctype
11299 do :
11300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11302 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11303 cat >>confdefs.h <<_ACEOF
11304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11305 _ACEOF
11306
11307 fi
11308 done
11309
11310
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11312 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11313 if ${bash_cv_langinfo_codeset+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 #include <langinfo.h>
11319 int
11320 main ()
11321 {
11322 char* cs = nl_langinfo(CODESET);
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 bash_cv_langinfo_codeset=yes
11329 else
11330 bash_cv_langinfo_codeset=no
11331 fi
11332 rm -f core conftest.err conftest.$ac_objext \
11333 conftest$ac_exeext conftest.$ac_ext
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
11336 $as_echo "$bash_cv_langinfo_codeset" >&6; }
11337 if test $bash_cv_langinfo_codeset = yes; then
11338 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11339
11340 fi
11341
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
11343 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
11344 if ${bash_cv_type_wchar_t+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349 #include <wchar.h>
11350
11351 int
11352 main ()
11353 {
11354
11355 wchar_t foo;
11356 foo = 0;
11357
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_compile "$LINENO"; then :
11363 bash_cv_type_wchar_t=yes
11364 else
11365 bash_cv_type_wchar_t=no
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
11370 $as_echo "$bash_cv_type_wchar_t" >&6; }
11371 if test $bash_cv_type_wchar_t = yes; then
11372
11373 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11374
11375 fi
11376
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
11378 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
11379 if ${bash_cv_type_wctype_t+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384 #include <wctype.h>
11385 int
11386 main ()
11387 {
11388
11389 wctype_t foo;
11390 foo = 0;
11391
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_c_try_compile "$LINENO"; then :
11397 bash_cv_type_wctype_t=yes
11398 else
11399 bash_cv_type_wctype_t=no
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
11404 $as_echo "$bash_cv_type_wctype_t" >&6; }
11405 if test $bash_cv_type_wctype_t = yes; then
11406
11407 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
11408
11409 fi
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
11412 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
11413 if ${bash_cv_type_wint_t+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11418 #include <wctype.h>
11419 int
11420 main ()
11421 {
11422
11423 wint_t foo;
11424 foo = 0;
11425
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_c_try_compile "$LINENO"; then :
11431 bash_cv_type_wint_t=yes
11432 else
11433 bash_cv_type_wint_t=no
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
11438 $as_echo "$bash_cv_type_wint_t" >&6; }
11439 if test $bash_cv_type_wint_t = yes; then
11440
11441 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11442
11443 fi
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
11446 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
11447 if ${bash_cv_wcwidth_broken+:} false; then :
11448 $as_echo_n "(cached) " >&6
11449 else
11450 if test "$cross_compiling" = yes; then :
11451 bash_cv_wcwidth_broken=no
11452 else
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455
11456 #include <unistd.h>
11457 #include <stdlib.h>
11458 #include <stdio.h>
11459
11460 #include <locale.h>
11461 #include <wchar.h>
11462
11463 main(c, v)
11464 int c;
11465 char **v;
11466 {
11467 int w;
11468
11469 setlocale(LC_ALL, "en_US.UTF-8");
11470 w = wcwidth (0x0301);
11471 exit (w == 0); /* exit 0 if wcwidth broken */
11472 }
11473
11474 _ACEOF
11475 if ac_fn_c_try_run "$LINENO"; then :
11476 bash_cv_wcwidth_broken=yes
11477 else
11478 bash_cv_wcwidth_broken=no
11479 fi
11480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11481 conftest.$ac_objext conftest.beam conftest.$ac_ext
11482 fi
11483
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
11486 $as_echo "$bash_cv_wcwidth_broken" >&6; }
11487 if test "$bash_cv_wcwidth_broken" = yes; then
11488
11489 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
11490
11491 fi
11492
11493 if test "$am_cv_func_iconv" = yes; then
11494 OLDLIBS="$LIBS"
11495 LIBS="$LIBS $LIBINTL $LIBICONV"
11496 for ac_func in locale_charset
11497 do :
11498 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
11499 if test "x$ac_cv_func_locale_charset" = xyes; then :
11500 cat >>confdefs.h <<_ACEOF
11501 #define HAVE_LOCALE_CHARSET 1
11502 _ACEOF
11503
11504 fi
11505 done
11506
11507 LIBS="$OLDLIBS"
11508 fi
11509
11510 # The cast to long int works around a bug in the HP C Compiler
11511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11513 # This bug is HP SR number 8606223364.
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
11515 $as_echo_n "checking size of wchar_t... " >&6; }
11516 if ${ac_cv_sizeof_wchar_t+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
11520
11521 else
11522 if test "$ac_cv_type_wchar_t" = yes; then
11523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11525 as_fn_error 77 "cannot compute sizeof (wchar_t)
11526 See \`config.log' for more details" "$LINENO" 5; }
11527 else
11528 ac_cv_sizeof_wchar_t=0
11529 fi
11530 fi
11531
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
11534 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
11535
11536
11537
11538 cat >>confdefs.h <<_ACEOF
11539 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
11540 _ACEOF
11541
11542
11543
11544
11545
11546 if test "$opt_static_link" != yes; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11548 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11549 if ${ac_cv_lib_dl_dlopen+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-ldl $LIBS"
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char dlopen ();
11564 int
11565 main ()
11566 {
11567 return dlopen ();
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_link "$LINENO"; then :
11573 ac_cv_lib_dl_dlopen=yes
11574 else
11575 ac_cv_lib_dl_dlopen=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
11579 LIBS=$ac_check_lib_save_LIBS
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11583 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_LIBDL 1
11586 _ACEOF
11587
11588 LIBS="-ldl $LIBS"
11589
11590 fi
11591
11592 for ac_func in dlopen dlclose dlsym
11593 do :
11594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11596 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11597 cat >>confdefs.h <<_ACEOF
11598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 _ACEOF
11600
11601 fi
11602 done
11603
11604 fi
11605
11606 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11607 /* NetBSD declares sys_siglist in unistd.h. */
11608 #ifdef HAVE_UNISTD_H
11609 # include <unistd.h>
11610 #endif
11611
11612 "
11613 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
11614 ac_have_decl=1
11615 else
11616 ac_have_decl=0
11617 fi
11618
11619 cat >>confdefs.h <<_ACEOF
11620 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11621 _ACEOF
11622
11623
11624
11625 if test "$ac_cv_func_inet_aton" != 'yes'; then
11626
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11628 $as_echo_n "checking for inet_aton... " >&6; }
11629 if ${bash_cv_func_inet_aton+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11634
11635 #include <sys/types.h>
11636 #include <netinet/in.h>
11637 #include <arpa/inet.h>
11638 struct in_addr ap;
11639 int
11640 main ()
11641 {
11642 inet_aton("127.0.0.1", &ap);
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648 bash_cv_func_inet_aton=yes
11649 else
11650 bash_cv_func_inet_aton=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
11656 $as_echo "$bash_cv_func_inet_aton" >&6; }
11657 if test $bash_cv_func_inet_aton = yes; then
11658 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11659
11660 else
11661 case " $LIBOBJS " in
11662 *" inet_aton.$ac_objext "* ) ;;
11663 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
11664 ;;
11665 esac
11666
11667 fi
11668
11669 fi
11670
11671 case "$host_os" in
11672 irix4*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
11673 $as_echo_n "checking for getpwent in -lsun... " >&6; }
11674 if ${ac_cv_lib_sun_getpwent+:} false; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 ac_check_lib_save_LIBS=$LIBS
11678 LIBS="-lsun $LIBS"
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char getpwent ();
11689 int
11690 main ()
11691 {
11692 return getpwent ();
11693 ;
11694 return 0;
11695 }
11696 _ACEOF
11697 if ac_fn_c_try_link "$LINENO"; then :
11698 ac_cv_lib_sun_getpwent=yes
11699 else
11700 ac_cv_lib_sun_getpwent=no
11701 fi
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704 LIBS=$ac_check_lib_save_LIBS
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
11707 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
11708 if test "x$ac_cv_lib_sun_getpwent" = xyes; then :
11709 cat >>confdefs.h <<_ACEOF
11710 #define HAVE_LIBSUN 1
11711 _ACEOF
11712
11713 LIBS="-lsun $LIBS"
11714
11715 fi
11716 ;;
11717 esac
11718
11719 if test "$ac_cv_func_getpeername" = no; then
11720
11721 if test "X$bash_cv_have_socklib" = "X"; then
11722 _bash_needmsg=
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
11725 $as_echo_n "checking for socket library... " >&6; }
11726 _bash_needmsg=yes
11727 fi
11728 if ${bash_cv_have_socklib+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
11732 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
11733 if ${ac_cv_lib_socket_getpeername+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 ac_check_lib_save_LIBS=$LIBS
11737 LIBS="-lsocket -lnsl $LIBS"
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740
11741 /* Override any GCC internal prototype to avoid an error.
11742 Use char because int might match the return type of a GCC
11743 builtin and then its argument prototype would still apply. */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 char getpeername ();
11748 int
11749 main ()
11750 {
11751 return getpeername ();
11752 ;
11753 return 0;
11754 }
11755 _ACEOF
11756 if ac_fn_c_try_link "$LINENO"; then :
11757 ac_cv_lib_socket_getpeername=yes
11758 else
11759 ac_cv_lib_socket_getpeername=no
11760 fi
11761 rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LIBS=$ac_check_lib_save_LIBS
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
11766 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
11767 if test "x$ac_cv_lib_socket_getpeername" = xyes; then :
11768 bash_cv_have_socklib=yes
11769 else
11770 bash_cv_have_socklib=no
11771 fi
11772
11773 fi
11774
11775 if test "X$_bash_needmsg" = Xyes; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
11777 $as_echo "$bash_cv_have_socklib" >&6; }
11778 _bash_needmsg=
11779 fi
11780 if test $bash_cv_have_socklib = yes; then
11781 # check for libnsl, add it to LIBS if present
11782 if test "X$bash_cv_have_libnsl" = "X"; then
11783 _bash_needmsg=
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
11786 $as_echo_n "checking for libnsl... " >&6; }
11787 _bash_needmsg=yes
11788 fi
11789 if ${bash_cv_have_libnsl+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
11793 $as_echo_n "checking for t_open in -lnsl... " >&6; }
11794 if ${ac_cv_lib_nsl_t_open+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 ac_check_lib_save_LIBS=$LIBS
11798 LIBS="-lnsl $LIBS"
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805 #ifdef __cplusplus
11806 extern "C"
11807 #endif
11808 char t_open ();
11809 int
11810 main ()
11811 {
11812 return t_open ();
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 ac_cv_lib_nsl_t_open=yes
11819 else
11820 ac_cv_lib_nsl_t_open=no
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 LIBS=$ac_check_lib_save_LIBS
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
11827 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
11828 if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
11829 bash_cv_have_libnsl=yes
11830 else
11831 bash_cv_have_libnsl=no
11832 fi
11833
11834 fi
11835
11836 if test "X$_bash_needmsg" = Xyes; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
11838 $as_echo "$bash_cv_have_libnsl" >&6; }
11839 _bash_needmsg=
11840 fi
11841 if test $bash_cv_have_libnsl = yes; then
11842 LIBS="-lsocket -lnsl $LIBS"
11843 else
11844 LIBS="-lsocket $LIBS"
11845 fi
11846 $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
11847
11848 $as_echo "#define HAVE_GETPEERNAME 1" >>confdefs.h
11849
11850 fi
11851
11852 fi
11853 if test "$ac_cv_func_gethostbyname" = no; then
11854 if test "X$bash_cv_have_gethostbyname" = "X"; then
11855 _bash_needmsg=yes
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11858 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11859 _bash_needmsg=
11860 fi
11861 if ${bash_cv_have_gethostbyname+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <netdb.h>
11867 int
11868 main ()
11869 {
11870 struct hostent *hp;
11871 hp = gethostbyname("localhost");
11872
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_link "$LINENO"; then :
11878 bash_cv_have_gethostbyname=yes
11879 else
11880 bash_cv_have_gethostbyname=no
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884
11885 fi
11886
11887 if test "X$_bash_needmsg" = Xyes; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11889 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11890 fi
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
11892 $as_echo "$bash_cv_have_gethostbyname" >&6; }
11893 if test "$bash_cv_have_gethostbyname" = yes; then
11894 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
11895
11896 fi
11897
11898 fi
11899
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11901 $as_echo_n "checking type of array argument to getgroups... " >&6; }
11902 if ${ac_cv_type_getgroups+:} false; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 if test "$cross_compiling" = yes; then :
11906 ac_cv_type_getgroups=cross
11907 else
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11910 /* Thanks to Mike Rendell for this test. */
11911 $ac_includes_default
11912 #define NGID 256
11913 #undef MAX
11914 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11915
11916 int
11917 main ()
11918 {
11919 gid_t gidset[NGID];
11920 int i, n;
11921 union { gid_t gval; long int lval; } val;
11922
11923 val.lval = -1;
11924 for (i = 0; i < NGID; i++)
11925 gidset[i] = val.gval;
11926 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11927 gidset);
11928 /* Exit non-zero if getgroups seems to require an array of ints. This
11929 happens when gid_t is short int but getgroups modifies an array
11930 of ints. */
11931 return n > 0 && gidset[n] != val.gval;
11932 }
11933 _ACEOF
11934 if ac_fn_c_try_run "$LINENO"; then :
11935 ac_cv_type_getgroups=gid_t
11936 else
11937 ac_cv_type_getgroups=int
11938 fi
11939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11940 conftest.$ac_objext conftest.beam conftest.$ac_ext
11941 fi
11942
11943 if test $ac_cv_type_getgroups = cross; then
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946 #include <unistd.h>
11947
11948 _ACEOF
11949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11950 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
11951 ac_cv_type_getgroups=gid_t
11952 else
11953 ac_cv_type_getgroups=int
11954 fi
11955 rm -f conftest*
11956
11957 fi
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11960 $as_echo "$ac_cv_type_getgroups" >&6; }
11961
11962 cat >>confdefs.h <<_ACEOF
11963 #define GETGROUPS_T $ac_cv_type_getgroups
11964 _ACEOF
11965
11966
11967 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11968 if test "x$ac_cv_type_off_t" = xyes; then :
11969
11970 else
11971
11972 cat >>confdefs.h <<_ACEOF
11973 #define off_t long int
11974 _ACEOF
11975
11976 fi
11977
11978 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11979 if test "x$ac_cv_type_mode_t" = xyes; then :
11980
11981 else
11982
11983 cat >>confdefs.h <<_ACEOF
11984 #define mode_t int
11985 _ACEOF
11986
11987 fi
11988
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11990 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11991 if ${ac_cv_type_uid_t+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <sys/types.h>
11997
11998 _ACEOF
11999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12000 $EGREP "uid_t" >/dev/null 2>&1; then :
12001 ac_cv_type_uid_t=yes
12002 else
12003 ac_cv_type_uid_t=no
12004 fi
12005 rm -f conftest*
12006
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12009 $as_echo "$ac_cv_type_uid_t" >&6; }
12010 if test $ac_cv_type_uid_t = no; then
12011
12012 $as_echo "#define uid_t int" >>confdefs.h
12013
12014
12015 $as_echo "#define gid_t int" >>confdefs.h
12016
12017 fi
12018
12019 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12020 if test "x$ac_cv_type_pid_t" = xyes; then :
12021
12022 else
12023
12024 cat >>confdefs.h <<_ACEOF
12025 #define pid_t int
12026 _ACEOF
12027
12028 fi
12029
12030 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12031 if test "x$ac_cv_type_size_t" = xyes; then :
12032
12033 else
12034
12035 cat >>confdefs.h <<_ACEOF
12036 #define size_t unsigned int
12037 _ACEOF
12038
12039 fi
12040
12041
12042 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12043 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12044
12045 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
12046
12047 else
12048 for ac_type in 'unsigned int' 'unsigned long int' \
12049 'unsigned long long int'; do
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 $ac_includes_default
12053 int
12054 main ()
12055 {
12056 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
12057 test_array [0] = 0;
12058 return test_array [0];
12059
12060 ;
12061 return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_compile "$LINENO"; then :
12065
12066 cat >>confdefs.h <<_ACEOF
12067 #define uintptr_t $ac_type
12068 _ACEOF
12069
12070 ac_type=
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 test -z "$ac_type" && break
12074 done
12075 fi
12076
12077
12078
12079 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12080 if test "x$ac_cv_type_ssize_t" = xyes; then :
12081
12082 else
12083
12084 cat >>confdefs.h <<_ACEOF
12085 #define ssize_t int
12086 _ACEOF
12087
12088 fi
12089
12090 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
12091 if test "x$ac_cv_type_time_t" = xyes; then :
12092
12093 else
12094
12095 cat >>confdefs.h <<_ACEOF
12096 #define time_t long
12097 _ACEOF
12098
12099 fi
12100
12101
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
12104 $as_echo_n "checking for long long... " >&6; }
12105 if ${bash_cv_type_long_long+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110
12111 long long ll = 1; int i = 63;
12112 int
12113 main ()
12114 {
12115
12116 long long llm = (long long) -1;
12117 return ll << i | ll >> i | llm / ll | llm % ll;
12118
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 if ac_fn_c_try_link "$LINENO"; then :
12124 bash_cv_type_long_long='long long'
12125 else
12126 bash_cv_type_long_long='long'
12127 fi
12128 rm -f core conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5
12132 $as_echo "$bash_cv_type_long_long" >&6; }
12133 if test "$bash_cv_type_long_long" = 'long long'; then
12134 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
12135
12136 fi
12137
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12140 $as_echo_n "checking for unsigned long long... " >&6; }
12141 if ${bash_cv_type_unsigned_long_long+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146
12147 unsigned long long ull = 1; int i = 63;
12148 int
12149 main ()
12150 {
12151
12152 unsigned long long ullmax = (unsigned long long) -1;
12153 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12154
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 bash_cv_type_unsigned_long_long='unsigned long long'
12161 else
12162 bash_cv_type_unsigned_long_long='unsigned long'
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 fi
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5
12168 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
12169 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
12170 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12171
12172 fi
12173
12174
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12176 $as_echo_n "checking return type of signal handlers... " >&6; }
12177 if ${ac_cv_type_signal+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #include <sys/types.h>
12183 #include <signal.h>
12184
12185 int
12186 main ()
12187 {
12188 return *(signal (0, 0)) (0) == 1;
12189 ;
12190 return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_compile "$LINENO"; then :
12194 ac_cv_type_signal=int
12195 else
12196 ac_cv_type_signal=void
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 fi
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12201 $as_echo "$ac_cv_type_signal" >&6; }
12202
12203 cat >>confdefs.h <<_ACEOF
12204 #define RETSIGTYPE $ac_cv_type_signal
12205 _ACEOF
12206
12207
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
12209 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
12210 if ${ac_cv_have_sig_atomic_t+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215
12216 #include <signal.h>
12217
12218 int
12219 main ()
12220 {
12221 sig_atomic_t x;
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 if ac_fn_c_try_link "$LINENO"; then :
12227 ac_cv_have_sig_atomic_t=yes
12228 else
12229 ac_cv_have_sig_atomic_t=no
12230 fi
12231 rm -f core conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
12235 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
12236 if test "$ac_cv_have_sig_atomic_t" = "no"
12237 then
12238 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
12239 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
12240
12241 else
12242
12243 cat >>confdefs.h <<_ACEOF
12244 #define sig_atomic_t int
12245 _ACEOF
12246
12247 fi
12248
12249 fi
12250
12251
12252 # The cast to long int works around a bug in the HP C Compiler
12253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12255 # This bug is HP SR number 8606223364.
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12257 $as_echo_n "checking size of char... " >&6; }
12258 if ${ac_cv_sizeof_char+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12262
12263 else
12264 if test "$ac_cv_type_char" = yes; then
12265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12267 as_fn_error 77 "cannot compute sizeof (char)
12268 See \`config.log' for more details" "$LINENO" 5; }
12269 else
12270 ac_cv_sizeof_char=0
12271 fi
12272 fi
12273
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12276 $as_echo "$ac_cv_sizeof_char" >&6; }
12277
12278
12279
12280 cat >>confdefs.h <<_ACEOF
12281 #define SIZEOF_CHAR $ac_cv_sizeof_char
12282 _ACEOF
12283
12284
12285 # The cast to long int works around a bug in the HP C Compiler
12286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12288 # This bug is HP SR number 8606223364.
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12290 $as_echo_n "checking size of short... " >&6; }
12291 if ${ac_cv_sizeof_short+:} false; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12294 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12295
12296 else
12297 if test "$ac_cv_type_short" = yes; then
12298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12300 as_fn_error 77 "cannot compute sizeof (short)
12301 See \`config.log' for more details" "$LINENO" 5; }
12302 else
12303 ac_cv_sizeof_short=0
12304 fi
12305 fi
12306
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12309 $as_echo "$ac_cv_sizeof_short" >&6; }
12310
12311
12312
12313 cat >>confdefs.h <<_ACEOF
12314 #define SIZEOF_SHORT $ac_cv_sizeof_short
12315 _ACEOF
12316
12317
12318 # The cast to long int works around a bug in the HP C Compiler
12319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12321 # This bug is HP SR number 8606223364.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12323 $as_echo_n "checking size of int... " >&6; }
12324 if ${ac_cv_sizeof_int+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12328
12329 else
12330 if test "$ac_cv_type_int" = yes; then
12331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error 77 "cannot compute sizeof (int)
12334 See \`config.log' for more details" "$LINENO" 5; }
12335 else
12336 ac_cv_sizeof_int=0
12337 fi
12338 fi
12339
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12342 $as_echo "$ac_cv_sizeof_int" >&6; }
12343
12344
12345
12346 cat >>confdefs.h <<_ACEOF
12347 #define SIZEOF_INT $ac_cv_sizeof_int
12348 _ACEOF
12349
12350
12351 # The cast to long int works around a bug in the HP C Compiler
12352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12354 # This bug is HP SR number 8606223364.
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12356 $as_echo_n "checking size of long... " >&6; }
12357 if ${ac_cv_sizeof_long+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12361
12362 else
12363 if test "$ac_cv_type_long" = yes; then
12364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12366 as_fn_error 77 "cannot compute sizeof (long)
12367 See \`config.log' for more details" "$LINENO" 5; }
12368 else
12369 ac_cv_sizeof_long=0
12370 fi
12371 fi
12372
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12375 $as_echo "$ac_cv_sizeof_long" >&6; }
12376
12377
12378
12379 cat >>confdefs.h <<_ACEOF
12380 #define SIZEOF_LONG $ac_cv_sizeof_long
12381 _ACEOF
12382
12383
12384 # The cast to long int works around a bug in the HP C Compiler
12385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12387 # This bug is HP SR number 8606223364.
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
12389 $as_echo_n "checking size of char *... " >&6; }
12390 if ${ac_cv_sizeof_char_p+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
12394
12395 else
12396 if test "$ac_cv_type_char_p" = yes; then
12397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12399 as_fn_error 77 "cannot compute sizeof (char *)
12400 See \`config.log' for more details" "$LINENO" 5; }
12401 else
12402 ac_cv_sizeof_char_p=0
12403 fi
12404 fi
12405
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
12408 $as_echo "$ac_cv_sizeof_char_p" >&6; }
12409
12410
12411
12412 cat >>confdefs.h <<_ACEOF
12413 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
12414 _ACEOF
12415
12416
12417 # The cast to long int works around a bug in the HP C Compiler
12418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12420 # This bug is HP SR number 8606223364.
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12422 $as_echo_n "checking size of double... " >&6; }
12423 if ${ac_cv_sizeof_double+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12427
12428 else
12429 if test "$ac_cv_type_double" = yes; then
12430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12432 as_fn_error 77 "cannot compute sizeof (double)
12433 See \`config.log' for more details" "$LINENO" 5; }
12434 else
12435 ac_cv_sizeof_double=0
12436 fi
12437 fi
12438
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12441 $as_echo "$ac_cv_sizeof_double" >&6; }
12442
12443
12444
12445 cat >>confdefs.h <<_ACEOF
12446 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12447 _ACEOF
12448
12449
12450 # The cast to long int works around a bug in the HP C Compiler
12451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12453 # This bug is HP SR number 8606223364.
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12455 $as_echo_n "checking size of long long... " >&6; }
12456 if ${ac_cv_sizeof_long_long+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12460
12461 else
12462 if test "$ac_cv_type_long_long" = yes; then
12463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12465 as_fn_error 77 "cannot compute sizeof (long long)
12466 See \`config.log' for more details" "$LINENO" 5; }
12467 else
12468 ac_cv_sizeof_long_long=0
12469 fi
12470 fi
12471
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12474 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12475
12476
12477
12478 cat >>confdefs.h <<_ACEOF
12479 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12480 _ACEOF
12481
12482
12483
12484 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12485 if test "x$ac_cv_type_u_int" = xyes; then :
12486
12487 else
12488
12489 cat >>confdefs.h <<_ACEOF
12490 #define u_int unsigned int
12491 _ACEOF
12492
12493 fi
12494
12495 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12496 if test "x$ac_cv_type_u_long" = xyes; then :
12497
12498 else
12499
12500 cat >>confdefs.h <<_ACEOF
12501 #define u_long unsigned long
12502 _ACEOF
12503
12504 fi
12505
12506
12507
12508 if test "$ac_cv_sizeof_short" = 2; then
12509 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12510 if test "x$ac_cv_type_bits16_t" = xyes; then :
12511
12512 else
12513
12514 cat >>confdefs.h <<_ACEOF
12515 #define bits16_t short
12516 _ACEOF
12517
12518 fi
12519
12520 elif test "$ac_cv_sizeof_char" = 2; then
12521 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12522 if test "x$ac_cv_type_bits16_t" = xyes; then :
12523
12524 else
12525
12526 cat >>confdefs.h <<_ACEOF
12527 #define bits16_t char
12528 _ACEOF
12529
12530 fi
12531
12532 else
12533 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12534 if test "x$ac_cv_type_bits16_t" = xyes; then :
12535
12536 else
12537
12538 cat >>confdefs.h <<_ACEOF
12539 #define bits16_t short
12540 _ACEOF
12541
12542 fi
12543
12544 fi
12545
12546
12547 if test "$ac_cv_sizeof_short" = 2; then
12548 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12549 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12550
12551 else
12552
12553 cat >>confdefs.h <<_ACEOF
12554 #define u_bits16_t unsigned short
12555 _ACEOF
12556
12557 fi
12558
12559 elif test "$ac_cv_sizeof_char" = 2; then
12560 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12561 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12562
12563 else
12564
12565 cat >>confdefs.h <<_ACEOF
12566 #define u_bits16_t unsigned char
12567 _ACEOF
12568
12569 fi
12570
12571 else
12572 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12573 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12574
12575 else
12576
12577 cat >>confdefs.h <<_ACEOF
12578 #define u_bits16_t unsigned short
12579 _ACEOF
12580
12581 fi
12582
12583 fi
12584
12585
12586 if test "$ac_cv_sizeof_int" = 4; then
12587 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12588 if test "x$ac_cv_type_bits32_t" = xyes; then :
12589
12590 else
12591
12592 cat >>confdefs.h <<_ACEOF
12593 #define bits32_t int
12594 _ACEOF
12595
12596 fi
12597
12598 elif test "$ac_cv_sizeof_long" = 4; then
12599 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12600 if test "x$ac_cv_type_bits32_t" = xyes; then :
12601
12602 else
12603
12604 cat >>confdefs.h <<_ACEOF
12605 #define bits32_t long
12606 _ACEOF
12607
12608 fi
12609
12610 else
12611 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12612 if test "x$ac_cv_type_bits32_t" = xyes; then :
12613
12614 else
12615
12616 cat >>confdefs.h <<_ACEOF
12617 #define bits32_t int
12618 _ACEOF
12619
12620 fi
12621
12622 fi
12623
12624
12625 if test "$ac_cv_sizeof_int" = 4; then
12626 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12627 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12628
12629 else
12630
12631 cat >>confdefs.h <<_ACEOF
12632 #define u_bits32_t unsigned int
12633 _ACEOF
12634
12635 fi
12636
12637 elif test "$ac_cv_sizeof_long" = 4; then
12638 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12639 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12640
12641 else
12642
12643 cat >>confdefs.h <<_ACEOF
12644 #define u_bits32_t unsigned long
12645 _ACEOF
12646
12647 fi
12648
12649 else
12650 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12651 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12652
12653 else
12654
12655 cat >>confdefs.h <<_ACEOF
12656 #define u_bits32_t unsigned int
12657 _ACEOF
12658
12659 fi
12660
12661 fi
12662
12663
12664 if test "$ac_cv_sizeof_char_p" = 8; then
12665 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12666 if test "x$ac_cv_type_bits64_t" = xyes; then :
12667
12668 else
12669
12670 cat >>confdefs.h <<_ACEOF
12671 #define bits64_t char *
12672 _ACEOF
12673
12674 fi
12675
12676 elif test "$ac_cv_sizeof_double" = 8; then
12677 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12678 if test "x$ac_cv_type_bits64_t" = xyes; then :
12679
12680 else
12681
12682 cat >>confdefs.h <<_ACEOF
12683 #define bits64_t double
12684 _ACEOF
12685
12686 fi
12687
12688 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
12689 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12690 if test "x$ac_cv_type_bits64_t" = xyes; then :
12691
12692 else
12693
12694 cat >>confdefs.h <<_ACEOF
12695 #define bits64_t long long
12696 _ACEOF
12697
12698 fi
12699
12700 elif test "$ac_cv_sizeof_long" = 8; then
12701 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12702 if test "x$ac_cv_type_bits64_t" = xyes; then :
12703
12704 else
12705
12706 cat >>confdefs.h <<_ACEOF
12707 #define bits64_t long
12708 _ACEOF
12709
12710 fi
12711
12712 else
12713 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12714 if test "x$ac_cv_type_bits64_t" = xyes; then :
12715
12716 else
12717
12718 cat >>confdefs.h <<_ACEOF
12719 #define bits64_t double
12720 _ACEOF
12721
12722 fi
12723
12724 fi
12725
12726
12727
12728 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
12729 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12730 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12731
12732 else
12733
12734 cat >>confdefs.h <<_ACEOF
12735 #define ptrdiff_t int
12736 _ACEOF
12737
12738 fi
12739
12740 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
12741 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12742 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12743
12744 else
12745
12746 cat >>confdefs.h <<_ACEOF
12747 #define ptrdiff_t long
12748 _ACEOF
12749
12750 fi
12751
12752 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
12753 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12754 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12755
12756 else
12757
12758 cat >>confdefs.h <<_ACEOF
12759 #define ptrdiff_t long long
12760 _ACEOF
12761
12762 fi
12763
12764 else
12765 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12766 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12767
12768 else
12769
12770 cat >>confdefs.h <<_ACEOF
12771 #define ptrdiff_t int
12772 _ACEOF
12773
12774 fi
12775
12776 fi
12777
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12780 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12781 if ${ac_cv_header_stat_broken+:} false; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <sys/types.h>
12787 #include <sys/stat.h>
12788
12789 #if defined S_ISBLK && defined S_IFDIR
12790 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12791 #endif
12792
12793 #if defined S_ISBLK && defined S_IFCHR
12794 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12795 #endif
12796
12797 #if defined S_ISLNK && defined S_IFREG
12798 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12799 #endif
12800
12801 #if defined S_ISSOCK && defined S_IFREG
12802 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12803 #endif
12804
12805 _ACEOF
12806 if ac_fn_c_try_compile "$LINENO"; then :
12807 ac_cv_header_stat_broken=no
12808 else
12809 ac_cv_header_stat_broken=yes
12810 fi
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812 fi
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12814 $as_echo "$ac_cv_header_stat_broken" >&6; }
12815 if test $ac_cv_header_stat_broken = yes; then
12816
12817 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12818
12819 fi
12820
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
12823 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
12824 if ${ac_cv_sys_interpreter+:} false; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 echo '#! /bin/cat
12828 exit 69
12829 ' >conftest
12830 chmod u+x conftest
12831 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
12832 if test $? -ne 69; then
12833 ac_cv_sys_interpreter=yes
12834 else
12835 ac_cv_sys_interpreter=no
12836 fi
12837 rm -f conftest
12838 fi
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
12840 $as_echo "$ac_cv_sys_interpreter" >&6; }
12841 interpval=$ac_cv_sys_interpreter
12842
12843 if test $ac_cv_sys_interpreter = yes; then
12844 $as_echo "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
12845
12846 fi
12847
12848 if test "$ac_cv_func_lstat" = "no"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
12850 $as_echo_n "checking for lstat... " >&6; }
12851 if ${bash_cv_func_lstat+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856
12857 #include <sys/types.h>
12858 #include <sys/stat.h>
12859
12860 int
12861 main ()
12862 {
12863 lstat(".",(struct stat *)0);
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 bash_cv_func_lstat=yes
12870 else
12871 bash_cv_func_lstat=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
12877 $as_echo "$bash_cv_func_lstat" >&6; }
12878 if test $bash_cv_func_lstat = yes; then
12879 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
12880
12881 fi
12882
12883 fi
12884
12885
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
12887 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
12888 if ${bash_cv_func_ctype_nonascii+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test "$cross_compiling" = yes; then :
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
12893 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
12894 bash_cv_func_ctype_nonascii=no
12895
12896 else
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899
12900 #ifdef HAVE_LOCALE_H
12901 #include <locale.h>
12902 #endif
12903 #include <stdio.h>
12904 #include <ctype.h>
12905
12906 main(c, v)
12907 int c;
12908 char *v[];
12909 {
12910 char *deflocale;
12911 unsigned char x;
12912 int r1, r2;
12913
12914 #ifdef HAVE_SETLOCALE
12915 /* We take a shot here. If that locale is not known, try the
12916 system default. We try this one because '\342' (226) is
12917 known to be a printable character in that locale. */
12918 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
12919 if (deflocale == 0)
12920 deflocale = setlocale(LC_ALL, "");
12921 #endif
12922
12923 x = '\342';
12924 r1 = isprint(x);
12925 x -= 128;
12926 r2 = isprint(x);
12927 exit (r1 == 0 || r2 == 0);
12928 }
12929
12930 _ACEOF
12931 if ac_fn_c_try_run "$LINENO"; then :
12932 bash_cv_func_ctype_nonascii=yes
12933 else
12934 bash_cv_func_ctype_nonascii=no
12935 fi
12936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12937 conftest.$ac_objext conftest.beam conftest.$ac_ext
12938 fi
12939
12940 fi
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
12943 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
12944 if test $bash_cv_func_ctype_nonascii = yes; then
12945 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
12946
12947 fi
12948
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
12950 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
12951 if ${bash_cv_dup2_broken+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 if test "$cross_compiling" = yes; then :
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12956 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12957 bash_cv_dup2_broken=no
12958 else
12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12961
12962 #include <sys/types.h>
12963 #include <fcntl.h>
12964 main()
12965 {
12966 int fd1, fd2, fl;
12967 fd1 = open("/dev/null", 2);
12968 if (fcntl(fd1, 2, 1) < 0)
12969 exit(1);
12970 fd2 = dup2(fd1, 1);
12971 if (fd2 < 0)
12972 exit(2);
12973 fl = fcntl(fd2, 1, 0);
12974 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12975 exit(fl != 1);
12976 }
12977
12978 _ACEOF
12979 if ac_fn_c_try_run "$LINENO"; then :
12980 bash_cv_dup2_broken=yes
12981 else
12982 bash_cv_dup2_broken=no
12983 fi
12984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12985 conftest.$ac_objext conftest.beam conftest.$ac_ext
12986 fi
12987
12988
12989 fi
12990
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
12992 $as_echo "$bash_cv_dup2_broken" >&6; }
12993 if test $bash_cv_dup2_broken = yes; then
12994 $as_echo "#define DUP2_BROKEN 1" >>confdefs.h
12995
12996 fi
12997
12998
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
13000 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
13001 if ${bash_cv_pgrp_pipe+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test "$cross_compiling" = yes; then :
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
13006 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
13007 bash_cv_pgrp_pipe=no
13008 else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011
13012 #ifdef HAVE_UNISTD_H
13013 # include <unistd.h>
13014 #endif
13015 main()
13016 {
13017 # ifdef GETPGRP_VOID
13018 # define getpgID() getpgrp()
13019 # else
13020 # define getpgID() getpgrp(0)
13021 # define setpgid(x,y) setpgrp(x,y)
13022 # endif
13023 int pid1, pid2, fds[2];
13024 int status;
13025 char ok;
13026
13027 switch (pid1 = fork()) {
13028 case -1:
13029 exit(1);
13030 case 0:
13031 setpgid(0, getpid());
13032 exit(0);
13033 }
13034 setpgid(pid1, pid1);
13035
13036 sleep(2); /* let first child die */
13037
13038 if (pipe(fds) < 0)
13039 exit(2);
13040
13041 switch (pid2 = fork()) {
13042 case -1:
13043 exit(3);
13044 case 0:
13045 setpgid(0, pid1);
13046 ok = getpgID() == pid1;
13047 write(fds[1], &ok, 1);
13048 exit(0);
13049 }
13050 setpgid(pid2, pid1);
13051
13052 close(fds[1]);
13053 if (read(fds[0], &ok, 1) != 1)
13054 exit(4);
13055 wait(&status);
13056 wait(&status);
13057 exit(ok ? 0 : 5);
13058 }
13059
13060 _ACEOF
13061 if ac_fn_c_try_run "$LINENO"; then :
13062 bash_cv_pgrp_pipe=no
13063 else
13064 bash_cv_pgrp_pipe=yes
13065 fi
13066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13067 conftest.$ac_objext conftest.beam conftest.$ac_ext
13068 fi
13069
13070
13071 fi
13072
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
13074 $as_echo "$bash_cv_pgrp_pipe" >&6; }
13075 if test $bash_cv_pgrp_pipe = yes; then
13076 $as_echo "#define PGRP_PIPE 1" >>confdefs.h
13077
13078 fi
13079
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
13082 $as_echo_n "checking for type of signal functions... " >&6; }
13083 if ${bash_cv_signal_vintage+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #include <signal.h>
13090 int
13091 main ()
13092 {
13093
13094 sigset_t ss;
13095 struct sigaction sa;
13096 sigemptyset(&ss); sigsuspend(&ss);
13097 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13098 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13099
13100 ;
13101 return 0;
13102 }
13103 _ACEOF
13104 if ac_fn_c_try_link "$LINENO"; then :
13105 bash_cv_signal_vintage=posix
13106 else
13107
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 #include <signal.h>
13111 int
13112 main ()
13113 {
13114
13115 int mask = sigmask(SIGINT);
13116 sigsetmask(mask); sigblock(mask); sigpause(mask);
13117
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_link "$LINENO"; then :
13123 bash_cv_signal_vintage=4.2bsd
13124 else
13125
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128
13129 #include <signal.h>
13130 RETSIGTYPE foo() { }
13131 int
13132 main ()
13133 {
13134
13135 int mask = sigmask(SIGINT);
13136 sigset(SIGINT, foo); sigrelse(SIGINT);
13137 sighold(SIGINT); sigpause(SIGINT);
13138
13139 ;
13140 return 0;
13141 }
13142 _ACEOF
13143 if ac_fn_c_try_link "$LINENO"; then :
13144 bash_cv_signal_vintage=svr3
13145 else
13146 bash_cv_signal_vintage=v7
13147
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159
13160 fi
13161
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
13163 $as_echo "$bash_cv_signal_vintage" >&6; }
13164 if test "$bash_cv_signal_vintage" = posix; then
13165 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
13166
13167 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13168 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
13169
13170 elif test "$bash_cv_signal_vintage" = svr3; then
13171 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
13172
13173 fi
13174
13175
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
13177 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
13178 if ${bash_cv_sys_errlist+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 #include <errno.h>
13184 int
13185 main ()
13186 {
13187 extern char *sys_errlist[];
13188 extern int sys_nerr;
13189 char *msg = sys_errlist[sys_nerr - 1];
13190 ;
13191 return 0;
13192 }
13193 _ACEOF
13194 if ac_fn_c_try_link "$LINENO"; then :
13195 bash_cv_sys_errlist=yes
13196 else
13197 bash_cv_sys_errlist=no
13198 fi
13199 rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
13203 $as_echo "$bash_cv_sys_errlist" >&6; }
13204 if test $bash_cv_sys_errlist = yes; then
13205 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
13206
13207 fi
13208
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
13211 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
13212 if ${bash_cv_sys_siglist+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 if test "$cross_compiling" = yes; then :
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
13217 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
13218 bash_cv_sys_siglist=no
13219 else
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222
13223 #include <sys/types.h>
13224 #include <signal.h>
13225 #ifdef HAVE_UNISTD_H
13226 #include <unistd.h>
13227 #endif
13228 #if !HAVE_DECL_SYS_SIGLIST
13229 extern char *sys_siglist[];
13230 #endif
13231 main()
13232 {
13233 char *msg = sys_siglist[2];
13234 exit(msg == 0);
13235 }
13236 _ACEOF
13237 if ac_fn_c_try_run "$LINENO"; then :
13238 bash_cv_sys_siglist=yes
13239 else
13240 bash_cv_sys_siglist=no
13241 fi
13242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13243 conftest.$ac_objext conftest.beam conftest.$ac_ext
13244 fi
13245
13246 fi
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
13249 $as_echo "$bash_cv_sys_siglist" >&6; }
13250 if test $bash_cv_sys_siglist = yes; then
13251 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
13252
13253 fi
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
13256 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
13257 if ${bash_cv_decl_under_sys_siglist+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262
13263 #include <sys/types.h>
13264 #include <signal.h>
13265 #ifdef HAVE_UNISTD_H
13266 #include <unistd.h>
13267 #endif
13268 int
13269 main ()
13270 {
13271 char *msg = _sys_siglist[2];
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 if ac_fn_c_try_compile "$LINENO"; then :
13277 bash_cv_decl_under_sys_siglist=yes
13278 else
13279 bash_cv_decl_under_sys_siglist=no
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
13284 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
13285 if test $bash_cv_decl_under_sys_siglist = yes; then
13286 $as_echo "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
13287
13288 fi
13289
13290
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
13292 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
13293 if ${bash_cv_under_sys_siglist+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 if test "$cross_compiling" = yes; then :
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
13298 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
13299 bash_cv_under_sys_siglist=no
13300 else
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303
13304 #include <sys/types.h>
13305 #include <signal.h>
13306 #ifdef HAVE_UNISTD_H
13307 #include <unistd.h>
13308 #endif
13309 #ifndef UNDER_SYS_SIGLIST_DECLARED
13310 extern char *_sys_siglist[];
13311 #endif
13312 main()
13313 {
13314 char *msg = (char *)_sys_siglist[2];
13315 exit(msg == 0);
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_run "$LINENO"; then :
13319 bash_cv_under_sys_siglist=yes
13320 else
13321 bash_cv_under_sys_siglist=no
13322 fi
13323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13324 conftest.$ac_objext conftest.beam conftest.$ac_ext
13325 fi
13326
13327 fi
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
13330 $as_echo "$bash_cv_under_sys_siglist" >&6; }
13331 if test $bash_cv_under_sys_siglist = yes; then
13332 $as_echo "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
13333
13334 fi
13335
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
13338 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
13339 if ${bash_cv_void_sighandler+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13344 #include <sys/types.h>
13345 #include <signal.h>
13346 #ifdef signal
13347 #undef signal
13348 #endif
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 void (*signal ()) ();
13353 int
13354 main ()
13355 {
13356 int i;
13357 ;
13358 return 0;
13359 }
13360 _ACEOF
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 bash_cv_void_sighandler=yes
13363 else
13364 bash_cv_void_sighandler=no
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
13369 $as_echo "$bash_cv_void_sighandler" >&6; }
13370 if test $bash_cv_void_sighandler = yes; then
13371 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
13372
13373 fi
13374
13375
13376
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
13378 $as_echo_n "checking for clock_t... " >&6; }
13379 if ${bash_cv_type_clock_t+:} false; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384 #include <sys/types.h>
13385 #if STDC_HEADERS
13386 #include <stdlib.h>
13387 #include <stddef.h>
13388 #endif
13389 #if HAVE_INTTYPES_H
13390 #include <inttypes.h>
13391 #endif
13392 #if HAVE_STDINT_H
13393 #include <stdint.h>
13394 #endif
13395 #include <sys/times.h>
13396
13397 _ACEOF
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "clock_t" >/dev/null 2>&1; then :
13400 bash_cv_type_clock_t=yes
13401 else
13402 bash_cv_type_clock_t=no
13403 fi
13404 rm -f conftest*
13405
13406 fi
13407
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
13409 $as_echo "$bash_cv_type_clock_t" >&6; }
13410
13411 if test $bash_cv_type_clock_t = no; then
13412 cat >>confdefs.h <<_ACEOF
13413 #define clock_t long
13414 _ACEOF
13415
13416 fi
13417
13418
13419
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
13421 $as_echo_n "checking for sigset_t... " >&6; }
13422 if ${bash_cv_type_sigset_t+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 #include <sys/types.h>
13428 #if STDC_HEADERS
13429 #include <stdlib.h>
13430 #include <stddef.h>
13431 #endif
13432 #if HAVE_INTTYPES_H
13433 #include <inttypes.h>
13434 #endif
13435 #if HAVE_STDINT_H
13436 #include <stdint.h>
13437 #endif
13438 #include <signal.h>
13439
13440 _ACEOF
13441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13442 $EGREP "sigset_t" >/dev/null 2>&1; then :
13443 bash_cv_type_sigset_t=yes
13444 else
13445 bash_cv_type_sigset_t=no
13446 fi
13447 rm -f conftest*
13448
13449 fi
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
13452 $as_echo "$bash_cv_type_sigset_t" >&6; }
13453
13454 if test $bash_cv_type_sigset_t = no; then
13455 cat >>confdefs.h <<_ACEOF
13456 #define sigset_t int
13457 _ACEOF
13458
13459 fi
13460
13461
13462
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
13464 $as_echo_n "checking for sig_atomic_t... " >&6; }
13465 if ${bash_cv_type_sig_atomic_t+:} false; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 #include <sys/types.h>
13471 #if STDC_HEADERS
13472 #include <stdlib.h>
13473 #include <stddef.h>
13474 #endif
13475 #if HAVE_INTTYPES_H
13476 #include <inttypes.h>
13477 #endif
13478 #if HAVE_STDINT_H
13479 #include <stdint.h>
13480 #endif
13481 #include <signal.h>
13482
13483 _ACEOF
13484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13485 $EGREP "sig_atomic_t" >/dev/null 2>&1; then :
13486 bash_cv_type_sig_atomic_t=yes
13487 else
13488 bash_cv_type_sig_atomic_t=no
13489 fi
13490 rm -f conftest*
13491
13492 fi
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5
13495 $as_echo "$bash_cv_type_sig_atomic_t" >&6; }
13496
13497 if test $bash_cv_type_sig_atomic_t = no; then
13498 cat >>confdefs.h <<_ACEOF
13499 #define sig_atomic_t int
13500 _ACEOF
13501
13502 fi
13503
13504
13505
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
13507 $as_echo_n "checking for quad_t... " >&6; }
13508 if ${bash_cv_type_quad_t+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <sys/types.h>
13514 #if STDC_HEADERS
13515 #include <stdlib.h>
13516 #include <stddef.h>
13517 #endif
13518 #if HAVE_INTTYPES_H
13519 #include <inttypes.h>
13520 #endif
13521 #if HAVE_STDINT_H
13522 #include <stdint.h>
13523 #endif
13524
13525
13526 _ACEOF
13527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528 $EGREP "quad_t" >/dev/null 2>&1; then :
13529 bash_cv_type_quad_t=yes
13530 else
13531 bash_cv_type_quad_t=no
13532 fi
13533 rm -f conftest*
13534
13535 fi
13536
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5
13538 $as_echo "$bash_cv_type_quad_t" >&6; }
13539 if test $bash_cv_type_quad_t = yes; then
13540 $as_echo "#define HAVE_QUAD_T 1" >>confdefs.h
13541
13542 fi
13543 if test $bash_cv_type_quad_t = no; then
13544 cat >>confdefs.h <<_ACEOF
13545 #define quad_t long
13546 _ACEOF
13547
13548 fi
13549
13550
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13553 $as_echo_n "checking for intmax_t... " >&6; }
13554 if ${bash_cv_type_intmax_t+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <sys/types.h>
13560 #if STDC_HEADERS
13561 #include <stdlib.h>
13562 #include <stddef.h>
13563 #endif
13564 #if HAVE_INTTYPES_H
13565 #include <inttypes.h>
13566 #endif
13567 #if HAVE_STDINT_H
13568 #include <stdint.h>
13569 #endif
13570
13571
13572 _ACEOF
13573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13574 $EGREP "intmax_t" >/dev/null 2>&1; then :
13575 bash_cv_type_intmax_t=yes
13576 else
13577 bash_cv_type_intmax_t=no
13578 fi
13579 rm -f conftest*
13580
13581 fi
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5
13584 $as_echo "$bash_cv_type_intmax_t" >&6; }
13585
13586 if test $bash_cv_type_intmax_t = no; then
13587 cat >>confdefs.h <<_ACEOF
13588 #define intmax_t $bash_cv_type_long_long
13589 _ACEOF
13590
13591 fi
13592
13593
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
13596 $as_echo_n "checking for uintmax_t... " >&6; }
13597 if ${bash_cv_type_uintmax_t+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 #include <sys/types.h>
13603 #if STDC_HEADERS
13604 #include <stdlib.h>
13605 #include <stddef.h>
13606 #endif
13607 #if HAVE_INTTYPES_H
13608 #include <inttypes.h>
13609 #endif
13610 #if HAVE_STDINT_H
13611 #include <stdint.h>
13612 #endif
13613
13614
13615 _ACEOF
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "uintmax_t" >/dev/null 2>&1; then :
13618 bash_cv_type_uintmax_t=yes
13619 else
13620 bash_cv_type_uintmax_t=no
13621 fi
13622 rm -f conftest*
13623
13624 fi
13625
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5
13627 $as_echo "$bash_cv_type_uintmax_t" >&6; }
13628
13629 if test $bash_cv_type_uintmax_t = no; then
13630 cat >>confdefs.h <<_ACEOF
13631 #define uintmax_t $bash_cv_type_unsigned_long_long
13632 _ACEOF
13633
13634 fi
13635
13636 if test "$ac_cv_header_sys_socket_h" = "yes"; then
13637
13638
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13640 $as_echo_n "checking for socklen_t... " >&6; }
13641 if ${bash_cv_type_socklen_t+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 #include <sys/types.h>
13647 #if STDC_HEADERS
13648 #include <stdlib.h>
13649 #include <stddef.h>
13650 #endif
13651 #if HAVE_INTTYPES_H
13652 #include <inttypes.h>
13653 #endif
13654 #if HAVE_STDINT_H
13655 #include <stdint.h>
13656 #endif
13657 #include <sys/socket.h>
13658
13659 _ACEOF
13660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13661 $EGREP "socklen_t" >/dev/null 2>&1; then :
13662 bash_cv_type_socklen_t=yes
13663 else
13664 bash_cv_type_socklen_t=no
13665 fi
13666 rm -f conftest*
13667
13668 fi
13669
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
13671 $as_echo "$bash_cv_type_socklen_t" >&6; }
13672 if test $bash_cv_type_socklen_t = yes; then
13673 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
13674
13675 fi
13676 if test $bash_cv_type_socklen_t = no; then
13677 cat >>confdefs.h <<_ACEOF
13678 #define socklen_t unsigned int
13679 _ACEOF
13680
13681 fi
13682
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
13685 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
13686 if ${bash_cv_type_rlimit+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 #include <sys/types.h>
13692 #include <sys/resource.h>
13693 int
13694 main ()
13695 {
13696 rlim_t xxx;
13697 ;
13698 return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702 bash_cv_type_rlimit=rlim_t
13703 else
13704
13705 if test "$cross_compiling" = yes; then :
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
13707 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
13708 bash_cv_type_rlimit=long
13709 else
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712
13713 #include <sys/types.h>
13714 #include <sys/time.h>
13715 #include <sys/resource.h>
13716 main()
13717 {
13718 #ifdef HAVE_QUAD_T
13719 struct rlimit rl;
13720 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
13721 exit(0);
13722 #endif
13723 exit(1);
13724 }
13725 _ACEOF
13726 if ac_fn_c_try_run "$LINENO"; then :
13727 bash_cv_type_rlimit=quad_t
13728 else
13729 bash_cv_type_rlimit=long
13730 fi
13731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13732 conftest.$ac_objext conftest.beam conftest.$ac_ext
13733 fi
13734
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737
13738 fi
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
13741 $as_echo "$bash_cv_type_rlimit" >&6; }
13742 if test $bash_cv_type_rlimit = quad_t; then
13743 $as_echo "#define RLIMTYPE quad_t" >>confdefs.h
13744
13745 elif test $bash_cv_type_rlimit = rlim_t; then
13746 $as_echo "#define RLIMTYPE rlim_t" >>confdefs.h
13747
13748 fi
13749
13750
13751 # The cast to long int works around a bug in the HP C Compiler
13752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13754 # This bug is HP SR number 8606223364.
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
13756 $as_echo_n "checking size of intmax_t... " >&6; }
13757 if ${ac_cv_sizeof_intmax_t+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
13761
13762 else
13763 if test "$ac_cv_type_intmax_t" = yes; then
13764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13766 as_fn_error 77 "cannot compute sizeof (intmax_t)
13767 See \`config.log' for more details" "$LINENO" 5; }
13768 else
13769 ac_cv_sizeof_intmax_t=0
13770 fi
13771 fi
13772
13773 fi
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
13775 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
13776
13777
13778
13779 cat >>confdefs.h <<_ACEOF
13780 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
13781 _ACEOF
13782
13783
13784
13785
13786 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
13787 #include <sys/types.h>
13788 #include <termios.h>
13789
13790 "
13791 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
13792 $as_echo "#define TERMIOS_LDISC 1" >>confdefs.h
13793
13794 fi
13795
13796
13797
13798 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
13799 #include <sys/types.h>
13800 #include <termio.h>
13801
13802 "
13803 if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
13804 $as_echo "#define TERMIO_LDISC 1" >>confdefs.h
13805
13806 fi
13807
13808
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
13811 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
13812 if ${bash_cv_dirent_has_dino+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817
13818 #include <stdio.h>
13819 #include <sys/types.h>
13820 #ifdef HAVE_UNISTD_H
13821 # include <unistd.h>
13822 #endif /* HAVE_UNISTD_H */
13823 #if defined(HAVE_DIRENT_H)
13824 # include <dirent.h>
13825 #else
13826 # define dirent direct
13827 # ifdef HAVE_SYS_NDIR_H
13828 # include <sys/ndir.h>
13829 # endif /* SYSNDIR */
13830 # ifdef HAVE_SYS_DIR_H
13831 # include <sys/dir.h>
13832 # endif /* SYSDIR */
13833 # ifdef HAVE_NDIR_H
13834 # include <ndir.h>
13835 # endif
13836 #endif /* HAVE_DIRENT_H */
13837
13838 int
13839 main ()
13840 {
13841
13842 struct dirent d; int z; z = d.d_ino;
13843
13844 ;
13845 return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_compile "$LINENO"; then :
13849 bash_cv_dirent_has_dino=yes
13850 else
13851 bash_cv_dirent_has_dino=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 fi
13855
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
13857 $as_echo "$bash_cv_dirent_has_dino" >&6; }
13858 if test $bash_cv_dirent_has_dino = yes; then
13859 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
13860
13861 fi
13862
13863
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
13865 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
13866 if ${bash_cv_dirent_has_d_fileno+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871
13872 #include <stdio.h>
13873 #include <sys/types.h>
13874 #ifdef HAVE_UNISTD_H
13875 # include <unistd.h>
13876 #endif /* HAVE_UNISTD_H */
13877 #if defined(HAVE_DIRENT_H)
13878 # include <dirent.h>
13879 #else
13880 # define dirent direct
13881 # ifdef HAVE_SYS_NDIR_H
13882 # include <sys/ndir.h>
13883 # endif /* SYSNDIR */
13884 # ifdef HAVE_SYS_DIR_H
13885 # include <sys/dir.h>
13886 # endif /* SYSDIR */
13887 # ifdef HAVE_NDIR_H
13888 # include <ndir.h>
13889 # endif
13890 #endif /* HAVE_DIRENT_H */
13891
13892 int
13893 main ()
13894 {
13895
13896 struct dirent d; int z; z = d.d_fileno;
13897
13898 ;
13899 return 0;
13900 }
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 bash_cv_dirent_has_d_fileno=yes
13904 else
13905 bash_cv_dirent_has_d_fileno=no
13906 fi
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 fi
13909
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
13911 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
13912 if test $bash_cv_dirent_has_d_fileno = yes; then
13913 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
13914
13915 fi
13916
13917
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
13919 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13920 if ${bash_cv_dirent_has_d_namlen+:} false; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13925
13926 #include <stdio.h>
13927 #include <sys/types.h>
13928 #ifdef HAVE_UNISTD_H
13929 # include <unistd.h>
13930 #endif /* HAVE_UNISTD_H */
13931 #if defined(HAVE_DIRENT_H)
13932 # include <dirent.h>
13933 #else
13934 # define dirent direct
13935 # ifdef HAVE_SYS_NDIR_H
13936 # include <sys/ndir.h>
13937 # endif /* SYSNDIR */
13938 # ifdef HAVE_SYS_DIR_H
13939 # include <sys/dir.h>
13940 # endif /* SYSDIR */
13941 # ifdef HAVE_NDIR_H
13942 # include <ndir.h>
13943 # endif
13944 #endif /* HAVE_DIRENT_H */
13945
13946 int
13947 main ()
13948 {
13949
13950 struct dirent d; int z; z = d.d_namlen;
13951
13952 ;
13953 return 0;
13954 }
13955 _ACEOF
13956 if ac_fn_c_try_compile "$LINENO"; then :
13957 bash_cv_dirent_has_d_namlen=yes
13958 else
13959 bash_cv_dirent_has_d_namlen=no
13960 fi
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 fi
13963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
13965 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
13966 if test $bash_cv_dirent_has_d_namlen = yes; then
13967 $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
13968
13969 fi
13970
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13972 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
13973 if ${bash_cv_struct_winsize_header+:} false; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978 #include <sys/types.h>
13979 #include <sys/ioctl.h>
13980 int
13981 main ()
13982 {
13983 struct winsize x;
13984 ;
13985 return 0;
13986 }
13987 _ACEOF
13988 if ac_fn_c_try_compile "$LINENO"; then :
13989 bash_cv_struct_winsize_header=ioctl_h
13990 else
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993 #include <sys/types.h>
13994 #include <termios.h>
13995 int
13996 main ()
13997 {
13998 struct winsize x;
13999 ;
14000 return 0;
14001 }
14002 _ACEOF
14003 if ac_fn_c_try_compile "$LINENO"; then :
14004 bash_cv_struct_winsize_header=termios_h
14005 else
14006 bash_cv_struct_winsize_header=other
14007 fi
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 fi
14013
14014 if test $bash_cv_struct_winsize_header = ioctl_h; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
14016 $as_echo "sys/ioctl.h" >&6; }
14017 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
14018
14019 elif test $bash_cv_struct_winsize_header = termios_h; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
14021 $as_echo "termios.h" >&6; }
14022 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
14023
14024 else
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14026 $as_echo "not found" >&6; }
14027 fi
14028
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
14030 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
14031 if ${bash_cv_struct_timeval+:} false; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037 #include <sys/time.h>
14038
14039 _ACEOF
14040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14041 $EGREP "struct timeval" >/dev/null 2>&1; then :
14042 bash_cv_struct_timeval=yes
14043 else
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 #include <time.h>
14047
14048 _ACEOF
14049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14050 $EGREP "struct timeval" >/dev/null 2>&1; then :
14051 bash_cv_struct_timeval=yes
14052 else
14053 bash_cv_struct_timeval=no
14054 fi
14055 rm -f conftest*
14056
14057 fi
14058 rm -f conftest*
14059
14060
14061 fi
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
14064 $as_echo "$bash_cv_struct_timeval" >&6; }
14065 if test $bash_cv_struct_timeval = yes; then
14066 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
14067
14068 fi
14069
14070 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14071 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14072
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14075 _ACEOF
14076
14077
14078 fi
14079
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14081 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14082 if ${ac_cv_struct_tm+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #include <sys/types.h>
14088 #include <time.h>
14089
14090 int
14091 main ()
14092 {
14093 struct tm tm;
14094 int *p = &tm.tm_sec;
14095 return !p;
14096 ;
14097 return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_c_try_compile "$LINENO"; then :
14101 ac_cv_struct_tm=time.h
14102 else
14103 ac_cv_struct_tm=sys/time.h
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 fi
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14108 $as_echo "$ac_cv_struct_tm" >&6; }
14109 if test $ac_cv_struct_tm = sys/time.h; then
14110
14111 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14112
14113 fi
14114
14115 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14116 #include <$ac_cv_struct_tm>
14117
14118 "
14119 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
14120
14121 cat >>confdefs.h <<_ACEOF
14122 #define HAVE_STRUCT_TM_TM_ZONE 1
14123 _ACEOF
14124
14125
14126 fi
14127
14128 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14129
14130 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14131
14132 else
14133 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
14134 "
14135 if test "x$ac_cv_have_decl_tzname" = xyes; then :
14136 ac_have_decl=1
14137 else
14138 ac_have_decl=0
14139 fi
14140
14141 cat >>confdefs.h <<_ACEOF
14142 #define HAVE_DECL_TZNAME $ac_have_decl
14143 _ACEOF
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14146 $as_echo_n "checking for tzname... " >&6; }
14147 if ${ac_cv_var_tzname+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14152 #include <time.h>
14153 #if !HAVE_DECL_TZNAME
14154 extern char *tzname[];
14155 #endif
14156
14157 int
14158 main ()
14159 {
14160 return tzname[0][0];
14161 ;
14162 return 0;
14163 }
14164 _ACEOF
14165 if ac_fn_c_try_link "$LINENO"; then :
14166 ac_cv_var_tzname=yes
14167 else
14168 ac_cv_var_tzname=no
14169 fi
14170 rm -f core conftest.err conftest.$ac_objext \
14171 conftest$ac_exeext conftest.$ac_ext
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14174 $as_echo "$ac_cv_var_tzname" >&6; }
14175 if test $ac_cv_var_tzname = yes; then
14176
14177 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14178
14179 fi
14180 fi
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
14183 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
14184 if ${bash_cv_struct_timezone+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 #include <sys/time.h>
14191
14192 _ACEOF
14193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14194 $EGREP "struct timezone" >/dev/null 2>&1; then :
14195 bash_cv_struct_timezone=yes
14196 else
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 #include <time.h>
14200
14201 _ACEOF
14202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14203 $EGREP "struct timezone" >/dev/null 2>&1; then :
14204 bash_cv_struct_timezone=yes
14205 else
14206 bash_cv_struct_timezone=no
14207 fi
14208 rm -f conftest*
14209
14210 fi
14211 rm -f conftest*
14212
14213
14214 fi
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
14217 $as_echo "$bash_cv_struct_timezone" >&6; }
14218 if test $bash_cv_struct_timezone = yes; then
14219 $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
14220
14221 fi
14222
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
14225 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
14226 if ${bash_cv_wexitstatus_offset+:} false; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 if test "$cross_compiling" = yes; then :
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
14231 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
14232 bash_cv_wexitstatus_offset=0
14233
14234 else
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237
14238 #include <stdlib.h>
14239 #include <unistd.h>
14240
14241 #include <sys/wait.h>
14242
14243 main(c, v)
14244 int c;
14245 char **v;
14246 {
14247 pid_t pid, p;
14248 int s, i, n;
14249
14250 s = 0;
14251 pid = fork();
14252 if (pid == 0)
14253 exit (42);
14254
14255 /* wait for the process */
14256 p = wait(&s);
14257 if (p != pid)
14258 exit (255);
14259
14260 /* crack s */
14261 for (i = 0; i < (sizeof(s) - 8); i++)
14262 {
14263 n = (s >> i) & 0xff;
14264 if (n == 42)
14265 exit (i);
14266 }
14267
14268 exit (254);
14269 }
14270
14271 _ACEOF
14272 if ac_fn_c_try_run "$LINENO"; then :
14273 bash_cv_wexitstatus_offset=0
14274 else
14275 bash_cv_wexitstatus_offset=$?
14276 fi
14277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14278 conftest.$ac_objext conftest.beam conftest.$ac_ext
14279 fi
14280
14281 fi
14282
14283 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
14285 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
14286 bash_cv_wexitstatus_offset=0
14287 fi
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
14289 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
14290
14291 cat >>confdefs.h <<_ACEOF
14292 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
14293 _ACEOF
14294
14295
14296
14297
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14300 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14301 if ${bash_cv_sys_struct_timespec_in_time_h+:} false; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306 #include <time.h>
14307
14308 int
14309 main ()
14310 {
14311 static struct timespec x; x.tv_sec = x.tv_nsec;
14312 ;
14313 return 0;
14314 }
14315 _ACEOF
14316 if ac_fn_c_try_compile "$LINENO"; then :
14317 bash_cv_sys_struct_timespec_in_time_h=yes
14318 else
14319 bash_cv_sys_struct_timespec_in_time_h=no
14320 fi
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
14324 $as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
14325
14326 HAVE_STRUCT_TIMESPEC=0
14327 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14328 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14329 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14330 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
14331 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14332
14333 $as_echo "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14334
14335 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14336 else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14338 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14339 if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 #include <sys/time.h>
14345
14346 int
14347 main ()
14348 {
14349 static struct timespec x; x.tv_sec = x.tv_nsec;
14350 ;
14351 return 0;
14352 }
14353 _ACEOF
14354 if ac_fn_c_try_compile "$LINENO"; then :
14355 bash_cv_sys_struct_timespec_in_sys_time_h=yes
14356 else
14357 bash_cv_sys_struct_timespec_in_sys_time_h=no
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
14362 $as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14363 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
14364 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14365 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14366
14367 $as_echo "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14368
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14371 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14372 if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 #include <pthread.h>
14378
14379 int
14380 main ()
14381 {
14382 static struct timespec x; x.tv_sec = x.tv_nsec;
14383 ;
14384 return 0;
14385 }
14386 _ACEOF
14387 if ac_fn_c_try_compile "$LINENO"; then :
14388 bash_cv_sys_struct_timespec_in_pthread_h=yes
14389 else
14390 bash_cv_sys_struct_timespec_in_pthread_h=no
14391 fi
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 fi
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
14395 $as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
14396 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
14397 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14398 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14399
14400 $as_echo "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14401
14402 fi
14403 fi
14404 fi
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
14415 #include <sys/stat.h>
14416 "
14417 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14421 _ACEOF
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14424 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14425 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430
14431 #include <sys/types.h>
14432 #include <sys/stat.h>
14433 #if HAVE_SYS_TIME_H
14434 # include <sys/time.h>
14435 #endif
14436 #include <time.h>
14437 struct timespec ts;
14438 struct stat st;
14439
14440 int
14441 main ()
14442 {
14443
14444 st.st_atim = ts;
14445
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_compile "$LINENO"; then :
14451 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14452 else
14453 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 fi
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14458 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14459 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14460
14461 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14462
14463 fi
14464 else
14465 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
14466 #include <sys/stat.h>
14467 "
14468 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
14469
14470 cat >>confdefs.h <<_ACEOF
14471 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14472 _ACEOF
14473
14474
14475 else
14476 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14477 #include <sys/stat.h>
14478 "
14479 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
14480
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14483 _ACEOF
14484
14485
14486 else
14487 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
14488 #include <sys/stat.h>
14489 "
14490 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
14491
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14494 _ACEOF
14495
14496
14497 fi
14498
14499 fi
14500
14501 fi
14502
14503 fi
14504
14505
14506
14507
14508
14509
14510
14511 if test X$ac_cv_func_sbrk = Xyes; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sbrk" >&5
14513 $as_echo_n "checking for working sbrk... " >&6; }
14514 if ${bash_cv_func_sbrk+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 if test "$cross_compiling" = yes; then :
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working sbrk if cross-compiling" >&5
14519 $as_echo "$as_me: WARNING: cannot check working sbrk if cross-compiling" >&2;}
14520 bash_cv_func_sbrk=yes
14521
14522 else
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525
14526 #include <stdlib.h>
14527 #include <unistd.h>
14528
14529 int
14530 main(int c, char **v)
14531 {
14532 void *x;
14533
14534 x = sbrk (4096);
14535 exit ((x == (void *)-1) ? 1 : 0);
14536 }
14537
14538 _ACEOF
14539 if ac_fn_c_try_run "$LINENO"; then :
14540 bash_cv_func_sbrk=yes
14541 else
14542 bash_cv_func_snprintf=sbrk
14543 fi
14544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14545 conftest.$ac_objext conftest.beam conftest.$ac_ext
14546 fi
14547
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sbrk" >&5
14550 $as_echo "$bash_cv_func_sbrk" >&6; }
14551 if test $bash_cv_func_sbrk = no; then
14552 ac_cv_func_sbrk=no
14553 fi
14554 fi
14555 if test $ac_cv_func_sbrk = no; then
14556
14557 $as_echo "#define HAVE_SBRK 0" >>confdefs.h
14558
14559 fi
14560
14561
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
14563 $as_echo_n "checking for the existence of strsignal... " >&6; }
14564 if ${bash_cv_have_strsignal+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 #include <sys/types.h>
14570 #include <signal.h>
14571 int
14572 main ()
14573 {
14574 char *s = (char *)strsignal(2);
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 if ac_fn_c_try_link "$LINENO"; then :
14580 bash_cv_have_strsignal=yes
14581 else
14582 bash_cv_have_strsignal=no
14583 fi
14584 rm -f core conftest.err conftest.$ac_objext \
14585 conftest$ac_exeext conftest.$ac_ext
14586 fi
14587
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
14589 $as_echo "$bash_cv_have_strsignal" >&6; }
14590 if test $bash_cv_have_strsignal = yes; then
14591 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
14592
14593 fi
14594
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
14596 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
14597 if ${bash_cv_opendir_not_robust+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 if test "$cross_compiling" = yes; then :
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
14602 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
14603 bash_cv_opendir_not_robust=no
14604
14605 else
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608
14609 #include <stdio.h>
14610 #include <sys/types.h>
14611 #include <fcntl.h>
14612 #ifdef HAVE_UNISTD_H
14613 # include <unistd.h>
14614 #endif /* HAVE_UNISTD_H */
14615 #if defined(HAVE_DIRENT_H)
14616 # include <dirent.h>
14617 #else
14618 # define dirent direct
14619 # ifdef HAVE_SYS_NDIR_H
14620 # include <sys/ndir.h>
14621 # endif /* SYSNDIR */
14622 # ifdef HAVE_SYS_DIR_H
14623 # include <sys/dir.h>
14624 # endif /* SYSDIR */
14625 # ifdef HAVE_NDIR_H
14626 # include <ndir.h>
14627 # endif
14628 #endif /* HAVE_DIRENT_H */
14629 main()
14630 {
14631 DIR *dir;
14632 int fd, err;
14633 err = mkdir("bash-aclocal", 0700);
14634 if (err < 0) {
14635 perror("mkdir");
14636 exit(1);
14637 }
14638 unlink("bash-aclocal/not_a_directory");
14639 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
14640 write(fd, "\n", 1);
14641 close(fd);
14642 dir = opendir("bash-aclocal/not_a_directory");
14643 unlink("bash-aclocal/not_a_directory");
14644 rmdir("bash-aclocal");
14645 exit (dir == 0);
14646 }
14647 _ACEOF
14648 if ac_fn_c_try_run "$LINENO"; then :
14649 bash_cv_opendir_not_robust=yes
14650 else
14651 bash_cv_opendir_not_robust=no
14652 fi
14653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14654 conftest.$ac_objext conftest.beam conftest.$ac_ext
14655 fi
14656
14657 fi
14658
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
14660 $as_echo "$bash_cv_opendir_not_robust" >&6; }
14661 if test $bash_cv_opendir_not_robust = yes; then
14662 $as_echo "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
14663
14664 fi
14665
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
14667 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
14668 if ${bash_cv_ulimit_maxfds+:} false; then :
14669 $as_echo_n "(cached) " >&6
14670 else
14671 if test "$cross_compiling" = yes; then :
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
14673 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
14674 bash_cv_ulimit_maxfds=no
14675
14676 else
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679
14680 main()
14681 {
14682 long maxfds = ulimit(4, 0L);
14683 exit (maxfds == -1L);
14684 }
14685
14686 _ACEOF
14687 if ac_fn_c_try_run "$LINENO"; then :
14688 bash_cv_ulimit_maxfds=yes
14689 else
14690 bash_cv_ulimit_maxfds=no
14691 fi
14692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14693 conftest.$ac_objext conftest.beam conftest.$ac_ext
14694 fi
14695
14696 fi
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
14699 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
14700 if test $bash_cv_ulimit_maxfds = yes; then
14701 $as_echo "#define ULIMIT_MAXFDS 1" >>confdefs.h
14702
14703 fi
14704
14705
14706
14707
14708
14709
14710
14711
14712 ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
14713 "
14714 if test "x$ac_cv_have_decl_fpurge" = xyes; then :
14715 ac_have_decl=1
14716 else
14717 ac_have_decl=0
14718 fi
14719
14720 cat >>confdefs.h <<_ACEOF
14721 #define HAVE_DECL_FPURGE $ac_have_decl
14722 _ACEOF
14723
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
14726 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
14727 if ${bash_cv_getenv_redef+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 if test "$cross_compiling" = yes; then :
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
14732 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
14733 bash_cv_getenv_redef=yes
14734
14735 else
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14738
14739 #ifdef HAVE_UNISTD_H
14740 # include <unistd.h>
14741 #endif
14742 #ifndef __STDC__
14743 # ifndef const
14744 # define const
14745 # endif
14746 #endif
14747 char *
14748 getenv (name)
14749 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
14750 const char *name;
14751 #else
14752 char const *name;
14753 #endif /* !__linux__ && !__bsdi__ && !convex */
14754 {
14755 return "42";
14756 }
14757 main()
14758 {
14759 char *s;
14760 /* The next allows this program to run, but does not allow bash to link
14761 when it redefines getenv. I'm not really interested in figuring out
14762 why not. */
14763 #if defined (NeXT)
14764 exit(1);
14765 #endif
14766 s = getenv("ABCDE");
14767 exit(s == 0); /* force optimizer to leave getenv in */
14768 }
14769
14770 _ACEOF
14771 if ac_fn_c_try_run "$LINENO"; then :
14772 bash_cv_getenv_redef=yes
14773 else
14774 bash_cv_getenv_redef=no
14775 fi
14776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14777 conftest.$ac_objext conftest.beam conftest.$ac_ext
14778 fi
14779
14780 fi
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
14783 $as_echo "$bash_cv_getenv_redef" >&6; }
14784 if test $bash_cv_getenv_redef = yes; then
14785 $as_echo "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
14786
14787 fi
14788
14789 if test "$ac_cv_func_getcwd" = "yes"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
14791 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
14792 if ${bash_cv_getcwd_malloc+:} false; then :
14793 $as_echo_n "(cached) " >&6
14794 else
14795 if test "$cross_compiling" = yes; then :
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
14797 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
14798 bash_cv_getcwd_malloc=no
14799
14800 else
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14803
14804 #include <stdio.h>
14805 #ifdef HAVE_UNISTD_H
14806 #include <unistd.h>
14807 #endif
14808
14809 main()
14810 {
14811 char *xpwd;
14812 xpwd = getcwd(0, 0);
14813 exit (xpwd == 0);
14814 }
14815
14816 _ACEOF
14817 if ac_fn_c_try_run "$LINENO"; then :
14818 bash_cv_getcwd_malloc=yes
14819 else
14820 bash_cv_getcwd_malloc=no
14821 fi
14822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14823 conftest.$ac_objext conftest.beam conftest.$ac_ext
14824 fi
14825
14826 fi
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
14829 $as_echo "$bash_cv_getcwd_malloc" >&6; }
14830 if test $bash_cv_getcwd_malloc = no; then
14831 $as_echo "#define GETCWD_BROKEN 1" >>confdefs.h
14832
14833 case " $LIBOBJS " in
14834 *" getcwd.$ac_objext "* ) ;;
14835 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
14836 ;;
14837 esac
14838
14839 fi
14840
14841 fi
14842
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
14844 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
14845 if ${bash_cv_func_sigsetjmp+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 if test "$cross_compiling" = yes; then :
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
14850 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
14851 bash_cv_func_sigsetjmp=missing
14852
14853 else
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856
14857 #ifdef HAVE_UNISTD_H
14858 #include <unistd.h>
14859 #endif
14860 #include <sys/types.h>
14861 #include <signal.h>
14862 #include <setjmp.h>
14863
14864 main()
14865 {
14866 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
14867 exit (1);
14868 #else
14869
14870 int code;
14871 sigset_t set, oset;
14872 sigjmp_buf xx;
14873
14874 /* get the mask */
14875 sigemptyset(&set);
14876 sigemptyset(&oset);
14877 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
14878 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
14879
14880 /* save it */
14881 code = sigsetjmp(xx, 1);
14882 if (code)
14883 exit(0); /* could get sigmask and compare to oset here. */
14884
14885 /* change it */
14886 sigaddset(&set, SIGINT);
14887 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
14888
14889 /* and siglongjmp */
14890 siglongjmp(xx, 10);
14891 exit(1);
14892 #endif
14893 }
14894 _ACEOF
14895 if ac_fn_c_try_run "$LINENO"; then :
14896 bash_cv_func_sigsetjmp=present
14897 else
14898 bash_cv_func_sigsetjmp=missing
14899 fi
14900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14901 conftest.$ac_objext conftest.beam conftest.$ac_ext
14902 fi
14903
14904 fi
14905
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
14907 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
14908 if test $bash_cv_func_sigsetjmp = present; then
14909 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
14910
14911 fi
14912
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
14915 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
14916 if ${bash_cv_func_strcoll_broken+:} false; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 if test "$cross_compiling" = yes; then :
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
14921 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
14922 bash_cv_func_strcoll_broken=no
14923
14924 else
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927
14928 #include <stdio.h>
14929 #if defined (HAVE_LOCALE_H)
14930 #include <locale.h>
14931 #endif
14932
14933 main(c, v)
14934 int c;
14935 char *v[];
14936 {
14937 int r1, r2;
14938 char *deflocale, *defcoll;
14939
14940 #ifdef HAVE_SETLOCALE
14941 deflocale = setlocale(LC_ALL, "");
14942 defcoll = setlocale(LC_COLLATE, "");
14943 #endif
14944
14945 #ifdef HAVE_STRCOLL
14946 /* These two values are taken from tests/glob-test. */
14947 r1 = strcoll("abd", "aXd");
14948 #else
14949 r1 = 0;
14950 #endif
14951 r2 = strcmp("abd", "aXd");
14952
14953 /* These two should both be greater than 0. It is permissible for
14954 a system to return different values, as long as the sign is the
14955 same. */
14956
14957 /* Exit with 1 (failure) if these two values are both > 0, since
14958 this tests whether strcoll(3) is broken with respect to strcmp(3)
14959 in the default locale. */
14960 exit (r1 > 0 && r2 > 0);
14961 }
14962
14963 _ACEOF
14964 if ac_fn_c_try_run "$LINENO"; then :
14965 bash_cv_func_strcoll_broken=yes
14966 else
14967 bash_cv_func_strcoll_broken=no
14968 fi
14969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14970 conftest.$ac_objext conftest.beam conftest.$ac_ext
14971 fi
14972
14973 fi
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
14976 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
14977 if test $bash_cv_func_strcoll_broken = yes; then
14978 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
14979
14980 fi
14981
14982
14983
14984
14985
14986 if test X$ac_cv_func_snprintf = Xyes; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
14988 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
14989 if ${bash_cv_func_snprintf+:} false; then :
14990 $as_echo_n "(cached) " >&6
14991 else
14992 if test "$cross_compiling" = yes; then :
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
14994 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
14995 bash_cv_func_snprintf=yes
14996
14997 else
14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15000
15001 #include <stdio.h>
15002
15003 main()
15004 {
15005 int n;
15006 n = snprintf (0, 0, "%s", "0123456");
15007 exit(n != 7);
15008 }
15009
15010 _ACEOF
15011 if ac_fn_c_try_run "$LINENO"; then :
15012 bash_cv_func_snprintf=yes
15013 else
15014 bash_cv_func_snprintf=no
15015 fi
15016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15017 conftest.$ac_objext conftest.beam conftest.$ac_ext
15018 fi
15019
15020 fi
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
15022 $as_echo "$bash_cv_func_snprintf" >&6; }
15023 if test $bash_cv_func_snprintf = no; then
15024 ac_cv_func_snprintf=no
15025 fi
15026 fi
15027 if test $ac_cv_func_snprintf = no; then
15028
15029 $as_echo "#define HAVE_SNPRINTF 0" >>confdefs.h
15030
15031 fi
15032
15033
15034
15035
15036
15037 if test X$ac_cv_func_vsnprintf = Xyes; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
15039 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
15040 if ${bash_cv_func_vsnprintf+:} false; then :
15041 $as_echo_n "(cached) " >&6
15042 else
15043 if test "$cross_compiling" = yes; then :
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
15045 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
15046 bash_cv_func_vsnprintf=yes
15047
15048 else
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15051
15052 #if HAVE_STDARG_H
15053 #include <stdarg.h>
15054 #else
15055 #include <varargs.h>
15056 #endif
15057 #include <stdio.h>
15058 #include <stdlib.h>
15059
15060 static int
15061 #if HAVE_STDARG_H
15062 foo(const char *fmt, ...)
15063 #else
15064 foo(format, va_alist)
15065 const char *format;
15066 va_dcl
15067 #endif
15068 {
15069 va_list args;
15070 int n;
15071
15072 #if HAVE_STDARG_H
15073 va_start(args, fmt);
15074 #else
15075 va_start(args);
15076 #endif
15077 n = vsnprintf(0, 0, fmt, args);
15078 va_end (args);
15079 return n;
15080 }
15081
15082 main()
15083 {
15084 int n;
15085 n = foo("%s", "0123456");
15086 exit(n != 7);
15087 }
15088
15089 _ACEOF
15090 if ac_fn_c_try_run "$LINENO"; then :
15091 bash_cv_func_vsnprintf=yes
15092 else
15093 bash_cv_func_vsnprintf=no
15094 fi
15095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15096 conftest.$ac_objext conftest.beam conftest.$ac_ext
15097 fi
15098
15099 fi
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
15101 $as_echo "$bash_cv_func_vsnprintf" >&6; }
15102 if test $bash_cv_func_vsnprintf = no; then
15103 ac_cv_func_vsnprintf=no
15104 fi
15105 fi
15106 if test $ac_cv_func_vsnprintf = no; then
15107
15108 $as_echo "#define HAVE_VSNPRINTF 0" >>confdefs.h
15109
15110 fi
15111
15112
15113
15114 if test "$ac_cv_func_putenv" = "yes"; then
15115
15116
15117
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
15119 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
15120 if ${bash_cv_std_putenv+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15125
15126 #if STDC_HEADERS
15127 #include <stdlib.h>
15128 #include <stddef.h>
15129 #endif
15130 #ifndef __STDC__
15131 # ifndef const
15132 # define const
15133 # endif
15134 #endif
15135 #ifdef PROTOTYPES
15136 extern int putenv (char *);
15137 #else
15138 extern int putenv ();
15139 #endif
15140
15141 int
15142 main ()
15143 {
15144 return (putenv == 0);
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 bash_cv_std_putenv=yes
15151 else
15152 bash_cv_std_putenv=no
15153
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15157 fi
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
15159 $as_echo "$bash_cv_std_putenv" >&6; }
15160 if test $bash_cv_std_putenv = yes; then
15161 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
15162
15163 fi
15164
15165 else
15166 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
15167
15168 fi
15169 if test "$ac_cv_func_unsetenv" = "yes"; then
15170
15171
15172
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
15174 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
15175 if ${bash_cv_std_unsetenv+:} false; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180
15181 #if STDC_HEADERS
15182 #include <stdlib.h>
15183 #include <stddef.h>
15184 #endif
15185 #ifndef __STDC__
15186 # ifndef const
15187 # define const
15188 # endif
15189 #endif
15190 #ifdef PROTOTYPES
15191 extern int unsetenv (const char *);
15192 #else
15193 extern int unsetenv ();
15194 #endif
15195
15196 int
15197 main ()
15198 {
15199 return (unsetenv == 0);
15200 ;
15201 return 0;
15202 }
15203 _ACEOF
15204 if ac_fn_c_try_link "$LINENO"; then :
15205 bash_cv_std_unsetenv=yes
15206 else
15207 bash_cv_std_unsetenv=no
15208
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
15214 $as_echo "$bash_cv_std_unsetenv" >&6; }
15215 if test $bash_cv_std_unsetenv = yes; then
15216 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
15217
15218 fi
15219
15220 else
15221 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
15222
15223 fi
15224
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
15226 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
15227 if ${bash_cv_printf_a_format+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 if test "$cross_compiling" = yes; then :
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
15232 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
15233 bash_cv_printf_a_format=no
15234
15235 else
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238
15239 #include <stdio.h>
15240 #include <string.h>
15241
15242 int
15243 main()
15244 {
15245 double y = 0.0;
15246 char abuf[1024];
15247
15248 sprintf(abuf, "%A", y);
15249 exit(strchr(abuf, 'P') == (char *)0);
15250 }
15251
15252 _ACEOF
15253 if ac_fn_c_try_run "$LINENO"; then :
15254 bash_cv_printf_a_format=yes
15255 else
15256 bash_cv_printf_a_format=no
15257 fi
15258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15259 conftest.$ac_objext conftest.beam conftest.$ac_ext
15260 fi
15261
15262 fi
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
15265 $as_echo "$bash_cv_printf_a_format" >&6; }
15266 if test $bash_cv_printf_a_format = yes; then
15267 $as_echo "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
15268
15269 fi
15270
15271
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fnmatch can be used to check bracket equivalence classes" >&5
15273 $as_echo_n "checking whether fnmatch can be used to check bracket equivalence classes... " >&6; }
15274 if ${bash_cv_fnmatch_equiv_fallback+:} false; then :
15275 $as_echo_n "(cached) " >&6
15276 else
15277 if test "$cross_compiling" = yes; then :
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&5
15279 $as_echo "$as_me: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&2;}
15280 bash_cv_fnmatch_equiv_fallback=no
15281
15282 else
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15285
15286 #include <stdlib.h>
15287 #include <unistd.h>
15288 #include <stdio.h>
15289 #include <fnmatch.h>
15290 #include <locale.h>
15291
15292 char *pattern = "[[=a=]]";
15293
15294 /* char *string = "ä"; */
15295 unsigned char string[4] = { '\xc3', '\xa4', '\0' };
15296
15297 int
15298 main (int c, char **v)
15299 {
15300 setlocale (LC_ALL, "de_DE.UTF-8");
15301 if (fnmatch (pattern, (const char *)string, 0) != FNM_NOMATCH)
15302 exit (0);
15303 exit (1);
15304 }
15305
15306
15307 _ACEOF
15308 if ac_fn_c_try_run "$LINENO"; then :
15309 bash_cv_fnmatch_equiv_fallback=yes
15310 else
15311 bash_cv_fnmatch_equiv_fallback=no
15312 fi
15313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15314 conftest.$ac_objext conftest.beam conftest.$ac_ext
15315 fi
15316
15317 fi
15318
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fnmatch_equiv_fallback" >&5
15320 $as_echo "$bash_cv_fnmatch_equiv_fallback" >&6; }
15321 if test "$bash_cv_fnmatch_equiv_fallback" = "yes" ; then
15322 bash_cv_fnmatch_equiv_value=1
15323 else
15324 bash_cv_fnmatch_equiv_value=0
15325 fi
15326
15327 cat >>confdefs.h <<_ACEOF
15328 #define FNMATCH_EQUIV_FALLBACK $bash_cv_fnmatch_equiv_value
15329 _ACEOF
15330
15331
15332
15333
15334
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
15336 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
15337 if ${bash_cv_must_reinstall_sighandlers+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 if test "$cross_compiling" = yes; then :
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
15342 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
15343 bash_cv_must_reinstall_sighandlers=no
15344
15345 else
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348
15349 #include <signal.h>
15350 #ifdef HAVE_UNISTD_H
15351 #include <unistd.h>
15352 #endif
15353
15354 typedef RETSIGTYPE sigfunc();
15355
15356 volatile int nsigint;
15357
15358 #ifdef HAVE_POSIX_SIGNALS
15359 sigfunc *
15360 set_signal_handler(sig, handler)
15361 int sig;
15362 sigfunc *handler;
15363 {
15364 struct sigaction act, oact;
15365 act.sa_handler = handler;
15366 act.sa_flags = 0;
15367 sigemptyset (&act.sa_mask);
15368 sigemptyset (&oact.sa_mask);
15369 sigaction (sig, &act, &oact);
15370 return (oact.sa_handler);
15371 }
15372 #else
15373 #define set_signal_handler(s, h) signal(s, h)
15374 #endif
15375
15376 RETSIGTYPE
15377 sigint(s)
15378 int s;
15379 {
15380 nsigint++;
15381 }
15382
15383 main()
15384 {
15385 nsigint = 0;
15386 set_signal_handler(SIGINT, sigint);
15387 kill((int)getpid(), SIGINT);
15388 kill((int)getpid(), SIGINT);
15389 exit(nsigint != 2);
15390 }
15391
15392 _ACEOF
15393 if ac_fn_c_try_run "$LINENO"; then :
15394 bash_cv_must_reinstall_sighandlers=no
15395 else
15396 bash_cv_must_reinstall_sighandlers=yes
15397 fi
15398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15399 conftest.$ac_objext conftest.beam conftest.$ac_ext
15400 fi
15401
15402 fi
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
15405 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
15406 if test $bash_cv_must_reinstall_sighandlers = yes; then
15407 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
15408
15409 fi
15410
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
15413 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
15414 if ${bash_cv_job_control_missing+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15419
15420 #include <sys/types.h>
15421 #ifdef HAVE_SYS_WAIT_H
15422 #include <sys/wait.h>
15423 #endif
15424 #ifdef HAVE_UNISTD_H
15425 #include <unistd.h>
15426 #endif
15427 #include <signal.h>
15428
15429 /* add more tests in here as appropriate */
15430
15431 /* signal type */
15432 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
15433 #error
15434 #endif
15435
15436 /* signals and tty control. */
15437 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
15438 #error
15439 #endif
15440
15441 /* process control */
15442 #if !defined (WNOHANG) || !defined (WUNTRACED)
15443 #error
15444 #endif
15445
15446 /* Posix systems have tcgetpgrp and waitpid. */
15447 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
15448 #error
15449 #endif
15450
15451 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
15452 #error
15453 #endif
15454
15455 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
15456 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
15457 #error
15458 #endif
15459
15460
15461 int
15462 main ()
15463 {
15464
15465 ;
15466 return 0;
15467 }
15468 _ACEOF
15469 if ac_fn_c_try_compile "$LINENO"; then :
15470 bash_cv_job_control_missing=present
15471 else
15472 bash_cv_job_control_missing=missing
15473
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 fi
15477
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
15479 $as_echo "$bash_cv_job_control_missing" >&6; }
15480 if test $bash_cv_job_control_missing = missing; then
15481 $as_echo "#define JOB_CONTROL_MISSING 1" >>confdefs.h
15482
15483 fi
15484
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
15486 $as_echo_n "checking for presence of named pipes... " >&6; }
15487 if ${bash_cv_sys_named_pipes+:} false; then :
15488 $as_echo_n "(cached) " >&6
15489 else
15490 if test "$cross_compiling" = yes; then :
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
15492 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
15493 bash_cv_sys_named_pipes=missing
15494
15495 else
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498
15499 #include <sys/types.h>
15500 #include <sys/stat.h>
15501 #ifdef HAVE_UNISTD_H
15502 #include <unistd.h>
15503 #endif
15504
15505 /* Add more tests in here as appropriate. */
15506 main()
15507 {
15508 int fd, err;
15509
15510 #if defined (HAVE_MKFIFO)
15511 exit (0);
15512 #endif
15513
15514 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
15515 exit (1);
15516 #endif
15517
15518 #if defined (NeXT)
15519 exit (1);
15520 #endif
15521 err = mkdir("bash-aclocal", 0700);
15522 if (err < 0) {
15523 perror ("mkdir");
15524 exit(1);
15525 }
15526 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
15527 if (fd == -1) {
15528 rmdir ("bash-aclocal");
15529 exit (1);
15530 }
15531 close(fd);
15532 unlink ("bash-aclocal/sh-np-autoconf");
15533 rmdir ("bash-aclocal");
15534 exit(0);
15535 }
15536 _ACEOF
15537 if ac_fn_c_try_run "$LINENO"; then :
15538 bash_cv_sys_named_pipes=present
15539 else
15540 bash_cv_sys_named_pipes=missing
15541 fi
15542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15543 conftest.$ac_objext conftest.beam conftest.$ac_ext
15544 fi
15545
15546 fi
15547
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
15549 $as_echo "$bash_cv_sys_named_pipes" >&6; }
15550 if test $bash_cv_sys_named_pipes = missing; then
15551 $as_echo "#define NAMED_PIPES_MISSING 1" >>confdefs.h
15552
15553 fi
15554
15555
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15557 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15558 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <sys/types.h>
15564 #include <termios.h>
15565 #ifdef TIOCGWINSZ
15566 yes
15567 #endif
15568
15569 _ACEOF
15570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15571 $EGREP "yes" >/dev/null 2>&1; then :
15572 ac_cv_sys_tiocgwinsz_in_termios_h=yes
15573 else
15574 ac_cv_sys_tiocgwinsz_in_termios_h=no
15575 fi
15576 rm -f conftest*
15577
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15580 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15581
15582 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15584 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15585 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
15586 $as_echo_n "(cached) " >&6
15587 else
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15590 #include <sys/types.h>
15591 #include <sys/ioctl.h>
15592 #ifdef TIOCGWINSZ
15593 yes
15594 #endif
15595
15596 _ACEOF
15597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15598 $EGREP "yes" >/dev/null 2>&1; then :
15599 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
15600 else
15601 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
15602 fi
15603 rm -f conftest*
15604
15605 fi
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15607 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15608
15609 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15610
15611 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15612
15613 fi
15614 fi
15615
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
15617 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
15618 if ${bash_cv_tiocstat_in_ioctl+:} false; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 #include <sys/types.h>
15624 #include <sys/ioctl.h>
15625 int
15626 main ()
15627 {
15628 int x = TIOCSTAT;
15629 ;
15630 return 0;
15631 }
15632 _ACEOF
15633 if ac_fn_c_try_compile "$LINENO"; then :
15634 bash_cv_tiocstat_in_ioctl=yes
15635 else
15636 bash_cv_tiocstat_in_ioctl=no
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15639 fi
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
15642 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
15643 if test $bash_cv_tiocstat_in_ioctl = yes; then
15644 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
15645
15646 fi
15647
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
15649 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
15650 if ${bash_cv_fionread_in_ioctl+:} false; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15655 #include <sys/types.h>
15656 #include <sys/ioctl.h>
15657 int
15658 main ()
15659 {
15660 int x = FIONREAD;
15661 ;
15662 return 0;
15663 }
15664 _ACEOF
15665 if ac_fn_c_try_compile "$LINENO"; then :
15666 bash_cv_fionread_in_ioctl=yes
15667 else
15668 bash_cv_fionread_in_ioctl=no
15669 fi
15670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671 fi
15672
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
15674 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
15675 if test $bash_cv_fionread_in_ioctl = yes; then
15676 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
15677
15678 fi
15679
15680
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
15683 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
15684 if ${bash_cv_wcontinued_broken+:} false; then :
15685 $as_echo_n "(cached) " >&6
15686 else
15687 if test "$cross_compiling" = yes; then :
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
15689 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
15690 bash_cv_wcontinued_broken=no
15691
15692 else
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695
15696 #include <sys/types.h>
15697 #include <sys/wait.h>
15698 #include <unistd.h>
15699 #include <errno.h>
15700
15701 #ifndef errno
15702 extern int errno;
15703 #endif
15704 main()
15705 {
15706 int x;
15707
15708 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
15709 if (x == -1 && errno == EINVAL)
15710 exit (1);
15711 else
15712 exit (0);
15713 }
15714
15715 _ACEOF
15716 if ac_fn_c_try_run "$LINENO"; then :
15717 bash_cv_wcontinued_broken=no
15718 else
15719 bash_cv_wcontinued_broken=yes
15720 fi
15721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15722 conftest.$ac_objext conftest.beam conftest.$ac_ext
15723 fi
15724
15725 fi
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
15728 $as_echo "$bash_cv_wcontinued_broken" >&6; }
15729 if test $bash_cv_wcontinued_broken = yes; then
15730 $as_echo "#define WCONTINUED_BROKEN 1" >>confdefs.h
15731
15732 fi
15733
15734
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
15736 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
15737 if ${bash_cv_speed_t_in_sys_types+:} false; then :
15738 $as_echo_n "(cached) " >&6
15739 else
15740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h. */
15742 #include <sys/types.h>
15743 int
15744 main ()
15745 {
15746 speed_t x;
15747 ;
15748 return 0;
15749 }
15750 _ACEOF
15751 if ac_fn_c_try_compile "$LINENO"; then :
15752 bash_cv_speed_t_in_sys_types=yes
15753 else
15754 bash_cv_speed_t_in_sys_types=no
15755 fi
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 fi
15758
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
15760 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
15761 if test $bash_cv_speed_t_in_sys_types = yes; then
15762 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
15763
15764 fi
15765
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
15767 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
15768 if ${bash_cv_getpw_declared+:} false; then :
15769 $as_echo_n "(cached) " >&6
15770 else
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15773
15774 #include <sys/types.h>
15775 #ifdef HAVE_UNISTD_H
15776 # include <unistd.h>
15777 #endif
15778 #include <pwd.h>
15779
15780 _ACEOF
15781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15782 $EGREP "getpwuid" >/dev/null 2>&1; then :
15783 bash_cv_getpw_declared=yes
15784 else
15785 bash_cv_getpw_declared=no
15786 fi
15787 rm -f conftest*
15788
15789 fi
15790
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
15792 $as_echo "$bash_cv_getpw_declared" >&6; }
15793 if test $bash_cv_getpw_declared = yes; then
15794 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
15795
15796 fi
15797
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
15799 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
15800 if ${bash_cv_unusable_rtsigs+:} false; then :
15801 $as_echo_n "(cached) " >&6
15802 else
15803 if test "$cross_compiling" = yes; then :
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
15805 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
15806 bash_cv_unusable_rtsigs=yes
15807
15808 else
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15811
15812 #include <sys/types.h>
15813 #include <signal.h>
15814
15815 #ifndef NSIG
15816 # define NSIG 64
15817 #endif
15818
15819 main ()
15820 {
15821 int n_sigs = 2 * NSIG;
15822 #ifdef SIGRTMIN
15823 int rtmin = SIGRTMIN;
15824 #else
15825 int rtmin = 0;
15826 #endif
15827
15828 exit(rtmin < n_sigs);
15829 }
15830 _ACEOF
15831 if ac_fn_c_try_run "$LINENO"; then :
15832 bash_cv_unusable_rtsigs=yes
15833 else
15834 bash_cv_unusable_rtsigs=no
15835 fi
15836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15837 conftest.$ac_objext conftest.beam conftest.$ac_ext
15838 fi
15839
15840 fi
15841
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
15843 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
15844 if test $bash_cv_unusable_rtsigs = yes; then
15845 $as_echo "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
15846
15847 fi
15848
15849
15850
15851
15852
15853 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
15854 SIGLIST_O=siglist.o
15855 else
15856 SIGLIST_O=
15857 fi
15858
15859
15860
15861 case "$host_os" in
15862 hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
15863 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
15864 if ${bash_cv_kernel_rlimit+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15869
15870 #include <sys/types.h>
15871 #include <sys/resource.h>
15872
15873 int
15874 main ()
15875 {
15876
15877 int f;
15878 f = RLIMIT_DATA;
15879
15880 ;
15881 return 0;
15882 }
15883 _ACEOF
15884 if ac_fn_c_try_compile "$LINENO"; then :
15885 bash_cv_kernel_rlimit=no
15886 else
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889
15890 #include <sys/types.h>
15891 #define _KERNEL
15892 #include <sys/resource.h>
15893 #undef _KERNEL
15894
15895 int
15896 main ()
15897 {
15898
15899 int f;
15900 f = RLIMIT_DATA;
15901
15902 ;
15903 return 0;
15904 }
15905 _ACEOF
15906 if ac_fn_c_try_compile "$LINENO"; then :
15907 bash_cv_kernel_rlimit=yes
15908 else
15909 bash_cv_kernel_rlimit=no
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15912
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15915 fi
15916
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
15918 $as_echo "$bash_cv_kernel_rlimit" >&6; }
15919 if test $bash_cv_kernel_rlimit = yes; then
15920 $as_echo "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
15921
15922 fi
15923 ;;
15924 esac
15925
15926 if test "$opt_readline" = yes; then
15927 case "$host_os" in
15928 aix*) prefer_curses=yes ;;
15929 esac
15930
15931 if test "X$bash_cv_termcap_lib" = "X"; then
15932 _bash_needmsg=yes
15933 else
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15935 $as_echo_n "checking which library has the termcap functions... " >&6; }
15936 _bash_needmsg=
15937 fi
15938 if ${bash_cv_termcap_lib+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940 else
15941 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
15942 if test "x$ac_cv_func_tgetent" = xyes; then :
15943 bash_cv_termcap_lib=libc
15944 else
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
15946 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
15947 if ${ac_cv_lib_termcap_tgetent+:} false; then :
15948 $as_echo_n "(cached) " >&6
15949 else
15950 ac_check_lib_save_LIBS=$LIBS
15951 LIBS="-ltermcap $LIBS"
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954
15955 /* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15958 #ifdef __cplusplus
15959 extern "C"
15960 #endif
15961 char tgetent ();
15962 int
15963 main ()
15964 {
15965 return tgetent ();
15966 ;
15967 return 0;
15968 }
15969 _ACEOF
15970 if ac_fn_c_try_link "$LINENO"; then :
15971 ac_cv_lib_termcap_tgetent=yes
15972 else
15973 ac_cv_lib_termcap_tgetent=no
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977 LIBS=$ac_check_lib_save_LIBS
15978 fi
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
15980 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
15981 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
15982 bash_cv_termcap_lib=libtermcap
15983 else
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
15985 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
15986 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15989 ac_check_lib_save_LIBS=$LIBS
15990 LIBS="-ltinfo $LIBS"
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993
15994 /* Override any GCC internal prototype to avoid an error.
15995 Use char because int might match the return type of a GCC
15996 builtin and then its argument prototype would still apply. */
15997 #ifdef __cplusplus
15998 extern "C"
15999 #endif
16000 char tgetent ();
16001 int
16002 main ()
16003 {
16004 return tgetent ();
16005 ;
16006 return 0;
16007 }
16008 _ACEOF
16009 if ac_fn_c_try_link "$LINENO"; then :
16010 ac_cv_lib_tinfo_tgetent=yes
16011 else
16012 ac_cv_lib_tinfo_tgetent=no
16013 fi
16014 rm -f core conftest.err conftest.$ac_objext \
16015 conftest$ac_exeext conftest.$ac_ext
16016 LIBS=$ac_check_lib_save_LIBS
16017 fi
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
16019 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
16020 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
16021 bash_cv_termcap_lib=libtinfo
16022 else
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
16024 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
16025 if ${ac_cv_lib_curses_tgetent+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 ac_check_lib_save_LIBS=$LIBS
16029 LIBS="-lcurses $LIBS"
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032
16033 /* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply. */
16036 #ifdef __cplusplus
16037 extern "C"
16038 #endif
16039 char tgetent ();
16040 int
16041 main ()
16042 {
16043 return tgetent ();
16044 ;
16045 return 0;
16046 }
16047 _ACEOF
16048 if ac_fn_c_try_link "$LINENO"; then :
16049 ac_cv_lib_curses_tgetent=yes
16050 else
16051 ac_cv_lib_curses_tgetent=no
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055 LIBS=$ac_check_lib_save_LIBS
16056 fi
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
16058 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
16059 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
16060 bash_cv_termcap_lib=libcurses
16061 else
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
16063 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
16064 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 ac_check_lib_save_LIBS=$LIBS
16068 LIBS="-lncurses $LIBS"
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071
16072 /* Override any GCC internal prototype to avoid an error.
16073 Use char because int might match the return type of a GCC
16074 builtin and then its argument prototype would still apply. */
16075 #ifdef __cplusplus
16076 extern "C"
16077 #endif
16078 char tgetent ();
16079 int
16080 main ()
16081 {
16082 return tgetent ();
16083 ;
16084 return 0;
16085 }
16086 _ACEOF
16087 if ac_fn_c_try_link "$LINENO"; then :
16088 ac_cv_lib_ncurses_tgetent=yes
16089 else
16090 ac_cv_lib_ncurses_tgetent=no
16091 fi
16092 rm -f core conftest.err conftest.$ac_objext \
16093 conftest$ac_exeext conftest.$ac_ext
16094 LIBS=$ac_check_lib_save_LIBS
16095 fi
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
16097 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
16098 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
16099 bash_cv_termcap_lib=libncurses
16100 else
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
16102 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
16103 if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
16104 $as_echo_n "(cached) " >&6
16105 else
16106 ac_check_lib_save_LIBS=$LIBS
16107 LIBS="-lncursesw $LIBS"
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110
16111 /* Override any GCC internal prototype to avoid an error.
16112 Use char because int might match the return type of a GCC
16113 builtin and then its argument prototype would still apply. */
16114 #ifdef __cplusplus
16115 extern "C"
16116 #endif
16117 char tgetent ();
16118 int
16119 main ()
16120 {
16121 return tgetent ();
16122 ;
16123 return 0;
16124 }
16125 _ACEOF
16126 if ac_fn_c_try_link "$LINENO"; then :
16127 ac_cv_lib_ncursesw_tgetent=yes
16128 else
16129 ac_cv_lib_ncursesw_tgetent=no
16130 fi
16131 rm -f core conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 LIBS=$ac_check_lib_save_LIBS
16134 fi
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
16136 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
16137 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
16138 bash_cv_termcap_lib=libncursesw
16139 else
16140 bash_cv_termcap_lib=gnutermcap
16141 fi
16142
16143 fi
16144
16145 fi
16146
16147 fi
16148
16149 fi
16150
16151 fi
16152
16153 fi
16154
16155 if test "X$_bash_needmsg" = "Xyes"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
16157 $as_echo_n "checking which library has the termcap functions... " >&6; }
16158 fi
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
16160 $as_echo "using $bash_cv_termcap_lib" >&6; }
16161 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
16162 LDFLAGS="$LDFLAGS -L./lib/termcap"
16163 TERMCAP_LIB="./lib/termcap/libtermcap.a"
16164 TERMCAP_DEP="./lib/termcap/libtermcap.a"
16165 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
16166 TERMCAP_LIB=-ltermcap
16167 TERMCAP_DEP=
16168 elif test $bash_cv_termcap_lib = libtinfo; then
16169 TERMCAP_LIB=-ltinfo
16170 TERMCAP_DEP=
16171 elif test $bash_cv_termcap_lib = libncurses; then
16172 TERMCAP_LIB=-lncurses
16173 TERMCAP_DEP=
16174 elif test $bash_cv_termcap_lib = libc; then
16175 TERMCAP_LIB=
16176 TERMCAP_DEP=
16177 else
16178 TERMCAP_LIB=-lcurses
16179 TERMCAP_DEP=
16180 fi
16181
16182 fi
16183
16184
16185
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
16187 $as_echo_n "checking whether /dev/fd is available... " >&6; }
16188 if ${bash_cv_dev_fd+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 bash_cv_dev_fd=""
16192 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
16193 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
16194 if (exec test -r /dev/fd/3 3</dev/null) ; then
16195 bash_cv_dev_fd=standard
16196 else
16197 bash_cv_dev_fd=absent
16198 fi
16199 fi
16200 if test -z "$bash_cv_dev_fd" ; then
16201 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
16202 bash_cv_dev_fd=whacky
16203 else
16204 bash_cv_dev_fd=absent
16205 fi
16206 fi
16207
16208 fi
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
16211 $as_echo "$bash_cv_dev_fd" >&6; }
16212 if test $bash_cv_dev_fd = "standard"; then
16213 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
16214
16215 $as_echo "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
16216
16217 elif test $bash_cv_dev_fd = "whacky"; then
16218 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
16219
16220 $as_echo "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
16221
16222 fi
16223
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
16225 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
16226 if ${bash_cv_dev_stdin+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 if (exec test -r /dev/stdin < /dev/null) ; then
16230 bash_cv_dev_stdin=present
16231 else
16232 bash_cv_dev_stdin=absent
16233 fi
16234
16235 fi
16236
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
16238 $as_echo "$bash_cv_dev_stdin" >&6; }
16239 if test $bash_cv_dev_stdin = "present"; then
16240 $as_echo "#define HAVE_DEV_STDIN 1" >>confdefs.h
16241
16242 fi
16243
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
16245 $as_echo_n "checking for default mail directory... " >&6; }
16246 if ${bash_cv_mail_dir+:} false; then :
16247 $as_echo_n "(cached) " >&6
16248 else
16249 if test -d /var/mail; then
16250 bash_cv_mail_dir=/var/mail
16251 elif test -d /var/spool/mail; then
16252 bash_cv_mail_dir=/var/spool/mail
16253 elif test -d /usr/mail; then
16254 bash_cv_mail_dir=/usr/mail
16255 elif test -d /usr/spool/mail; then
16256 bash_cv_mail_dir=/usr/spool/mail
16257 else
16258 bash_cv_mail_dir=unknown
16259 fi
16260
16261 fi
16262
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
16264 $as_echo "$bash_cv_mail_dir" >&6; }
16265 cat >>confdefs.h <<_ACEOF
16266 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
16267 _ACEOF
16268
16269
16270
16271 if test "$bash_cv_job_control_missing" = missing; then
16272 opt_job_control=no
16273 fi
16274
16275 if test "$opt_job_control" = yes; then
16276 $as_echo "#define JOB_CONTROL 1" >>confdefs.h
16277
16278 JOBS_O=jobs.o
16279 else
16280 JOBS_O=nojobs.o
16281 fi
16282
16283
16284
16285
16286 LOCAL_DEFS=-DSHELL
16287
16288
16289 case "${host_os}" in
16290 sysv4.2*) $as_echo "#define SVR4_2 1" >>confdefs.h
16291
16292 $as_echo "#define SVR4 1" >>confdefs.h
16293 ;;
16294 sysv4*) $as_echo "#define SVR4 1" >>confdefs.h
16295 ;;
16296 sysv5*) $as_echo "#define SVR5 1" >>confdefs.h
16297 ;;
16298 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
16299 hpux*) LOCAL_CFLAGS=-DHPUX ;;
16300 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
16301 isc*) LOCAL_CFLAGS=-Disc386 ;;
16302 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
16303 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
16304 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
16305 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
16306 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
16307 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
16308 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
16309 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
16310 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
16311 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
16312 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
16313 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
16314 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
16315 case "`uname -r`" in
16316 1.*|2.[0123]*) : ;;
16317 *) $as_echo "#define PGRP_PIPE 1" >>confdefs.h
16318 ;;
16319 esac ;;
16320 netbsd*|openbsd*) LOCAL_CFLAGS="-DDEV_FD_STAT_BROKEN" ;;
16321 *qnx[67]*) LOCAL_LIBS="-lncurses" ;;
16322 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
16323 powerux*) LOCAL_LIBS="-lgen" ;;
16324 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
16325 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
16326 *openstep*) LOCAL_CFLAGS="-D__APPLE_CC__" ;;
16327 esac
16328
16329 case "${host_os}-${CC}" in
16330 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
16331 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
16332 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
16333 bsdi5*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
16334 hpux11*-gcc*) LOCAL_LDFLAGS="-Wl,-E" ;; # allow dynamic loading
16335 esac
16336
16337 case "${host_os}" in
16338 freebsd[3-9]*)
16339 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
16340 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
16341 fi ;;
16342 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
16343 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
16344 esac
16345
16346 case "$host_cpu" in
16347 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
16348 esac
16349
16350 case "$host_cpu-$host_os" in
16351 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
16352 esac
16353
16354 case "$host_cpu-$host_vendor-$host_os" in
16355 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
16356 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
16357 esac
16358
16359 # turn off paren warnings in gcc
16360 if test "$GCC" = yes # && test -n "$DEBUG"
16361 then
16362 CFLAGS="$CFLAGS -Wno-parentheses -Wno-format-security"
16363 # if test -n "$DEBUG"
16364 # then
16365 # CFLAGS="$CFLAGS -Werror"
16366 # fi
16367 fi
16368
16369 #
16370 # Shared object configuration section. These values are generated by
16371 # ${srcdir}/support/shobj-conf
16372 #
16373 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
16374 then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
16376 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
16377 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
16378
16379
16380
16381
16382
16383
16384
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
16386 $as_echo "$SHOBJ_STATUS" >&6; }
16387 else
16388 SHOBJ_STATUS=unsupported
16389
16390 fi
16391
16392 # try to create a directory tree if the source is elsewhere
16393 # this should be packaged into a script accessible via ${srcdir}/support
16394 case "$srcdir" in
16395 .) ;;
16396 *) for d in doc tests support lib examples; do # dirs
16397 test -d $d || mkdir $d
16398 done
16399 for ld in readline glob tilde malloc sh termcap; do # libdirs
16400 test -d lib/$ld || mkdir lib/$ld
16401 done
16402 test -d examples/loadables || mkdir examples/loadables # loadable builtins
16403 test -d examples/loadables/perl || mkdir examples/loadables/perl
16404 ;;
16405 esac
16406
16407 BUILD_DIR=`pwd`
16408 case "$BUILD_DIR" in
16409 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
16410 *) ;;
16411 esac
16412
16413 if test -z "$localedir"; then
16414 localedir='${datarootdir}/locale'
16415 fi
16416 if test -z "$datarootdir"; then
16417 datarootdir='${prefix}/share'
16418 fi
16419
16420
16421
16422
16423
16424
16425 # Some versions of autoconf don't substitute these automatically
16426
16427
16428
16429 # directory where we install dynamically loadable builtins
16430 if test -z "$loadablesdir"; then
16431 loadablesdir='${libdir}/bash'
16432 fi
16433
16434 if test -z "$headersdir"; then
16435 headersdir='$(includedir)/$(PACKAGE_NAME)'
16436 fi
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457 #AC_SUBST(ALLOCA_SOURCE)
16458 #AC_SUBST(ALLOCA_OBJECT)
16459
16460 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/Makefile.inc examples/loadables/perl/Makefile support/bash.pc support/bashbug.sh"
16461
16462 ac_config_commands="$ac_config_commands default"
16463
16464 cat >confcache <<\_ACEOF
16465 # This file is a shell script that caches the results of configure
16466 # tests run on this system so they can be shared between configure
16467 # scripts and configure runs, see configure's option --config-cache.
16468 # It is not useful on other systems. If it contains results you don't
16469 # want to keep, you may remove or edit it.
16470 #
16471 # config.status only pays attention to the cache file if you give it
16472 # the --recheck option to rerun configure.
16473 #
16474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16476 # following values.
16477
16478 _ACEOF
16479
16480 # The following way of writing the cache mishandles newlines in values,
16481 # but we know of no workaround that is simple, portable, and efficient.
16482 # So, we kill variables containing newlines.
16483 # Ultrix sh set writes to stderr and can't be redirected directly,
16484 # and sets the high bit in the cache file unless we assign to the vars.
16485 (
16486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16487 eval ac_val=\$$ac_var
16488 case $ac_val in #(
16489 *${as_nl}*)
16490 case $ac_var in #(
16491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16493 esac
16494 case $ac_var in #(
16495 _ | IFS | as_nl) ;; #(
16496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16497 *) { eval $ac_var=; unset $ac_var;} ;;
16498 esac ;;
16499 esac
16500 done
16501
16502 (set) 2>&1 |
16503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16504 *${as_nl}ac_space=\ *)
16505 # `set' does not quote correctly, so add quotes: double-quote
16506 # substitution turns \\\\ into \\, and sed turns \\ into \.
16507 sed -n \
16508 "s/'/'\\\\''/g;
16509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16510 ;; #(
16511 *)
16512 # `set' quotes correctly as required by POSIX, so do not add quotes.
16513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16514 ;;
16515 esac |
16516 sort
16517 ) |
16518 sed '
16519 /^ac_cv_env_/b end
16520 t clear
16521 :clear
16522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16523 t end
16524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16525 :end' >>confcache
16526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16527 if test -w "$cache_file"; then
16528 if test "x$cache_file" != "x/dev/null"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16530 $as_echo "$as_me: updating cache $cache_file" >&6;}
16531 if test ! -f "$cache_file" || test -h "$cache_file"; then
16532 cat confcache >"$cache_file"
16533 else
16534 case $cache_file in #(
16535 */* | ?:*)
16536 mv -f confcache "$cache_file"$$ &&
16537 mv -f "$cache_file"$$ "$cache_file" ;; #(
16538 *)
16539 mv -f confcache "$cache_file" ;;
16540 esac
16541 fi
16542 fi
16543 else
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16546 fi
16547 fi
16548 rm -f confcache
16549
16550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16551 # Let make expand exec_prefix.
16552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16553
16554 DEFS=-DHAVE_CONFIG_H
16555
16556 ac_libobjs=
16557 ac_ltlibobjs=
16558 U=
16559 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16560 # 1. Remove the extension, and $U if already installed.
16561 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16562 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16564 # will be set to the directory where LIBOBJS objects are built.
16565 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16566 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16567 done
16568 LIBOBJS=$ac_libobjs
16569
16570 LTLIBOBJS=$ac_ltlibobjs
16571
16572
16573
16574
16575 : "${CONFIG_STATUS=./config.status}"
16576 ac_write_fail=0
16577 ac_clean_files_save=$ac_clean_files
16578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16580 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16581 as_write_fail=0
16582 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16583 #! $SHELL
16584 # Generated by $as_me.
16585 # Run this file to recreate the current configuration.
16586 # Compiler output produced by configure, useful for debugging
16587 # configure, is in config.log if it exists.
16588
16589 debug=false
16590 ac_cs_recheck=false
16591 ac_cs_silent=false
16592
16593 SHELL=\${CONFIG_SHELL-$SHELL}
16594 export SHELL
16595 _ASEOF
16596 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16597 ## -------------------- ##
16598 ## M4sh Initialization. ##
16599 ## -------------------- ##
16600
16601 # Be more Bourne compatible
16602 DUALCASE=1; export DUALCASE # for MKS sh
16603 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16604 emulate sh
16605 NULLCMD=:
16606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16607 # is contrary to our usage. Disable this feature.
16608 alias -g '${1+"$@"}'='"$@"'
16609 setopt NO_GLOB_SUBST
16610 else
16611 case `(set -o) 2>/dev/null` in #(
16612 *posix*) :
16613 set -o posix ;; #(
16614 *) :
16615 ;;
16616 esac
16617 fi
16618
16619
16620 as_nl='
16621 '
16622 export as_nl
16623 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16624 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16627 # Prefer a ksh shell builtin over an external printf program on Solaris,
16628 # but without wasting forks for bash or zsh.
16629 if test -z "$BASH_VERSION$ZSH_VERSION" \
16630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16631 as_echo='print -r --'
16632 as_echo_n='print -rn --'
16633 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16634 as_echo='printf %s\n'
16635 as_echo_n='printf %s'
16636 else
16637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16638 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16639 as_echo_n='/usr/ucb/echo -n'
16640 else
16641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16642 as_echo_n_body='eval
16643 arg=$1;
16644 case $arg in #(
16645 *"$as_nl"*)
16646 expr "X$arg" : "X\\(.*\\)$as_nl";
16647 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16648 esac;
16649 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16650 '
16651 export as_echo_n_body
16652 as_echo_n='sh -c $as_echo_n_body as_echo'
16653 fi
16654 export as_echo_body
16655 as_echo='sh -c $as_echo_body as_echo'
16656 fi
16657
16658 # The user is always right.
16659 if test "${PATH_SEPARATOR+set}" != set; then
16660 PATH_SEPARATOR=:
16661 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16662 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16663 PATH_SEPARATOR=';'
16664 }
16665 fi
16666
16667
16668 # IFS
16669 # We need space, tab and new line, in precisely that order. Quoting is
16670 # there to prevent editors from complaining about space-tab.
16671 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16672 # splitting by setting IFS to empty value.)
16673 IFS=" "" $as_nl"
16674
16675 # Find who we are. Look in the path if we contain no directory separator.
16676 as_myself=
16677 case $0 in #((
16678 *[\\/]* ) as_myself=$0 ;;
16679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16680 for as_dir in $PATH
16681 do
16682 IFS=$as_save_IFS
16683 test -z "$as_dir" && as_dir=.
16684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16685 done
16686 IFS=$as_save_IFS
16687
16688 ;;
16689 esac
16690 # We did not find ourselves, most probably we were run as `sh COMMAND'
16691 # in which case we are not to be found in the path.
16692 if test "x$as_myself" = x; then
16693 as_myself=$0
16694 fi
16695 if test ! -f "$as_myself"; then
16696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16697 exit 1
16698 fi
16699
16700 # Unset variables that we do not need and which cause bugs (e.g. in
16701 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16702 # suppresses any "Segmentation fault" message there. '((' could
16703 # trigger a bug in pdksh 5.2.14.
16704 for as_var in BASH_ENV ENV MAIL MAILPATH
16705 do eval test x\${$as_var+set} = xset \
16706 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16707 done
16708 PS1='$ '
16709 PS2='> '
16710 PS4='+ '
16711
16712 # NLS nuisances.
16713 LC_ALL=C
16714 export LC_ALL
16715 LANGUAGE=C
16716 export LANGUAGE
16717
16718 # CDPATH.
16719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16720
16721
16722 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16723 # ----------------------------------------
16724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16726 # script with STATUS, using 1 if that was 0.
16727 as_fn_error ()
16728 {
16729 as_status=$1; test $as_status -eq 0 && as_status=1
16730 if test "$4"; then
16731 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16733 fi
16734 $as_echo "$as_me: error: $2" >&2
16735 as_fn_exit $as_status
16736 } # as_fn_error
16737
16738
16739 # as_fn_set_status STATUS
16740 # -----------------------
16741 # Set $? to STATUS, without forking.
16742 as_fn_set_status ()
16743 {
16744 return $1
16745 } # as_fn_set_status
16746
16747 # as_fn_exit STATUS
16748 # -----------------
16749 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16750 as_fn_exit ()
16751 {
16752 set +e
16753 as_fn_set_status $1
16754 exit $1
16755 } # as_fn_exit
16756
16757 # as_fn_unset VAR
16758 # ---------------
16759 # Portably unset VAR.
16760 as_fn_unset ()
16761 {
16762 { eval $1=; unset $1;}
16763 }
16764 as_unset=as_fn_unset
16765 # as_fn_append VAR VALUE
16766 # ----------------------
16767 # Append the text in VALUE to the end of the definition contained in VAR. Take
16768 # advantage of any shell optimizations that allow amortized linear growth over
16769 # repeated appends, instead of the typical quadratic growth present in naive
16770 # implementations.
16771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16772 eval 'as_fn_append ()
16773 {
16774 eval $1+=\$2
16775 }'
16776 else
16777 as_fn_append ()
16778 {
16779 eval $1=\$$1\$2
16780 }
16781 fi # as_fn_append
16782
16783 # as_fn_arith ARG...
16784 # ------------------
16785 # Perform arithmetic evaluation on the ARGs, and store the result in the
16786 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16787 # must be portable across $(()) and expr.
16788 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16789 eval 'as_fn_arith ()
16790 {
16791 as_val=$(( $* ))
16792 }'
16793 else
16794 as_fn_arith ()
16795 {
16796 as_val=`expr "$@" || test $? -eq 1`
16797 }
16798 fi # as_fn_arith
16799
16800
16801 if expr a : '\(a\)' >/dev/null 2>&1 &&
16802 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16803 as_expr=expr
16804 else
16805 as_expr=false
16806 fi
16807
16808 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16809 as_basename=basename
16810 else
16811 as_basename=false
16812 fi
16813
16814 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16815 as_dirname=dirname
16816 else
16817 as_dirname=false
16818 fi
16819
16820 as_me=`$as_basename -- "$0" ||
16821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16822 X"$0" : 'X\(//\)$' \| \
16823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16824 $as_echo X/"$0" |
16825 sed '/^.*\/\([^/][^/]*\)\/*$/{
16826 s//\1/
16827 q
16828 }
16829 /^X\/\(\/\/\)$/{
16830 s//\1/
16831 q
16832 }
16833 /^X\/\(\/\).*/{
16834 s//\1/
16835 q
16836 }
16837 s/.*/./; q'`
16838
16839 # Avoid depending upon Character Ranges.
16840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16843 as_cr_digits='0123456789'
16844 as_cr_alnum=$as_cr_Letters$as_cr_digits
16845
16846 ECHO_C= ECHO_N= ECHO_T=
16847 case `echo -n x` in #(((((
16848 -n*)
16849 case `echo 'xy\c'` in
16850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16851 xy) ECHO_C='\c';;
16852 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16853 ECHO_T=' ';;
16854 esac;;
16855 *)
16856 ECHO_N='-n';;
16857 esac
16858
16859 rm -f conf$$ conf$$.exe conf$$.file
16860 if test -d conf$$.dir; then
16861 rm -f conf$$.dir/conf$$.file
16862 else
16863 rm -f conf$$.dir
16864 mkdir conf$$.dir 2>/dev/null
16865 fi
16866 if (echo >conf$$.file) 2>/dev/null; then
16867 if ln -s conf$$.file conf$$ 2>/dev/null; then
16868 as_ln_s='ln -s'
16869 # ... but there are two gotchas:
16870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16872 # In both cases, we have to default to `cp -pR'.
16873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16874 as_ln_s='cp -pR'
16875 elif ln conf$$.file conf$$ 2>/dev/null; then
16876 as_ln_s=ln
16877 else
16878 as_ln_s='cp -pR'
16879 fi
16880 else
16881 as_ln_s='cp -pR'
16882 fi
16883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16884 rmdir conf$$.dir 2>/dev/null
16885
16886
16887 # as_fn_mkdir_p
16888 # -------------
16889 # Create "$as_dir" as a directory, including parents if necessary.
16890 as_fn_mkdir_p ()
16891 {
16892
16893 case $as_dir in #(
16894 -*) as_dir=./$as_dir;;
16895 esac
16896 test -d "$as_dir" || eval $as_mkdir_p || {
16897 as_dirs=
16898 while :; do
16899 case $as_dir in #(
16900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16901 *) as_qdir=$as_dir;;
16902 esac
16903 as_dirs="'$as_qdir' $as_dirs"
16904 as_dir=`$as_dirname -- "$as_dir" ||
16905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906 X"$as_dir" : 'X\(//\)[^/]' \| \
16907 X"$as_dir" : 'X\(//\)$' \| \
16908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16909 $as_echo X"$as_dir" |
16910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16911 s//\1/
16912 q
16913 }
16914 /^X\(\/\/\)[^/].*/{
16915 s//\1/
16916 q
16917 }
16918 /^X\(\/\/\)$/{
16919 s//\1/
16920 q
16921 }
16922 /^X\(\/\).*/{
16923 s//\1/
16924 q
16925 }
16926 s/.*/./; q'`
16927 test -d "$as_dir" && break
16928 done
16929 test -z "$as_dirs" || eval "mkdir $as_dirs"
16930 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16931
16932
16933 } # as_fn_mkdir_p
16934 if mkdir -p . 2>/dev/null; then
16935 as_mkdir_p='mkdir -p "$as_dir"'
16936 else
16937 test -d ./-p && rmdir ./-p
16938 as_mkdir_p=false
16939 fi
16940
16941
16942 # as_fn_executable_p FILE
16943 # -----------------------
16944 # Test if FILE is an executable regular file.
16945 as_fn_executable_p ()
16946 {
16947 test -f "$1" && test -x "$1"
16948 } # as_fn_executable_p
16949 as_test_x='test -x'
16950 as_executable_p=as_fn_executable_p
16951
16952 # Sed expression to map a string onto a valid CPP name.
16953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16954
16955 # Sed expression to map a string onto a valid variable name.
16956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16957
16958
16959 exec 6>&1
16960 ## ----------------------------------- ##
16961 ## Main body of $CONFIG_STATUS script. ##
16962 ## ----------------------------------- ##
16963 _ASEOF
16964 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16965
16966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16967 # Save the log message, to keep $0 and so on meaningful, and to
16968 # report actual input values of CONFIG_FILES etc. instead of their
16969 # values after options handling.
16970 ac_log="
16971 This file was extended by bash $as_me 5.0-release, which was
16972 generated by GNU Autoconf 2.69. Invocation command line was
16973
16974 CONFIG_FILES = $CONFIG_FILES
16975 CONFIG_HEADERS = $CONFIG_HEADERS
16976 CONFIG_LINKS = $CONFIG_LINKS
16977 CONFIG_COMMANDS = $CONFIG_COMMANDS
16978 $ $0 $@
16979
16980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16981 "
16982
16983 _ACEOF
16984
16985 case $ac_config_files in *"
16986 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16987 esac
16988
16989 case $ac_config_headers in *"
16990 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16991 esac
16992
16993
16994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16995 # Files that config.status was made for.
16996 config_files="$ac_config_files"
16997 config_headers="$ac_config_headers"
16998 config_commands="$ac_config_commands"
16999
17000 _ACEOF
17001
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 ac_cs_usage="\
17004 \`$as_me' instantiates files and other configuration actions
17005 from templates according to the current configuration. Unless the files
17006 and actions are specified as TAGs, all are instantiated by default.
17007
17008 Usage: $0 [OPTION]... [TAG]...
17009
17010 -h, --help print this help, then exit
17011 -V, --version print version number and configuration settings, then exit
17012 --config print configuration, then exit
17013 -q, --quiet, --silent
17014 do not print progress messages
17015 -d, --debug don't remove temporary files
17016 --recheck update $as_me by reconfiguring in the same conditions
17017 --file=FILE[:TEMPLATE]
17018 instantiate the configuration file FILE
17019 --header=FILE[:TEMPLATE]
17020 instantiate the configuration header FILE
17021
17022 Configuration files:
17023 $config_files
17024
17025 Configuration headers:
17026 $config_headers
17027
17028 Configuration commands:
17029 $config_commands
17030
17031 Report bugs to <bug-bash@gnu.org>."
17032
17033 _ACEOF
17034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17035 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17036 ac_cs_version="\\
17037 bash config.status 5.0-release
17038 configured by $0, generated by GNU Autoconf 2.69,
17039 with options \\"\$ac_cs_config\\"
17040
17041 Copyright (C) 2012 Free Software Foundation, Inc.
17042 This config.status script is free software; the Free Software Foundation
17043 gives unlimited permission to copy, distribute and modify it."
17044
17045 ac_pwd='$ac_pwd'
17046 srcdir='$srcdir'
17047 INSTALL='$INSTALL'
17048 test -n "\$AWK" || AWK=awk
17049 _ACEOF
17050
17051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17052 # The default lists apply if the user does not specify any file.
17053 ac_need_defaults=:
17054 while test $# != 0
17055 do
17056 case $1 in
17057 --*=?*)
17058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17060 ac_shift=:
17061 ;;
17062 --*=)
17063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17064 ac_optarg=
17065 ac_shift=:
17066 ;;
17067 *)
17068 ac_option=$1
17069 ac_optarg=$2
17070 ac_shift=shift
17071 ;;
17072 esac
17073
17074 case $ac_option in
17075 # Handling of the options.
17076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17077 ac_cs_recheck=: ;;
17078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17079 $as_echo "$ac_cs_version"; exit ;;
17080 --config | --confi | --conf | --con | --co | --c )
17081 $as_echo "$ac_cs_config"; exit ;;
17082 --debug | --debu | --deb | --de | --d | -d )
17083 debug=: ;;
17084 --file | --fil | --fi | --f )
17085 $ac_shift
17086 case $ac_optarg in
17087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17088 '') as_fn_error $? "missing file argument" ;;
17089 esac
17090 as_fn_append CONFIG_FILES " '$ac_optarg'"
17091 ac_need_defaults=false;;
17092 --header | --heade | --head | --hea )
17093 $ac_shift
17094 case $ac_optarg in
17095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17096 esac
17097 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17098 ac_need_defaults=false;;
17099 --he | --h)
17100 # Conflict between --help and --header
17101 as_fn_error $? "ambiguous option: \`$1'
17102 Try \`$0 --help' for more information.";;
17103 --help | --hel | -h )
17104 $as_echo "$ac_cs_usage"; exit ;;
17105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17107 ac_cs_silent=: ;;
17108
17109 # This is an error.
17110 -*) as_fn_error $? "unrecognized option: \`$1'
17111 Try \`$0 --help' for more information." ;;
17112
17113 *) as_fn_append ac_config_targets " $1"
17114 ac_need_defaults=false ;;
17115
17116 esac
17117 shift
17118 done
17119
17120 ac_configure_extra_args=
17121
17122 if $ac_cs_silent; then
17123 exec 6>/dev/null
17124 ac_configure_extra_args="$ac_configure_extra_args --silent"
17125 fi
17126
17127 _ACEOF
17128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17129 if \$ac_cs_recheck; then
17130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17131 shift
17132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17133 CONFIG_SHELL='$SHELL'
17134 export CONFIG_SHELL
17135 exec "\$@"
17136 fi
17137
17138 _ACEOF
17139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17140 exec 5>>config.log
17141 {
17142 echo
17143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17144 ## Running $as_me. ##
17145 _ASBOX
17146 $as_echo "$ac_log"
17147 } >&5
17148
17149 _ACEOF
17150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151 #
17152 # INIT-COMMANDS
17153 #
17154 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17155 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17156 # from automake.
17157 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17158 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17159 LINGUAS="${LINGUAS-%UNSET%}"
17160
17161
17162 _ACEOF
17163
17164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17165
17166 # Handling of arguments.
17167 for ac_config_target in $ac_config_targets
17168 do
17169 case $ac_config_target in
17170 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17171 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17172 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17173 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
17174 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
17175 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
17176 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
17177 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
17178 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
17179 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
17180 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
17181 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17182 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
17183 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17184 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
17185 "examples/loadables/Makefile.inc") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile.inc" ;;
17186 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
17187 "support/bash.pc") CONFIG_FILES="$CONFIG_FILES support/bash.pc" ;;
17188 "support/bashbug.sh") CONFIG_FILES="$CONFIG_FILES support/bashbug.sh" ;;
17189 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17190
17191 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17192 esac
17193 done
17194
17195
17196 # If the user did not use the arguments to specify the items to instantiate,
17197 # then the envvar interface is used. Set only those that are not.
17198 # We use the long form for the default assignment because of an extremely
17199 # bizarre bug on SunOS 4.1.3.
17200 if $ac_need_defaults; then
17201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17204 fi
17205
17206 # Have a temporary directory for convenience. Make it in the build tree
17207 # simply because there is no reason against having it here, and in addition,
17208 # creating and moving files from /tmp can sometimes cause problems.
17209 # Hook for its removal unless debugging.
17210 # Note that there is a small window in which the directory will not be cleaned:
17211 # after its creation but before its name has been assigned to `$tmp'.
17212 $debug ||
17213 {
17214 tmp= ac_tmp=
17215 trap 'exit_status=$?
17216 : "${ac_tmp:=$tmp}"
17217 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17218 ' 0
17219 trap 'as_fn_exit 1' 1 2 13 15
17220 }
17221 # Create a (secure) tmp directory for tmp files.
17222
17223 {
17224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17225 test -d "$tmp"
17226 } ||
17227 {
17228 tmp=./conf$$-$RANDOM
17229 (umask 077 && mkdir "$tmp")
17230 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17231 ac_tmp=$tmp
17232
17233 # Set up the scripts for CONFIG_FILES section.
17234 # No need to generate them if there are no CONFIG_FILES.
17235 # This happens for instance with `./config.status config.h'.
17236 if test -n "$CONFIG_FILES"; then
17237
17238
17239 ac_cr=`echo X | tr X '\015'`
17240 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17241 # But we know of no other shell where ac_cr would be empty at this
17242 # point, so we can use a bashism as a fallback.
17243 if test "x$ac_cr" = x; then
17244 eval ac_cr=\$\'\\r\'
17245 fi
17246 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17247 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17248 ac_cs_awk_cr='\\r'
17249 else
17250 ac_cs_awk_cr=$ac_cr
17251 fi
17252
17253 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17254 _ACEOF
17255
17256
17257 {
17258 echo "cat >conf$$subs.awk <<_ACEOF" &&
17259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17260 echo "_ACEOF"
17261 } >conf$$subs.sh ||
17262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17264 ac_delim='%!_!# '
17265 for ac_last_try in false false false false false :; do
17266 . ./conf$$subs.sh ||
17267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17268
17269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17270 if test $ac_delim_n = $ac_delim_num; then
17271 break
17272 elif $ac_last_try; then
17273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17274 else
17275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17276 fi
17277 done
17278 rm -f conf$$subs.sh
17279
17280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17281 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17282 _ACEOF
17283 sed -n '
17284 h
17285 s/^/S["/; s/!.*/"]=/
17286 p
17287 g
17288 s/^[^!]*!//
17289 :repl
17290 t repl
17291 s/'"$ac_delim"'$//
17292 t delim
17293 :nl
17294 h
17295 s/\(.\{148\}\)..*/\1/
17296 t more1
17297 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17298 p
17299 n
17300 b repl
17301 :more1
17302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17303 p
17304 g
17305 s/.\{148\}//
17306 t nl
17307 :delim
17308 h
17309 s/\(.\{148\}\)..*/\1/
17310 t more2
17311 s/["\\]/\\&/g; s/^/"/; s/$/"/
17312 p
17313 b
17314 :more2
17315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17316 p
17317 g
17318 s/.\{148\}//
17319 t delim
17320 ' <conf$$subs.awk | sed '
17321 /^[^""]/{
17322 N
17323 s/\n//
17324 }
17325 ' >>$CONFIG_STATUS || ac_write_fail=1
17326 rm -f conf$$subs.awk
17327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17328 _ACAWK
17329 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17330 for (key in S) S_is_set[key] = 1
17331 FS = "\a"
17332
17333 }
17334 {
17335 line = $ 0
17336 nfields = split(line, field, "@")
17337 substed = 0
17338 len = length(field[1])
17339 for (i = 2; i < nfields; i++) {
17340 key = field[i]
17341 keylen = length(key)
17342 if (S_is_set[key]) {
17343 value = S[key]
17344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17345 len += length(value) + length(field[++i])
17346 substed = 1
17347 } else
17348 len += 1 + keylen
17349 }
17350
17351 print line
17352 }
17353
17354 _ACAWK
17355 _ACEOF
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17359 else
17360 cat
17361 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17362 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17363 _ACEOF
17364
17365 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17366 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17367 # trailing colons and then remove the whole line if VPATH becomes empty
17368 # (actually we leave an empty line to preserve line numbers).
17369 if test "x$srcdir" = x.; then
17370 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17371 h
17372 s///
17373 s/^/:/
17374 s/[ ]*$/:/
17375 s/:\$(srcdir):/:/g
17376 s/:\${srcdir}:/:/g
17377 s/:@srcdir@:/:/g
17378 s/^:*//
17379 s/:*$//
17380 x
17381 s/\(=[ ]*\).*/\1/
17382 G
17383 s/\n//
17384 s/^[^=]*=[ ]*$//
17385 }'
17386 fi
17387
17388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17389 fi # test -n "$CONFIG_FILES"
17390
17391 # Set up the scripts for CONFIG_HEADERS section.
17392 # No need to generate them if there are no CONFIG_HEADERS.
17393 # This happens for instance with `./config.status Makefile'.
17394 if test -n "$CONFIG_HEADERS"; then
17395 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17396 BEGIN {
17397 _ACEOF
17398
17399 # Transform confdefs.h into an awk script `defines.awk', embedded as
17400 # here-document in config.status, that substitutes the proper values into
17401 # config.h.in to produce config.h.
17402
17403 # Create a delimiter string that does not exist in confdefs.h, to ease
17404 # handling of long lines.
17405 ac_delim='%!_!# '
17406 for ac_last_try in false false :; do
17407 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17408 if test -z "$ac_tt"; then
17409 break
17410 elif $ac_last_try; then
17411 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17412 else
17413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17414 fi
17415 done
17416
17417 # For the awk script, D is an array of macro values keyed by name,
17418 # likewise P contains macro parameters if any. Preserve backslash
17419 # newline sequences.
17420
17421 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17422 sed -n '
17423 s/.\{148\}/&'"$ac_delim"'/g
17424 t rset
17425 :rset
17426 s/^[ ]*#[ ]*define[ ][ ]*/ /
17427 t def
17428 d
17429 :def
17430 s/\\$//
17431 t bsnl
17432 s/["\\]/\\&/g
17433 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17434 D["\1"]=" \3"/p
17435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17436 d
17437 :bsnl
17438 s/["\\]/\\&/g
17439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17440 D["\1"]=" \3\\\\\\n"\\/p
17441 t cont
17442 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17443 t cont
17444 d
17445 :cont
17446 n
17447 s/.\{148\}/&'"$ac_delim"'/g
17448 t clear
17449 :clear
17450 s/\\$//
17451 t bsnlc
17452 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17453 d
17454 :bsnlc
17455 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17456 b cont
17457 ' <confdefs.h | sed '
17458 s/'"$ac_delim"'/"\\\
17459 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17460
17461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17462 for (key in D) D_is_set[key] = 1
17463 FS = "\a"
17464 }
17465 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17466 line = \$ 0
17467 split(line, arg, " ")
17468 if (arg[1] == "#") {
17469 defundef = arg[2]
17470 mac1 = arg[3]
17471 } else {
17472 defundef = substr(arg[1], 2)
17473 mac1 = arg[2]
17474 }
17475 split(mac1, mac2, "(") #)
17476 macro = mac2[1]
17477 prefix = substr(line, 1, index(line, defundef) - 1)
17478 if (D_is_set[macro]) {
17479 # Preserve the white space surrounding the "#".
17480 print prefix "define", macro P[macro] D[macro]
17481 next
17482 } else {
17483 # Replace #undef with comments. This is necessary, for example,
17484 # in the case of _POSIX_SOURCE, which is predefined and required
17485 # on some systems where configure will not decide to define it.
17486 if (defundef == "undef") {
17487 print "/*", prefix defundef, macro, "*/"
17488 next
17489 }
17490 }
17491 }
17492 { print }
17493 _ACAWK
17494 _ACEOF
17495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17496 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17497 fi # test -n "$CONFIG_HEADERS"
17498
17499
17500 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17501 shift
17502 for ac_tag
17503 do
17504 case $ac_tag in
17505 :[FHLC]) ac_mode=$ac_tag; continue;;
17506 esac
17507 case $ac_mode$ac_tag in
17508 :[FHL]*:*);;
17509 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17510 :[FH]-) ac_tag=-:-;;
17511 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17512 esac
17513 ac_save_IFS=$IFS
17514 IFS=:
17515 set x $ac_tag
17516 IFS=$ac_save_IFS
17517 shift
17518 ac_file=$1
17519 shift
17520
17521 case $ac_mode in
17522 :L) ac_source=$1;;
17523 :[FH])
17524 ac_file_inputs=
17525 for ac_f
17526 do
17527 case $ac_f in
17528 -) ac_f="$ac_tmp/stdin";;
17529 *) # Look for the file first in the build tree, then in the source tree
17530 # (if the path is not absolute). The absolute path cannot be DOS-style,
17531 # because $ac_f cannot contain `:'.
17532 test -f "$ac_f" ||
17533 case $ac_f in
17534 [\\/$]*) false;;
17535 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17536 esac ||
17537 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17538 esac
17539 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17540 as_fn_append ac_file_inputs " '$ac_f'"
17541 done
17542
17543 # Let's still pretend it is `configure' which instantiates (i.e., don't
17544 # use $as_me), people would be surprised to read:
17545 # /* config.h. Generated by config.status. */
17546 configure_input='Generated from '`
17547 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17548 `' by configure.'
17549 if test x"$ac_file" != x-; then
17550 configure_input="$ac_file. $configure_input"
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17552 $as_echo "$as_me: creating $ac_file" >&6;}
17553 fi
17554 # Neutralize special characters interpreted by sed in replacement strings.
17555 case $configure_input in #(
17556 *\&* | *\|* | *\\* )
17557 ac_sed_conf_input=`$as_echo "$configure_input" |
17558 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17559 *) ac_sed_conf_input=$configure_input;;
17560 esac
17561
17562 case $ac_tag in
17563 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17565 esac
17566 ;;
17567 esac
17568
17569 ac_dir=`$as_dirname -- "$ac_file" ||
17570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17571 X"$ac_file" : 'X\(//\)[^/]' \| \
17572 X"$ac_file" : 'X\(//\)$' \| \
17573 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17574 $as_echo X"$ac_file" |
17575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17576 s//\1/
17577 q
17578 }
17579 /^X\(\/\/\)[^/].*/{
17580 s//\1/
17581 q
17582 }
17583 /^X\(\/\/\)$/{
17584 s//\1/
17585 q
17586 }
17587 /^X\(\/\).*/{
17588 s//\1/
17589 q
17590 }
17591 s/.*/./; q'`
17592 as_dir="$ac_dir"; as_fn_mkdir_p
17593 ac_builddir=.
17594
17595 case "$ac_dir" in
17596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17597 *)
17598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17599 # A ".." for each directory in $ac_dir_suffix.
17600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17601 case $ac_top_builddir_sub in
17602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17604 esac ;;
17605 esac
17606 ac_abs_top_builddir=$ac_pwd
17607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17608 # for backward compatibility:
17609 ac_top_builddir=$ac_top_build_prefix
17610
17611 case $srcdir in
17612 .) # We are building in place.
17613 ac_srcdir=.
17614 ac_top_srcdir=$ac_top_builddir_sub
17615 ac_abs_top_srcdir=$ac_pwd ;;
17616 [\\/]* | ?:[\\/]* ) # Absolute name.
17617 ac_srcdir=$srcdir$ac_dir_suffix;
17618 ac_top_srcdir=$srcdir
17619 ac_abs_top_srcdir=$srcdir ;;
17620 *) # Relative name.
17621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17622 ac_top_srcdir=$ac_top_build_prefix$srcdir
17623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17624 esac
17625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17626
17627
17628 case $ac_mode in
17629 :F)
17630 #
17631 # CONFIG_FILE
17632 #
17633
17634 case $INSTALL in
17635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17636 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17637 esac
17638 _ACEOF
17639
17640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17641 # If the template does not know about datarootdir, expand it.
17642 # FIXME: This hack should be removed a few years after 2.60.
17643 ac_datarootdir_hack=; ac_datarootdir_seen=
17644 ac_sed_dataroot='
17645 /datarootdir/ {
17646 p
17647 q
17648 }
17649 /@datadir@/p
17650 /@docdir@/p
17651 /@infodir@/p
17652 /@localedir@/p
17653 /@mandir@/p'
17654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17655 *datarootdir*) ac_datarootdir_seen=yes;;
17656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17658 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17659 _ACEOF
17660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17661 ac_datarootdir_hack='
17662 s&@datadir@&$datadir&g
17663 s&@docdir@&$docdir&g
17664 s&@infodir@&$infodir&g
17665 s&@localedir@&$localedir&g
17666 s&@mandir@&$mandir&g
17667 s&\\\${datarootdir}&$datarootdir&g' ;;
17668 esac
17669 _ACEOF
17670
17671 # Neutralize VPATH when `$srcdir' = `.'.
17672 # Shell code in configure.ac might set extrasub.
17673 # FIXME: do we really want to maintain this feature?
17674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17675 ac_sed_extra="$ac_vpsub
17676 $extrasub
17677 _ACEOF
17678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17679 :t
17680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17681 s|@configure_input@|$ac_sed_conf_input|;t t
17682 s&@top_builddir@&$ac_top_builddir_sub&;t t
17683 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17684 s&@srcdir@&$ac_srcdir&;t t
17685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17686 s&@top_srcdir@&$ac_top_srcdir&;t t
17687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17688 s&@builddir@&$ac_builddir&;t t
17689 s&@abs_builddir@&$ac_abs_builddir&;t t
17690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17691 s&@INSTALL@&$ac_INSTALL&;t t
17692 $ac_datarootdir_hack
17693 "
17694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17695 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17696
17697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17698 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17700 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17702 which seems to be undefined. Please make sure it is defined" >&5
17703 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17704 which seems to be undefined. Please make sure it is defined" >&2;}
17705
17706 rm -f "$ac_tmp/stdin"
17707 case $ac_file in
17708 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17709 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17710 esac \
17711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17712 ;;
17713 :H)
17714 #
17715 # CONFIG_HEADER
17716 #
17717 if test x"$ac_file" != x-; then
17718 {
17719 $as_echo "/* $configure_input */" \
17720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17721 } >"$ac_tmp/config.h" \
17722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17723 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17725 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17726 else
17727 rm -f "$ac_file"
17728 mv "$ac_tmp/config.h" "$ac_file" \
17729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17730 fi
17731 else
17732 $as_echo "/* $configure_input */" \
17733 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17734 || as_fn_error $? "could not create -" "$LINENO" 5
17735 fi
17736 ;;
17737
17738 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17739 $as_echo "$as_me: executing $ac_file commands" >&6;}
17740 ;;
17741 esac
17742
17743
17744 case $ac_file$ac_mode in
17745 "default-1":C)
17746 for ac_file in $CONFIG_FILES; do
17747 # Support "outfile[:infile[:infile...]]"
17748 case "$ac_file" in
17749 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17750 esac
17751 # PO directories have a Makefile.in generated from Makefile.in.in.
17752 case "$ac_file" in */Makefile.in)
17753 # Adjust a relative srcdir.
17754 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17755 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17756 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17757 # In autoconf-2.13 it is called $ac_given_srcdir.
17758 # In autoconf-2.50 it is called $srcdir.
17759 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17760 case "$ac_given_srcdir" in
17761 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17762 /*) top_srcdir="$ac_given_srcdir" ;;
17763 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17764 esac
17765 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17766 rm -f "$ac_dir/POTFILES"
17767 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17768 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17769 POMAKEFILEDEPS="POTFILES.in"
17770 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17771 # on $ac_dir but don't depend on user-specified configuration
17772 # parameters.
17773 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17774 # The LINGUAS file contains the set of available languages.
17775 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17776 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17777 fi
17778 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17779 # Hide the ALL_LINGUAS assigment from automake.
17780 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17781 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17782 else
17783 # The set of available languages was given in configure.in.
17784 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17785 fi
17786 case "$ac_given_srcdir" in
17787 .) srcdirpre= ;;
17788 *) srcdirpre='$(srcdir)/' ;;
17789 esac
17790 POFILES=
17791 GMOFILES=
17792 UPDATEPOFILES=
17793 DUMMYPOFILES=
17794 for lang in $ALL_LINGUAS; do
17795 POFILES="$POFILES $srcdirpre$lang.po"
17796 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17797 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17798 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17799 done
17800 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17801 # environment variable.
17802 INST_LINGUAS=
17803 if test -n "$ALL_LINGUAS"; then
17804 for presentlang in $ALL_LINGUAS; do
17805 useit=no
17806 if test "%UNSET%" != "$LINGUAS"; then
17807 desiredlanguages="$LINGUAS"
17808 else
17809 desiredlanguages="$ALL_LINGUAS"
17810 fi
17811 for desiredlang in $desiredlanguages; do
17812 # Use the presentlang catalog if desiredlang is
17813 # a. equal to presentlang, or
17814 # b. a variant of presentlang (because in this case,
17815 # presentlang can be used as a fallback for messages
17816 # which are not translated in the desiredlang catalog).
17817 case "$desiredlang" in
17818 "$presentlang"*) useit=yes;;
17819 esac
17820 done
17821 if test $useit = yes; then
17822 INST_LINGUAS="$INST_LINGUAS $presentlang"
17823 fi
17824 done
17825 fi
17826 CATALOGS=
17827 if test -n "$INST_LINGUAS"; then
17828 for lang in $INST_LINGUAS; do
17829 CATALOGS="$CATALOGS $lang.gmo"
17830 done
17831 fi
17832 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17833 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"
17834 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17835 if test -f "$f"; then
17836 case "$f" in
17837 *.orig | *.bak | *~) ;;
17838 *) cat "$f" >> "$ac_dir/Makefile" ;;
17839 esac
17840 fi
17841 done
17842 fi
17843 ;;
17844 esac
17845 done ;;
17846 "default":C)
17847 # Makefile uses this timestamp file to record whether config.h is up to date.
17848 echo timestamp > stamp-h
17849 ;;
17850
17851 esac
17852 done # for ac_tag
17853
17854
17855 as_fn_exit 0
17856 _ACEOF
17857 ac_clean_files=$ac_clean_files_save
17858
17859 test $ac_write_fail = 0 ||
17860 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17861
17862
17863 # configure is writing to config.log, and then calls config.status.
17864 # config.status does its own redirection, appending to config.log.
17865 # Unfortunately, on DOS this fails, as config.log is still kept open
17866 # by configure, so config.status won't be able to write to it; its
17867 # output is simply discarded. So we exec the FD to /dev/null,
17868 # effectively closing config.log, so it can be properly (re)opened and
17869 # appended to by config.status. When coming back to configure, we
17870 # need to make the FD available again.
17871 if test "$no_create" != yes; then
17872 ac_cs_success=:
17873 ac_config_status_args=
17874 test "$silent" = yes &&
17875 ac_config_status_args="$ac_config_status_args --quiet"
17876 exec 5>/dev/null
17877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17878 exec 5>>config.log
17879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17880 # would make configure fail if this is the last instruction.
17881 $ac_cs_success || as_fn_exit 1
17882 fi
17883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17886 fi
17887