]> git.ipfire.org Git - thirdparty/bash.git/blob - configure
commit bash-20130201 snapshot
[thirdparty/bash.git] / configure
1 #! /bin/sh
2 # From configure.ac for Bash 4.3, version 4.054.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for bash 4.3-alpha.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148 else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154 esac
155 fi
156 "
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171 exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181 else
182 as_have_required=no
183 fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186 else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 do
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
195 /*)
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
204 fi
205 fi
206 done;;
207 esac
208 as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
215
216
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
222 BASH_ENV=/dev/null
223 ENV=/dev/null
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 export CONFIG_SHELL
226 case $- in # ((((
227 *v*x* | *x*v* ) as_opts=-vx ;;
228 *v* ) as_opts=-v ;;
229 *x* ) as_opts=-x ;;
230 * ) as_opts= ;;
231 esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233 fi
234
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='bash'
563 PACKAGE_TARNAME='bash'
564 PACKAGE_VERSION='4.3-alpha'
565 PACKAGE_STRING='bash 4.3-alpha'
566 PACKAGE_BUGREPORT='bug-bash@gnu.org'
567 PACKAGE_URL=''
568
569 ac_unique_file="shell.h"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_header_list=
607 ac_func_list=
608 ac_subst_vars='LTLIBOBJS
609 LOCAL_DEFS
610 LOCAL_LDFLAGS
611 LOCAL_CFLAGS
612 LOCAL_LIBS
613 MALLOC_DEBUG
614 DEBUG
615 RELSTATUS
616 BASHVERS
617 ARFLAGS
618 BUILD_DIR
619 incdir
620 PROFILE_FLAGS
621 SHOBJ_STATUS
622 SHOBJ_LIBS
623 SHOBJ_XLDFLAGS
624 SHOBJ_LDFLAGS
625 SHOBJ_LD
626 SHOBJ_CFLAGS
627 SHOBJ_CC
628 JOBS_O
629 TERMCAP_DEP
630 TERMCAP_LIB
631 SIGLIST_O
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 LIBINTL_H
636 INTL_INC
637 INTL_DEP
638 LIBOBJS
639 POSUB
640 LTLIBINTL
641 LIBINTL
642 INTLLIBS
643 INTL_LIBTOOL_SUFFIX_PREFIX
644 INTLOBJS
645 GENCAT
646 INSTOBJEXT
647 DATADIRNAME
648 CATOBJEXT
649 USE_INCLUDED_LIBINTL
650 BUILD_INCLUDED_LIBINTL
651 INTLBISON
652 LTLIBICONV
653 LIBICONV
654 GLIBC21
655 ALLOCA
656 MSGMERGE
657 XGETTEXT
658 GMSGFMT
659 MSGFMT
660 USE_NLS
661 MKINSTALLDIRS
662 SIZE
663 MAKE_SHELL
664 SET_MAKE
665 YFLAGS
666 YACC
667 RANLIB
668 AR
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 TILDE_LIB
673 HIST_LIBDIR
674 HISTORY_DEP
675 HISTORY_LIB
676 RL_INCLUDE
677 RL_INCLUDEDIR
678 RL_LIBDIR
679 READLINE_DEP
680 READLINE_LIB
681 RL_MINOR
682 RL_MAJOR
683 RL_VERSION
684 LIBS_FOR_BUILD
685 STATIC_LD
686 SIGNAMES_O
687 SIGNAMES_H
688 CROSS_COMPILE
689 EGREP
690 GREP
691 CPP
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 HELPSTRINGS
700 HELPFILES_TARGET
701 HELPINSTALL
702 HELPDIRDEFINE
703 HELPDIR
704 MALLOC_DEP
705 MALLOC_LDFLAGS
706 MALLOC_LIBRARY
707 MALLOC_LIB
708 MALLOC_SRC
709 MALLOC_TARGET
710 PURIFY
711 TESTSCRIPT
712 CPPFLAGS_FOR_BUILD
713 LDFLAGS_FOR_BUILD
714 CFLAGS_FOR_BUILD
715 CC_FOR_BUILD
716 DEBUGGER_START_FILE
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 with_afs
767 with_bash_malloc
768 with_curses
769 with_gnu_malloc
770 with_installed_readline
771 with_purecov
772 with_purify
773 enable_minimal_config
774 enable_alias
775 enable_arith_for_command
776 enable_array_variables
777 enable_bang_history
778 enable_brace_expansion
779 enable_casemod_attributes
780 enable_casemod_expansions
781 enable_command_timing
782 enable_cond_command
783 enable_cond_regexp
784 enable_coprocesses
785 enable_debugger
786 enable_direxpand_default
787 enable_directory_stack
788 enable_disabled_builtins
789 enable_dparen_arithmetic
790 enable_extended_glob
791 enable_extended_glob_default
792 enable_help_builtin
793 enable_history
794 enable_job_control
795 enable_multibyte
796 enable_net_redirections
797 enable_process_substitution
798 enable_progcomp
799 enable_prompt_string_decoding
800 enable_readline
801 enable_restricted
802 enable_select
803 enable_separate_helpfiles
804 enable_single_help_strings
805 enable_strict_posix_default
806 enable_usg_echo_default
807 enable_xpg_echo_default
808 enable_mem_scramble
809 enable_profiling
810 enable_static_link
811 enable_largefile
812 enable_nls
813 with_gnu_ld
814 enable_rpath
815 with_libiconv_prefix
816 with_included_gettext
817 with_libintl_prefix
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 DEBUGGER_START_FILE
823 CC_FOR_BUILD
824 CFLAGS_FOR_BUILD
825 LDFLAGS_FOR_BUILD
826 CPPFLAGS_FOR_BUILD
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP
833 YACC
834 YFLAGS'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used" >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures bash 4.3-alpha to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1431
1432 cat <<\_ACEOF
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of bash 4.3-alpha:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-minimal-config a minimal sh-like configuration
1451 --enable-alias enable shell aliases
1452 --enable-arith-for-command
1453 enable arithmetic for command
1454 --enable-array-variables
1455 include shell array variables
1456 --enable-bang-history turn on csh-style history substitution
1457 --enable-brace-expansion
1458 include brace expansion
1459 --enable-casemod-attributes
1460 include case-modifying variable attributes
1461 --enable-casemod-expansions
1462 include case-modifying word expansions
1463 --enable-command-timing enable the time reserved word and command timing
1464 --enable-cond-command enable the conditional command
1465 --enable-cond-regexp enable extended regular expression matching in
1466 conditional commands
1467 --enable-coprocesses enable coprocess support and the coproc reserved
1468 word
1469 --enable-debugger enable support for bash debugger
1470 --enable-direxpand-default
1471 enable the direxpand shell option by default
1472 --enable-directory-stack
1473 enable builtins pushd/popd/dirs
1474 --enable-disabled-builtins
1475 allow disabled builtins to still be invoked
1476 --enable-dparen-arithmetic
1477 include ((...)) command
1478 --enable-extended-glob include ksh-style extended pattern matching
1479 --enable-extended-glob-default
1480 force extended pattern matching to be enabled by
1481 default
1482 --enable-help-builtin include the help builtin
1483 --enable-history turn on command history
1484 --enable-job-control enable job control features
1485 --enable-multibyte enable multibyte characters if OS supports them
1486 --enable-net-redirections
1487 enable /dev/tcp/host/port redirection
1488 --enable-process-substitution
1489 enable process substitution
1490 --enable-progcomp enable programmable completion and the complete
1491 builtin
1492 --enable-prompt-string-decoding
1493 turn on escape character decoding in prompts
1494 --enable-readline turn on command line editing
1495 --enable-restricted enable a restricted shell
1496 --enable-select include select command
1497 --enable-separate-helpfiles
1498 use external files for help builtin documentation
1499 --enable-single-help-strings
1500 store help documentation as a single string to ease
1501 translation
1502 --enable-strict-posix-default
1503 configure bash to be posix-conformant by default
1504 --enable-usg-echo-default
1505 a synonym for --enable-xpg-echo-default
1506 --enable-xpg-echo-default
1507 make the echo builtin expand escape sequences by
1508 default
1509 --enable-mem-scramble scramble memory on calls to malloc and free
1510 --enable-profiling allow profiling with gprof
1511 --enable-static-link link bash statically, for use as a root shell
1512 --disable-largefile omit support for large files
1513 --disable-nls do not use Native Language Support
1514 --disable-rpath do not hardcode runtime library paths
1515
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-afs if you are running AFS
1520 --with-bash-malloc use the Bash version of malloc
1521 --with-curses use the curses library instead of the termcap
1522 library
1523 --with-gnu-malloc synonym for --with-bash-malloc
1524 --with-installed-readline
1525 use a version of the readline library that is
1526 already installed
1527 --with-purecov configure to postprocess with pure coverage
1528 --with-purify configure to postprocess with purify
1529 --with-gnu-ld assume the C compiler uses GNU ld default=no
1530 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1531 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1532 --with-included-gettext use the GNU gettext library included here
1533 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1534 --without-libintl-prefix don't search for libintl in includedir and libdir
1535
1536 Some influential environment variables:
1537 DEBUGGER_START_FILE
1538 location of bash debugger initialization file
1539 CC_FOR_BUILD
1540 C compiler used when compiling binaries used only at build time
1541 CFLAGS_FOR_BUILD
1542 Compliation options (CFLAGS) used when compiling binaries used
1543 only at build time
1544 LDFLAGS_FOR_BUILD
1545 Linker options (LDFLAGS) used when compiling binaries used only
1546 at build time
1547 CPPFLAGS_FOR_BUILD
1548 C preprocessor options (CPPFLAGS) used when compiling binaries
1549 used only at build time
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 YACC The `Yet Another Compiler Compiler' implementation to use.
1559 Defaults to the first program found out of: `bison -y', `byacc',
1560 `yacc'.
1561 YFLAGS The list of arguments that will be passed by default to $YACC.
1562 This script will default YFLAGS to the empty string to avoid a
1563 default value of `-d' given by some make applications.
1564
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1567
1568 Report bugs to <bug-bash@gnu.org>.
1569 _ACEOF
1570 ac_status=$?
1571 fi
1572
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 continue
1579 ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598 .) # We are building in place.
1599 ac_srcdir=.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1606 *) # Relative name.
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630 cat <<\_ACEOF
1631 bash configure 4.3-alpha
1632 generated by GNU Autoconf 2.68
1633
1634 Copyright (C) 2010 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637 _ACEOF
1638 exit
1639 fi
1640
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1644
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_compile
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 $as_test_x conftest$ac_exeext
1711 }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_try_cpp LINENO
1730 # ----------------------
1731 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_cpp ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_cpp conftest.$ac_ext"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1748 fi
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } > conftest.i && {
1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760 fi
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_cpp
1765
1766 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769 # the include files in INCLUDES and setting the cache variable VAR
1770 # accordingly.
1771 ac_fn_c_check_header_mongrel ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if eval \${$3+:} false; then :
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 else
1784 # Is the header compilable?
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786 $as_echo_n "checking $2 usability... " >&6; }
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 ac_header_compiler=yes
1794 else
1795 ac_header_compiler=no
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799 $as_echo "$ac_header_compiler" >&6; }
1800
1801 # Is the header present?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803 $as_echo_n "checking $2 presence... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_cpp "$LINENO"; then :
1809 ac_header_preproc=yes
1810 else
1811 ac_header_preproc=no
1812 fi
1813 rm -f conftest.err conftest.i conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815 $as_echo "$ac_header_preproc" >&6; }
1816
1817 # So? What about this header?
1818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819 yes:no: )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 ;;
1825 no:yes:* )
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1829 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1833 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ( $as_echo "## ------------------------------- ##
1837 ## Report this to bug-bash@gnu.org ##
1838 ## ------------------------------- ##"
1839 ) | sed "s/^/$as_me: WARNING: /" >&2
1840 ;;
1841 esac
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 eval "$3=\$ac_header_compiler"
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 fi
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_header_mongrel
1856
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1861 ac_fn_c_try_run ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=$ac_status
1892 fi
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_run
1898
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$3=yes"
1918 else
1919 eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_header_compile
1929
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940 else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945 #define $2 innocuous_$2
1946
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1951
1952 #ifdef __STDC__
1953 # include <limits.h>
1954 #else
1955 # include <assert.h>
1956 #endif
1957
1958 #undef $2
1959
1960 /* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1963 #ifdef __cplusplus
1964 extern "C"
1965 #endif
1966 char $2 ();
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined __stub_$2 || defined __stub___$2
1971 choke me
1972 #endif
1973
1974 int
1975 main ()
1976 {
1977 return $2 ();
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_link "$LINENO"; then :
1983 eval "$3=yes"
1984 else
1985 eval "$3=no"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_func
1996
1997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998 # -------------------------------------------
1999 # Tests whether TYPE exists after having included INCLUDES, setting cache
2000 # variable VAR accordingly.
2001 ac_fn_c_check_type ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 eval "$3=no"
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main ()
2015 {
2016 if (sizeof ($2))
2017 return 0;
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 if (sizeof (($2)))
2030 return 0;
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036
2037 else
2038 eval "$3=yes"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_type
2050
2051 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2052 # ---------------------------------------------
2053 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2054 # accordingly.
2055 ac_fn_c_check_decl ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 as_decl_name=`echo $2|sed 's/ *(.*//'`
2059 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2061 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $4
2068 int
2069 main ()
2070 {
2071 #ifndef $as_decl_name
2072 #ifdef __cplusplus
2073 (void) $as_decl_use;
2074 #else
2075 (void) $as_decl_name;
2076 #endif
2077 #endif
2078
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 fi
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
2095 } # ac_fn_c_check_decl
2096
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 # computed
2102 ac_fn_c_compute_int ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2114 test_array [0] = 0
2115
2116 ;
2117 return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=0 ac_mid=0
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid; break
2138 else
2139 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140 if test $ac_lo -le $ac_mid; then
2141 ac_lo= ac_hi=
2142 break
2143 fi
2144 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) < 0)];
2156 test_array [0] = 0
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=-1 ac_mid=-1
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 test_array [0] = 0
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_lo=$ac_mid; break
2180 else
2181 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182 if test $ac_mid -le $ac_hi; then
2183 ac_lo= ac_hi=
2184 break
2185 fi
2186 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 ac_lo= ac_hi=
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 # Binary search between lo and hi bounds.
2197 while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 test_array [0] = 0
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214 else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219 case $ac_lo in #((
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221 '') ac_retval=1 ;;
2222 esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2229 #include <stdio.h>
2230 #include <stdlib.h>
2231 int
2232 main ()
2233 {
2234
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2239 {
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2244 }
2245 else
2246 {
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2251 }
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2255
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262 else
2263 ac_retval=1
2264 fi
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 rm -f conftest.val
2268
2269 fi
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 as_fn_set_status $ac_retval
2272
2273 } # ac_fn_c_compute_int
2274
2275 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2276 # ----------------------------------------------------
2277 # Tries to find if the field MEMBER exists in type AGGR, after including
2278 # INCLUDES, setting cache variable VAR accordingly.
2279 ac_fn_c_check_member ()
2280 {
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2283 $as_echo_n "checking for $2.$3... " >&6; }
2284 if eval \${$4+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 $5
2290 int
2291 main ()
2292 {
2293 static $2 ac_aggr;
2294 if (ac_aggr.$3)
2295 return 0;
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 eval "$4=yes"
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $5
2306 int
2307 main ()
2308 {
2309 static $2 ac_aggr;
2310 if (sizeof ac_aggr.$3)
2311 return 0;
2312 ;
2313 return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$4=yes"
2318 else
2319 eval "$4=no"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 fi
2325 eval ac_res=\$$4
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
2330 } # ac_fn_c_check_member
2331 cat >config.log <<_ACEOF
2332 This file contains any messages produced by compilers while
2333 running configure, to aid debugging if configure makes a mistake.
2334
2335 It was created by bash $as_me 4.3-alpha, which was
2336 generated by GNU Autoconf 2.68. Invocation command line was
2337
2338 $ $0 $@
2339
2340 _ACEOF
2341 exec 5>>config.log
2342 {
2343 cat <<_ASUNAME
2344 ## --------- ##
2345 ## Platform. ##
2346 ## --------- ##
2347
2348 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2349 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2350 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2351 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2352 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2353
2354 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2355 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2356
2357 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2358 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2359 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2360 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2361 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2362 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2363 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2364
2365 _ASUNAME
2366
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 $as_echo "PATH: $as_dir"
2373 done
2374 IFS=$as_save_IFS
2375
2376 } >&5
2377
2378 cat >&5 <<_ACEOF
2379
2380
2381 ## ----------- ##
2382 ## Core tests. ##
2383 ## ----------- ##
2384
2385 _ACEOF
2386
2387
2388 # Keep a trace of the command line.
2389 # Strip out --no-create and --no-recursion so they do not pile up.
2390 # Strip out --silent because we don't want to record it for future runs.
2391 # Also quote any args containing shell meta-characters.
2392 # Make two passes to allow for proper duplicate-argument suppression.
2393 ac_configure_args=
2394 ac_configure_args0=
2395 ac_configure_args1=
2396 ac_must_keep_next=false
2397 for ac_pass in 1 2
2398 do
2399 for ac_arg
2400 do
2401 case $ac_arg in
2402 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2404 | -silent | --silent | --silen | --sile | --sil)
2405 continue ;;
2406 *\'*)
2407 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2408 esac
2409 case $ac_pass in
2410 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2411 2)
2412 as_fn_append ac_configure_args1 " '$ac_arg'"
2413 if test $ac_must_keep_next = true; then
2414 ac_must_keep_next=false # Got value, back to normal.
2415 else
2416 case $ac_arg in
2417 *=* | --config-cache | -C | -disable-* | --disable-* \
2418 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2419 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2420 | -with-* | --with-* | -without-* | --without-* | --x)
2421 case "$ac_configure_args0 " in
2422 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2423 esac
2424 ;;
2425 -* ) ac_must_keep_next=true ;;
2426 esac
2427 fi
2428 as_fn_append ac_configure_args " '$ac_arg'"
2429 ;;
2430 esac
2431 done
2432 done
2433 { ac_configure_args0=; unset ac_configure_args0;}
2434 { ac_configure_args1=; unset ac_configure_args1;}
2435
2436 # When interrupted or exit'd, cleanup temporary files, and complete
2437 # config.log. We remove comments because anyway the quotes in there
2438 # would cause problems or look ugly.
2439 # WARNING: Use '\'' to represent an apostrophe within the trap.
2440 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2441 trap 'exit_status=$?
2442 # Save into config.log some information that might help in debugging.
2443 {
2444 echo
2445
2446 $as_echo "## ---------------- ##
2447 ## Cache variables. ##
2448 ## ---------------- ##"
2449 echo
2450 # The following way of writing the cache mishandles newlines in values,
2451 (
2452 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in #(
2455 *${as_nl}*)
2456 case $ac_var in #(
2457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2459 esac
2460 case $ac_var in #(
2461 _ | IFS | as_nl) ;; #(
2462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2463 *) { eval $ac_var=; unset $ac_var;} ;;
2464 esac ;;
2465 esac
2466 done
2467 (set) 2>&1 |
2468 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2469 *${as_nl}ac_space=\ *)
2470 sed -n \
2471 "s/'\''/'\''\\\\'\'''\''/g;
2472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2473 ;; #(
2474 *)
2475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2476 ;;
2477 esac |
2478 sort
2479 )
2480 echo
2481
2482 $as_echo "## ----------------- ##
2483 ## Output variables. ##
2484 ## ----------------- ##"
2485 echo
2486 for ac_var in $ac_subst_vars
2487 do
2488 eval ac_val=\$$ac_var
2489 case $ac_val in
2490 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2491 esac
2492 $as_echo "$ac_var='\''$ac_val'\''"
2493 done | sort
2494 echo
2495
2496 if test -n "$ac_subst_files"; then
2497 $as_echo "## ------------------- ##
2498 ## File substitutions. ##
2499 ## ------------------- ##"
2500 echo
2501 for ac_var in $ac_subst_files
2502 do
2503 eval ac_val=\$$ac_var
2504 case $ac_val in
2505 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2506 esac
2507 $as_echo "$ac_var='\''$ac_val'\''"
2508 done | sort
2509 echo
2510 fi
2511
2512 if test -s confdefs.h; then
2513 $as_echo "## ----------- ##
2514 ## confdefs.h. ##
2515 ## ----------- ##"
2516 echo
2517 cat confdefs.h
2518 echo
2519 fi
2520 test "$ac_signal" != 0 &&
2521 $as_echo "$as_me: caught signal $ac_signal"
2522 $as_echo "$as_me: exit $exit_status"
2523 } >&5
2524 rm -f core *.core core.conftest.* &&
2525 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2526 exit $exit_status
2527 ' 0
2528 for ac_signal in 1 2 13 15; do
2529 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2530 done
2531 ac_signal=0
2532
2533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2534 rm -f -r conftest* confdefs.h
2535
2536 $as_echo "/* confdefs.h */" > confdefs.h
2537
2538 # Predefined preprocessor variables.
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_NAME "$PACKAGE_NAME"
2542 _ACEOF
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2546 _ACEOF
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_STRING "$PACKAGE_STRING"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_URL "$PACKAGE_URL"
2562 _ACEOF
2563
2564
2565 # Let the site file select an alternate cache file if it wants to.
2566 # Prefer an explicitly selected file to automatically selected ones.
2567 ac_site_file1=NONE
2568 ac_site_file2=NONE
2569 if test -n "$CONFIG_SITE"; then
2570 # We do not want a PATH search for config.site.
2571 case $CONFIG_SITE in #((
2572 -*) ac_site_file1=./$CONFIG_SITE;;
2573 */*) ac_site_file1=$CONFIG_SITE;;
2574 *) ac_site_file1=./$CONFIG_SITE;;
2575 esac
2576 elif test "x$prefix" != xNONE; then
2577 ac_site_file1=$prefix/share/config.site
2578 ac_site_file2=$prefix/etc/config.site
2579 else
2580 ac_site_file1=$ac_default_prefix/share/config.site
2581 ac_site_file2=$ac_default_prefix/etc/config.site
2582 fi
2583 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2584 do
2585 test "x$ac_site_file" = xNONE && continue
2586 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2588 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2589 sed 's/^/| /' "$ac_site_file" >&5
2590 . "$ac_site_file" \
2591 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 as_fn_error $? "failed to load site script $ac_site_file
2594 See \`config.log' for more details" "$LINENO" 5; }
2595 fi
2596 done
2597
2598 if test -r "$cache_file"; then
2599 # Some versions of bash will fail to source /dev/null (special files
2600 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2601 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2603 $as_echo "$as_me: loading cache $cache_file" >&6;}
2604 case $cache_file in
2605 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2606 *) . "./$cache_file";;
2607 esac
2608 fi
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2611 $as_echo "$as_me: creating cache $cache_file" >&6;}
2612 >$cache_file
2613 fi
2614
2615 as_fn_append ac_header_list " stdlib.h"
2616 as_fn_append ac_header_list " unistd.h"
2617 as_fn_append ac_header_list " sys/param.h"
2618 as_fn_append ac_header_list " sys/time.h"
2619 as_fn_append ac_func_list " alarm"
2620 as_fn_append ac_func_list " fpurge"
2621 as_fn_append ac_func_list " __fpurge"
2622 as_fn_append ac_func_list " snprintf"
2623 as_fn_append ac_func_list " vsnprintf"
2624 # Check that the precious variables saved in the cache have kept the same
2625 # value.
2626 ac_cache_corrupted=false
2627 for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2633 set,)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,set)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2641 ,);;
2642 *)
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2660 fi;;
2661 esac
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2664 case $ac_new_val in
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2667 esac
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671 esac
2672 fi
2673 done
2674 if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 fi
2681 ## -------------------- ##
2682 ## Main body of script. ##
2683 ## -------------------- ##
2684
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692
2693
2694
2695
2696 ac_aux_dir=
2697 for ac_dir in ./support "$srcdir"/./support; do
2698 if test -f "$ac_dir/install-sh"; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install-sh -c"
2701 break
2702 elif test -f "$ac_dir/install.sh"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/install.sh -c"
2705 break
2706 elif test -f "$ac_dir/shtool"; then
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/shtool install -c"
2709 break
2710 fi
2711 done
2712 if test -z "$ac_aux_dir"; then
2713 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2714 fi
2715
2716 # These three variables are undocumented and unsupported,
2717 # and are intended to be withdrawn in a future Autoconf release.
2718 # They can cause serious problems if a builder's source tree is in a directory
2719 # whose full name contains unusual characters.
2720 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2721 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2722 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2723
2724
2725 ac_config_headers="$ac_config_headers config.h"
2726
2727
2728 BASHVERS=4.3
2729 RELSTATUS=alpha
2730
2731 case "$RELSTATUS" in
2732 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2733 *) DEBUG= MALLOC_DEBUG= ;;
2734 esac
2735
2736 # Make sure we can run config.sub.
2737 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2738 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2741 $as_echo_n "checking build system type... " >&6; }
2742 if ${ac_cv_build+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 ac_build_alias=$build_alias
2746 test "x$ac_build_alias" = x &&
2747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748 test "x$ac_build_alias" = x &&
2749 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2750 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2751 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2752
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2755 $as_echo "$ac_cv_build" >&6; }
2756 case $ac_cv_build in
2757 *-*-*) ;;
2758 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2759 esac
2760 build=$ac_cv_build
2761 ac_save_IFS=$IFS; IFS='-'
2762 set x $ac_cv_build
2763 shift
2764 build_cpu=$1
2765 build_vendor=$2
2766 shift; shift
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2769 build_os=$*
2770 IFS=$ac_save_IFS
2771 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2772
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2775 $as_echo_n "checking host system type... " >&6; }
2776 if ${ac_cv_host+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test "x$host_alias" = x; then
2780 ac_cv_host=$ac_cv_build
2781 else
2782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2783 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2784 fi
2785
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2788 $as_echo "$ac_cv_host" >&6; }
2789 case $ac_cv_host in
2790 *-*-*) ;;
2791 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2792 esac
2793 host=$ac_cv_host
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_host
2796 shift
2797 host_cpu=$1
2798 host_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 host_os=$*
2803 IFS=$ac_save_IFS
2804 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2805
2806
2807
2808
2809 opt_bash_malloc=yes
2810 opt_purify=no
2811 opt_purecov=no
2812 opt_afs=no
2813 opt_curses=no
2814 opt_with_installed_readline=no
2815
2816 #htmldir=
2817
2818 case "${host_cpu}-${host_os}" in
2819 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2820 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2821 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2822 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2823 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2824 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2825 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2826 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2827 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2828 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2829 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2830 *-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2831 *-aix*) opt_bash_malloc=no ;; # AIX machines
2832 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2833 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2834 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2835 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2836 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2837 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2838 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2839 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2840 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2841 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2842 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2843 *-nsk*) opt_bash_malloc=no ;; # HP NonStop
2844 esac
2845
2846 # memory scrambling on free()
2847 case "${host_os}" in
2848 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2849 *) opt_memscramble=yes ;;
2850 esac
2851
2852
2853
2854
2855 # Check whether --with-afs was given.
2856 if test "${with_afs+set}" = set; then :
2857 withval=$with_afs; opt_afs=$withval
2858 fi
2859
2860
2861 # Check whether --with-bash-malloc was given.
2862 if test "${with_bash_malloc+set}" = set; then :
2863 withval=$with_bash_malloc; opt_bash_malloc=$withval
2864 fi
2865
2866
2867 # Check whether --with-curses was given.
2868 if test "${with_curses+set}" = set; then :
2869 withval=$with_curses; opt_curses=$withval
2870 fi
2871
2872
2873 # Check whether --with-gnu-malloc was given.
2874 if test "${with_gnu_malloc+set}" = set; then :
2875 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2876 fi
2877
2878
2879 # Check whether --with-installed-readline was given.
2880 if test "${with_installed_readline+set}" = set; then :
2881 withval=$with_installed_readline; opt_with_installed_readline=$withval
2882 fi
2883
2884
2885 # Check whether --with-purecov was given.
2886 if test "${with_purecov+set}" = set; then :
2887 withval=$with_purecov; opt_purecov=$withval
2888 fi
2889
2890
2891 # Check whether --with-purify was given.
2892 if test "${with_purify+set}" = set; then :
2893 withval=$with_purify; opt_purify=$withval
2894 fi
2895
2896
2897 if test "$opt_bash_malloc" = yes; then
2898 MALLOC_TARGET=malloc
2899 MALLOC_SRC=malloc.c
2900
2901 MALLOC_LIB='-lmalloc'
2902 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2903 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2904 MALLOC_DEP='$(MALLOC_LIBRARY)'
2905
2906 $as_echo "#define USING_BASH_MALLOC 1" >>confdefs.h
2907
2908 else
2909 MALLOC_LIB=
2910 MALLOC_LIBRARY=
2911 MALLOC_LDFLAGS=
2912 MALLOC_DEP=
2913 fi
2914
2915 if test "$opt_purify" = yes; then
2916 PURIFY="purify "
2917 $as_echo "#define DISABLE_MALLOC_WRAPPERS 1" >>confdefs.h
2918
2919 else
2920 PURIFY=
2921 fi
2922
2923 if test "$opt_purecov" = yes; then
2924 PURIFY="${PURIFY}purecov"
2925 fi
2926
2927 if test "$opt_afs" = yes; then
2928 $as_echo "#define AFS 1" >>confdefs.h
2929
2930 fi
2931
2932 if test "$opt_curses" = yes; then
2933 prefer_curses=yes
2934 fi
2935
2936 if test -z "${DEBUGGER_START_FILE}"; then
2937 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2938 fi
2939
2940 opt_minimal_config=no
2941
2942 opt_job_control=yes
2943 opt_alias=yes
2944 opt_readline=yes
2945 opt_history=yes
2946 opt_bang_history=yes
2947 opt_dirstack=yes
2948 opt_restricted=yes
2949 opt_process_subst=yes
2950 opt_prompt_decoding=yes
2951 opt_select=yes
2952 opt_help=yes
2953 opt_array_variables=yes
2954 opt_dparen_arith=yes
2955 opt_extended_glob=yes
2956 opt_brace_expansion=yes
2957 opt_disabled_builtins=no
2958 opt_command_timing=yes
2959 opt_xpg_echo=no
2960 opt_strict_posix=no
2961 opt_cond_command=yes
2962 opt_cond_regexp=yes
2963 opt_coproc=yes
2964 opt_arith_for_command=yes
2965 opt_net_redirs=yes
2966 opt_progcomp=yes
2967 opt_separate_help=no
2968 opt_multibyte=yes
2969 opt_debugger=yes
2970 opt_single_longdoc_strings=yes
2971 opt_casemod_attrs=yes
2972 opt_casemod_expansions=yes
2973 opt_extglob_default=no
2974 opt_dircomplete_expand_default=no
2975
2976 opt_static_link=no
2977 opt_profiling=no
2978
2979 # Check whether --enable-minimal-config was given.
2980 if test "${enable_minimal_config+set}" = set; then :
2981 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2982 fi
2983
2984
2985 if test $opt_minimal_config = yes; then
2986 opt_job_control=no opt_alias=no opt_readline=no
2987 opt_history=no opt_bang_history=no opt_dirstack=no
2988 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2989 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2990 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2991 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2992 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2993 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2994 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
2995 fi
2996
2997 # Check whether --enable-alias was given.
2998 if test "${enable_alias+set}" = set; then :
2999 enableval=$enable_alias; opt_alias=$enableval
3000 fi
3001
3002 # Check whether --enable-arith-for-command was given.
3003 if test "${enable_arith_for_command+set}" = set; then :
3004 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3005 fi
3006
3007 # Check whether --enable-array-variables was given.
3008 if test "${enable_array_variables+set}" = set; then :
3009 enableval=$enable_array_variables; opt_array_variables=$enableval
3010 fi
3011
3012 # Check whether --enable-bang-history was given.
3013 if test "${enable_bang_history+set}" = set; then :
3014 enableval=$enable_bang_history; opt_bang_history=$enableval
3015 fi
3016
3017 # Check whether --enable-brace-expansion was given.
3018 if test "${enable_brace_expansion+set}" = set; then :
3019 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3020 fi
3021
3022 # Check whether --enable-casemod-attributes was given.
3023 if test "${enable_casemod_attributes+set}" = set; then :
3024 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3025 fi
3026
3027 # Check whether --enable-casemod-expansions was given.
3028 if test "${enable_casemod_expansions+set}" = set; then :
3029 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3030 fi
3031
3032 # Check whether --enable-command-timing was given.
3033 if test "${enable_command_timing+set}" = set; then :
3034 enableval=$enable_command_timing; opt_command_timing=$enableval
3035 fi
3036
3037 # Check whether --enable-cond-command was given.
3038 if test "${enable_cond_command+set}" = set; then :
3039 enableval=$enable_cond_command; opt_cond_command=$enableval
3040 fi
3041
3042 # Check whether --enable-cond-regexp was given.
3043 if test "${enable_cond_regexp+set}" = set; then :
3044 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3045 fi
3046
3047 # Check whether --enable-coprocesses was given.
3048 if test "${enable_coprocesses+set}" = set; then :
3049 enableval=$enable_coprocesses; opt_coproc=$enableval
3050 fi
3051
3052 # Check whether --enable-debugger was given.
3053 if test "${enable_debugger+set}" = set; then :
3054 enableval=$enable_debugger; opt_debugger=$enableval
3055 fi
3056
3057 # Check whether --enable-direxpand-default was given.
3058 if test "${enable_direxpand_default+set}" = set; then :
3059 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3060 fi
3061
3062 # Check whether --enable-directory-stack was given.
3063 if test "${enable_directory_stack+set}" = set; then :
3064 enableval=$enable_directory_stack; opt_dirstack=$enableval
3065 fi
3066
3067 # Check whether --enable-disabled-builtins was given.
3068 if test "${enable_disabled_builtins+set}" = set; then :
3069 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3070 fi
3071
3072 # Check whether --enable-dparen-arithmetic was given.
3073 if test "${enable_dparen_arithmetic+set}" = set; then :
3074 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3075 fi
3076
3077 # Check whether --enable-extended-glob was given.
3078 if test "${enable_extended_glob+set}" = set; then :
3079 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3080 fi
3081
3082 # Check whether --enable-extended-glob-default was given.
3083 if test "${enable_extended_glob_default+set}" = set; then :
3084 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3085 fi
3086
3087 # Check whether --enable-help-builtin was given.
3088 if test "${enable_help_builtin+set}" = set; then :
3089 enableval=$enable_help_builtin; opt_help=$enableval
3090 fi
3091
3092 # Check whether --enable-history was given.
3093 if test "${enable_history+set}" = set; then :
3094 enableval=$enable_history; opt_history=$enableval
3095 fi
3096
3097 # Check whether --enable-job-control was given.
3098 if test "${enable_job_control+set}" = set; then :
3099 enableval=$enable_job_control; opt_job_control=$enableval
3100 fi
3101
3102 # Check whether --enable-multibyte was given.
3103 if test "${enable_multibyte+set}" = set; then :
3104 enableval=$enable_multibyte; opt_multibyte=$enableval
3105 fi
3106
3107 # Check whether --enable-net-redirections was given.
3108 if test "${enable_net_redirections+set}" = set; then :
3109 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3110 fi
3111
3112 # Check whether --enable-process-substitution was given.
3113 if test "${enable_process_substitution+set}" = set; then :
3114 enableval=$enable_process_substitution; opt_process_subst=$enableval
3115 fi
3116
3117 # Check whether --enable-progcomp was given.
3118 if test "${enable_progcomp+set}" = set; then :
3119 enableval=$enable_progcomp; opt_progcomp=$enableval
3120 fi
3121
3122 # Check whether --enable-prompt-string-decoding was given.
3123 if test "${enable_prompt_string_decoding+set}" = set; then :
3124 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3125 fi
3126
3127 # Check whether --enable-readline was given.
3128 if test "${enable_readline+set}" = set; then :
3129 enableval=$enable_readline; opt_readline=$enableval
3130 fi
3131
3132 # Check whether --enable-restricted was given.
3133 if test "${enable_restricted+set}" = set; then :
3134 enableval=$enable_restricted; opt_restricted=$enableval
3135 fi
3136
3137 # Check whether --enable-select was given.
3138 if test "${enable_select+set}" = set; then :
3139 enableval=$enable_select; opt_select=$enableval
3140 fi
3141
3142 # Check whether --enable-separate-helpfiles was given.
3143 if test "${enable_separate_helpfiles+set}" = set; then :
3144 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3145 fi
3146
3147 # Check whether --enable-single-help-strings was given.
3148 if test "${enable_single_help_strings+set}" = set; then :
3149 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3150 fi
3151
3152 # Check whether --enable-strict-posix-default was given.
3153 if test "${enable_strict_posix_default+set}" = set; then :
3154 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3155 fi
3156
3157 # Check whether --enable-usg-echo-default was given.
3158 if test "${enable_usg_echo_default+set}" = set; then :
3159 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3160 fi
3161
3162 # Check whether --enable-xpg-echo-default was given.
3163 if test "${enable_xpg_echo_default+set}" = set; then :
3164 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3165 fi
3166
3167
3168 # Check whether --enable-mem-scramble was given.
3169 if test "${enable_mem_scramble+set}" = set; then :
3170 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3171 fi
3172
3173 # Check whether --enable-profiling was given.
3174 if test "${enable_profiling+set}" = set; then :
3175 enableval=$enable_profiling; opt_profiling=$enableval
3176 fi
3177
3178 # Check whether --enable-static-link was given.
3179 if test "${enable_static_link+set}" = set; then :
3180 enableval=$enable_static_link; opt_static_link=$enableval
3181 fi
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191 if test $opt_alias = yes; then
3192 $as_echo "#define ALIAS 1" >>confdefs.h
3193
3194 fi
3195 if test $opt_dirstack = yes; then
3196 $as_echo "#define PUSHD_AND_POPD 1" >>confdefs.h
3197
3198 fi
3199 if test $opt_restricted = yes; then
3200 $as_echo "#define RESTRICTED_SHELL 1" >>confdefs.h
3201
3202 fi
3203 if test $opt_process_subst = yes; then
3204 $as_echo "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3205
3206 fi
3207 if test $opt_prompt_decoding = yes; then
3208 $as_echo "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3209
3210 fi
3211 if test $opt_select = yes; then
3212 $as_echo "#define SELECT_COMMAND 1" >>confdefs.h
3213
3214 fi
3215 if test $opt_help = yes; then
3216 $as_echo "#define HELP_BUILTIN 1" >>confdefs.h
3217
3218 fi
3219 if test $opt_array_variables = yes; then
3220 $as_echo "#define ARRAY_VARS 1" >>confdefs.h
3221
3222 fi
3223 if test $opt_dparen_arith = yes; then
3224 $as_echo "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3225
3226 fi
3227 if test $opt_brace_expansion = yes; then
3228 $as_echo "#define BRACE_EXPANSION 1" >>confdefs.h
3229
3230 fi
3231 if test $opt_disabled_builtins = yes; then
3232 $as_echo "#define DISABLED_BUILTINS 1" >>confdefs.h
3233
3234 fi
3235 if test $opt_command_timing = yes; then
3236 $as_echo "#define COMMAND_TIMING 1" >>confdefs.h
3237
3238 fi
3239 if test $opt_xpg_echo = yes ; then
3240 $as_echo "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3241
3242 fi
3243 if test $opt_strict_posix = yes; then
3244 $as_echo "#define STRICT_POSIX 1" >>confdefs.h
3245
3246 fi
3247 if test $opt_extended_glob = yes ; then
3248 $as_echo "#define EXTENDED_GLOB 1" >>confdefs.h
3249
3250 fi
3251 if test $opt_extglob_default = yes; then
3252 $as_echo "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3253
3254 else
3255 $as_echo "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3256
3257 fi
3258 if test $opt_cond_command = yes ; then
3259 $as_echo "#define COND_COMMAND 1" >>confdefs.h
3260
3261 fi
3262 if test $opt_cond_regexp = yes ; then
3263 $as_echo "#define COND_REGEXP 1" >>confdefs.h
3264
3265 fi
3266 if test $opt_coproc = yes; then
3267 $as_echo "#define COPROCESS_SUPPORT 1" >>confdefs.h
3268
3269 fi
3270 if test $opt_arith_for_command = yes; then
3271 $as_echo "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3272
3273 fi
3274 if test $opt_net_redirs = yes; then
3275 $as_echo "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3276
3277 fi
3278 if test $opt_progcomp = yes; then
3279 $as_echo "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3280
3281 fi
3282 if test $opt_multibyte = no; then
3283 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3284
3285 fi
3286 if test $opt_debugger = yes; then
3287 $as_echo "#define DEBUGGER 1" >>confdefs.h
3288
3289 fi
3290 if test $opt_casemod_attrs = yes; then
3291 $as_echo "#define CASEMOD_ATTRS 1" >>confdefs.h
3292
3293 fi
3294 if test $opt_casemod_expansions = yes; then
3295 $as_echo "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3296
3297 fi
3298 if test $opt_dircomplete_expand_default = yes; then
3299 $as_echo "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3300
3301 fi
3302
3303 if test $opt_memscramble = yes; then
3304 $as_echo "#define MEMSCRAMBLE 1" >>confdefs.h
3305
3306 fi
3307
3308 if test "$opt_minimal_config" = yes; then
3309 TESTSCRIPT=run-minimal
3310 else
3311 TESTSCRIPT=run-all
3312 fi
3313
3314 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3315 if test "$opt_separate_help" != no; then
3316 if test "$opt_separate_help" = "yes" ; then
3317 HELPDIR='${datadir}/bash'
3318 else
3319 HELPDIR=$opt_separate_help
3320 fi
3321 HELPDIRDEFINE='-H ${HELPDIR}'
3322 HELPINSTALL='install-help'
3323 HELPFILES_TARGET='helpdoc'
3324 fi
3325 HELPSTRINGS=
3326 if test "$opt_single_longdoc_strings" != "yes"; then
3327 HELPSTRINGS='-S'
3328 fi
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348 echo ""
3349 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3350 echo ""
3351
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_CC+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379 done
3380 done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3389 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395 fi
3396 if test -z "$ac_cv_prog_CC"; then
3397 ac_ct_CC=$CC
3398 # Extract the first word of "gcc", so it can be a program name with args.
3399 set dummy gcc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_CC="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426 if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428 $as_echo "$ac_ct_CC" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434 if test "x$ac_ct_CC" = x; then
3435 CC=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 CC=$ac_ct_CC
3444 fi
3445 else
3446 CC="$ac_cv_prog_CC"
3447 fi
3448
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488 fi
3489 fi
3490 if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args.
3492 set dummy cc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 ac_prog_rejected=no
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected=yes
3511 continue
3512 fi
3513 ac_cv_prog_CC="cc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 if test $ac_prog_rejected = yes; then
3522 # We found a bogon in the path, so make sure we never use it.
3523 set dummy $ac_cv_prog_CC
3524 shift
3525 if test $# != 0; then
3526 # We chose a different compiler from the bogus one.
3527 # However, it has the same basename, so the bogon will be chosen
3528 # first if we set CC to just the basename; use the full file name.
3529 shift
3530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3531 fi
3532 fi
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in cl.exe
3549 do
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_CC+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 fi
3576 fi
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 test -n "$CC" && break
3588 done
3589 fi
3590 if test -z "$CC"; then
3591 ac_ct_CC=$CC
3592 for ac_prog in cl.exe
3593 do
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CC="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615 done
3616 done
3617 IFS=$as_save_IFS
3618
3619 fi
3620 fi
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; }
3625 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 fi
3629
3630
3631 test -n "$ac_ct_CC" && break
3632 done
3633
3634 if test "x$ac_ct_CC" = x; then
3635 CC=""
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3642 esac
3643 CC=$ac_ct_CC
3644 fi
3645 fi
3646
3647 fi
3648
3649
3650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error $? "no acceptable C compiler found in \$PATH
3653 See \`config.log' for more details" "$LINENO" 5; }
3654
3655 # Provide some information about the compiler.
3656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3657 set X $ac_compile
3658 ac_compiler=$2
3659 for ac_option in --version -v -V -qversion; do
3660 { { ac_try="$ac_compiler $ac_option >&5"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3668 ac_status=$?
3669 if test -s conftest.err; then
3670 sed '10a\
3671 ... rest of stderr output deleted ...
3672 10q' conftest.err >conftest.er1
3673 cat conftest.er1 >&5
3674 fi
3675 rm -f conftest.er1 conftest.err
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3678 done
3679
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 ac_clean_files_save=$ac_clean_files
3692 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693 # Try to create an executable without -o first, disregard a.out.
3694 # It will help us diagnose broken compilers, and finding out an intuition
3695 # of exeext.
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3697 $as_echo_n "checking whether the C compiler works... " >&6; }
3698 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700 # The possible output files:
3701 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703 ac_rmfiles=
3704 for ac_file in $ac_files
3705 do
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709 esac
3710 done
3711 rm -f $ac_rmfiles
3712
3713 if { { ac_try="$ac_link_default"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 $as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_link_default") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }; then :
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3727 # so that the user can short-circuit this test for compilers unknown to
3728 # Autoconf.
3729 for ac_file in $ac_files ''
3730 do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753 done
3754 test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756 else
3757 ac_file=''
3758 fi
3759 if test -z "$ac_file"; then :
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762 $as_echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error 77 "C compiler cannot create executables
3768 See \`config.log' for more details" "$LINENO" 5; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3771 $as_echo "yes" >&6; }
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3774 $as_echo_n "checking for C compiler default output file name... " >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3776 $as_echo "$ac_file" >&6; }
3777 ac_exeext=$ac_cv_exeext
3778
3779 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3780 ac_clean_files=$ac_clean_files_save
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3782 $as_echo_n "checking for suffix of executables... " >&6; }
3783 if { { ac_try="$ac_link"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_link") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3796 # work properly (i.e., refer to `conftest.exe'), while it won't with
3797 # `rm'.
3798 for ac_file in conftest.exe conftest conftest.*; do
3799 test -f "$ac_file" || continue
3800 case $ac_file in
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803 break;;
3804 * ) break;;
3805 esac
3806 done
3807 else
3808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3811 See \`config.log' for more details" "$LINENO" 5; }
3812 fi
3813 rm -f conftest conftest$ac_cv_exeext
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3815 $as_echo "$ac_cv_exeext" >&6; }
3816
3817 rm -f conftest.$ac_ext
3818 EXEEXT=$ac_cv_exeext
3819 ac_exeext=$EXEEXT
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <stdio.h>
3823 int
3824 main ()
3825 {
3826 FILE *f = fopen ("conftest.out", "w");
3827 return ferror (f) || fclose (f) != 0;
3828
3829 ;
3830 return 0;
3831 }
3832 _ACEOF
3833 ac_clean_files="$ac_clean_files conftest.out"
3834 # Check that the compiler produces executables we can run. If not, either
3835 # the compiler is broken, or we cross compile.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3837 $as_echo_n "checking whether we are cross compiling... " >&6; }
3838 if test "$cross_compiling" != yes; then
3839 { { ac_try="$ac_link"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_link") 2>&5
3847 ac_status=$?
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }
3850 if { ac_try='./conftest$ac_cv_exeext'
3851 { { case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; }; then
3861 cross_compiling=no
3862 else
3863 if test "$cross_compiling" = maybe; then
3864 cross_compiling=yes
3865 else
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "cannot run C compiled programs.
3869 If you meant to cross compile, use \`--host'.
3870 See \`config.log' for more details" "$LINENO" 5; }
3871 fi
3872 fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3875 $as_echo "$cross_compiling" >&6; }
3876
3877 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3878 ac_clean_files=$ac_clean_files_save
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3880 $as_echo_n "checking for suffix of object files... " >&6; }
3881 if ${ac_cv_objext+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 rm -f conftest.o conftest.obj
3896 if { { ac_try="$ac_compile"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_compile") 2>&5
3904 ac_status=$?
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }; then :
3907 for ac_file in conftest.o conftest.obj conftest.*; do
3908 test -f "$ac_file" || continue;
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3912 break;;
3913 esac
3914 done
3915 else
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "cannot compute suffix of object files: cannot compile
3922 See \`config.log' for more details" "$LINENO" 5; }
3923 fi
3924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3927 $as_echo "$ac_cv_objext" >&6; }
3928 OBJEXT=$ac_cv_objext
3929 ac_objext=$OBJEXT
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3931 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3932 if ${ac_cv_c_compiler_gnu+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941 #ifndef __GNUC__
3942 choke me
3943 #endif
3944
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_compiler_gnu=yes
3951 else
3952 ac_compiler_gnu=no
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3956
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3959 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3960 if test $ac_compiler_gnu = yes; then
3961 GCC=yes
3962 else
3963 GCC=
3964 fi
3965 ac_test_CFLAGS=${CFLAGS+set}
3966 ac_save_CFLAGS=$CFLAGS
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3968 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3969 if ${ac_cv_prog_cc_g+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 ac_save_c_werror_flag=$ac_c_werror_flag
3973 ac_c_werror_flag=yes
3974 ac_cv_prog_cc_g=no
3975 CFLAGS="-g"
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978
3979 int
3980 main ()
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_g=yes
3989 else
3990 CFLAGS=""
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993
3994 int
3995 main ()
3996 {
3997
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003
4004 else
4005 ac_c_werror_flag=$ac_save_c_werror_flag
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009
4010 int
4011 main ()
4012 {
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_g=yes
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4029 $as_echo "$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4034 CFLAGS="-g -O2"
4035 else
4036 CFLAGS="-g"
4037 fi
4038 else
4039 if test "$GCC" = yes; then
4040 CFLAGS="-O2"
4041 else
4042 CFLAGS=
4043 fi
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4047 if ${ac_cv_prog_cc_c89+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 ac_cv_prog_cc_c89=no
4051 ac_save_CC=$CC
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <stdarg.h>
4055 #include <stdio.h>
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4062 char **p;
4063 int i;
4064 {
4065 return p[i];
4066 }
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4068 {
4069 char *s;
4070 va_list v;
4071 va_start (v,p);
4072 s = g (p, va_arg (v,int));
4073 va_end (v);
4074 return s;
4075 }
4076
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4085
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4088 #define FOO(x) 'x'
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4090
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 int argc;
4096 char **argv;
4097 int
4098 main ()
4099 {
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4107 do
4108 CC="$ac_save_CC $ac_arg"
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_prog_cc_c89=$ac_arg
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext
4113 test "x$ac_cv_prog_cc_c89" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC
4117
4118 fi
4119 # AC_CACHE_VAL
4120 case "x$ac_cv_prog_cc_c89" in
4121 x)
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4123 $as_echo "none needed" >&6; } ;;
4124 xno)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126 $as_echo "unsupported" >&6; } ;;
4127 *)
4128 CC="$CC $ac_cv_prog_cc_c89"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4131 esac
4132 if test "x$ac_cv_prog_cc_c89" != xno; then :
4133
4134 fi
4135
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142
4143
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4146 $as_echo_n "checking for strerror in -lcposix... " >&6; }
4147 if ${ac_cv_lib_cposix_strerror+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 ac_check_lib_save_LIBS=$LIBS
4151 LIBS="-lcposix $LIBS"
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 /* Override any GCC internal prototype to avoid an error.
4156 Use char because int might match the return type of a GCC
4157 builtin and then its argument prototype would still apply. */
4158 #ifdef __cplusplus
4159 extern "C"
4160 #endif
4161 char strerror ();
4162 int
4163 main ()
4164 {
4165 return strerror ();
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_link "$LINENO"; then :
4171 ac_cv_lib_cposix_strerror=yes
4172 else
4173 ac_cv_lib_cposix_strerror=no
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4177 LIBS=$ac_check_lib_save_LIBS
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4180 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4181 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4182 LIBS="$LIBS -lcposix"
4183 fi
4184
4185
4186
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4193 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4194 # On Suns, sometimes $CPP names a directory.
4195 if test -n "$CPP" && test -d "$CPP"; then
4196 CPP=
4197 fi
4198 if test -z "$CPP"; then
4199 if ${ac_cv_prog_CPP+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 # Double quotes because CPP needs to be expanded
4203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4204 do
4205 ac_preproc_ok=false
4206 for ac_c_preproc_warn_flag in '' yes
4207 do
4208 # Use a header file that comes with gcc, so configuring glibc
4209 # with a fresh cross-compiler works.
4210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4211 # <limits.h> exists even on freestanding compilers.
4212 # On the NeXT, cc -E runs the code through the compiler's parser,
4213 # not just through cpp. "Syntax error" is here to catch this case.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #ifdef __STDC__
4217 # include <limits.h>
4218 #else
4219 # include <assert.h>
4220 #endif
4221 Syntax error
4222 _ACEOF
4223 if ac_fn_c_try_cpp "$LINENO"; then :
4224
4225 else
4226 # Broken: fails on valid input.
4227 continue
4228 fi
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4230
4231 # OK, works on sane cases. Now check whether nonexistent headers
4232 # can be detected and how.
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 #include <ac_nonexistent.h>
4236 _ACEOF
4237 if ac_fn_c_try_cpp "$LINENO"; then :
4238 # Broken: success on invalid input.
4239 continue
4240 else
4241 # Passes both tests.
4242 ac_preproc_ok=:
4243 break
4244 fi
4245 rm -f conftest.err conftest.i conftest.$ac_ext
4246
4247 done
4248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4249 rm -f conftest.i conftest.err conftest.$ac_ext
4250 if $ac_preproc_ok; then :
4251 break
4252 fi
4253
4254 done
4255 ac_cv_prog_CPP=$CPP
4256
4257 fi
4258 CPP=$ac_cv_prog_CPP
4259 else
4260 ac_cv_prog_CPP=$CPP
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4263 $as_echo "$CPP" >&6; }
4264 ac_preproc_ok=false
4265 for ac_c_preproc_warn_flag in '' yes
4266 do
4267 # Use a header file that comes with gcc, so configuring glibc
4268 # with a fresh cross-compiler works.
4269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4270 # <limits.h> exists even on freestanding compilers.
4271 # On the NeXT, cc -E runs the code through the compiler's parser,
4272 # not just through cpp. "Syntax error" is here to catch this case.
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #ifdef __STDC__
4276 # include <limits.h>
4277 #else
4278 # include <assert.h>
4279 #endif
4280 Syntax error
4281 _ACEOF
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4283
4284 else
4285 # Broken: fails on valid input.
4286 continue
4287 fi
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4289
4290 # OK, works on sane cases. Now check whether nonexistent headers
4291 # can be detected and how.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <ac_nonexistent.h>
4295 _ACEOF
4296 if ac_fn_c_try_cpp "$LINENO"; then :
4297 # Broken: success on invalid input.
4298 continue
4299 else
4300 # Passes both tests.
4301 ac_preproc_ok=:
4302 break
4303 fi
4304 rm -f conftest.err conftest.i conftest.$ac_ext
4305
4306 done
4307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4308 rm -f conftest.i conftest.err conftest.$ac_ext
4309 if $ac_preproc_ok; then :
4310
4311 else
4312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4314 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4315 See \`config.log' for more details" "$LINENO" 5; }
4316 fi
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4326 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4327 if ${ac_cv_path_GREP+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 if test -z "$GREP"; then
4331 ac_path_GREP_found=false
4332 # Loop through the user's path and test for each of PROGNAME-LIST
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335 do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_prog in grep ggrep; do
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4341 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4342 # Check for GNU ac_path_GREP and select it if it is found.
4343 # Check for GNU $ac_path_GREP
4344 case `"$ac_path_GREP" --version 2>&1` in
4345 *GNU*)
4346 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4347 *)
4348 ac_count=0
4349 $as_echo_n 0123456789 >"conftest.in"
4350 while :
4351 do
4352 cat "conftest.in" "conftest.in" >"conftest.tmp"
4353 mv "conftest.tmp" "conftest.in"
4354 cp "conftest.in" "conftest.nl"
4355 $as_echo 'GREP' >> "conftest.nl"
4356 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358 as_fn_arith $ac_count + 1 && ac_count=$as_val
4359 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4360 # Best one so far, save it but keep looking for a better one
4361 ac_cv_path_GREP="$ac_path_GREP"
4362 ac_path_GREP_max=$ac_count
4363 fi
4364 # 10*(2^10) chars as input seems more than enough
4365 test $ac_count -gt 10 && break
4366 done
4367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368 esac
4369
4370 $ac_path_GREP_found && break 3
4371 done
4372 done
4373 done
4374 IFS=$as_save_IFS
4375 if test -z "$ac_cv_path_GREP"; then
4376 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4377 fi
4378 else
4379 ac_cv_path_GREP=$GREP
4380 fi
4381
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4384 $as_echo "$ac_cv_path_GREP" >&6; }
4385 GREP="$ac_cv_path_GREP"
4386
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4389 $as_echo_n "checking for egrep... " >&6; }
4390 if ${ac_cv_path_EGREP+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4394 then ac_cv_path_EGREP="$GREP -E"
4395 else
4396 if test -z "$EGREP"; then
4397 ac_path_EGREP_found=false
4398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401 do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_prog in egrep; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4407 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4408 # Check for GNU ac_path_EGREP and select it if it is found.
4409 # Check for GNU $ac_path_EGREP
4410 case `"$ac_path_EGREP" --version 2>&1` in
4411 *GNU*)
4412 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4413 *)
4414 ac_count=0
4415 $as_echo_n 0123456789 >"conftest.in"
4416 while :
4417 do
4418 cat "conftest.in" "conftest.in" >"conftest.tmp"
4419 mv "conftest.tmp" "conftest.in"
4420 cp "conftest.in" "conftest.nl"
4421 $as_echo 'EGREP' >> "conftest.nl"
4422 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424 as_fn_arith $ac_count + 1 && ac_count=$as_val
4425 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4426 # Best one so far, save it but keep looking for a better one
4427 ac_cv_path_EGREP="$ac_path_EGREP"
4428 ac_path_EGREP_max=$ac_count
4429 fi
4430 # 10*(2^10) chars as input seems more than enough
4431 test $ac_count -gt 10 && break
4432 done
4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434 esac
4435
4436 $ac_path_EGREP_found && break 3
4437 done
4438 done
4439 done
4440 IFS=$as_save_IFS
4441 if test -z "$ac_cv_path_EGREP"; then
4442 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443 fi
4444 else
4445 ac_cv_path_EGREP=$EGREP
4446 fi
4447
4448 fi
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4451 $as_echo "$ac_cv_path_EGREP" >&6; }
4452 EGREP="$ac_cv_path_EGREP"
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4456 $as_echo_n "checking for ANSI C header files... " >&6; }
4457 if ${ac_cv_header_stdc+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #include <stdlib.h>
4463 #include <stdarg.h>
4464 #include <string.h>
4465 #include <float.h>
4466
4467 int
4468 main ()
4469 {
4470
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 if ac_fn_c_try_compile "$LINENO"; then :
4476 ac_cv_header_stdc=yes
4477 else
4478 ac_cv_header_stdc=no
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481
4482 if test $ac_cv_header_stdc = yes; then
4483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <string.h>
4487
4488 _ACEOF
4489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4490 $EGREP "memchr" >/dev/null 2>&1; then :
4491
4492 else
4493 ac_cv_header_stdc=no
4494 fi
4495 rm -f conftest*
4496
4497 fi
4498
4499 if test $ac_cv_header_stdc = yes; then
4500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #include <stdlib.h>
4504
4505 _ACEOF
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "free" >/dev/null 2>&1; then :
4508
4509 else
4510 ac_cv_header_stdc=no
4511 fi
4512 rm -f conftest*
4513
4514 fi
4515
4516 if test $ac_cv_header_stdc = yes; then
4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4518 if test "$cross_compiling" = yes; then :
4519 :
4520 else
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <ctype.h>
4524 #include <stdlib.h>
4525 #if ((' ' & 0x0FF) == 0x020)
4526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4528 #else
4529 # define ISLOWER(c) \
4530 (('a' <= (c) && (c) <= 'i') \
4531 || ('j' <= (c) && (c) <= 'r') \
4532 || ('s' <= (c) && (c) <= 'z'))
4533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4534 #endif
4535
4536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4537 int
4538 main ()
4539 {
4540 int i;
4541 for (i = 0; i < 256; i++)
4542 if (XOR (islower (i), ISLOWER (i))
4543 || toupper (i) != TOUPPER (i))
4544 return 2;
4545 return 0;
4546 }
4547 _ACEOF
4548 if ac_fn_c_try_run "$LINENO"; then :
4549
4550 else
4551 ac_cv_header_stdc=no
4552 fi
4553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4554 conftest.$ac_objext conftest.beam conftest.$ac_ext
4555 fi
4556
4557 fi
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4560 $as_echo "$ac_cv_header_stdc" >&6; }
4561 if test $ac_cv_header_stdc = yes; then
4562
4563 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4564
4565 fi
4566
4567 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4568 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4569 inttypes.h stdint.h unistd.h
4570 do :
4571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4573 "
4574 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4575 cat >>confdefs.h <<_ACEOF
4576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4577 _ACEOF
4578
4579 fi
4580
4581 done
4582
4583
4584
4585 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4586 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4587 MINIX=yes
4588 else
4589 MINIX=
4590 fi
4591
4592
4593 if test "$MINIX" = yes; then
4594
4595 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4596
4597
4598 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4599
4600
4601 $as_echo "#define _MINIX 1" >>confdefs.h
4602
4603 fi
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4607 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4608 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 # define __EXTENSIONS__ 1
4615 $ac_includes_default
4616 int
4617 main ()
4618 {
4619
4620 ;
4621 return 0;
4622 }
4623 _ACEOF
4624 if ac_fn_c_try_compile "$LINENO"; then :
4625 ac_cv_safe_to_define___extensions__=yes
4626 else
4627 ac_cv_safe_to_define___extensions__=no
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4632 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4633 test $ac_cv_safe_to_define___extensions__ = yes &&
4634 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4635
4636 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4637
4638 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4639
4640 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4641
4642 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4643
4644
4645
4646
4647 # Check whether --enable-largefile was given.
4648 if test "${enable_largefile+set}" = set; then :
4649 enableval=$enable_largefile;
4650 fi
4651
4652 if test "$enable_largefile" != no; then
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4655 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4656 if ${ac_cv_sys_largefile_CC+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 ac_cv_sys_largefile_CC=no
4660 if test "$GCC" != yes; then
4661 ac_save_CC=$CC
4662 while :; do
4663 # IRIX 6.2 and later do not support large files by default,
4664 # so use the C compiler's -n32 option if that helps.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <sys/types.h>
4668 /* Check that off_t can represent 2**63 - 1 correctly.
4669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4670 since some C++ compilers masquerading as C compilers
4671 incorrectly reject 9223372036854775807. */
4672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4674 && LARGE_OFF_T % 2147483647 == 1)
4675 ? 1 : -1];
4676 int
4677 main ()
4678 {
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 break
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext
4688 CC="$CC -n32"
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690 ac_cv_sys_largefile_CC=' -n32'; break
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext
4693 break
4694 done
4695 CC=$ac_save_CC
4696 rm -f conftest.$ac_ext
4697 fi
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4700 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4701 if test "$ac_cv_sys_largefile_CC" != no; then
4702 CC=$CC$ac_cv_sys_largefile_CC
4703 fi
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4706 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4707 if ${ac_cv_sys_file_offset_bits+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 while :; do
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <sys/types.h>
4714 /* Check that off_t can represent 2**63 - 1 correctly.
4715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4716 since some C++ compilers masquerading as C compilers
4717 incorrectly reject 9223372036854775807. */
4718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4720 && LARGE_OFF_T % 2147483647 == 1)
4721 ? 1 : -1];
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_sys_file_offset_bits=no; break
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 #define _FILE_OFFSET_BITS 64
4737 #include <sys/types.h>
4738 /* Check that off_t can represent 2**63 - 1 correctly.
4739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4740 since some C++ compilers masquerading as C compilers
4741 incorrectly reject 9223372036854775807. */
4742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4744 && LARGE_OFF_T % 2147483647 == 1)
4745 ? 1 : -1];
4746 int
4747 main ()
4748 {
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_sys_file_offset_bits=64; break
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 ac_cv_sys_file_offset_bits=unknown
4759 break
4760 done
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4763 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4764 case $ac_cv_sys_file_offset_bits in #(
4765 no | unknown) ;;
4766 *)
4767 cat >>confdefs.h <<_ACEOF
4768 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4769 _ACEOF
4770 ;;
4771 esac
4772 rm -rf conftest*
4773 if test $ac_cv_sys_file_offset_bits = unknown; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4775 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4776 if ${ac_cv_sys_large_files+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 while :; do
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #include <sys/types.h>
4783 /* Check that off_t can represent 2**63 - 1 correctly.
4784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4785 since some C++ compilers masquerading as C compilers
4786 incorrectly reject 9223372036854775807. */
4787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4789 && LARGE_OFF_T % 2147483647 == 1)
4790 ? 1 : -1];
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_sys_large_files=no; break
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 #define _LARGE_FILES 1
4806 #include <sys/types.h>
4807 /* Check that off_t can represent 2**63 - 1 correctly.
4808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4809 since some C++ compilers masquerading as C compilers
4810 incorrectly reject 9223372036854775807. */
4811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4813 && LARGE_OFF_T % 2147483647 == 1)
4814 ? 1 : -1];
4815 int
4816 main ()
4817 {
4818
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 ac_cv_sys_large_files=1; break
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 ac_cv_sys_large_files=unknown
4828 break
4829 done
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4832 $as_echo "$ac_cv_sys_large_files" >&6; }
4833 case $ac_cv_sys_large_files in #(
4834 no | unknown) ;;
4835 *)
4836 cat >>confdefs.h <<_ACEOF
4837 #define _LARGE_FILES $ac_cv_sys_large_files
4838 _ACEOF
4839 ;;
4840 esac
4841 rm -rf conftest*
4842 fi
4843 fi
4844
4845
4846
4847 SIGNAMES_O=
4848 SIGNAMES_H=lsignames.h
4849
4850
4851
4852 CROSS_COMPILE=
4853 if test "x$cross_compiling" = "xyes"; then
4854 case "${host}" in
4855 *-cygwin*)
4856 cross_cache=${srcdir}/cross-build/cygwin32.cache
4857 ;;
4858 *-mingw*)
4859 cross_cache=${srcdir}/cross-build/cygwin32.cache
4860 ;;
4861 i[3456]86-*-beos*)
4862 cross_cache=${srcdir}/cross-build/x86-beos.cache
4863 ;;
4864 *) echo "configure: cross-compiling for $host is not supported" >&2
4865 ;;
4866 esac
4867 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4868 echo "loading cross-build cache file ${cross_cache}"
4869 . ${cross_cache}
4870 fi
4871 unset cross_cache
4872 SIGNAMES_O='signames.o'
4873 CROSS_COMPILE='-DCROSS_COMPILING'
4874
4875 fi
4876
4877
4878
4879
4880 if test -z "$CFLAGS"; then
4881 AUTO_CFLAGS="-g ${GCC+-O2}"
4882 AUTO_LDFLAGS="-g ${GCC+-O2}"
4883 else
4884 AUTO_CFLAGS= AUTO_LDFLAGS=
4885 fi
4886
4887 CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
4888 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
4889
4890 if test "$opt_profiling" = "yes"; then
4891 PROFILE_FLAGS=-pg
4892 case "$host_os" in
4893 solaris2*) ;;
4894 *) opt_static_link=yes ;;
4895 esac
4896 DEBUG= MALLOC_DEBUG=
4897 fi
4898
4899 prefer_shared=yes
4900 prefer_static=no
4901
4902 if test "$opt_static_link" = yes; then
4903 prefer_static=yes
4904 prefer_shared=no
4905 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4906 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4907 STATIC_LD="-static"
4908 case "$host_os" in
4909 solaris2*) ;;
4910 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4911 esac
4912 fi
4913 fi
4914
4915 # set the appropriate make variables for building the "build tools"
4916 # modify defaults based on whether or not we are cross compiling, since the
4917 # options for the target host may not be appropriate for the build host
4918 if test "X$cross_compiling" = "Xno"; then
4919 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
4920 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
4921 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4922 # CFLAGS set above to default value if not passed in environment
4923 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
4924 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
4925 else
4926 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
4927 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4928 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4929 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
4930 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 if test $ac_cv_c_compiler_gnu = yes; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4946 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4947 if ${ac_cv_prog_gcc_traditional+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 ac_pattern="Autoconf.*'x'"
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 #include <sgtty.h>
4954 Autoconf TIOCGETP
4955 _ACEOF
4956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4957 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4958 ac_cv_prog_gcc_traditional=yes
4959 else
4960 ac_cv_prog_gcc_traditional=no
4961 fi
4962 rm -f conftest*
4963
4964
4965 if test $ac_cv_prog_gcc_traditional = no; then
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #include <termio.h>
4969 Autoconf TCGETA
4970 _ACEOF
4971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4972 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4973 ac_cv_prog_gcc_traditional=yes
4974 fi
4975 rm -f conftest*
4976
4977 fi
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4980 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4981 if test $ac_cv_prog_gcc_traditional = yes; then
4982 CC="$CC -traditional"
4983 fi
4984 fi
4985
4986
4987
4988 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4989 then
4990 # If the user specified --with-installed-readline=PREFIX and PREFIX
4991 # is not `yes', set ac_cv_rl_prefix to PREFIX
4992 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4993
4994
4995 if test "X$bash_cv_termcap_lib" = "X"; then
4996 _bash_needmsg=yes
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
4999 $as_echo_n "checking which library has the termcap functions... " >&6; }
5000 _bash_needmsg=
5001 fi
5002 if ${bash_cv_termcap_lib+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5006 if test "x$ac_cv_func_tgetent" = xyes; then :
5007 bash_cv_termcap_lib=libc
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5010 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5011 if ${ac_cv_lib_termcap_tgetent+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 ac_check_lib_save_LIBS=$LIBS
5015 LIBS="-ltermcap $LIBS"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 /* Override any GCC internal prototype to avoid an error.
5020 Use char because int might match the return type of a GCC
5021 builtin and then its argument prototype would still apply. */
5022 #ifdef __cplusplus
5023 extern "C"
5024 #endif
5025 char tgetent ();
5026 int
5027 main ()
5028 {
5029 return tgetent ();
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 if ac_fn_c_try_link "$LINENO"; then :
5035 ac_cv_lib_termcap_tgetent=yes
5036 else
5037 ac_cv_lib_termcap_tgetent=no
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040 conftest$ac_exeext conftest.$ac_ext
5041 LIBS=$ac_check_lib_save_LIBS
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5044 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5045 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
5046 bash_cv_termcap_lib=libtermcap
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5049 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5050 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 ac_check_lib_save_LIBS=$LIBS
5054 LIBS="-ltinfo $LIBS"
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057
5058 /* Override any GCC internal prototype to avoid an error.
5059 Use char because int might match the return type of a GCC
5060 builtin and then its argument prototype would still apply. */
5061 #ifdef __cplusplus
5062 extern "C"
5063 #endif
5064 char tgetent ();
5065 int
5066 main ()
5067 {
5068 return tgetent ();
5069 ;
5070 return 0;
5071 }
5072 _ACEOF
5073 if ac_fn_c_try_link "$LINENO"; then :
5074 ac_cv_lib_tinfo_tgetent=yes
5075 else
5076 ac_cv_lib_tinfo_tgetent=no
5077 fi
5078 rm -f core conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5080 LIBS=$ac_check_lib_save_LIBS
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5083 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5084 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
5085 bash_cv_termcap_lib=libtinfo
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5088 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5089 if ${ac_cv_lib_curses_tgetent+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 ac_check_lib_save_LIBS=$LIBS
5093 LIBS="-lcurses $LIBS"
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096
5097 /* Override any GCC internal prototype to avoid an error.
5098 Use char because int might match the return type of a GCC
5099 builtin and then its argument prototype would still apply. */
5100 #ifdef __cplusplus
5101 extern "C"
5102 #endif
5103 char tgetent ();
5104 int
5105 main ()
5106 {
5107 return tgetent ();
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_link "$LINENO"; then :
5113 ac_cv_lib_curses_tgetent=yes
5114 else
5115 ac_cv_lib_curses_tgetent=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5122 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5123 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
5124 bash_cv_termcap_lib=libcurses
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5127 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5128 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 ac_check_lib_save_LIBS=$LIBS
5132 LIBS="-lncurses $LIBS"
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135
5136 /* Override any GCC internal prototype to avoid an error.
5137 Use char because int might match the return type of a GCC
5138 builtin and then its argument prototype would still apply. */
5139 #ifdef __cplusplus
5140 extern "C"
5141 #endif
5142 char tgetent ();
5143 int
5144 main ()
5145 {
5146 return tgetent ();
5147 ;
5148 return 0;
5149 }
5150 _ACEOF
5151 if ac_fn_c_try_link "$LINENO"; then :
5152 ac_cv_lib_ncurses_tgetent=yes
5153 else
5154 ac_cv_lib_ncurses_tgetent=no
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5158 LIBS=$ac_check_lib_save_LIBS
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5161 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5162 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
5163 bash_cv_termcap_lib=libncurses
5164 else
5165 bash_cv_termcap_lib=gnutermcap
5166 fi
5167
5168 fi
5169
5170 fi
5171
5172 fi
5173
5174 fi
5175
5176 fi
5177
5178 if test "X$_bash_needmsg" = "Xyes"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5180 $as_echo_n "checking which library has the termcap functions... " >&6; }
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5183 $as_echo "using $bash_cv_termcap_lib" >&6; }
5184 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5185 LDFLAGS="$LDFLAGS -L./lib/termcap"
5186 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5187 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5188 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5189 TERMCAP_LIB=-ltermcap
5190 TERMCAP_DEP=
5191 elif test $bash_cv_termcap_lib = libtinfo; then
5192 TERMCAP_LIB=-ltinfo
5193 TERMCAP_DEP=
5194 elif test $bash_cv_termcap_lib = libncurses; then
5195 TERMCAP_LIB=-lncurses
5196 TERMCAP_DEP=
5197 elif test $bash_cv_termcap_lib = libc; then
5198 TERMCAP_LIB=
5199 TERMCAP_DEP=
5200 else
5201 TERMCAP_LIB=-lcurses
5202 TERMCAP_DEP=
5203 fi
5204
5205
5206
5207
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5209 $as_echo_n "checking version of installed readline library... " >&6; }
5210
5211 # What a pain in the ass this is.
5212
5213 # save cpp and ld options
5214 _save_CFLAGS="$CFLAGS"
5215 _save_LDFLAGS="$LDFLAGS"
5216 _save_LIBS="$LIBS"
5217
5218 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5219 # allows the caller to do something like $_rl_prefix=$withval if the user
5220 # specifies --with-installed-readline=PREFIX as an argument to configure
5221
5222 if test -z "$ac_cv_rl_prefix"; then
5223 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5224 fi
5225
5226 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5227 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5228
5229 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5230 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5231 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5232
5233 if ${ac_cv_rl_version+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test "$cross_compiling" = yes; then :
5237 ac_cv_rl_version='4.2'
5238 else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241
5242 #include <stdio.h>
5243 #include <readline/readline.h>
5244
5245 extern int rl_gnu_readline_p;
5246
5247 main()
5248 {
5249 FILE *fp;
5250 fp = fopen("conftest.rlv", "w");
5251 if (fp == 0)
5252 exit(1);
5253 if (rl_gnu_readline_p != 1)
5254 fprintf(fp, "0.0\n");
5255 else
5256 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5257 fclose(fp);
5258 exit(0);
5259 }
5260
5261 _ACEOF
5262 if ac_fn_c_try_run "$LINENO"; then :
5263 ac_cv_rl_version=`cat conftest.rlv`
5264 else
5265 ac_cv_rl_version='0.0'
5266 fi
5267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5268 conftest.$ac_objext conftest.beam conftest.$ac_ext
5269 fi
5270
5271 fi
5272
5273
5274 CFLAGS="$_save_CFLAGS"
5275 LDFLAGS="$_save_LDFLAGS"
5276 LIBS="$_save_LIBS"
5277
5278 RL_MAJOR=0
5279 RL_MINOR=0
5280
5281 # (
5282 case "$ac_cv_rl_version" in
5283 2*|3*|4*|5*|6*|7*|8*|9*)
5284 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5285 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5286 ;;
5287 esac
5288
5289 # (((
5290 case $RL_MAJOR in
5291 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5292 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5293 *) _RL_MAJOR=00 ;;
5294 esac
5295
5296 # (((
5297 case $RL_MINOR in
5298 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5299 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5300 *) _RL_MINOR=00 ;;
5301 esac
5302
5303 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5304
5305 # Readline versions greater than 4.2 have these defines in readline.h
5306
5307 if test $ac_cv_rl_version = '0.0' ; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5309 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5310 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5311 # set these for use by the caller
5312 RL_PREFIX=$ac_cv_rl_prefix
5313 RL_LIBDIR=$ac_cv_rl_libdir
5314 RL_INCLUDEDIR=$ac_cv_rl_includedir
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5316 $as_echo "$ac_cv_rl_version" >&6; }
5317 else
5318
5319
5320 cat >>confdefs.h <<_ACEOF
5321 #define RL_READLINE_VERSION $RL_VERSION
5322 _ACEOF
5323
5324
5325 cat >>confdefs.h <<_ACEOF
5326 #define RL_VERSION_MAJOR $RL_MAJOR
5327 _ACEOF
5328
5329
5330 cat >>confdefs.h <<_ACEOF
5331 #define RL_VERSION_MINOR $RL_MINOR
5332 _ACEOF
5333
5334
5335
5336
5337
5338
5339 # set these for use by the caller
5340 RL_PREFIX=$ac_cv_rl_prefix
5341 RL_LIBDIR=$ac_cv_rl_libdir
5342 RL_INCLUDEDIR=$ac_cv_rl_includedir
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5345 $as_echo "$ac_cv_rl_version" >&6; }
5346
5347 fi
5348
5349
5350 case "$ac_cv_rl_version" in
5351 5*|6*|7*|8*|9*) ;;
5352 *) opt_with_installed_readline=no
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
5354 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
5356 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5357 ;;
5358 esac
5359 fi
5360
5361 TILDE_LIB=-ltilde
5362 if test $opt_readline = yes; then
5363 $as_echo "#define READLINE 1" >>confdefs.h
5364
5365 if test "$opt_with_installed_readline" != "no" ; then
5366 case "$opt_with_installed_readline" in
5367 yes) RL_INCLUDE= ;;
5368 *) case "$RL_INCLUDEDIR" in
5369 /usr/include) ;;
5370 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5371 esac
5372 ;;
5373 esac
5374 READLINE_DEP=
5375 READLINE_LIB=-lreadline
5376 # section for OS versions that don't allow unresolved symbols
5377 # to be compiled into dynamic libraries.
5378 case "$host_os" in
5379 cygwin*) TILDE_LIB= ;;
5380 esac
5381 else
5382 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5383 READLINE_DEP='$(READLINE_LIBRARY)'
5384 # section for OS versions that ship an older/broken version of
5385 # readline as a standard dynamic library and don't allow a
5386 # static version specified as -llibname to override the
5387 # dynamic version
5388 case "${host_os}" in
5389 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5390 *) READLINE_LIB=-lreadline ;;
5391 esac
5392 fi
5393 else
5394 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5395 READLINE_LIB= READLINE_DEP=
5396 fi
5397 if test $opt_history = yes || test $opt_bang_history = yes; then
5398 if test $opt_history = yes; then
5399 $as_echo "#define HISTORY 1" >>confdefs.h
5400
5401 fi
5402 if test $opt_bang_history = yes; then
5403 $as_echo "#define BANG_HISTORY 1" >>confdefs.h
5404
5405 fi
5406 if test "$opt_with_installed_readline" != "no"; then
5407 HIST_LIBDIR=$RL_LIBDIR
5408 HISTORY_DEP=
5409 HISTORY_LIB=-lhistory
5410 case "$opt_with_installed_readline" in
5411 yes) RL_INCLUDE= ;;
5412 *) case "$RL_INCLUDEDIR" in
5413 /usr/include) ;;
5414 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5415 esac
5416 ;;
5417 esac
5418 else
5419 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5420 HISTORY_DEP='$(HISTORY_LIBRARY)'
5421 # section for OS versions that ship an older version of
5422 # readline as a standard dynamic library and don't allow a
5423 # static version specified as -llibname to override the
5424 # dynamic version
5425 case "${host_os}" in
5426 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5427 *) HISTORY_LIB=-lhistory ;;
5428 esac
5429 fi
5430 else
5431 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5432 HISTORY_LIB= HISTORY_DEP=
5433 fi
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 # Find a good install program. We prefer a C program (faster),
5446 # so one script is as good as another. But avoid the broken or
5447 # incompatible versions:
5448 # SysV /etc/install, /usr/sbin/install
5449 # SunOS /usr/etc/install
5450 # IRIX /sbin/install
5451 # AIX /bin/install
5452 # AmigaOS /C/install, which installs bootblocks on floppy discs
5453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5456 # OS/2's system install, which has a completely different semantic
5457 # ./install, which can be erroneously created by make from ./install.sh.
5458 # Reject install programs that cannot install multiple files.
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5460 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5461 if test -z "$INSTALL"; then
5462 if ${ac_cv_path_install+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 # Account for people who put trailing slashes in PATH elements.
5471 case $as_dir/ in #((
5472 ./ | .// | /[cC]/* | \
5473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5474 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5475 /usr/ucb/* ) ;;
5476 *)
5477 # OSF1 and SCO ODT 3.0 have their own names for install.
5478 # Don't use installbsd from OSF since it installs stuff as root
5479 # by default.
5480 for ac_prog in ginstall scoinst install; do
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5483 if test $ac_prog = install &&
5484 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5485 # AIX install. It has an incompatible calling convention.
5486 :
5487 elif test $ac_prog = install &&
5488 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5489 # program-specific install script used by HP pwplus--don't use.
5490 :
5491 else
5492 rm -rf conftest.one conftest.two conftest.dir
5493 echo one > conftest.one
5494 echo two > conftest.two
5495 mkdir conftest.dir
5496 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5497 test -s conftest.one && test -s conftest.two &&
5498 test -s conftest.dir/conftest.one &&
5499 test -s conftest.dir/conftest.two
5500 then
5501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5502 break 3
5503 fi
5504 fi
5505 fi
5506 done
5507 done
5508 ;;
5509 esac
5510
5511 done
5512 IFS=$as_save_IFS
5513
5514 rm -rf conftest.one conftest.two conftest.dir
5515
5516 fi
5517 if test "${ac_cv_path_install+set}" = set; then
5518 INSTALL=$ac_cv_path_install
5519 else
5520 # As a last resort, use the slow shell script. Don't cache a
5521 # value for INSTALL within a source directory, because that will
5522 # break other packages using the cache if that directory is
5523 # removed, or if the value is a relative name.
5524 INSTALL=$ac_install_sh
5525 fi
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5528 $as_echo "$INSTALL" >&6; }
5529
5530 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5531 # It thinks the first close brace ends the variable substitution.
5532 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5533
5534 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5535
5536 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5537
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}ar; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_AR+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$AR"; then
5547 ac_cv_prog_AR="$AR" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_AR="${ac_tool_prefix}ar"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 AR=$ac_cv_prog_AR
5567 if test -n "$AR"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5569 $as_echo "$AR" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576 fi
5577 if test -z "$ac_cv_prog_AR"; then
5578 ac_ct_AR=$AR
5579 # Extract the first word of "ar", so it can be a program name with args.
5580 set dummy ar; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$ac_ct_AR"; then
5587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_AR="ar"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600 done
5601 done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5607 if test -n "$ac_ct_AR"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5609 $as_echo "$ac_ct_AR" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615 if test "x$ac_ct_AR" = x; then
5616 AR=""
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624 AR=$ac_ct_AR
5625 fi
5626 else
5627 AR="$ac_cv_prog_AR"
5628 fi
5629
5630 test -n "$ARFLAGS" || ARFLAGS="cr"
5631 if test -n "$ac_tool_prefix"; then
5632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_RANLIB+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$RANLIB"; then
5640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 RANLIB=$ac_cv_prog_RANLIB
5660 if test -n "$RANLIB"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5662 $as_echo "$RANLIB" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669 fi
5670 if test -z "$ac_cv_prog_RANLIB"; then
5671 ac_ct_RANLIB=$RANLIB
5672 # Extract the first word of "ranlib", so it can be a program name with args.
5673 set dummy ranlib; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$ac_ct_RANLIB"; then
5680 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_ac_ct_RANLIB="ranlib"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693 done
5694 done
5695 IFS=$as_save_IFS
5696
5697 fi
5698 fi
5699 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5700 if test -n "$ac_ct_RANLIB"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5702 $as_echo "$ac_ct_RANLIB" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5706 fi
5707
5708 if test "x$ac_ct_RANLIB" = x; then
5709 RANLIB=":"
5710 else
5711 case $cross_compiling:$ac_tool_warned in
5712 yes:)
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715 ac_tool_warned=yes ;;
5716 esac
5717 RANLIB=$ac_ct_RANLIB
5718 fi
5719 else
5720 RANLIB="$ac_cv_prog_RANLIB"
5721 fi
5722
5723 for ac_prog in 'bison -y' byacc
5724 do
5725 # Extract the first word of "$ac_prog", so it can be a program name with args.
5726 set dummy $ac_prog; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_prog_YACC+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 if test -n "$YACC"; then
5733 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_YACC="$ac_prog"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746 done
5747 done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 YACC=$ac_cv_prog_YACC
5753 if test -n "$YACC"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5755 $as_echo "$YACC" >&6; }
5756 else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760
5761
5762 test -n "$YACC" && break
5763 done
5764 test -n "$YACC" || YACC="yacc"
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5768 set x ${MAKE-make}
5769 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5770 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 cat >conftest.make <<\_ACEOF
5774 SHELL = /bin/sh
5775 all:
5776 @echo '@@@%%%=$(MAKE)=@@@%%%'
5777 _ACEOF
5778 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5780 *@@@%%%=?*=@@@%%%*)
5781 eval ac_cv_prog_make_${ac_make}_set=yes;;
5782 *)
5783 eval ac_cv_prog_make_${ac_make}_set=no;;
5784 esac
5785 rm -f conftest.make
5786 fi
5787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5789 $as_echo "yes" >&6; }
5790 SET_MAKE=
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 SET_MAKE="MAKE=${MAKE-make}"
5795 fi
5796
5797
5798 case "$host_os" in
5799 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5800 *) MAKE_SHELL=/bin/sh ;;
5801 esac
5802
5803
5804 if test x$SIZE = x; then
5805 if test x$ac_tool_prefix = x; then
5806 SIZE=size
5807 else
5808 SIZE=${ac_tool_prefix}size
5809 save_IFS=$IFS ; IFS=:
5810 size_found=0
5811 for dir in $PATH; do
5812 if test -x $dir/$SIZE ; then
5813 size_found=1
5814 break
5815 fi
5816 done
5817 if test $size_found -eq 0; then
5818 SIZE=:
5819 fi
5820 IFS=$save_IFS
5821 fi
5822 fi
5823
5824
5825 # Checks for stat-related time functions.
5826
5827 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
5828 # Foundation, Inc.
5829
5830 # This file is free software; the Free Software Foundation
5831 # gives unlimited permission to copy and/or distribute it,
5832 # with or without modifications, as long as this notice is preserved.
5833
5834
5835 # st_atim.tv_nsec - Linux, Solaris, Cygwin
5836 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
5837 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
5838 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
5839
5840 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
5841 # st_birthtim - Cygwin 1.7.0+
5842
5843
5844
5845 # Configure checks for struct timespec
5846
5847 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
5848
5849 # This file is free software; the Free Software Foundation
5850 # gives unlimited permission to copy and/or distribute it,
5851 # with or without modifications, as long as this notice is preserved.
5852
5853 # Original written by Paul Eggert and Jim Meyering.
5854 # Modified by Chet Ramey for bash
5855
5856
5857
5858
5859
5860 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5864 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5865 if ${ac_cv_c_const+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870
5871 int
5872 main ()
5873 {
5874 /* FIXME: Include the comments suggested by Paul. */
5875 #ifndef __cplusplus
5876 /* Ultrix mips cc rejects this. */
5877 typedef int charset[2];
5878 const charset cs;
5879 /* SunOS 4.1.1 cc rejects this. */
5880 char const *const *pcpcc;
5881 char **ppc;
5882 /* NEC SVR4.0.2 mips cc rejects this. */
5883 struct point {int x, y;};
5884 static struct point const zero = {0,0};
5885 /* AIX XL C 1.02.0.0 rejects this.
5886 It does not let you subtract one const X* pointer from another in
5887 an arm of an if-expression whose if-part is not a constant
5888 expression */
5889 const char *g = "string";
5890 pcpcc = &g + (g ? g-g : 0);
5891 /* HPUX 7.0 cc rejects these. */
5892 ++pcpcc;
5893 ppc = (char**) pcpcc;
5894 pcpcc = (char const *const *) ppc;
5895 { /* SCO 3.2v4 cc rejects this. */
5896 char *t;
5897 char const *s = 0 ? (char *) 0 : (char const *) 0;
5898
5899 *t++ = 0;
5900 if (s) return 0;
5901 }
5902 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5903 int x[] = {25, 17};
5904 const int *foo = &x[0];
5905 ++foo;
5906 }
5907 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5908 typedef const int *iptr;
5909 iptr p = 0;
5910 ++p;
5911 }
5912 { /* AIX XL C 1.02.0.0 rejects this saying
5913 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5914 struct s { int j; const int *ap[3]; };
5915 struct s *b; b->j = 5;
5916 }
5917 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5918 const int foo = 10;
5919 if (!foo) return 0;
5920 }
5921 return !cs[0] && !zero.x;
5922 #endif
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 if ac_fn_c_try_compile "$LINENO"; then :
5929 ac_cv_c_const=yes
5930 else
5931 ac_cv_c_const=no
5932 fi
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5936 $as_echo "$ac_cv_c_const" >&6; }
5937 if test $ac_cv_c_const = no; then
5938
5939 $as_echo "#define const /**/" >>confdefs.h
5940
5941 fi
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5944 $as_echo_n "checking for inline... " >&6; }
5945 if ${ac_cv_c_inline+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 ac_cv_c_inline=no
5949 for ac_kw in inline __inline__ __inline; do
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #ifndef __cplusplus
5953 typedef int foo_t;
5954 static $ac_kw foo_t static_foo () {return 0; }
5955 $ac_kw foo_t foo () {return 0; }
5956 #endif
5957
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 ac_cv_c_inline=$ac_kw
5961 fi
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 test "$ac_cv_c_inline" != no && break
5964 done
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5968 $as_echo "$ac_cv_c_inline" >&6; }
5969
5970 case $ac_cv_c_inline in
5971 inline | yes) ;;
5972 *)
5973 case $ac_cv_c_inline in
5974 no) ac_val=;;
5975 *) ac_val=$ac_cv_c_inline;;
5976 esac
5977 cat >>confdefs.h <<_ACEOF
5978 #ifndef __cplusplus
5979 #define inline $ac_val
5980 #endif
5981 _ACEOF
5982 ;;
5983 esac
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5986 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5987 if ${ac_cv_c_bigendian+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 ac_cv_c_bigendian=unknown
5991 # See if we're dealing with a universal compiler.
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #ifndef __APPLE_CC__
5995 not a universal capable compiler
5996 #endif
5997 typedef int dummy;
5998
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001
6002 # Check for potential -arch flags. It is not universal unless
6003 # there are at least two -arch flags with different values.
6004 ac_arch=
6005 ac_prev=
6006 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6007 if test -n "$ac_prev"; then
6008 case $ac_word in
6009 i?86 | x86_64 | ppc | ppc64)
6010 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6011 ac_arch=$ac_word
6012 else
6013 ac_cv_c_bigendian=universal
6014 break
6015 fi
6016 ;;
6017 esac
6018 ac_prev=
6019 elif test "x$ac_word" = "x-arch"; then
6020 ac_prev=arch
6021 fi
6022 done
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 if test $ac_cv_c_bigendian = unknown; then
6026 # See if sys/param.h defines the BYTE_ORDER macro.
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <sys/types.h>
6030 #include <sys/param.h>
6031
6032 int
6033 main ()
6034 {
6035 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6036 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6037 && LITTLE_ENDIAN)
6038 bogus endian macros
6039 #endif
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046 # It does; now see whether it defined to BIG_ENDIAN or not.
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #include <sys/types.h>
6050 #include <sys/param.h>
6051
6052 int
6053 main ()
6054 {
6055 #if BYTE_ORDER != BIG_ENDIAN
6056 not big endian
6057 #endif
6058
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6064 ac_cv_c_bigendian=yes
6065 else
6066 ac_cv_c_bigendian=no
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 fi
6072 if test $ac_cv_c_bigendian = unknown; then
6073 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <limits.h>
6077
6078 int
6079 main ()
6080 {
6081 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6082 bogus endian macros
6083 #endif
6084
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 # It does; now see whether it defined to _BIG_ENDIAN or not.
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #include <limits.h>
6094
6095 int
6096 main ()
6097 {
6098 #ifndef _BIG_ENDIAN
6099 not big endian
6100 #endif
6101
6102 ;
6103 return 0;
6104 }
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 ac_cv_c_bigendian=yes
6108 else
6109 ac_cv_c_bigendian=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 fi
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 fi
6115 if test $ac_cv_c_bigendian = unknown; then
6116 # Compile a test program.
6117 if test "$cross_compiling" = yes; then :
6118 # Try to guess by grepping values from an object file.
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121 short int ascii_mm[] =
6122 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6123 short int ascii_ii[] =
6124 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6125 int use_ascii (int i) {
6126 return ascii_mm[i] + ascii_ii[i];
6127 }
6128 short int ebcdic_ii[] =
6129 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6130 short int ebcdic_mm[] =
6131 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6132 int use_ebcdic (int i) {
6133 return ebcdic_mm[i] + ebcdic_ii[i];
6134 }
6135 extern int foo;
6136
6137 int
6138 main ()
6139 {
6140 return use_ascii (foo) == use_ebcdic (foo);
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6147 ac_cv_c_bigendian=yes
6148 fi
6149 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6150 if test "$ac_cv_c_bigendian" = unknown; then
6151 ac_cv_c_bigendian=no
6152 else
6153 # finding both strings is unlikely to happen, but who knows?
6154 ac_cv_c_bigendian=unknown
6155 fi
6156 fi
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 else
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 $ac_includes_default
6163 int
6164 main ()
6165 {
6166
6167 /* Are we little or big endian? From Harbison&Steele. */
6168 union
6169 {
6170 long int l;
6171 char c[sizeof (long int)];
6172 } u;
6173 u.l = 1;
6174 return u.c[sizeof (long int) - 1] == 1;
6175
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_run "$LINENO"; then :
6181 ac_cv_c_bigendian=no
6182 else
6183 ac_cv_c_bigendian=yes
6184 fi
6185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6186 conftest.$ac_objext conftest.beam conftest.$ac_ext
6187 fi
6188
6189 fi
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6192 $as_echo "$ac_cv_c_bigendian" >&6; }
6193 case $ac_cv_c_bigendian in #(
6194 yes)
6195 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6196 ;; #(
6197 no)
6198 ;; #(
6199 universal)
6200
6201 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6202
6203 ;; #(
6204 *)
6205 as_fn_error $? "unknown endianness
6206 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6207 esac
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6210 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6211 if ${ac_cv_c_stringize+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #define x(y) #y
6217
6218 char *s = x(teststring);
6219 _ACEOF
6220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6221 $EGREP "#teststring" >/dev/null 2>&1; then :
6222 ac_cv_c_stringize=no
6223 else
6224 ac_cv_c_stringize=yes
6225 fi
6226 rm -f conftest*
6227
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6230 $as_echo "$ac_cv_c_stringize" >&6; }
6231 if test $ac_cv_c_stringize = yes; then
6232
6233 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6234
6235 fi
6236
6237
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6240 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6241 if ${ac_cv_type_long_double_wider+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <float.h>
6247 long double const a[] =
6248 {
6249 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6250 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6251 };
6252 long double
6253 f (long double x)
6254 {
6255 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6256 + (x ? f (x) : 'c'));
6257 }
6258
6259 int
6260 main ()
6261 {
6262 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6263 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6264 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6265 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6266 && (int) LDBL_EPSILON == 0
6267 )];
6268 test_array [0] = 0
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 ac_cv_type_long_double_wider=yes
6276 else
6277 ac_cv_type_long_double_wider=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 fi
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6282 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6283 if test $ac_cv_type_long_double_wider = yes; then
6284
6285 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6286
6287 fi
6288
6289 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6290 if test $ac_cv_c_long_double = yes; then
6291
6292 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6293
6294 fi
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6297 $as_echo_n "checking for function prototypes... " >&6; }
6298 if test "$ac_cv_prog_cc_c89" != no; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6300 $as_echo "yes" >&6; }
6301
6302 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6303
6304
6305 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6306
6307 else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6313 $as_echo_n "checking whether char is unsigned... " >&6; }
6314 if ${ac_cv_c_char_unsigned+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 int
6321 main ()
6322 {
6323 static int test_array [1 - 2 * !(((char) -1) < 0)];
6324 test_array [0] = 0
6325
6326 ;
6327 return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_c_try_compile "$LINENO"; then :
6331 ac_cv_c_char_unsigned=no
6332 else
6333 ac_cv_c_char_unsigned=yes
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6338 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6339 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6340 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
6341
6342 fi
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6345 $as_echo_n "checking for working volatile... " >&6; }
6346 if ${ac_cv_c_volatile+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351
6352 int
6353 main ()
6354 {
6355
6356 volatile int x;
6357 int * volatile y = (int *) 0;
6358 return !x && !y;
6359 ;
6360 return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"; then :
6364 ac_cv_c_volatile=yes
6365 else
6366 ac_cv_c_volatile=no
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 fi
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6371 $as_echo "$ac_cv_c_volatile" >&6; }
6372 if test $ac_cv_c_volatile = no; then
6373
6374 $as_echo "#define volatile /**/" >>confdefs.h
6375
6376 fi
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6379 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6380 if ${ac_cv_c_restrict+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 ac_cv_c_restrict=no
6384 # The order here caters to the fact that C++ does not require restrict.
6385 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 typedef int * int_ptr;
6389 int foo (int_ptr $ac_kw ip) {
6390 return ip[0];
6391 }
6392 int
6393 main ()
6394 {
6395 int s[1];
6396 int * $ac_kw t = s;
6397 t[0] = 0;
6398 return foo(t)
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 ac_cv_c_restrict=$ac_kw
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 test "$ac_cv_c_restrict" != no && break
6408 done
6409
6410 fi
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6412 $as_echo "$ac_cv_c_restrict" >&6; }
6413
6414 case $ac_cv_c_restrict in
6415 restrict) ;;
6416 no) $as_echo "#define restrict /**/" >>confdefs.h
6417 ;;
6418 *) cat >>confdefs.h <<_ACEOF
6419 #define restrict $ac_cv_c_restrict
6420 _ACEOF
6421 ;;
6422 esac
6423
6424
6425
6426 MKINSTALLDIRS=
6427 if test -n "$ac_aux_dir"; then
6428 case "$ac_aux_dir" in
6429 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6430 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6431 esac
6432 fi
6433 if test -z "$MKINSTALLDIRS"; then
6434 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6435 fi
6436
6437
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6440 $as_echo_n "checking whether NLS is requested... " >&6; }
6441 # Check whether --enable-nls was given.
6442 if test "${enable_nls+set}" = set; then :
6443 enableval=$enable_nls; USE_NLS=$enableval
6444 else
6445 USE_NLS=yes
6446 fi
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6449 $as_echo "$USE_NLS" >&6; }
6450
6451
6452
6453
6454
6455
6456 # Prepare PATH_SEPARATOR.
6457 # The user is always right.
6458 if test "${PATH_SEPARATOR+set}" != set; then
6459 echo "#! /bin/sh" >conf$$.sh
6460 echo "exit 0" >>conf$$.sh
6461 chmod +x conf$$.sh
6462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6463 PATH_SEPARATOR=';'
6464 else
6465 PATH_SEPARATOR=:
6466 fi
6467 rm -f conf$$.sh
6468 fi
6469
6470 # Find out how to test for executable files. Don't use a zero-byte file,
6471 # as systems may use methods other than mode bits to determine executability.
6472 cat >conf$$.file <<_ASEOF
6473 #! /bin/sh
6474 exit 0
6475 _ASEOF
6476 chmod +x conf$$.file
6477 if test -x conf$$.file >/dev/null 2>&1; then
6478 ac_executable_p="test -x"
6479 else
6480 ac_executable_p="test -f"
6481 fi
6482 rm -f conf$$.file
6483
6484 # Extract the first word of "msgfmt", so it can be a program name with args.
6485 set dummy msgfmt; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_path_MSGFMT+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 case "$MSGFMT" in
6492 [\\/]* | ?:[\\/]*)
6493 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6494 ;;
6495 *)
6496 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6497 for ac_dir in $PATH; do
6498 IFS="$ac_save_IFS"
6499 test -z "$ac_dir" && ac_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6502 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6503 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6504 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6505 break 2
6506 fi
6507 fi
6508 done
6509 done
6510 IFS="$ac_save_IFS"
6511 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6512 ;;
6513 esac
6514 fi
6515 MSGFMT="$ac_cv_path_MSGFMT"
6516 if test "$MSGFMT" != ":"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6518 $as_echo "$MSGFMT" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6525 set dummy gmsgfmt; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_path_GMSGFMT+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 case $GMSGFMT in
6532 [\\/]* | ?:[\\/]*)
6533 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6534 ;;
6535 *)
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6552 ;;
6553 esac
6554 fi
6555 GMSGFMT=$ac_cv_path_GMSGFMT
6556 if test -n "$GMSGFMT"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6558 $as_echo "$GMSGFMT" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564
6565
6566
6567 # Prepare PATH_SEPARATOR.
6568 # The user is always right.
6569 if test "${PATH_SEPARATOR+set}" != set; then
6570 echo "#! /bin/sh" >conf$$.sh
6571 echo "exit 0" >>conf$$.sh
6572 chmod +x conf$$.sh
6573 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6574 PATH_SEPARATOR=';'
6575 else
6576 PATH_SEPARATOR=:
6577 fi
6578 rm -f conf$$.sh
6579 fi
6580
6581 # Find out how to test for executable files. Don't use a zero-byte file,
6582 # as systems may use methods other than mode bits to determine executability.
6583 cat >conf$$.file <<_ASEOF
6584 #! /bin/sh
6585 exit 0
6586 _ASEOF
6587 chmod +x conf$$.file
6588 if test -x conf$$.file >/dev/null 2>&1; then
6589 ac_executable_p="test -x"
6590 else
6591 ac_executable_p="test -f"
6592 fi
6593 rm -f conf$$.file
6594
6595 # Extract the first word of "xgettext", so it can be a program name with args.
6596 set dummy xgettext; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_path_XGETTEXT+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 case "$XGETTEXT" in
6603 [\\/]* | ?:[\\/]*)
6604 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6605 ;;
6606 *)
6607 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6608 for ac_dir in $PATH; do
6609 IFS="$ac_save_IFS"
6610 test -z "$ac_dir" && ac_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6613 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6614 (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
6615 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6616 break 2
6617 fi
6618 fi
6619 done
6620 done
6621 IFS="$ac_save_IFS"
6622 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6623 ;;
6624 esac
6625 fi
6626 XGETTEXT="$ac_cv_path_XGETTEXT"
6627 if test "$XGETTEXT" != ":"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6629 $as_echo "$XGETTEXT" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635 rm -f messages.po
6636
6637
6638 # Prepare PATH_SEPARATOR.
6639 # The user is always right.
6640 if test "${PATH_SEPARATOR+set}" != set; then
6641 echo "#! /bin/sh" >conf$$.sh
6642 echo "exit 0" >>conf$$.sh
6643 chmod +x conf$$.sh
6644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6645 PATH_SEPARATOR=';'
6646 else
6647 PATH_SEPARATOR=:
6648 fi
6649 rm -f conf$$.sh
6650 fi
6651
6652 # Find out how to test for executable files. Don't use a zero-byte file,
6653 # as systems may use methods other than mode bits to determine executability.
6654 cat >conf$$.file <<_ASEOF
6655 #! /bin/sh
6656 exit 0
6657 _ASEOF
6658 chmod +x conf$$.file
6659 if test -x conf$$.file >/dev/null 2>&1; then
6660 ac_executable_p="test -x"
6661 else
6662 ac_executable_p="test -f"
6663 fi
6664 rm -f conf$$.file
6665
6666 # Extract the first word of "msgmerge", so it can be a program name with args.
6667 set dummy msgmerge; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_path_MSGMERGE+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 case "$MSGMERGE" in
6674 [\\/]* | ?:[\\/]*)
6675 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6676 ;;
6677 *)
6678 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6679 for ac_dir in $PATH; do
6680 IFS="$ac_save_IFS"
6681 test -z "$ac_dir" && ac_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6684 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6685 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6686 break 2
6687 fi
6688 fi
6689 done
6690 done
6691 IFS="$ac_save_IFS"
6692 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6693 ;;
6694 esac
6695 fi
6696 MSGMERGE="$ac_cv_path_MSGMERGE"
6697 if test "$MSGMERGE" != ":"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6699 $as_echo "$MSGMERGE" >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705
6706 if test "$GMSGFMT" != ":"; then
6707 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6708 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6709 : ;
6710 else
6711 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6713 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6714 GMSGFMT=":"
6715 fi
6716 fi
6717
6718 if test "$XGETTEXT" != ":"; then
6719 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6720 (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
6721 : ;
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6724 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6725 XGETTEXT=":"
6726 fi
6727 rm -f messages.po
6728 fi
6729
6730 ac_config_commands="$ac_config_commands default-1"
6731
6732
6733 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6734 if test "x$ac_cv_type_off_t" = xyes; then :
6735
6736 else
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define off_t long int
6740 _ACEOF
6741
6742 fi
6743
6744 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6745 if test "x$ac_cv_type_size_t" = xyes; then :
6746
6747 else
6748
6749 cat >>confdefs.h <<_ACEOF
6750 #define size_t unsigned int
6751 _ACEOF
6752
6753 fi
6754
6755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6756 # for constant arguments. Useless!
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6758 $as_echo_n "checking for working alloca.h... " >&6; }
6759 if ${ac_cv_working_alloca_h+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 #include <alloca.h>
6765 int
6766 main ()
6767 {
6768 char *p = (char *) alloca (2 * sizeof (int));
6769 if (p) return 0;
6770 ;
6771 return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 ac_cv_working_alloca_h=yes
6776 else
6777 ac_cv_working_alloca_h=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6783 $as_echo "$ac_cv_working_alloca_h" >&6; }
6784 if test $ac_cv_working_alloca_h = yes; then
6785
6786 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6787
6788 fi
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6791 $as_echo_n "checking for alloca... " >&6; }
6792 if ${ac_cv_func_alloca_works+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #ifdef __GNUC__
6798 # define alloca __builtin_alloca
6799 #else
6800 # ifdef _MSC_VER
6801 # include <malloc.h>
6802 # define alloca _alloca
6803 # else
6804 # ifdef HAVE_ALLOCA_H
6805 # include <alloca.h>
6806 # else
6807 # ifdef _AIX
6808 #pragma alloca
6809 # else
6810 # ifndef alloca /* predefined by HP cc +Olibcalls */
6811 void *alloca (size_t);
6812 # endif
6813 # endif
6814 # endif
6815 # endif
6816 #endif
6817
6818 int
6819 main ()
6820 {
6821 char *p = (char *) alloca (1);
6822 if (p) return 0;
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 ac_cv_func_alloca_works=yes
6829 else
6830 ac_cv_func_alloca_works=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 fi
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6836 $as_echo "$ac_cv_func_alloca_works" >&6; }
6837
6838 if test $ac_cv_func_alloca_works = yes; then
6839
6840 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6841
6842 else
6843 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6844 # that cause trouble. Some versions do not even contain alloca or
6845 # contain a buggy version. If you still want to use their alloca,
6846 # use ar to extract alloca.o from them instead of compiling alloca.c.
6847
6848 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6849
6850 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6851
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6854 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6855 if ${ac_cv_os_cray+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 #if defined CRAY && ! defined CRAY2
6861 webecray
6862 #else
6863 wenotbecray
6864 #endif
6865
6866 _ACEOF
6867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 $EGREP "webecray" >/dev/null 2>&1; then :
6869 ac_cv_os_cray=yes
6870 else
6871 ac_cv_os_cray=no
6872 fi
6873 rm -f conftest*
6874
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6877 $as_echo "$ac_cv_os_cray" >&6; }
6878 if test $ac_cv_os_cray = yes; then
6879 for ac_func in _getb67 GETB67 getb67; do
6880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6881 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6882 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6883
6884 cat >>confdefs.h <<_ACEOF
6885 #define CRAY_STACKSEG_END $ac_func
6886 _ACEOF
6887
6888 break
6889 fi
6890
6891 done
6892 fi
6893
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6895 $as_echo_n "checking stack direction for C alloca... " >&6; }
6896 if ${ac_cv_c_stack_direction+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test "$cross_compiling" = yes; then :
6900 ac_cv_c_stack_direction=0
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 $ac_includes_default
6905 int
6906 find_stack_direction ()
6907 {
6908 static char *addr = 0;
6909 auto char dummy;
6910 if (addr == 0)
6911 {
6912 addr = &dummy;
6913 return find_stack_direction ();
6914 }
6915 else
6916 return (&dummy > addr) ? 1 : -1;
6917 }
6918
6919 int
6920 main ()
6921 {
6922 return find_stack_direction () < 0;
6923 }
6924 _ACEOF
6925 if ac_fn_c_try_run "$LINENO"; then :
6926 ac_cv_c_stack_direction=1
6927 else
6928 ac_cv_c_stack_direction=-1
6929 fi
6930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6931 conftest.$ac_objext conftest.beam conftest.$ac_ext
6932 fi
6933
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6936 $as_echo "$ac_cv_c_stack_direction" >&6; }
6937 cat >>confdefs.h <<_ACEOF
6938 #define STACK_DIRECTION $ac_cv_c_stack_direction
6939 _ACEOF
6940
6941
6942 fi
6943
6944
6945
6946
6947 for ac_header in $ac_header_list
6948 do :
6949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6951 "
6952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6953 cat >>confdefs.h <<_ACEOF
6954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955 _ACEOF
6956
6957 fi
6958
6959 done
6960
6961
6962
6963
6964
6965
6966
6967
6968 for ac_func in getpagesize
6969 do :
6970 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6971 if test "x$ac_cv_func_getpagesize" = xyes; then :
6972 cat >>confdefs.h <<_ACEOF
6973 #define HAVE_GETPAGESIZE 1
6974 _ACEOF
6975
6976 fi
6977 done
6978
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6980 $as_echo_n "checking for working mmap... " >&6; }
6981 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test "$cross_compiling" = yes; then :
6985 ac_cv_func_mmap_fixed_mapped=no
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 $ac_includes_default
6990 /* malloc might have been renamed as rpl_malloc. */
6991 #undef malloc
6992
6993 /* Thanks to Mike Haertel and Jim Avera for this test.
6994 Here is a matrix of mmap possibilities:
6995 mmap private not fixed
6996 mmap private fixed at somewhere currently unmapped
6997 mmap private fixed at somewhere already mapped
6998 mmap shared not fixed
6999 mmap shared fixed at somewhere currently unmapped
7000 mmap shared fixed at somewhere already mapped
7001 For private mappings, we should verify that changes cannot be read()
7002 back from the file, nor mmap's back from the file at a different
7003 address. (There have been systems where private was not correctly
7004 implemented like the infamous i386 svr4.0, and systems where the
7005 VM page cache was not coherent with the file system buffer cache
7006 like early versions of FreeBSD and possibly contemporary NetBSD.)
7007 For shared mappings, we should conversely verify that changes get
7008 propagated back to all the places they're supposed to be.
7009
7010 Grep wants private fixed already mapped.
7011 The main things grep needs to know about mmap are:
7012 * does it exist and is it safe to write into the mmap'd area
7013 * how to use it (BSD variants) */
7014
7015 #include <fcntl.h>
7016 #include <sys/mman.h>
7017
7018 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7019 char *malloc ();
7020 #endif
7021
7022 /* This mess was copied from the GNU getpagesize.h. */
7023 #ifndef HAVE_GETPAGESIZE
7024 # ifdef _SC_PAGESIZE
7025 # define getpagesize() sysconf(_SC_PAGESIZE)
7026 # else /* no _SC_PAGESIZE */
7027 # ifdef HAVE_SYS_PARAM_H
7028 # include <sys/param.h>
7029 # ifdef EXEC_PAGESIZE
7030 # define getpagesize() EXEC_PAGESIZE
7031 # else /* no EXEC_PAGESIZE */
7032 # ifdef NBPG
7033 # define getpagesize() NBPG * CLSIZE
7034 # ifndef CLSIZE
7035 # define CLSIZE 1
7036 # endif /* no CLSIZE */
7037 # else /* no NBPG */
7038 # ifdef NBPC
7039 # define getpagesize() NBPC
7040 # else /* no NBPC */
7041 # ifdef PAGESIZE
7042 # define getpagesize() PAGESIZE
7043 # endif /* PAGESIZE */
7044 # endif /* no NBPC */
7045 # endif /* no NBPG */
7046 # endif /* no EXEC_PAGESIZE */
7047 # else /* no HAVE_SYS_PARAM_H */
7048 # define getpagesize() 8192 /* punt totally */
7049 # endif /* no HAVE_SYS_PARAM_H */
7050 # endif /* no _SC_PAGESIZE */
7051
7052 #endif /* no HAVE_GETPAGESIZE */
7053
7054 int
7055 main ()
7056 {
7057 char *data, *data2, *data3;
7058 const char *cdata2;
7059 int i, pagesize;
7060 int fd, fd2;
7061
7062 pagesize = getpagesize ();
7063
7064 /* First, make a file with some known garbage in it. */
7065 data = (char *) malloc (pagesize);
7066 if (!data)
7067 return 1;
7068 for (i = 0; i < pagesize; ++i)
7069 *(data + i) = rand ();
7070 umask (0);
7071 fd = creat ("conftest.mmap", 0600);
7072 if (fd < 0)
7073 return 2;
7074 if (write (fd, data, pagesize) != pagesize)
7075 return 3;
7076 close (fd);
7077
7078 /* Next, check that the tail of a page is zero-filled. File must have
7079 non-zero length, otherwise we risk SIGBUS for entire page. */
7080 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7081 if (fd2 < 0)
7082 return 4;
7083 cdata2 = "";
7084 if (write (fd2, cdata2, 1) != 1)
7085 return 5;
7086 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7087 if (data2 == MAP_FAILED)
7088 return 6;
7089 for (i = 0; i < pagesize; ++i)
7090 if (*(data2 + i))
7091 return 7;
7092 close (fd2);
7093 if (munmap (data2, pagesize))
7094 return 8;
7095
7096 /* Next, try to mmap the file at a fixed address which already has
7097 something else allocated at it. If we can, also make sure that
7098 we see the same garbage. */
7099 fd = open ("conftest.mmap", O_RDWR);
7100 if (fd < 0)
7101 return 9;
7102 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7103 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7104 return 10;
7105 for (i = 0; i < pagesize; ++i)
7106 if (*(data + i) != *(data2 + i))
7107 return 11;
7108
7109 /* Finally, make sure that changes to the mapped area do not
7110 percolate back to the file as seen by read(). (This is a bug on
7111 some variants of i386 svr4.0.) */
7112 for (i = 0; i < pagesize; ++i)
7113 *(data2 + i) = *(data2 + i) + 1;
7114 data3 = (char *) malloc (pagesize);
7115 if (!data3)
7116 return 12;
7117 if (read (fd, data3, pagesize) != pagesize)
7118 return 13;
7119 for (i = 0; i < pagesize; ++i)
7120 if (*(data + i) != *(data3 + i))
7121 return 14;
7122 close (fd);
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_run "$LINENO"; then :
7127 ac_cv_func_mmap_fixed_mapped=yes
7128 else
7129 ac_cv_func_mmap_fixed_mapped=no
7130 fi
7131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7132 conftest.$ac_objext conftest.beam conftest.$ac_ext
7133 fi
7134
7135 fi
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7137 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7138 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7139
7140 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7141
7142 fi
7143 rm -f conftest.mmap conftest.txt
7144
7145
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7147 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7148 if ${ac_cv_gnu_library_2_1+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153
7154 #include <features.h>
7155 #ifdef __GNU_LIBRARY__
7156 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7157 Lucky GNU user
7158 #endif
7159 #endif
7160
7161 _ACEOF
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7164 ac_cv_gnu_library_2_1=yes
7165 else
7166 ac_cv_gnu_library_2_1=no
7167 fi
7168 rm -f conftest*
7169
7170
7171
7172 fi
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7174 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7175
7176 GLIBC21="$ac_cv_gnu_library_2_1"
7177
7178
7179
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7182 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7183 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186
7187 if test "$cross_compiling" = yes; then :
7188
7189 # Guess based on the CPU.
7190 case "$host_cpu" in
7191 alpha* | i3456786 | m68k | s390*)
7192 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7193 *)
7194 gt_cv_int_divbyzero_sigfpe="guessing no";;
7195 esac
7196
7197 else
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200
7201 #include <stdlib.h>
7202 #include <signal.h>
7203
7204 static void
7205 #ifdef __cplusplus
7206 sigfpe_handler (int sig)
7207 #else
7208 sigfpe_handler (sig) int sig;
7209 #endif
7210 {
7211 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7212 exit (sig != SIGFPE);
7213 }
7214
7215 int x = 1;
7216 int y = 0;
7217 int z;
7218 int nan;
7219
7220 int main ()
7221 {
7222 signal (SIGFPE, sigfpe_handler);
7223 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7224 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7225 signal (SIGTRAP, sigfpe_handler);
7226 #endif
7227 /* Linux/SPARC yields signal SIGILL. */
7228 #if defined (__sparc__) && defined (__linux__)
7229 signal (SIGILL, sigfpe_handler);
7230 #endif
7231
7232 z = x / y;
7233 nan = y / y;
7234 exit (1);
7235 }
7236
7237 _ACEOF
7238 if ac_fn_c_try_run "$LINENO"; then :
7239 gt_cv_int_divbyzero_sigfpe=yes
7240 else
7241 gt_cv_int_divbyzero_sigfpe=no
7242 fi
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7244 conftest.$ac_objext conftest.beam conftest.$ac_ext
7245 fi
7246
7247
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7250 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7251 case "$gt_cv_int_divbyzero_sigfpe" in
7252 *yes) value=1;;
7253 *) value=0;;
7254 esac
7255
7256 cat >>confdefs.h <<_ACEOF
7257 #define INTDIV0_RAISES_SIGFPE $value
7258 _ACEOF
7259
7260
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7263 $as_echo_n "checking for inttypes.h... " >&6; }
7264 if ${jm_ac_cv_header_inttypes_h+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 #include <sys/types.h>
7270 #include <inttypes.h>
7271 int
7272 main ()
7273 {
7274 uintmax_t i = (uintmax_t) -1;
7275 ;
7276 return 0;
7277 }
7278 _ACEOF
7279 if ac_fn_c_try_compile "$LINENO"; then :
7280 jm_ac_cv_header_inttypes_h=yes
7281 else
7282 jm_ac_cv_header_inttypes_h=no
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
7287 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
7288 if test $jm_ac_cv_header_inttypes_h = yes; then
7289
7290 cat >>confdefs.h <<_ACEOF
7291 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7292 _ACEOF
7293
7294 fi
7295
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7298 $as_echo_n "checking for stdint.h... " >&6; }
7299 if ${jm_ac_cv_header_stdint_h+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <sys/types.h>
7305 #include <stdint.h>
7306 int
7307 main ()
7308 {
7309 uintmax_t i = (uintmax_t) -1;
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 if ac_fn_c_try_compile "$LINENO"; then :
7315 jm_ac_cv_header_stdint_h=yes
7316 else
7317 jm_ac_cv_header_stdint_h=no
7318 fi
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
7322 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
7323 if test $jm_ac_cv_header_stdint_h = yes; then
7324
7325 cat >>confdefs.h <<_ACEOF
7326 #define HAVE_STDINT_H_WITH_UINTMAX 1
7327 _ACEOF
7328
7329 fi
7330
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7333 $as_echo_n "checking for unsigned long long... " >&6; }
7334 if ${ac_cv_type_unsigned_long_long+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 unsigned long long ull = 1; int i = 63;
7340 int
7341 main ()
7342 {
7343 unsigned long long ullmax = (unsigned long long) -1;
7344 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 if ac_fn_c_try_link "$LINENO"; then :
7350 ac_cv_type_unsigned_long_long=yes
7351 else
7352 ac_cv_type_unsigned_long_long=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7356 fi
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7358 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7359 if test $ac_cv_type_unsigned_long_long = yes; then
7360
7361 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7362
7363 fi
7364
7365
7366
7367
7368 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7369
7370 test $ac_cv_type_unsigned_long_long = yes \
7371 && ac_type='unsigned long long' \
7372 || ac_type='unsigned long'
7373
7374 cat >>confdefs.h <<_ACEOF
7375 #define uintmax_t $ac_type
7376 _ACEOF
7377
7378 else
7379
7380 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7381
7382 fi
7383
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7386 $as_echo_n "checking for inttypes.h... " >&6; }
7387 if ${gt_cv_header_inttypes_h+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 #include <sys/types.h>
7394 #include <inttypes.h>
7395 int
7396 main ()
7397 {
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"; then :
7404 gt_cv_header_inttypes_h=yes
7405 else
7406 gt_cv_header_inttypes_h=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7412 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7413 if test $gt_cv_header_inttypes_h = yes; then
7414
7415 cat >>confdefs.h <<_ACEOF
7416 #define HAVE_INTTYPES_H 1
7417 _ACEOF
7418
7419 fi
7420
7421
7422
7423 if test $gt_cv_header_inttypes_h = yes; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7425 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7426 if ${gt_cv_inttypes_pri_broken+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 #include <inttypes.h>
7433 #ifdef PRId32
7434 char *p = PRId32;
7435 #endif
7436
7437 int
7438 main ()
7439 {
7440
7441 ;
7442 return 0;
7443 }
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 gt_cv_inttypes_pri_broken=no
7447 else
7448 gt_cv_inttypes_pri_broken=yes
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7454 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7455 fi
7456 if test "$gt_cv_inttypes_pri_broken" = yes; then
7457
7458 cat >>confdefs.h <<_ACEOF
7459 #define PRI_MACROS_BROKEN 1
7460 _ACEOF
7461
7462 fi
7463
7464
7465 if test "X$prefix" = "XNONE"; then
7466 acl_final_prefix="$ac_default_prefix"
7467 else
7468 acl_final_prefix="$prefix"
7469 fi
7470 if test "X$exec_prefix" = "XNONE"; then
7471 acl_final_exec_prefix='${prefix}'
7472 else
7473 acl_final_exec_prefix="$exec_prefix"
7474 fi
7475 acl_save_prefix="$prefix"
7476 prefix="$acl_final_prefix"
7477 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7478 prefix="$acl_save_prefix"
7479
7480
7481 # Check whether --with-gnu-ld was given.
7482 if test "${with_gnu_ld+set}" = set; then :
7483 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7484 else
7485 with_gnu_ld=no
7486 fi
7487
7488 # Prepare PATH_SEPARATOR.
7489 # The user is always right.
7490 if test "${PATH_SEPARATOR+set}" != set; then
7491 echo "#! /bin/sh" >conf$$.sh
7492 echo "exit 0" >>conf$$.sh
7493 chmod +x conf$$.sh
7494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7495 PATH_SEPARATOR=';'
7496 else
7497 PATH_SEPARATOR=:
7498 fi
7499 rm -f conf$$.sh
7500 fi
7501 ac_prog=ld
7502 if test "$GCC" = yes; then
7503 # Check if gcc -print-prog-name=ld gives a path.
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7505 $as_echo_n "checking for ld used by GCC... " >&6; }
7506 case $host in
7507 *-*-mingw*)
7508 # gcc leaves a trailing carriage return which upsets mingw
7509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7510 *)
7511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7512 esac
7513 case $ac_prog in
7514 # Accept absolute paths.
7515 [\\/]* | [A-Za-z]:[\\/]*)
7516 re_direlt='/[^/][^/]*/\.\./'
7517 # Canonicalize the path of ld
7518 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7519 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7520 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7521 done
7522 test -z "$LD" && LD="$ac_prog"
7523 ;;
7524 "")
7525 # If it fails, then pretend we aren't using GCC.
7526 ac_prog=ld
7527 ;;
7528 *)
7529 # If it is relative, then search for the first ld in PATH.
7530 with_gnu_ld=unknown
7531 ;;
7532 esac
7533 elif test "$with_gnu_ld" = yes; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7535 $as_echo_n "checking for GNU ld... " >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7538 $as_echo_n "checking for non-GNU ld... " >&6; }
7539 fi
7540 if ${acl_cv_path_LD+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 if test -z "$LD"; then
7544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7545 for ac_dir in $PATH; do
7546 test -z "$ac_dir" && ac_dir=.
7547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7548 acl_cv_path_LD="$ac_dir/$ac_prog"
7549 # Check to see if the program is GNU ld. I'd rather use --version,
7550 # but apparently some GNU ld's only accept -v.
7551 # Break only if it was the GNU/non-GNU ld that we prefer.
7552 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7553 test "$with_gnu_ld" != no && break
7554 else
7555 test "$with_gnu_ld" != yes && break
7556 fi
7557 fi
7558 done
7559 IFS="$ac_save_ifs"
7560 else
7561 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7562 fi
7563 fi
7564
7565 LD="$acl_cv_path_LD"
7566 if test -n "$LD"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7568 $as_echo "$LD" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7575 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7576 if ${acl_cv_prog_gnu_ld+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7580 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7581 acl_cv_prog_gnu_ld=yes
7582 else
7583 acl_cv_prog_gnu_ld=no
7584 fi
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7587 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7588 with_gnu_ld=$acl_cv_prog_gnu_ld
7589
7590
7591
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7593 $as_echo_n "checking for shared library run path origin... " >&6; }
7594 if ${acl_cv_rpath+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597
7598 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7599 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7600 . ./conftest.sh
7601 rm -f ./conftest.sh
7602 acl_cv_rpath=done
7603
7604 fi
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7606 $as_echo "$acl_cv_rpath" >&6; }
7607 wl="$acl_cv_wl"
7608 libext="$acl_cv_libext"
7609 shlibext="$acl_cv_shlibext"
7610 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7611 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7612 hardcode_direct="$acl_cv_hardcode_direct"
7613 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7614 # Check whether --enable-rpath was given.
7615 if test "${enable_rpath+set}" = set; then :
7616 enableval=$enable_rpath; :
7617 else
7618 enable_rpath=yes
7619 fi
7620
7621
7622
7623
7624
7625
7626
7627
7628 use_additional=yes
7629
7630 acl_save_prefix="$prefix"
7631 prefix="$acl_final_prefix"
7632 acl_save_exec_prefix="$exec_prefix"
7633 exec_prefix="$acl_final_exec_prefix"
7634
7635 eval additional_includedir=\"$includedir\"
7636 eval additional_libdir=\"$libdir\"
7637
7638 exec_prefix="$acl_save_exec_prefix"
7639 prefix="$acl_save_prefix"
7640
7641
7642 # Check whether --with-libiconv-prefix was given.
7643 if test "${with_libiconv_prefix+set}" = set; then :
7644 withval=$with_libiconv_prefix;
7645 if test "X$withval" = "Xno"; then
7646 use_additional=no
7647 else
7648 if test "X$withval" = "X"; then
7649
7650 acl_save_prefix="$prefix"
7651 prefix="$acl_final_prefix"
7652 acl_save_exec_prefix="$exec_prefix"
7653 exec_prefix="$acl_final_exec_prefix"
7654
7655 eval additional_includedir=\"$includedir\"
7656 eval additional_libdir=\"$libdir\"
7657
7658 exec_prefix="$acl_save_exec_prefix"
7659 prefix="$acl_save_prefix"
7660
7661 else
7662 additional_includedir="$withval/include"
7663 additional_libdir="$withval/lib"
7664 fi
7665 fi
7666
7667 fi
7668
7669 LIBICONV=
7670 LTLIBICONV=
7671 INCICONV=
7672 rpathdirs=
7673 ltrpathdirs=
7674 names_already_handled=
7675 names_next_round='iconv '
7676 while test -n "$names_next_round"; do
7677 names_this_round="$names_next_round"
7678 names_next_round=
7679 for name in $names_this_round; do
7680 already_handled=
7681 for n in $names_already_handled; do
7682 if test "$n" = "$name"; then
7683 already_handled=yes
7684 break
7685 fi
7686 done
7687 if test -z "$already_handled"; then
7688 names_already_handled="$names_already_handled $name"
7689 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7690 eval value=\"\$HAVE_LIB$uppername\"
7691 if test -n "$value"; then
7692 if test "$value" = yes; then
7693 eval value=\"\$LIB$uppername\"
7694 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7695 eval value=\"\$LTLIB$uppername\"
7696 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7697 else
7698 :
7699 fi
7700 else
7701 found_dir=
7702 found_la=
7703 found_so=
7704 found_a=
7705 if test $use_additional = yes; then
7706 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7707 found_dir="$additional_libdir"
7708 found_so="$additional_libdir/lib$name.$shlibext"
7709 if test -f "$additional_libdir/lib$name.la"; then
7710 found_la="$additional_libdir/lib$name.la"
7711 fi
7712 else
7713 if test -f "$additional_libdir/lib$name.$libext"; then
7714 found_dir="$additional_libdir"
7715 found_a="$additional_libdir/lib$name.$libext"
7716 if test -f "$additional_libdir/lib$name.la"; then
7717 found_la="$additional_libdir/lib$name.la"
7718 fi
7719 fi
7720 fi
7721 fi
7722 if test "X$found_dir" = "X"; then
7723 for x in $LDFLAGS $LTLIBICONV; do
7724
7725 acl_save_prefix="$prefix"
7726 prefix="$acl_final_prefix"
7727 acl_save_exec_prefix="$exec_prefix"
7728 exec_prefix="$acl_final_exec_prefix"
7729 eval x=\"$x\"
7730 exec_prefix="$acl_save_exec_prefix"
7731 prefix="$acl_save_prefix"
7732
7733 case "$x" in
7734 -L*)
7735 dir=`echo "X$x" | sed -e 's/^X-L//'`
7736 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7737 found_dir="$dir"
7738 found_so="$dir/lib$name.$shlibext"
7739 if test -f "$dir/lib$name.la"; then
7740 found_la="$dir/lib$name.la"
7741 fi
7742 else
7743 if test -f "$dir/lib$name.$libext"; then
7744 found_dir="$dir"
7745 found_a="$dir/lib$name.$libext"
7746 if test -f "$dir/lib$name.la"; then
7747 found_la="$dir/lib$name.la"
7748 fi
7749 fi
7750 fi
7751 ;;
7752 esac
7753 if test "X$found_dir" != "X"; then
7754 break
7755 fi
7756 done
7757 fi
7758 if test "X$found_dir" != "X"; then
7759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7760 if test "X$found_so" != "X"; then
7761 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7763 else
7764 haveit=
7765 for x in $ltrpathdirs; do
7766 if test "X$x" = "X$found_dir"; then
7767 haveit=yes
7768 break
7769 fi
7770 done
7771 if test -z "$haveit"; then
7772 ltrpathdirs="$ltrpathdirs $found_dir"
7773 fi
7774 if test "$hardcode_direct" = yes; then
7775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7776 else
7777 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7779 haveit=
7780 for x in $rpathdirs; do
7781 if test "X$x" = "X$found_dir"; then
7782 haveit=yes
7783 break
7784 fi
7785 done
7786 if test -z "$haveit"; then
7787 rpathdirs="$rpathdirs $found_dir"
7788 fi
7789 else
7790 haveit=
7791 for x in $LDFLAGS $LIBICONV; do
7792
7793 acl_save_prefix="$prefix"
7794 prefix="$acl_final_prefix"
7795 acl_save_exec_prefix="$exec_prefix"
7796 exec_prefix="$acl_final_exec_prefix"
7797 eval x=\"$x\"
7798 exec_prefix="$acl_save_exec_prefix"
7799 prefix="$acl_save_prefix"
7800
7801 if test "X$x" = "X-L$found_dir"; then
7802 haveit=yes
7803 break
7804 fi
7805 done
7806 if test -z "$haveit"; then
7807 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7808 fi
7809 if test "$hardcode_minus_L" != no; then
7810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7811 else
7812 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7813 fi
7814 fi
7815 fi
7816 fi
7817 else
7818 if test "X$found_a" != "X"; then
7819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7820 else
7821 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7822 fi
7823 fi
7824 additional_includedir=
7825 case "$found_dir" in
7826 */lib | */lib/)
7827 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7828 additional_includedir="$basedir/include"
7829 ;;
7830 esac
7831 if test "X$additional_includedir" != "X"; then
7832 if test "X$additional_includedir" != "X/usr/include"; then
7833 haveit=
7834 if test "X$additional_includedir" = "X/usr/local/include"; then
7835 if test -n "$GCC"; then
7836 case $host_os in
7837 linux*) haveit=yes;;
7838 esac
7839 fi
7840 fi
7841 if test -z "$haveit"; then
7842 for x in $CPPFLAGS $INCICONV; do
7843
7844 acl_save_prefix="$prefix"
7845 prefix="$acl_final_prefix"
7846 acl_save_exec_prefix="$exec_prefix"
7847 exec_prefix="$acl_final_exec_prefix"
7848 eval x=\"$x\"
7849 exec_prefix="$acl_save_exec_prefix"
7850 prefix="$acl_save_prefix"
7851
7852 if test "X$x" = "X-I$additional_includedir"; then
7853 haveit=yes
7854 break
7855 fi
7856 done
7857 if test -z "$haveit"; then
7858 if test -d "$additional_includedir"; then
7859 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7860 fi
7861 fi
7862 fi
7863 fi
7864 fi
7865 if test -n "$found_la"; then
7866 save_libdir="$libdir"
7867 case "$found_la" in
7868 */* | *\\*) . "$found_la" ;;
7869 *) . "./$found_la" ;;
7870 esac
7871 libdir="$save_libdir"
7872 for dep in $dependency_libs; do
7873 case "$dep" in
7874 -L*)
7875 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7876 if test "X$additional_libdir" != "X/usr/lib"; then
7877 haveit=
7878 if test "X$additional_libdir" = "X/usr/local/lib"; then
7879 if test -n "$GCC"; then
7880 case $host_os in
7881 linux*) haveit=yes;;
7882 esac
7883 fi
7884 fi
7885 if test -z "$haveit"; then
7886 haveit=
7887 for x in $LDFLAGS $LIBICONV; do
7888
7889 acl_save_prefix="$prefix"
7890 prefix="$acl_final_prefix"
7891 acl_save_exec_prefix="$exec_prefix"
7892 exec_prefix="$acl_final_exec_prefix"
7893 eval x=\"$x\"
7894 exec_prefix="$acl_save_exec_prefix"
7895 prefix="$acl_save_prefix"
7896
7897 if test "X$x" = "X-L$additional_libdir"; then
7898 haveit=yes
7899 break
7900 fi
7901 done
7902 if test -z "$haveit"; then
7903 if test -d "$additional_libdir"; then
7904 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7905 fi
7906 fi
7907 haveit=
7908 for x in $LDFLAGS $LTLIBICONV; do
7909
7910 acl_save_prefix="$prefix"
7911 prefix="$acl_final_prefix"
7912 acl_save_exec_prefix="$exec_prefix"
7913 exec_prefix="$acl_final_exec_prefix"
7914 eval x=\"$x\"
7915 exec_prefix="$acl_save_exec_prefix"
7916 prefix="$acl_save_prefix"
7917
7918 if test "X$x" = "X-L$additional_libdir"; then
7919 haveit=yes
7920 break
7921 fi
7922 done
7923 if test -z "$haveit"; then
7924 if test -d "$additional_libdir"; then
7925 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7926 fi
7927 fi
7928 fi
7929 fi
7930 ;;
7931 -R*)
7932 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7933 if test "$enable_rpath" != no; then
7934 haveit=
7935 for x in $rpathdirs; do
7936 if test "X$x" = "X$dir"; then
7937 haveit=yes
7938 break
7939 fi
7940 done
7941 if test -z "$haveit"; then
7942 rpathdirs="$rpathdirs $dir"
7943 fi
7944 haveit=
7945 for x in $ltrpathdirs; do
7946 if test "X$x" = "X$dir"; then
7947 haveit=yes
7948 break
7949 fi
7950 done
7951 if test -z "$haveit"; then
7952 ltrpathdirs="$ltrpathdirs $dir"
7953 fi
7954 fi
7955 ;;
7956 -l*)
7957 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7958 ;;
7959 *.la)
7960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7961 ;;
7962 *)
7963 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7965 ;;
7966 esac
7967 done
7968 fi
7969 else
7970 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7972 fi
7973 fi
7974 fi
7975 done
7976 done
7977 if test "X$rpathdirs" != "X"; then
7978 if test -n "$hardcode_libdir_separator"; then
7979 alldirs=
7980 for found_dir in $rpathdirs; do
7981 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7982 done
7983 acl_save_libdir="$libdir"
7984 libdir="$alldirs"
7985 eval flag=\"$hardcode_libdir_flag_spec\"
7986 libdir="$acl_save_libdir"
7987 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7988 else
7989 for found_dir in $rpathdirs; do
7990 acl_save_libdir="$libdir"
7991 libdir="$found_dir"
7992 eval flag=\"$hardcode_libdir_flag_spec\"
7993 libdir="$acl_save_libdir"
7994 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7995 done
7996 fi
7997 fi
7998 if test "X$ltrpathdirs" != "X"; then
7999 for found_dir in $ltrpathdirs; do
8000 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8001 done
8002 fi
8003
8004
8005
8006
8007 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8008 stdlib.h string.h unistd.h sys/param.h
8009 do :
8010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8011 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8013 cat >>confdefs.h <<_ACEOF
8014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8015 _ACEOF
8016
8017 fi
8018
8019 done
8020
8021 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8022 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
8023 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8024 __fsetlocking
8025 do :
8026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8028 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8029 cat >>confdefs.h <<_ACEOF
8030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8031 _ACEOF
8032
8033 fi
8034 done
8035
8036
8037
8038
8039
8040
8041
8042 am_save_CPPFLAGS="$CPPFLAGS"
8043
8044 for element in $INCICONV; do
8045 haveit=
8046 for x in $CPPFLAGS; do
8047
8048 acl_save_prefix="$prefix"
8049 prefix="$acl_final_prefix"
8050 acl_save_exec_prefix="$exec_prefix"
8051 exec_prefix="$acl_final_exec_prefix"
8052 eval x=\"$x\"
8053 exec_prefix="$acl_save_exec_prefix"
8054 prefix="$acl_save_prefix"
8055
8056 if test "X$x" = "X$element"; then
8057 haveit=yes
8058 break
8059 fi
8060 done
8061 if test -z "$haveit"; then
8062 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8063 fi
8064 done
8065
8066
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8068 $as_echo_n "checking for iconv... " >&6; }
8069 if ${am_cv_func_iconv+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072
8073 am_cv_func_iconv="no, consider installing GNU libiconv"
8074 am_cv_lib_iconv=no
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <stdlib.h>
8078 #include <iconv.h>
8079 int
8080 main ()
8081 {
8082 iconv_t cd = iconv_open("","");
8083 iconv(cd,NULL,NULL,NULL,NULL);
8084 iconv_close(cd);
8085 ;
8086 return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_link "$LINENO"; then :
8090 am_cv_func_iconv=yes
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext \
8093 conftest$ac_exeext conftest.$ac_ext
8094 if test "$am_cv_func_iconv" != yes; then
8095 am_save_LIBS="$LIBS"
8096 LIBS="$LIBS $LIBICONV"
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 #include <stdlib.h>
8100 #include <iconv.h>
8101 int
8102 main ()
8103 {
8104 iconv_t cd = iconv_open("","");
8105 iconv(cd,NULL,NULL,NULL,NULL);
8106 iconv_close(cd);
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 am_cv_lib_iconv=yes
8113 am_cv_func_iconv=yes
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 LIBS="$am_save_LIBS"
8118 fi
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8122 $as_echo "$am_cv_func_iconv" >&6; }
8123 if test "$am_cv_func_iconv" = yes; then
8124
8125 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8126
8127 fi
8128 if test "$am_cv_lib_iconv" = yes; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8130 $as_echo_n "checking how to link with libiconv... " >&6; }
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8132 $as_echo "$LIBICONV" >&6; }
8133 else
8134 CPPFLAGS="$am_save_CPPFLAGS"
8135 LIBICONV=
8136 LTLIBICONV=
8137 fi
8138
8139
8140
8141 if test "$am_cv_func_iconv" = yes; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8143 $as_echo_n "checking for iconv declaration... " >&6; }
8144 if ${am_cv_proto_iconv+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150
8151 #include <stdlib.h>
8152 #include <iconv.h>
8153 extern
8154 #ifdef __cplusplus
8155 "C"
8156 #endif
8157 #if defined(__STDC__) || defined(__cplusplus)
8158 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8159 #else
8160 size_t iconv();
8161 #endif
8162
8163 int
8164 main ()
8165 {
8166
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172 am_cv_proto_iconv_arg1=""
8173 else
8174 am_cv_proto_iconv_arg1="const"
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 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);"
8178 fi
8179
8180 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8182 }$am_cv_proto_iconv" >&5
8183 $as_echo "${ac_t:-
8184 }$am_cv_proto_iconv" >&6; }
8185
8186 cat >>confdefs.h <<_ACEOF
8187 #define ICONV_CONST $am_cv_proto_iconv_arg1
8188 _ACEOF
8189
8190 fi
8191
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8194 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8195 if ${am_cv_langinfo_codeset+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <langinfo.h>
8201 int
8202 main ()
8203 {
8204 char* cs = nl_langinfo(CODESET);
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 if ac_fn_c_try_link "$LINENO"; then :
8210 am_cv_langinfo_codeset=yes
8211 else
8212 am_cv_langinfo_codeset=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8216
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8219 $as_echo "$am_cv_langinfo_codeset" >&6; }
8220 if test $am_cv_langinfo_codeset = yes; then
8221
8222 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8223
8224 fi
8225
8226 if test $ac_cv_header_locale_h = yes; then
8227
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8229 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8230 if ${am_cv_val_LC_MESSAGES+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235 #include <locale.h>
8236 int
8237 main ()
8238 {
8239 return LC_MESSAGES
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_link "$LINENO"; then :
8245 am_cv_val_LC_MESSAGES=yes
8246 else
8247 am_cv_val_LC_MESSAGES=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8253 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8254 if test $am_cv_val_LC_MESSAGES = yes; then
8255
8256 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8257
8258 fi
8259
8260 fi
8261
8262 for ac_prog in bison
8263 do
8264 # Extract the first word of "$ac_prog", so it can be a program name with args.
8265 set dummy $ac_prog; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_INTLBISON+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$INTLBISON"; then
8272 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_prog_INTLBISON="$ac_prog"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289 fi
8290 fi
8291 INTLBISON=$ac_cv_prog_INTLBISON
8292 if test -n "$INTLBISON"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8294 $as_echo "$INTLBISON" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298 fi
8299
8300
8301 test -n "$INTLBISON" && break
8302 done
8303
8304 if test -z "$INTLBISON"; then
8305 ac_verc_fail=yes
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8308 $as_echo_n "checking version of bison... " >&6; }
8309 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8310 case $ac_prog_version in
8311 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8312 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8313 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8314 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8315 esac
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8317 $as_echo "$ac_prog_version" >&6; }
8318 fi
8319 if test $ac_verc_fail = yes; then
8320 INTLBISON=:
8321 fi
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8339 $as_echo_n "checking whether NLS is requested... " >&6; }
8340 # Check whether --enable-nls was given.
8341 if test "${enable_nls+set}" = set; then :
8342 enableval=$enable_nls; USE_NLS=$enableval
8343 else
8344 USE_NLS=yes
8345 fi
8346
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8348 $as_echo "$USE_NLS" >&6; }
8349
8350
8351
8352
8353 BUILD_INCLUDED_LIBINTL=no
8354 USE_INCLUDED_LIBINTL=no
8355
8356 LIBINTL=
8357 LTLIBINTL=
8358 POSUB=
8359
8360 if test "$USE_NLS" = "yes"; then
8361 gt_use_preinstalled_gnugettext=no
8362
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8364 $as_echo_n "checking whether included gettext is requested... " >&6; }
8365
8366 # Check whether --with-included-gettext was given.
8367 if test "${with_included_gettext+set}" = set; then :
8368 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8369 else
8370 nls_cv_force_use_gnu_gettext=no
8371 fi
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8374 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8375
8376 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8377 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8378
8379
8380
8381
8382
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8385 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8386 if ${gt_cv_func_gnugettext2_libc+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 #include <libintl.h>
8392 extern int _nl_msg_cat_cntr;
8393 extern int *_nl_domain_bindings;
8394 int
8395 main ()
8396 {
8397 bindtextdomain ("", "");
8398 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8399 ;
8400 return 0;
8401 }
8402 _ACEOF
8403 if ac_fn_c_try_link "$LINENO"; then :
8404 gt_cv_func_gnugettext2_libc=yes
8405 else
8406 gt_cv_func_gnugettext2_libc=no
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
8412 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
8413
8414 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8415
8416
8417
8418 use_additional=yes
8419
8420 acl_save_prefix="$prefix"
8421 prefix="$acl_final_prefix"
8422 acl_save_exec_prefix="$exec_prefix"
8423 exec_prefix="$acl_final_exec_prefix"
8424
8425 eval additional_includedir=\"$includedir\"
8426 eval additional_libdir=\"$libdir\"
8427
8428 exec_prefix="$acl_save_exec_prefix"
8429 prefix="$acl_save_prefix"
8430
8431
8432 # Check whether --with-libintl-prefix was given.
8433 if test "${with_libintl_prefix+set}" = set; then :
8434 withval=$with_libintl_prefix;
8435 if test "X$withval" = "Xno"; then
8436 use_additional=no
8437 else
8438 if test "X$withval" = "X"; then
8439
8440 acl_save_prefix="$prefix"
8441 prefix="$acl_final_prefix"
8442 acl_save_exec_prefix="$exec_prefix"
8443 exec_prefix="$acl_final_exec_prefix"
8444
8445 eval additional_includedir=\"$includedir\"
8446 eval additional_libdir=\"$libdir\"
8447
8448 exec_prefix="$acl_save_exec_prefix"
8449 prefix="$acl_save_prefix"
8450
8451 else
8452 additional_includedir="$withval/include"
8453 additional_libdir="$withval/lib"
8454 fi
8455 fi
8456
8457 fi
8458
8459 LIBINTL=
8460 LTLIBINTL=
8461 INCINTL=
8462 rpathdirs=
8463 ltrpathdirs=
8464 names_already_handled=
8465 names_next_round='intl '
8466 while test -n "$names_next_round"; do
8467 names_this_round="$names_next_round"
8468 names_next_round=
8469 for name in $names_this_round; do
8470 already_handled=
8471 for n in $names_already_handled; do
8472 if test "$n" = "$name"; then
8473 already_handled=yes
8474 break
8475 fi
8476 done
8477 if test -z "$already_handled"; then
8478 names_already_handled="$names_already_handled $name"
8479 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8480 eval value=\"\$HAVE_LIB$uppername\"
8481 if test -n "$value"; then
8482 if test "$value" = yes; then
8483 eval value=\"\$LIB$uppername\"
8484 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8485 eval value=\"\$LTLIB$uppername\"
8486 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8487 else
8488 :
8489 fi
8490 else
8491 found_dir=
8492 found_la=
8493 found_so=
8494 found_a=
8495 if test $use_additional = yes; then
8496 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8497 found_dir="$additional_libdir"
8498 found_so="$additional_libdir/lib$name.$shlibext"
8499 if test -f "$additional_libdir/lib$name.la"; then
8500 found_la="$additional_libdir/lib$name.la"
8501 fi
8502 else
8503 if test -f "$additional_libdir/lib$name.$libext"; then
8504 found_dir="$additional_libdir"
8505 found_a="$additional_libdir/lib$name.$libext"
8506 if test -f "$additional_libdir/lib$name.la"; then
8507 found_la="$additional_libdir/lib$name.la"
8508 fi
8509 fi
8510 fi
8511 fi
8512 if test "X$found_dir" = "X"; then
8513 for x in $LDFLAGS $LTLIBINTL; do
8514
8515 acl_save_prefix="$prefix"
8516 prefix="$acl_final_prefix"
8517 acl_save_exec_prefix="$exec_prefix"
8518 exec_prefix="$acl_final_exec_prefix"
8519 eval x=\"$x\"
8520 exec_prefix="$acl_save_exec_prefix"
8521 prefix="$acl_save_prefix"
8522
8523 case "$x" in
8524 -L*)
8525 dir=`echo "X$x" | sed -e 's/^X-L//'`
8526 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8527 found_dir="$dir"
8528 found_so="$dir/lib$name.$shlibext"
8529 if test -f "$dir/lib$name.la"; then
8530 found_la="$dir/lib$name.la"
8531 fi
8532 else
8533 if test -f "$dir/lib$name.$libext"; then
8534 found_dir="$dir"
8535 found_a="$dir/lib$name.$libext"
8536 if test -f "$dir/lib$name.la"; then
8537 found_la="$dir/lib$name.la"
8538 fi
8539 fi
8540 fi
8541 ;;
8542 esac
8543 if test "X$found_dir" != "X"; then
8544 break
8545 fi
8546 done
8547 fi
8548 if test "X$found_dir" != "X"; then
8549 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8550 if test "X$found_so" != "X"; then
8551 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8552 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8553 else
8554 haveit=
8555 for x in $ltrpathdirs; do
8556 if test "X$x" = "X$found_dir"; then
8557 haveit=yes
8558 break
8559 fi
8560 done
8561 if test -z "$haveit"; then
8562 ltrpathdirs="$ltrpathdirs $found_dir"
8563 fi
8564 if test "$hardcode_direct" = yes; then
8565 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8566 else
8567 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8568 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8569 haveit=
8570 for x in $rpathdirs; do
8571 if test "X$x" = "X$found_dir"; then
8572 haveit=yes
8573 break
8574 fi
8575 done
8576 if test -z "$haveit"; then
8577 rpathdirs="$rpathdirs $found_dir"
8578 fi
8579 else
8580 haveit=
8581 for x in $LDFLAGS $LIBINTL; do
8582
8583 acl_save_prefix="$prefix"
8584 prefix="$acl_final_prefix"
8585 acl_save_exec_prefix="$exec_prefix"
8586 exec_prefix="$acl_final_exec_prefix"
8587 eval x=\"$x\"
8588 exec_prefix="$acl_save_exec_prefix"
8589 prefix="$acl_save_prefix"
8590
8591 if test "X$x" = "X-L$found_dir"; then
8592 haveit=yes
8593 break
8594 fi
8595 done
8596 if test -z "$haveit"; then
8597 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8598 fi
8599 if test "$hardcode_minus_L" != no; then
8600 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8601 else
8602 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8603 fi
8604 fi
8605 fi
8606 fi
8607 else
8608 if test "X$found_a" != "X"; then
8609 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8610 else
8611 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8612 fi
8613 fi
8614 additional_includedir=
8615 case "$found_dir" in
8616 */lib | */lib/)
8617 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8618 additional_includedir="$basedir/include"
8619 ;;
8620 esac
8621 if test "X$additional_includedir" != "X"; then
8622 if test "X$additional_includedir" != "X/usr/include"; then
8623 haveit=
8624 if test "X$additional_includedir" = "X/usr/local/include"; then
8625 if test -n "$GCC"; then
8626 case $host_os in
8627 linux*) haveit=yes;;
8628 esac
8629 fi
8630 fi
8631 if test -z "$haveit"; then
8632 for x in $CPPFLAGS $INCINTL; do
8633
8634 acl_save_prefix="$prefix"
8635 prefix="$acl_final_prefix"
8636 acl_save_exec_prefix="$exec_prefix"
8637 exec_prefix="$acl_final_exec_prefix"
8638 eval x=\"$x\"
8639 exec_prefix="$acl_save_exec_prefix"
8640 prefix="$acl_save_prefix"
8641
8642 if test "X$x" = "X-I$additional_includedir"; then
8643 haveit=yes
8644 break
8645 fi
8646 done
8647 if test -z "$haveit"; then
8648 if test -d "$additional_includedir"; then
8649 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8650 fi
8651 fi
8652 fi
8653 fi
8654 fi
8655 if test -n "$found_la"; then
8656 save_libdir="$libdir"
8657 case "$found_la" in
8658 */* | *\\*) . "$found_la" ;;
8659 *) . "./$found_la" ;;
8660 esac
8661 libdir="$save_libdir"
8662 for dep in $dependency_libs; do
8663 case "$dep" in
8664 -L*)
8665 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8666 if test "X$additional_libdir" != "X/usr/lib"; then
8667 haveit=
8668 if test "X$additional_libdir" = "X/usr/local/lib"; then
8669 if test -n "$GCC"; then
8670 case $host_os in
8671 linux*) haveit=yes;;
8672 esac
8673 fi
8674 fi
8675 if test -z "$haveit"; then
8676 haveit=
8677 for x in $LDFLAGS $LIBINTL; do
8678
8679 acl_save_prefix="$prefix"
8680 prefix="$acl_final_prefix"
8681 acl_save_exec_prefix="$exec_prefix"
8682 exec_prefix="$acl_final_exec_prefix"
8683 eval x=\"$x\"
8684 exec_prefix="$acl_save_exec_prefix"
8685 prefix="$acl_save_prefix"
8686
8687 if test "X$x" = "X-L$additional_libdir"; then
8688 haveit=yes
8689 break
8690 fi
8691 done
8692 if test -z "$haveit"; then
8693 if test -d "$additional_libdir"; then
8694 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8695 fi
8696 fi
8697 haveit=
8698 for x in $LDFLAGS $LTLIBINTL; do
8699
8700 acl_save_prefix="$prefix"
8701 prefix="$acl_final_prefix"
8702 acl_save_exec_prefix="$exec_prefix"
8703 exec_prefix="$acl_final_exec_prefix"
8704 eval x=\"$x\"
8705 exec_prefix="$acl_save_exec_prefix"
8706 prefix="$acl_save_prefix"
8707
8708 if test "X$x" = "X-L$additional_libdir"; then
8709 haveit=yes
8710 break
8711 fi
8712 done
8713 if test -z "$haveit"; then
8714 if test -d "$additional_libdir"; then
8715 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8716 fi
8717 fi
8718 fi
8719 fi
8720 ;;
8721 -R*)
8722 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8723 if test "$enable_rpath" != no; then
8724 haveit=
8725 for x in $rpathdirs; do
8726 if test "X$x" = "X$dir"; then
8727 haveit=yes
8728 break
8729 fi
8730 done
8731 if test -z "$haveit"; then
8732 rpathdirs="$rpathdirs $dir"
8733 fi
8734 haveit=
8735 for x in $ltrpathdirs; do
8736 if test "X$x" = "X$dir"; then
8737 haveit=yes
8738 break
8739 fi
8740 done
8741 if test -z "$haveit"; then
8742 ltrpathdirs="$ltrpathdirs $dir"
8743 fi
8744 fi
8745 ;;
8746 -l*)
8747 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8748 ;;
8749 *.la)
8750 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8751 ;;
8752 *)
8753 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8754 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8755 ;;
8756 esac
8757 done
8758 fi
8759 else
8760 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8761 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8762 fi
8763 fi
8764 fi
8765 done
8766 done
8767 if test "X$rpathdirs" != "X"; then
8768 if test -n "$hardcode_libdir_separator"; then
8769 alldirs=
8770 for found_dir in $rpathdirs; do
8771 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8772 done
8773 acl_save_libdir="$libdir"
8774 libdir="$alldirs"
8775 eval flag=\"$hardcode_libdir_flag_spec\"
8776 libdir="$acl_save_libdir"
8777 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8778 else
8779 for found_dir in $rpathdirs; do
8780 acl_save_libdir="$libdir"
8781 libdir="$found_dir"
8782 eval flag=\"$hardcode_libdir_flag_spec\"
8783 libdir="$acl_save_libdir"
8784 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8785 done
8786 fi
8787 fi
8788 if test "X$ltrpathdirs" != "X"; then
8789 for found_dir in $ltrpathdirs; do
8790 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8791 done
8792 fi
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8795 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8796 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 gt_save_CPPFLAGS="$CPPFLAGS"
8800 CPPFLAGS="$CPPFLAGS $INCINTL"
8801 gt_save_LIBS="$LIBS"
8802 LIBS="$LIBS $LIBINTL"
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 #include <libintl.h>
8806 extern int _nl_msg_cat_cntr;
8807 extern
8808 #ifdef __cplusplus
8809 "C"
8810 #endif
8811 const char *_nl_expand_alias ();
8812 int
8813 main ()
8814 {
8815 bindtextdomain ("", "");
8816 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 gt_cv_func_gnugettext2_libintl=yes
8823 else
8824 gt_cv_func_gnugettext2_libintl=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8829 LIBS="$LIBS $LIBICONV"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <libintl.h>
8833 extern int _nl_msg_cat_cntr;
8834 extern
8835 #ifdef __cplusplus
8836 "C"
8837 #endif
8838 const char *_nl_expand_alias ();
8839 int
8840 main ()
8841 {
8842 bindtextdomain ("", "");
8843 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8844 ;
8845 return 0;
8846 }
8847 _ACEOF
8848 if ac_fn_c_try_link "$LINENO"; then :
8849 LIBINTL="$LIBINTL $LIBICONV"
8850 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8851 gt_cv_func_gnugettext2_libintl=yes
8852
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 fi
8857 CPPFLAGS="$gt_save_CPPFLAGS"
8858 LIBS="$gt_save_LIBS"
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
8861 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
8862 fi
8863
8864 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8865 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8866 && test "$PACKAGE" != gettext-runtime \
8867 && test "$PACKAGE" != gettext-tools; }; then
8868 gt_use_preinstalled_gnugettext=yes
8869 else
8870 LIBINTL=
8871 LTLIBINTL=
8872 INCINTL=
8873 fi
8874
8875
8876 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8877 nls_cv_use_gnu_gettext=yes
8878 fi
8879 fi
8880
8881 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8882 BUILD_INCLUDED_LIBINTL=yes
8883 USE_INCLUDED_LIBINTL=yes
8884 LIBINTL="lib/intl/libintl.a $LIBICONV"
8885 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
8886 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8887 fi
8888
8889 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8890 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8891 CATOBJEXT=.gmo
8892 fi
8893
8894
8895 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8896 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8897
8898 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8899
8900 else
8901 USE_NLS=no
8902 fi
8903 fi
8904
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8906 $as_echo_n "checking whether to use NLS... " >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8908 $as_echo "$USE_NLS" >&6; }
8909 if test "$USE_NLS" = "yes"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8911 $as_echo_n "checking where the gettext function comes from... " >&6; }
8912 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8913 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8914 gt_source="external libintl"
8915 else
8916 gt_source="libc"
8917 fi
8918 else
8919 gt_source="included intl directory"
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8922 $as_echo "$gt_source" >&6; }
8923 fi
8924
8925 if test "$USE_NLS" = "yes"; then
8926
8927 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8928 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8930 $as_echo_n "checking how to link with libintl... " >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8932 $as_echo "$LIBINTL" >&6; }
8933
8934 for element in $INCINTL; do
8935 haveit=
8936 for x in $CPPFLAGS; do
8937
8938 acl_save_prefix="$prefix"
8939 prefix="$acl_final_prefix"
8940 acl_save_exec_prefix="$exec_prefix"
8941 exec_prefix="$acl_final_exec_prefix"
8942 eval x=\"$x\"
8943 exec_prefix="$acl_save_exec_prefix"
8944 prefix="$acl_save_prefix"
8945
8946 if test "X$x" = "X$element"; then
8947 haveit=yes
8948 break
8949 fi
8950 done
8951 if test -z "$haveit"; then
8952 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8953 fi
8954 done
8955
8956 fi
8957
8958
8959 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8960
8961
8962 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8963
8964 fi
8965
8966 POSUB=po
8967 fi
8968
8969
8970 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8971 BUILD_INCLUDED_LIBINTL=yes
8972 fi
8973
8974
8975
8976
8977
8978 nls_cv_header_intl=
8979 nls_cv_header_libgt=
8980
8981 DATADIRNAME=share
8982
8983
8984 INSTOBJEXT=.mo
8985
8986
8987 GENCAT=gencat
8988
8989
8990 if test "$USE_INCLUDED_LIBINTL" = yes; then
8991 INTLOBJS="\$(GETTOBJS)"
8992 fi
8993
8994
8995 INTL_LIBTOOL_SUFFIX_PREFIX=
8996
8997
8998
8999 INTLLIBS="$LIBINTL"
9000
9001
9002
9003
9004
9005
9006
9007 ac_header_dirent=no
9008 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9009 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9011 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9012 if eval \${$as_ac_Header+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 #include <sys/types.h>
9018 #include <$ac_hdr>
9019
9020 int
9021 main ()
9022 {
9023 if ((DIR *) 0)
9024 return 0;
9025 ;
9026 return 0;
9027 }
9028 _ACEOF
9029 if ac_fn_c_try_compile "$LINENO"; then :
9030 eval "$as_ac_Header=yes"
9031 else
9032 eval "$as_ac_Header=no"
9033 fi
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 fi
9036 eval ac_res=\$$as_ac_Header
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9038 $as_echo "$ac_res" >&6; }
9039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9040 cat >>confdefs.h <<_ACEOF
9041 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9042 _ACEOF
9043
9044 ac_header_dirent=$ac_hdr; break
9045 fi
9046
9047 done
9048 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9049 if test $ac_header_dirent = dirent.h; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9051 $as_echo_n "checking for library containing opendir... " >&6; }
9052 if ${ac_cv_search_opendir+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 ac_func_search_save_LIBS=$LIBS
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058
9059 /* Override any GCC internal prototype to avoid an error.
9060 Use char because int might match the return type of a GCC
9061 builtin and then its argument prototype would still apply. */
9062 #ifdef __cplusplus
9063 extern "C"
9064 #endif
9065 char opendir ();
9066 int
9067 main ()
9068 {
9069 return opendir ();
9070 ;
9071 return 0;
9072 }
9073 _ACEOF
9074 for ac_lib in '' dir; do
9075 if test -z "$ac_lib"; then
9076 ac_res="none required"
9077 else
9078 ac_res=-l$ac_lib
9079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9080 fi
9081 if ac_fn_c_try_link "$LINENO"; then :
9082 ac_cv_search_opendir=$ac_res
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext
9086 if ${ac_cv_search_opendir+:} false; then :
9087 break
9088 fi
9089 done
9090 if ${ac_cv_search_opendir+:} false; then :
9091
9092 else
9093 ac_cv_search_opendir=no
9094 fi
9095 rm conftest.$ac_ext
9096 LIBS=$ac_func_search_save_LIBS
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9099 $as_echo "$ac_cv_search_opendir" >&6; }
9100 ac_res=$ac_cv_search_opendir
9101 if test "$ac_res" != no; then :
9102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9103
9104 fi
9105
9106 else
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9108 $as_echo_n "checking for library containing opendir... " >&6; }
9109 if ${ac_cv_search_opendir+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 ac_func_search_save_LIBS=$LIBS
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115
9116 /* Override any GCC internal prototype to avoid an error.
9117 Use char because int might match the return type of a GCC
9118 builtin and then its argument prototype would still apply. */
9119 #ifdef __cplusplus
9120 extern "C"
9121 #endif
9122 char opendir ();
9123 int
9124 main ()
9125 {
9126 return opendir ();
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 for ac_lib in '' x; do
9132 if test -z "$ac_lib"; then
9133 ac_res="none required"
9134 else
9135 ac_res=-l$ac_lib
9136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9137 fi
9138 if ac_fn_c_try_link "$LINENO"; then :
9139 ac_cv_search_opendir=$ac_res
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext
9143 if ${ac_cv_search_opendir+:} false; then :
9144 break
9145 fi
9146 done
9147 if ${ac_cv_search_opendir+:} false; then :
9148
9149 else
9150 ac_cv_search_opendir=no
9151 fi
9152 rm conftest.$ac_ext
9153 LIBS=$ac_func_search_save_LIBS
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9156 $as_echo "$ac_cv_search_opendir" >&6; }
9157 ac_res=$ac_cv_search_opendir
9158 if test "$ac_res" != no; then :
9159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9160
9161 fi
9162
9163 fi
9164
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9166 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9167 if ${ac_cv_header_time+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9173 #include <sys/time.h>
9174 #include <time.h>
9175
9176 int
9177 main ()
9178 {
9179 if ((struct tm *) 0)
9180 return 0;
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 if ac_fn_c_try_compile "$LINENO"; then :
9186 ac_cv_header_time=yes
9187 else
9188 ac_cv_header_time=no
9189 fi
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 fi
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9193 $as_echo "$ac_cv_header_time" >&6; }
9194 if test $ac_cv_header_time = yes; then
9195
9196 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9197
9198 fi
9199
9200
9201
9202 for ac_header in inttypes.h
9203 do :
9204 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9205 if test "x$ac_cv_header_inttypes_h" = xyes; then :
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_INTTYPES_H 1
9208 _ACEOF
9209
9210 fi
9211
9212 done
9213
9214
9215
9216 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9217 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9218 stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \
9219 regex.h syslog.h ulimit.h
9220 do :
9221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9224 cat >>confdefs.h <<_ACEOF
9225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9226 _ACEOF
9227
9228 fi
9229
9230 done
9231
9232 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
9233 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
9234 sys/time.h sys/times.h sys/types.h sys/wait.h
9235 do :
9236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9237 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9239 cat >>confdefs.h <<_ACEOF
9240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9241 _ACEOF
9242
9243 fi
9244
9245 done
9246
9247 for ac_header in netinet/in.h arpa/inet.h
9248 do :
9249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9250 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9252 cat >>confdefs.h <<_ACEOF
9253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9254 _ACEOF
9255
9256 fi
9257
9258 done
9259
9260
9261 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
9262 #if HAVE_SYS_STREAM_H
9263 # include <sys/stream.h>
9264 #endif
9265
9266 "
9267 if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
9268
9269 fi
9270
9271
9272
9273 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9274 # for constant arguments. Useless!
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9276 $as_echo_n "checking for working alloca.h... " >&6; }
9277 if ${ac_cv_working_alloca_h+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 #include <alloca.h>
9283 int
9284 main ()
9285 {
9286 char *p = (char *) alloca (2 * sizeof (int));
9287 if (p) return 0;
9288 ;
9289 return 0;
9290 }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_working_alloca_h=yes
9294 else
9295 ac_cv_working_alloca_h=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 fi
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9301 $as_echo "$ac_cv_working_alloca_h" >&6; }
9302 if test $ac_cv_working_alloca_h = yes; then
9303
9304 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9305
9306 fi
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9309 $as_echo_n "checking for alloca... " >&6; }
9310 if ${ac_cv_func_alloca_works+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #ifdef __GNUC__
9316 # define alloca __builtin_alloca
9317 #else
9318 # ifdef _MSC_VER
9319 # include <malloc.h>
9320 # define alloca _alloca
9321 # else
9322 # ifdef HAVE_ALLOCA_H
9323 # include <alloca.h>
9324 # else
9325 # ifdef _AIX
9326 #pragma alloca
9327 # else
9328 # ifndef alloca /* predefined by HP cc +Olibcalls */
9329 void *alloca (size_t);
9330 # endif
9331 # endif
9332 # endif
9333 # endif
9334 #endif
9335
9336 int
9337 main ()
9338 {
9339 char *p = (char *) alloca (1);
9340 if (p) return 0;
9341 ;
9342 return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"; then :
9346 ac_cv_func_alloca_works=yes
9347 else
9348 ac_cv_func_alloca_works=no
9349 fi
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9354 $as_echo "$ac_cv_func_alloca_works" >&6; }
9355
9356 if test $ac_cv_func_alloca_works = yes; then
9357
9358 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9359
9360 else
9361 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9362 # that cause trouble. Some versions do not even contain alloca or
9363 # contain a buggy version. If you still want to use their alloca,
9364 # use ar to extract alloca.o from them instead of compiling alloca.c.
9365
9366 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9367
9368 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9369
9370
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9372 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9373 if ${ac_cv_os_cray+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #if defined CRAY && ! defined CRAY2
9379 webecray
9380 #else
9381 wenotbecray
9382 #endif
9383
9384 _ACEOF
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 $EGREP "webecray" >/dev/null 2>&1; then :
9387 ac_cv_os_cray=yes
9388 else
9389 ac_cv_os_cray=no
9390 fi
9391 rm -f conftest*
9392
9393 fi
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9395 $as_echo "$ac_cv_os_cray" >&6; }
9396 if test $ac_cv_os_cray = yes; then
9397 for ac_func in _getb67 GETB67 getb67; do
9398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9400 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9401
9402 cat >>confdefs.h <<_ACEOF
9403 #define CRAY_STACKSEG_END $ac_func
9404 _ACEOF
9405
9406 break
9407 fi
9408
9409 done
9410 fi
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9413 $as_echo_n "checking stack direction for C alloca... " >&6; }
9414 if ${ac_cv_c_stack_direction+:} false; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 if test "$cross_compiling" = yes; then :
9418 ac_cv_c_stack_direction=0
9419 else
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 $ac_includes_default
9423 int
9424 find_stack_direction ()
9425 {
9426 static char *addr = 0;
9427 auto char dummy;
9428 if (addr == 0)
9429 {
9430 addr = &dummy;
9431 return find_stack_direction ();
9432 }
9433 else
9434 return (&dummy > addr) ? 1 : -1;
9435 }
9436
9437 int
9438 main ()
9439 {
9440 return find_stack_direction () < 0;
9441 }
9442 _ACEOF
9443 if ac_fn_c_try_run "$LINENO"; then :
9444 ac_cv_c_stack_direction=1
9445 else
9446 ac_cv_c_stack_direction=-1
9447 fi
9448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9449 conftest.$ac_objext conftest.beam conftest.$ac_ext
9450 fi
9451
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9454 $as_echo "$ac_cv_c_stack_direction" >&6; }
9455 cat >>confdefs.h <<_ACEOF
9456 #define STACK_DIRECTION $ac_cv_c_stack_direction
9457 _ACEOF
9458
9459
9460 fi
9461
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9463 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9464 if ${ac_cv_func_getpgrp_void+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 # Use it with a single arg.
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 int
9472 main ()
9473 {
9474 getpgrp (0);
9475 ;
9476 return 0;
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 ac_cv_func_getpgrp_void=no
9481 else
9482 ac_cv_func_getpgrp_void=yes
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9488 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9489 if test $ac_cv_func_getpgrp_void = yes; then
9490
9491 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9492
9493 fi
9494
9495 if ${ac_cv_func_setvbuf_reversed+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 ac_cv_func_setvbuf_reversed=no
9499 fi
9500
9501
9502 for ac_func in vprintf
9503 do :
9504 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9505 if test "x$ac_cv_func_vprintf" = xyes; then :
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_VPRINTF 1
9508 _ACEOF
9509
9510 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9511 if test "x$ac_cv_func__doprnt" = xyes; then :
9512
9513 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9514
9515 fi
9516
9517 fi
9518 done
9519
9520
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9522 $as_echo_n "checking for working strcoll... " >&6; }
9523 if ${ac_cv_func_strcoll_works+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 if test "$cross_compiling" = yes; then :
9527 ac_cv_func_strcoll_works=no
9528 else
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 int
9533 main ()
9534 {
9535 return (strcoll ("abc", "def") >= 0 ||
9536 strcoll ("ABC", "DEF") >= 0 ||
9537 strcoll ("123", "456") >= 0)
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_c_try_run "$LINENO"; then :
9543 ac_cv_func_strcoll_works=yes
9544 else
9545 ac_cv_func_strcoll_works=no
9546 fi
9547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9548 conftest.$ac_objext conftest.beam conftest.$ac_ext
9549 fi
9550
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9553 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9554 if test $ac_cv_func_strcoll_works = yes; then
9555
9556 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9557
9558 fi
9559
9560
9561
9562 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
9563 MALLOC_TARGET=alloca
9564 MALLOC_SRC=alloca.c
9565
9566 MALLOC_LIB='-lmalloc'
9567 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
9568 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
9569 MALLOC_DEP='$(MALLOC_LIBRARY)'
9570 fi
9571
9572 if test "$ac_cv_func_vprintf" = no; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
9574 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 #include <stdio.h>
9578
9579 _ACEOF
9580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9581 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then :
9582 ac_cv_func_vprintf=yes
9583 fi
9584 rm -f conftest*
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
9587 $as_echo "$ac_cv_func_vprintf" >&6; }
9588 if test $ac_cv_func_vprintf = yes; then
9589 $as_echo "#define HAVE_VPRINTF 1" >>confdefs.h
9590
9591 fi
9592 fi
9593
9594 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
9595 case " $LIBOBJS " in
9596 *" vprint.$ac_objext "* ) ;;
9597 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
9598 ;;
9599 esac
9600
9601 fi
9602
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9604 $as_echo_n "checking return type of signal handlers... " >&6; }
9605 if ${ac_cv_type_signal+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610 #include <sys/types.h>
9611 #include <signal.h>
9612
9613 int
9614 main ()
9615 {
9616 return *(signal (0, 0)) (0) == 1;
9617 ;
9618 return 0;
9619 }
9620 _ACEOF
9621 if ac_fn_c_try_compile "$LINENO"; then :
9622 ac_cv_type_signal=int
9623 else
9624 ac_cv_type_signal=void
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9629 $as_echo "$ac_cv_type_signal" >&6; }
9630
9631 cat >>confdefs.h <<_ACEOF
9632 #define RETSIGTYPE $ac_cv_type_signal
9633 _ACEOF
9634
9635
9636
9637 ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype"
9638 if test "x$ac_cv_func___setostype" = xyes; then :
9639 $as_echo "#define HAVE_SETOSTYPE 1" >>confdefs.h
9640
9641 fi
9642
9643 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
9644 if test "x$ac_cv_func_wait3" = xyes; then :
9645 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
9646
9647 fi
9648
9649
9650 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
9651 if test "x$ac_cv_func_mkfifo" = xyes; then :
9652 $as_echo "#define HAVE_MKFIFO 1" >>confdefs.h
9653
9654 else
9655 $as_echo "#define MKFIFO_MISSING 1" >>confdefs.h
9656
9657 fi
9658
9659
9660 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
9661 getpagesize getpeername getrlimit getrusage gettimeofday \
9662 kill killpg lstat readlink sbrk select setdtablesize \
9663 setitimer tcgetpgrp uname ulimit waitpid
9664 do :
9665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9667 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9668 cat >>confdefs.h <<_ACEOF
9669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9670 _ACEOF
9671
9672 fi
9673 done
9674
9675 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
9676 if test "x$ac_cv_func_rename" = xyes; then :
9677 $as_echo "#define HAVE_RENAME 1" >>confdefs.h
9678
9679 else
9680 case " $LIBOBJS " in
9681 *" rename.$ac_objext "* ) ;;
9682 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
9683 ;;
9684 esac
9685
9686 fi
9687
9688
9689
9690 for ac_func in bcopy bzero confstr faccessat fnmatch \
9691 getaddrinfo gethostbyname getservbyname getservent inet_aton \
9692 imaxdiv memmove pathconf putenv raise regcomp regexec \
9693 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
9694 sysconf syslog tcgetattr times ttyname tzset unsetenv
9695 do :
9696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9699 cat >>confdefs.h <<_ACEOF
9700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9701 _ACEOF
9702
9703 fi
9704 done
9705
9706
9707 for ac_func in vasprintf asprintf
9708 do :
9709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9712 cat >>confdefs.h <<_ACEOF
9713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9714 _ACEOF
9715
9716 fi
9717 done
9718
9719 for ac_func in isascii isblank isgraph isprint isspace isxdigit
9720 do :
9721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9723 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9724 cat >>confdefs.h <<_ACEOF
9725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9726 _ACEOF
9727
9728 fi
9729 done
9730
9731 for ac_func in getpwent getpwnam getpwuid
9732 do :
9733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9735 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9736 cat >>confdefs.h <<_ACEOF
9737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9738 _ACEOF
9739
9740 fi
9741 done
9742
9743 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
9744 if test "x$ac_cv_func_getcwd" = xyes; then :
9745 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
9746
9747 else
9748 case " $LIBOBJS " in
9749 *" getcwd.$ac_objext "* ) ;;
9750 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
9751 ;;
9752 esac
9753
9754 fi
9755
9756 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
9757 if test "x$ac_cv_func_memset" = xyes; then :
9758 $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
9759
9760 else
9761 case " $LIBOBJS " in
9762 *" memset.$ac_objext "* ) ;;
9763 *) LIBOBJS="$LIBOBJS memset.$ac_objext"
9764 ;;
9765 esac
9766
9767 fi
9768
9769
9770 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9771 if test "x$ac_cv_func_strcasecmp" = xyes; then :
9772 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
9773
9774 else
9775 case " $LIBOBJS " in
9776 *" strcasecmp.$ac_objext "* ) ;;
9777 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
9778 ;;
9779 esac
9780
9781 fi
9782
9783 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
9784 if test "x$ac_cv_func_strcasestr" = xyes; then :
9785 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
9786
9787 else
9788 case " $LIBOBJS " in
9789 *" strcasestr.$ac_objext "* ) ;;
9790 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
9791 ;;
9792 esac
9793
9794 fi
9795
9796 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9797 if test "x$ac_cv_func_strerror" = xyes; then :
9798 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
9799
9800 else
9801 case " $LIBOBJS " in
9802 *" strerror.$ac_objext "* ) ;;
9803 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
9804 ;;
9805 esac
9806
9807 fi
9808
9809 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9810 if test "x$ac_cv_func_strftime" = xyes; then :
9811 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9812
9813 else
9814 case " $LIBOBJS " in
9815 *" strftime.$ac_objext "* ) ;;
9816 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
9817 ;;
9818 esac
9819
9820 fi
9821
9822 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
9823 if test "x$ac_cv_func_strnlen" = xyes; then :
9824 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
9825
9826 else
9827 case " $LIBOBJS " in
9828 *" strnlen.$ac_objext "* ) ;;
9829 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
9830 ;;
9831 esac
9832
9833 fi
9834
9835 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
9836 if test "x$ac_cv_func_strpbrk" = xyes; then :
9837 $as_echo "#define HAVE_STRPBRK 1" >>confdefs.h
9838
9839 else
9840 case " $LIBOBJS " in
9841 *" strpbrk.$ac_objext "* ) ;;
9842 *) LIBOBJS="$LIBOBJS strpbrk.$ac_objext"
9843 ;;
9844 esac
9845
9846 fi
9847
9848 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
9849 if test "x$ac_cv_func_strstr" = xyes; then :
9850 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
9851
9852 else
9853 case " $LIBOBJS " in
9854 *" strstr.$ac_objext "* ) ;;
9855 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
9856 ;;
9857 esac
9858
9859 fi
9860
9861
9862 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
9863 if test "x$ac_cv_func_strtod" = xyes; then :
9864 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
9865
9866 else
9867 case " $LIBOBJS " in
9868 *" strtod.$ac_objext "* ) ;;
9869 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9870 ;;
9871 esac
9872
9873 fi
9874
9875 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
9876 if test "x$ac_cv_func_strtol" = xyes; then :
9877 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
9878
9879 else
9880 case " $LIBOBJS " in
9881 *" strtol.$ac_objext "* ) ;;
9882 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
9883 ;;
9884 esac
9885
9886 fi
9887
9888 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
9889 if test "x$ac_cv_func_strtoul" = xyes; then :
9890 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
9891
9892 else
9893 case " $LIBOBJS " in
9894 *" strtoul.$ac_objext "* ) ;;
9895 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
9896 ;;
9897 esac
9898
9899 fi
9900
9901 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9902 if test "x$ac_cv_func_strtoll" = xyes; then :
9903 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9904
9905 else
9906 case " $LIBOBJS " in
9907 *" strtoll.$ac_objext "* ) ;;
9908 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext"
9909 ;;
9910 esac
9911
9912 fi
9913
9914 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
9915 if test "x$ac_cv_func_strtoull" = xyes; then :
9916 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
9917
9918 else
9919 case " $LIBOBJS " in
9920 *" strtoull.$ac_objext "* ) ;;
9921 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
9922 ;;
9923 esac
9924
9925 fi
9926
9927 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
9928 if test "x$ac_cv_func_strtoimax" = xyes; then :
9929 $as_echo "#define HAVE_STRTOIMAX 1" >>confdefs.h
9930
9931 else
9932 case " $LIBOBJS " in
9933 *" strtoimax.$ac_objext "* ) ;;
9934 *) LIBOBJS="$LIBOBJS strtoimax.$ac_objext"
9935 ;;
9936 esac
9937
9938 fi
9939
9940 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
9941 if test "x$ac_cv_func_strtoumax" = xyes; then :
9942 $as_echo "#define HAVE_STRTOUMAX 1" >>confdefs.h
9943
9944 else
9945 case " $LIBOBJS " in
9946 *" strtoumax.$ac_objext "* ) ;;
9947 *) LIBOBJS="$LIBOBJS strtoumax.$ac_objext"
9948 ;;
9949 esac
9950
9951 fi
9952
9953
9954 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
9955 if test "x$ac_cv_func_dprintf" = xyes; then :
9956 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
9957
9958 else
9959 case " $LIBOBJS " in
9960 *" dprintf.$ac_objext "* ) ;;
9961 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
9962 ;;
9963 esac
9964
9965 fi
9966
9967
9968 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
9969 if test "x$ac_cv_func_strchrnul" = xyes; then :
9970 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
9971
9972 else
9973 case " $LIBOBJS " in
9974 *" strchrnul.$ac_objext "* ) ;;
9975 *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext"
9976 ;;
9977 esac
9978
9979 fi
9980
9981
9982
9983 ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
9984 "
9985 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
9986 ac_have_decl=1
9987 else
9988 ac_have_decl=0
9989 fi
9990
9991 cat >>confdefs.h <<_ACEOF
9992 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
9993 _ACEOF
9994
9995
9996 ac_fn_c_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
9997 if test "x$ac_cv_have_decl_confstr" = xyes; then :
9998 ac_have_decl=1
9999 else
10000 ac_have_decl=0
10001 fi
10002
10003 cat >>confdefs.h <<_ACEOF
10004 #define HAVE_DECL_CONFSTR $ac_have_decl
10005 _ACEOF
10006
10007 ac_fn_c_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
10008 if test "x$ac_cv_have_decl_printf" = xyes; then :
10009 ac_have_decl=1
10010 else
10011 ac_have_decl=0
10012 fi
10013
10014 cat >>confdefs.h <<_ACEOF
10015 #define HAVE_DECL_PRINTF $ac_have_decl
10016 _ACEOF
10017
10018 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
10019 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
10020 ac_have_decl=1
10021 else
10022 ac_have_decl=0
10023 fi
10024
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_DECL_SBRK $ac_have_decl
10027 _ACEOF
10028
10029 ac_fn_c_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
10030 if test "x$ac_cv_have_decl_setregid" = xyes; then :
10031 ac_have_decl=1
10032 else
10033 ac_have_decl=0
10034 fi
10035
10036 cat >>confdefs.h <<_ACEOF
10037 #define HAVE_DECL_SETREGID $ac_have_decl
10038 _ACEOF
10039
10040 ac_fn_c_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
10041 if test "x$ac_cv_have_decl_strcpy" = xyes; then :
10042 ac_have_decl=1
10043 else
10044 ac_have_decl=0
10045 fi
10046
10047 cat >>confdefs.h <<_ACEOF
10048 #define HAVE_DECL_STRCPY $ac_have_decl
10049 _ACEOF
10050
10051 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
10052 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
10053 ac_have_decl=1
10054 else
10055 ac_have_decl=0
10056 fi
10057
10058 cat >>confdefs.h <<_ACEOF
10059 #define HAVE_DECL_STRSIGNAL $ac_have_decl
10060 _ACEOF
10061
10062
10063 ac_fn_c_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
10064 if test "x$ac_cv_have_decl_strtold" = xyes; then :
10065 ac_have_decl=1
10066 else
10067 ac_have_decl=0
10068 fi
10069
10070 cat >>confdefs.h <<_ACEOF
10071 #define HAVE_DECL_STRTOLD $ac_have_decl
10072 _ACEOF
10073 if test $ac_have_decl = 1; then :
10074
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
10076 $as_echo_n "checking for broken strtold... " >&6; }
10077 if ${bash_cv_strtold_broken+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 #include <stdlib.h>
10083 int
10084 main ()
10085 {
10086 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092 bash_cv_strtold_broken=no
10093 else
10094 bash_cv_strtold_broken=yes
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097
10098
10099 fi
10100
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
10102 $as_echo "$bash_cv_strtold_broken" >&6; }
10103 if test "$bash_cv_strtold_broken" = "yes" ; then
10104 $as_echo "#define STRTOLD_BROKEN 1" >>confdefs.h
10105
10106 fi
10107
10108 fi
10109
10110
10111
10112
10113
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
10115 $as_echo_n "checking for declaration of strtoimax... " >&6; }
10116 if ${bash_cv_decl_strtoimax+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121
10122 #if STDC_HEADERS
10123 # include <stdlib.h>
10124 #endif
10125 #if HAVE_INTTYPES_H
10126 # include <inttypes.h>
10127 #endif
10128
10129 int
10130 main ()
10131 {
10132 return !strtoimax;
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"; then :
10138 bash_cv_decl_strtoimax=yes
10139 else
10140 bash_cv_decl_strtoimax=no
10141 fi
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5
10146 $as_echo "$bash_cv_decl_strtoimax" >&6; }
10147 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10148 if test $bash_cv_decl_strtoimax = yes; then
10149 cat >>confdefs.h <<_ACEOF
10150 #define $bash_tr_func 1
10151 _ACEOF
10152
10153 else
10154 cat >>confdefs.h <<_ACEOF
10155 #define $bash_tr_func 0
10156 _ACEOF
10157
10158 fi
10159
10160
10161
10162
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
10164 $as_echo_n "checking for declaration of strtol... " >&6; }
10165 if ${bash_cv_decl_strtol+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170
10171 #if STDC_HEADERS
10172 # include <stdlib.h>
10173 #endif
10174 #if HAVE_INTTYPES_H
10175 # include <inttypes.h>
10176 #endif
10177
10178 int
10179 main ()
10180 {
10181 return !strtol;
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187 bash_cv_decl_strtol=yes
10188 else
10189 bash_cv_decl_strtol=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5
10195 $as_echo "$bash_cv_decl_strtol" >&6; }
10196 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10197 if test $bash_cv_decl_strtol = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define $bash_tr_func 1
10200 _ACEOF
10201
10202 else
10203 cat >>confdefs.h <<_ACEOF
10204 #define $bash_tr_func 0
10205 _ACEOF
10206
10207 fi
10208
10209
10210
10211
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
10213 $as_echo_n "checking for declaration of strtoll... " >&6; }
10214 if ${bash_cv_decl_strtoll+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219
10220 #if STDC_HEADERS
10221 # include <stdlib.h>
10222 #endif
10223 #if HAVE_INTTYPES_H
10224 # include <inttypes.h>
10225 #endif
10226
10227 int
10228 main ()
10229 {
10230 return !strtoll;
10231 ;
10232 return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 bash_cv_decl_strtoll=yes
10237 else
10238 bash_cv_decl_strtoll=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 fi
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5
10244 $as_echo "$bash_cv_decl_strtoll" >&6; }
10245 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10246 if test $bash_cv_decl_strtoll = yes; then
10247 cat >>confdefs.h <<_ACEOF
10248 #define $bash_tr_func 1
10249 _ACEOF
10250
10251 else
10252 cat >>confdefs.h <<_ACEOF
10253 #define $bash_tr_func 0
10254 _ACEOF
10255
10256 fi
10257
10258
10259
10260
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
10262 $as_echo_n "checking for declaration of strtoul... " >&6; }
10263 if ${bash_cv_decl_strtoul+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268
10269 #if STDC_HEADERS
10270 # include <stdlib.h>
10271 #endif
10272 #if HAVE_INTTYPES_H
10273 # include <inttypes.h>
10274 #endif
10275
10276 int
10277 main ()
10278 {
10279 return !strtoul;
10280 ;
10281 return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_link "$LINENO"; then :
10285 bash_cv_decl_strtoul=yes
10286 else
10287 bash_cv_decl_strtoul=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 fi
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5
10293 $as_echo "$bash_cv_decl_strtoul" >&6; }
10294 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10295 if test $bash_cv_decl_strtoul = yes; then
10296 cat >>confdefs.h <<_ACEOF
10297 #define $bash_tr_func 1
10298 _ACEOF
10299
10300 else
10301 cat >>confdefs.h <<_ACEOF
10302 #define $bash_tr_func 0
10303 _ACEOF
10304
10305 fi
10306
10307
10308
10309
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
10311 $as_echo_n "checking for declaration of strtoull... " >&6; }
10312 if ${bash_cv_decl_strtoull+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317
10318 #if STDC_HEADERS
10319 # include <stdlib.h>
10320 #endif
10321 #if HAVE_INTTYPES_H
10322 # include <inttypes.h>
10323 #endif
10324
10325 int
10326 main ()
10327 {
10328 return !strtoull;
10329 ;
10330 return 0;
10331 }
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 bash_cv_decl_strtoull=yes
10335 else
10336 bash_cv_decl_strtoull=no
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10340 fi
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5
10342 $as_echo "$bash_cv_decl_strtoull" >&6; }
10343 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10344 if test $bash_cv_decl_strtoull = yes; then
10345 cat >>confdefs.h <<_ACEOF
10346 #define $bash_tr_func 1
10347 _ACEOF
10348
10349 else
10350 cat >>confdefs.h <<_ACEOF
10351 #define $bash_tr_func 0
10352 _ACEOF
10353
10354 fi
10355
10356
10357
10358
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
10360 $as_echo_n "checking for declaration of strtoumax... " >&6; }
10361 if ${bash_cv_decl_strtoumax+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366
10367 #if STDC_HEADERS
10368 # include <stdlib.h>
10369 #endif
10370 #if HAVE_INTTYPES_H
10371 # include <inttypes.h>
10372 #endif
10373
10374 int
10375 main ()
10376 {
10377 return !strtoumax;
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"; then :
10383 bash_cv_decl_strtoumax=yes
10384 else
10385 bash_cv_decl_strtoumax=no
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5
10391 $as_echo "$bash_cv_decl_strtoumax" >&6; }
10392 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10393 if test $bash_cv_decl_strtoumax = yes; then
10394 cat >>confdefs.h <<_ACEOF
10395 #define $bash_tr_func 1
10396 _ACEOF
10397
10398 else
10399 cat >>confdefs.h <<_ACEOF
10400 #define $bash_tr_func 0
10401 _ACEOF
10402
10403 fi
10404
10405
10406
10407
10408
10409
10410
10411 for ac_func in $ac_func_list
10412 do :
10413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10415 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10416 cat >>confdefs.h <<_ACEOF
10417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10418 _ACEOF
10419
10420 fi
10421 done
10422
10423
10424
10425
10426
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10428 $as_echo_n "checking for working mktime... " >&6; }
10429 if ${ac_cv_func_working_mktime+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 if test "$cross_compiling" = yes; then :
10433 ac_cv_func_working_mktime=no
10434 else
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 /* Test program from Paul Eggert and Tony Leneis. */
10438 #ifdef TIME_WITH_SYS_TIME
10439 # include <sys/time.h>
10440 # include <time.h>
10441 #else
10442 # ifdef HAVE_SYS_TIME_H
10443 # include <sys/time.h>
10444 # else
10445 # include <time.h>
10446 # endif
10447 #endif
10448
10449 #include <limits.h>
10450 #include <stdlib.h>
10451
10452 #ifdef HAVE_UNISTD_H
10453 # include <unistd.h>
10454 #endif
10455
10456 #ifndef HAVE_ALARM
10457 # define alarm(X) /* empty */
10458 #endif
10459
10460 /* Work around redefinition to rpl_putenv by other config tests. */
10461 #undef putenv
10462
10463 static time_t time_t_max;
10464 static time_t time_t_min;
10465
10466 /* Values we'll use to set the TZ environment variable. */
10467 static const char *tz_strings[] = {
10468 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10469 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10470 };
10471 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10472
10473 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10474 Based on a problem report from Andreas Jaeger. */
10475 static int
10476 spring_forward_gap ()
10477 {
10478 /* glibc (up to about 1998-10-07) failed this test. */
10479 struct tm tm;
10480
10481 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10482 instead of "TZ=America/Vancouver" in order to detect the bug even
10483 on systems that don't support the Olson extension, or don't have the
10484 full zoneinfo tables installed. */
10485 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10486
10487 tm.tm_year = 98;
10488 tm.tm_mon = 3;
10489 tm.tm_mday = 5;
10490 tm.tm_hour = 2;
10491 tm.tm_min = 0;
10492 tm.tm_sec = 0;
10493 tm.tm_isdst = -1;
10494 return mktime (&tm) != (time_t) -1;
10495 }
10496
10497 static int
10498 mktime_test1 (time_t now)
10499 {
10500 struct tm *lt;
10501 return ! (lt = localtime (&now)) || mktime (lt) == now;
10502 }
10503
10504 static int
10505 mktime_test (time_t now)
10506 {
10507 return (mktime_test1 (now)
10508 && mktime_test1 ((time_t) (time_t_max - now))
10509 && mktime_test1 ((time_t) (time_t_min + now)));
10510 }
10511
10512 static int
10513 irix_6_4_bug ()
10514 {
10515 /* Based on code from Ariel Faigon. */
10516 struct tm tm;
10517 tm.tm_year = 96;
10518 tm.tm_mon = 3;
10519 tm.tm_mday = 0;
10520 tm.tm_hour = 0;
10521 tm.tm_min = 0;
10522 tm.tm_sec = 0;
10523 tm.tm_isdst = -1;
10524 mktime (&tm);
10525 return tm.tm_mon == 2 && tm.tm_mday == 31;
10526 }
10527
10528 static int
10529 bigtime_test (int j)
10530 {
10531 struct tm tm;
10532 time_t now;
10533 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10534 now = mktime (&tm);
10535 if (now != (time_t) -1)
10536 {
10537 struct tm *lt = localtime (&now);
10538 if (! (lt
10539 && lt->tm_year == tm.tm_year
10540 && lt->tm_mon == tm.tm_mon
10541 && lt->tm_mday == tm.tm_mday
10542 && lt->tm_hour == tm.tm_hour
10543 && lt->tm_min == tm.tm_min
10544 && lt->tm_sec == tm.tm_sec
10545 && lt->tm_yday == tm.tm_yday
10546 && lt->tm_wday == tm.tm_wday
10547 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10548 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10549 return 0;
10550 }
10551 return 1;
10552 }
10553
10554 static int
10555 year_2050_test ()
10556 {
10557 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10558 ignoring leap seconds. */
10559 unsigned long int answer = 2527315200UL;
10560
10561 struct tm tm;
10562 time_t t;
10563 tm.tm_year = 2050 - 1900;
10564 tm.tm_mon = 2 - 1;
10565 tm.tm_mday = 1;
10566 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10567 tm.tm_isdst = -1;
10568
10569 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10570 instead of "TZ=America/Vancouver" in order to detect the bug even
10571 on systems that don't support the Olson extension, or don't have the
10572 full zoneinfo tables installed. */
10573 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10574
10575 t = mktime (&tm);
10576
10577 /* Check that the result is either a failure, or close enough
10578 to the correct answer that we can assume the discrepancy is
10579 due to leap seconds. */
10580 return (t == (time_t) -1
10581 || (0 < t && answer - 120 <= t && t <= answer + 120));
10582 }
10583
10584 int
10585 main ()
10586 {
10587 time_t t, delta;
10588 int i, j;
10589
10590 /* This test makes some buggy mktime implementations loop.
10591 Give up after 60 seconds; a mktime slower than that
10592 isn't worth using anyway. */
10593 alarm (60);
10594
10595 for (;;)
10596 {
10597 t = (time_t_max << 1) + 1;
10598 if (t <= time_t_max)
10599 break;
10600 time_t_max = t;
10601 }
10602 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10603
10604 delta = time_t_max / 997; /* a suitable prime number */
10605 for (i = 0; i < N_STRINGS; i++)
10606 {
10607 if (tz_strings[i])
10608 putenv ((char*) tz_strings[i]);
10609
10610 for (t = 0; t <= time_t_max - delta; t += delta)
10611 if (! mktime_test (t))
10612 return 1;
10613 if (! (mktime_test ((time_t) 1)
10614 && mktime_test ((time_t) (60 * 60))
10615 && mktime_test ((time_t) (60 * 60 * 24))))
10616 return 1;
10617
10618 for (j = 1; ; j <<= 1)
10619 if (! bigtime_test (j))
10620 return 1;
10621 else if (INT_MAX / 2 < j)
10622 break;
10623 if (! bigtime_test (INT_MAX))
10624 return 1;
10625 }
10626 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10627 }
10628 _ACEOF
10629 if ac_fn_c_try_run "$LINENO"; then :
10630 ac_cv_func_working_mktime=yes
10631 else
10632 ac_cv_func_working_mktime=no
10633 fi
10634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10635 conftest.$ac_objext conftest.beam conftest.$ac_ext
10636 fi
10637
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10640 $as_echo "$ac_cv_func_working_mktime" >&6; }
10641 if test $ac_cv_func_working_mktime = no; then
10642 case " $LIBOBJS " in
10643 *" mktime.$ac_objext "* ) ;;
10644 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10645 ;;
10646 esac
10647
10648 fi
10649
10650
10651
10652 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
10653 do :
10654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10657 cat >>confdefs.h <<_ACEOF
10658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10659 _ACEOF
10660
10661 fi
10662
10663 done
10664
10665
10666
10667 for ac_func in getpagesize
10668 do :
10669 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10670 if test "x$ac_cv_func_getpagesize" = xyes; then :
10671 cat >>confdefs.h <<_ACEOF
10672 #define HAVE_GETPAGESIZE 1
10673 _ACEOF
10674
10675 fi
10676 done
10677
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10679 $as_echo_n "checking for working mmap... " >&6; }
10680 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 if test "$cross_compiling" = yes; then :
10684 ac_cv_func_mmap_fixed_mapped=no
10685 else
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 $ac_includes_default
10689 /* malloc might have been renamed as rpl_malloc. */
10690 #undef malloc
10691
10692 /* Thanks to Mike Haertel and Jim Avera for this test.
10693 Here is a matrix of mmap possibilities:
10694 mmap private not fixed
10695 mmap private fixed at somewhere currently unmapped
10696 mmap private fixed at somewhere already mapped
10697 mmap shared not fixed
10698 mmap shared fixed at somewhere currently unmapped
10699 mmap shared fixed at somewhere already mapped
10700 For private mappings, we should verify that changes cannot be read()
10701 back from the file, nor mmap's back from the file at a different
10702 address. (There have been systems where private was not correctly
10703 implemented like the infamous i386 svr4.0, and systems where the
10704 VM page cache was not coherent with the file system buffer cache
10705 like early versions of FreeBSD and possibly contemporary NetBSD.)
10706 For shared mappings, we should conversely verify that changes get
10707 propagated back to all the places they're supposed to be.
10708
10709 Grep wants private fixed already mapped.
10710 The main things grep needs to know about mmap are:
10711 * does it exist and is it safe to write into the mmap'd area
10712 * how to use it (BSD variants) */
10713
10714 #include <fcntl.h>
10715 #include <sys/mman.h>
10716
10717 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10718 char *malloc ();
10719 #endif
10720
10721 /* This mess was copied from the GNU getpagesize.h. */
10722 #ifndef HAVE_GETPAGESIZE
10723 # ifdef _SC_PAGESIZE
10724 # define getpagesize() sysconf(_SC_PAGESIZE)
10725 # else /* no _SC_PAGESIZE */
10726 # ifdef HAVE_SYS_PARAM_H
10727 # include <sys/param.h>
10728 # ifdef EXEC_PAGESIZE
10729 # define getpagesize() EXEC_PAGESIZE
10730 # else /* no EXEC_PAGESIZE */
10731 # ifdef NBPG
10732 # define getpagesize() NBPG * CLSIZE
10733 # ifndef CLSIZE
10734 # define CLSIZE 1
10735 # endif /* no CLSIZE */
10736 # else /* no NBPG */
10737 # ifdef NBPC
10738 # define getpagesize() NBPC
10739 # else /* no NBPC */
10740 # ifdef PAGESIZE
10741 # define getpagesize() PAGESIZE
10742 # endif /* PAGESIZE */
10743 # endif /* no NBPC */
10744 # endif /* no NBPG */
10745 # endif /* no EXEC_PAGESIZE */
10746 # else /* no HAVE_SYS_PARAM_H */
10747 # define getpagesize() 8192 /* punt totally */
10748 # endif /* no HAVE_SYS_PARAM_H */
10749 # endif /* no _SC_PAGESIZE */
10750
10751 #endif /* no HAVE_GETPAGESIZE */
10752
10753 int
10754 main ()
10755 {
10756 char *data, *data2, *data3;
10757 const char *cdata2;
10758 int i, pagesize;
10759 int fd, fd2;
10760
10761 pagesize = getpagesize ();
10762
10763 /* First, make a file with some known garbage in it. */
10764 data = (char *) malloc (pagesize);
10765 if (!data)
10766 return 1;
10767 for (i = 0; i < pagesize; ++i)
10768 *(data + i) = rand ();
10769 umask (0);
10770 fd = creat ("conftest.mmap", 0600);
10771 if (fd < 0)
10772 return 2;
10773 if (write (fd, data, pagesize) != pagesize)
10774 return 3;
10775 close (fd);
10776
10777 /* Next, check that the tail of a page is zero-filled. File must have
10778 non-zero length, otherwise we risk SIGBUS for entire page. */
10779 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10780 if (fd2 < 0)
10781 return 4;
10782 cdata2 = "";
10783 if (write (fd2, cdata2, 1) != 1)
10784 return 5;
10785 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10786 if (data2 == MAP_FAILED)
10787 return 6;
10788 for (i = 0; i < pagesize; ++i)
10789 if (*(data2 + i))
10790 return 7;
10791 close (fd2);
10792 if (munmap (data2, pagesize))
10793 return 8;
10794
10795 /* Next, try to mmap the file at a fixed address which already has
10796 something else allocated at it. If we can, also make sure that
10797 we see the same garbage. */
10798 fd = open ("conftest.mmap", O_RDWR);
10799 if (fd < 0)
10800 return 9;
10801 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10802 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10803 return 10;
10804 for (i = 0; i < pagesize; ++i)
10805 if (*(data + i) != *(data2 + i))
10806 return 11;
10807
10808 /* Finally, make sure that changes to the mapped area do not
10809 percolate back to the file as seen by read(). (This is a bug on
10810 some variants of i386 svr4.0.) */
10811 for (i = 0; i < pagesize; ++i)
10812 *(data2 + i) = *(data2 + i) + 1;
10813 data3 = (char *) malloc (pagesize);
10814 if (!data3)
10815 return 12;
10816 if (read (fd, data3, pagesize) != pagesize)
10817 return 13;
10818 for (i = 0; i < pagesize; ++i)
10819 if (*(data + i) != *(data3 + i))
10820 return 14;
10821 close (fd);
10822 return 0;
10823 }
10824 _ACEOF
10825 if ac_fn_c_try_run "$LINENO"; then :
10826 ac_cv_func_mmap_fixed_mapped=yes
10827 else
10828 ac_cv_func_mmap_fixed_mapped=no
10829 fi
10830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10831 conftest.$ac_objext conftest.beam conftest.$ac_ext
10832 fi
10833
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10836 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10837 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10838
10839 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10840
10841 fi
10842 rm -f conftest.mmap conftest.txt
10843
10844 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
10845 munmap stpcpy strcspn strdup
10846 do :
10847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10849 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10850 cat >>confdefs.h <<_ACEOF
10851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10852 _ACEOF
10853
10854 fi
10855 done
10856
10857
10858 INTL_DEP= INTL_INC= LIBINTL_H=
10859 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
10860 INTL_DEP='${INTL_LIBDIR}/libintl.a'
10861 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
10862 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
10863 fi
10864
10865
10866
10867
10868
10869
10870 for ac_header in wctype.h
10871 do :
10872 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
10873 if test "x$ac_cv_header_wctype_h" = xyes; then :
10874 cat >>confdefs.h <<_ACEOF
10875 #define HAVE_WCTYPE_H 1
10876 _ACEOF
10877
10878 fi
10879
10880 done
10881
10882 for ac_header in wchar.h
10883 do :
10884 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10885 if test "x$ac_cv_header_wchar_h" = xyes; then :
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_WCHAR_H 1
10888 _ACEOF
10889
10890 fi
10891
10892 done
10893
10894 for ac_header in langinfo.h
10895 do :
10896 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
10897 if test "x$ac_cv_header_langinfo_h" = xyes; then :
10898 cat >>confdefs.h <<_ACEOF
10899 #define HAVE_LANGINFO_H 1
10900 _ACEOF
10901
10902 fi
10903
10904 done
10905
10906
10907 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
10908 if test "x$ac_cv_func_mbrlen" = xyes; then :
10909 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
10910
10911 fi
10912
10913 ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
10914 if test "x$ac_cv_func_mbscasecmp" = xyes; then :
10915 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
10916
10917 fi
10918
10919 ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
10920 if test "x$ac_cv_func_mbscmp" = xyes; then :
10921 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
10922
10923 fi
10924
10925 ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
10926 if test "x$ac_cv_func_mbsnrtowcs" = xyes; then :
10927 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
10928
10929 fi
10930
10931 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
10932 if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
10933 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
10934
10935 fi
10936
10937
10938 ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
10939 if test "x$ac_cv_func_mbschr" = xyes; then :
10940 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
10941
10942 else
10943 case " $LIBOBJS " in
10944 *" mbschr.$ac_objext "* ) ;;
10945 *) LIBOBJS="$LIBOBJS mbschr.$ac_objext"
10946 ;;
10947 esac
10948
10949 fi
10950
10951
10952
10953 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
10954 if test "x$ac_cv_func_wcrtomb" = xyes; then :
10955 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
10956
10957 fi
10958
10959 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
10960 if test "x$ac_cv_func_wcscoll" = xyes; then :
10961 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
10962
10963 fi
10964
10965 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
10966 if test "x$ac_cv_func_wcsdup" = xyes; then :
10967 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
10968
10969 fi
10970
10971 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
10972 if test "x$ac_cv_func_wcwidth" = xyes; then :
10973 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
10974
10975 fi
10976
10977 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
10978 if test "x$ac_cv_func_wctype" = xyes; then :
10979 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
10980
10981 fi
10982
10983
10984 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
10985 if test "x$ac_cv_func_wcswidth" = xyes; then :
10986 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
10987
10988 else
10989 case " $LIBOBJS " in
10990 *" wcswidth.$ac_objext "* ) ;;
10991 *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext"
10992 ;;
10993 esac
10994
10995 fi
10996
10997
10998
10999
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
11001 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
11002 if ${ac_cv_func_mbrtowc+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 #include <wchar.h>
11008 int
11009 main ()
11010 {
11011 wchar_t wc;
11012 char const s[] = "";
11013 size_t n = 1;
11014 mbstate_t state;
11015 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11016 ;
11017 return 0;
11018 }
11019 _ACEOF
11020 if ac_fn_c_try_link "$LINENO"; then :
11021 ac_cv_func_mbrtowc=yes
11022 else
11023 ac_cv_func_mbrtowc=no
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027 fi
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
11029 $as_echo "$ac_cv_func_mbrtowc" >&6; }
11030 if test $ac_cv_func_mbrtowc = yes; then
11031
11032 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
11033
11034 fi
11035
11036 if test $ac_cv_func_mbrtowc = yes; then
11037 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11038
11039 fi
11040
11041 for ac_func in iswlower iswupper towlower towupper iswctype
11042 do :
11043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11045 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11046 cat >>confdefs.h <<_ACEOF
11047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 _ACEOF
11049
11050 fi
11051 done
11052
11053
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11055 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11056 if ${bash_cv_langinfo_codeset+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 #include <langinfo.h>
11062 int
11063 main ()
11064 {
11065 char* cs = nl_langinfo(CODESET);
11066 ;
11067 return 0;
11068 }
11069 _ACEOF
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 bash_cv_langinfo_codeset=yes
11072 else
11073 bash_cv_langinfo_codeset=no
11074 fi
11075 rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
11079 $as_echo "$bash_cv_langinfo_codeset" >&6; }
11080 if test $bash_cv_langinfo_codeset = yes; then
11081 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11082
11083 fi
11084
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
11086 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
11087 if ${bash_cv_type_wchar_t+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 #include <wchar.h>
11093
11094 int
11095 main ()
11096 {
11097
11098 wchar_t foo;
11099 foo = 0;
11100
11101 ;
11102 return 0;
11103 }
11104 _ACEOF
11105 if ac_fn_c_try_compile "$LINENO"; then :
11106 bash_cv_type_wchar_t=yes
11107 else
11108 bash_cv_type_wchar_t=no
11109 fi
11110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
11113 $as_echo "$bash_cv_type_wchar_t" >&6; }
11114 if test $bash_cv_type_wchar_t = yes; then
11115
11116 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11117
11118 fi
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
11121 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
11122 if ${bash_cv_type_wctype_t+:} false; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11127 #include <wctype.h>
11128 int
11129 main ()
11130 {
11131
11132 wctype_t foo;
11133 foo = 0;
11134
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 if ac_fn_c_try_compile "$LINENO"; then :
11140 bash_cv_type_wctype_t=yes
11141 else
11142 bash_cv_type_wctype_t=no
11143 fi
11144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11145 fi
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
11147 $as_echo "$bash_cv_type_wctype_t" >&6; }
11148 if test $bash_cv_type_wctype_t = yes; then
11149
11150 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
11151
11152 fi
11153
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
11155 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
11156 if ${bash_cv_type_wint_t+:} false; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 #include <wctype.h>
11162 int
11163 main ()
11164 {
11165
11166 wint_t foo;
11167 foo = 0;
11168
11169 ;
11170 return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_compile "$LINENO"; then :
11174 bash_cv_type_wint_t=yes
11175 else
11176 bash_cv_type_wint_t=no
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
11181 $as_echo "$bash_cv_type_wint_t" >&6; }
11182 if test $bash_cv_type_wint_t = yes; then
11183
11184 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11185
11186 fi
11187
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
11189 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
11190 if ${bash_cv_wcwidth_broken+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test "$cross_compiling" = yes; then :
11194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11196 as_fn_error $? "cannot run test program while cross compiling
11197 See \`config.log' for more details" "$LINENO" 5; }
11198 else
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11201
11202 #include <unistd.h>
11203 #include <stdlib.h>
11204 #include <stdio.h>
11205
11206 #include <locale.h>
11207 #include <wchar.h>
11208
11209 main(c, v)
11210 int c;
11211 char **v;
11212 {
11213 int w;
11214
11215 setlocale(LC_ALL, "en_US.UTF-8");
11216 w = wcwidth (0x0301);
11217 exit (w == 0); /* exit 0 if wcwidth broken */
11218 }
11219
11220 _ACEOF
11221 if ac_fn_c_try_run "$LINENO"; then :
11222 bash_cv_wcwidth_broken=yes
11223 else
11224 bash_cv_wcwdith_broken=no
11225 fi
11226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11227 conftest.$ac_objext conftest.beam conftest.$ac_ext
11228 fi
11229
11230 fi
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
11232 $as_echo "$bash_cv_wcwidth_broken" >&6; }
11233 if test $bash_cv_wcwidth_broken = yes; then
11234
11235 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
11236
11237 fi
11238
11239 if test "$am_cv_func_iconv" = yes; then
11240 OLDLIBS="$LIBS"
11241 LIBS="$LIBS $LIBICONV"
11242 for ac_func in locale_charset
11243 do :
11244 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
11245 if test "x$ac_cv_func_locale_charset" = xyes; then :
11246 cat >>confdefs.h <<_ACEOF
11247 #define HAVE_LOCALE_CHARSET 1
11248 _ACEOF
11249
11250 fi
11251 done
11252
11253 LIBS="$OLDLIBS"
11254 fi
11255
11256
11257
11258 if test "$opt_static_link" != yes; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11260 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11261 if ${ac_cv_lib_dl_dlopen+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-ldl $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char dlopen ();
11276 int
11277 main ()
11278 {
11279 return dlopen ();
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_dl_dlopen=yes
11286 else
11287 ac_cv_lib_dl_dlopen=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11294 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11295 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11296 cat >>confdefs.h <<_ACEOF
11297 #define HAVE_LIBDL 1
11298 _ACEOF
11299
11300 LIBS="-ldl $LIBS"
11301
11302 fi
11303
11304 for ac_func in dlopen dlclose dlsym
11305 do :
11306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11309 cat >>confdefs.h <<_ACEOF
11310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11311 _ACEOF
11312
11313 fi
11314 done
11315
11316 fi
11317
11318 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11319 /* NetBSD declares sys_siglist in unistd.h. */
11320 #ifdef HAVE_UNISTD_H
11321 # include <unistd.h>
11322 #endif
11323
11324 "
11325 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
11326 ac_have_decl=1
11327 else
11328 ac_have_decl=0
11329 fi
11330
11331 cat >>confdefs.h <<_ACEOF
11332 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11333 _ACEOF
11334
11335
11336
11337 if test "$ac_cv_func_inet_aton" != 'yes'; then
11338
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11340 $as_echo_n "checking for inet_aton... " >&6; }
11341 if ${bash_cv_func_inet_aton+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346
11347 #include <sys/types.h>
11348 #include <netinet/in.h>
11349 #include <arpa/inet.h>
11350 struct in_addr ap;
11351 int
11352 main ()
11353 {
11354 inet_aton("127.0.0.1", &ap);
11355 ;
11356 return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 bash_cv_func_inet_aton=yes
11361 else
11362 bash_cv_func_inet_aton=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
11368 $as_echo "$bash_cv_func_inet_aton" >&6; }
11369 if test $bash_cv_func_inet_aton = yes; then
11370 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11371
11372 else
11373 case " $LIBOBJS " in
11374 *" inet_aton.$ac_objext "* ) ;;
11375 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
11376 ;;
11377 esac
11378
11379 fi
11380
11381 fi
11382
11383 case "$host_os" in
11384 irix4*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
11385 $as_echo_n "checking for getpwent in -lsun... " >&6; }
11386 if ${ac_cv_lib_sun_getpwent+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-lsun $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char getpwent ();
11401 int
11402 main ()
11403 {
11404 return getpwent ();
11405 ;
11406 return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 ac_cv_lib_sun_getpwent=yes
11411 else
11412 ac_cv_lib_sun_getpwent=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
11419 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
11420 if test "x$ac_cv_lib_sun_getpwent" = xyes; then :
11421 cat >>confdefs.h <<_ACEOF
11422 #define HAVE_LIBSUN 1
11423 _ACEOF
11424
11425 LIBS="-lsun $LIBS"
11426
11427 fi
11428 ;;
11429 esac
11430
11431 if test "$ac_cv_func_getpeername" = no; then
11432
11433 if test "X$bash_cv_have_socklib" = "X"; then
11434 _bash_needmsg=
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
11437 $as_echo_n "checking for socket library... " >&6; }
11438 _bash_needmsg=yes
11439 fi
11440 if ${bash_cv_have_socklib+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
11444 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
11445 if ${ac_cv_lib_socket_getpeername+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_check_lib_save_LIBS=$LIBS
11449 LIBS="-lsocket -lnsl $LIBS"
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11452
11453 /* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char getpeername ();
11460 int
11461 main ()
11462 {
11463 return getpeername ();
11464 ;
11465 return 0;
11466 }
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"; then :
11469 ac_cv_lib_socket_getpeername=yes
11470 else
11471 ac_cv_lib_socket_getpeername=no
11472 fi
11473 rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LIBS=$ac_check_lib_save_LIBS
11476 fi
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
11478 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
11479 if test "x$ac_cv_lib_socket_getpeername" = xyes; then :
11480 bash_cv_have_socklib=yes
11481 else
11482 bash_cv_have_socklib=no
11483 fi
11484
11485 fi
11486
11487 if test "X$_bash_needmsg" = Xyes; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
11489 $as_echo "$bash_cv_have_socklib" >&6; }
11490 _bash_needmsg=
11491 fi
11492 if test $bash_cv_have_socklib = yes; then
11493 # check for libnsl, add it to LIBS if present
11494 if test "X$bash_cv_have_libnsl" = "X"; then
11495 _bash_needmsg=
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
11498 $as_echo_n "checking for libnsl... " >&6; }
11499 _bash_needmsg=yes
11500 fi
11501 if ${bash_cv_have_libnsl+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
11505 $as_echo_n "checking for t_open in -lnsl... " >&6; }
11506 if ${ac_cv_lib_nsl_t_open+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-lnsl $LIBS"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char t_open ();
11521 int
11522 main ()
11523 {
11524 return t_open ();
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_nsl_t_open=yes
11531 else
11532 ac_cv_lib_nsl_t_open=no
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_lib_save_LIBS
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
11539 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
11540 if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
11541 bash_cv_have_libnsl=yes
11542 else
11543 bash_cv_have_libnsl=no
11544 fi
11545
11546 fi
11547
11548 if test "X$_bash_needmsg" = Xyes; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
11550 $as_echo "$bash_cv_have_libnsl" >&6; }
11551 _bash_needmsg=
11552 fi
11553 if test $bash_cv_have_libnsl = yes; then
11554 LIBS="-lsocket -lnsl $LIBS"
11555 else
11556 LIBS="-lsocket $LIBS"
11557 fi
11558 $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
11559
11560 $as_echo "#define HAVE_GETPEERNAME 1" >>confdefs.h
11561
11562 fi
11563
11564 fi
11565 if test "$ac_cv_func_gethostbyname" = no; then
11566 if test "X$bash_cv_have_gethostbyname" = "X"; then
11567 _bash_needmsg=yes
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11570 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11571 _bash_needmsg=
11572 fi
11573 if ${bash_cv_have_gethostbyname+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <netdb.h>
11579 int
11580 main ()
11581 {
11582 struct hostent *hp;
11583 hp = gethostbyname("localhost");
11584
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 bash_cv_have_gethostbyname=yes
11591 else
11592 bash_cv_have_gethostbyname=no
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596
11597 fi
11598
11599 if test "X$_bash_needmsg" = Xyes; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11601 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11602 fi
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
11604 $as_echo "$bash_cv_have_gethostbyname" >&6; }
11605 if test "$bash_cv_have_gethostbyname" = yes; then
11606 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
11607
11608 fi
11609
11610 fi
11611
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11613 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11614 if ${ac_cv_type_uid_t+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619 #include <sys/types.h>
11620
11621 _ACEOF
11622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11623 $EGREP "uid_t" >/dev/null 2>&1; then :
11624 ac_cv_type_uid_t=yes
11625 else
11626 ac_cv_type_uid_t=no
11627 fi
11628 rm -f conftest*
11629
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11632 $as_echo "$ac_cv_type_uid_t" >&6; }
11633 if test $ac_cv_type_uid_t = no; then
11634
11635 $as_echo "#define uid_t int" >>confdefs.h
11636
11637
11638 $as_echo "#define gid_t int" >>confdefs.h
11639
11640 fi
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11643 $as_echo_n "checking type of array argument to getgroups... " >&6; }
11644 if ${ac_cv_type_getgroups+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test "$cross_compiling" = yes; then :
11648 ac_cv_type_getgroups=cross
11649 else
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 /* Thanks to Mike Rendell for this test. */
11653 $ac_includes_default
11654 #define NGID 256
11655 #undef MAX
11656 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11657
11658 int
11659 main ()
11660 {
11661 gid_t gidset[NGID];
11662 int i, n;
11663 union { gid_t gval; long int lval; } val;
11664
11665 val.lval = -1;
11666 for (i = 0; i < NGID; i++)
11667 gidset[i] = val.gval;
11668 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11669 gidset);
11670 /* Exit non-zero if getgroups seems to require an array of ints. This
11671 happens when gid_t is short int but getgroups modifies an array
11672 of ints. */
11673 return n > 0 && gidset[n] != val.gval;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_run "$LINENO"; then :
11677 ac_cv_type_getgroups=gid_t
11678 else
11679 ac_cv_type_getgroups=int
11680 fi
11681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11682 conftest.$ac_objext conftest.beam conftest.$ac_ext
11683 fi
11684
11685 if test $ac_cv_type_getgroups = cross; then
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11688 #include <unistd.h>
11689
11690 _ACEOF
11691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11692 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
11693 ac_cv_type_getgroups=gid_t
11694 else
11695 ac_cv_type_getgroups=int
11696 fi
11697 rm -f conftest*
11698
11699 fi
11700 fi
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11702 $as_echo "$ac_cv_type_getgroups" >&6; }
11703
11704 cat >>confdefs.h <<_ACEOF
11705 #define GETGROUPS_T $ac_cv_type_getgroups
11706 _ACEOF
11707
11708
11709 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11710 if test "x$ac_cv_type_off_t" = xyes; then :
11711
11712 else
11713
11714 cat >>confdefs.h <<_ACEOF
11715 #define off_t long int
11716 _ACEOF
11717
11718 fi
11719
11720 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11721 if test "x$ac_cv_type_mode_t" = xyes; then :
11722
11723 else
11724
11725 cat >>confdefs.h <<_ACEOF
11726 #define mode_t int
11727 _ACEOF
11728
11729 fi
11730
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11732 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11733 if ${ac_cv_type_uid_t+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11738 #include <sys/types.h>
11739
11740 _ACEOF
11741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11742 $EGREP "uid_t" >/dev/null 2>&1; then :
11743 ac_cv_type_uid_t=yes
11744 else
11745 ac_cv_type_uid_t=no
11746 fi
11747 rm -f conftest*
11748
11749 fi
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11751 $as_echo "$ac_cv_type_uid_t" >&6; }
11752 if test $ac_cv_type_uid_t = no; then
11753
11754 $as_echo "#define uid_t int" >>confdefs.h
11755
11756
11757 $as_echo "#define gid_t int" >>confdefs.h
11758
11759 fi
11760
11761 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11762 if test "x$ac_cv_type_pid_t" = xyes; then :
11763
11764 else
11765
11766 cat >>confdefs.h <<_ACEOF
11767 #define pid_t int
11768 _ACEOF
11769
11770 fi
11771
11772 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11773 if test "x$ac_cv_type_size_t" = xyes; then :
11774
11775 else
11776
11777 cat >>confdefs.h <<_ACEOF
11778 #define size_t unsigned int
11779 _ACEOF
11780
11781 fi
11782
11783 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11784 if test "x$ac_cv_type_ssize_t" = xyes; then :
11785
11786 else
11787
11788 cat >>confdefs.h <<_ACEOF
11789 #define ssize_t int
11790 _ACEOF
11791
11792 fi
11793
11794 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
11795 if test "x$ac_cv_type_time_t" = xyes; then :
11796
11797 else
11798
11799 cat >>confdefs.h <<_ACEOF
11800 #define time_t long
11801 _ACEOF
11802
11803 fi
11804
11805
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
11808 $as_echo_n "checking for long long... " >&6; }
11809 if ${bash_cv_type_long_long+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814
11815 long long ll = 1; int i = 63;
11816 int
11817 main ()
11818 {
11819
11820 long long llm = (long long) -1;
11821 return ll << i | ll >> i | llm / ll | llm % ll;
11822
11823 ;
11824 return 0;
11825 }
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11828 bash_cv_type_long_long='long long'
11829 else
11830 bash_cv_type_long_long='long'
11831 fi
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5
11836 $as_echo "$bash_cv_type_long_long" >&6; }
11837 if test "$bash_cv_type_long_long" = 'long long'; then
11838 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
11839
11840 fi
11841
11842
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
11844 $as_echo_n "checking for unsigned long long... " >&6; }
11845 if ${bash_cv_type_unsigned_long_long+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850
11851 unsigned long long ull = 1; int i = 63;
11852 int
11853 main ()
11854 {
11855
11856 unsigned long long ullmax = (unsigned long long) -1;
11857 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11858
11859 ;
11860 return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_c_try_link "$LINENO"; then :
11864 bash_cv_type_unsigned_long_long='unsigned long long'
11865 else
11866 bash_cv_type_unsigned_long_long='unsigned long'
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5
11872 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
11873 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
11874 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
11875
11876 fi
11877
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11880 $as_echo_n "checking return type of signal handlers... " >&6; }
11881 if ${ac_cv_type_signal+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886 #include <sys/types.h>
11887 #include <signal.h>
11888
11889 int
11890 main ()
11891 {
11892 return *(signal (0, 0)) (0) == 1;
11893 ;
11894 return 0;
11895 }
11896 _ACEOF
11897 if ac_fn_c_try_compile "$LINENO"; then :
11898 ac_cv_type_signal=int
11899 else
11900 ac_cv_type_signal=void
11901 fi
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11905 $as_echo "$ac_cv_type_signal" >&6; }
11906
11907 cat >>confdefs.h <<_ACEOF
11908 #define RETSIGTYPE $ac_cv_type_signal
11909 _ACEOF
11910
11911
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
11913 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
11914 if ${ac_cv_have_sig_atomic_t+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919
11920 #include <signal.h>
11921
11922 int
11923 main ()
11924 {
11925 sig_atomic_t x;
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 if ac_fn_c_try_link "$LINENO"; then :
11931 ac_cv_have_sig_atomic_t=yes
11932 else
11933 ac_cv_have_sig_atomic_t=no
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
11939 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
11940 if test "$ac_cv_have_sig_atomic_t" = "no"
11941 then
11942 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
11943 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
11944
11945 else
11946
11947 cat >>confdefs.h <<_ACEOF
11948 #define sig_atomic_t int
11949 _ACEOF
11950
11951 fi
11952
11953 fi
11954
11955
11956 # The cast to long int works around a bug in the HP C Compiler
11957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11959 # This bug is HP SR number 8606223364.
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11961 $as_echo_n "checking size of char... " >&6; }
11962 if ${ac_cv_sizeof_char+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11966
11967 else
11968 if test "$ac_cv_type_char" = yes; then
11969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11971 as_fn_error 77 "cannot compute sizeof (char)
11972 See \`config.log' for more details" "$LINENO" 5; }
11973 else
11974 ac_cv_sizeof_char=0
11975 fi
11976 fi
11977
11978 fi
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11980 $as_echo "$ac_cv_sizeof_char" >&6; }
11981
11982
11983
11984 cat >>confdefs.h <<_ACEOF
11985 #define SIZEOF_CHAR $ac_cv_sizeof_char
11986 _ACEOF
11987
11988
11989 # The cast to long int works around a bug in the HP C Compiler
11990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11992 # This bug is HP SR number 8606223364.
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11994 $as_echo_n "checking size of short... " >&6; }
11995 if ${ac_cv_sizeof_short+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11999
12000 else
12001 if test "$ac_cv_type_short" = yes; then
12002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12004 as_fn_error 77 "cannot compute sizeof (short)
12005 See \`config.log' for more details" "$LINENO" 5; }
12006 else
12007 ac_cv_sizeof_short=0
12008 fi
12009 fi
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12013 $as_echo "$ac_cv_sizeof_short" >&6; }
12014
12015
12016
12017 cat >>confdefs.h <<_ACEOF
12018 #define SIZEOF_SHORT $ac_cv_sizeof_short
12019 _ACEOF
12020
12021
12022 # The cast to long int works around a bug in the HP C Compiler
12023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12025 # This bug is HP SR number 8606223364.
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12027 $as_echo_n "checking size of int... " >&6; }
12028 if ${ac_cv_sizeof_int+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12032
12033 else
12034 if test "$ac_cv_type_int" = yes; then
12035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12037 as_fn_error 77 "cannot compute sizeof (int)
12038 See \`config.log' for more details" "$LINENO" 5; }
12039 else
12040 ac_cv_sizeof_int=0
12041 fi
12042 fi
12043
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12046 $as_echo "$ac_cv_sizeof_int" >&6; }
12047
12048
12049
12050 cat >>confdefs.h <<_ACEOF
12051 #define SIZEOF_INT $ac_cv_sizeof_int
12052 _ACEOF
12053
12054
12055 # The cast to long int works around a bug in the HP C Compiler
12056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12058 # This bug is HP SR number 8606223364.
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12060 $as_echo_n "checking size of long... " >&6; }
12061 if ${ac_cv_sizeof_long+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12065
12066 else
12067 if test "$ac_cv_type_long" = yes; then
12068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12070 as_fn_error 77 "cannot compute sizeof (long)
12071 See \`config.log' for more details" "$LINENO" 5; }
12072 else
12073 ac_cv_sizeof_long=0
12074 fi
12075 fi
12076
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12079 $as_echo "$ac_cv_sizeof_long" >&6; }
12080
12081
12082
12083 cat >>confdefs.h <<_ACEOF
12084 #define SIZEOF_LONG $ac_cv_sizeof_long
12085 _ACEOF
12086
12087
12088 # The cast to long int works around a bug in the HP C Compiler
12089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12091 # This bug is HP SR number 8606223364.
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
12093 $as_echo_n "checking size of char *... " >&6; }
12094 if ${ac_cv_sizeof_char_p+:} false; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
12098
12099 else
12100 if test "$ac_cv_type_char_p" = yes; then
12101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12103 as_fn_error 77 "cannot compute sizeof (char *)
12104 See \`config.log' for more details" "$LINENO" 5; }
12105 else
12106 ac_cv_sizeof_char_p=0
12107 fi
12108 fi
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
12112 $as_echo "$ac_cv_sizeof_char_p" >&6; }
12113
12114
12115
12116 cat >>confdefs.h <<_ACEOF
12117 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
12118 _ACEOF
12119
12120
12121 # The cast to long int works around a bug in the HP C Compiler
12122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12124 # This bug is HP SR number 8606223364.
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12126 $as_echo_n "checking size of double... " >&6; }
12127 if ${ac_cv_sizeof_double+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12131
12132 else
12133 if test "$ac_cv_type_double" = yes; then
12134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12136 as_fn_error 77 "cannot compute sizeof (double)
12137 See \`config.log' for more details" "$LINENO" 5; }
12138 else
12139 ac_cv_sizeof_double=0
12140 fi
12141 fi
12142
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12145 $as_echo "$ac_cv_sizeof_double" >&6; }
12146
12147
12148
12149 cat >>confdefs.h <<_ACEOF
12150 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12151 _ACEOF
12152
12153
12154 # The cast to long int works around a bug in the HP C Compiler
12155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12157 # This bug is HP SR number 8606223364.
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12159 $as_echo_n "checking size of long long... " >&6; }
12160 if ${ac_cv_sizeof_long_long+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12164
12165 else
12166 if test "$ac_cv_type_long_long" = yes; then
12167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12169 as_fn_error 77 "cannot compute sizeof (long long)
12170 See \`config.log' for more details" "$LINENO" 5; }
12171 else
12172 ac_cv_sizeof_long_long=0
12173 fi
12174 fi
12175
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12178 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12179
12180
12181
12182 cat >>confdefs.h <<_ACEOF
12183 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12184 _ACEOF
12185
12186
12187
12188 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12189 if test "x$ac_cv_type_u_int" = xyes; then :
12190
12191 else
12192
12193 cat >>confdefs.h <<_ACEOF
12194 #define u_int unsigned int
12195 _ACEOF
12196
12197 fi
12198
12199 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12200 if test "x$ac_cv_type_u_long" = xyes; then :
12201
12202 else
12203
12204 cat >>confdefs.h <<_ACEOF
12205 #define u_long unsigned long
12206 _ACEOF
12207
12208 fi
12209
12210
12211
12212 if test "$ac_cv_sizeof_short" = 2; then
12213 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12214 if test "x$ac_cv_type_bits16_t" = xyes; then :
12215
12216 else
12217
12218 cat >>confdefs.h <<_ACEOF
12219 #define bits16_t short
12220 _ACEOF
12221
12222 fi
12223
12224 elif test "$ac_cv_sizeof_char" = 2; then
12225 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12226 if test "x$ac_cv_type_bits16_t" = xyes; then :
12227
12228 else
12229
12230 cat >>confdefs.h <<_ACEOF
12231 #define bits16_t char
12232 _ACEOF
12233
12234 fi
12235
12236 else
12237 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12238 if test "x$ac_cv_type_bits16_t" = xyes; then :
12239
12240 else
12241
12242 cat >>confdefs.h <<_ACEOF
12243 #define bits16_t short
12244 _ACEOF
12245
12246 fi
12247
12248 fi
12249
12250
12251 if test "$ac_cv_sizeof_short" = 2; then
12252 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12253 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12254
12255 else
12256
12257 cat >>confdefs.h <<_ACEOF
12258 #define u_bits16_t unsigned short
12259 _ACEOF
12260
12261 fi
12262
12263 elif test "$ac_cv_sizeof_char" = 2; then
12264 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12265 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12266
12267 else
12268
12269 cat >>confdefs.h <<_ACEOF
12270 #define u_bits16_t unsigned char
12271 _ACEOF
12272
12273 fi
12274
12275 else
12276 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12277 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
12278
12279 else
12280
12281 cat >>confdefs.h <<_ACEOF
12282 #define u_bits16_t unsigned short
12283 _ACEOF
12284
12285 fi
12286
12287 fi
12288
12289
12290 if test "$ac_cv_sizeof_int" = 4; then
12291 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12292 if test "x$ac_cv_type_bits32_t" = xyes; then :
12293
12294 else
12295
12296 cat >>confdefs.h <<_ACEOF
12297 #define bits32_t int
12298 _ACEOF
12299
12300 fi
12301
12302 elif test "$ac_cv_sizeof_long" = 4; then
12303 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12304 if test "x$ac_cv_type_bits32_t" = xyes; then :
12305
12306 else
12307
12308 cat >>confdefs.h <<_ACEOF
12309 #define bits32_t long
12310 _ACEOF
12311
12312 fi
12313
12314 else
12315 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12316 if test "x$ac_cv_type_bits32_t" = xyes; then :
12317
12318 else
12319
12320 cat >>confdefs.h <<_ACEOF
12321 #define bits32_t int
12322 _ACEOF
12323
12324 fi
12325
12326 fi
12327
12328
12329 if test "$ac_cv_sizeof_int" = 4; then
12330 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12331 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12332
12333 else
12334
12335 cat >>confdefs.h <<_ACEOF
12336 #define u_bits32_t unsigned int
12337 _ACEOF
12338
12339 fi
12340
12341 elif test "$ac_cv_sizeof_long" = 4; then
12342 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12343 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12344
12345 else
12346
12347 cat >>confdefs.h <<_ACEOF
12348 #define u_bits32_t unsigned long
12349 _ACEOF
12350
12351 fi
12352
12353 else
12354 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12355 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
12356
12357 else
12358
12359 cat >>confdefs.h <<_ACEOF
12360 #define u_bits32_t unsigned int
12361 _ACEOF
12362
12363 fi
12364
12365 fi
12366
12367
12368 if test "$ac_cv_sizeof_char_p" = 8; then
12369 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12370 if test "x$ac_cv_type_bits64_t" = xyes; then :
12371
12372 else
12373
12374 cat >>confdefs.h <<_ACEOF
12375 #define bits64_t char *
12376 _ACEOF
12377
12378 fi
12379
12380 elif test "$ac_cv_sizeof_double" = 8; then
12381 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12382 if test "x$ac_cv_type_bits64_t" = xyes; then :
12383
12384 else
12385
12386 cat >>confdefs.h <<_ACEOF
12387 #define bits64_t double
12388 _ACEOF
12389
12390 fi
12391
12392 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
12393 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12394 if test "x$ac_cv_type_bits64_t" = xyes; then :
12395
12396 else
12397
12398 cat >>confdefs.h <<_ACEOF
12399 #define bits64_t long long
12400 _ACEOF
12401
12402 fi
12403
12404 elif test "$ac_cv_sizeof_long" = 8; then
12405 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12406 if test "x$ac_cv_type_bits64_t" = xyes; then :
12407
12408 else
12409
12410 cat >>confdefs.h <<_ACEOF
12411 #define bits64_t long
12412 _ACEOF
12413
12414 fi
12415
12416 else
12417 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12418 if test "x$ac_cv_type_bits64_t" = xyes; then :
12419
12420 else
12421
12422 cat >>confdefs.h <<_ACEOF
12423 #define bits64_t double
12424 _ACEOF
12425
12426 fi
12427
12428 fi
12429
12430
12431
12432 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
12433 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12434 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12435
12436 else
12437
12438 cat >>confdefs.h <<_ACEOF
12439 #define ptrdiff_t int
12440 _ACEOF
12441
12442 fi
12443
12444 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
12445 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12446 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12447
12448 else
12449
12450 cat >>confdefs.h <<_ACEOF
12451 #define ptrdiff_t long
12452 _ACEOF
12453
12454 fi
12455
12456 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
12457 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12458 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12459
12460 else
12461
12462 cat >>confdefs.h <<_ACEOF
12463 #define ptrdiff_t long long
12464 _ACEOF
12465
12466 fi
12467
12468 else
12469 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12470 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
12471
12472 else
12473
12474 cat >>confdefs.h <<_ACEOF
12475 #define ptrdiff_t int
12476 _ACEOF
12477
12478 fi
12479
12480 fi
12481
12482
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12484 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12485 if ${ac_cv_header_stat_broken+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12490 #include <sys/types.h>
12491 #include <sys/stat.h>
12492
12493 #if defined S_ISBLK && defined S_IFDIR
12494 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12495 #endif
12496
12497 #if defined S_ISBLK && defined S_IFCHR
12498 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12499 #endif
12500
12501 #if defined S_ISLNK && defined S_IFREG
12502 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12503 #endif
12504
12505 #if defined S_ISSOCK && defined S_IFREG
12506 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12507 #endif
12508
12509 _ACEOF
12510 if ac_fn_c_try_compile "$LINENO"; then :
12511 ac_cv_header_stat_broken=no
12512 else
12513 ac_cv_header_stat_broken=yes
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 fi
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12518 $as_echo "$ac_cv_header_stat_broken" >&6; }
12519 if test $ac_cv_header_stat_broken = yes; then
12520
12521 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12522
12523 fi
12524
12525
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
12527 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
12528 if ${ac_cv_sys_interpreter+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 echo '#! /bin/cat
12532 exit 69
12533 ' >conftest
12534 chmod u+x conftest
12535 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
12536 if test $? -ne 69; then
12537 ac_cv_sys_interpreter=yes
12538 else
12539 ac_cv_sys_interpreter=no
12540 fi
12541 rm -f conftest
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
12544 $as_echo "$ac_cv_sys_interpreter" >&6; }
12545 interpval=$ac_cv_sys_interpreter
12546
12547 if test $ac_cv_sys_interpreter = yes; then
12548 $as_echo "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
12549
12550 fi
12551
12552 if test "$ac_cv_func_lstat" = "no"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
12554 $as_echo_n "checking for lstat... " >&6; }
12555 if ${bash_cv_func_lstat+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560
12561 #include <sys/types.h>
12562 #include <sys/stat.h>
12563
12564 int
12565 main ()
12566 {
12567 lstat(".",(struct stat *)0);
12568 ;
12569 return 0;
12570 }
12571 _ACEOF
12572 if ac_fn_c_try_link "$LINENO"; then :
12573 bash_cv_func_lstat=yes
12574 else
12575 bash_cv_func_lstat=no
12576 fi
12577 rm -f core conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
12581 $as_echo "$bash_cv_func_lstat" >&6; }
12582 if test $bash_cv_func_lstat = yes; then
12583 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
12584
12585 fi
12586
12587 fi
12588
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
12591 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
12592 if ${bash_cv_func_ctype_nonascii+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 if test "$cross_compiling" = yes; then :
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
12597 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
12598 bash_cv_func_ctype_nonascii=no
12599
12600 else
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603
12604 #ifdef HAVE_LOCALE_H
12605 #include <locale.h>
12606 #endif
12607 #include <stdio.h>
12608 #include <ctype.h>
12609
12610 main(c, v)
12611 int c;
12612 char *v[];
12613 {
12614 char *deflocale;
12615 unsigned char x;
12616 int r1, r2;
12617
12618 #ifdef HAVE_SETLOCALE
12619 /* We take a shot here. If that locale is not known, try the
12620 system default. We try this one because '\342' (226) is
12621 known to be a printable character in that locale. */
12622 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
12623 if (deflocale == 0)
12624 deflocale = setlocale(LC_ALL, "");
12625 #endif
12626
12627 x = '\342';
12628 r1 = isprint(x);
12629 x -= 128;
12630 r2 = isprint(x);
12631 exit (r1 == 0 || r2 == 0);
12632 }
12633
12634 _ACEOF
12635 if ac_fn_c_try_run "$LINENO"; then :
12636 bash_cv_func_ctype_nonascii=yes
12637 else
12638 bash_cv_func_ctype_nonascii=no
12639 fi
12640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12641 conftest.$ac_objext conftest.beam conftest.$ac_ext
12642 fi
12643
12644 fi
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
12647 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
12648 if test $bash_cv_func_ctype_nonascii = yes; then
12649 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
12650
12651 fi
12652
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
12654 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
12655 if ${bash_cv_dup2_broken+:} false; then :
12656 $as_echo_n "(cached) " >&6
12657 else
12658 if test "$cross_compiling" = yes; then :
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12660 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12661 bash_cv_dup2_broken=no
12662 else
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665
12666 #include <sys/types.h>
12667 #include <fcntl.h>
12668 main()
12669 {
12670 int fd1, fd2, fl;
12671 fd1 = open("/dev/null", 2);
12672 if (fcntl(fd1, 2, 1) < 0)
12673 exit(1);
12674 fd2 = dup2(fd1, 1);
12675 if (fd2 < 0)
12676 exit(2);
12677 fl = fcntl(fd2, 1, 0);
12678 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12679 exit(fl != 1);
12680 }
12681
12682 _ACEOF
12683 if ac_fn_c_try_run "$LINENO"; then :
12684 bash_cv_dup2_broken=yes
12685 else
12686 bash_cv_dup2_broken=no
12687 fi
12688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12689 conftest.$ac_objext conftest.beam conftest.$ac_ext
12690 fi
12691
12692
12693 fi
12694
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
12696 $as_echo "$bash_cv_dup2_broken" >&6; }
12697 if test $bash_cv_dup2_broken = yes; then
12698 $as_echo "#define DUP2_BROKEN 1" >>confdefs.h
12699
12700 fi
12701
12702
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
12704 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
12705 if ${bash_cv_pgrp_pipe+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 if test "$cross_compiling" = yes; then :
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
12710 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
12711 bash_cv_pgrp_pipe=no
12712 else
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715
12716 #ifdef HAVE_UNISTD_H
12717 # include <unistd.h>
12718 #endif
12719 main()
12720 {
12721 # ifdef GETPGRP_VOID
12722 # define getpgID() getpgrp()
12723 # else
12724 # define getpgID() getpgrp(0)
12725 # define setpgid(x,y) setpgrp(x,y)
12726 # endif
12727 int pid1, pid2, fds[2];
12728 int status;
12729 char ok;
12730
12731 switch (pid1 = fork()) {
12732 case -1:
12733 exit(1);
12734 case 0:
12735 setpgid(0, getpid());
12736 exit(0);
12737 }
12738 setpgid(pid1, pid1);
12739
12740 sleep(2); /* let first child die */
12741
12742 if (pipe(fds) < 0)
12743 exit(2);
12744
12745 switch (pid2 = fork()) {
12746 case -1:
12747 exit(3);
12748 case 0:
12749 setpgid(0, pid1);
12750 ok = getpgID() == pid1;
12751 write(fds[1], &ok, 1);
12752 exit(0);
12753 }
12754 setpgid(pid2, pid1);
12755
12756 close(fds[1]);
12757 if (read(fds[0], &ok, 1) != 1)
12758 exit(4);
12759 wait(&status);
12760 wait(&status);
12761 exit(ok ? 0 : 5);
12762 }
12763
12764 _ACEOF
12765 if ac_fn_c_try_run "$LINENO"; then :
12766 bash_cv_pgrp_pipe=no
12767 else
12768 bash_cv_pgrp_pipe=yes
12769 fi
12770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12771 conftest.$ac_objext conftest.beam conftest.$ac_ext
12772 fi
12773
12774
12775 fi
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
12778 $as_echo "$bash_cv_pgrp_pipe" >&6; }
12779 if test $bash_cv_pgrp_pipe = yes; then
12780 $as_echo "#define PGRP_PIPE 1" >>confdefs.h
12781
12782 fi
12783
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
12786 $as_echo_n "checking for type of signal functions... " >&6; }
12787 if ${bash_cv_signal_vintage+:} false; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 #include <signal.h>
12794 int
12795 main ()
12796 {
12797
12798 sigset_t ss;
12799 struct sigaction sa;
12800 sigemptyset(&ss); sigsuspend(&ss);
12801 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12802 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12803
12804 ;
12805 return 0;
12806 }
12807 _ACEOF
12808 if ac_fn_c_try_link "$LINENO"; then :
12809 bash_cv_signal_vintage=posix
12810 else
12811
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814 #include <signal.h>
12815 int
12816 main ()
12817 {
12818
12819 int mask = sigmask(SIGINT);
12820 sigsetmask(mask); sigblock(mask); sigpause(mask);
12821
12822 ;
12823 return 0;
12824 }
12825 _ACEOF
12826 if ac_fn_c_try_link "$LINENO"; then :
12827 bash_cv_signal_vintage=4.2bsd
12828 else
12829
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832
12833 #include <signal.h>
12834 RETSIGTYPE foo() { }
12835 int
12836 main ()
12837 {
12838
12839 int mask = sigmask(SIGINT);
12840 sigset(SIGINT, foo); sigrelse(SIGINT);
12841 sighold(SIGINT); sigpause(SIGINT);
12842
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_link "$LINENO"; then :
12848 bash_cv_signal_vintage=svr3
12849 else
12850 bash_cv_signal_vintage=v7
12851
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext \
12854 conftest$ac_exeext conftest.$ac_ext
12855
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12859
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12863
12864 fi
12865
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
12867 $as_echo "$bash_cv_signal_vintage" >&6; }
12868 if test "$bash_cv_signal_vintage" = posix; then
12869 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
12870
12871 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12872 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
12873
12874 elif test "$bash_cv_signal_vintage" = svr3; then
12875 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
12876
12877 fi
12878
12879
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
12881 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
12882 if ${bash_cv_sys_errlist+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 #include <errno.h>
12888 int
12889 main ()
12890 {
12891 extern char *sys_errlist[];
12892 extern int sys_nerr;
12893 char *msg = sys_errlist[sys_nerr - 1];
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 bash_cv_sys_errlist=yes
12900 else
12901 bash_cv_sys_errlist=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
12907 $as_echo "$bash_cv_sys_errlist" >&6; }
12908 if test $bash_cv_sys_errlist = yes; then
12909 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
12910
12911 fi
12912
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
12915 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
12916 if ${bash_cv_sys_siglist+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test "$cross_compiling" = yes; then :
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
12921 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
12922 bash_cv_sys_siglist=no
12923 else
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926
12927 #include <sys/types.h>
12928 #include <signal.h>
12929 #ifdef HAVE_UNISTD_H
12930 #include <unistd.h>
12931 #endif
12932 #if !HAVE_DECL_SYS_SIGLIST
12933 extern char *sys_siglist[];
12934 #endif
12935 main()
12936 {
12937 char *msg = sys_siglist[2];
12938 exit(msg == 0);
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_run "$LINENO"; then :
12942 bash_cv_sys_siglist=yes
12943 else
12944 bash_cv_sys_siglist=no
12945 fi
12946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12947 conftest.$ac_objext conftest.beam conftest.$ac_ext
12948 fi
12949
12950 fi
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
12953 $as_echo "$bash_cv_sys_siglist" >&6; }
12954 if test $bash_cv_sys_siglist = yes; then
12955 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
12956
12957 fi
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
12960 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
12961 if ${bash_cv_decl_under_sys_siglist+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966
12967 #include <sys/types.h>
12968 #include <signal.h>
12969 #ifdef HAVE_UNISTD_H
12970 #include <unistd.h>
12971 #endif
12972 int
12973 main ()
12974 {
12975 char *msg = _sys_siglist[2];
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 if ac_fn_c_try_compile "$LINENO"; then :
12981 bash_cv_decl_under_sys_siglist=yes
12982 else
12983 bash_cv_decl_under_sys_siglist=no
12984 fi
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
12988 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
12989 if test $bash_cv_decl_under_sys_siglist = yes; then
12990 $as_echo "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
12991
12992 fi
12993
12994
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
12996 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
12997 if ${bash_cv_under_sys_siglist+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test "$cross_compiling" = yes; then :
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
13002 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
13003 bash_cv_under_sys_siglist=no
13004 else
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007
13008 #include <sys/types.h>
13009 #include <signal.h>
13010 #ifdef HAVE_UNISTD_H
13011 #include <unistd.h>
13012 #endif
13013 #ifndef UNDER_SYS_SIGLIST_DECLARED
13014 extern char *_sys_siglist[];
13015 #endif
13016 main()
13017 {
13018 char *msg = (char *)_sys_siglist[2];
13019 exit(msg == 0);
13020 }
13021 _ACEOF
13022 if ac_fn_c_try_run "$LINENO"; then :
13023 bash_cv_under_sys_siglist=yes
13024 else
13025 bash_cv_under_sys_siglist=no
13026 fi
13027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13028 conftest.$ac_objext conftest.beam conftest.$ac_ext
13029 fi
13030
13031 fi
13032
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
13034 $as_echo "$bash_cv_under_sys_siglist" >&6; }
13035 if test $bash_cv_under_sys_siglist = yes; then
13036 $as_echo "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
13037
13038 fi
13039
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
13042 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
13043 if ${bash_cv_void_sighandler+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048 #include <sys/types.h>
13049 #include <signal.h>
13050 #ifdef signal
13051 #undef signal
13052 #endif
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 void (*signal ()) ();
13057 int
13058 main ()
13059 {
13060 int i;
13061 ;
13062 return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 bash_cv_void_sighandler=yes
13067 else
13068 bash_cv_void_sighandler=no
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 fi
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
13073 $as_echo "$bash_cv_void_sighandler" >&6; }
13074 if test $bash_cv_void_sighandler = yes; then
13075 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
13076
13077 fi
13078
13079
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
13082 $as_echo_n "checking for clock_t... " >&6; }
13083 if ${bash_cv_type_clock_t+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088 #include <sys/types.h>
13089 #if STDC_HEADERS
13090 #include <stdlib.h>
13091 #include <stddef.h>
13092 #endif
13093 #if HAVE_INTTYPES_H
13094 #include <inttypes.h>
13095 #endif
13096 #if HAVE_STDINT_H
13097 #include <stdint.h>
13098 #endif
13099 #include <sys/times.h>
13100
13101 _ACEOF
13102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13103 $EGREP "clock_t" >/dev/null 2>&1; then :
13104 bash_cv_type_clock_t=yes
13105 else
13106 bash_cv_type_clock_t=no
13107 fi
13108 rm -f conftest*
13109
13110 fi
13111
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
13113 $as_echo "$bash_cv_type_clock_t" >&6; }
13114
13115 if test $bash_cv_type_clock_t = no; then
13116 cat >>confdefs.h <<_ACEOF
13117 #define clock_t long
13118 _ACEOF
13119
13120 fi
13121
13122
13123
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
13125 $as_echo_n "checking for sigset_t... " >&6; }
13126 if ${bash_cv_type_sigset_t+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 #include <sys/types.h>
13132 #if STDC_HEADERS
13133 #include <stdlib.h>
13134 #include <stddef.h>
13135 #endif
13136 #if HAVE_INTTYPES_H
13137 #include <inttypes.h>
13138 #endif
13139 #if HAVE_STDINT_H
13140 #include <stdint.h>
13141 #endif
13142 #include <signal.h>
13143
13144 _ACEOF
13145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13146 $EGREP "sigset_t" >/dev/null 2>&1; then :
13147 bash_cv_type_sigset_t=yes
13148 else
13149 bash_cv_type_sigset_t=no
13150 fi
13151 rm -f conftest*
13152
13153 fi
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
13156 $as_echo "$bash_cv_type_sigset_t" >&6; }
13157
13158 if test $bash_cv_type_sigset_t = no; then
13159 cat >>confdefs.h <<_ACEOF
13160 #define sigset_t int
13161 _ACEOF
13162
13163 fi
13164
13165
13166
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
13168 $as_echo_n "checking for quad_t... " >&6; }
13169 if ${bash_cv_type_quad_t+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174 #include <sys/types.h>
13175 #if STDC_HEADERS
13176 #include <stdlib.h>
13177 #include <stddef.h>
13178 #endif
13179 #if HAVE_INTTYPES_H
13180 #include <inttypes.h>
13181 #endif
13182 #if HAVE_STDINT_H
13183 #include <stdint.h>
13184 #endif
13185
13186
13187 _ACEOF
13188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13189 $EGREP "quad_t" >/dev/null 2>&1; then :
13190 bash_cv_type_quad_t=yes
13191 else
13192 bash_cv_type_quad_t=no
13193 fi
13194 rm -f conftest*
13195
13196 fi
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5
13199 $as_echo "$bash_cv_type_quad_t" >&6; }
13200 if test $bash_cv_type_quad_t = yes; then
13201 $as_echo "#define HAVE_QUAD_T 1" >>confdefs.h
13202
13203 fi
13204 if test $bash_cv_type_quad_t = no; then
13205 cat >>confdefs.h <<_ACEOF
13206 #define quad_t long
13207 _ACEOF
13208
13209 fi
13210
13211
13212
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13214 $as_echo_n "checking for intmax_t... " >&6; }
13215 if ${bash_cv_type_intmax_t+:} false; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220 #include <sys/types.h>
13221 #if STDC_HEADERS
13222 #include <stdlib.h>
13223 #include <stddef.h>
13224 #endif
13225 #if HAVE_INTTYPES_H
13226 #include <inttypes.h>
13227 #endif
13228 #if HAVE_STDINT_H
13229 #include <stdint.h>
13230 #endif
13231
13232
13233 _ACEOF
13234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13235 $EGREP "intmax_t" >/dev/null 2>&1; then :
13236 bash_cv_type_intmax_t=yes
13237 else
13238 bash_cv_type_intmax_t=no
13239 fi
13240 rm -f conftest*
13241
13242 fi
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5
13245 $as_echo "$bash_cv_type_intmax_t" >&6; }
13246
13247 if test $bash_cv_type_intmax_t = no; then
13248 cat >>confdefs.h <<_ACEOF
13249 #define intmax_t $bash_cv_type_long_long
13250 _ACEOF
13251
13252 fi
13253
13254
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
13257 $as_echo_n "checking for uintmax_t... " >&6; }
13258 if ${bash_cv_type_uintmax_t+:} false; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 #include <sys/types.h>
13264 #if STDC_HEADERS
13265 #include <stdlib.h>
13266 #include <stddef.h>
13267 #endif
13268 #if HAVE_INTTYPES_H
13269 #include <inttypes.h>
13270 #endif
13271 #if HAVE_STDINT_H
13272 #include <stdint.h>
13273 #endif
13274
13275
13276 _ACEOF
13277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13278 $EGREP "uintmax_t" >/dev/null 2>&1; then :
13279 bash_cv_type_uintmax_t=yes
13280 else
13281 bash_cv_type_uintmax_t=no
13282 fi
13283 rm -f conftest*
13284
13285 fi
13286
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5
13288 $as_echo "$bash_cv_type_uintmax_t" >&6; }
13289
13290 if test $bash_cv_type_uintmax_t = no; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define uintmax_t $bash_cv_type_unsigned_long_long
13293 _ACEOF
13294
13295 fi
13296
13297 if test "$ac_cv_header_sys_socket_h" = "yes"; then
13298
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13301 $as_echo_n "checking for socklen_t... " >&6; }
13302 if ${bash_cv_type_socklen_t+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 #include <sys/types.h>
13308 #if STDC_HEADERS
13309 #include <stdlib.h>
13310 #include <stddef.h>
13311 #endif
13312 #if HAVE_INTTYPES_H
13313 #include <inttypes.h>
13314 #endif
13315 #if HAVE_STDINT_H
13316 #include <stdint.h>
13317 #endif
13318 #include <sys/socket.h>
13319
13320 _ACEOF
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 $EGREP "socklen_t" >/dev/null 2>&1; then :
13323 bash_cv_type_socklen_t=yes
13324 else
13325 bash_cv_type_socklen_t=no
13326 fi
13327 rm -f conftest*
13328
13329 fi
13330
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
13332 $as_echo "$bash_cv_type_socklen_t" >&6; }
13333 if test $bash_cv_type_socklen_t = yes; then
13334 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
13335
13336 fi
13337 if test $bash_cv_type_socklen_t = no; then
13338 cat >>confdefs.h <<_ACEOF
13339 #define socklen_t int
13340 _ACEOF
13341
13342 fi
13343
13344 fi
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
13346 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
13347 if ${bash_cv_type_rlimit+:} false; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352 #include <sys/types.h>
13353 #include <sys/resource.h>
13354 int
13355 main ()
13356 {
13357 rlim_t xxx;
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 bash_cv_type_rlimit=rlim_t
13364 else
13365
13366 if test "$cross_compiling" = yes; then :
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
13368 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
13369 bash_cv_type_rlimit=long
13370 else
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373
13374 #include <sys/types.h>
13375 #include <sys/time.h>
13376 #include <sys/resource.h>
13377 main()
13378 {
13379 #ifdef HAVE_QUAD_T
13380 struct rlimit rl;
13381 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
13382 exit(0);
13383 #endif
13384 exit(1);
13385 }
13386 _ACEOF
13387 if ac_fn_c_try_run "$LINENO"; then :
13388 bash_cv_type_rlimit=quad_t
13389 else
13390 bash_cv_type_rlimit=long
13391 fi
13392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13393 conftest.$ac_objext conftest.beam conftest.$ac_ext
13394 fi
13395
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398
13399 fi
13400
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
13402 $as_echo "$bash_cv_type_rlimit" >&6; }
13403 if test $bash_cv_type_rlimit = quad_t; then
13404 $as_echo "#define RLIMTYPE quad_t" >>confdefs.h
13405
13406 elif test $bash_cv_type_rlimit = rlim_t; then
13407 $as_echo "#define RLIMTYPE rlim_t" >>confdefs.h
13408
13409 fi
13410
13411
13412 # The cast to long int works around a bug in the HP C Compiler
13413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13415 # This bug is HP SR number 8606223364.
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
13417 $as_echo_n "checking size of intmax_t... " >&6; }
13418 if ${ac_cv_sizeof_intmax_t+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
13422
13423 else
13424 if test "$ac_cv_type_intmax_t" = yes; then
13425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13427 as_fn_error 77 "cannot compute sizeof (intmax_t)
13428 See \`config.log' for more details" "$LINENO" 5; }
13429 else
13430 ac_cv_sizeof_intmax_t=0
13431 fi
13432 fi
13433
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
13436 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
13437
13438
13439
13440 cat >>confdefs.h <<_ACEOF
13441 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
13442 _ACEOF
13443
13444
13445
13446
13447 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
13448 #include <sys/types.h>
13449 #include <termios.h>
13450
13451 "
13452 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
13453 $as_echo "#define TERMIOS_LDISC 1" >>confdefs.h
13454
13455 fi
13456
13457
13458
13459 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
13460 #include <sys/types.h>
13461 #include <termio.h>
13462
13463 "
13464 if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
13465 $as_echo "#define TERMIO_LDISC 1" >>confdefs.h
13466
13467 fi
13468
13469
13470
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
13472 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
13473 if ${bash_cv_dirent_has_dino+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478
13479 #include <stdio.h>
13480 #include <sys/types.h>
13481 #ifdef HAVE_UNISTD_H
13482 # include <unistd.h>
13483 #endif /* HAVE_UNISTD_H */
13484 #if defined(HAVE_DIRENT_H)
13485 # include <dirent.h>
13486 #else
13487 # define dirent direct
13488 # ifdef HAVE_SYS_NDIR_H
13489 # include <sys/ndir.h>
13490 # endif /* SYSNDIR */
13491 # ifdef HAVE_SYS_DIR_H
13492 # include <sys/dir.h>
13493 # endif /* SYSDIR */
13494 # ifdef HAVE_NDIR_H
13495 # include <ndir.h>
13496 # endif
13497 #endif /* HAVE_DIRENT_H */
13498
13499 int
13500 main ()
13501 {
13502
13503 struct dirent d; int z; z = d.d_ino;
13504
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 if ac_fn_c_try_compile "$LINENO"; then :
13510 bash_cv_dirent_has_dino=yes
13511 else
13512 bash_cv_dirent_has_dino=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 fi
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
13518 $as_echo "$bash_cv_dirent_has_dino" >&6; }
13519 if test $bash_cv_dirent_has_dino = yes; then
13520 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
13521
13522 fi
13523
13524
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
13526 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
13527 if ${bash_cv_dirent_has_d_fileno+:} false; then :
13528 $as_echo_n "(cached) " >&6
13529 else
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532
13533 #include <stdio.h>
13534 #include <sys/types.h>
13535 #ifdef HAVE_UNISTD_H
13536 # include <unistd.h>
13537 #endif /* HAVE_UNISTD_H */
13538 #if defined(HAVE_DIRENT_H)
13539 # include <dirent.h>
13540 #else
13541 # define dirent direct
13542 # ifdef HAVE_SYS_NDIR_H
13543 # include <sys/ndir.h>
13544 # endif /* SYSNDIR */
13545 # ifdef HAVE_SYS_DIR_H
13546 # include <sys/dir.h>
13547 # endif /* SYSDIR */
13548 # ifdef HAVE_NDIR_H
13549 # include <ndir.h>
13550 # endif
13551 #endif /* HAVE_DIRENT_H */
13552
13553 int
13554 main ()
13555 {
13556
13557 struct dirent d; int z; z = d.d_fileno;
13558
13559 ;
13560 return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_compile "$LINENO"; then :
13564 bash_cv_dirent_has_d_fileno=yes
13565 else
13566 bash_cv_dirent_has_d_fileno=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 fi
13570
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
13572 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
13573 if test $bash_cv_dirent_has_d_fileno = yes; then
13574 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
13575
13576 fi
13577
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
13580 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13581 if ${bash_cv_dirent_has_d_namlen+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586
13587 #include <stdio.h>
13588 #include <sys/types.h>
13589 #ifdef HAVE_UNISTD_H
13590 # include <unistd.h>
13591 #endif /* HAVE_UNISTD_H */
13592 #if defined(HAVE_DIRENT_H)
13593 # include <dirent.h>
13594 #else
13595 # define dirent direct
13596 # ifdef HAVE_SYS_NDIR_H
13597 # include <sys/ndir.h>
13598 # endif /* SYSNDIR */
13599 # ifdef HAVE_SYS_DIR_H
13600 # include <sys/dir.h>
13601 # endif /* SYSDIR */
13602 # ifdef HAVE_NDIR_H
13603 # include <ndir.h>
13604 # endif
13605 #endif /* HAVE_DIRENT_H */
13606
13607 int
13608 main ()
13609 {
13610
13611 struct dirent d; int z; z = d.d_namlen;
13612
13613 ;
13614 return 0;
13615 }
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618 bash_cv_dirent_has_d_namlen=yes
13619 else
13620 bash_cv_dirent_has_d_namlen=no
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 fi
13624
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
13626 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
13627 if test $bash_cv_dirent_has_d_namlen = yes; then
13628 $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
13629
13630 fi
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13633 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
13634 if ${bash_cv_struct_winsize_header+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #include <sys/types.h>
13640 #include <sys/ioctl.h>
13641 int
13642 main ()
13643 {
13644 struct winsize x;
13645 ;
13646 return 0;
13647 }
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650 bash_cv_struct_winsize_header=ioctl_h
13651 else
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <sys/types.h>
13655 #include <termios.h>
13656 int
13657 main ()
13658 {
13659 struct winsize x;
13660 ;
13661 return 0;
13662 }
13663 _ACEOF
13664 if ac_fn_c_try_compile "$LINENO"; then :
13665 bash_cv_struct_winsize_header=termios_h
13666 else
13667 bash_cv_struct_winsize_header=other
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 fi
13674
13675 if test $bash_cv_struct_winsize_header = ioctl_h; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
13677 $as_echo "sys/ioctl.h" >&6; }
13678 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
13679
13680 elif test $bash_cv_struct_winsize_header = termios_h; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
13682 $as_echo "termios.h" >&6; }
13683 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
13684
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13687 $as_echo "not found" >&6; }
13688 fi
13689
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
13691 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
13692 if ${bash_cv_struct_timeval+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13698 #include <sys/time.h>
13699
13700 _ACEOF
13701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13702 $EGREP "struct timeval" >/dev/null 2>&1; then :
13703 bash_cv_struct_timeval=yes
13704 else
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707 #include <time.h>
13708
13709 _ACEOF
13710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13711 $EGREP "struct timeval" >/dev/null 2>&1; then :
13712 bash_cv_struct_timeval=yes
13713 else
13714 bash_cv_struct_timeval=no
13715 fi
13716 rm -f conftest*
13717
13718 fi
13719 rm -f conftest*
13720
13721
13722 fi
13723
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
13725 $as_echo "$bash_cv_struct_timeval" >&6; }
13726 if test $bash_cv_struct_timeval = yes; then
13727 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
13728
13729 fi
13730
13731 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13732 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13733
13734 cat >>confdefs.h <<_ACEOF
13735 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13736 _ACEOF
13737
13738
13739 fi
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13742 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13743 if ${ac_cv_struct_tm+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 #include <sys/types.h>
13749 #include <time.h>
13750
13751 int
13752 main ()
13753 {
13754 struct tm tm;
13755 int *p = &tm.tm_sec;
13756 return !p;
13757 ;
13758 return 0;
13759 }
13760 _ACEOF
13761 if ac_fn_c_try_compile "$LINENO"; then :
13762 ac_cv_struct_tm=time.h
13763 else
13764 ac_cv_struct_tm=sys/time.h
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13769 $as_echo "$ac_cv_struct_tm" >&6; }
13770 if test $ac_cv_struct_tm = sys/time.h; then
13771
13772 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13773
13774 fi
13775
13776 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13777 #include <$ac_cv_struct_tm>
13778
13779 "
13780 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13781
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_STRUCT_TM_TM_ZONE 1
13784 _ACEOF
13785
13786
13787 fi
13788
13789 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13790
13791 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13792
13793 else
13794 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13795 "
13796 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13797 ac_have_decl=1
13798 else
13799 ac_have_decl=0
13800 fi
13801
13802 cat >>confdefs.h <<_ACEOF
13803 #define HAVE_DECL_TZNAME $ac_have_decl
13804 _ACEOF
13805
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13807 $as_echo_n "checking for tzname... " >&6; }
13808 if ${ac_cv_var_tzname+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 #include <time.h>
13814 #if !HAVE_DECL_TZNAME
13815 extern char *tzname[];
13816 #endif
13817
13818 int
13819 main ()
13820 {
13821 return tzname[0][0];
13822 ;
13823 return 0;
13824 }
13825 _ACEOF
13826 if ac_fn_c_try_link "$LINENO"; then :
13827 ac_cv_var_tzname=yes
13828 else
13829 ac_cv_var_tzname=no
13830 fi
13831 rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 fi
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13835 $as_echo "$ac_cv_var_tzname" >&6; }
13836 if test $ac_cv_var_tzname = yes; then
13837
13838 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13839
13840 fi
13841 fi
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
13844 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
13845 if ${bash_cv_struct_timezone+:} false; then :
13846 $as_echo_n "(cached) " >&6
13847 else
13848
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 #include <sys/time.h>
13852
13853 _ACEOF
13854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13855 $EGREP "struct timezone" >/dev/null 2>&1; then :
13856 bash_cv_struct_timezone=yes
13857 else
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860 #include <time.h>
13861
13862 _ACEOF
13863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13864 $EGREP "struct timezone" >/dev/null 2>&1; then :
13865 bash_cv_struct_timezone=yes
13866 else
13867 bash_cv_struct_timezone=no
13868 fi
13869 rm -f conftest*
13870
13871 fi
13872 rm -f conftest*
13873
13874
13875 fi
13876
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
13878 $as_echo "$bash_cv_struct_timezone" >&6; }
13879 if test $bash_cv_struct_timezone = yes; then
13880 $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
13881
13882 fi
13883
13884
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
13886 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
13887 if ${bash_cv_wexitstatus_offset+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 if test "$cross_compiling" = yes; then :
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
13892 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
13893 bash_cv_wexitstatus_offset=0
13894
13895 else
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898
13899 #include <stdlib.h>
13900 #include <unistd.h>
13901
13902 #include <sys/wait.h>
13903
13904 main(c, v)
13905 int c;
13906 char **v;
13907 {
13908 pid_t pid, p;
13909 int s, i, n;
13910
13911 s = 0;
13912 pid = fork();
13913 if (pid == 0)
13914 exit (42);
13915
13916 /* wait for the process */
13917 p = wait(&s);
13918 if (p != pid)
13919 exit (255);
13920
13921 /* crack s */
13922 for (i = 0; i < (sizeof(s) - 8); i++)
13923 {
13924 n = (s >> i) & 0xff;
13925 if (n == 42)
13926 exit (i);
13927 }
13928
13929 exit (254);
13930 }
13931
13932 _ACEOF
13933 if ac_fn_c_try_run "$LINENO"; then :
13934 bash_cv_wexitstatus_offset=0
13935 else
13936 bash_cv_wexitstatus_offset=$?
13937 fi
13938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13939 conftest.$ac_objext conftest.beam conftest.$ac_ext
13940 fi
13941
13942 fi
13943
13944 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
13946 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
13947 bash_cv_wexitstatus_offset=0
13948 fi
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
13950 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
13951
13952 cat >>confdefs.h <<_ACEOF
13953 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
13954 _ACEOF
13955
13956
13957
13958
13959
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
13961 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
13962 if ${bash_cv_sys_struct_timespec_in_time_h+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13967 #include <time.h>
13968
13969 int
13970 main ()
13971 {
13972 static struct timespec x; x.tv_sec = x.tv_nsec;
13973 ;
13974 return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_c_try_compile "$LINENO"; then :
13978 bash_cv_sys_struct_timespec_in_time_h=yes
13979 else
13980 bash_cv_sys_struct_timespec_in_time_h=no
13981 fi
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
13985 $as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
13986
13987 HAVE_STRUCT_TIMESPEC=0
13988 TIME_H_DEFINES_STRUCT_TIMESPEC=0
13989 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
13990 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
13991 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
13992 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
13993
13994 $as_echo "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
13995
13996 TIME_H_DEFINES_STRUCT_TIMESPEC=1
13997 else
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
13999 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14000 if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005 #include <sys/time.h>
14006
14007 int
14008 main ()
14009 {
14010 static struct timespec x; x.tv_sec = x.tv_nsec;
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_compile "$LINENO"; then :
14016 bash_cv_sys_struct_timespec_in_sys_time_h=yes
14017 else
14018 bash_cv_sys_struct_timespec_in_sys_time_h=no
14019 fi
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 fi
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
14023 $as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14024 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
14025 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14026 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14027
14028 $as_echo "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14029
14030 else
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14032 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14033 if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 #include <pthread.h>
14039
14040 int
14041 main ()
14042 {
14043 static struct timespec x; x.tv_sec = x.tv_nsec;
14044 ;
14045 return 0;
14046 }
14047 _ACEOF
14048 if ac_fn_c_try_compile "$LINENO"; then :
14049 bash_cv_sys_struct_timespec_in_pthread_h=yes
14050 else
14051 bash_cv_sys_struct_timespec_in_pthread_h=no
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 fi
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
14056 $as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
14057 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
14058 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14059 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14060
14061 $as_echo "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14062
14063 fi
14064 fi
14065 fi
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075 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>
14076 #include <sys/stat.h>
14077 "
14078 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
14079
14080 cat >>confdefs.h <<_ACEOF
14081 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14082 _ACEOF
14083
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14085 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14086 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091
14092 #include <sys/types.h>
14093 #include <sys/stat.h>
14094 #if HAVE_SYS_TIME_H
14095 # include <sys/time.h>
14096 #endif
14097 #include <time.h>
14098 struct timespec ts;
14099 struct stat st;
14100
14101 int
14102 main ()
14103 {
14104
14105 st.st_atim = ts;
14106
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14113 else
14114 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14119 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14120 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14121
14122 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14123
14124 fi
14125 else
14126 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>
14127 #include <sys/stat.h>
14128 "
14129 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
14130
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14133 _ACEOF
14134
14135
14136 else
14137 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14138 #include <sys/stat.h>
14139 "
14140 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
14141
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14144 _ACEOF
14145
14146
14147 else
14148 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>
14149 #include <sys/stat.h>
14150 "
14151 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
14152
14153 cat >>confdefs.h <<_ACEOF
14154 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14155 _ACEOF
14156
14157
14158 fi
14159
14160 fi
14161
14162 fi
14163
14164 fi
14165
14166
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
14169 $as_echo_n "checking for the existence of strsignal... " >&6; }
14170 if ${bash_cv_have_strsignal+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14175 #include <sys/types.h>
14176 #include <signal.h>
14177 int
14178 main ()
14179 {
14180 char *s = (char *)strsignal(2);
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"; then :
14186 bash_cv_have_strsignal=yes
14187 else
14188 bash_cv_have_strsignal=no
14189 fi
14190 rm -f core conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 fi
14193
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
14195 $as_echo "$bash_cv_have_strsignal" >&6; }
14196 if test $bash_cv_have_strsignal = yes; then
14197 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
14198
14199 fi
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
14202 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
14203 if ${bash_cv_opendir_not_robust+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 if test "$cross_compiling" = yes; then :
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
14208 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
14209 bash_cv_opendir_not_robust=no
14210
14211 else
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214
14215 #include <stdio.h>
14216 #include <sys/types.h>
14217 #include <fcntl.h>
14218 #ifdef HAVE_UNISTD_H
14219 # include <unistd.h>
14220 #endif /* HAVE_UNISTD_H */
14221 #if defined(HAVE_DIRENT_H)
14222 # include <dirent.h>
14223 #else
14224 # define dirent direct
14225 # ifdef HAVE_SYS_NDIR_H
14226 # include <sys/ndir.h>
14227 # endif /* SYSNDIR */
14228 # ifdef HAVE_SYS_DIR_H
14229 # include <sys/dir.h>
14230 # endif /* SYSDIR */
14231 # ifdef HAVE_NDIR_H
14232 # include <ndir.h>
14233 # endif
14234 #endif /* HAVE_DIRENT_H */
14235 main()
14236 {
14237 DIR *dir;
14238 int fd, err;
14239 err = mkdir("bash-aclocal", 0700);
14240 if (err < 0) {
14241 perror("mkdir");
14242 exit(1);
14243 }
14244 unlink("bash-aclocal/not_a_directory");
14245 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
14246 write(fd, "\n", 1);
14247 close(fd);
14248 dir = opendir("bash-aclocal/not_a_directory");
14249 unlink("bash-aclocal/not_a_directory");
14250 rmdir("bash-aclocal");
14251 exit (dir == 0);
14252 }
14253 _ACEOF
14254 if ac_fn_c_try_run "$LINENO"; then :
14255 bash_cv_opendir_not_robust=yes
14256 else
14257 bash_cv_opendir_not_robust=no
14258 fi
14259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14260 conftest.$ac_objext conftest.beam conftest.$ac_ext
14261 fi
14262
14263 fi
14264
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
14266 $as_echo "$bash_cv_opendir_not_robust" >&6; }
14267 if test $bash_cv_opendir_not_robust = yes; then
14268 $as_echo "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
14269
14270 fi
14271
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
14273 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
14274 if ${bash_cv_ulimit_maxfds+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 if test "$cross_compiling" = yes; then :
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
14279 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
14280 bash_cv_ulimit_maxfds=no
14281
14282 else
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285
14286 main()
14287 {
14288 long maxfds = ulimit(4, 0L);
14289 exit (maxfds == -1L);
14290 }
14291
14292 _ACEOF
14293 if ac_fn_c_try_run "$LINENO"; then :
14294 bash_cv_ulimit_maxfds=yes
14295 else
14296 bash_cv_ulimit_maxfds=no
14297 fi
14298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14299 conftest.$ac_objext conftest.beam conftest.$ac_ext
14300 fi
14301
14302 fi
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
14305 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
14306 if test $bash_cv_ulimit_maxfds = yes; then
14307 $as_echo "#define ULIMIT_MAXFDS 1" >>confdefs.h
14308
14309 fi
14310
14311
14312
14313
14314
14315
14316
14317
14318 ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
14319 "
14320 if test "x$ac_cv_have_decl_fpurge" = xyes; then :
14321 ac_have_decl=1
14322 else
14323 ac_have_decl=0
14324 fi
14325
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_DECL_FPURGE $ac_have_decl
14328 _ACEOF
14329
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
14332 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
14333 if ${bash_cv_getenv_redef+:} false; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 if test "$cross_compiling" = yes; then :
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
14338 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
14339 bash_cv_getenv_redef=yes
14340
14341 else
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344
14345 #ifdef HAVE_UNISTD_H
14346 # include <unistd.h>
14347 #endif
14348 #ifndef __STDC__
14349 # ifndef const
14350 # define const
14351 # endif
14352 #endif
14353 char *
14354 getenv (name)
14355 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
14356 const char *name;
14357 #else
14358 char const *name;
14359 #endif /* !__linux__ && !__bsdi__ && !convex */
14360 {
14361 return "42";
14362 }
14363 main()
14364 {
14365 char *s;
14366 /* The next allows this program to run, but does not allow bash to link
14367 when it redefines getenv. I'm not really interested in figuring out
14368 why not. */
14369 #if defined (NeXT)
14370 exit(1);
14371 #endif
14372 s = getenv("ABCDE");
14373 exit(s == 0); /* force optimizer to leave getenv in */
14374 }
14375
14376 _ACEOF
14377 if ac_fn_c_try_run "$LINENO"; then :
14378 bash_cv_getenv_redef=yes
14379 else
14380 bash_cv_getenv_redef=no
14381 fi
14382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14383 conftest.$ac_objext conftest.beam conftest.$ac_ext
14384 fi
14385
14386 fi
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
14389 $as_echo "$bash_cv_getenv_redef" >&6; }
14390 if test $bash_cv_getenv_redef = yes; then
14391 $as_echo "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
14392
14393 fi
14394
14395 if test "$ac_cv_func_getcwd" = "yes"; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
14397 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
14398 if ${bash_cv_getcwd_malloc+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14401 if test "$cross_compiling" = yes; then :
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
14403 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
14404 bash_cv_getcwd_malloc=no
14405
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409
14410 #include <stdio.h>
14411 #ifdef HAVE_UNISTD_H
14412 #include <unistd.h>
14413 #endif
14414
14415 main()
14416 {
14417 char *xpwd;
14418 xpwd = getcwd(0, 0);
14419 exit (xpwd == 0);
14420 }
14421
14422 _ACEOF
14423 if ac_fn_c_try_run "$LINENO"; then :
14424 bash_cv_getcwd_malloc=yes
14425 else
14426 bash_cv_getcwd_malloc=no
14427 fi
14428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14429 conftest.$ac_objext conftest.beam conftest.$ac_ext
14430 fi
14431
14432 fi
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
14435 $as_echo "$bash_cv_getcwd_malloc" >&6; }
14436 if test $bash_cv_getcwd_malloc = no; then
14437 $as_echo "#define GETCWD_BROKEN 1" >>confdefs.h
14438
14439 case " $LIBOBJS " in
14440 *" getcwd.$ac_objext "* ) ;;
14441 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
14442 ;;
14443 esac
14444
14445 fi
14446
14447 fi
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
14450 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
14451 if ${bash_cv_func_sigsetjmp+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 if test "$cross_compiling" = yes; then :
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
14456 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
14457 bash_cv_func_sigsetjmp=missing
14458
14459 else
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462
14463 #ifdef HAVE_UNISTD_H
14464 #include <unistd.h>
14465 #endif
14466 #include <sys/types.h>
14467 #include <signal.h>
14468 #include <setjmp.h>
14469
14470 main()
14471 {
14472 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
14473 exit (1);
14474 #else
14475
14476 int code;
14477 sigset_t set, oset;
14478 sigjmp_buf xx;
14479
14480 /* get the mask */
14481 sigemptyset(&set);
14482 sigemptyset(&oset);
14483 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
14484 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
14485
14486 /* save it */
14487 code = sigsetjmp(xx, 1);
14488 if (code)
14489 exit(0); /* could get sigmask and compare to oset here. */
14490
14491 /* change it */
14492 sigaddset(&set, SIGINT);
14493 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
14494
14495 /* and siglongjmp */
14496 siglongjmp(xx, 10);
14497 exit(1);
14498 #endif
14499 }
14500 _ACEOF
14501 if ac_fn_c_try_run "$LINENO"; then :
14502 bash_cv_func_sigsetjmp=present
14503 else
14504 bash_cv_func_sigsetjmp=missing
14505 fi
14506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14507 conftest.$ac_objext conftest.beam conftest.$ac_ext
14508 fi
14509
14510 fi
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
14513 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
14514 if test $bash_cv_func_sigsetjmp = present; then
14515 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
14516
14517 fi
14518
14519
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
14521 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
14522 if ${bash_cv_func_strcoll_broken+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 if test "$cross_compiling" = yes; then :
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
14527 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
14528 bash_cv_func_strcoll_broken=no
14529
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533
14534 #include <stdio.h>
14535 #if defined (HAVE_LOCALE_H)
14536 #include <locale.h>
14537 #endif
14538
14539 main(c, v)
14540 int c;
14541 char *v[];
14542 {
14543 int r1, r2;
14544 char *deflocale, *defcoll;
14545
14546 #ifdef HAVE_SETLOCALE
14547 deflocale = setlocale(LC_ALL, "");
14548 defcoll = setlocale(LC_COLLATE, "");
14549 #endif
14550
14551 #ifdef HAVE_STRCOLL
14552 /* These two values are taken from tests/glob-test. */
14553 r1 = strcoll("abd", "aXd");
14554 #else
14555 r1 = 0;
14556 #endif
14557 r2 = strcmp("abd", "aXd");
14558
14559 /* These two should both be greater than 0. It is permissible for
14560 a system to return different values, as long as the sign is the
14561 same. */
14562
14563 /* Exit with 1 (failure) if these two values are both > 0, since
14564 this tests whether strcoll(3) is broken with respect to strcmp(3)
14565 in the default locale. */
14566 exit (r1 > 0 && r2 > 0);
14567 }
14568
14569 _ACEOF
14570 if ac_fn_c_try_run "$LINENO"; then :
14571 bash_cv_func_strcoll_broken=yes
14572 else
14573 bash_cv_func_strcoll_broken=no
14574 fi
14575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14576 conftest.$ac_objext conftest.beam conftest.$ac_ext
14577 fi
14578
14579 fi
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
14582 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
14583 if test $bash_cv_func_strcoll_broken = yes; then
14584 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
14585
14586 fi
14587
14588
14589
14590
14591
14592 if test X$ac_cv_func_snprintf = Xyes; then
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
14594 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
14595 if ${bash_cv_func_snprintf+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 if test "$cross_compiling" = yes; then :
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
14600 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
14601 bash_cv_func_snprintf=yes
14602
14603 else
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14606
14607 #include <stdio.h>
14608
14609 main()
14610 {
14611 int n;
14612 n = snprintf (0, 0, "%s", "0123456");
14613 exit(n != 7);
14614 }
14615
14616 _ACEOF
14617 if ac_fn_c_try_run "$LINENO"; then :
14618 bash_cv_func_snprintf=yes
14619 else
14620 bash_cv_func_snprintf=no
14621 fi
14622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14623 conftest.$ac_objext conftest.beam conftest.$ac_ext
14624 fi
14625
14626 fi
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
14628 $as_echo "$bash_cv_func_snprintf" >&6; }
14629 if test $bash_cv_func_snprintf = no; then
14630 ac_cv_func_snprintf=no
14631 fi
14632 fi
14633 if test $ac_cv_func_snprintf = no; then
14634
14635 $as_echo "#define HAVE_SNPRINTF 0" >>confdefs.h
14636
14637 fi
14638
14639
14640
14641
14642
14643 if test X$ac_cv_func_vsnprintf = Xyes; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
14645 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
14646 if ${bash_cv_func_vsnprintf+:} false; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649 if test "$cross_compiling" = yes; then :
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
14651 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
14652 bash_cv_func_vsnprintf=yes
14653
14654 else
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657
14658 #if HAVE_STDARG_H
14659 #include <stdarg.h>
14660 #else
14661 #include <varargs.h>
14662 #endif
14663 #include <stdio.h>
14664 #include <stdlib.h>
14665
14666 static int
14667 #if HAVE_STDARG_H
14668 foo(const char *fmt, ...)
14669 #else
14670 foo(format, va_alist)
14671 const char *format;
14672 va_dcl
14673 #endif
14674 {
14675 va_list args;
14676 int n;
14677
14678 #if HAVE_STDARG_H
14679 va_start(args, fmt);
14680 #else
14681 va_start(args);
14682 #endif
14683 n = vsnprintf(0, 0, fmt, args);
14684 va_end (args);
14685 return n;
14686 }
14687
14688 main()
14689 {
14690 int n;
14691 n = foo("%s", "0123456");
14692 exit(n != 7);
14693 }
14694
14695 _ACEOF
14696 if ac_fn_c_try_run "$LINENO"; then :
14697 bash_cv_func_vsnprintf=yes
14698 else
14699 bash_cv_func_vsnprintf=no
14700 fi
14701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14702 conftest.$ac_objext conftest.beam conftest.$ac_ext
14703 fi
14704
14705 fi
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
14707 $as_echo "$bash_cv_func_vsnprintf" >&6; }
14708 if test $bash_cv_func_vsnprintf = no; then
14709 ac_cv_func_vsnprintf=no
14710 fi
14711 fi
14712 if test $ac_cv_func_vsnprintf = no; then
14713
14714 $as_echo "#define HAVE_VSNPRINTF 0" >>confdefs.h
14715
14716 fi
14717
14718
14719
14720 if test "$ac_cv_func_putenv" = "yes"; then
14721
14722
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
14725 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
14726 if ${bash_cv_std_putenv+:} false; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731
14732 #if STDC_HEADERS
14733 #include <stdlib.h>
14734 #include <stddef.h>
14735 #endif
14736 #ifndef __STDC__
14737 # ifndef const
14738 # define const
14739 # endif
14740 #endif
14741 #ifdef PROTOTYPES
14742 extern int putenv (char *);
14743 #else
14744 extern int putenv ();
14745 #endif
14746
14747 int
14748 main ()
14749 {
14750 return (putenv == 0);
14751 ;
14752 return 0;
14753 }
14754 _ACEOF
14755 if ac_fn_c_try_link "$LINENO"; then :
14756 bash_cv_std_putenv=yes
14757 else
14758 bash_cv_std_putenv=no
14759
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext \
14762 conftest$ac_exeext conftest.$ac_ext
14763 fi
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
14765 $as_echo "$bash_cv_std_putenv" >&6; }
14766 if test $bash_cv_std_putenv = yes; then
14767 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
14768
14769 fi
14770
14771 else
14772 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
14773
14774 fi
14775 if test "$ac_cv_func_unsetenv" = "yes"; then
14776
14777
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
14780 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
14781 if ${bash_cv_std_unsetenv+:} false; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786
14787 #if STDC_HEADERS
14788 #include <stdlib.h>
14789 #include <stddef.h>
14790 #endif
14791 #ifndef __STDC__
14792 # ifndef const
14793 # define const
14794 # endif
14795 #endif
14796 #ifdef PROTOTYPES
14797 extern int unsetenv (const char *);
14798 #else
14799 extern int unsetenv ();
14800 #endif
14801
14802 int
14803 main ()
14804 {
14805 return (unsetenv == 0);
14806 ;
14807 return 0;
14808 }
14809 _ACEOF
14810 if ac_fn_c_try_link "$LINENO"; then :
14811 bash_cv_std_unsetenv=yes
14812 else
14813 bash_cv_std_unsetenv=no
14814
14815 fi
14816 rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
14818 fi
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
14820 $as_echo "$bash_cv_std_unsetenv" >&6; }
14821 if test $bash_cv_std_unsetenv = yes; then
14822 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
14823
14824 fi
14825
14826 else
14827 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
14828
14829 fi
14830
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
14832 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
14833 if ${bash_cv_printf_a_format+:} false; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836 if test "$cross_compiling" = yes; then :
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
14838 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
14839 bash_cv_printf_a_format=no
14840
14841 else
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844
14845 #include <stdio.h>
14846 #include <string.h>
14847
14848 int
14849 main()
14850 {
14851 double y = 0.0;
14852 char abuf[1024];
14853
14854 sprintf(abuf, "%A", y);
14855 exit(strchr(abuf, 'P') == (char *)0);
14856 }
14857
14858 _ACEOF
14859 if ac_fn_c_try_run "$LINENO"; then :
14860 bash_cv_printf_a_format=yes
14861 else
14862 bash_cv_printf_a_format=no
14863 fi
14864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14865 conftest.$ac_objext conftest.beam conftest.$ac_ext
14866 fi
14867
14868 fi
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
14871 $as_echo "$bash_cv_printf_a_format" >&6; }
14872 if test $bash_cv_printf_a_format = yes; then
14873 $as_echo "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
14874
14875 fi
14876
14877
14878
14879
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
14881 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
14882 if ${bash_cv_must_reinstall_sighandlers+:} false; then :
14883 $as_echo_n "(cached) " >&6
14884 else
14885 if test "$cross_compiling" = yes; then :
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
14887 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
14888 bash_cv_must_reinstall_sighandlers=no
14889
14890 else
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893
14894 #include <signal.h>
14895 #ifdef HAVE_UNISTD_H
14896 #include <unistd.h>
14897 #endif
14898
14899 typedef RETSIGTYPE sigfunc();
14900
14901 int nsigint;
14902
14903 #ifdef HAVE_POSIX_SIGNALS
14904 sigfunc *
14905 set_signal_handler(sig, handler)
14906 int sig;
14907 sigfunc *handler;
14908 {
14909 struct sigaction act, oact;
14910 act.sa_handler = handler;
14911 act.sa_flags = 0;
14912 sigemptyset (&act.sa_mask);
14913 sigemptyset (&oact.sa_mask);
14914 sigaction (sig, &act, &oact);
14915 return (oact.sa_handler);
14916 }
14917 #else
14918 #define set_signal_handler(s, h) signal(s, h)
14919 #endif
14920
14921 RETSIGTYPE
14922 sigint(s)
14923 int s;
14924 {
14925 nsigint++;
14926 }
14927
14928 main()
14929 {
14930 nsigint = 0;
14931 set_signal_handler(SIGINT, sigint);
14932 kill((int)getpid(), SIGINT);
14933 kill((int)getpid(), SIGINT);
14934 exit(nsigint != 2);
14935 }
14936
14937 _ACEOF
14938 if ac_fn_c_try_run "$LINENO"; then :
14939 bash_cv_must_reinstall_sighandlers=no
14940 else
14941 bash_cv_must_reinstall_sighandlers=yes
14942 fi
14943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14944 conftest.$ac_objext conftest.beam conftest.$ac_ext
14945 fi
14946
14947 fi
14948
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
14950 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
14951 if test $bash_cv_must_reinstall_sighandlers = yes; then
14952 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
14953
14954 fi
14955
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
14958 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
14959 if ${bash_cv_job_control_missing+:} false; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 if test "$cross_compiling" = yes; then :
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
14964 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
14965 bash_cv_job_control_missing=missing
14966
14967 else
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14970
14971 #include <sys/types.h>
14972 #ifdef HAVE_SYS_WAIT_H
14973 #include <sys/wait.h>
14974 #endif
14975 #ifdef HAVE_UNISTD_H
14976 #include <unistd.h>
14977 #endif
14978 #include <signal.h>
14979
14980 /* Add more tests in here as appropriate. */
14981 main()
14982 {
14983 /* signal type */
14984 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
14985 exit(1);
14986 #endif
14987
14988 /* signals and tty control. */
14989 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
14990 exit (1);
14991 #endif
14992
14993 /* process control */
14994 #if !defined (WNOHANG) || !defined (WUNTRACED)
14995 exit(1);
14996 #endif
14997
14998 /* Posix systems have tcgetpgrp and waitpid. */
14999 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
15000 exit(1);
15001 #endif
15002
15003 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
15004 exit(1);
15005 #endif
15006
15007 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
15008 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
15009 exit(1);
15010 #endif
15011
15012 exit(0);
15013 }
15014 _ACEOF
15015 if ac_fn_c_try_run "$LINENO"; then :
15016 bash_cv_job_control_missing=present
15017 else
15018 bash_cv_job_control_missing=missing
15019 fi
15020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15021 conftest.$ac_objext conftest.beam conftest.$ac_ext
15022 fi
15023
15024 fi
15025
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
15027 $as_echo "$bash_cv_job_control_missing" >&6; }
15028 if test $bash_cv_job_control_missing = missing; then
15029 $as_echo "#define JOB_CONTROL_MISSING 1" >>confdefs.h
15030
15031 fi
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
15034 $as_echo_n "checking for presence of named pipes... " >&6; }
15035 if ${bash_cv_sys_named_pipes+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 if test "$cross_compiling" = yes; then :
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
15040 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
15041 bash_cv_sys_named_pipes=missing
15042
15043 else
15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15046
15047 #include <sys/types.h>
15048 #include <sys/stat.h>
15049 #ifdef HAVE_UNISTD_H
15050 #include <unistd.h>
15051 #endif
15052
15053 /* Add more tests in here as appropriate. */
15054 main()
15055 {
15056 int fd, err;
15057
15058 #if defined (HAVE_MKFIFO)
15059 exit (0);
15060 #endif
15061
15062 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
15063 exit (1);
15064 #endif
15065
15066 #if defined (NeXT)
15067 exit (1);
15068 #endif
15069 err = mkdir("bash-aclocal", 0700);
15070 if (err < 0) {
15071 perror ("mkdir");
15072 exit(1);
15073 }
15074 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
15075 if (fd == -1) {
15076 rmdir ("bash-aclocal");
15077 exit (1);
15078 }
15079 close(fd);
15080 unlink ("bash-aclocal/sh-np-autoconf");
15081 rmdir ("bash-aclocal");
15082 exit(0);
15083 }
15084 _ACEOF
15085 if ac_fn_c_try_run "$LINENO"; then :
15086 bash_cv_sys_named_pipes=present
15087 else
15088 bash_cv_sys_named_pipes=missing
15089 fi
15090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15091 conftest.$ac_objext conftest.beam conftest.$ac_ext
15092 fi
15093
15094 fi
15095
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
15097 $as_echo "$bash_cv_sys_named_pipes" >&6; }
15098 if test $bash_cv_sys_named_pipes = missing; then
15099 $as_echo "#define NAMED_PIPES_MISSING 1" >>confdefs.h
15100
15101 fi
15102
15103
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15105 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15106 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111 #include <sys/types.h>
15112 #include <termios.h>
15113 #ifdef TIOCGWINSZ
15114 yes
15115 #endif
15116
15117 _ACEOF
15118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15119 $EGREP "yes" >/dev/null 2>&1; then :
15120 ac_cv_sys_tiocgwinsz_in_termios_h=yes
15121 else
15122 ac_cv_sys_tiocgwinsz_in_termios_h=no
15123 fi
15124 rm -f conftest*
15125
15126 fi
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15128 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15129
15130 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15132 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15133 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 #include <sys/types.h>
15139 #include <sys/ioctl.h>
15140 #ifdef TIOCGWINSZ
15141 yes
15142 #endif
15143
15144 _ACEOF
15145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15146 $EGREP "yes" >/dev/null 2>&1; then :
15147 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
15148 else
15149 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
15150 fi
15151 rm -f conftest*
15152
15153 fi
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15155 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15156
15157 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15158
15159 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15160
15161 fi
15162 fi
15163
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
15165 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
15166 if ${bash_cv_tiocstat_in_ioctl+:} false; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #include <sys/types.h>
15172 #include <sys/ioctl.h>
15173 int
15174 main ()
15175 {
15176 int x = TIOCSTAT;
15177 ;
15178 return 0;
15179 }
15180 _ACEOF
15181 if ac_fn_c_try_compile "$LINENO"; then :
15182 bash_cv_tiocstat_in_ioctl=yes
15183 else
15184 bash_cv_tiocstat_in_ioctl=no
15185 fi
15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 fi
15188
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
15190 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
15191 if test $bash_cv_tiocstat_in_ioctl = yes; then
15192 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
15193
15194 fi
15195
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
15197 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
15198 if ${bash_cv_fionread_in_ioctl+:} false; then :
15199 $as_echo_n "(cached) " >&6
15200 else
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 #include <sys/types.h>
15204 #include <sys/ioctl.h>
15205 int
15206 main ()
15207 {
15208 int x = FIONREAD;
15209 ;
15210 return 0;
15211 }
15212 _ACEOF
15213 if ac_fn_c_try_compile "$LINENO"; then :
15214 bash_cv_fionread_in_ioctl=yes
15215 else
15216 bash_cv_fionread_in_ioctl=no
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 fi
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
15222 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
15223 if test $bash_cv_fionread_in_ioctl = yes; then
15224 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
15225
15226 fi
15227
15228
15229
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
15231 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
15232 if ${bash_cv_wcontinued_broken+:} false; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 if test "$cross_compiling" = yes; then :
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
15237 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
15238 bash_cv_wcontinued_broken=no
15239
15240 else
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15243
15244 #include <sys/types.h>
15245 #include <sys/wait.h>
15246 #include <unistd.h>
15247 #include <errno.h>
15248
15249 #ifndef errno
15250 extern int errno;
15251 #endif
15252 main()
15253 {
15254 int x;
15255
15256 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
15257 if (x == -1 && errno == EINVAL)
15258 exit (1);
15259 else
15260 exit (0);
15261 }
15262
15263 _ACEOF
15264 if ac_fn_c_try_run "$LINENO"; then :
15265 bash_cv_wcontinued_broken=no
15266 else
15267 bash_cv_wcontinued_broken=yes
15268 fi
15269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15270 conftest.$ac_objext conftest.beam conftest.$ac_ext
15271 fi
15272
15273 fi
15274
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
15276 $as_echo "$bash_cv_wcontinued_broken" >&6; }
15277 if test $bash_cv_wcontinued_broken = yes; then
15278 $as_echo "#define WCONTINUED_BROKEN 1" >>confdefs.h
15279
15280 fi
15281
15282
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
15284 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
15285 if ${bash_cv_speed_t_in_sys_types+:} false; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 #include <sys/types.h>
15291 int
15292 main ()
15293 {
15294 speed_t x;
15295 ;
15296 return 0;
15297 }
15298 _ACEOF
15299 if ac_fn_c_try_compile "$LINENO"; then :
15300 bash_cv_speed_t_in_sys_types=yes
15301 else
15302 bash_cv_speed_t_in_sys_types=no
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305 fi
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
15308 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
15309 if test $bash_cv_speed_t_in_sys_types = yes; then
15310 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
15311
15312 fi
15313
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
15315 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
15316 if ${bash_cv_getpw_declared+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321
15322 #include <sys/types.h>
15323 #ifdef HAVE_UNISTD_H
15324 # include <unistd.h>
15325 #endif
15326 #include <pwd.h>
15327
15328 _ACEOF
15329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15330 $EGREP "getpwuid" >/dev/null 2>&1; then :
15331 bash_cv_getpw_declared=yes
15332 else
15333 bash_cv_getpw_declared=no
15334 fi
15335 rm -f conftest*
15336
15337 fi
15338
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
15340 $as_echo "$bash_cv_getpw_declared" >&6; }
15341 if test $bash_cv_getpw_declared = yes; then
15342 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
15343
15344 fi
15345
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
15347 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
15348 if ${bash_cv_unusable_rtsigs+:} false; then :
15349 $as_echo_n "(cached) " >&6
15350 else
15351 if test "$cross_compiling" = yes; then :
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
15353 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
15354 bash_cv_unusable_rtsigs=yes
15355
15356 else
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359
15360 #include <sys/types.h>
15361 #include <signal.h>
15362
15363 #ifndef NSIG
15364 # define NSIG 64
15365 #endif
15366
15367 main ()
15368 {
15369 int n_sigs = 2 * NSIG;
15370 #ifdef SIGRTMIN
15371 int rtmin = SIGRTMIN;
15372 #else
15373 int rtmin = 0;
15374 #endif
15375
15376 exit(rtmin < n_sigs);
15377 }
15378 _ACEOF
15379 if ac_fn_c_try_run "$LINENO"; then :
15380 bash_cv_unusable_rtsigs=yes
15381 else
15382 bash_cv_unusable_rtsigs=no
15383 fi
15384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15385 conftest.$ac_objext conftest.beam conftest.$ac_ext
15386 fi
15387
15388 fi
15389
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
15391 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
15392 if test $bash_cv_unusable_rtsigs = yes; then
15393 $as_echo "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
15394
15395 fi
15396
15397
15398
15399
15400
15401 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
15402 SIGLIST_O=siglist.o
15403 else
15404 SIGLIST_O=
15405 fi
15406
15407
15408
15409 case "$host_os" in
15410 hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
15411 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
15412 if ${bash_cv_kernel_rlimit+:} false; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417
15418 #include <sys/types.h>
15419 #include <sys/resource.h>
15420
15421 int
15422 main ()
15423 {
15424
15425 int f;
15426 f = RLIMIT_DATA;
15427
15428 ;
15429 return 0;
15430 }
15431 _ACEOF
15432 if ac_fn_c_try_compile "$LINENO"; then :
15433 bash_cv_kernel_rlimit=no
15434 else
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437
15438 #include <sys/types.h>
15439 #define _KERNEL
15440 #include <sys/resource.h>
15441 #undef _KERNEL
15442
15443 int
15444 main ()
15445 {
15446
15447 int f;
15448 f = RLIMIT_DATA;
15449
15450 ;
15451 return 0;
15452 }
15453 _ACEOF
15454 if ac_fn_c_try_compile "$LINENO"; then :
15455 bash_cv_kernel_rlimit=yes
15456 else
15457 bash_cv_kernel_rlimit=no
15458 fi
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460
15461 fi
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 fi
15464
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
15466 $as_echo "$bash_cv_kernel_rlimit" >&6; }
15467 if test $bash_cv_kernel_rlimit = yes; then
15468 $as_echo "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
15469
15470 fi
15471 ;;
15472 esac
15473
15474 if test "$opt_readline" = yes; then
15475 case "$host_os" in
15476 aix*) prefer_curses=yes ;;
15477 esac
15478
15479 if test "X$bash_cv_termcap_lib" = "X"; then
15480 _bash_needmsg=yes
15481 else
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15483 $as_echo_n "checking which library has the termcap functions... " >&6; }
15484 _bash_needmsg=
15485 fi
15486 if ${bash_cv_termcap_lib+:} false; then :
15487 $as_echo_n "(cached) " >&6
15488 else
15489 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
15490 if test "x$ac_cv_func_tgetent" = xyes; then :
15491 bash_cv_termcap_lib=libc
15492 else
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
15494 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
15495 if ${ac_cv_lib_termcap_tgetent+:} false; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 ac_check_lib_save_LIBS=$LIBS
15499 LIBS="-ltermcap $LIBS"
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502
15503 /* Override any GCC internal prototype to avoid an error.
15504 Use char because int might match the return type of a GCC
15505 builtin and then its argument prototype would still apply. */
15506 #ifdef __cplusplus
15507 extern "C"
15508 #endif
15509 char tgetent ();
15510 int
15511 main ()
15512 {
15513 return tgetent ();
15514 ;
15515 return 0;
15516 }
15517 _ACEOF
15518 if ac_fn_c_try_link "$LINENO"; then :
15519 ac_cv_lib_termcap_tgetent=yes
15520 else
15521 ac_cv_lib_termcap_tgetent=no
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext \
15524 conftest$ac_exeext conftest.$ac_ext
15525 LIBS=$ac_check_lib_save_LIBS
15526 fi
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
15528 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
15529 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
15530 bash_cv_termcap_lib=libtermcap
15531 else
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
15533 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
15534 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-ltinfo $LIBS"
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15541
15542 /* Override any GCC internal prototype to avoid an error.
15543 Use char because int might match the return type of a GCC
15544 builtin and then its argument prototype would still apply. */
15545 #ifdef __cplusplus
15546 extern "C"
15547 #endif
15548 char tgetent ();
15549 int
15550 main ()
15551 {
15552 return tgetent ();
15553 ;
15554 return 0;
15555 }
15556 _ACEOF
15557 if ac_fn_c_try_link "$LINENO"; then :
15558 ac_cv_lib_tinfo_tgetent=yes
15559 else
15560 ac_cv_lib_tinfo_tgetent=no
15561 fi
15562 rm -f core conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15564 LIBS=$ac_check_lib_save_LIBS
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
15567 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
15568 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
15569 bash_cv_termcap_lib=libtinfo
15570 else
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
15572 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
15573 if ${ac_cv_lib_curses_tgetent+:} false; then :
15574 $as_echo_n "(cached) " >&6
15575 else
15576 ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lcurses $LIBS"
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580
15581 /* Override any GCC internal prototype to avoid an error.
15582 Use char because int might match the return type of a GCC
15583 builtin and then its argument prototype would still apply. */
15584 #ifdef __cplusplus
15585 extern "C"
15586 #endif
15587 char tgetent ();
15588 int
15589 main ()
15590 {
15591 return tgetent ();
15592 ;
15593 return 0;
15594 }
15595 _ACEOF
15596 if ac_fn_c_try_link "$LINENO"; then :
15597 ac_cv_lib_curses_tgetent=yes
15598 else
15599 ac_cv_lib_curses_tgetent=no
15600 fi
15601 rm -f core conftest.err conftest.$ac_objext \
15602 conftest$ac_exeext conftest.$ac_ext
15603 LIBS=$ac_check_lib_save_LIBS
15604 fi
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
15606 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
15607 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
15608 bash_cv_termcap_lib=libcurses
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
15611 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
15612 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 ac_check_lib_save_LIBS=$LIBS
15616 LIBS="-lncurses $LIBS"
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619
15620 /* Override any GCC internal prototype to avoid an error.
15621 Use char because int might match the return type of a GCC
15622 builtin and then its argument prototype would still apply. */
15623 #ifdef __cplusplus
15624 extern "C"
15625 #endif
15626 char tgetent ();
15627 int
15628 main ()
15629 {
15630 return tgetent ();
15631 ;
15632 return 0;
15633 }
15634 _ACEOF
15635 if ac_fn_c_try_link "$LINENO"; then :
15636 ac_cv_lib_ncurses_tgetent=yes
15637 else
15638 ac_cv_lib_ncurses_tgetent=no
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext \
15641 conftest$ac_exeext conftest.$ac_ext
15642 LIBS=$ac_check_lib_save_LIBS
15643 fi
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
15645 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
15646 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
15647 bash_cv_termcap_lib=libncurses
15648 else
15649 bash_cv_termcap_lib=gnutermcap
15650 fi
15651
15652 fi
15653
15654 fi
15655
15656 fi
15657
15658 fi
15659
15660 fi
15661
15662 if test "X$_bash_needmsg" = "Xyes"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15664 $as_echo_n "checking which library has the termcap functions... " >&6; }
15665 fi
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
15667 $as_echo "using $bash_cv_termcap_lib" >&6; }
15668 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
15669 LDFLAGS="$LDFLAGS -L./lib/termcap"
15670 TERMCAP_LIB="./lib/termcap/libtermcap.a"
15671 TERMCAP_DEP="./lib/termcap/libtermcap.a"
15672 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
15673 TERMCAP_LIB=-ltermcap
15674 TERMCAP_DEP=
15675 elif test $bash_cv_termcap_lib = libtinfo; then
15676 TERMCAP_LIB=-ltinfo
15677 TERMCAP_DEP=
15678 elif test $bash_cv_termcap_lib = libncurses; then
15679 TERMCAP_LIB=-lncurses
15680 TERMCAP_DEP=
15681 elif test $bash_cv_termcap_lib = libc; then
15682 TERMCAP_LIB=
15683 TERMCAP_DEP=
15684 else
15685 TERMCAP_LIB=-lcurses
15686 TERMCAP_DEP=
15687 fi
15688
15689 fi
15690
15691
15692
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
15694 $as_echo_n "checking whether /dev/fd is available... " >&6; }
15695 if ${bash_cv_dev_fd+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 bash_cv_dev_fd=""
15699 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
15700 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
15701 if (exec test -r /dev/fd/3 3</dev/null) ; then
15702 bash_cv_dev_fd=standard
15703 else
15704 bash_cv_dev_fd=absent
15705 fi
15706 fi
15707 if test -z "$bash_cv_dev_fd" ; then
15708 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
15709 bash_cv_dev_fd=whacky
15710 else
15711 bash_cv_dev_fd=absent
15712 fi
15713 fi
15714
15715 fi
15716
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
15718 $as_echo "$bash_cv_dev_fd" >&6; }
15719 if test $bash_cv_dev_fd = "standard"; then
15720 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
15721
15722 $as_echo "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
15723
15724 elif test $bash_cv_dev_fd = "whacky"; then
15725 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
15726
15727 $as_echo "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
15728
15729 fi
15730
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
15732 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
15733 if ${bash_cv_dev_stdin+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
15737 bash_cv_dev_stdin=present
15738 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
15739 bash_cv_dev_stdin=present
15740 else
15741 bash_cv_dev_stdin=absent
15742 fi
15743
15744 fi
15745
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
15747 $as_echo "$bash_cv_dev_stdin" >&6; }
15748 if test $bash_cv_dev_stdin = "present"; then
15749 $as_echo "#define HAVE_DEV_STDIN 1" >>confdefs.h
15750
15751 fi
15752
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
15754 $as_echo_n "checking for default mail directory... " >&6; }
15755 if ${bash_cv_mail_dir+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 if test -d /var/mail; then
15759 bash_cv_mail_dir=/var/mail
15760 elif test -d /var/spool/mail; then
15761 bash_cv_mail_dir=/var/spool/mail
15762 elif test -d /usr/mail; then
15763 bash_cv_mail_dir=/usr/mail
15764 elif test -d /usr/spool/mail; then
15765 bash_cv_mail_dir=/usr/spool/mail
15766 else
15767 bash_cv_mail_dir=unknown
15768 fi
15769
15770 fi
15771
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
15773 $as_echo "$bash_cv_mail_dir" >&6; }
15774 cat >>confdefs.h <<_ACEOF
15775 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
15776 _ACEOF
15777
15778
15779
15780 if test "$bash_cv_job_control_missing" = missing; then
15781 opt_job_control=no
15782 fi
15783
15784 if test "$opt_job_control" = yes; then
15785 $as_echo "#define JOB_CONTROL 1" >>confdefs.h
15786
15787 JOBS_O=jobs.o
15788 else
15789 JOBS_O=nojobs.o
15790 fi
15791
15792
15793
15794
15795 LOCAL_DEFS=-DSHELL
15796
15797
15798 case "${host_os}" in
15799 sysv4.2*) $as_echo "#define SVR4_2 1" >>confdefs.h
15800
15801 $as_echo "#define SVR4 1" >>confdefs.h
15802 ;;
15803 sysv4*) $as_echo "#define SVR4 1" >>confdefs.h
15804 ;;
15805 sysv5*) $as_echo "#define SVR5 1" >>confdefs.h
15806 ;;
15807 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
15808 hpux*) LOCAL_CFLAGS=-DHPUX ;;
15809 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
15810 isc*) LOCAL_CFLAGS=-Disc386 ;;
15811 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
15812 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
15813 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
15814 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
15815 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
15816 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
15817 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
15818 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
15819 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
15820 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
15821 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
15822 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
15823 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
15824 case "`uname -r`" in
15825 2.[456789]*|3*) $as_echo "#define PGRP_PIPE 1" >>confdefs.h
15826 ;;
15827 esac ;;
15828 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
15829 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
15830 powerux*) LOCAL_LIBS="-lgen" ;;
15831 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
15832 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
15833 esac
15834
15835 case "${host_os}-${CC}" in
15836 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
15837 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
15838 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
15839 esac
15840
15841 case "${host_os}" in
15842 freebsd[3-9]*)
15843 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
15844 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
15845 fi ;;
15846 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
15847 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
15848 esac
15849
15850 case "$host_cpu" in
15851 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
15852 esac
15853
15854 case "$host_cpu-$host_os" in
15855 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
15856 esac
15857
15858 case "$host_cpu-$host_vendor-$host_os" in
15859 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
15860 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
15861 esac
15862
15863 #
15864 # Shared object configuration section. These values are generated by
15865 # ${srcdir}/support/shobj-conf
15866 #
15867 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
15868 then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
15870 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
15871 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
15872
15873
15874
15875
15876
15877
15878
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
15880 $as_echo "$SHOBJ_STATUS" >&6; }
15881 fi
15882
15883 # try to create a directory tree if the source is elsewhere
15884 # this should be packaged into a script accessible via ${srcdir}/support
15885 case "$srcdir" in
15886 .) ;;
15887 *) for d in doc tests support lib examples; do # dirs
15888 test -d $d || mkdir $d
15889 done
15890 for ld in readline glob tilde malloc sh termcap; do # libdirs
15891 test -d lib/$ld || mkdir lib/$ld
15892 done
15893 test -d examples/loadables || mkdir examples/loadables # loadable builtins
15894 test -d examples/loadables/perl || mkdir examples/loadables/perl
15895 ;;
15896 esac
15897
15898 BUILD_DIR=`pwd`
15899 case "$BUILD_DIR" in
15900 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
15901 *) ;;
15902 esac
15903
15904 if test -z "$localedir"; then
15905 localedir='${datarootdir}/locale'
15906 fi
15907 if test -z "$datarootdir"; then
15908 datarootdir='${prefix}/share'
15909 fi
15910
15911
15912
15913
15914
15915
15916 # Some versions of autoconf don't substitute these automatically
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938 #AC_SUBST(ALLOCA_SOURCE)
15939 #AC_SUBST(ALLOCA_OBJECT)
15940
15941 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
15942
15943 ac_config_commands="$ac_config_commands default"
15944
15945 cat >confcache <<\_ACEOF
15946 # This file is a shell script that caches the results of configure
15947 # tests run on this system so they can be shared between configure
15948 # scripts and configure runs, see configure's option --config-cache.
15949 # It is not useful on other systems. If it contains results you don't
15950 # want to keep, you may remove or edit it.
15951 #
15952 # config.status only pays attention to the cache file if you give it
15953 # the --recheck option to rerun configure.
15954 #
15955 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15956 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15957 # following values.
15958
15959 _ACEOF
15960
15961 # The following way of writing the cache mishandles newlines in values,
15962 # but we know of no workaround that is simple, portable, and efficient.
15963 # So, we kill variables containing newlines.
15964 # Ultrix sh set writes to stderr and can't be redirected directly,
15965 # and sets the high bit in the cache file unless we assign to the vars.
15966 (
15967 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15968 eval ac_val=\$$ac_var
15969 case $ac_val in #(
15970 *${as_nl}*)
15971 case $ac_var in #(
15972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15974 esac
15975 case $ac_var in #(
15976 _ | IFS | as_nl) ;; #(
15977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15978 *) { eval $ac_var=; unset $ac_var;} ;;
15979 esac ;;
15980 esac
15981 done
15982
15983 (set) 2>&1 |
15984 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15985 *${as_nl}ac_space=\ *)
15986 # `set' does not quote correctly, so add quotes: double-quote
15987 # substitution turns \\\\ into \\, and sed turns \\ into \.
15988 sed -n \
15989 "s/'/'\\\\''/g;
15990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15991 ;; #(
15992 *)
15993 # `set' quotes correctly as required by POSIX, so do not add quotes.
15994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15995 ;;
15996 esac |
15997 sort
15998 ) |
15999 sed '
16000 /^ac_cv_env_/b end
16001 t clear
16002 :clear
16003 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16004 t end
16005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16006 :end' >>confcache
16007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16008 if test -w "$cache_file"; then
16009 if test "x$cache_file" != "x/dev/null"; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16011 $as_echo "$as_me: updating cache $cache_file" >&6;}
16012 if test ! -f "$cache_file" || test -h "$cache_file"; then
16013 cat confcache >"$cache_file"
16014 else
16015 case $cache_file in #(
16016 */* | ?:*)
16017 mv -f confcache "$cache_file"$$ &&
16018 mv -f "$cache_file"$$ "$cache_file" ;; #(
16019 *)
16020 mv -f confcache "$cache_file" ;;
16021 esac
16022 fi
16023 fi
16024 else
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16026 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16027 fi
16028 fi
16029 rm -f confcache
16030
16031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16032 # Let make expand exec_prefix.
16033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16034
16035 DEFS=-DHAVE_CONFIG_H
16036
16037 ac_libobjs=
16038 ac_ltlibobjs=
16039 U=
16040 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16041 # 1. Remove the extension, and $U if already installed.
16042 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16043 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16044 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16045 # will be set to the directory where LIBOBJS objects are built.
16046 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16047 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16048 done
16049 LIBOBJS=$ac_libobjs
16050
16051 LTLIBOBJS=$ac_ltlibobjs
16052
16053
16054
16055
16056 : "${CONFIG_STATUS=./config.status}"
16057 ac_write_fail=0
16058 ac_clean_files_save=$ac_clean_files
16059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16061 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16062 as_write_fail=0
16063 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16064 #! $SHELL
16065 # Generated by $as_me.
16066 # Run this file to recreate the current configuration.
16067 # Compiler output produced by configure, useful for debugging
16068 # configure, is in config.log if it exists.
16069
16070 debug=false
16071 ac_cs_recheck=false
16072 ac_cs_silent=false
16073
16074 SHELL=\${CONFIG_SHELL-$SHELL}
16075 export SHELL
16076 _ASEOF
16077 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16078 ## -------------------- ##
16079 ## M4sh Initialization. ##
16080 ## -------------------- ##
16081
16082 # Be more Bourne compatible
16083 DUALCASE=1; export DUALCASE # for MKS sh
16084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16085 emulate sh
16086 NULLCMD=:
16087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16088 # is contrary to our usage. Disable this feature.
16089 alias -g '${1+"$@"}'='"$@"'
16090 setopt NO_GLOB_SUBST
16091 else
16092 case `(set -o) 2>/dev/null` in #(
16093 *posix*) :
16094 set -o posix ;; #(
16095 *) :
16096 ;;
16097 esac
16098 fi
16099
16100
16101 as_nl='
16102 '
16103 export as_nl
16104 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16105 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16106 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16107 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16108 # Prefer a ksh shell builtin over an external printf program on Solaris,
16109 # but without wasting forks for bash or zsh.
16110 if test -z "$BASH_VERSION$ZSH_VERSION" \
16111 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16112 as_echo='print -r --'
16113 as_echo_n='print -rn --'
16114 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16115 as_echo='printf %s\n'
16116 as_echo_n='printf %s'
16117 else
16118 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16119 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16120 as_echo_n='/usr/ucb/echo -n'
16121 else
16122 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16123 as_echo_n_body='eval
16124 arg=$1;
16125 case $arg in #(
16126 *"$as_nl"*)
16127 expr "X$arg" : "X\\(.*\\)$as_nl";
16128 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16129 esac;
16130 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16131 '
16132 export as_echo_n_body
16133 as_echo_n='sh -c $as_echo_n_body as_echo'
16134 fi
16135 export as_echo_body
16136 as_echo='sh -c $as_echo_body as_echo'
16137 fi
16138
16139 # The user is always right.
16140 if test "${PATH_SEPARATOR+set}" != set; then
16141 PATH_SEPARATOR=:
16142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16143 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16144 PATH_SEPARATOR=';'
16145 }
16146 fi
16147
16148
16149 # IFS
16150 # We need space, tab and new line, in precisely that order. Quoting is
16151 # there to prevent editors from complaining about space-tab.
16152 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16153 # splitting by setting IFS to empty value.)
16154 IFS=" "" $as_nl"
16155
16156 # Find who we are. Look in the path if we contain no directory separator.
16157 as_myself=
16158 case $0 in #((
16159 *[\\/]* ) as_myself=$0 ;;
16160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161 for as_dir in $PATH
16162 do
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
16165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16166 done
16167 IFS=$as_save_IFS
16168
16169 ;;
16170 esac
16171 # We did not find ourselves, most probably we were run as `sh COMMAND'
16172 # in which case we are not to be found in the path.
16173 if test "x$as_myself" = x; then
16174 as_myself=$0
16175 fi
16176 if test ! -f "$as_myself"; then
16177 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16178 exit 1
16179 fi
16180
16181 # Unset variables that we do not need and which cause bugs (e.g. in
16182 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16183 # suppresses any "Segmentation fault" message there. '((' could
16184 # trigger a bug in pdksh 5.2.14.
16185 for as_var in BASH_ENV ENV MAIL MAILPATH
16186 do eval test x\${$as_var+set} = xset \
16187 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16188 done
16189 PS1='$ '
16190 PS2='> '
16191 PS4='+ '
16192
16193 # NLS nuisances.
16194 LC_ALL=C
16195 export LC_ALL
16196 LANGUAGE=C
16197 export LANGUAGE
16198
16199 # CDPATH.
16200 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16201
16202
16203 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16204 # ----------------------------------------
16205 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16206 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16207 # script with STATUS, using 1 if that was 0.
16208 as_fn_error ()
16209 {
16210 as_status=$1; test $as_status -eq 0 && as_status=1
16211 if test "$4"; then
16212 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16213 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16214 fi
16215 $as_echo "$as_me: error: $2" >&2
16216 as_fn_exit $as_status
16217 } # as_fn_error
16218
16219
16220 # as_fn_set_status STATUS
16221 # -----------------------
16222 # Set $? to STATUS, without forking.
16223 as_fn_set_status ()
16224 {
16225 return $1
16226 } # as_fn_set_status
16227
16228 # as_fn_exit STATUS
16229 # -----------------
16230 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16231 as_fn_exit ()
16232 {
16233 set +e
16234 as_fn_set_status $1
16235 exit $1
16236 } # as_fn_exit
16237
16238 # as_fn_unset VAR
16239 # ---------------
16240 # Portably unset VAR.
16241 as_fn_unset ()
16242 {
16243 { eval $1=; unset $1;}
16244 }
16245 as_unset=as_fn_unset
16246 # as_fn_append VAR VALUE
16247 # ----------------------
16248 # Append the text in VALUE to the end of the definition contained in VAR. Take
16249 # advantage of any shell optimizations that allow amortized linear growth over
16250 # repeated appends, instead of the typical quadratic growth present in naive
16251 # implementations.
16252 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16253 eval 'as_fn_append ()
16254 {
16255 eval $1+=\$2
16256 }'
16257 else
16258 as_fn_append ()
16259 {
16260 eval $1=\$$1\$2
16261 }
16262 fi # as_fn_append
16263
16264 # as_fn_arith ARG...
16265 # ------------------
16266 # Perform arithmetic evaluation on the ARGs, and store the result in the
16267 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16268 # must be portable across $(()) and expr.
16269 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16270 eval 'as_fn_arith ()
16271 {
16272 as_val=$(( $* ))
16273 }'
16274 else
16275 as_fn_arith ()
16276 {
16277 as_val=`expr "$@" || test $? -eq 1`
16278 }
16279 fi # as_fn_arith
16280
16281
16282 if expr a : '\(a\)' >/dev/null 2>&1 &&
16283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16284 as_expr=expr
16285 else
16286 as_expr=false
16287 fi
16288
16289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16290 as_basename=basename
16291 else
16292 as_basename=false
16293 fi
16294
16295 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16296 as_dirname=dirname
16297 else
16298 as_dirname=false
16299 fi
16300
16301 as_me=`$as_basename -- "$0" ||
16302 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16303 X"$0" : 'X\(//\)$' \| \
16304 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16305 $as_echo X/"$0" |
16306 sed '/^.*\/\([^/][^/]*\)\/*$/{
16307 s//\1/
16308 q
16309 }
16310 /^X\/\(\/\/\)$/{
16311 s//\1/
16312 q
16313 }
16314 /^X\/\(\/\).*/{
16315 s//\1/
16316 q
16317 }
16318 s/.*/./; q'`
16319
16320 # Avoid depending upon Character Ranges.
16321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16324 as_cr_digits='0123456789'
16325 as_cr_alnum=$as_cr_Letters$as_cr_digits
16326
16327 ECHO_C= ECHO_N= ECHO_T=
16328 case `echo -n x` in #(((((
16329 -n*)
16330 case `echo 'xy\c'` in
16331 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16332 xy) ECHO_C='\c';;
16333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16334 ECHO_T=' ';;
16335 esac;;
16336 *)
16337 ECHO_N='-n';;
16338 esac
16339
16340 rm -f conf$$ conf$$.exe conf$$.file
16341 if test -d conf$$.dir; then
16342 rm -f conf$$.dir/conf$$.file
16343 else
16344 rm -f conf$$.dir
16345 mkdir conf$$.dir 2>/dev/null
16346 fi
16347 if (echo >conf$$.file) 2>/dev/null; then
16348 if ln -s conf$$.file conf$$ 2>/dev/null; then
16349 as_ln_s='ln -s'
16350 # ... but there are two gotchas:
16351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16353 # In both cases, we have to default to `cp -p'.
16354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16355 as_ln_s='cp -p'
16356 elif ln conf$$.file conf$$ 2>/dev/null; then
16357 as_ln_s=ln
16358 else
16359 as_ln_s='cp -p'
16360 fi
16361 else
16362 as_ln_s='cp -p'
16363 fi
16364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16365 rmdir conf$$.dir 2>/dev/null
16366
16367
16368 # as_fn_mkdir_p
16369 # -------------
16370 # Create "$as_dir" as a directory, including parents if necessary.
16371 as_fn_mkdir_p ()
16372 {
16373
16374 case $as_dir in #(
16375 -*) as_dir=./$as_dir;;
16376 esac
16377 test -d "$as_dir" || eval $as_mkdir_p || {
16378 as_dirs=
16379 while :; do
16380 case $as_dir in #(
16381 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16382 *) as_qdir=$as_dir;;
16383 esac
16384 as_dirs="'$as_qdir' $as_dirs"
16385 as_dir=`$as_dirname -- "$as_dir" ||
16386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387 X"$as_dir" : 'X\(//\)[^/]' \| \
16388 X"$as_dir" : 'X\(//\)$' \| \
16389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16390 $as_echo X"$as_dir" |
16391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16392 s//\1/
16393 q
16394 }
16395 /^X\(\/\/\)[^/].*/{
16396 s//\1/
16397 q
16398 }
16399 /^X\(\/\/\)$/{
16400 s//\1/
16401 q
16402 }
16403 /^X\(\/\).*/{
16404 s//\1/
16405 q
16406 }
16407 s/.*/./; q'`
16408 test -d "$as_dir" && break
16409 done
16410 test -z "$as_dirs" || eval "mkdir $as_dirs"
16411 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16412
16413
16414 } # as_fn_mkdir_p
16415 if mkdir -p . 2>/dev/null; then
16416 as_mkdir_p='mkdir -p "$as_dir"'
16417 else
16418 test -d ./-p && rmdir ./-p
16419 as_mkdir_p=false
16420 fi
16421
16422 if test -x / >/dev/null 2>&1; then
16423 as_test_x='test -x'
16424 else
16425 if ls -dL / >/dev/null 2>&1; then
16426 as_ls_L_option=L
16427 else
16428 as_ls_L_option=
16429 fi
16430 as_test_x='
16431 eval sh -c '\''
16432 if test -d "$1"; then
16433 test -d "$1/.";
16434 else
16435 case $1 in #(
16436 -*)set "./$1";;
16437 esac;
16438 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16439 ???[sx]*):;;*)false;;esac;fi
16440 '\'' sh
16441 '
16442 fi
16443 as_executable_p=$as_test_x
16444
16445 # Sed expression to map a string onto a valid CPP name.
16446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16447
16448 # Sed expression to map a string onto a valid variable name.
16449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16450
16451
16452 exec 6>&1
16453 ## ----------------------------------- ##
16454 ## Main body of $CONFIG_STATUS script. ##
16455 ## ----------------------------------- ##
16456 _ASEOF
16457 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16458
16459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460 # Save the log message, to keep $0 and so on meaningful, and to
16461 # report actual input values of CONFIG_FILES etc. instead of their
16462 # values after options handling.
16463 ac_log="
16464 This file was extended by bash $as_me 4.3-alpha, which was
16465 generated by GNU Autoconf 2.68. Invocation command line was
16466
16467 CONFIG_FILES = $CONFIG_FILES
16468 CONFIG_HEADERS = $CONFIG_HEADERS
16469 CONFIG_LINKS = $CONFIG_LINKS
16470 CONFIG_COMMANDS = $CONFIG_COMMANDS
16471 $ $0 $@
16472
16473 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16474 "
16475
16476 _ACEOF
16477
16478 case $ac_config_files in *"
16479 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16480 esac
16481
16482 case $ac_config_headers in *"
16483 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16484 esac
16485
16486
16487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16488 # Files that config.status was made for.
16489 config_files="$ac_config_files"
16490 config_headers="$ac_config_headers"
16491 config_commands="$ac_config_commands"
16492
16493 _ACEOF
16494
16495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16496 ac_cs_usage="\
16497 \`$as_me' instantiates files and other configuration actions
16498 from templates according to the current configuration. Unless the files
16499 and actions are specified as TAGs, all are instantiated by default.
16500
16501 Usage: $0 [OPTION]... [TAG]...
16502
16503 -h, --help print this help, then exit
16504 -V, --version print version number and configuration settings, then exit
16505 --config print configuration, then exit
16506 -q, --quiet, --silent
16507 do not print progress messages
16508 -d, --debug don't remove temporary files
16509 --recheck update $as_me by reconfiguring in the same conditions
16510 --file=FILE[:TEMPLATE]
16511 instantiate the configuration file FILE
16512 --header=FILE[:TEMPLATE]
16513 instantiate the configuration header FILE
16514
16515 Configuration files:
16516 $config_files
16517
16518 Configuration headers:
16519 $config_headers
16520
16521 Configuration commands:
16522 $config_commands
16523
16524 Report bugs to <bug-bash@gnu.org>."
16525
16526 _ACEOF
16527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16528 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16529 ac_cs_version="\\
16530 bash config.status 4.3-alpha
16531 configured by $0, generated by GNU Autoconf 2.68,
16532 with options \\"\$ac_cs_config\\"
16533
16534 Copyright (C) 2010 Free Software Foundation, Inc.
16535 This config.status script is free software; the Free Software Foundation
16536 gives unlimited permission to copy, distribute and modify it."
16537
16538 ac_pwd='$ac_pwd'
16539 srcdir='$srcdir'
16540 INSTALL='$INSTALL'
16541 test -n "\$AWK" || AWK=awk
16542 _ACEOF
16543
16544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16545 # The default lists apply if the user does not specify any file.
16546 ac_need_defaults=:
16547 while test $# != 0
16548 do
16549 case $1 in
16550 --*=?*)
16551 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16552 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16553 ac_shift=:
16554 ;;
16555 --*=)
16556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16557 ac_optarg=
16558 ac_shift=:
16559 ;;
16560 *)
16561 ac_option=$1
16562 ac_optarg=$2
16563 ac_shift=shift
16564 ;;
16565 esac
16566
16567 case $ac_option in
16568 # Handling of the options.
16569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16570 ac_cs_recheck=: ;;
16571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16572 $as_echo "$ac_cs_version"; exit ;;
16573 --config | --confi | --conf | --con | --co | --c )
16574 $as_echo "$ac_cs_config"; exit ;;
16575 --debug | --debu | --deb | --de | --d | -d )
16576 debug=: ;;
16577 --file | --fil | --fi | --f )
16578 $ac_shift
16579 case $ac_optarg in
16580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16581 '') as_fn_error $? "missing file argument" ;;
16582 esac
16583 as_fn_append CONFIG_FILES " '$ac_optarg'"
16584 ac_need_defaults=false;;
16585 --header | --heade | --head | --hea )
16586 $ac_shift
16587 case $ac_optarg in
16588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16589 esac
16590 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16591 ac_need_defaults=false;;
16592 --he | --h)
16593 # Conflict between --help and --header
16594 as_fn_error $? "ambiguous option: \`$1'
16595 Try \`$0 --help' for more information.";;
16596 --help | --hel | -h )
16597 $as_echo "$ac_cs_usage"; exit ;;
16598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16600 ac_cs_silent=: ;;
16601
16602 # This is an error.
16603 -*) as_fn_error $? "unrecognized option: \`$1'
16604 Try \`$0 --help' for more information." ;;
16605
16606 *) as_fn_append ac_config_targets " $1"
16607 ac_need_defaults=false ;;
16608
16609 esac
16610 shift
16611 done
16612
16613 ac_configure_extra_args=
16614
16615 if $ac_cs_silent; then
16616 exec 6>/dev/null
16617 ac_configure_extra_args="$ac_configure_extra_args --silent"
16618 fi
16619
16620 _ACEOF
16621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16622 if \$ac_cs_recheck; then
16623 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16624 shift
16625 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16626 CONFIG_SHELL='$SHELL'
16627 export CONFIG_SHELL
16628 exec "\$@"
16629 fi
16630
16631 _ACEOF
16632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16633 exec 5>>config.log
16634 {
16635 echo
16636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16637 ## Running $as_me. ##
16638 _ASBOX
16639 $as_echo "$ac_log"
16640 } >&5
16641
16642 _ACEOF
16643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16644 #
16645 # INIT-COMMANDS
16646 #
16647 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16648 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16649 # from automake.
16650 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16651 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16652 LINGUAS="${LINGUAS-%UNSET%}"
16653
16654
16655 _ACEOF
16656
16657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16658
16659 # Handling of arguments.
16660 for ac_config_target in $ac_config_targets
16661 do
16662 case $ac_config_target in
16663 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16664 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16666 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
16667 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
16668 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
16669 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
16670 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
16671 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
16672 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
16673 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
16674 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16675 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
16676 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16677 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
16678 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
16679 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16680
16681 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16682 esac
16683 done
16684
16685
16686 # If the user did not use the arguments to specify the items to instantiate,
16687 # then the envvar interface is used. Set only those that are not.
16688 # We use the long form for the default assignment because of an extremely
16689 # bizarre bug on SunOS 4.1.3.
16690 if $ac_need_defaults; then
16691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16694 fi
16695
16696 # Have a temporary directory for convenience. Make it in the build tree
16697 # simply because there is no reason against having it here, and in addition,
16698 # creating and moving files from /tmp can sometimes cause problems.
16699 # Hook for its removal unless debugging.
16700 # Note that there is a small window in which the directory will not be cleaned:
16701 # after its creation but before its name has been assigned to `$tmp'.
16702 $debug ||
16703 {
16704 tmp= ac_tmp=
16705 trap 'exit_status=$?
16706 : "${ac_tmp:=$tmp}"
16707 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16708 ' 0
16709 trap 'as_fn_exit 1' 1 2 13 15
16710 }
16711 # Create a (secure) tmp directory for tmp files.
16712
16713 {
16714 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16715 test -d "$tmp"
16716 } ||
16717 {
16718 tmp=./conf$$-$RANDOM
16719 (umask 077 && mkdir "$tmp")
16720 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16721 ac_tmp=$tmp
16722
16723 # Set up the scripts for CONFIG_FILES section.
16724 # No need to generate them if there are no CONFIG_FILES.
16725 # This happens for instance with `./config.status config.h'.
16726 if test -n "$CONFIG_FILES"; then
16727
16728
16729 ac_cr=`echo X | tr X '\015'`
16730 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16731 # But we know of no other shell where ac_cr would be empty at this
16732 # point, so we can use a bashism as a fallback.
16733 if test "x$ac_cr" = x; then
16734 eval ac_cr=\$\'\\r\'
16735 fi
16736 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16737 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16738 ac_cs_awk_cr='\\r'
16739 else
16740 ac_cs_awk_cr=$ac_cr
16741 fi
16742
16743 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16744 _ACEOF
16745
16746
16747 {
16748 echo "cat >conf$$subs.awk <<_ACEOF" &&
16749 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16750 echo "_ACEOF"
16751 } >conf$$subs.sh ||
16752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16753 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16754 ac_delim='%!_!# '
16755 for ac_last_try in false false false false false :; do
16756 . ./conf$$subs.sh ||
16757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16758
16759 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16760 if test $ac_delim_n = $ac_delim_num; then
16761 break
16762 elif $ac_last_try; then
16763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16764 else
16765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16766 fi
16767 done
16768 rm -f conf$$subs.sh
16769
16770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16771 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16772 _ACEOF
16773 sed -n '
16774 h
16775 s/^/S["/; s/!.*/"]=/
16776 p
16777 g
16778 s/^[^!]*!//
16779 :repl
16780 t repl
16781 s/'"$ac_delim"'$//
16782 t delim
16783 :nl
16784 h
16785 s/\(.\{148\}\)..*/\1/
16786 t more1
16787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16788 p
16789 n
16790 b repl
16791 :more1
16792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16793 p
16794 g
16795 s/.\{148\}//
16796 t nl
16797 :delim
16798 h
16799 s/\(.\{148\}\)..*/\1/
16800 t more2
16801 s/["\\]/\\&/g; s/^/"/; s/$/"/
16802 p
16803 b
16804 :more2
16805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16806 p
16807 g
16808 s/.\{148\}//
16809 t delim
16810 ' <conf$$subs.awk | sed '
16811 /^[^""]/{
16812 N
16813 s/\n//
16814 }
16815 ' >>$CONFIG_STATUS || ac_write_fail=1
16816 rm -f conf$$subs.awk
16817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16818 _ACAWK
16819 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16820 for (key in S) S_is_set[key] = 1
16821 FS = "\a"
16822
16823 }
16824 {
16825 line = $ 0
16826 nfields = split(line, field, "@")
16827 substed = 0
16828 len = length(field[1])
16829 for (i = 2; i < nfields; i++) {
16830 key = field[i]
16831 keylen = length(key)
16832 if (S_is_set[key]) {
16833 value = S[key]
16834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16835 len += length(value) + length(field[++i])
16836 substed = 1
16837 } else
16838 len += 1 + keylen
16839 }
16840
16841 print line
16842 }
16843
16844 _ACAWK
16845 _ACEOF
16846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16848 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16849 else
16850 cat
16851 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16852 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16853 _ACEOF
16854
16855 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16856 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16857 # trailing colons and then remove the whole line if VPATH becomes empty
16858 # (actually we leave an empty line to preserve line numbers).
16859 if test "x$srcdir" = x.; then
16860 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16861 h
16862 s///
16863 s/^/:/
16864 s/[ ]*$/:/
16865 s/:\$(srcdir):/:/g
16866 s/:\${srcdir}:/:/g
16867 s/:@srcdir@:/:/g
16868 s/^:*//
16869 s/:*$//
16870 x
16871 s/\(=[ ]*\).*/\1/
16872 G
16873 s/\n//
16874 s/^[^=]*=[ ]*$//
16875 }'
16876 fi
16877
16878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16879 fi # test -n "$CONFIG_FILES"
16880
16881 # Set up the scripts for CONFIG_HEADERS section.
16882 # No need to generate them if there are no CONFIG_HEADERS.
16883 # This happens for instance with `./config.status Makefile'.
16884 if test -n "$CONFIG_HEADERS"; then
16885 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16886 BEGIN {
16887 _ACEOF
16888
16889 # Transform confdefs.h into an awk script `defines.awk', embedded as
16890 # here-document in config.status, that substitutes the proper values into
16891 # config.h.in to produce config.h.
16892
16893 # Create a delimiter string that does not exist in confdefs.h, to ease
16894 # handling of long lines.
16895 ac_delim='%!_!# '
16896 for ac_last_try in false false :; do
16897 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16898 if test -z "$ac_tt"; then
16899 break
16900 elif $ac_last_try; then
16901 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16902 else
16903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16904 fi
16905 done
16906
16907 # For the awk script, D is an array of macro values keyed by name,
16908 # likewise P contains macro parameters if any. Preserve backslash
16909 # newline sequences.
16910
16911 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16912 sed -n '
16913 s/.\{148\}/&'"$ac_delim"'/g
16914 t rset
16915 :rset
16916 s/^[ ]*#[ ]*define[ ][ ]*/ /
16917 t def
16918 d
16919 :def
16920 s/\\$//
16921 t bsnl
16922 s/["\\]/\\&/g
16923 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16924 D["\1"]=" \3"/p
16925 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16926 d
16927 :bsnl
16928 s/["\\]/\\&/g
16929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16930 D["\1"]=" \3\\\\\\n"\\/p
16931 t cont
16932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16933 t cont
16934 d
16935 :cont
16936 n
16937 s/.\{148\}/&'"$ac_delim"'/g
16938 t clear
16939 :clear
16940 s/\\$//
16941 t bsnlc
16942 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16943 d
16944 :bsnlc
16945 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16946 b cont
16947 ' <confdefs.h | sed '
16948 s/'"$ac_delim"'/"\\\
16949 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16950
16951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16952 for (key in D) D_is_set[key] = 1
16953 FS = "\a"
16954 }
16955 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16956 line = \$ 0
16957 split(line, arg, " ")
16958 if (arg[1] == "#") {
16959 defundef = arg[2]
16960 mac1 = arg[3]
16961 } else {
16962 defundef = substr(arg[1], 2)
16963 mac1 = arg[2]
16964 }
16965 split(mac1, mac2, "(") #)
16966 macro = mac2[1]
16967 prefix = substr(line, 1, index(line, defundef) - 1)
16968 if (D_is_set[macro]) {
16969 # Preserve the white space surrounding the "#".
16970 print prefix "define", macro P[macro] D[macro]
16971 next
16972 } else {
16973 # Replace #undef with comments. This is necessary, for example,
16974 # in the case of _POSIX_SOURCE, which is predefined and required
16975 # on some systems where configure will not decide to define it.
16976 if (defundef == "undef") {
16977 print "/*", prefix defundef, macro, "*/"
16978 next
16979 }
16980 }
16981 }
16982 { print }
16983 _ACAWK
16984 _ACEOF
16985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16987 fi # test -n "$CONFIG_HEADERS"
16988
16989
16990 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16991 shift
16992 for ac_tag
16993 do
16994 case $ac_tag in
16995 :[FHLC]) ac_mode=$ac_tag; continue;;
16996 esac
16997 case $ac_mode$ac_tag in
16998 :[FHL]*:*);;
16999 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17000 :[FH]-) ac_tag=-:-;;
17001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17002 esac
17003 ac_save_IFS=$IFS
17004 IFS=:
17005 set x $ac_tag
17006 IFS=$ac_save_IFS
17007 shift
17008 ac_file=$1
17009 shift
17010
17011 case $ac_mode in
17012 :L) ac_source=$1;;
17013 :[FH])
17014 ac_file_inputs=
17015 for ac_f
17016 do
17017 case $ac_f in
17018 -) ac_f="$ac_tmp/stdin";;
17019 *) # Look for the file first in the build tree, then in the source tree
17020 # (if the path is not absolute). The absolute path cannot be DOS-style,
17021 # because $ac_f cannot contain `:'.
17022 test -f "$ac_f" ||
17023 case $ac_f in
17024 [\\/$]*) false;;
17025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17026 esac ||
17027 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17028 esac
17029 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17030 as_fn_append ac_file_inputs " '$ac_f'"
17031 done
17032
17033 # Let's still pretend it is `configure' which instantiates (i.e., don't
17034 # use $as_me), people would be surprised to read:
17035 # /* config.h. Generated by config.status. */
17036 configure_input='Generated from '`
17037 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17038 `' by configure.'
17039 if test x"$ac_file" != x-; then
17040 configure_input="$ac_file. $configure_input"
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17042 $as_echo "$as_me: creating $ac_file" >&6;}
17043 fi
17044 # Neutralize special characters interpreted by sed in replacement strings.
17045 case $configure_input in #(
17046 *\&* | *\|* | *\\* )
17047 ac_sed_conf_input=`$as_echo "$configure_input" |
17048 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17049 *) ac_sed_conf_input=$configure_input;;
17050 esac
17051
17052 case $ac_tag in
17053 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17055 esac
17056 ;;
17057 esac
17058
17059 ac_dir=`$as_dirname -- "$ac_file" ||
17060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17061 X"$ac_file" : 'X\(//\)[^/]' \| \
17062 X"$ac_file" : 'X\(//\)$' \| \
17063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17064 $as_echo X"$ac_file" |
17065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17066 s//\1/
17067 q
17068 }
17069 /^X\(\/\/\)[^/].*/{
17070 s//\1/
17071 q
17072 }
17073 /^X\(\/\/\)$/{
17074 s//\1/
17075 q
17076 }
17077 /^X\(\/\).*/{
17078 s//\1/
17079 q
17080 }
17081 s/.*/./; q'`
17082 as_dir="$ac_dir"; as_fn_mkdir_p
17083 ac_builddir=.
17084
17085 case "$ac_dir" in
17086 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17087 *)
17088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17089 # A ".." for each directory in $ac_dir_suffix.
17090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17091 case $ac_top_builddir_sub in
17092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17094 esac ;;
17095 esac
17096 ac_abs_top_builddir=$ac_pwd
17097 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17098 # for backward compatibility:
17099 ac_top_builddir=$ac_top_build_prefix
17100
17101 case $srcdir in
17102 .) # We are building in place.
17103 ac_srcdir=.
17104 ac_top_srcdir=$ac_top_builddir_sub
17105 ac_abs_top_srcdir=$ac_pwd ;;
17106 [\\/]* | ?:[\\/]* ) # Absolute name.
17107 ac_srcdir=$srcdir$ac_dir_suffix;
17108 ac_top_srcdir=$srcdir
17109 ac_abs_top_srcdir=$srcdir ;;
17110 *) # Relative name.
17111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17112 ac_top_srcdir=$ac_top_build_prefix$srcdir
17113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17114 esac
17115 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17116
17117
17118 case $ac_mode in
17119 :F)
17120 #
17121 # CONFIG_FILE
17122 #
17123
17124 case $INSTALL in
17125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17126 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17127 esac
17128 _ACEOF
17129
17130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17131 # If the template does not know about datarootdir, expand it.
17132 # FIXME: This hack should be removed a few years after 2.60.
17133 ac_datarootdir_hack=; ac_datarootdir_seen=
17134 ac_sed_dataroot='
17135 /datarootdir/ {
17136 p
17137 q
17138 }
17139 /@datadir@/p
17140 /@docdir@/p
17141 /@infodir@/p
17142 /@localedir@/p
17143 /@mandir@/p'
17144 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17145 *datarootdir*) ac_datarootdir_seen=yes;;
17146 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17148 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17149 _ACEOF
17150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151 ac_datarootdir_hack='
17152 s&@datadir@&$datadir&g
17153 s&@docdir@&$docdir&g
17154 s&@infodir@&$infodir&g
17155 s&@localedir@&$localedir&g
17156 s&@mandir@&$mandir&g
17157 s&\\\${datarootdir}&$datarootdir&g' ;;
17158 esac
17159 _ACEOF
17160
17161 # Neutralize VPATH when `$srcdir' = `.'.
17162 # Shell code in configure.ac might set extrasub.
17163 # FIXME: do we really want to maintain this feature?
17164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17165 ac_sed_extra="$ac_vpsub
17166 $extrasub
17167 _ACEOF
17168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169 :t
17170 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17171 s|@configure_input@|$ac_sed_conf_input|;t t
17172 s&@top_builddir@&$ac_top_builddir_sub&;t t
17173 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17174 s&@srcdir@&$ac_srcdir&;t t
17175 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17176 s&@top_srcdir@&$ac_top_srcdir&;t t
17177 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17178 s&@builddir@&$ac_builddir&;t t
17179 s&@abs_builddir@&$ac_abs_builddir&;t t
17180 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17181 s&@INSTALL@&$ac_INSTALL&;t t
17182 $ac_datarootdir_hack
17183 "
17184 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17185 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17186
17187 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17188 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17189 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17190 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17192 which seems to be undefined. Please make sure it is defined" >&5
17193 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17194 which seems to be undefined. Please make sure it is defined" >&2;}
17195
17196 rm -f "$ac_tmp/stdin"
17197 case $ac_file in
17198 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17199 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17200 esac \
17201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17202 ;;
17203 :H)
17204 #
17205 # CONFIG_HEADER
17206 #
17207 if test x"$ac_file" != x-; then
17208 {
17209 $as_echo "/* $configure_input */" \
17210 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17211 } >"$ac_tmp/config.h" \
17212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17213 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17215 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17216 else
17217 rm -f "$ac_file"
17218 mv "$ac_tmp/config.h" "$ac_file" \
17219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17220 fi
17221 else
17222 $as_echo "/* $configure_input */" \
17223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17224 || as_fn_error $? "could not create -" "$LINENO" 5
17225 fi
17226 ;;
17227
17228 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17229 $as_echo "$as_me: executing $ac_file commands" >&6;}
17230 ;;
17231 esac
17232
17233
17234 case $ac_file$ac_mode in
17235 "default-1":C)
17236 for ac_file in $CONFIG_FILES; do
17237 # Support "outfile[:infile[:infile...]]"
17238 case "$ac_file" in
17239 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17240 esac
17241 # PO directories have a Makefile.in generated from Makefile.in.in.
17242 case "$ac_file" in */Makefile.in)
17243 # Adjust a relative srcdir.
17244 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17245 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17246 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17247 # In autoconf-2.13 it is called $ac_given_srcdir.
17248 # In autoconf-2.50 it is called $srcdir.
17249 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17250 case "$ac_given_srcdir" in
17251 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17252 /*) top_srcdir="$ac_given_srcdir" ;;
17253 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17254 esac
17255 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17256 rm -f "$ac_dir/POTFILES"
17257 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17258 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17259 POMAKEFILEDEPS="POTFILES.in"
17260 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17261 # on $ac_dir but don't depend on user-specified configuration
17262 # parameters.
17263 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17264 # The LINGUAS file contains the set of available languages.
17265 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17266 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17267 fi
17268 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17269 # Hide the ALL_LINGUAS assigment from automake.
17270 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17271 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17272 else
17273 # The set of available languages was given in configure.in.
17274 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17275 fi
17276 case "$ac_given_srcdir" in
17277 .) srcdirpre= ;;
17278 *) srcdirpre='$(srcdir)/' ;;
17279 esac
17280 POFILES=
17281 GMOFILES=
17282 UPDATEPOFILES=
17283 DUMMYPOFILES=
17284 for lang in $ALL_LINGUAS; do
17285 POFILES="$POFILES $srcdirpre$lang.po"
17286 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17287 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17288 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17289 done
17290 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17291 # environment variable.
17292 INST_LINGUAS=
17293 if test -n "$ALL_LINGUAS"; then
17294 for presentlang in $ALL_LINGUAS; do
17295 useit=no
17296 if test "%UNSET%" != "$LINGUAS"; then
17297 desiredlanguages="$LINGUAS"
17298 else
17299 desiredlanguages="$ALL_LINGUAS"
17300 fi
17301 for desiredlang in $desiredlanguages; do
17302 # Use the presentlang catalog if desiredlang is
17303 # a. equal to presentlang, or
17304 # b. a variant of presentlang (because in this case,
17305 # presentlang can be used as a fallback for messages
17306 # which are not translated in the desiredlang catalog).
17307 case "$desiredlang" in
17308 "$presentlang"*) useit=yes;;
17309 esac
17310 done
17311 if test $useit = yes; then
17312 INST_LINGUAS="$INST_LINGUAS $presentlang"
17313 fi
17314 done
17315 fi
17316 CATALOGS=
17317 if test -n "$INST_LINGUAS"; then
17318 for lang in $INST_LINGUAS; do
17319 CATALOGS="$CATALOGS $lang.gmo"
17320 done
17321 fi
17322 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17323 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"
17324 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17325 if test -f "$f"; then
17326 case "$f" in
17327 *.orig | *.bak | *~) ;;
17328 *) cat "$f" >> "$ac_dir/Makefile" ;;
17329 esac
17330 fi
17331 done
17332 fi
17333 ;;
17334 esac
17335 done ;;
17336 "default":C)
17337 # Makefile uses this timestamp file to record whether config.h is up to date.
17338 echo timestamp > stamp-h
17339 ;;
17340
17341 esac
17342 done # for ac_tag
17343
17344
17345 as_fn_exit 0
17346 _ACEOF
17347 ac_clean_files=$ac_clean_files_save
17348
17349 test $ac_write_fail = 0 ||
17350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17351
17352
17353 # configure is writing to config.log, and then calls config.status.
17354 # config.status does its own redirection, appending to config.log.
17355 # Unfortunately, on DOS this fails, as config.log is still kept open
17356 # by configure, so config.status won't be able to write to it; its
17357 # output is simply discarded. So we exec the FD to /dev/null,
17358 # effectively closing config.log, so it can be properly (re)opened and
17359 # appended to by config.status. When coming back to configure, we
17360 # need to make the FD available again.
17361 if test "$no_create" != yes; then
17362 ac_cs_success=:
17363 ac_config_status_args=
17364 test "$silent" = yes &&
17365 ac_config_status_args="$ac_config_status_args --quiet"
17366 exec 5>/dev/null
17367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17368 exec 5>>config.log
17369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17370 # would make configure fail if this is the last instruction.
17371 $ac_cs_success || as_fn_exit 1
17372 fi
17373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17376 fi
17377