Fix gdb's selftest.exp after readline import
[deliverable/binutils-gdb.git] / readline / configure
CommitLineData
d60d9f65 1#! /bin/sh
775e241e 2# From configure.ac for Readline 7.0, version 2.81.
9255ee31 3# Guess values for system-dependent variables and create Makefiles.
775e241e 4# Generated by GNU Autoconf 2.69 for readline 7.0.
9255ee31
EZ
5#
6# Report bugs to <bug-readline@gnu.org>.
7#
d0ac1c44
SM
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
81ecdfbb 11#
9255ee31
EZ
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
d60d9f65 17
81ecdfbb
RW
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25ed0b71
KW
21 emulate sh
22 NULLCMD=:
81ecdfbb 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25ed0b71
KW
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
26 setopt NO_GLOB_SUBST
27else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33esac
25ed0b71
KW
34fi
35
81ecdfbb
RW
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
25ed0b71
KW
82fi
83
84
81ecdfbb
RW
85# IFS
86# We need space, tab and new line, in precisely that order. Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" "" $as_nl"
91
92# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 93as_myself=
81ecdfbb
RW
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
25ed0b71
KW
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
81ecdfbb
RW
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
d0ac1c44
SM
138# Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
163if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177esac
178fi
179"
180 as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194 exitcode=1; echo positional parameters were not saved.
195fi
d0ac1c44
SM
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
81ecdfbb
RW
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205else
206 as_have_required=no
207fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25ed0b71 214do
81ecdfbb
RW
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228fi
229fi
230 done;;
231 esac
232 as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
81ecdfbb
RW
261fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
25ed0b71 269 else
81ecdfbb
RW
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271$0: bug-readline@gnu.org about your system, including any
272$0: error possibly output before this message. Then install
273$0: a modern shell, or manually run the script under such a
274$0: shell if you do have one."
25ed0b71 275 fi
81ecdfbb
RW
276 exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294 { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303 return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
25ed0b71 321
81ecdfbb
RW
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
360
361
362} # as_fn_mkdir_p
d0ac1c44
SM
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369 test -f "$1" && test -x "$1"
370} # as_fn_executable_p
81ecdfbb
RW
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404fi # as_fn_arith
405
406
d0ac1c44
SM
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
81ecdfbb
RW
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 411# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
412as_fn_error ()
413{
d0ac1c44
SM
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 418 fi
d0ac1c44 419 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
420 as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25ed0b71
KW
425 as_expr=expr
426else
427 as_expr=false
428fi
429
81ecdfbb 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25ed0b71
KW
431 as_basename=basename
432else
433 as_basename=false
434fi
435
81ecdfbb
RW
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438else
439 as_dirname=false
440fi
25ed0b71 441
81ecdfbb 442as_me=`$as_basename -- "$0" ||
25ed0b71
KW
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
25ed0b71 460
9255ee31
EZ
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
d60d9f65 467
25ed0b71 468
81ecdfbb
RW
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
25ed0b71 478 sed '
81ecdfbb
RW
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
25ed0b71 483 N
81ecdfbb
RW
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25ed0b71 486 t loop
81ecdfbb 487 s/-\n.*//
25ed0b71 488 ' >$as_me.lineno &&
81ecdfbb
RW
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
25ed0b71 491
d0ac1c44
SM
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
25ed0b71
KW
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
25ed0b71
KW
500 # Exit status is that of the last command.
501 exit
502}
503
81ecdfbb
RW
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513*)
514 ECHO_N='-n';;
25ed0b71 515esac
d60d9f65 516
81ecdfbb
RW
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
9255ee31 520else
81ecdfbb
RW
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
9255ee31 523fi
81ecdfbb
RW
524if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
9255ee31 526 as_ln_s='ln -s'
81ecdfbb
RW
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 530 # In both cases, we have to default to `cp -pR'.
81ecdfbb 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 532 as_ln_s='cp -pR'
81ecdfbb
RW
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
d0ac1c44 536 as_ln_s='cp -pR'
9255ee31 537 fi
9255ee31 538else
d0ac1c44 539 as_ln_s='cp -pR'
9255ee31 540fi
81ecdfbb
RW
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
d60d9f65 543
25ed0b71 544if mkdir -p . 2>/dev/null; then
81ecdfbb 545 as_mkdir_p='mkdir -p "$as_dir"'
9255ee31 546else
430b7832 547 test -d ./-p && rmdir ./-p
25ed0b71 548 as_mkdir_p=false
9255ee31 549fi
d60d9f65 550
d0ac1c44
SM
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
25ed0b71
KW
553
554# Sed expression to map a string onto a valid CPP name.
430b7832 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25ed0b71
KW
556
557# Sed expression to map a string onto a valid variable name.
430b7832 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25ed0b71 559
9255ee31 560
d0ac1c44
SM
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
9255ee31
EZ
563
564# Name of the host.
d0ac1c44 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
9255ee31
EZ
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
d60d9f65 569#
9255ee31
EZ
570# Initializations.
571#
d60d9f65 572ac_default_prefix=/usr/local
81ecdfbb 573ac_clean_files=
25ed0b71 574ac_config_libobj_dir=.
81ecdfbb 575LIBOBJS=
9255ee31
EZ
576cross_compiling=no
577subdirs=
25ed0b71
KW
578MFLAGS=
579MAKEFLAGS=
9255ee31 580
25ed0b71
KW
581# Identity of this package.
582PACKAGE_NAME='readline'
583PACKAGE_TARNAME='readline'
775e241e
TT
584PACKAGE_VERSION='7.0'
585PACKAGE_STRING='readline 7.0'
25ed0b71 586PACKAGE_BUGREPORT='bug-readline@gnu.org'
81ecdfbb 587PACKAGE_URL=''
25ed0b71 588
9255ee31
EZ
589ac_unique_file="readline.h"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
81ecdfbb 593#ifdef HAVE_SYS_TYPES_H
9255ee31
EZ
594# include <sys/types.h>
595#endif
81ecdfbb 596#ifdef HAVE_SYS_STAT_H
9255ee31
EZ
597# include <sys/stat.h>
598#endif
81ecdfbb 599#ifdef STDC_HEADERS
9255ee31
EZ
600# include <stdlib.h>
601# include <stddef.h>
602#else
81ecdfbb 603# ifdef HAVE_STDLIB_H
9255ee31
EZ
604# include <stdlib.h>
605# endif
606#endif
81ecdfbb
RW
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
9255ee31
EZ
609# include <memory.h>
610# endif
611# include <string.h>
612#endif
81ecdfbb 613#ifdef HAVE_STRINGS_H
9255ee31
EZ
614# include <strings.h>
615#endif
81ecdfbb 616#ifdef HAVE_INTTYPES_H
9255ee31 617# include <inttypes.h>
9255ee31 618#endif
81ecdfbb
RW
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
9255ee31
EZ
623# include <unistd.h>
624#endif"
d60d9f65 625
81ecdfbb 626ac_subst_vars='LTLIBOBJS
81ecdfbb
RW
627TERMCAP_LIB
628LIBVERSION
629ARFLAGS
630LOCAL_DEFS
631LOCAL_LDFLAGS
632LOCAL_CFLAGS
633BUILD_DIR
81ecdfbb
RW
634SHARED_INSTALL_TARGET
635STATIC_INSTALL_TARGET
636SHARED_TARGET
637STATIC_TARGET
638SHLIB_MINOR
639SHLIB_MAJOR
640SHLIB_LIBS
641SHLIB_DLLVERSION
642SHLIB_LIBVERSION
643SHLIB_LIBSUFF
644SHLIB_LIBPREF
645SHLIB_DOT
646SHLIB_XLDFLAGS
647SHLIB_STATUS
648SHOBJ_STATUS
649SHOBJ_LIBS
650SHOBJ_XLDFLAGS
651SHOBJ_LDFLAGS
652SHOBJ_LD
653SHOBJ_CFLAGS
654SHOBJ_CC
cc88a640 655LIBOBJS
81ecdfbb
RW
656MAKE_SHELL
657RANLIB
658AR
659INSTALL_DATA
660INSTALL_SCRIPT
661INSTALL_PROGRAM
81ecdfbb
RW
662EGREP
663GREP
664CPP
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672SET_MAKE
673CROSS_COMPILE
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682target_alias
683host_alias
684build_alias
685LIBS
686ECHO_T
687ECHO_N
688ECHO_C
689DEFS
690mandir
691localedir
692libdir
693psdir
694pdfdir
695dvidir
696htmldir
697infodir
698docdir
699oldincludedir
700includedir
701localstatedir
702sharedstatedir
703sysconfdir
704datadir
705datarootdir
706libexecdir
707sbindir
708bindir
709program_transform_name
710prefix
711exec_prefix
712PACKAGE_URL
713PACKAGE_BUGREPORT
714PACKAGE_STRING
715PACKAGE_VERSION
716PACKAGE_TARNAME
717PACKAGE_NAME
718PATH_SEPARATOR
719SHELL'
25ed0b71 720ac_subst_files=''
81ecdfbb
RW
721ac_user_opts='
722enable_option_checking
723with_curses
81ecdfbb
RW
724enable_multibyte
725enable_static
cc88a640 726enable_largefile
81ecdfbb
RW
727'
728 ac_precious_vars='build_alias
729host_alias
730target_alias
731CC
732CFLAGS
733LDFLAGS
734LIBS
735CPPFLAGS
736CPP'
737
25ed0b71 738
d60d9f65 739# Initialize some variables set by options.
9255ee31
EZ
740ac_init_help=
741ac_init_version=false
81ecdfbb
RW
742ac_unrecognized_opts=
743ac_unrecognized_sep=
d60d9f65
SS
744# The variables have the same names as the options, with
745# dashes changed to underlines.
9255ee31 746cache_file=/dev/null
d60d9f65 747exec_prefix=NONE
d60d9f65 748no_create=
d60d9f65
SS
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
d60d9f65
SS
757verbose=
758x_includes=NONE
759x_libraries=NONE
9255ee31
EZ
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 766# (The list follows the same order as the GNU Coding Standards.)
d60d9f65
SS
767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
d60d9f65
SS
772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
d60d9f65
SS
775includedir='${prefix}/include'
776oldincludedir='/usr/include'
81ecdfbb
RW
777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
d60d9f65 786
d60d9f65 787ac_prev=
81ecdfbb 788ac_dashdash=
d60d9f65
SS
789for ac_option
790do
d60d9f65
SS
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
81ecdfbb 793 eval $ac_prev=\$ac_option
d60d9f65
SS
794 ac_prev=
795 continue
796 fi
797
81ecdfbb 798 case $ac_option in
d0ac1c44
SM
799 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *=) ac_optarg= ;;
801 *) ac_optarg=yes ;;
81ecdfbb 802 esac
d60d9f65
SS
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
81ecdfbb
RW
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
d60d9f65
SS
809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9255ee31 813 bindir=$ac_optarg ;;
d60d9f65
SS
814
815 -build | --build | --buil | --bui | --bu)
9255ee31 816 ac_prev=build_alias ;;
d60d9f65 817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9255ee31 818 build_alias=$ac_optarg ;;
d60d9f65
SS
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9255ee31
EZ
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
d60d9f65 829
81ecdfbb 830 -datadir | --datadir | --datadi | --datad)
d60d9f65 831 ac_prev=datadir ;;
81ecdfbb 832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
9255ee31 833 datadir=$ac_optarg ;;
d60d9f65 834
81ecdfbb
RW
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
d60d9f65 842 -disable-* | --disable-*)
81ecdfbb 843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d60d9f65 844 # Reject names that are not valid shell variable names.
81ecdfbb 845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 846 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851"enable_$ac_useropt"
852"*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
d60d9f65
SS
867
868 -enable-* | --enable-*)
81ecdfbb 869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d60d9f65 870 # Reject names that are not valid shell variable names.
81ecdfbb 871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 872 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877"enable_$ac_useropt"
878"*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
d60d9f65 881 esac
81ecdfbb 882 eval enable_$ac_useropt=\$ac_optarg ;;
d60d9f65
SS
883
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
9255ee31 891 exec_prefix=$ac_optarg ;;
d60d9f65
SS
892
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
896
9255ee31
EZ
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
d60d9f65
SS
903
904 -host | --host | --hos | --ho)
9255ee31 905 ac_prev=host_alias ;;
d60d9f65 906 -host=* | --host=* | --hos=* | --ho=*)
9255ee31 907 host_alias=$ac_optarg ;;
d60d9f65 908
81ecdfbb
RW
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
914
d60d9f65
SS
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
9255ee31 920 includedir=$ac_optarg ;;
d60d9f65
SS
921
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9255ee31 925 infodir=$ac_optarg ;;
d60d9f65
SS
926
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
9255ee31 930 libdir=$ac_optarg ;;
d60d9f65
SS
931
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
9255ee31 937 libexecdir=$ac_optarg ;;
d60d9f65 938
81ecdfbb
RW
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
d60d9f65 944 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 945 | --localstate | --localstat | --localsta | --localst | --locals)
d60d9f65
SS
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9255ee31 949 localstatedir=$ac_optarg ;;
d60d9f65
SS
950
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9255ee31 954 mandir=$ac_optarg ;;
d60d9f65
SS
955
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
959
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
25ed0b71 961 | --no-cr | --no-c | -n)
d60d9f65
SS
962 no_create=yes ;;
963
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
967
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9255ee31 975 oldincludedir=$ac_optarg ;;
d60d9f65
SS
976
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9255ee31 980 prefix=$ac_optarg ;;
d60d9f65
SS
981
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9255ee31 987 program_prefix=$ac_optarg ;;
d60d9f65
SS
988
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9255ee31 994 program_suffix=$ac_optarg ;;
d60d9f65
SS
995
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
9255ee31 1011 program_transform_name=$ac_optarg ;;
d60d9f65 1012
81ecdfbb
RW
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1017
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1022
d60d9f65
SS
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1026
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
9255ee31 1031 sbindir=$ac_optarg ;;
d60d9f65
SS
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
9255ee31 1042 sharedstatedir=$ac_optarg ;;
d60d9f65
SS
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
9255ee31 1047 site=$ac_optarg ;;
d60d9f65
SS
1048
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9255ee31 1052 srcdir=$ac_optarg ;;
d60d9f65
SS
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
9255ee31 1059 sysconfdir=$ac_optarg ;;
d60d9f65
SS
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
9255ee31 1062 ac_prev=target_alias ;;
d60d9f65 1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
9255ee31 1064 target_alias=$ac_optarg ;;
d60d9f65
SS
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
9255ee31
EZ
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
d60d9f65
SS
1071
1072 -with-* | --with-*)
81ecdfbb 1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d60d9f65 1074 # Reject names that are not valid shell variable names.
81ecdfbb 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1076 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"with_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
d60d9f65 1085 esac
81ecdfbb 1086 eval with_$ac_useropt=\$ac_optarg ;;
d60d9f65
SS
1087
1088 -without-* | --without-*)
81ecdfbb 1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d60d9f65 1090 # Reject names that are not valid shell variable names.
81ecdfbb 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1092 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
d60d9f65
SS
1103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
9255ee31 1113 x_includes=$ac_optarg ;;
d60d9f65
SS
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
9255ee31 1120 x_libraries=$ac_optarg ;;
d60d9f65 1121
d0ac1c44
SM
1122 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1123Try \`$0 --help' for more information"
d60d9f65
SS
1124 ;;
1125
9255ee31
EZ
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1131 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1132 esac
1133 eval $ac_envvar=\$ac_optarg
9255ee31
EZ
1134 export $ac_envvar ;;
1135
d60d9f65 1136 *)
9255ee31 1137 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
9255ee31 1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d60d9f65
SS
1142 ;;
1143
1144 esac
1145done
1146
1147if test -n "$ac_prev"; then
9255ee31 1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1149 as_fn_error $? "missing argument to $ac_option"
d60d9f65 1150fi
d60d9f65 1151
81ecdfbb
RW
1152if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
d0ac1c44 1155 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
9255ee31 1157 esac
81ecdfbb 1158fi
d60d9f65 1159
81ecdfbb
RW
1160# Check all directory arguments for consistency.
1161for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
d60d9f65 1165do
81ecdfbb
RW
1166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
9255ee31 1174 case $ac_val in
81ecdfbb
RW
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d60d9f65 1177 esac
d0ac1c44 1178 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d60d9f65
SS
1179done
1180
9255ee31
EZ
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
25ed0b71 1183# FIXME: To remove some day.
9255ee31
EZ
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
25ed0b71 1188# FIXME: To remove some day.
9255ee31
EZ
1189if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
9255ee31
EZ
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195fi
d60d9f65 1196
9255ee31
EZ
1197ac_tool_prefix=
1198test -n "$host_alias" && ac_tool_prefix=$host_alias-
d60d9f65 1199
9255ee31 1200test "$silent" = yes && exec 6>/dev/null
d60d9f65 1201
25ed0b71 1202
81ecdfbb
RW
1203ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204ac_ls_di=`ls -di .` &&
1205ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1206 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1207test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1208 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1209
1210
d60d9f65
SS
1211# Find the source files, if location was not specified.
1212if test -z "$srcdir"; then
1213 ac_srcdir_defaulted=yes
81ecdfbb
RW
1214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir=`$as_dirname -- "$as_myself" ||
1216$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$as_myself" : 'X\(//\)[^/]' \| \
1218 X"$as_myself" : 'X\(//\)$' \| \
1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220$as_echo X"$as_myself" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)[^/].*/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\/\)$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\).*/{
1234 s//\1/
1235 q
1236 }
1237 s/.*/./; q'`
d60d9f65 1238 srcdir=$ac_confdir
81ecdfbb 1239 if test ! -r "$srcdir/$ac_unique_file"; then
d60d9f65
SS
1240 srcdir=..
1241 fi
1242else
1243 ac_srcdir_defaulted=no
1244fi
81ecdfbb
RW
1245if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1247 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1248fi
1249ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1250ac_abs_confdir=`(
d0ac1c44 1251 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1252 pwd)`
1253# When building in place, set srcdir=.
1254if test "$ac_abs_confdir" = "$ac_pwd"; then
1255 srcdir=.
1256fi
1257# Remove unnecessary trailing slashes from srcdir.
1258# Double slashes in file names in object file debugging info
1259# mess up M-x gdb in Emacs.
1260case $srcdir in
1261*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262esac
1263for ac_var in $ac_precious_vars; do
1264 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_${ac_var}_value=\$${ac_var}
1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1268done
d60d9f65 1269
9255ee31
EZ
1270#
1271# Report the --help message.
1272#
1273if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
25ed0b71 1276 cat <<_ACEOF
775e241e 1277\`configure' configures readline 7.0 to adapt to many kinds of systems.
d60d9f65 1278
9255ee31 1279Usage: $0 [OPTION]... [VAR=VALUE]...
d60d9f65 1280
9255ee31
EZ
1281To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282VAR=VALUE. See below for descriptions of some of the useful variables.
d60d9f65 1283
9255ee31 1284Defaults for the options are specified in brackets.
d60d9f65 1285
9255ee31
EZ
1286Configuration:
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
d0ac1c44 1291 -q, --quiet, --silent do not print \`checking ...' messages
9255ee31
EZ
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
d60d9f65 1296
9255ee31
EZ
1297Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1299 [$ac_default_prefix]
9255ee31 1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1301 [PREFIX]
9255ee31
EZ
1302
1303By default, \`make install' will install all the files in
1304\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306for instance \`--prefix=\$HOME'.
1307
1308For better control, use the options below.
1309
1310Fine tuning of the installation directories:
81ecdfbb
RW
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
25ed0b71 1330_ACEOF
d60d9f65 1331
25ed0b71 1332 cat <<\_ACEOF
d60d9f65 1333
9255ee31
EZ
1334System types:
1335 --build=BUILD configure for building on BUILD [guessed]
25ed0b71
KW
1336 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337_ACEOF
d60d9f65 1338fi
d60d9f65 1339
9255ee31
EZ
1340if test -n "$ac_init_help"; then
1341 case $ac_init_help in
775e241e 1342 short | recursive ) echo "Configuration of readline 7.0:";;
9255ee31 1343 esac
25ed0b71 1344 cat <<\_ACEOF
d60d9f65 1345
9255ee31 1346Optional Features:
81ecdfbb 1347 --disable-option-checking ignore unrecognized --enable/--with options
9255ee31
EZ
1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5bdf8622 1350 --enable-multibyte enable multibyte characters if OS supports them
d0ac1c44 1351 --enable-static build static libraries [[default=YES]]
cc88a640 1352 --disable-largefile omit support for large files
d60d9f65 1353
9255ee31
EZ
1354Optional Packages:
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1357 --with-curses use the curses library instead of the termcap
1358 library
1359
1360Some influential environment variables:
1361 CC C compiler command
1362 CFLAGS C compiler flags
1363 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1364 nonstandard directory <lib dir>
81ecdfbb 1365 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1366 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1367 you have headers in a nonstandard directory <include dir>
9255ee31
EZ
1368 CPP C preprocessor
1369
1370Use these variables to override the choices made by `configure' or to help
1371it to find libraries and programs with nonstandard names/locations.
1372
1373Report bugs to <bug-readline@gnu.org>.
25ed0b71 1374_ACEOF
81ecdfbb 1375ac_status=$?
9255ee31 1376fi
d60d9f65 1377
9255ee31
EZ
1378if test "$ac_init_help" = "recursive"; then
1379 # If there are subdirs, report their specific --help.
25ed0b71 1380 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1381 test -d "$ac_dir" ||
1382 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1383 continue
25ed0b71
KW
1384 ac_builddir=.
1385
81ecdfbb
RW
1386case "$ac_dir" in
1387.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388*)
1389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396esac
1397ac_abs_top_builddir=$ac_pwd
1398ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399# for backward compatibility:
1400ac_top_builddir=$ac_top_build_prefix
d60d9f65 1401
25ed0b71 1402case $srcdir in
81ecdfbb 1403 .) # We are building in place.
25ed0b71 1404 ac_srcdir=.
81ecdfbb
RW
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
25ed0b71 1408 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
430b7832 1415esac
81ecdfbb
RW
1416ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
9255ee31 1426 else
81ecdfbb
RW
1427 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
9255ee31 1430 done
d60d9f65
SS
1431fi
1432
81ecdfbb 1433test -n "$ac_init_help" && exit $ac_status
9255ee31 1434if $ac_init_version; then
25ed0b71 1435 cat <<\_ACEOF
775e241e 1436readline configure 7.0
d0ac1c44 1437generated by GNU Autoconf 2.69
d60d9f65 1438
d0ac1c44 1439Copyright (C) 2012 Free Software Foundation, Inc.
9255ee31
EZ
1440This configure script is free software; the Free Software Foundation
1441gives unlimited permission to copy, distribute and modify it.
25ed0b71 1442_ACEOF
81ecdfbb 1443 exit
d60d9f65
SS
1444fi
1445
81ecdfbb
RW
1446## ------------------------ ##
1447## Autoconf initialization. ##
1448## ------------------------ ##
9255ee31 1449
81ecdfbb
RW
1450# ac_fn_c_try_compile LINENO
1451# --------------------------
1452# Try to compile conftest.$ac_ext, and return whether this succeeded.
1453ac_fn_c_try_compile ()
9255ee31 1454{
81ecdfbb
RW
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 rm -f conftest.$ac_objext
1457 if { { ac_try="$ac_compile"
1458case "(($ac_try" in
1459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460 *) ac_try_echo=$ac_try;;
1461esac
1462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463$as_echo "$ac_try_echo"; } >&5
1464 (eval "$ac_compile") 2>conftest.err
1465 ac_status=$?
1466 if test -s conftest.err; then
1467 grep -v '^ *+' conftest.err >conftest.er1
1468 cat conftest.er1 >&5
1469 mv -f conftest.er1 conftest.err
1470 fi
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } && {
1473 test -z "$ac_c_werror_flag" ||
1474 test ! -s conftest.err
1475 } && test -s conftest.$ac_objext; then :
1476 ac_retval=0
1477else
1478 $as_echo "$as_me: failed program was:" >&5
1479sed 's/^/| /' conftest.$ac_ext >&5
9255ee31 1480
81ecdfbb
RW
1481 ac_retval=1
1482fi
d0ac1c44
SM
1483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1484 as_fn_set_status $ac_retval
9255ee31 1485
81ecdfbb 1486} # ac_fn_c_try_compile
9255ee31 1487
81ecdfbb
RW
1488# ac_fn_c_try_cpp LINENO
1489# ----------------------
1490# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1491ac_fn_c_try_cpp ()
1492{
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 if { { ac_try="$ac_cpp conftest.$ac_ext"
1495case "(($ac_try" in
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1498esac
1499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500$as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1502 ac_status=$?
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1507 fi
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1509 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 }; then :
1513 ac_retval=0
1514else
1515 $as_echo "$as_me: failed program was:" >&5
1516sed 's/^/| /' conftest.$ac_ext >&5
9255ee31 1517
81ecdfbb
RW
1518 ac_retval=1
1519fi
d0ac1c44
SM
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
25ed0b71 1522
81ecdfbb 1523} # ac_fn_c_try_cpp
25ed0b71 1524
81ecdfbb
RW
1525# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1526# -------------------------------------------------------
1527# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1528# the include files in INCLUDES and setting the cache variable VAR
1529# accordingly.
1530ac_fn_c_check_header_mongrel ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1533 if eval \${$3+:} false; then :
81ecdfbb
RW
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1535$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1536if eval \${$3+:} false; then :
81ecdfbb
RW
1537 $as_echo_n "(cached) " >&6
1538fi
1539eval ac_res=\$$3
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1541$as_echo "$ac_res" >&6; }
1542else
1543 # Is the header compilable?
1544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1545$as_echo_n "checking $2 usability... " >&6; }
1546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547/* end confdefs.h. */
1548$4
1549#include <$2>
1550_ACEOF
1551if ac_fn_c_try_compile "$LINENO"; then :
1552 ac_header_compiler=yes
1553else
1554 ac_header_compiler=no
1555fi
1556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1558$as_echo "$ac_header_compiler" >&6; }
1559
1560# Is the header present?
1561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1562$as_echo_n "checking $2 presence... " >&6; }
1563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564/* end confdefs.h. */
1565#include <$2>
1566_ACEOF
1567if ac_fn_c_try_cpp "$LINENO"; then :
1568 ac_header_preproc=yes
1569else
1570 ac_header_preproc=no
1571fi
d0ac1c44 1572rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1574$as_echo "$ac_header_preproc" >&6; }
1575
1576# So? What about this header?
1577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1578 yes:no: )
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1580$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1583 ;;
1584 no:yes:* )
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1586$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1588$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1590$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1592$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d0ac1c44 1595( $as_echo "## ----------------------------------- ##
81ecdfbb 1596## Report this to bug-readline@gnu.org ##
d0ac1c44 1597## ----------------------------------- ##"
81ecdfbb
RW
1598 ) | sed "s/^/$as_me: WARNING: /" >&2
1599 ;;
1600esac
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1603if eval \${$3+:} false; then :
81ecdfbb
RW
1604 $as_echo_n "(cached) " >&6
1605else
1606 eval "$3=\$ac_header_compiler"
1607fi
1608eval ac_res=\$$3
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610$as_echo "$ac_res" >&6; }
1611fi
d0ac1c44 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1613
1614} # ac_fn_c_check_header_mongrel
1615
1616# ac_fn_c_try_run LINENO
1617# ----------------------
1618# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619# that executables *can* be run.
1620ac_fn_c_try_run ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_link"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634 { { case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_try") 2>&5
1641 ac_status=$?
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; }; }; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: program exited with status $ac_status" >&5
1647 $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=$ac_status
1651fi
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
81ecdfbb
RW
1655
1656} # ac_fn_c_try_run
1657
1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659# -------------------------------------------------------
1660# Tests whether HEADER exists and can be compiled using the include files in
1661# INCLUDES, setting the cache variable VAR accordingly.
1662ac_fn_c_check_header_compile ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1667if eval \${$3+:} false; then :
81ecdfbb
RW
1668 $as_echo_n "(cached) " >&6
1669else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677else
1678 eval "$3=no"
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681fi
1682eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
d0ac1c44 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1686
1687} # ac_fn_c_check_header_compile
1688
1689# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1690# -------------------------------------------
1691# Tests whether TYPE exists after having included INCLUDES, setting cache
1692# variable VAR accordingly.
1693ac_fn_c_check_type ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1698if eval \${$3+:} false; then :
81ecdfbb
RW
1699 $as_echo_n "(cached) " >&6
1700else
1701 eval "$3=no"
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h. */
1704$4
1705int
1706main ()
1707{
1708if (sizeof ($2))
1709 return 0;
1710 ;
1711 return 0;
1712}
1713_ACEOF
1714if ac_fn_c_try_compile "$LINENO"; then :
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h. */
1717$4
1718int
1719main ()
1720{
1721if (sizeof (($2)))
1722 return 0;
1723 ;
1724 return 0;
1725}
1726_ACEOF
1727if ac_fn_c_try_compile "$LINENO"; then :
1728
1729else
1730 eval "$3=yes"
1731fi
1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733fi
1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
d0ac1c44 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1740
1741} # ac_fn_c_check_type
1742
1743# ac_fn_c_try_link LINENO
1744# -----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_link ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
d0ac1c44 1770 test -x conftest$ac_exeext
81ecdfbb
RW
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
81ecdfbb
RW
1786
1787} # ac_fn_c_try_link
1788
1789# ac_fn_c_check_func LINENO FUNC VAR
1790# ----------------------------------
1791# Tests whether FUNC exists, setting the cache variable VAR accordingly
1792ac_fn_c_check_func ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1797if eval \${$3+:} false; then :
81ecdfbb
RW
1798 $as_echo_n "(cached) " >&6
1799else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h. */
1802/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804#define $2 innocuous_$2
1805
1806/* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1810
1811#ifdef __STDC__
1812# include <limits.h>
1813#else
1814# include <assert.h>
1815#endif
1816
1817#undef $2
1818
1819/* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822#ifdef __cplusplus
1823extern "C"
1824#endif
1825char $2 ();
1826/* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829#if defined __stub_$2 || defined __stub___$2
1830choke me
1831#endif
1832
1833int
1834main ()
1835{
1836return $2 ();
1837 ;
1838 return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843else
1844 eval "$3=no"
1845fi
1846rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1848fi
1849eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851$as_echo "$ac_res" >&6; }
d0ac1c44 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1853
1854} # ac_fn_c_check_func
775e241e
TT
1855
1856# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1857# ---------------------------------------------
1858# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1859# accordingly.
1860ac_fn_c_check_decl ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 as_decl_name=`echo $2|sed 's/ *(.*//'`
1864 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1866$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1867if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873int
1874main ()
1875{
1876#ifndef $as_decl_name
1877#ifdef __cplusplus
1878 (void) $as_decl_use;
1879#else
1880 (void) $as_decl_name;
1881#endif
1882#endif
1883
1884 ;
1885 return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"; then :
1889 eval "$3=yes"
1890else
1891 eval "$3=no"
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_decl
81ecdfbb
RW
1901cat >config.log <<_ACEOF
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
775e241e 1905It was created by readline $as_me 7.0, which was
d0ac1c44 1906generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1907
1908 $ $0 $@
1909
1910_ACEOF
1911exec 5>>config.log
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944IFS=$as_save_IFS
1945
1946} >&5
9255ee31 1947
25ed0b71
KW
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
9255ee31 1956
9255ee31
EZ
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
25ed0b71 1960# Strip out --silent because we don't want to record it for future runs.
9255ee31 1961# Also quote any args containing shell meta-characters.
25ed0b71 1962# Make two passes to allow for proper duplicate-argument suppression.
9255ee31 1963ac_configure_args=
25ed0b71
KW
1964ac_configure_args0=
1965ac_configure_args1=
25ed0b71
KW
1966ac_must_keep_next=false
1967for ac_pass in 1 2
9255ee31 1968do
25ed0b71
KW
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
81ecdfbb
RW
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25ed0b71
KW
1978 esac
1979 case $ac_pass in
81ecdfbb 1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
25ed0b71 1981 2)
81ecdfbb 1982 as_fn_append ac_configure_args1 " '$ac_arg'"
25ed0b71 1983 if test $ac_must_keep_next = true; then
430b7832 1984 ac_must_keep_next=false # Got value, back to normal.
25ed0b71 1985 else
430b7832
MM
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
25ed0b71 1997 fi
81ecdfbb 1998 as_fn_append ac_configure_args " '$ac_arg'"
25ed0b71
KW
1999 ;;
2000 esac
2001 done
9255ee31 2002done
81ecdfbb
RW
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
9255ee31
EZ
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log. We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
81ecdfbb
RW
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
9255ee31
EZ
2011trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
25ed0b71
KW
2013 {
2014 echo
2015
d0ac1c44 2016 $as_echo "## ---------------- ##
25ed0b71 2017## Cache variables. ##
d0ac1c44 2018## ---------------- ##"
25ed0b71
KW
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2021(
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
9255ee31 2037 (set) 2>&1 |
81ecdfbb
RW
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
9255ee31 2040 sed -n \
81ecdfbb
RW
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
9255ee31 2044 *)
81ecdfbb 2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9255ee31 2046 ;;
81ecdfbb
RW
2047 esac |
2048 sort
2049)
25ed0b71
KW
2050 echo
2051
d0ac1c44 2052 $as_echo "## ----------------- ##
25ed0b71 2053## Output variables. ##
d0ac1c44 2054## ----------------- ##"
25ed0b71
KW
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
81ecdfbb
RW
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
25ed0b71
KW
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
d0ac1c44 2067 $as_echo "## ------------------- ##
81ecdfbb 2068## File substitutions. ##
d0ac1c44 2069## ------------------- ##"
25ed0b71
KW
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
81ecdfbb
RW
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
25ed0b71
KW
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
d0ac1c44 2083 $as_echo "## ----------- ##
25ed0b71 2084## confdefs.h. ##
d0ac1c44 2085## ----------- ##"
25ed0b71 2086 echo
81ecdfbb 2087 cat confdefs.h
25ed0b71
KW
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
81ecdfbb
RW
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
25ed0b71 2093 } >&5
81ecdfbb
RW
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
9255ee31 2096 exit $exit_status
81ecdfbb 2097' 0
9255ee31 2098for ac_signal in 1 2 13 15; do
81ecdfbb 2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
9255ee31
EZ
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2104rm -f -r conftest* confdefs.h
2105
2106$as_echo "/* confdefs.h */" > confdefs.h
9255ee31 2107
25ed0b71
KW
2108# Predefined preprocessor variables.
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_NAME "$PACKAGE_NAME"
2112_ACEOF
2113
25ed0b71
KW
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116_ACEOF
2117
25ed0b71
KW
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_VERSION "$PACKAGE_VERSION"
2120_ACEOF
2121
25ed0b71
KW
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_STRING "$PACKAGE_STRING"
2124_ACEOF
2125
25ed0b71
KW
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128_ACEOF
2129
81ecdfbb
RW
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_URL "$PACKAGE_URL"
2132_ACEOF
2133
25ed0b71 2134
9255ee31 2135# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2136# Prefer an explicitly selected file to automatically selected ones.
2137ac_site_file1=NONE
2138ac_site_file2=NONE
2139if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
81ecdfbb
RW
2146elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152fi
2153for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154do
2155 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158$as_echo "$as_me: loading site script $ac_site_file" >&6;}
25ed0b71 2159 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163as_fn_error $? "failed to load site script $ac_site_file
2164See \`config.log' for more details" "$LINENO" 5; }
9255ee31
EZ
2165 fi
2166done
2167
2168if test -r "$cache_file"; then
d0ac1c44
SM
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173$as_echo "$as_me: loading cache $cache_file" >&6;}
9255ee31 2174 case $cache_file in
81ecdfbb
RW
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
9255ee31
EZ
2177 esac
2178 fi
2179else
81ecdfbb
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181$as_echo "$as_me: creating cache $cache_file" >&6;}
9255ee31
EZ
2182 >$cache_file
2183fi
2184
2185# Check that the precious variables saved in the cache have kept the same
2186# value.
2187ac_cache_corrupted=false
81ecdfbb 2188for ac_var in $ac_precious_vars; do
9255ee31
EZ
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
9255ee31
EZ
2193 case $ac_old_set,$ac_new_set in
2194 set,)
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
9255ee31
EZ
2197 ac_cache_corrupted=: ;;
2198 ,set)
81ecdfbb
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
9255ee31
EZ
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
9255ee31
EZ
2221 fi;;
2222 esac
25ed0b71 2223 # Pass precious variables to config.status.
9255ee31
EZ
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
81ecdfbb 2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
25ed0b71
KW
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
9255ee31
EZ
2232 esac
2233 fi
2234done
2235if $ac_cache_corrupted; then
81ecdfbb
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
9255ee31 2241fi
81ecdfbb
RW
2242## -------------------- ##
2243## Main body of script. ##
2244## -------------------- ##
9255ee31
EZ
2245
2246ac_ext=c
2247ac_cpp='$CPP $CPPFLAGS'
2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
9255ee31 2252
25ed0b71
KW
2253
2254
2255
2256
5836a818
PP
2257
2258
2259
9255ee31 2260ac_aux_dir=
5836a818 2261for ac_dir in `cd $srcdir;pwd`/.. "$srcdir"/`cd $srcdir;pwd`/..; do
d0ac1c44
SM
2262 if test -f "$ac_dir/install-sh"; then
2263 ac_aux_dir=$ac_dir
2264 ac_install_sh="$ac_aux_dir/install-sh -c"
2265 break
2266 elif test -f "$ac_dir/install.sh"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/install.sh -c"
2269 break
2270 elif test -f "$ac_dir/shtool"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/shtool install -c"
2273 break
2274 fi
9255ee31
EZ
2275done
2276if test -z "$ac_aux_dir"; then
d0ac1c44 2277 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." "$LINENO" 5
9255ee31 2278fi
9255ee31 2279
81ecdfbb
RW
2280# These three variables are undocumented and unsupported,
2281# and are intended to be withdrawn in a future Autoconf release.
2282# They can cause serious problems if a builder's source tree is in a directory
2283# whose full name contains unusual characters.
2284ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2285ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2286ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2287
2288
2289ac_config_headers="$ac_config_headers config.h"
5bdf8622
DJ
2290
2291
775e241e 2292LIBVERSION=7.0
5bdf8622 2293
9255ee31 2294# Make sure we can run config.sub.
81ecdfbb 2295$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2296 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2297
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2299$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2300if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2301 $as_echo_n "(cached) " >&6
2302else
2303 ac_build_alias=$build_alias
2304test "x$ac_build_alias" = x &&
2305 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2306test "x$ac_build_alias" = x &&
d0ac1c44 2307 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2308ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2309 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2310
2311fi
2312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2313$as_echo "$ac_cv_build" >&6; }
2314case $ac_cv_build in
2315*-*-*) ;;
d0ac1c44 2316*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2317esac
9255ee31 2318build=$ac_cv_build
81ecdfbb
RW
2319ac_save_IFS=$IFS; IFS='-'
2320set x $ac_cv_build
2321shift
2322build_cpu=$1
2323build_vendor=$2
2324shift; shift
2325# Remember, the first character of IFS is used to create $*,
2326# except with old shells:
2327build_os=$*
2328IFS=$ac_save_IFS
2329case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
9255ee31 2330
25ed0b71 2331
81ecdfbb
RW
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2333$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2334if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2335 $as_echo_n "(cached) " >&6
2336else
2337 if test "x$host_alias" = x; then
2338 ac_cv_host=$ac_cv_build
9255ee31 2339else
81ecdfbb 2340 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2341 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2342fi
9255ee31
EZ
2343
2344fi
81ecdfbb
RW
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2346$as_echo "$ac_cv_host" >&6; }
2347case $ac_cv_host in
2348*-*-*) ;;
d0ac1c44 2349*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2350esac
9255ee31 2351host=$ac_cv_host
81ecdfbb
RW
2352ac_save_IFS=$IFS; IFS='-'
2353set x $ac_cv_host
2354shift
2355host_cpu=$1
2356host_vendor=$2
2357shift; shift
2358# Remember, the first character of IFS is used to create $*,
2359# except with old shells:
2360host_os=$*
2361IFS=$ac_save_IFS
2362case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9255ee31 2363
25ed0b71
KW
2364
2365
19ce2a29 2366
9255ee31
EZ
2367opt_curses=no
2368
25ed0b71 2369
81ecdfbb
RW
2370# Check whether --with-curses was given.
2371if test "${with_curses+set}" = set; then :
2372 withval=$with_curses; opt_curses=$withval
2373fi
2374
2375
9255ee31
EZ
2376if test "$opt_curses" = "yes"; then
2377 prefer_curses=yes
2378fi
2379
5bdf8622 2380opt_multibyte=yes
9255ee31 2381opt_static_libs=yes
b558ff04 2382opt_shared_libs=no
9255ee31 2383
81ecdfbb
RW
2384# Check whether --enable-multibyte was given.
2385if test "${enable_multibyte+set}" = set; then :
2386 enableval=$enable_multibyte; opt_multibyte=$enableval
2387fi
2388
2389# Check whether --enable-static was given.
2390if test "${enable_static+set}" = set; then :
2391 enableval=$enable_static; opt_static_libs=$enableval
2392fi
2393
9255ee31 2394
5bdf8622 2395if test $opt_multibyte = no; then
81ecdfbb 2396$as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
5bdf8622
DJ
2397
2398fi
2399
2400
2401
eeab5adb 2402CROSS_COMPILE=
5bdf8622
DJ
2403if test "x$cross_compiling" = "xyes"; then
2404 case "${host}" in
2405 *-cygwin*)
2406 cross_cache=${srcdir}/cross-build/cygwin.cache
2407 ;;
2408 *-mingw*)
2409 cross_cache=${srcdir}/cross-build/mingw.cache
2410 ;;
2411 i[3456]86-*-beos*)
2412 cross_cache=${srcdir}/cross-build/x86-beos.cache
2413 ;;
2414 *) echo "configure: cross-compiling for $host is not supported" >&2
2415 ;;
2416 esac
2417 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2418 echo "loading cross-build cache file ${cross_cache}"
2419 . ${cross_cache}
2420 fi
2421 unset cross_cache
2422 CROSS_COMPILE='-DCROSS_COMPILING'
2423
2424fi
2425
9255ee31
EZ
2426echo ""
2427echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2428echo ""
2429
2430# We want these before the checks, so the checks can modify their values.
2431test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2432
81ecdfbb
RW
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2434$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2435set x ${MAKE-make}
2436ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 2437if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 2438 $as_echo_n "(cached) " >&6
9255ee31 2439else
25ed0b71 2440 cat >conftest.make <<\_ACEOF
81ecdfbb 2441SHELL = /bin/sh
9255ee31 2442all:
81ecdfbb 2443 @echo '@@@%%%=$(MAKE)=@@@%%%'
25ed0b71 2444_ACEOF
d0ac1c44 2445# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
2446case `${MAKE-make} -f conftest.make 2>/dev/null` in
2447 *@@@%%%=?*=@@@%%%*)
2448 eval ac_cv_prog_make_${ac_make}_set=yes;;
2449 *)
2450 eval ac_cv_prog_make_${ac_make}_set=no;;
2451esac
9255ee31
EZ
2452rm -f conftest.make
2453fi
81ecdfbb
RW
2454if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2456$as_echo "yes" >&6; }
9255ee31
EZ
2457 SET_MAKE=
2458else
81ecdfbb
RW
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460$as_echo "no" >&6; }
9255ee31
EZ
2461 SET_MAKE="MAKE=${MAKE-make}"
2462fi
2463
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2471set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2474if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2475 $as_echo_n "(cached) " >&6
9255ee31
EZ
2476else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479else
25ed0b71
KW
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
81ecdfbb 2485 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25ed0b71 2487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
2489 break 2
2490 fi
2491done
81ecdfbb
RW
2492 done
2493IFS=$as_save_IFS
9255ee31 2494
d60d9f65 2495fi
9255ee31
EZ
2496fi
2497CC=$ac_cv_prog_CC
d60d9f65 2498if test -n "$CC"; then
81ecdfbb
RW
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2500$as_echo "$CC" >&6; }
9255ee31 2501else
81ecdfbb
RW
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
9255ee31
EZ
2504fi
2505
81ecdfbb 2506
9255ee31
EZ
2507fi
2508if test -z "$ac_cv_prog_CC"; then
2509 ac_ct_CC=$CC
2510 # Extract the first word of "gcc", so it can be a program name with args.
2511set dummy gcc; ac_word=$2
81ecdfbb
RW
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2514if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2515 $as_echo_n "(cached) " >&6
9255ee31
EZ
2516else
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2519else
25ed0b71
KW
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
81ecdfbb 2525 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25ed0b71 2527 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
2529 break 2
2530 fi
2531done
81ecdfbb
RW
2532 done
2533IFS=$as_save_IFS
9255ee31
EZ
2534
2535fi
2536fi
2537ac_ct_CC=$ac_cv_prog_ac_ct_CC
2538if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2540$as_echo "$ac_ct_CC" >&6; }
9255ee31 2541else
81ecdfbb
RW
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
9255ee31
EZ
2544fi
2545
81ecdfbb
RW
2546 if test "x$ac_ct_CC" = x; then
2547 CC=""
2548 else
2549 case $cross_compiling:$ac_tool_warned in
2550yes:)
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553ac_tool_warned=yes ;;
2554esac
2555 CC=$ac_ct_CC
2556 fi
d60d9f65 2557else
9255ee31 2558 CC="$ac_cv_prog_CC"
d60d9f65
SS
2559fi
2560
2561if test -z "$CC"; then
81ecdfbb
RW
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9255ee31 2564set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2567if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2568 $as_echo_n "(cached) " >&6
9255ee31
EZ
2569else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572else
25ed0b71
KW
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
81ecdfbb 2578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25ed0b71 2580 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
2582 break 2
2583 fi
2584done
81ecdfbb
RW
2585 done
2586IFS=$as_save_IFS
9255ee31
EZ
2587
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
81ecdfbb
RW
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593$as_echo "$CC" >&6; }
9255ee31 2594else
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
9255ee31
EZ
2597fi
2598
81ecdfbb
RW
2599
2600 fi
9255ee31 2601fi
81ecdfbb 2602if test -z "$CC"; then
d60d9f65
SS
2603 # Extract the first word of "cc", so it can be a program name with args.
2604set dummy cc; ac_word=$2
81ecdfbb
RW
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2607if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2608 $as_echo_n "(cached) " >&6
9255ee31 2609else
81ecdfbb
RW
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
9255ee31 2612else
81ecdfbb 2613 ac_prog_rejected=no
25ed0b71
KW
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
81ecdfbb 2619 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2622 ac_prog_rejected=yes
2623 continue
2624 fi
2625 ac_cv_prog_CC="cc"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
2627 break 2
2628 fi
2629done
81ecdfbb
RW
2630 done
2631IFS=$as_save_IFS
9255ee31 2632
d60d9f65
SS
2633if test $ac_prog_rejected = yes; then
2634 # We found a bogon in the path, so make sure we never use it.
2635 set dummy $ac_cv_prog_CC
2636 shift
9255ee31 2637 if test $# != 0; then
d60d9f65
SS
2638 # We chose a different compiler from the bogus one.
2639 # However, it has the same basename, so the bogon will be chosen
2640 # first if we set CC to just the basename; use the full file name.
2641 shift
25ed0b71 2642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d60d9f65
SS
2643 fi
2644fi
2645fi
2646fi
9255ee31 2647CC=$ac_cv_prog_CC
d60d9f65 2648if test -n "$CC"; then
81ecdfbb
RW
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650$as_echo "$CC" >&6; }
d60d9f65 2651else
81ecdfbb
RW
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
d60d9f65
SS
2654fi
2655
81ecdfbb 2656
9255ee31
EZ
2657fi
2658if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
81ecdfbb 2660 for ac_prog in cl.exe
9255ee31
EZ
2661 do
2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2666if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2667 $as_echo_n "(cached) " >&6
d60d9f65
SS
2668else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671else
25ed0b71
KW
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
81ecdfbb 2677 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25ed0b71 2679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
2681 break 2
2682 fi
2683done
81ecdfbb
RW
2684 done
2685IFS=$as_save_IFS
9255ee31 2686
d60d9f65
SS
2687fi
2688fi
9255ee31 2689CC=$ac_cv_prog_CC
d60d9f65 2690if test -n "$CC"; then
81ecdfbb
RW
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692$as_echo "$CC" >&6; }
d60d9f65 2693else
81ecdfbb
RW
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
d60d9f65
SS
2696fi
2697
81ecdfbb 2698
9255ee31
EZ
2699 test -n "$CC" && break
2700 done
2701fi
2702if test -z "$CC"; then
2703 ac_ct_CC=$CC
81ecdfbb 2704 for ac_prog in cl.exe
9255ee31
EZ
2705do
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2710if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2711 $as_echo_n "(cached) " >&6
9255ee31
EZ
2712else
2713 if test -n "$ac_ct_CC"; then
2714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2715else
25ed0b71
KW
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
81ecdfbb 2721 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25ed0b71 2723 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
2725 break 2
2726 fi
2727done
81ecdfbb
RW
2728 done
2729IFS=$as_save_IFS
d60d9f65 2730
9255ee31
EZ
2731fi
2732fi
2733ac_ct_CC=$ac_cv_prog_ac_ct_CC
2734if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2736$as_echo "$ac_ct_CC" >&6; }
9255ee31 2737else
81ecdfbb
RW
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
9255ee31 2740fi
d60d9f65 2741
81ecdfbb 2742
9255ee31
EZ
2743 test -n "$ac_ct_CC" && break
2744done
c862e87b 2745
81ecdfbb
RW
2746 if test "x$ac_ct_CC" = x; then
2747 CC=""
2748 else
2749 case $cross_compiling:$ac_tool_warned in
2750yes:)
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753ac_tool_warned=yes ;;
2754esac
2755 CC=$ac_ct_CC
2756 fi
9255ee31
EZ
2757fi
2758
2759fi
2760
25ed0b71 2761
81ecdfbb
RW
2762test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2764as_fn_error $? "no acceptable C compiler found in \$PATH
2765See \`config.log' for more details" "$LINENO" 5; }
9255ee31
EZ
2766
2767# Provide some information about the compiler.
81ecdfbb
RW
2768$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2769set X $ac_compile
2770ac_compiler=$2
2771for ac_option in --version -v -V -qversion; do
2772 { { ac_try="$ac_compiler $ac_option >&5"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
2777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778$as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9255ee31 2780 ac_status=$?
81ecdfbb
RW
2781 if test -s conftest.err; then
2782 sed '10a\
2783... rest of stderr output deleted ...
2784 10q' conftest.err >conftest.er1
2785 cat conftest.er1 >&5
81ecdfbb 2786 fi
d0ac1c44 2787 rm -f conftest.er1 conftest.err
81ecdfbb
RW
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }
2790done
9255ee31 2791
81ecdfbb 2792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 2793/* end confdefs.h. */
5836a818 2794
9255ee31
EZ
2795int
2796main ()
2797{
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803ac_clean_files_save=$ac_clean_files
d0ac1c44 2804ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
9255ee31
EZ
2805# Try to create an executable without -o first, disregard a.out.
2806# It will help us diagnose broken compilers, and finding out an intuition
2807# of exeext.
d0ac1c44
SM
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2809$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
2810ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2811
2812# The possible output files:
2813ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2814
2815ac_rmfiles=
2816for ac_file in $ac_files
2817do
2818 case $ac_file in
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2821 esac
2822done
2823rm -f $ac_rmfiles
2824
2825if { { ac_try="$ac_link_default"
2826case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831$as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link_default") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; then :
2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838# in a Makefile. We should not override ac_cv_exeext if it was cached,
2839# so that the user can short-circuit this test for compilers unknown to
2840# Autoconf.
2841for ac_file in $ac_files ''
25ed0b71
KW
2842do
2843 test -f "$ac_file" || continue
9255ee31 2844 case $ac_file in
81ecdfbb 2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
430b7832 2846 ;;
25ed0b71 2847 [ab].out )
430b7832
MM
2848 # We found the default executable, but exeext='' is most
2849 # certainly right.
2850 break;;
25ed0b71 2851 *.* )
81ecdfbb
RW
2852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2853 then :; else
2854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855 fi
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2860 # actually working.
430b7832 2861 break;;
25ed0b71 2862 * )
430b7832 2863 break;;
9255ee31
EZ
2864 esac
2865done
81ecdfbb
RW
2866test "$ac_cv_exeext" = no && ac_cv_exeext=
2867
9255ee31 2868else
81ecdfbb
RW
2869 ac_file=''
2870fi
81ecdfbb 2871if test -z "$ac_file"; then :
d0ac1c44
SM
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
2874$as_echo "$as_me: failed program was:" >&5
25ed0b71
KW
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
81ecdfbb
RW
2877{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2879as_fn_error 77 "C compiler cannot create executables
2880See \`config.log' for more details" "$LINENO" 5; }
2881else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883$as_echo "yes" >&6; }
9255ee31 2884fi
d0ac1c44
SM
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2886$as_echo_n "checking for C compiler default output file name... " >&6; }
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2888$as_echo "$ac_file" >&6; }
9255ee31 2889ac_exeext=$ac_cv_exeext
9255ee31 2890
d0ac1c44 2891rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
9255ee31 2892ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2894$as_echo_n "checking for suffix of executables... " >&6; }
2895if { { ac_try="$ac_link"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901$as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link") 2>&5
9255ee31 2903 ac_status=$?
81ecdfbb
RW
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }; then :
9255ee31
EZ
2906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2908# work properly (i.e., refer to `conftest.exe'), while it won't with
2909# `rm'.
25ed0b71
KW
2910for ac_file in conftest.exe conftest conftest.*; do
2911 test -f "$ac_file" || continue
9255ee31 2912 case $ac_file in
81ecdfbb 2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
9255ee31 2914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
430b7832 2915 break;;
9255ee31
EZ
2916 * ) break;;
2917 esac
2918done
d60d9f65 2919else
81ecdfbb
RW
2920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2922as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details" "$LINENO" 5; }
9255ee31 2924fi
d0ac1c44 2925rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2927$as_echo "$ac_cv_exeext" >&6; }
9255ee31
EZ
2928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
d0ac1c44
SM
2932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h. */
2934#include <stdio.h>
2935int
2936main ()
2937{
2938FILE *f = fopen ("conftest.out", "w");
2939 return ferror (f) || fclose (f) != 0;
2940
2941 ;
2942 return 0;
2943}
2944_ACEOF
2945ac_clean_files="$ac_clean_files conftest.out"
2946# Check that the compiler produces executables we can run. If not, either
2947# the compiler is broken, or we cross compile.
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2949$as_echo_n "checking whether we are cross compiling... " >&6; }
2950if test "$cross_compiling" != yes; then
2951 { { ac_try="$ac_link"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957$as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_link") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }
2962 if { ac_try='./conftest$ac_cv_exeext'
2963 { { case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968$as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; }; then
2973 cross_compiling=no
2974 else
2975 if test "$cross_compiling" = maybe; then
2976 cross_compiling=yes
2977 else
2978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error $? "cannot run C compiled programs.
2981If you meant to cross compile, use \`--host'.
2982See \`config.log' for more details" "$LINENO" 5; }
2983 fi
2984 fi
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2987$as_echo "$cross_compiling" >&6; }
2988
2989rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2990ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2992$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2993if ${ac_cv_objext+:} false; then :
81ecdfbb 2994 $as_echo_n "(cached) " >&6
9255ee31 2995else
81ecdfbb 2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 2997/* end confdefs.h. */
d60d9f65 2998
9255ee31
EZ
2999int
3000main ()
3001{
d60d9f65 3002
9255ee31
EZ
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007rm -f conftest.o conftest.obj
81ecdfbb
RW
3008if { { ac_try="$ac_compile"
3009case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014$as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_compile") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }; then :
3019 for ac_file in conftest.o conftest.obj conftest.*; do
3020 test -f "$ac_file" || continue;
9255ee31 3021 case $ac_file in
81ecdfbb 3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
9255ee31
EZ
3023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3024 break;;
3025 esac
3026done
d60d9f65 3027else
81ecdfbb 3028 $as_echo "$as_me: failed program was:" >&5
25ed0b71
KW
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
81ecdfbb
RW
3031{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3033as_fn_error $? "cannot compute suffix of object files: cannot compile
3034See \`config.log' for more details" "$LINENO" 5; }
9255ee31 3035fi
9255ee31
EZ
3036rm -f conftest.$ac_cv_objext conftest.$ac_ext
3037fi
81ecdfbb
RW
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3039$as_echo "$ac_cv_objext" >&6; }
9255ee31
EZ
3040OBJEXT=$ac_cv_objext
3041ac_objext=$OBJEXT
81ecdfbb
RW
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3043$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3044if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3045 $as_echo_n "(cached) " >&6
9255ee31 3046else
81ecdfbb 3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 3048/* end confdefs.h. */
9255ee31
EZ
3049
3050int
3051main ()
3052{
3053#ifndef __GNUC__
3054 choke me
3055#endif
d60d9f65 3056
9255ee31
EZ
3057 ;
3058 return 0;
3059}
3060_ACEOF
81ecdfbb 3061if ac_fn_c_try_compile "$LINENO"; then :
9255ee31
EZ
3062 ac_compiler_gnu=yes
3063else
81ecdfbb 3064 ac_compiler_gnu=no
9255ee31 3065fi
81ecdfbb 3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255ee31
EZ
3067ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069fi
81ecdfbb
RW
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3071$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3072if test $ac_compiler_gnu = yes; then
3073 GCC=yes
3074else
3075 GCC=
3076fi
9255ee31
EZ
3077ac_test_CFLAGS=${CFLAGS+set}
3078ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3080$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3081if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3082 $as_echo_n "(cached) " >&6
3083else
3084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3086 ac_cv_prog_cc_g=no
3087 CFLAGS="-g"
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 3089/* end confdefs.h. */
9255ee31
EZ
3090
3091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
81ecdfbb 3099if ac_fn_c_try_compile "$LINENO"; then :
d60d9f65
SS
3100 ac_cv_prog_cc_g=yes
3101else
81ecdfbb
RW
3102 CFLAGS=""
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h. */
3105
3106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114if ac_fn_c_try_compile "$LINENO"; then :
3115
3116else
3117 ac_c_werror_flag=$ac_save_c_werror_flag
3118 CFLAGS="-g"
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120/* end confdefs.h. */
3121
3122int
3123main ()
3124{
25ed0b71 3125
81ecdfbb
RW
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_cv_prog_cc_g=yes
3132fi
3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134fi
3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 3136fi
81ecdfbb
RW
3137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_c_werror_flag=$ac_save_c_werror_flag
d60d9f65 3139fi
81ecdfbb
RW
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3141$as_echo "$ac_cv_prog_cc_g" >&6; }
d60d9f65 3142if test "$ac_test_CFLAGS" = set; then
9255ee31 3143 CFLAGS=$ac_save_CFLAGS
d60d9f65
SS
3144elif test $ac_cv_prog_cc_g = yes; then
3145 if test "$GCC" = yes; then
3146 CFLAGS="-g -O2"
3147 else
3148 CFLAGS="-g"
3149 fi
3150else
3151 if test "$GCC" = yes; then
3152 CFLAGS="-O2"
3153 else
3154 CFLAGS=
3155 fi
3156fi
81ecdfbb
RW
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3158$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3159if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3160 $as_echo_n "(cached) " >&6
25ed0b71 3161else
81ecdfbb 3162 ac_cv_prog_cc_c89=no
25ed0b71 3163ac_save_CC=$CC
81ecdfbb 3164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3165/* end confdefs.h. */
3166#include <stdarg.h>
3167#include <stdio.h>
d0ac1c44 3168struct stat;
25ed0b71
KW
3169/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3170struct buf { int x; };
3171FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172static char *e (p, i)
3173 char **p;
3174 int i;
3175{
3176 return p[i];
3177}
3178static char *f (char * (*g) (char **, int), char **p, ...)
3179{
3180 char *s;
3181 va_list v;
3182 va_start (v,p);
3183 s = g (p, va_arg (v,int));
3184 va_end (v);
3185 return s;
3186}
430b7832
MM
3187
3188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3189 function prototypes and stuff, but not '\xHH' hex character constants.
3190 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3191 as 'x'. The following induces an error, until -std is added to get
430b7832
MM
3192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3193 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3194 that's true only with -std. */
430b7832
MM
3195int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196
81ecdfbb
RW
3197/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198 inside strings and character constants. */
3199#define FOO(x) 'x'
3200int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201
25ed0b71
KW
3202int test (int i, double x);
3203struct s1 {int (*f) (int a);};
3204struct s2 {int (*f) (double a);};
3205int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206int argc;
3207char **argv;
3208int
3209main ()
3210{
3211return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212 ;
3213 return 0;
3214}
3215_ACEOF
81ecdfbb
RW
3216for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
25ed0b71
KW
3218do
3219 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3220 if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_cv_prog_cc_c89=$ac_arg
25ed0b71 3222fi
81ecdfbb
RW
3223rm -f core conftest.err conftest.$ac_objext
3224 test "x$ac_cv_prog_cc_c89" != "xno" && break
25ed0b71 3225done
81ecdfbb 3226rm -f conftest.$ac_ext
25ed0b71
KW
3227CC=$ac_save_CC
3228
3229fi
81ecdfbb
RW
3230# AC_CACHE_VAL
3231case "x$ac_cv_prog_cc_c89" in
3232 x)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3234$as_echo "none needed" >&6; } ;;
3235 xno)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3237$as_echo "unsupported" >&6; } ;;
25ed0b71 3238 *)
81ecdfbb
RW
3239 CC="$CC $ac_cv_prog_cc_c89"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3241$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
25ed0b71 3242esac
81ecdfbb 3243if test "x$ac_cv_prog_cc_c89" != xno; then :
25ed0b71 3244
9255ee31 3245fi
d60d9f65 3246
9255ee31
EZ
3247ac_ext=c
3248ac_cpp='$CPP $CPPFLAGS'
3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
25ed0b71 3253
9255ee31
EZ
3254ac_ext=c
3255ac_cpp='$CPP $CPPFLAGS'
3256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3260$as_echo_n "checking how to run the C preprocessor... " >&6; }
d60d9f65
SS
3261# On Suns, sometimes $CPP names a directory.
3262if test -n "$CPP" && test -d "$CPP"; then
3263 CPP=
3264fi
3265if test -z "$CPP"; then
d0ac1c44 3266 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 3267 $as_echo_n "(cached) " >&6
d60d9f65 3268else
9255ee31
EZ
3269 # Double quotes because CPP needs to be expanded
3270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3271 do
3272 ac_preproc_ok=false
3273for ac_c_preproc_warn_flag in '' yes
3274do
3275 # Use a header file that comes with gcc, so configuring glibc
3276 # with a fresh cross-compiler works.
25ed0b71
KW
3277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3278 # <limits.h> exists even on freestanding compilers.
d60d9f65 3279 # On the NeXT, cc -E runs the code through the compiler's parser,
9255ee31 3280 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3282/* end confdefs.h. */
3283#ifdef __STDC__
3284# include <limits.h>
3285#else
3286# include <assert.h>
3287#endif
430b7832 3288 Syntax error
9255ee31 3289_ACEOF
81ecdfbb 3290if ac_fn_c_try_cpp "$LINENO"; then :
25ed0b71 3291
81ecdfbb 3292else
9255ee31
EZ
3293 # Broken: fails on valid input.
3294continue
3295fi
d0ac1c44 3296rm -f conftest.err conftest.i conftest.$ac_ext
9255ee31 3297
81ecdfbb 3298 # OK, works on sane cases. Now check whether nonexistent headers
9255ee31 3299 # can be detected and how.
81ecdfbb 3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 3301/* end confdefs.h. */
9255ee31
EZ
3302#include <ac_nonexistent.h>
3303_ACEOF
81ecdfbb 3304if ac_fn_c_try_cpp "$LINENO"; then :
9255ee31
EZ
3305 # Broken: success on invalid input.
3306continue
d60d9f65 3307else
9255ee31
EZ
3308 # Passes both tests.
3309ac_preproc_ok=:
3310break
3311fi
d0ac1c44 3312rm -f conftest.err conftest.i conftest.$ac_ext
9255ee31
EZ
3313
3314done
3315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3316rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 3317if $ac_preproc_ok; then :
9255ee31
EZ
3318 break
3319fi
3320
3321 done
3322 ac_cv_prog_CPP=$CPP
3323
3324fi
3325 CPP=$ac_cv_prog_CPP
3326else
3327 ac_cv_prog_CPP=$CPP
3328fi
81ecdfbb
RW
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3330$as_echo "$CPP" >&6; }
9255ee31
EZ
3331ac_preproc_ok=false
3332for ac_c_preproc_warn_flag in '' yes
3333do
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
25ed0b71
KW
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
9255ee31
EZ
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3341/* end confdefs.h. */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
430b7832 3347 Syntax error
9255ee31 3348_ACEOF
81ecdfbb 3349if ac_fn_c_try_cpp "$LINENO"; then :
25ed0b71 3350
81ecdfbb 3351else
9255ee31
EZ
3352 # Broken: fails on valid input.
3353continue
d60d9f65 3354fi
d0ac1c44 3355rm -f conftest.err conftest.i conftest.$ac_ext
9255ee31 3356
81ecdfbb 3357 # OK, works on sane cases. Now check whether nonexistent headers
9255ee31 3358 # can be detected and how.
81ecdfbb 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 3360/* end confdefs.h. */
9255ee31
EZ
3361#include <ac_nonexistent.h>
3362_ACEOF
81ecdfbb 3363if ac_fn_c_try_cpp "$LINENO"; then :
9255ee31
EZ
3364 # Broken: success on invalid input.
3365continue
3366else
9255ee31
EZ
3367 # Passes both tests.
3368ac_preproc_ok=:
3369break
d60d9f65 3370fi
d0ac1c44 3371rm -f conftest.err conftest.i conftest.$ac_ext
9255ee31
EZ
3372
3373done
3374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3375rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
3376if $ac_preproc_ok; then :
3377
d60d9f65 3378else
81ecdfbb
RW
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3381as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3382See \`config.log' for more details" "$LINENO" 5; }
d60d9f65 3383fi
d60d9f65 3384
9255ee31
EZ
3385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
25ed0b71 3391
81ecdfbb
RW
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3393$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3394if ${ac_cv_path_GREP+:} false; then :
81ecdfbb
RW
3395 $as_echo_n "(cached) " >&6
3396else
3397 if test -z "$GREP"; then
3398 ac_path_GREP_found=false
3399 # Loop through the user's path and test for each of PROGNAME-LIST
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3402do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_prog in grep ggrep; do
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3408 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
3409# Check for GNU ac_path_GREP and select it if it is found.
3410 # Check for GNU $ac_path_GREP
3411case `"$ac_path_GREP" --version 2>&1` in
3412*GNU*)
3413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3414*)
3415 ac_count=0
3416 $as_echo_n 0123456789 >"conftest.in"
3417 while :
3418 do
3419 cat "conftest.in" "conftest.in" >"conftest.tmp"
3420 mv "conftest.tmp" "conftest.in"
3421 cp "conftest.in" "conftest.nl"
3422 $as_echo 'GREP' >> "conftest.nl"
3423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3425 as_fn_arith $ac_count + 1 && ac_count=$as_val
3426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3427 # Best one so far, save it but keep looking for a better one
3428 ac_cv_path_GREP="$ac_path_GREP"
3429 ac_path_GREP_max=$ac_count
3430 fi
3431 # 10*(2^10) chars as input seems more than enough
3432 test $ac_count -gt 10 && break
3433 done
3434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3435esac
3436
3437 $ac_path_GREP_found && break 3
3438 done
3439 done
3440 done
3441IFS=$as_save_IFS
3442 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3444 fi
3445else
3446 ac_cv_path_GREP=$GREP
3447fi
3448
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3451$as_echo "$ac_cv_path_GREP" >&6; }
3452 GREP="$ac_cv_path_GREP"
3453
3454
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3456$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3457if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 3458 $as_echo_n "(cached) " >&6
d60d9f65 3459else
81ecdfbb
RW
3460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3461 then ac_cv_path_EGREP="$GREP -E"
3462 else
3463 if test -z "$EGREP"; then
3464 ac_path_EGREP_found=false
3465 # Loop through the user's path and test for each of PROGNAME-LIST
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_prog in egrep; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3474 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
3475# Check for GNU ac_path_EGREP and select it if it is found.
3476 # Check for GNU $ac_path_EGREP
3477case `"$ac_path_EGREP" --version 2>&1` in
3478*GNU*)
3479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3480*)
3481 ac_count=0
3482 $as_echo_n 0123456789 >"conftest.in"
3483 while :
3484 do
3485 cat "conftest.in" "conftest.in" >"conftest.tmp"
3486 mv "conftest.tmp" "conftest.in"
3487 cp "conftest.in" "conftest.nl"
3488 $as_echo 'EGREP' >> "conftest.nl"
3489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3491 as_fn_arith $ac_count + 1 && ac_count=$as_val
3492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3493 # Best one so far, save it but keep looking for a better one
3494 ac_cv_path_EGREP="$ac_path_EGREP"
3495 ac_path_EGREP_max=$ac_count
25ed0b71 3496 fi
81ecdfbb
RW
3497 # 10*(2^10) chars as input seems more than enough
3498 test $ac_count -gt 10 && break
3499 done
3500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3501esac
3502
3503 $ac_path_EGREP_found && break 3
3504 done
3505 done
3506 done
3507IFS=$as_save_IFS
3508 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3509 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
3510 fi
3511else
3512 ac_cv_path_EGREP=$EGREP
3513fi
3514
3515 fi
d60d9f65 3516fi
81ecdfbb
RW
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3518$as_echo "$ac_cv_path_EGREP" >&6; }
3519 EGREP="$ac_cv_path_EGREP"
d60d9f65 3520
9255ee31 3521
81ecdfbb
RW
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3523$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3524if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 3525 $as_echo_n "(cached) " >&6
25ed0b71 3526else
81ecdfbb 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3528/* end confdefs.h. */
3529#include <stdlib.h>
3530#include <stdarg.h>
3531#include <string.h>
3532#include <float.h>
d60d9f65 3533
25ed0b71
KW
3534int
3535main ()
3536{
d60d9f65 3537
25ed0b71
KW
3538 ;
3539 return 0;
3540}
3541_ACEOF
81ecdfbb 3542if ac_fn_c_try_compile "$LINENO"; then :
25ed0b71
KW
3543 ac_cv_header_stdc=yes
3544else
81ecdfbb 3545 ac_cv_header_stdc=no
d60d9f65 3546fi
81ecdfbb 3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 3548
25ed0b71
KW
3549if test $ac_cv_header_stdc = yes; then
3550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3552/* end confdefs.h. */
3553#include <string.h>
9255ee31 3554
25ed0b71
KW
3555_ACEOF
3556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3557 $EGREP "memchr" >/dev/null 2>&1; then :
3558
d60d9f65 3559else
25ed0b71 3560 ac_cv_header_stdc=no
d60d9f65 3561fi
25ed0b71 3562rm -f conftest*
d60d9f65 3563
d60d9f65
SS
3564fi
3565
25ed0b71
KW
3566if test $ac_cv_header_stdc = yes; then
3567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3569/* end confdefs.h. */
3570#include <stdlib.h>
d60d9f65 3571
9255ee31 3572_ACEOF
d60d9f65 3573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3574 $EGREP "free" >/dev/null 2>&1; then :
3575
25ed0b71
KW
3576else
3577 ac_cv_header_stdc=no
d60d9f65
SS
3578fi
3579rm -f conftest*
3580
d60d9f65
SS
3581fi
3582
25ed0b71
KW
3583if test $ac_cv_header_stdc = yes; then
3584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3585 if test "$cross_compiling" = yes; then :
25ed0b71
KW
3586 :
3587else
81ecdfbb 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3589/* end confdefs.h. */
3590#include <ctype.h>
81ecdfbb 3591#include <stdlib.h>
25ed0b71
KW
3592#if ((' ' & 0x0FF) == 0x020)
3593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3595#else
3596# define ISLOWER(c) \
430b7832
MM
3597 (('a' <= (c) && (c) <= 'i') \
3598 || ('j' <= (c) && (c) <= 'r') \
3599 || ('s' <= (c) && (c) <= 'z'))
25ed0b71
KW
3600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3601#endif
3602
3603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3604int
3605main ()
3606{
3607 int i;
3608 for (i = 0; i < 256; i++)
3609 if (XOR (islower (i), ISLOWER (i))
430b7832 3610 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
3611 return 2;
3612 return 0;
25ed0b71
KW
3613}
3614_ACEOF
81ecdfbb 3615if ac_fn_c_try_run "$LINENO"; then :
25ed0b71 3616
81ecdfbb
RW
3617else
3618 ac_cv_header_stdc=no
25ed0b71 3619fi
81ecdfbb
RW
3620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3621 conftest.$ac_objext conftest.beam conftest.$ac_ext
25ed0b71 3622fi
81ecdfbb 3623
25ed0b71
KW
3624fi
3625fi
81ecdfbb
RW
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3627$as_echo "$ac_cv_header_stdc" >&6; }
25ed0b71
KW
3628if test $ac_cv_header_stdc = yes; then
3629
81ecdfbb 3630$as_echo "#define STDC_HEADERS 1" >>confdefs.h
25ed0b71
KW
3631
3632fi
3633
3634# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
3635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3636 inttypes.h stdint.h unistd.h
3637do :
3638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3640"
d0ac1c44 3641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
3642 cat >>confdefs.h <<_ACEOF
3643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3644_ACEOF
25ed0b71 3645
81ecdfbb 3646fi
25ed0b71 3647
81ecdfbb 3648done
25ed0b71
KW
3649
3650
3651
81ecdfbb 3652 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3653if test "x$ac_cv_header_minix_config_h" = xyes; then :
81ecdfbb
RW
3654 MINIX=yes
3655else
3656 MINIX=
3657fi
25ed0b71
KW
3658
3659
81ecdfbb 3660 if test "$MINIX" = yes; then
25ed0b71 3661
81ecdfbb 3662$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
25ed0b71 3663
25ed0b71 3664
81ecdfbb 3665$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
25ed0b71 3666
25ed0b71 3667
81ecdfbb 3668$as_echo "#define _MINIX 1" >>confdefs.h
25ed0b71 3669
81ecdfbb 3670 fi
25ed0b71
KW
3671
3672
81ecdfbb
RW
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3674$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3675if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 3676 $as_echo_n "(cached) " >&6
25ed0b71 3677else
81ecdfbb 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 3679/* end confdefs.h. */
25ed0b71 3680
d0ac1c44
SM
3681# define __EXTENSIONS__ 1
3682 $ac_includes_default
81ecdfbb
RW
3683int
3684main ()
3685{
25ed0b71 3686
81ecdfbb
RW
3687 ;
3688 return 0;
3689}
25ed0b71 3690_ACEOF
81ecdfbb
RW
3691if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_cv_safe_to_define___extensions__=yes
25ed0b71 3693else
81ecdfbb 3694 ac_cv_safe_to_define___extensions__=no
25ed0b71 3695fi
81ecdfbb 3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25ed0b71 3697fi
81ecdfbb
RW
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3699$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3700 test $ac_cv_safe_to_define___extensions__ = yes &&
3701 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
25ed0b71 3702
81ecdfbb 3703 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
25ed0b71 3704
81ecdfbb 3705 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
25ed0b71 3706
81ecdfbb 3707 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
25ed0b71 3708
81ecdfbb 3709 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
25ed0b71 3710
25ed0b71 3711
25ed0b71
KW
3712
3713
25ed0b71
KW
3714# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3715test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
3716
3717if test $ac_cv_c_compiler_gnu = yes; then
81ecdfbb
RW
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3719$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0ac1c44 3720if ${ac_cv_prog_gcc_traditional+:} false; then :
81ecdfbb 3721 $as_echo_n "(cached) " >&6
25ed0b71
KW
3722else
3723 ac_pattern="Autoconf.*'x'"
81ecdfbb 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3725/* end confdefs.h. */
3726#include <sgtty.h>
3727Autoconf TIOCGETP
3728_ACEOF
3729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 3730 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
25ed0b71
KW
3731 ac_cv_prog_gcc_traditional=yes
3732else
3733 ac_cv_prog_gcc_traditional=no
3734fi
3735rm -f conftest*
3736
3737
3738 if test $ac_cv_prog_gcc_traditional = no; then
81ecdfbb 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71
KW
3740/* end confdefs.h. */
3741#include <termio.h>
3742Autoconf TCGETA
3743_ACEOF
3744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 3745 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
25ed0b71
KW
3746 ac_cv_prog_gcc_traditional=yes
3747fi
3748rm -f conftest*
3749
3750 fi
3751fi
81ecdfbb
RW
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3753$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
25ed0b71
KW
3754 if test $ac_cv_prog_gcc_traditional = yes; then
3755 CC="$CC -traditional"
3756 fi
3757fi
3758
3759# Find a good install program. We prefer a C program (faster),
3760# so one script is as good as another. But avoid the broken or
3761# incompatible versions:
3762# SysV /etc/install, /usr/sbin/install
3763# SunOS /usr/etc/install
3764# IRIX /sbin/install
3765# AIX /bin/install
3766# AmigaOS /C/install, which installs bootblocks on floppy discs
3767# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3768# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3769# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
430b7832 3770# OS/2's system install, which has a completely different semantic
25ed0b71 3771# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
3772# Reject install programs that cannot install multiple files.
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3774$as_echo_n "checking for a BSD-compatible install... " >&6; }
25ed0b71 3775if test -z "$INSTALL"; then
d0ac1c44 3776if ${ac_cv_path_install+:} false; then :
81ecdfbb 3777 $as_echo_n "(cached) " >&6
25ed0b71
KW
3778else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3784 # Account for people who put trailing slashes in PATH elements.
3785case $as_dir/ in #((
3786 ./ | .// | /[cC]/* | \
25ed0b71 3787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3788 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
25ed0b71
KW
3789 /usr/ucb/* ) ;;
3790 *)
3791 # OSF1 and SCO ODT 3.0 have their own names for install.
3792 # Don't use installbsd from OSF since it installs stuff as root
3793 # by default.
3794 for ac_prog in ginstall scoinst install; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3796 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
430b7832
MM
3797 if test $ac_prog = install &&
3798 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3799 # AIX install. It has an incompatible calling convention.
3800 :
3801 elif test $ac_prog = install &&
3802 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803 # program-specific install script used by HP pwplus--don't use.
3804 :
3805 else
81ecdfbb
RW
3806 rm -rf conftest.one conftest.two conftest.dir
3807 echo one > conftest.one
3808 echo two > conftest.two
3809 mkdir conftest.dir
3810 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3811 test -s conftest.one && test -s conftest.two &&
3812 test -s conftest.dir/conftest.one &&
3813 test -s conftest.dir/conftest.two
3814 then
3815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3816 break 3
3817 fi
430b7832
MM
3818 fi
3819 fi
25ed0b71
KW
3820 done
3821 done
3822 ;;
3823esac
25ed0b71 3824
81ecdfbb
RW
3825 done
3826IFS=$as_save_IFS
3827
3828rm -rf conftest.one conftest.two conftest.dir
d60d9f65
SS
3829
3830fi
3831 if test "${ac_cv_path_install+set}" = set; then
9255ee31 3832 INSTALL=$ac_cv_path_install
d60d9f65 3833 else
81ecdfbb
RW
3834 # As a last resort, use the slow shell script. Don't cache a
3835 # value for INSTALL within a source directory, because that will
d60d9f65 3836 # break other packages using the cache if that directory is
81ecdfbb 3837 # removed, or if the value is a relative name.
9255ee31 3838 INSTALL=$ac_install_sh
d60d9f65
SS
3839 fi
3840fi
81ecdfbb
RW
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3842$as_echo "$INSTALL" >&6; }
d60d9f65
SS
3843
3844# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845# It thinks the first close brace ends the variable substitution.
3846test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3847
9255ee31 3848test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
c862e87b 3849
d60d9f65
SS
3850test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3851
775e241e
TT
3852if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3854set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3857if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 3858 $as_echo_n "(cached) " >&6
c862e87b
JM
3859else
3860 if test -n "$AR"; then
3861 ac_cv_prog_AR="$AR" # Let the user override the test.
3862else
25ed0b71
KW
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
81ecdfbb 3868 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
775e241e 3870 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
3872 break 2
3873 fi
3874done
81ecdfbb
RW
3875 done
3876IFS=$as_save_IFS
9255ee31 3877
9255ee31
EZ
3878fi
3879fi
3880AR=$ac_cv_prog_AR
3881if test -n "$AR"; then
81ecdfbb
RW
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3883$as_echo "$AR" >&6; }
9255ee31 3884else
81ecdfbb
RW
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
9255ee31
EZ
3887fi
3888
81ecdfbb 3889
775e241e
TT
3890fi
3891if test -z "$ac_cv_prog_AR"; then
3892 ac_ct_AR=$AR
3893 # Extract the first word of "ar", so it can be a program name with args.
3894set dummy ar; ac_word=$2
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
3897if ${ac_cv_prog_ac_ct_AR+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899else
3900 if test -n "$ac_ct_AR"; then
3901 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_AR="ar"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914done
3915 done
3916IFS=$as_save_IFS
3917
3918fi
3919fi
3920ac_ct_AR=$ac_cv_prog_ac_ct_AR
3921if test -n "$ac_ct_AR"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3923$as_echo "$ac_ct_AR" >&6; }
3924else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
3927fi
3928
3929 if test "x$ac_ct_AR" = x; then
3930 AR=""
3931 else
3932 case $cross_compiling:$ac_tool_warned in
3933yes:)
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936ac_tool_warned=yes ;;
3937esac
3938 AR=$ac_ct_AR
3939 fi
3940else
3941 AR="$ac_cv_prog_AR"
3942fi
3943
9255ee31
EZ
3944test -n "$ARFLAGS" || ARFLAGS="cr"
3945if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3950if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 3951 $as_echo_n "(cached) " >&6
9255ee31
EZ
3952else
3953 if test -n "$RANLIB"; then
3954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3955else
25ed0b71
KW
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
81ecdfbb 3961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25ed0b71 3963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
3965 break 2
3966 fi
3967done
81ecdfbb
RW
3968 done
3969IFS=$as_save_IFS
9255ee31
EZ
3970
3971fi
3972fi
3973RANLIB=$ac_cv_prog_RANLIB
3974if test -n "$RANLIB"; then
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3976$as_echo "$RANLIB" >&6; }
9255ee31 3977else
81ecdfbb
RW
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
9255ee31
EZ
3980fi
3981
81ecdfbb 3982
9255ee31
EZ
3983fi
3984if test -z "$ac_cv_prog_RANLIB"; then
3985 ac_ct_RANLIB=$RANLIB
3986 # Extract the first word of "ranlib", so it can be a program name with args.
3987set dummy ranlib; ac_word=$2
81ecdfbb
RW
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3990if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 3991 $as_echo_n "(cached) " >&6
9255ee31
EZ
3992else
3993 if test -n "$ac_ct_RANLIB"; then
3994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3995else
25ed0b71
KW
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
81ecdfbb 4001 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25ed0b71 4003 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25ed0b71
KW
4005 break 2
4006 fi
4007done
81ecdfbb
RW
4008 done
4009IFS=$as_save_IFS
9255ee31 4010
9255ee31
EZ
4011fi
4012fi
4013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4014if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4016$as_echo "$ac_ct_RANLIB" >&6; }
9255ee31 4017else
81ecdfbb
RW
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
9255ee31
EZ
4020fi
4021
81ecdfbb
RW
4022 if test "x$ac_ct_RANLIB" = x; then
4023 RANLIB=":"
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026yes:)
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029ac_tool_warned=yes ;;
4030esac
4031 RANLIB=$ac_ct_RANLIB
4032 fi
9255ee31
EZ
4033else
4034 RANLIB="$ac_cv_prog_RANLIB"
4035fi
4036
9255ee31 4037
25ed0b71 4038MAKE_SHELL=/bin/sh
9255ee31 4039
9255ee31 4040
81ecdfbb
RW
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4042$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d0ac1c44 4043if ${ac_cv_c_const+:} false; then :
81ecdfbb 4044 $as_echo_n "(cached) " >&6
9255ee31 4045else
81ecdfbb 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 4047/* end confdefs.h. */
9255ee31
EZ
4048
4049int
4050main ()
4051{
d0ac1c44 4052
9255ee31 4053#ifndef __cplusplus
d0ac1c44 4054 /* Ultrix mips cc rejects this sort of thing. */
9255ee31 4055 typedef int charset[2];
d0ac1c44 4056 const charset cs = { 0, 0 };
9255ee31 4057 /* SunOS 4.1.1 cc rejects this. */
81ecdfbb
RW
4058 char const *const *pcpcc;
4059 char **ppc;
9255ee31
EZ
4060 /* NEC SVR4.0.2 mips cc rejects this. */
4061 struct point {int x, y;};
4062 static struct point const zero = {0,0};
4063 /* AIX XL C 1.02.0.0 rejects this.
4064 It does not let you subtract one const X* pointer from another in
4065 an arm of an if-expression whose if-part is not a constant
4066 expression */
4067 const char *g = "string";
81ecdfbb 4068 pcpcc = &g + (g ? g-g : 0);
9255ee31 4069 /* HPUX 7.0 cc rejects these. */
81ecdfbb
RW
4070 ++pcpcc;
4071 ppc = (char**) pcpcc;
4072 pcpcc = (char const *const *) ppc;
d0ac1c44
SM
4073 { /* SCO 3.2v4 cc rejects this sort of thing. */
4074 char tx;
4075 char *t = &tx;
9255ee31
EZ
4076 char const *s = 0 ? (char *) 0 : (char const *) 0;
4077
25ed0b71 4078 *t++ = 0;
81ecdfbb 4079 if (s) return 0;
25ed0b71
KW
4080 }
4081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4082 int x[] = {25, 17};
4083 const int *foo = &x[0];
4084 ++foo;
4085 }
4086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4087 typedef const int *iptr;
4088 iptr p = 0;
4089 ++p;
4090 }
d0ac1c44 4091 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
25ed0b71 4092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
d0ac1c44
SM
4093 struct s { int j; const int *ap[3]; } bx;
4094 struct s *b = &bx; b->j = 5;
25ed0b71
KW
4095 }
4096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4097 const int foo = 10;
81ecdfbb 4098 if (!foo) return 0;
25ed0b71 4099 }
81ecdfbb 4100 return !cs[0] && !zero.x;
25ed0b71 4101#endif
9255ee31 4102
25ed0b71
KW
4103 ;
4104 return 0;
4105}
9255ee31 4106_ACEOF
81ecdfbb 4107if ac_fn_c_try_compile "$LINENO"; then :
25ed0b71 4108 ac_cv_c_const=yes
9255ee31 4109else
81ecdfbb 4110 ac_cv_c_const=no
c862e87b 4111fi
81ecdfbb 4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c862e87b 4113fi
81ecdfbb
RW
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4115$as_echo "$ac_cv_c_const" >&6; }
25ed0b71
KW
4116if test $ac_cv_c_const = no; then
4117
81ecdfbb 4118$as_echo "#define const /**/" >>confdefs.h
9255ee31 4119
c862e87b
JM
4120fi
4121
81ecdfbb
RW
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4123$as_echo_n "checking for function prototypes... " >&6; }
4124if test "$ac_cv_prog_cc_c89" != no; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126$as_echo "yes" >&6; }
25ed0b71 4127
81ecdfbb 4128$as_echo "#define PROTOTYPES 1" >>confdefs.h
25ed0b71
KW
4129
4130
81ecdfbb 4131$as_echo "#define __PROTOTYPES 1" >>confdefs.h
25ed0b71
KW
4132
4133else
81ecdfbb
RW
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
25ed0b71
KW
4136fi
4137
81ecdfbb
RW
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4139$as_echo_n "checking whether char is unsigned... " >&6; }
d0ac1c44 4140if ${ac_cv_c_char_unsigned+:} false; then :
81ecdfbb 4141 $as_echo_n "(cached) " >&6
d60d9f65 4142else
81ecdfbb 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 4144/* end confdefs.h. */
9255ee31
EZ
4145$ac_includes_default
4146int
4147main ()
4148{
25ed0b71 4149static int test_array [1 - 2 * !(((char) -1) < 0)];
d0ac1c44
SM
4150test_array [0] = 0;
4151return test_array [0];
25ed0b71 4152
9255ee31
EZ
4153 ;
4154 return 0;
4155}
4156_ACEOF
81ecdfbb 4157if ac_fn_c_try_compile "$LINENO"; then :
9255ee31 4158 ac_cv_c_char_unsigned=no
d60d9f65 4159else
81ecdfbb 4160 ac_cv_c_char_unsigned=yes
d60d9f65 4161fi
81ecdfbb 4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 4163fi
81ecdfbb
RW
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4165$as_echo "$ac_cv_c_char_unsigned" >&6; }
9255ee31 4166if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
81ecdfbb 4167 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
d60d9f65 4168
9255ee31 4169fi
d60d9f65 4170
cc88a640
JK
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4172$as_echo_n "checking for working volatile... " >&6; }
d0ac1c44 4173if ${ac_cv_c_volatile+:} false; then :
cc88a640
JK
4174 $as_echo_n "(cached) " >&6
4175else
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h. */
4178
4179int
4180main ()
4181{
4182
4183volatile int x;
4184int * volatile y = (int *) 0;
4185return !x && !y;
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_c_volatile=yes
4192else
4193 ac_cv_c_volatile=no
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4198$as_echo "$ac_cv_c_volatile" >&6; }
4199if test $ac_cv_c_volatile = no; then
4200
4201$as_echo "#define volatile /**/" >>confdefs.h
4202
4203fi
4204
25ed0b71 4205
81ecdfbb
RW
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4207$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 4208if ${ac_cv_type_signal+:} false; then :
81ecdfbb 4209 $as_echo_n "(cached) " >&6
d60d9f65 4210else
81ecdfbb 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 4212/* end confdefs.h. */
d60d9f65
SS
4213#include <sys/types.h>
4214#include <signal.h>
d60d9f65 4215
9255ee31
EZ
4216int
4217main ()
4218{
81ecdfbb 4219return *(signal (0, 0)) (0) == 1;
9255ee31
EZ
4220 ;
4221 return 0;
4222}
4223_ACEOF
81ecdfbb
RW
4224if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_type_signal=int
d60d9f65 4226else
81ecdfbb 4227 ac_cv_type_signal=void
d60d9f65 4228fi
81ecdfbb 4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 4230fi
81ecdfbb
RW
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4232$as_echo "$ac_cv_type_signal" >&6; }
d60d9f65 4233
25ed0b71 4234cat >>confdefs.h <<_ACEOF
d60d9f65 4235#define RETSIGTYPE $ac_cv_type_signal
25ed0b71
KW
4236_ACEOF
4237
d60d9f65 4238
25ed0b71 4239
81ecdfbb 4240ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d0ac1c44 4241if test "x$ac_cv_type_size_t" = xyes; then :
25ed0b71 4242
9255ee31
EZ
4243else
4244
25ed0b71 4245cat >>confdefs.h <<_ACEOF
81ecdfbb 4246#define size_t unsigned int
25ed0b71 4247_ACEOF
9255ee31
EZ
4248
4249fi
4250
81ecdfbb 4251ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
d0ac1c44 4252if test "x$ac_cv_type_ssize_t" = xyes; then :
25ed0b71 4253
9255ee31
EZ
4254else
4255
25ed0b71 4256cat >>confdefs.h <<_ACEOF
9255ee31 4257#define ssize_t int
25ed0b71 4258_ACEOF
d60d9f65 4259
9255ee31 4260fi
d60d9f65 4261
25ed0b71 4262
81ecdfbb
RW
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4264$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4265if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 4266 $as_echo_n "(cached) " >&6
5bdf8622 4267else
81ecdfbb 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622
DJ
4269/* end confdefs.h. */
4270#include <stdlib.h>
4271#include <stdarg.h>
4272#include <string.h>
4273#include <float.h>
4274
4275int
4276main ()
4277{
4278
4279 ;
4280 return 0;
4281}
4282_ACEOF
81ecdfbb 4283if ac_fn_c_try_compile "$LINENO"; then :
5bdf8622
DJ
4284 ac_cv_header_stdc=yes
4285else
81ecdfbb 4286 ac_cv_header_stdc=no
5bdf8622 4287fi
81ecdfbb 4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5bdf8622
DJ
4289
4290if test $ac_cv_header_stdc = yes; then
4291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622
DJ
4293/* end confdefs.h. */
4294#include <string.h>
4295
4296_ACEOF
4297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4298 $EGREP "memchr" >/dev/null 2>&1; then :
4299
5bdf8622
DJ
4300else
4301 ac_cv_header_stdc=no
4302fi
4303rm -f conftest*
4304
4305fi
4306
4307if test $ac_cv_header_stdc = yes; then
4308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622
DJ
4310/* end confdefs.h. */
4311#include <stdlib.h>
4312
4313_ACEOF
4314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4315 $EGREP "free" >/dev/null 2>&1; then :
4316
5bdf8622
DJ
4317else
4318 ac_cv_header_stdc=no
4319fi
4320rm -f conftest*
4321
4322fi
4323
4324if test $ac_cv_header_stdc = yes; then
4325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4326 if test "$cross_compiling" = yes; then :
5bdf8622
DJ
4327 :
4328else
81ecdfbb 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622
DJ
4330/* end confdefs.h. */
4331#include <ctype.h>
81ecdfbb 4332#include <stdlib.h>
5bdf8622
DJ
4333#if ((' ' & 0x0FF) == 0x020)
4334# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4335# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4336#else
4337# define ISLOWER(c) \
4338 (('a' <= (c) && (c) <= 'i') \
4339 || ('j' <= (c) && (c) <= 'r') \
4340 || ('s' <= (c) && (c) <= 'z'))
4341# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4342#endif
4343
4344#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4345int
4346main ()
4347{
4348 int i;
4349 for (i = 0; i < 256; i++)
4350 if (XOR (islower (i), ISLOWER (i))
4351 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4352 return 2;
4353 return 0;
5bdf8622
DJ
4354}
4355_ACEOF
81ecdfbb 4356if ac_fn_c_try_run "$LINENO"; then :
5bdf8622 4357
81ecdfbb
RW
4358else
4359 ac_cv_header_stdc=no
5bdf8622 4360fi
81ecdfbb
RW
4361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4362 conftest.$ac_objext conftest.beam conftest.$ac_ext
5bdf8622 4363fi
81ecdfbb 4364
5bdf8622
DJ
4365fi
4366fi
81ecdfbb
RW
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4368$as_echo "$ac_cv_header_stdc" >&6; }
5bdf8622
DJ
4369if test $ac_cv_header_stdc = yes; then
4370
81ecdfbb 4371$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5bdf8622
DJ
4372
4373fi
4374
4375
81ecdfbb
RW
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4377$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
d0ac1c44 4378if ${ac_cv_header_stat_broken+:} false; then :
81ecdfbb 4379 $as_echo_n "(cached) " >&6
d60d9f65 4380else
81ecdfbb 4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 4382/* end confdefs.h. */
d60d9f65
SS
4383#include <sys/types.h>
4384#include <sys/stat.h>
4385
81ecdfbb
RW
4386#if defined S_ISBLK && defined S_IFDIR
4387extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
d60d9f65
SS
4388#endif
4389
81ecdfbb
RW
4390#if defined S_ISBLK && defined S_IFCHR
4391extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
d60d9f65
SS
4392#endif
4393
81ecdfbb
RW
4394#if defined S_ISLNK && defined S_IFREG
4395extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
d60d9f65
SS
4396#endif
4397
81ecdfbb
RW
4398#if defined S_ISSOCK && defined S_IFREG
4399extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
d60d9f65
SS
4400#endif
4401
9255ee31 4402_ACEOF
81ecdfbb 4403if ac_fn_c_try_compile "$LINENO"; then :
d60d9f65 4404 ac_cv_header_stat_broken=no
81ecdfbb
RW
4405else
4406 ac_cv_header_stat_broken=yes
d60d9f65 4407fi
81ecdfbb 4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 4409fi
81ecdfbb
RW
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4411$as_echo "$ac_cv_header_stat_broken" >&6; }
d60d9f65 4412if test $ac_cv_header_stat_broken = yes; then
9255ee31 4413
81ecdfbb 4414$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
d60d9f65
SS
4415
4416fi
4417
4418ac_header_dirent=no
9255ee31 4419for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
4420 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4422$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0ac1c44 4423if eval \${$as_ac_Header+:} false; then :
81ecdfbb
RW
4424 $as_echo_n "(cached) " >&6
4425else
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 4427/* end confdefs.h. */
d60d9f65
SS
4428#include <sys/types.h>
4429#include <$ac_hdr>
9255ee31
EZ
4430
4431int
4432main ()
4433{
4434if ((DIR *) 0)
4435return 0;
4436 ;
4437 return 0;
4438}
4439_ACEOF
81ecdfbb 4440if ac_fn_c_try_compile "$LINENO"; then :
9255ee31 4441 eval "$as_ac_Header=yes"
d60d9f65 4442else
81ecdfbb 4443 eval "$as_ac_Header=no"
d60d9f65 4444fi
81ecdfbb 4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 4446fi
81ecdfbb
RW
4447eval ac_res=\$$as_ac_Header
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4449$as_echo "$ac_res" >&6; }
d0ac1c44 4450if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25ed0b71 4451 cat >>confdefs.h <<_ACEOF
81ecdfbb 4452#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25ed0b71 4453_ACEOF
9255ee31
EZ
4454
4455ac_header_dirent=$ac_hdr; break
d60d9f65 4456fi
9255ee31 4457
d60d9f65
SS
4458done
4459# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4460if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4462$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 4463if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 4464 $as_echo_n "(cached) " >&6
d60d9f65 4465else
25ed0b71 4466 ac_func_search_save_LIBS=$LIBS
81ecdfbb 4467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 4468/* end confdefs.h. */
9255ee31 4469
81ecdfbb
RW
4470/* Override any GCC internal prototype to avoid an error.
4471 Use char because int might match the return type of a GCC
4472 builtin and then its argument prototype would still apply. */
9255ee31
EZ
4473#ifdef __cplusplus
4474extern "C"
4475#endif
9255ee31
EZ
4476char opendir ();
4477int
4478main ()
4479{
81ecdfbb 4480return opendir ();
9255ee31
EZ
4481 ;
4482 return 0;
4483}
4484_ACEOF
81ecdfbb
RW
4485for ac_lib in '' dir; do
4486 if test -z "$ac_lib"; then
4487 ac_res="none required"
4488 else
4489 ac_res=-l$ac_lib
25ed0b71 4490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
4491 fi
4492 if ac_fn_c_try_link "$LINENO"; then :
4493 ac_cv_search_opendir=$ac_res
4494fi
4495rm -f core conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext
d0ac1c44 4497 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
4498 break
4499fi
4500done
d0ac1c44 4501if ${ac_cv_search_opendir+:} false; then :
25ed0b71 4502
25ed0b71 4503else
81ecdfbb 4504 ac_cv_search_opendir=no
25ed0b71 4505fi
81ecdfbb 4506rm conftest.$ac_ext
25ed0b71 4507LIBS=$ac_func_search_save_LIBS
d60d9f65 4508fi
81ecdfbb
RW
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4510$as_echo "$ac_cv_search_opendir" >&6; }
4511ac_res=$ac_cv_search_opendir
4512if test "$ac_res" != no; then :
4513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25ed0b71 4514
d60d9f65
SS
4515fi
4516
4517else
81ecdfbb
RW
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4519$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 4520if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 4521 $as_echo_n "(cached) " >&6
d60d9f65 4522else
25ed0b71 4523 ac_func_search_save_LIBS=$LIBS
81ecdfbb 4524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 4525/* end confdefs.h. */
9255ee31 4526
81ecdfbb
RW
4527/* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
9255ee31
EZ
4530#ifdef __cplusplus
4531extern "C"
4532#endif
9255ee31
EZ
4533char opendir ();
4534int
4535main ()
4536{
81ecdfbb 4537return opendir ();
9255ee31
EZ
4538 ;
4539 return 0;
4540}
4541_ACEOF
81ecdfbb
RW
4542for ac_lib in '' x; do
4543 if test -z "$ac_lib"; then
4544 ac_res="none required"
4545 else
4546 ac_res=-l$ac_lib
25ed0b71 4547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
4548 fi
4549 if ac_fn_c_try_link "$LINENO"; then :
4550 ac_cv_search_opendir=$ac_res
4551fi
4552rm -f core conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext
d0ac1c44 4554 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
4555 break
4556fi
4557done
d0ac1c44 4558if ${ac_cv_search_opendir+:} false; then :
25ed0b71 4559
25ed0b71 4560else
81ecdfbb 4561 ac_cv_search_opendir=no
d60d9f65 4562fi
81ecdfbb 4563rm conftest.$ac_ext
25ed0b71 4564LIBS=$ac_func_search_save_LIBS
d60d9f65 4565fi
81ecdfbb
RW
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4567$as_echo "$ac_cv_search_opendir" >&6; }
4568ac_res=$ac_cv_search_opendir
4569if test "$ac_res" != no; then :
4570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d60d9f65
SS
4571
4572fi
4573
25ed0b71
KW
4574fi
4575
4576
775e241e 4577for ac_func in fcntl kill lstat readlink
81ecdfbb
RW
4578do :
4579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4580ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 4581if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
4582 cat >>confdefs.h <<_ACEOF
4583#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4584_ACEOF
25ed0b71 4585
81ecdfbb
RW
4586fi
4587done
25ed0b71 4588
775e241e 4589for ac_func in memmove pselect putenv select setenv setlocale \
81ecdfbb
RW
4590 strcasecmp strpbrk tcgetattr vsnprintf
4591do :
4592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4593ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 4594if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
4595 cat >>confdefs.h <<_ACEOF
4596#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4597_ACEOF
25ed0b71 4598
81ecdfbb
RW
4599fi
4600done
4601
4602for ac_func in isascii isxdigit
4603do :
4604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 4606if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
4607 cat >>confdefs.h <<_ACEOF
4608#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25ed0b71 4609_ACEOF
430b7832 4610
81ecdfbb
RW
4611fi
4612done
430b7832 4613
81ecdfbb
RW
4614for ac_func in getpwent getpwnam getpwuid
4615do :
4616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4617ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 4618if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
4619 cat >>confdefs.h <<_ACEOF
4620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4621_ACEOF
430b7832 4622
81ecdfbb
RW
4623fi
4624done
430b7832 4625
d60d9f65 4626
775e241e
TT
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4628$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4629if ${ac_cv_type_uid_t+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631else
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
4634#include <sys/types.h>
4635
4636_ACEOF
4637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638 $EGREP "uid_t" >/dev/null 2>&1; then :
4639 ac_cv_type_uid_t=yes
4640else
4641 ac_cv_type_uid_t=no
4642fi
4643rm -f conftest*
4644
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4647$as_echo "$ac_cv_type_uid_t" >&6; }
4648if test $ac_cv_type_uid_t = no; then
4649
4650$as_echo "#define uid_t int" >>confdefs.h
4651
4652
4653$as_echo "#define gid_t int" >>confdefs.h
4654
4655fi
4656
4657for ac_header in unistd.h
4658do :
4659 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4660if test "x$ac_cv_header_unistd_h" = xyes; then :
4661 cat >>confdefs.h <<_ACEOF
4662#define HAVE_UNISTD_H 1
4663_ACEOF
4664
4665fi
4666
4667done
4668
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
4670$as_echo_n "checking for working chown... " >&6; }
4671if ${ac_cv_func_chown_works+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673else
4674 if test "$cross_compiling" = yes; then :
4675 ac_cv_func_chown_works=no
4676else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679$ac_includes_default
4680#include <fcntl.h>
4681
4682int
4683main ()
4684{
4685 char *f = "conftest.chown";
4686 struct stat before, after;
4687
4688 if (creat (f, 0600) < 0)
4689 return 1;
4690 if (stat (f, &before) < 0)
4691 return 1;
4692 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
4693 return 1;
4694 if (stat (f, &after) < 0)
4695 return 1;
4696 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
4697
4698 ;
4699 return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_run "$LINENO"; then :
4703 ac_cv_func_chown_works=yes
4704else
4705 ac_cv_func_chown_works=no
4706fi
4707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4708 conftest.$ac_objext conftest.beam conftest.$ac_ext
4709fi
4710
4711rm -f conftest.chown
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
4715$as_echo "$ac_cv_func_chown_works" >&6; }
4716if test $ac_cv_func_chown_works = yes; then
4717
4718$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
4719
4720fi
4721
81ecdfbb
RW
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4723$as_echo_n "checking for working strcoll... " >&6; }
d0ac1c44 4724if ${ac_cv_func_strcoll_works+:} false; then :
81ecdfbb
RW
4725 $as_echo_n "(cached) " >&6
4726else
4727 if test "$cross_compiling" = yes; then :
4728 ac_cv_func_strcoll_works=no
4729else
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731/* end confdefs.h. */
4732$ac_includes_default
25ed0b71
KW
4733int
4734main ()
4735{
81ecdfbb
RW
4736return (strcoll ("abc", "def") >= 0 ||
4737 strcoll ("ABC", "DEF") >= 0 ||
4738 strcoll ("123", "456") >= 0)
9255ee31
EZ
4739 ;
4740 return 0;
4741}
4742_ACEOF
81ecdfbb
RW
4743if ac_fn_c_try_run "$LINENO"; then :
4744 ac_cv_func_strcoll_works=yes
d60d9f65 4745else
81ecdfbb
RW
4746 ac_cv_func_strcoll_works=no
4747fi
4748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4749 conftest.$ac_objext conftest.beam conftest.$ac_ext
4750fi
25ed0b71 4751
d60d9f65 4752fi
81ecdfbb
RW
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4754$as_echo "$ac_cv_func_strcoll_works" >&6; }
4755if test $ac_cv_func_strcoll_works = yes; then
4756
4757$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4758
d60d9f65 4759fi
81ecdfbb
RW
4760
4761
775e241e
TT
4762for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \
4763 string.h strings.h \
81ecdfbb
RW
4764 limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h
4765do :
4766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4767ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 4768if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25ed0b71 4769 cat >>confdefs.h <<_ACEOF
81ecdfbb 4770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25ed0b71 4771_ACEOF
9255ee31 4772
d60d9f65 4773fi
81ecdfbb 4774
d60d9f65
SS
4775done
4776
775e241e 4777for ac_header in sys/ioctl.h sys/pte.h sys/stream.h sys/select.h sys/file.h
81ecdfbb
RW
4778do :
4779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 4781if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
4782 cat >>confdefs.h <<_ACEOF
4783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4784_ACEOF
25ed0b71 4785
81ecdfbb 4786fi
5bdf8622 4787
81ecdfbb 4788done
5bdf8622
DJ
4789
4790
81ecdfbb
RW
4791for ac_header in sys/ptem.h
4792do :
4793 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
4794#if HAVE_SYS_STREAM_H
4795# include <sys/stream.h>
4796#endif
5bdf8622 4797
81ecdfbb 4798"
d0ac1c44 4799if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
81ecdfbb
RW
4800 cat >>confdefs.h <<_ACEOF
4801#define HAVE_SYS_PTEM_H 1
4802_ACEOF
5bdf8622 4803
81ecdfbb 4804fi
5bdf8622 4805
81ecdfbb 4806done
5bdf8622
DJ
4807
4808
cc88a640
JK
4809# Check whether --enable-largefile was given.
4810if test "${enable_largefile+set}" = set; then :
4811 enableval=$enable_largefile;
4812fi
4813
4814if test "$enable_largefile" != no; then
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4817$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 4818if ${ac_cv_sys_largefile_CC+:} false; then :
cc88a640
JK
4819 $as_echo_n "(cached) " >&6
4820else
4821 ac_cv_sys_largefile_CC=no
4822 if test "$GCC" != yes; then
4823 ac_save_CC=$CC
4824 while :; do
4825 # IRIX 6.2 and later do not support large files by default,
4826 # so use the C compiler's -n32 option if that helps.
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828/* end confdefs.h. */
4829#include <sys/types.h>
4830 /* Check that off_t can represent 2**63 - 1 correctly.
4831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4832 since some C++ compilers masquerading as C compilers
4833 incorrectly reject 9223372036854775807. */
4834#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4836 && LARGE_OFF_T % 2147483647 == 1)
4837 ? 1 : -1];
4838int
4839main ()
4840{
4841
4842 ;
4843 return 0;
4844}
4845_ACEOF
4846 if ac_fn_c_try_compile "$LINENO"; then :
4847 break
4848fi
4849rm -f core conftest.err conftest.$ac_objext
4850 CC="$CC -n32"
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_sys_largefile_CC=' -n32'; break
4853fi
4854rm -f core conftest.err conftest.$ac_objext
4855 break
4856 done
4857 CC=$ac_save_CC
4858 rm -f conftest.$ac_ext
4859 fi
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4862$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4863 if test "$ac_cv_sys_largefile_CC" != no; then
4864 CC=$CC$ac_cv_sys_largefile_CC
4865 fi
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4868$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 4869if ${ac_cv_sys_file_offset_bits+:} false; then :
cc88a640
JK
4870 $as_echo_n "(cached) " >&6
4871else
4872 while :; do
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h. */
4875#include <sys/types.h>
4876 /* Check that off_t can represent 2**63 - 1 correctly.
4877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4878 since some C++ compilers masquerading as C compilers
4879 incorrectly reject 9223372036854775807. */
4880#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4882 && LARGE_OFF_T % 2147483647 == 1)
4883 ? 1 : -1];
4884int
4885main ()
4886{
4887
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892if ac_fn_c_try_compile "$LINENO"; then :
4893 ac_cv_sys_file_offset_bits=no; break
4894fi
4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898#define _FILE_OFFSET_BITS 64
4899#include <sys/types.h>
4900 /* Check that off_t can represent 2**63 - 1 correctly.
4901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4902 since some C++ compilers masquerading as C compilers
4903 incorrectly reject 9223372036854775807. */
4904#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4906 && LARGE_OFF_T % 2147483647 == 1)
4907 ? 1 : -1];
4908int
4909main ()
4910{
4911
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917 ac_cv_sys_file_offset_bits=64; break
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 ac_cv_sys_file_offset_bits=unknown
4921 break
4922done
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4925$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4926case $ac_cv_sys_file_offset_bits in #(
4927 no | unknown) ;;
4928 *)
4929cat >>confdefs.h <<_ACEOF
4930#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4931_ACEOF
4932;;
4933esac
4934rm -rf conftest*
4935 if test $ac_cv_sys_file_offset_bits = unknown; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4937$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 4938if ${ac_cv_sys_large_files+:} false; then :
cc88a640
JK
4939 $as_echo_n "(cached) " >&6
4940else
4941 while :; do
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h. */
4944#include <sys/types.h>
4945 /* Check that off_t can represent 2**63 - 1 correctly.
4946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4947 since some C++ compilers masquerading as C compilers
4948 incorrectly reject 9223372036854775807. */
4949#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4951 && LARGE_OFF_T % 2147483647 == 1)
4952 ? 1 : -1];
4953int
4954main ()
4955{
4956
4957 ;
4958 return 0;
4959}
4960_ACEOF
4961if ac_fn_c_try_compile "$LINENO"; then :
4962 ac_cv_sys_large_files=no; break
4963fi
4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h. */
4967#define _LARGE_FILES 1
4968#include <sys/types.h>
4969 /* Check that off_t can represent 2**63 - 1 correctly.
4970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4971 since some C++ compilers masquerading as C compilers
4972 incorrectly reject 9223372036854775807. */
4973#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4975 && LARGE_OFF_T % 2147483647 == 1)
4976 ? 1 : -1];
4977int
4978main ()
4979{
4980
4981 ;
4982 return 0;
4983}
4984_ACEOF
4985if ac_fn_c_try_compile "$LINENO"; then :
4986 ac_cv_sys_large_files=1; break
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cv_sys_large_files=unknown
4990 break
4991done
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4994$as_echo "$ac_cv_sys_large_files" >&6; }
4995case $ac_cv_sys_large_files in #(
4996 no | unknown) ;;
4997 *)
4998cat >>confdefs.h <<_ACEOF
4999#define _LARGE_FILES $ac_cv_sys_large_files
5000_ACEOF
5001;;
5002esac
5003rm -rf conftest*
5004 fi
d0ac1c44
SM
5005
5006
cc88a640
JK
5007fi
5008
5009
5bdf8622 5010
81ecdfbb
RW
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
5012$as_echo_n "checking for type of signal functions... " >&6; }
d0ac1c44 5013if ${bash_cv_signal_vintage+:} false; then :
81ecdfbb
RW
5014 $as_echo_n "(cached) " >&6
5015else
5bdf8622 5016
81ecdfbb
RW
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h. */
5019#include <signal.h>
5020int
5021main ()
5022{
5023
5024 sigset_t ss;
5025 struct sigaction sa;
5026 sigemptyset(&ss); sigsuspend(&ss);
5027 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5028 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5bdf8622 5029
81ecdfbb
RW
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034if ac_fn_c_try_link "$LINENO"; then :
5035 bash_cv_signal_vintage=posix
5036else
5bdf8622 5037
81ecdfbb
RW
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h. */
5040#include <signal.h>
5041int
5042main ()
5bdf8622 5043{
81ecdfbb
RW
5044
5045 int mask = sigmask(SIGINT);
5046 sigsetmask(mask); sigblock(mask); sigpause(mask);
5047
5048 ;
5049 return 0;
5bdf8622 5050}
81ecdfbb
RW
5051_ACEOF
5052if ac_fn_c_try_link "$LINENO"; then :
5053 bash_cv_signal_vintage=4.2bsd
5054else
5bdf8622 5055
81ecdfbb
RW
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h. */
5058
5059 #include <signal.h>
5060 RETSIGTYPE foo() { }
5bdf8622
DJ
5061int
5062main ()
5063{
81ecdfbb
RW
5064
5065 int mask = sigmask(SIGINT);
5066 sigset(SIGINT, foo); sigrelse(SIGINT);
5067 sighold(SIGINT); sigpause(SIGINT);
5068
5bdf8622
DJ
5069 ;
5070 return 0;
5071}
5072_ACEOF
81ecdfbb
RW
5073if ac_fn_c_try_link "$LINENO"; then :
5074 bash_cv_signal_vintage=svr3
5bdf8622 5075else
81ecdfbb 5076 bash_cv_signal_vintage=v7
5bdf8622 5077
5bdf8622 5078fi
81ecdfbb
RW
5079rm -f core conftest.err conftest.$ac_objext \
5080 conftest$ac_exeext conftest.$ac_ext
5081
5bdf8622 5082fi
81ecdfbb
RW
5083rm -f core conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5bdf8622
DJ
5085
5086fi
81ecdfbb
RW
5087rm -f core conftest.err conftest.$ac_objext \
5088 conftest$ac_exeext conftest.$ac_ext
5bdf8622 5089
81ecdfbb 5090fi
5bdf8622 5091
81ecdfbb
RW
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
5093$as_echo "$bash_cv_signal_vintage" >&6; }
5094if test "$bash_cv_signal_vintage" = posix; then
5095$as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
5bdf8622 5096
81ecdfbb
RW
5097elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5098$as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
5bdf8622 5099
81ecdfbb
RW
5100elif test "$bash_cv_signal_vintage" = svr3; then
5101$as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
5bdf8622 5102
81ecdfbb
RW
5103fi
5104
5105
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
5108$as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
d0ac1c44 5109if ${bash_cv_must_reinstall_sighandlers+:} false; then :
81ecdfbb
RW
5110 $as_echo_n "(cached) " >&6
5111else
5112 if test "$cross_compiling" = yes; then :
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5114$as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5115 bash_cv_must_reinstall_sighandlers=no
5116
5117else
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h. */
5120
5121#include <signal.h>
5122#ifdef HAVE_UNISTD_H
5123#include <unistd.h>
5bdf8622
DJ
5124#endif
5125
81ecdfbb 5126typedef RETSIGTYPE sigfunc();
5bdf8622 5127
81ecdfbb
RW
5128int nsigint;
5129
5130#ifdef HAVE_POSIX_SIGNALS
5131sigfunc *
5132set_signal_handler(sig, handler)
5133 int sig;
5134 sigfunc *handler;
5bdf8622 5135{
81ecdfbb
RW
5136 struct sigaction act, oact;
5137 act.sa_handler = handler;
5138 act.sa_flags = 0;
5139 sigemptyset (&act.sa_mask);
5140 sigemptyset (&oact.sa_mask);
5141 sigaction (sig, &act, &oact);
5142 return (oact.sa_handler);
5143}
5bdf8622 5144#else
81ecdfbb 5145#define set_signal_handler(s, h) signal(s, h)
5bdf8622 5146#endif
81ecdfbb
RW
5147
5148RETSIGTYPE
5149sigint(s)
5150int s;
5151{
5152 nsigint++;
5bdf8622 5153}
5bdf8622 5154
81ecdfbb 5155main()
5bdf8622 5156{
81ecdfbb
RW
5157 nsigint = 0;
5158 set_signal_handler(SIGINT, sigint);
5159 kill((int)getpid(), SIGINT);
5160 kill((int)getpid(), SIGINT);
5161 exit(nsigint != 2);
5bdf8622 5162}
81ecdfbb 5163
5bdf8622 5164_ACEOF
81ecdfbb
RW
5165if ac_fn_c_try_run "$LINENO"; then :
5166 bash_cv_must_reinstall_sighandlers=no
5bdf8622 5167else
81ecdfbb 5168 bash_cv_must_reinstall_sighandlers=yes
5bdf8622 5169fi
81ecdfbb
RW
5170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5171 conftest.$ac_objext conftest.beam conftest.$ac_ext
5bdf8622 5172fi
5bdf8622
DJ
5173
5174fi
5bdf8622 5175
81ecdfbb
RW
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
5177$as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
5178if test $bash_cv_must_reinstall_sighandlers = yes; then
5179$as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5bdf8622 5180
81ecdfbb 5181fi
5bdf8622
DJ
5182
5183
5bdf8622 5184
81ecdfbb
RW
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5186$as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
d0ac1c44 5187if ${bash_cv_func_sigsetjmp+:} false; then :
81ecdfbb
RW
5188 $as_echo_n "(cached) " >&6
5189else
5190 if test "$cross_compiling" = yes; then :
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5192$as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5193 bash_cv_func_sigsetjmp=missing
5bdf8622 5194
81ecdfbb
RW
5195else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h. */
5bdf8622 5198
81ecdfbb
RW
5199#ifdef HAVE_UNISTD_H
5200#include <unistd.h>
5201#endif
5202#include <sys/types.h>
5203#include <signal.h>
5204#include <setjmp.h>
5bdf8622 5205
81ecdfbb 5206main()
5bdf8622 5207{
81ecdfbb
RW
5208#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5209exit (1);
5bdf8622 5210#else
5bdf8622 5211
81ecdfbb
RW
5212int code;
5213sigset_t set, oset;
5214sigjmp_buf xx;
5215
5216/* get the mask */
5217sigemptyset(&set);
5218sigemptyset(&oset);
5219sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5220sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5221
5222/* save it */
5223code = sigsetjmp(xx, 1);
5224if (code)
5225 exit(0); /* could get sigmask and compare to oset here. */
5226
5227/* change it */
5228sigaddset(&set, SIGINT);
5229sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5230
5231/* and siglongjmp */
5232siglongjmp(xx, 10);
5233exit(1);
5234#endif
5bdf8622
DJ
5235}
5236_ACEOF
81ecdfbb
RW
5237if ac_fn_c_try_run "$LINENO"; then :
5238 bash_cv_func_sigsetjmp=present
5bdf8622 5239else
81ecdfbb 5240 bash_cv_func_sigsetjmp=missing
5bdf8622 5241fi
81ecdfbb
RW
5242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5243 conftest.$ac_objext conftest.beam conftest.$ac_ext
5bdf8622 5244fi
5bdf8622
DJ
5245
5246fi
5bdf8622 5247
81ecdfbb
RW
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5249$as_echo "$bash_cv_func_sigsetjmp" >&6; }
5250if test $bash_cv_func_sigsetjmp = present; then
5251$as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5bdf8622 5252
81ecdfbb
RW
5253fi
5254
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5256$as_echo_n "checking for lstat... " >&6; }
d0ac1c44 5257if ${bash_cv_func_lstat+:} false; then :
81ecdfbb 5258 $as_echo_n "(cached) " >&6
5bdf8622 5259else
81ecdfbb 5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622 5261/* end confdefs.h. */
81ecdfbb
RW
5262
5263#include <sys/types.h>
5264#include <sys/stat.h>
5265
5bdf8622
DJ
5266int
5267main ()
5268{
81ecdfbb 5269 lstat(".",(struct stat *)0);
5bdf8622
DJ
5270 ;
5271 return 0;
5272}
5273_ACEOF
81ecdfbb
RW
5274if ac_fn_c_try_link "$LINENO"; then :
5275 bash_cv_func_lstat=yes
5bdf8622 5276else
81ecdfbb 5277 bash_cv_func_lstat=no
5bdf8622 5278fi
81ecdfbb
RW
5279rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5bdf8622 5281fi
81ecdfbb
RW
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5283$as_echo "$bash_cv_func_lstat" >&6; }
5284if test $bash_cv_func_lstat = yes; then
5285 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5bdf8622
DJ
5286
5287fi
5288
5289
81ecdfbb
RW
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5291$as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
d0ac1c44 5292if ${bash_cv_func_strcoll_broken+:} false; then :
81ecdfbb
RW
5293 $as_echo_n "(cached) " >&6
5294else
5295 if test "$cross_compiling" = yes; then :
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5297$as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5298 bash_cv_func_strcoll_broken=no
5bdf8622 5299
81ecdfbb
RW
5300else
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h. */
5bdf8622 5303
81ecdfbb
RW
5304#include <stdio.h>
5305#if defined (HAVE_LOCALE_H)
5306#include <locale.h>
5307#endif
5bdf8622 5308
81ecdfbb
RW
5309main(c, v)
5310int c;
5311char *v[];
5312{
5313 int r1, r2;
5314 char *deflocale, *defcoll;
5bdf8622 5315
81ecdfbb
RW
5316#ifdef HAVE_SETLOCALE
5317 deflocale = setlocale(LC_ALL, "");
5318 defcoll = setlocale(LC_COLLATE, "");
5319#endif
5bdf8622 5320
81ecdfbb
RW
5321#ifdef HAVE_STRCOLL
5322 /* These two values are taken from tests/glob-test. */
5323 r1 = strcoll("abd", "aXd");
5324#else
5325 r1 = 0;
5326#endif
5327 r2 = strcmp("abd", "aXd");
5bdf8622 5328
81ecdfbb
RW
5329 /* These two should both be greater than 0. It is permissible for
5330 a system to return different values, as long as the sign is the
5331 same. */
5bdf8622 5332
81ecdfbb
RW
5333 /* Exit with 1 (failure) if these two values are both > 0, since
5334 this tests whether strcoll(3) is broken with respect to strcmp(3)
5335 in the default locale. */
5336 exit (r1 > 0 && r2 > 0);
5337}
5bdf8622 5338
81ecdfbb
RW
5339_ACEOF
5340if ac_fn_c_try_run "$LINENO"; then :
5341 bash_cv_func_strcoll_broken=yes
5342else
5343 bash_cv_func_strcoll_broken=no
5344fi
5345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5346 conftest.$ac_objext conftest.beam conftest.$ac_ext
5347fi
5bdf8622 5348
81ecdfbb 5349fi
5bdf8622 5350
81ecdfbb
RW
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5352$as_echo "$bash_cv_func_strcoll_broken" >&6; }
5353if test $bash_cv_func_strcoll_broken = yes; then
5354$as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5bdf8622 5355
81ecdfbb 5356fi
5bdf8622
DJ
5357
5358
81ecdfbb
RW
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5360$as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
d0ac1c44 5361if ${bash_cv_func_ctype_nonascii+:} false; then :
81ecdfbb
RW
5362 $as_echo_n "(cached) " >&6
5363else
5364 if test "$cross_compiling" = yes; then :
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5366$as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5367 bash_cv_func_ctype_nonascii=no
5bdf8622 5368
5bdf8622 5369else
81ecdfbb 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622 5371/* end confdefs.h. */
5bdf8622 5372
81ecdfbb
RW
5373#ifdef HAVE_LOCALE_H
5374#include <locale.h>
5375#endif
5376#include <stdio.h>
5377#include <ctype.h>
5378
5379main(c, v)
5380int c;
5381char *v[];
5382{
5383 char *deflocale;
5384 unsigned char x;
5385 int r1, r2;
5386
5387#ifdef HAVE_SETLOCALE
5388 /* We take a shot here. If that locale is not known, try the
5389 system default. We try this one because '\342' (226) is
5390 known to be a printable character in that locale. */
5391 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5392 if (deflocale == 0)
5393 deflocale = setlocale(LC_ALL, "");
5394#endif
5395
5396 x = '\342';
5397 r1 = isprint(x);
5398 x -= 128;
5399 r2 = isprint(x);
5400 exit (r1 == 0 || r2 == 0);
5401}
5bdf8622 5402
5bdf8622 5403_ACEOF
81ecdfbb
RW
5404if ac_fn_c_try_run "$LINENO"; then :
5405 bash_cv_func_ctype_nonascii=yes
d60d9f65 5406else
81ecdfbb
RW
5407 bash_cv_func_ctype_nonascii=no
5408fi
5409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5410 conftest.$ac_objext conftest.beam conftest.$ac_ext
5bdf8622 5411fi
25ed0b71 5412
d60d9f65 5413fi
5bdf8622 5414
81ecdfbb
RW
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5416$as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5417if test $bash_cv_func_ctype_nonascii = yes; then
5418$as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
d60d9f65
SS
5419
5420fi
5421
25ed0b71 5422
81ecdfbb
RW
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5424$as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
d0ac1c44 5425if ${bash_cv_getpw_declared+:} false; then :
81ecdfbb 5426 $as_echo_n "(cached) " >&6
9255ee31 5427else
81ecdfbb 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5429/* end confdefs.h. */
25ed0b71 5430
81ecdfbb
RW
5431#include <sys/types.h>
5432#ifdef HAVE_UNISTD_H
5433# include <unistd.h>
5434#endif
5435#include <pwd.h>
25ed0b71 5436
9255ee31 5437_ACEOF
81ecdfbb
RW
5438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5439 $EGREP "getpwuid" >/dev/null 2>&1; then :
5440 bash_cv_getpw_declared=yes
9255ee31 5441else
81ecdfbb 5442 bash_cv_getpw_declared=no
9255ee31 5443fi
81ecdfbb 5444rm -f conftest*
25ed0b71 5445
25ed0b71 5446fi
25ed0b71 5447
81ecdfbb
RW
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5449$as_echo "$bash_cv_getpw_declared" >&6; }
5450if test $bash_cv_getpw_declared = yes; then
5451$as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
25ed0b71
KW
5452
5453fi
9255ee31 5454
25ed0b71 5455
81ecdfbb
RW
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5457$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
d0ac1c44 5458if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
81ecdfbb
RW
5459 $as_echo_n "(cached) " >&6
5460else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h. */
5463#include <sys/types.h>
5464#include <termios.h>
5465#ifdef TIOCGWINSZ
5466 yes
5467#endif
d60d9f65 5468
81ecdfbb
RW
5469_ACEOF
5470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471 $EGREP "yes" >/dev/null 2>&1; then :
5472 ac_cv_sys_tiocgwinsz_in_termios_h=yes
5473else
5474 ac_cv_sys_tiocgwinsz_in_termios_h=no
5475fi
5476rm -f conftest*
25ed0b71 5477
81ecdfbb
RW
5478fi
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5480$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
25ed0b71 5481
81ecdfbb
RW
5482if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5484$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
d0ac1c44 5485if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
81ecdfbb
RW
5486 $as_echo_n "(cached) " >&6
5487else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622 5489/* end confdefs.h. */
81ecdfbb
RW
5490#include <sys/types.h>
5491#include <sys/ioctl.h>
5492#ifdef TIOCGWINSZ
5493 yes
5bdf8622
DJ
5494#endif
5495
5bdf8622 5496_ACEOF
81ecdfbb
RW
5497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5498 $EGREP "yes" >/dev/null 2>&1; then :
5499 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
5bdf8622 5500else
81ecdfbb 5501 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
5bdf8622 5502fi
81ecdfbb 5503rm -f conftest*
5bdf8622
DJ
5504
5505fi
81ecdfbb
RW
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5507$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5bdf8622 5508
81ecdfbb 5509 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5bdf8622 5510
81ecdfbb
RW
5511$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5512
5513 fi
5514fi
5bdf8622
DJ
5515
5516
cc88a640
JK
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5518$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
d0ac1c44 5519if ${ac_cv_have_sig_atomic_t+:} false; then :
cc88a640
JK
5520 $as_echo_n "(cached) " >&6
5521else
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h. */
5524
5525#include <signal.h>
5526
5527int
5528main ()
5529{
5530 sig_atomic_t x;
5531 ;
5532 return 0;
5533}
5534_ACEOF
5535if ac_fn_c_try_link "$LINENO"; then :
5536 ac_cv_have_sig_atomic_t=yes
5537else
5538 ac_cv_have_sig_atomic_t=no
5539fi
5540rm -f core conftest.err conftest.$ac_objext \
5541 conftest$ac_exeext conftest.$ac_ext
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5544$as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5545if test "$ac_cv_have_sig_atomic_t" = "no"
5546then
5547 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
d0ac1c44 5548if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
cc88a640
JK
5549
5550else
5551
5552cat >>confdefs.h <<_ACEOF
5553#define sig_atomic_t int
5554_ACEOF
5555
5556fi
5557
5558fi
5559
81ecdfbb
RW
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5561$as_echo_n "checking whether signal handlers are of type void... " >&6; }
d0ac1c44 5562if ${bash_cv_void_sighandler+:} false; then :
81ecdfbb 5563 $as_echo_n "(cached) " >&6
d60d9f65 5564else
81ecdfbb 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5566/* end confdefs.h. */
81ecdfbb 5567#include <sys/types.h>
d60d9f65 5568#include <signal.h>
81ecdfbb
RW
5569#ifdef signal
5570#undef signal
5571#endif
5572#ifdef __cplusplus
5573extern "C"
5574#endif
5575void (*signal ()) ();
9255ee31
EZ
5576int
5577main ()
5578{
81ecdfbb 5579int i;
9255ee31
EZ
5580 ;
5581 return 0;
5582}
5583_ACEOF
81ecdfbb
RW
5584if ac_fn_c_try_compile "$LINENO"; then :
5585 bash_cv_void_sighandler=yes
d60d9f65 5586else
81ecdfbb
RW
5587 bash_cv_void_sighandler=no
5588fi
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5592$as_echo "$bash_cv_void_sighandler" >&6; }
5593if test $bash_cv_void_sighandler = yes; then
5594$as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
25ed0b71 5595
81ecdfbb 5596fi
9255ee31 5597
cc88a640 5598
81ecdfbb
RW
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5600$as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
d0ac1c44 5601if ${bash_cv_tiocstat_in_ioctl+:} false; then :
81ecdfbb
RW
5602 $as_echo_n "(cached) " >&6
5603else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5605/* end confdefs.h. */
81ecdfbb
RW
5606#include <sys/types.h>
5607#include <sys/ioctl.h>
9255ee31
EZ
5608int
5609main ()
5610{
81ecdfbb 5611int x = TIOCSTAT;
9255ee31
EZ
5612 ;
5613 return 0;
5614}
5615_ACEOF
81ecdfbb
RW
5616if ac_fn_c_try_compile "$LINENO"; then :
5617 bash_cv_tiocstat_in_ioctl=yes
d60d9f65 5618else
81ecdfbb
RW
5619 bash_cv_tiocstat_in_ioctl=no
5620fi
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622fi
5623
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5625$as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5626if test $bash_cv_tiocstat_in_ioctl = yes; then
5627$as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
25ed0b71 5628
81ecdfbb 5629fi
9255ee31 5630
81ecdfbb
RW
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5632$as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
d0ac1c44 5633if ${bash_cv_fionread_in_ioctl+:} false; then :
81ecdfbb
RW
5634 $as_echo_n "(cached) " >&6
5635else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5637/* end confdefs.h. */
81ecdfbb
RW
5638#include <sys/types.h>
5639#include <sys/ioctl.h>
9255ee31
EZ
5640int
5641main ()
5642{
81ecdfbb 5643int x = FIONREAD;
9255ee31
EZ
5644 ;
5645 return 0;
5646}
5647_ACEOF
81ecdfbb
RW
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 bash_cv_fionread_in_ioctl=yes
d60d9f65 5650else
81ecdfbb 5651 bash_cv_fionread_in_ioctl=no
d60d9f65 5652fi
81ecdfbb 5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 5654fi
d60d9f65 5655
81ecdfbb
RW
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5657$as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5658if test $bash_cv_fionread_in_ioctl = yes; then
5659$as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
d60d9f65
SS
5660
5661fi
5662
81ecdfbb
RW
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5664$as_echo_n "checking for speed_t in sys/types.h... " >&6; }
d0ac1c44 5665if ${bash_cv_speed_t_in_sys_types+:} false; then :
81ecdfbb
RW
5666 $as_echo_n "(cached) " >&6
5667else
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h. */
5670#include <sys/types.h>
5671int
5672main ()
5673{
5674speed_t x;
5675 ;
5676 return 0;
5677}
25ed0b71 5678_ACEOF
81ecdfbb
RW
5679if ac_fn_c_try_compile "$LINENO"; then :
5680 bash_cv_speed_t_in_sys_types=yes
5681else
5682 bash_cv_speed_t_in_sys_types=no
5683fi
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
5685fi
5686
81ecdfbb
RW
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5688$as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5689if test $bash_cv_speed_t_in_sys_types = yes; then
5690$as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
25ed0b71 5691
81ecdfbb 5692fi
25ed0b71 5693
81ecdfbb
RW
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5695$as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
d0ac1c44 5696if ${bash_cv_struct_winsize_header+:} false; then :
81ecdfbb 5697 $as_echo_n "(cached) " >&6
d60d9f65 5698else
81ecdfbb
RW
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h. */
5701#include <sys/types.h>
5702#include <sys/ioctl.h>
5703int
5704main ()
5705{
5706struct winsize x;
5707 ;
5708 return 0;
5709}
25ed0b71 5710_ACEOF
81ecdfbb
RW
5711if ac_fn_c_try_compile "$LINENO"; then :
5712 bash_cv_struct_winsize_header=ioctl_h
5713else
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5715/* end confdefs.h. */
81ecdfbb
RW
5716#include <sys/types.h>
5717#include <termios.h>
5718int
5719main ()
5720{
5721struct winsize x;
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726if ac_fn_c_try_compile "$LINENO"; then :
5727 bash_cv_struct_winsize_header=termios_h
5728else
5729 bash_cv_struct_winsize_header=other
5730fi
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d60d9f65 5732
81ecdfbb
RW
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735fi
d60d9f65 5736
81ecdfbb
RW
5737if test $bash_cv_struct_winsize_header = ioctl_h; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5739$as_echo "sys/ioctl.h" >&6; }
5740 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
d60d9f65 5741
81ecdfbb
RW
5742elif test $bash_cv_struct_winsize_header = termios_h; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5744$as_echo "termios.h" >&6; }
5745 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
9255ee31 5746
81ecdfbb
RW
5747else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5749$as_echo "not found" >&6; }
9255ee31 5750fi
25ed0b71 5751
25ed0b71 5752
81ecdfbb
RW
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5754$as_echo_n "checking for struct dirent.d_ino... " >&6; }
d0ac1c44 5755if ${bash_cv_dirent_has_dino+:} false; then :
81ecdfbb 5756 $as_echo_n "(cached) " >&6
5bdf8622 5757else
81ecdfbb 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5bdf8622 5759/* end confdefs.h. */
5bdf8622 5760
81ecdfbb
RW
5761#include <stdio.h>
5762#include <sys/types.h>
5763#ifdef HAVE_UNISTD_H
5764# include <unistd.h>
5765#endif /* HAVE_UNISTD_H */
5766#if defined(HAVE_DIRENT_H)
5767# include <dirent.h>
5bdf8622 5768#else
81ecdfbb
RW
5769# define dirent direct
5770# ifdef HAVE_SYS_NDIR_H
5771# include <sys/ndir.h>
5772# endif /* SYSNDIR */
5773# ifdef HAVE_SYS_DIR_H
5774# include <sys/dir.h>
5775# endif /* SYSDIR */
5776# ifdef HAVE_NDIR_H
5777# include <ndir.h>
5778# endif
5779#endif /* HAVE_DIRENT_H */
5bdf8622
DJ
5780
5781int
5782main ()
5783{
81ecdfbb
RW
5784
5785struct dirent d; int z; z = d.d_ino;
5786
5bdf8622
DJ
5787 ;
5788 return 0;
5789}
5790_ACEOF
81ecdfbb
RW
5791if ac_fn_c_try_compile "$LINENO"; then :
5792 bash_cv_dirent_has_dino=yes
5bdf8622 5793else
81ecdfbb 5794 bash_cv_dirent_has_dino=no
25ed0b71 5795fi
81ecdfbb 5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5bdf8622 5797fi
81ecdfbb
RW
5798
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
5800$as_echo "$bash_cv_dirent_has_dino" >&6; }
5801if test $bash_cv_dirent_has_dino = yes; then
5802$as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
5bdf8622
DJ
5803
5804fi
5805
81ecdfbb
RW
5806
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
5808$as_echo_n "checking for struct dirent.d_fileno... " >&6; }
d0ac1c44 5809if ${bash_cv_dirent_has_d_fileno+:} false; then :
81ecdfbb 5810 $as_echo_n "(cached) " >&6
9255ee31 5811else
81ecdfbb 5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5813/* end confdefs.h. */
5bdf8622 5814
81ecdfbb
RW
5815#include <stdio.h>
5816#include <sys/types.h>
5817#ifdef HAVE_UNISTD_H
5818# include <unistd.h>
5819#endif /* HAVE_UNISTD_H */
5820#if defined(HAVE_DIRENT_H)
5821# include <dirent.h>
5bdf8622 5822#else
81ecdfbb
RW
5823# define dirent direct
5824# ifdef HAVE_SYS_NDIR_H
5825# include <sys/ndir.h>
5826# endif /* SYSNDIR */
5827# ifdef HAVE_SYS_DIR_H
5828# include <sys/dir.h>
5829# endif /* SYSDIR */
5830# ifdef HAVE_NDIR_H
5831# include <ndir.h>
5832# endif
5833#endif /* HAVE_DIRENT_H */
5bdf8622
DJ
5834
5835int
5836main ()
5837{
81ecdfbb
RW
5838
5839struct dirent d; int z; z = d.d_fileno;
5840
5bdf8622
DJ
5841 ;
5842 return 0;
5843}
25ed0b71 5844_ACEOF
81ecdfbb
RW
5845if ac_fn_c_try_compile "$LINENO"; then :
5846 bash_cv_dirent_has_d_fileno=yes
9255ee31 5847else
81ecdfbb 5848 bash_cv_dirent_has_d_fileno=no
9255ee31 5849fi
81ecdfbb 5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25ed0b71 5851fi
9255ee31 5852
81ecdfbb
RW
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
5854$as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
5855if test $bash_cv_dirent_has_d_fileno = yes; then
5856$as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
25ed0b71 5857
81ecdfbb 5858fi
430b7832 5859
430b7832 5860
775e241e
TT
5861for ac_header in libaudit.h
5862do :
5863 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
5864if test "x$ac_cv_header_libaudit_h" = xyes; then :
5865 cat >>confdefs.h <<_ACEOF
5866#define HAVE_LIBAUDIT_H 1
5867_ACEOF
5868
5869fi
5870
5871done
5872
5873ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
5874"
5875if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
5876 ac_have_decl=1
5877else
5878 ac_have_decl=0
5879fi
5880
5881cat >>confdefs.h <<_ACEOF
5882#define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
5883_ACEOF
5884
5885
81ecdfbb
RW
5886case "$host_os" in
5887aix*) prefer_curses=yes ;;
5888esac
430b7832 5889
81ecdfbb
RW
5890if test "X$bash_cv_termcap_lib" = "X"; then
5891_bash_needmsg=yes
5892else
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5894$as_echo_n "checking which library has the termcap functions... " >&6; }
5895_bash_needmsg=
5896fi
d0ac1c44 5897if ${bash_cv_termcap_lib+:} false; then :
81ecdfbb
RW
5898 $as_echo_n "(cached) " >&6
5899else
5900 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
d0ac1c44 5901if test "x$ac_cv_func_tgetent" = xyes; then :
81ecdfbb
RW
5902 bash_cv_termcap_lib=libc
5903else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5905$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
d0ac1c44 5906if ${ac_cv_lib_termcap_tgetent+:} false; then :
81ecdfbb
RW
5907 $as_echo_n "(cached) " >&6
5908else
5909 ac_check_lib_save_LIBS=$LIBS
5910LIBS="-ltermcap $LIBS"
5911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912/* end confdefs.h. */
430b7832 5913
81ecdfbb
RW
5914/* Override any GCC internal prototype to avoid an error.
5915 Use char because int might match the return type of a GCC
832a9484 5916 builtin and then its argument prototype would still apply. */
832a9484 5917#ifdef __cplusplus
81ecdfbb 5918extern "C"
832a9484 5919#endif
81ecdfbb 5920char tgetent ();
832a9484
JB
5921int
5922main ()
5923{
81ecdfbb 5924return tgetent ();
832a9484
JB
5925 ;
5926 return 0;
5927}
5928_ACEOF
81ecdfbb
RW
5929if ac_fn_c_try_link "$LINENO"; then :
5930 ac_cv_lib_termcap_tgetent=yes
832a9484 5931else
81ecdfbb 5932 ac_cv_lib_termcap_tgetent=no
832a9484 5933fi
81ecdfbb
RW
5934rm -f core conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5936LIBS=$ac_check_lib_save_LIBS
832a9484 5937fi
81ecdfbb
RW
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5939$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
d0ac1c44 5940if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
81ecdfbb 5941 bash_cv_termcap_lib=libtermcap
9255ee31 5942else
81ecdfbb
RW
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5944$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
d0ac1c44 5945if ${ac_cv_lib_tinfo_tgetent+:} false; then :
81ecdfbb
RW
5946 $as_echo_n "(cached) " >&6
5947else
5948 ac_check_lib_save_LIBS=$LIBS
5949LIBS="-ltinfo $LIBS"
5950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5951/* end confdefs.h. */
430b7832 5952
81ecdfbb
RW
5953/* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
9255ee31 5955 builtin and then its argument prototype would still apply. */
25ed0b71 5956#ifdef __cplusplus
81ecdfbb 5957extern "C"
9255ee31 5958#endif
81ecdfbb 5959char tgetent ();
25ed0b71
KW
5960int
5961main ()
5962{
81ecdfbb 5963return tgetent ();
9255ee31
EZ
5964 ;
5965 return 0;
5966}
5967_ACEOF
81ecdfbb
RW
5968if ac_fn_c_try_link "$LINENO"; then :
5969 ac_cv_lib_tinfo_tgetent=yes
d60d9f65 5970else
81ecdfbb 5971 ac_cv_lib_tinfo_tgetent=no
9255ee31 5972fi
81ecdfbb
RW
5973rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975LIBS=$ac_check_lib_save_LIBS
d60d9f65 5976fi
81ecdfbb
RW
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5978$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
d0ac1c44 5979if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
81ecdfbb 5980 bash_cv_termcap_lib=libtinfo
d60d9f65 5981else
81ecdfbb
RW
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5983$as_echo_n "checking for tgetent in -lcurses... " >&6; }
d0ac1c44 5984if ${ac_cv_lib_curses_tgetent+:} false; then :
81ecdfbb
RW
5985 $as_echo_n "(cached) " >&6
5986else
5987 ac_check_lib_save_LIBS=$LIBS
5988LIBS="-lcurses $LIBS"
5989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 5990/* end confdefs.h. */
430b7832 5991
81ecdfbb
RW
5992/* Override any GCC internal prototype to avoid an error.
5993 Use char because int might match the return type of a GCC
5994 builtin and then its argument prototype would still apply. */
9255ee31
EZ
5995#ifdef __cplusplus
5996extern "C"
25ed0b71 5997#endif
81ecdfbb
RW
5998char tgetent ();
5999int
6000main ()
6001{
6002return tgetent ();
6003 ;
6004 return 0;
6005}
6006_ACEOF
6007if ac_fn_c_try_link "$LINENO"; then :
6008 ac_cv_lib_curses_tgetent=yes
6009else
6010 ac_cv_lib_curses_tgetent=no
6011fi
6012rm -f core conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6014LIBS=$ac_check_lib_save_LIBS
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
6017$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
d0ac1c44 6018if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
81ecdfbb
RW
6019 bash_cv_termcap_lib=libcurses
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
6022$as_echo_n "checking for tgetent in -lncurses... " >&6; }
d0ac1c44 6023if ${ac_cv_lib_ncurses_tgetent+:} false; then :
81ecdfbb
RW
6024 $as_echo_n "(cached) " >&6
6025else
6026 ac_check_lib_save_LIBS=$LIBS
6027LIBS="-lncurses $LIBS"
6028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h. */
6030
6031/* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
25ed0b71 6034#ifdef __cplusplus
81ecdfbb 6035extern "C"
9255ee31 6036#endif
81ecdfbb 6037char tgetent ();
25ed0b71
KW
6038int
6039main ()
6040{
81ecdfbb 6041return tgetent ();
9255ee31
EZ
6042 ;
6043 return 0;
6044}
6045_ACEOF
81ecdfbb
RW
6046if ac_fn_c_try_link "$LINENO"; then :
6047 ac_cv_lib_ncurses_tgetent=yes
d60d9f65 6048else
81ecdfbb
RW
6049 ac_cv_lib_ncurses_tgetent=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053LIBS=$ac_check_lib_save_LIBS
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
6056$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
d0ac1c44 6057if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
81ecdfbb
RW
6058 bash_cv_termcap_lib=libncurses
6059else
6060 bash_cv_termcap_lib=gnutermcap
6061fi
6062
6063fi
25ed0b71 6064
d60d9f65 6065fi
81ecdfbb
RW
6066
6067fi
6068
9255ee31 6069fi
25ed0b71 6070
05bc3370 6071fi
25ed0b71 6072
81ecdfbb
RW
6073if test "X$_bash_needmsg" = "Xyes"; then
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
6075$as_echo_n "checking which library has the termcap functions... " >&6; }
6076fi
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
6078$as_echo "using $bash_cv_termcap_lib" >&6; }
6079if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
6080LDFLAGS="$LDFLAGS -L./lib/termcap"
6081TERMCAP_LIB="./lib/termcap/libtermcap.a"
6082TERMCAP_DEP="./lib/termcap/libtermcap.a"
6083elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
6084TERMCAP_LIB=-ltermcap
6085TERMCAP_DEP=
6086elif test $bash_cv_termcap_lib = libtinfo; then
6087TERMCAP_LIB=-ltinfo
6088TERMCAP_DEP=
6089elif test $bash_cv_termcap_lib = libncurses; then
6090TERMCAP_LIB=-lncurses
6091TERMCAP_DEP=
6092elif test $bash_cv_termcap_lib = libc; then
6093TERMCAP_LIB=
6094TERMCAP_DEP=
5bdf8622 6095else
81ecdfbb
RW
6096TERMCAP_LIB=-lcurses
6097TERMCAP_DEP=
6098fi
6099
6100if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6101 if test "$prefer_curses" = yes; then
6102 TERMCAP_LIB=-lcurses
6103 else
6104 TERMCAP_LIB=-ltermcap #default
6105 fi
6106fi
775e241e 6107# Windows ncurses installation
7f3c5ec8 6108if test "$TERMCAP_LIB" = "-lncurses"; then
d0ac1c44 6109 for ac_header in ncurses/termcap.h
7f3c5ec8 6110do :
d0ac1c44
SM
6111 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
6112if test "x$ac_cv_header_ncurses_termcap_h" = xyes; then :
7f3c5ec8 6113 cat >>confdefs.h <<_ACEOF
d0ac1c44 6114#define HAVE_NCURSES_TERMCAP_H 1
7f3c5ec8
EZ
6115_ACEOF
6116
6117fi
6118
6119done
6120
6121fi
81ecdfbb 6122
d0ac1c44 6123
81ecdfbb
RW
6124for ac_header in wctype.h
6125do :
6126 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
d0ac1c44 6127if test "x$ac_cv_header_wctype_h" = xyes; then :
81ecdfbb
RW
6128 cat >>confdefs.h <<_ACEOF
6129#define HAVE_WCTYPE_H 1
5bdf8622 6130_ACEOF
5bdf8622 6131
81ecdfbb 6132fi
5bdf8622 6133
81ecdfbb 6134done
5bdf8622 6135
81ecdfbb
RW
6136for ac_header in wchar.h
6137do :
6138 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
d0ac1c44 6139if test "x$ac_cv_header_wchar_h" = xyes; then :
81ecdfbb
RW
6140 cat >>confdefs.h <<_ACEOF
6141#define HAVE_WCHAR_H 1
6142_ACEOF
5bdf8622 6143
81ecdfbb 6144fi
5bdf8622 6145
81ecdfbb
RW
6146done
6147
6148for ac_header in langinfo.h
6149do :
6150 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
d0ac1c44 6151if test "x$ac_cv_header_langinfo_h" = xyes; then :
81ecdfbb
RW
6152 cat >>confdefs.h <<_ACEOF
6153#define HAVE_LANGINFO_H 1
5bdf8622 6154_ACEOF
5bdf8622 6155
5bdf8622 6156fi
81ecdfbb
RW
6157
6158done
6159
6160
775e241e
TT
6161for ac_header in mbstr.h
6162do :
6163 ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
6164if test "x$ac_cv_header_mbstr_h" = xyes; then :
6165 cat >>confdefs.h <<_ACEOF
6166#define HAVE_MBSTR_H 1
6167_ACEOF
6168
6169fi
6170
6171done
6172
6173
cc88a640 6174ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
d0ac1c44 6175if test "x$ac_cv_func_mbrlen" = xyes; then :
cc88a640
JK
6176 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
6177
6178fi
6179
6180ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
d0ac1c44 6181if test "x$ac_cv_func_mbscasecmp" = xyes; then :
cc88a640
JK
6182 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6183
6184fi
6185
6186ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
d0ac1c44 6187if test "x$ac_cv_func_mbscmp" = xyes; then :
cc88a640
JK
6188 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6189
6190fi
6191
6192ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
d0ac1c44 6193if test "x$ac_cv_func_mbsnrtowcs" = xyes; then :
cc88a640
JK
6194 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
6195
6196fi
6197
81ecdfbb 6198ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
d0ac1c44 6199if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
81ecdfbb
RW
6200 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
6201
6202fi
6203
cc88a640 6204
d0ac1c44
SM
6205ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
6206if test "x$ac_cv_func_mbschr" = xyes; then :
6207 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
cc88a640
JK
6208
6209else
6210 case " $LIBOBJS " in
d0ac1c44
SM
6211 *" mbschr.$ac_objext "* ) ;;
6212 *) LIBOBJS="$LIBOBJS mbschr.$ac_objext"
cc88a640
JK
6213 ;;
6214esac
81ecdfbb 6215
5bdf8622 6216fi
81ecdfbb 6217
cc88a640
JK
6218
6219
6220ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
d0ac1c44 6221if test "x$ac_cv_func_wcrtomb" = xyes; then :
cc88a640 6222 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
81ecdfbb
RW
6223
6224fi
6225
cc88a640 6226ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
d0ac1c44 6227if test "x$ac_cv_func_wcscoll" = xyes; then :
cc88a640
JK
6228 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6229
6230fi
6231
6232ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
d0ac1c44 6233if test "x$ac_cv_func_wcsdup" = xyes; then :
cc88a640 6234 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
81ecdfbb
RW
6235
6236fi
6237
6238ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
d0ac1c44 6239if test "x$ac_cv_func_wcwidth" = xyes; then :
81ecdfbb
RW
6240 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6241
6242fi
6243
cc88a640 6244ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
d0ac1c44 6245if test "x$ac_cv_func_wctype" = xyes; then :
cc88a640 6246 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5bdf8622
DJ
6247
6248fi
6249
6250
d0ac1c44
SM
6251ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6252if test "x$ac_cv_func_wcswidth" = xyes; then :
6253 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
cc88a640 6254
05bc3370 6255else
cc88a640 6256 case " $LIBOBJS " in
d0ac1c44
SM
6257 *" wcswidth.$ac_objext "* ) ;;
6258 *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext"
cc88a640
JK
6259 ;;
6260esac
6261
d60d9f65 6262fi
cc88a640 6263
9255ee31 6264
05bc3370 6265
cc88a640
JK
6266
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6268$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
d0ac1c44 6269if ${ac_cv_func_mbrtowc+:} false; then :
81ecdfbb 6270 $as_echo_n "(cached) " >&6
d60d9f65 6271else
81ecdfbb 6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 6273/* end confdefs.h. */
9255ee31
EZ
6274#include <wchar.h>
6275int
6276main ()
430b7832 6277{
cc88a640
JK
6278wchar_t wc;
6279 char const s[] = "";
6280 size_t n = 1;
6281 mbstate_t state;
6282 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
430b7832
MM
6283 ;
6284 return 0;
9255ee31
EZ
6285}
6286_ACEOF
cc88a640
JK
6287if ac_fn_c_try_link "$LINENO"; then :
6288 ac_cv_func_mbrtowc=yes
d60d9f65 6289else
cc88a640 6290 ac_cv_func_mbrtowc=no
d60d9f65 6291fi
cc88a640
JK
6292rm -f core conftest.err conftest.$ac_objext \
6293 conftest$ac_exeext conftest.$ac_ext
d60d9f65 6294fi
cc88a640
JK
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6296$as_echo "$ac_cv_func_mbrtowc" >&6; }
6297 if test $ac_cv_func_mbrtowc = yes; then
6298
6299$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6300
6301 fi
6302
6303if test $ac_cv_func_mbrtowc = yes; then
81ecdfbb 6304 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
d60d9f65
SS
6305
6306fi
6307
cc88a640
JK
6308for ac_func in iswlower iswupper towlower towupper iswctype
6309do :
6310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6311ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 6312if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cc88a640
JK
6313 cat >>confdefs.h <<_ACEOF
6314#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6315_ACEOF
6316
6317fi
6318done
6319
6320
81ecdfbb
RW
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6322$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d0ac1c44 6323if ${bash_cv_langinfo_codeset+:} false; then :
81ecdfbb 6324 $as_echo_n "(cached) " >&6
d60d9f65 6325else
81ecdfbb 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25ed0b71 6327/* end confdefs.h. */
9255ee31
EZ
6328#include <langinfo.h>
6329int
6330main ()
6331{
6332char* cs = nl_langinfo(CODESET);
6333 ;
6334 return 0;
6335}
6336_ACEOF
81ecdfbb 6337if ac_fn_c_try_link "$LINENO"; then :
9255ee31
EZ
6338 bash_cv_langinfo_codeset=yes
6339else
81ecdfbb 6340 bash_cv_langinfo_codeset=no
9255ee31 6341fi
81ecdfbb
RW
6342rm -f core conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext conftest.$ac_ext
d60d9f65 6344fi
81ecdfbb
RW
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6346$as_echo "$bash_cv_langinfo_codeset" >&6; }
9255ee31 6347if test $bash_cv_langinfo_codeset = yes; then
81ecdfbb 6348 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
d60d9f65 6349
d60d9f65
SS
6350fi
6351
cc88a640
JK
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6353$as_echo_n "checking for wchar_t in wchar.h... " >&6; }
d0ac1c44 6354if ${bash_cv_type_wchar_t+:} false; then :
cc88a640
JK
6355 $as_echo_n "(cached) " >&6
6356else
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h. */
6359#include <wchar.h>
6360
6361int
6362main ()
6363{
6364
6365 wchar_t foo;
6366 foo = 0;
6367
6368 ;
6369 return 0;
6370}
6371_ACEOF
6372if ac_fn_c_try_compile "$LINENO"; then :
6373 bash_cv_type_wchar_t=yes
6374else
6375 bash_cv_type_wchar_t=no
6376fi
6377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378fi
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6380$as_echo "$bash_cv_type_wchar_t" >&6; }
6381if test $bash_cv_type_wchar_t = yes; then
6382
6383$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6384
6385fi
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6388$as_echo_n "checking for wctype_t in wctype.h... " >&6; }
d0ac1c44 6389if ${bash_cv_type_wctype_t+:} false; then :
cc88a640
JK
6390 $as_echo_n "(cached) " >&6
6391else
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393/* end confdefs.h. */
6394#include <wctype.h>
6395int
6396main ()
6397{
6398
6399 wctype_t foo;
6400 foo = 0;
6401
6402 ;
6403 return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407 bash_cv_type_wctype_t=yes
6408else
6409 bash_cv_type_wctype_t=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6414$as_echo "$bash_cv_type_wctype_t" >&6; }
6415if test $bash_cv_type_wctype_t = yes; then
6416
6417$as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6418
6419fi
6420
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6422$as_echo_n "checking for wint_t in wctype.h... " >&6; }
d0ac1c44 6423if ${bash_cv_type_wint_t+:} false; then :
cc88a640
JK
6424 $as_echo_n "(cached) " >&6
6425else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h. */
6428#include <wctype.h>
6429int
6430main ()
6431{
6432
6433 wint_t foo;
6434 foo = 0;
6435
6436 ;
6437 return 0;
6438}
6439_ACEOF
6440if ac_fn_c_try_compile "$LINENO"; then :
6441 bash_cv_type_wint_t=yes
6442else
6443 bash_cv_type_wint_t=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6448$as_echo "$bash_cv_type_wint_t" >&6; }
6449if test $bash_cv_type_wint_t = yes; then
6450
6451$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6452
6453fi
6454
775e241e
TT
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
6456$as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
6457if ${bash_cv_wcwidth_broken+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459else
6460 if test "$cross_compiling" = yes; then :
6461 bash_cv_wcwidth_broken=no
6462else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h. */
6465
6466#include <unistd.h>
6467#include <stdlib.h>
6468#include <stdio.h>
6469
6470#include <locale.h>
6471#include <wchar.h>
6472
6473main(c, v)
6474int c;
6475char **v;
6476{
6477 int w;
6478
6479 setlocale(LC_ALL, "en_US.UTF-8");
6480 w = wcwidth (0x0301);
6481 exit (w == 0); /* exit 0 if wcwidth broken */
6482}
6483
6484_ACEOF
6485if ac_fn_c_try_run "$LINENO"; then :
6486 bash_cv_wcwidth_broken=yes
6487else
6488 bash_cv_wcwidth_broken=no
6489fi
6490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6491 conftest.$ac_objext conftest.beam conftest.$ac_ext
6492fi
6493
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
6496$as_echo "$bash_cv_wcwidth_broken" >&6; }
6497if test "$bash_cv_wcwidth_broken" = yes; then
6498
6499$as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
6500
6501fi
6502
cc88a640
JK
6503if test "$am_cv_func_iconv" = yes; then
6504 OLDLIBS="$LIBS"
775e241e 6505 LIBS="$LIBS $LIBINTL $LIBICONV"
cc88a640
JK
6506 for ac_func in locale_charset
6507do :
6508 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
d0ac1c44 6509if test "x$ac_cv_func_locale_charset" = xyes; then :
cc88a640
JK
6510 cat >>confdefs.h <<_ACEOF
6511#define HAVE_LOCALE_CHARSET 1
6512_ACEOF
6513
6514fi
6515done
6516
6517 LIBS="$OLDLIBS"
6518fi
6519
25ed0b71
KW
6520
6521
d60d9f65
SS
6522case "$host_cpu" in
6523*cray*) LOCAL_CFLAGS=-DCRAY ;;
9255ee31 6524*s390*) LOCAL_CFLAGS=-fsigned-char ;;
d60d9f65
SS
6525esac
6526
6527case "$host_os" in
6528isc*) LOCAL_CFLAGS=-Disc386 ;;
6529esac
6530
c862e87b
JM
6531# shared library configuration section
6532#
6533# Shared object configuration section. These values are generated by
6534# ${srcdir}/support/shobj-conf
6535#
6536if test -f ${srcdir}/support/shobj-conf; then
81ecdfbb
RW
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5
6538$as_echo_n "checking configuration for building shared libraries... " >&6; }
5bdf8622
DJ
6539 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6540
6541# case "$SHLIB_LIBS" in
6542# *curses*|*termcap*|*termlib*) ;;
6543# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
6544# esac
6545
6546
6547
6548
9255ee31 6549
25ed0b71
KW
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
81ecdfbb
RW
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5
6562$as_echo "$SHLIB_STATUS" >&6; }
9255ee31
EZ
6563
6564 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6565 # `unsupported', turn off any default shared library building
6566 if test "$SHLIB_STATUS" = 'unsupported'; then
6567 opt_shared_libs=no
6568 fi
1b17e766
EZ
6569
6570 # shared library versioning
6571 # quoted for m4 so I can use character classes
6572 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6573 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
9255ee31 6574
25ed0b71 6575
9255ee31
EZ
6576fi
6577
6578if test "$opt_static_libs" = "yes"; then
6579 STATIC_TARGET=static
6580 STATIC_INSTALL_TARGET=install-static
6581fi
6582if test "$opt_shared_libs" = "yes"; then
6583 SHARED_TARGET=shared
6584 SHARED_INSTALL_TARGET=install-shared
c862e87b
JM
6585fi
6586
25ed0b71
KW
6587
6588
6589
6590
6591
19ce2a29 6592case "$build_os" in
1b17e766
EZ
6593msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
6594*) BUILD_DIR=`pwd` ;;
6595esac
6596
5bdf8622
DJ
6597case "$BUILD_DIR" in
6598*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
6599*) ;;
6600esac
6601
6602
25ed0b71
KW
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
775e241e 6619ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc"
81ecdfbb
RW
6620
6621ac_config_commands="$ac_config_commands default"
6622
9255ee31 6623cat >confcache <<\_ACEOF
d60d9f65
SS
6624# This file is a shell script that caches the results of configure
6625# tests run on this system so they can be shared between configure
9255ee31
EZ
6626# scripts and configure runs, see configure's option --config-cache.
6627# It is not useful on other systems. If it contains results you don't
6628# want to keep, you may remove or edit it.
d60d9f65 6629#
9255ee31
EZ
6630# config.status only pays attention to the cache file if you give it
6631# the --recheck option to rerun configure.
d60d9f65 6632#
25ed0b71 6633# `ac_cv_env_foo' variables (set or unset) will be overridden when
9255ee31
EZ
6634# loading this file, other *unset* `ac_cv_foo' will be assigned the
6635# following values.
6636
6637_ACEOF
6638
d60d9f65
SS
6639# The following way of writing the cache mishandles newlines in values,
6640# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 6641# So, we kill variables containing newlines.
d60d9f65
SS
6642# Ultrix sh set writes to stderr and can't be redirected directly,
6643# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
6644(
6645 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6646 eval ac_val=\$$ac_var
6647 case $ac_val in #(
6648 *${as_nl}*)
6649 case $ac_var in #(
6650 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6651$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6652 esac
6653 case $ac_var in #(
6654 _ | IFS | as_nl) ;; #(
6655 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6656 *) { eval $ac_var=; unset $ac_var;} ;;
6657 esac ;;
6658 esac
6659 done
6660
9255ee31 6661 (set) 2>&1 |
81ecdfbb
RW
6662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6663 *${as_nl}ac_space=\ *)
6664 # `set' does not quote correctly, so add quotes: double-quote
6665 # substitution turns \\\\ into \\, and sed turns \\ into \.
9255ee31 6666 sed -n \
430b7832
MM
6667 "s/'/'\\\\''/g;
6668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 6669 ;; #(
9255ee31
EZ
6670 *)
6671 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 6672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9255ee31 6673 ;;
81ecdfbb
RW
6674 esac |
6675 sort
6676) |
9255ee31 6677 sed '
81ecdfbb 6678 /^ac_cv_env_/b end
9255ee31 6679 t clear
81ecdfbb 6680 :clear
9255ee31
EZ
6681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6682 t end
81ecdfbb
RW
6683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6684 :end' >>confcache
6685if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6686 if test -w "$cache_file"; then
d0ac1c44 6687 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6689$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
6690 if test ! -f "$cache_file" || test -h "$cache_file"; then
6691 cat confcache >"$cache_file"
6692 else
6693 case $cache_file in #(
6694 */* | ?:*)
6695 mv -f confcache "$cache_file"$$ &&
6696 mv -f "$cache_file"$$ "$cache_file" ;; #(
6697 *)
6698 mv -f confcache "$cache_file" ;;
6699 esac
6700 fi
6701 fi
d60d9f65 6702 else
81ecdfbb
RW
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6704$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d60d9f65
SS
6705 fi
6706fi
6707rm -f confcache
6708
d60d9f65
SS
6709test "x$prefix" = xNONE && prefix=$ac_default_prefix
6710# Let make expand exec_prefix.
6711test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6712
d60d9f65
SS
6713DEFS=-DHAVE_CONFIG_H
6714
25ed0b71
KW
6715ac_libobjs=
6716ac_ltlibobjs=
d0ac1c44 6717U=
25ed0b71
KW
6718for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6719 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
6720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6721 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6723 # will be set to the directory where LIBOBJS objects are built.
6724 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6725 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25ed0b71
KW
6726done
6727LIBOBJS=$ac_libobjs
6728
6729LTLIBOBJS=$ac_ltlibobjs
6730
6731
6732
d0ac1c44 6733: "${CONFIG_STATUS=./config.status}"
81ecdfbb 6734ac_write_fail=0
9255ee31
EZ
6735ac_clean_files_save=$ac_clean_files
6736ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6738$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6739as_write_fail=0
6740cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9255ee31 6741#! $SHELL
25ed0b71 6742# Generated by $as_me.
d60d9f65 6743# Run this file to recreate the current configuration.
d60d9f65 6744# Compiler output produced by configure, useful for debugging
9255ee31 6745# configure, is in config.log if it exists.
d60d9f65 6746
9255ee31 6747debug=false
25ed0b71
KW
6748ac_cs_recheck=false
6749ac_cs_silent=false
9255ee31 6750
81ecdfbb
RW
6751SHELL=\${CONFIG_SHELL-$SHELL}
6752export SHELL
6753_ASEOF
6754cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6755## -------------------- ##
6756## M4sh Initialization. ##
6757## -------------------- ##
6758
6759# Be more Bourne compatible
6760DUALCASE=1; export DUALCASE # for MKS sh
6761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9255ee31
EZ
6762 emulate sh
6763 NULLCMD=:
81ecdfbb 6764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25ed0b71
KW
6765 # is contrary to our usage. Disable this feature.
6766 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
6767 setopt NO_GLOB_SUBST
6768else
6769 case `(set -o) 2>/dev/null` in #(
6770 *posix*) :
6771 set -o posix ;; #(
6772 *) :
6773 ;;
6774esac
9255ee31
EZ
6775fi
6776
81ecdfbb
RW
6777
6778as_nl='
6779'
6780export as_nl
6781# Printing a long string crashes Solaris 7 /usr/bin/printf.
6782as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6784as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6785# Prefer a ksh shell builtin over an external printf program on Solaris,
6786# but without wasting forks for bash or zsh.
6787if test -z "$BASH_VERSION$ZSH_VERSION" \
6788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6789 as_echo='print -r --'
6790 as_echo_n='print -rn --'
6791elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6792 as_echo='printf %s\n'
6793 as_echo_n='printf %s'
6794else
6795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6797 as_echo_n='/usr/ucb/echo -n'
6798 else
6799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6800 as_echo_n_body='eval
6801 arg=$1;
6802 case $arg in #(
6803 *"$as_nl"*)
6804 expr "X$arg" : "X\\(.*\\)$as_nl";
6805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6806 esac;
6807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6808 '
6809 export as_echo_n_body
6810 as_echo_n='sh -c $as_echo_n_body as_echo'
6811 fi
6812 export as_echo_body
6813 as_echo='sh -c $as_echo_body as_echo'
6814fi
6815
6816# The user is always right.
6817if test "${PATH_SEPARATOR+set}" != set; then
6818 PATH_SEPARATOR=:
6819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6821 PATH_SEPARATOR=';'
6822 }
25ed0b71
KW
6823fi
6824
6825
81ecdfbb
RW
6826# IFS
6827# We need space, tab and new line, in precisely that order. Quoting is
6828# there to prevent editors from complaining about space-tab.
6829# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6830# splitting by setting IFS to empty value.)
6831IFS=" "" $as_nl"
6832
6833# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 6834as_myself=
81ecdfbb
RW
6835case $0 in #((
6836 *[\\/]* ) as_myself=$0 ;;
6837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6843 done
6844IFS=$as_save_IFS
6845
6846 ;;
6847esac
6848# We did not find ourselves, most probably we were run as `sh COMMAND'
6849# in which case we are not to be found in the path.
6850if test "x$as_myself" = x; then
6851 as_myself=$0
6852fi
6853if test ! -f "$as_myself"; then
6854 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6855 exit 1
6856fi
6857
6858# Unset variables that we do not need and which cause bugs (e.g. in
6859# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6860# suppresses any "Segmentation fault" message there. '((' could
6861# trigger a bug in pdksh 5.2.14.
6862for as_var in BASH_ENV ENV MAIL MAILPATH
6863do eval test x\${$as_var+set} = xset \
6864 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6865done
25ed0b71
KW
6866PS1='$ '
6867PS2='> '
6868PS4='+ '
6869
6870# NLS nuisances.
81ecdfbb
RW
6871LC_ALL=C
6872export LC_ALL
6873LANGUAGE=C
6874export LANGUAGE
6875
6876# CDPATH.
6877(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6878
6879
d0ac1c44
SM
6880# as_fn_error STATUS ERROR [LINENO LOG_FD]
6881# ----------------------------------------
81ecdfbb
RW
6882# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6883# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 6884# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
6885as_fn_error ()
6886{
d0ac1c44
SM
6887 as_status=$1; test $as_status -eq 0 && as_status=1
6888 if test "$4"; then
6889 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6890 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25ed0b71 6891 fi
d0ac1c44 6892 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
6893 as_fn_exit $as_status
6894} # as_fn_error
25ed0b71 6895
81ecdfbb
RW
6896
6897# as_fn_set_status STATUS
6898# -----------------------
6899# Set $? to STATUS, without forking.
6900as_fn_set_status ()
6901{
6902 return $1
6903} # as_fn_set_status
6904
6905# as_fn_exit STATUS
6906# -----------------
6907# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6908as_fn_exit ()
6909{
6910 set +e
6911 as_fn_set_status $1
6912 exit $1
6913} # as_fn_exit
6914
6915# as_fn_unset VAR
6916# ---------------
6917# Portably unset VAR.
6918as_fn_unset ()
6919{
6920 { eval $1=; unset $1;}
6921}
6922as_unset=as_fn_unset
6923# as_fn_append VAR VALUE
6924# ----------------------
6925# Append the text in VALUE to the end of the definition contained in VAR. Take
6926# advantage of any shell optimizations that allow amortized linear growth over
6927# repeated appends, instead of the typical quadratic growth present in naive
6928# implementations.
6929if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6930 eval 'as_fn_append ()
6931 {
6932 eval $1+=\$2
6933 }'
6934else
6935 as_fn_append ()
6936 {
6937 eval $1=\$$1\$2
6938 }
6939fi # as_fn_append
6940
6941# as_fn_arith ARG...
6942# ------------------
6943# Perform arithmetic evaluation on the ARGs, and store the result in the
6944# global $as_val. Take advantage of shells that can avoid forks. The arguments
6945# must be portable across $(()) and expr.
6946if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6947 eval 'as_fn_arith ()
6948 {
6949 as_val=$(( $* ))
6950 }'
6951else
6952 as_fn_arith ()
6953 {
6954 as_val=`expr "$@" || test $? -eq 1`
6955 }
6956fi # as_fn_arith
6957
6958
6959if expr a : '\(a\)' >/dev/null 2>&1 &&
6960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25ed0b71
KW
6961 as_expr=expr
6962else
6963 as_expr=false
6964fi
6965
81ecdfbb 6966if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25ed0b71
KW
6967 as_basename=basename
6968else
6969 as_basename=false
6970fi
6971
81ecdfbb
RW
6972if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6973 as_dirname=dirname
6974else
6975 as_dirname=false
6976fi
25ed0b71 6977
81ecdfbb 6978as_me=`$as_basename -- "$0" ||
25ed0b71
KW
6979$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6980 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6982$as_echo X/"$0" |
6983 sed '/^.*\/\([^/][^/]*\)\/*$/{
6984 s//\1/
6985 q
6986 }
6987 /^X\/\(\/\/\)$/{
6988 s//\1/
6989 q
6990 }
6991 /^X\/\(\/\).*/{
6992 s//\1/
6993 q
6994 }
6995 s/.*/./; q'`
25ed0b71 6996
25ed0b71
KW
6997# Avoid depending upon Character Ranges.
6998as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6999as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7000as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7001as_cr_digits='0123456789'
7002as_cr_alnum=$as_cr_Letters$as_cr_digits
7003
81ecdfbb
RW
7004ECHO_C= ECHO_N= ECHO_T=
7005case `echo -n x` in #(((((
7006-n*)
7007 case `echo 'xy\c'` in
7008 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7009 xy) ECHO_C='\c';;
7010 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7011 ECHO_T=' ';;
7012 esac;;
7013*)
7014 ECHO_N='-n';;
25ed0b71 7015esac
9255ee31 7016
81ecdfbb
RW
7017rm -f conf$$ conf$$.exe conf$$.file
7018if test -d conf$$.dir; then
7019 rm -f conf$$.dir/conf$$.file
9255ee31 7020else
81ecdfbb
RW
7021 rm -f conf$$.dir
7022 mkdir conf$$.dir 2>/dev/null
9255ee31 7023fi
81ecdfbb
RW
7024if (echo >conf$$.file) 2>/dev/null; then
7025 if ln -s conf$$.file conf$$ 2>/dev/null; then
9255ee31 7026 as_ln_s='ln -s'
81ecdfbb
RW
7027 # ... but there are two gotchas:
7028 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7029 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 7030 # In both cases, we have to default to `cp -pR'.
81ecdfbb 7031 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 7032 as_ln_s='cp -pR'
81ecdfbb
RW
7033 elif ln conf$$.file conf$$ 2>/dev/null; then
7034 as_ln_s=ln
7035 else
d0ac1c44 7036 as_ln_s='cp -pR'
9255ee31 7037 fi
9255ee31 7038else
d0ac1c44 7039 as_ln_s='cp -pR'
9255ee31 7040fi
81ecdfbb
RW
7041rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7042rmdir conf$$.dir 2>/dev/null
7043
7044
7045# as_fn_mkdir_p
7046# -------------
7047# Create "$as_dir" as a directory, including parents if necessary.
7048as_fn_mkdir_p ()
7049{
7050
7051 case $as_dir in #(
7052 -*) as_dir=./$as_dir;;
7053 esac
7054 test -d "$as_dir" || eval $as_mkdir_p || {
7055 as_dirs=
7056 while :; do
7057 case $as_dir in #(
7058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7059 *) as_qdir=$as_dir;;
7060 esac
7061 as_dirs="'$as_qdir' $as_dirs"
7062 as_dir=`$as_dirname -- "$as_dir" ||
7063$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7064 X"$as_dir" : 'X\(//\)[^/]' \| \
7065 X"$as_dir" : 'X\(//\)$' \| \
7066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7067$as_echo X"$as_dir" |
7068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7069 s//\1/
7070 q
7071 }
7072 /^X\(\/\/\)[^/].*/{
7073 s//\1/
7074 q
7075 }
7076 /^X\(\/\/\)$/{
7077 s//\1/
7078 q
7079 }
7080 /^X\(\/\).*/{
7081 s//\1/
7082 q
7083 }
7084 s/.*/./; q'`
7085 test -d "$as_dir" && break
7086 done
7087 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 7088 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9255ee31 7089
81ecdfbb
RW
7090
7091} # as_fn_mkdir_p
25ed0b71 7092if mkdir -p . 2>/dev/null; then
81ecdfbb 7093 as_mkdir_p='mkdir -p "$as_dir"'
9255ee31 7094else
430b7832 7095 test -d ./-p && rmdir ./-p
25ed0b71 7096 as_mkdir_p=false
9255ee31
EZ
7097fi
7098
d0ac1c44
SM
7099
7100# as_fn_executable_p FILE
7101# -----------------------
7102# Test if FILE is an executable regular file.
7103as_fn_executable_p ()
7104{
7105 test -f "$1" && test -x "$1"
7106} # as_fn_executable_p
7107as_test_x='test -x'
7108as_executable_p=as_fn_executable_p
25ed0b71
KW
7109
7110# Sed expression to map a string onto a valid CPP name.
430b7832 7111as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25ed0b71
KW
7112
7113# Sed expression to map a string onto a valid variable name.
430b7832 7114as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25ed0b71 7115
9255ee31 7116
9255ee31 7117exec 6>&1
81ecdfbb
RW
7118## ----------------------------------- ##
7119## Main body of $CONFIG_STATUS script. ##
7120## ----------------------------------- ##
7121_ASEOF
7122test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9255ee31 7123
81ecdfbb
RW
7124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7125# Save the log message, to keep $0 and so on meaningful, and to
25ed0b71 7126# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
7127# values after options handling.
7128ac_log="
775e241e 7129This file was extended by readline $as_me 7.0, which was
d0ac1c44 7130generated by GNU Autoconf 2.69. Invocation command line was
25ed0b71
KW
7131
7132 CONFIG_FILES = $CONFIG_FILES
7133 CONFIG_HEADERS = $CONFIG_HEADERS
7134 CONFIG_LINKS = $CONFIG_LINKS
7135 CONFIG_COMMANDS = $CONFIG_COMMANDS
7136 $ $0 $@
7137
81ecdfbb
RW
7138on `(hostname || uname -n) 2>/dev/null | sed 1q`
7139"
7140
9255ee31
EZ
7141_ACEOF
7142
81ecdfbb
RW
7143case $ac_config_files in *"
7144"*) set x $ac_config_files; shift; ac_config_files=$*;;
7145esac
9255ee31 7146
81ecdfbb
RW
7147case $ac_config_headers in *"
7148"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7149esac
9255ee31 7150
9255ee31 7151
81ecdfbb
RW
7152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7153# Files that config.status was made for.
7154config_files="$ac_config_files"
7155config_headers="$ac_config_headers"
7156config_commands="$ac_config_commands"
9255ee31 7157
81ecdfbb 7158_ACEOF
9255ee31 7159
81ecdfbb 7160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9255ee31 7161ac_cs_usage="\
81ecdfbb
RW
7162\`$as_me' instantiates files and other configuration actions
7163from templates according to the current configuration. Unless the files
7164and actions are specified as TAGs, all are instantiated by default.
9255ee31 7165
81ecdfbb 7166Usage: $0 [OPTION]... [TAG]...
9255ee31
EZ
7167
7168 -h, --help print this help, then exit
81ecdfbb 7169 -V, --version print version number and configuration settings, then exit
d0ac1c44 7170 --config print configuration, then exit
81ecdfbb
RW
7171 -q, --quiet, --silent
7172 do not print progress messages
9255ee31
EZ
7173 -d, --debug don't remove temporary files
7174 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
7175 --file=FILE[:TEMPLATE]
7176 instantiate the configuration file FILE
7177 --header=FILE[:TEMPLATE]
7178 instantiate the configuration header FILE
9255ee31
EZ
7179
7180Configuration files:
7181$config_files
7182
7183Configuration headers:
7184$config_headers
7185
7186Configuration commands:
7187$config_commands
7188
81ecdfbb 7189Report bugs to <bug-readline@gnu.org>."
9255ee31 7190
81ecdfbb
RW
7191_ACEOF
7192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 7193ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9255ee31 7194ac_cs_version="\\
775e241e 7195readline config.status 7.0
d0ac1c44
SM
7196configured by $0, generated by GNU Autoconf 2.69,
7197 with options \\"\$ac_cs_config\\"
9255ee31 7198
d0ac1c44 7199Copyright (C) 2012 Free Software Foundation, Inc.
9255ee31
EZ
7200This config.status script is free software; the Free Software Foundation
7201gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
7202
7203ac_pwd='$ac_pwd'
7204srcdir='$srcdir'
7205INSTALL='$INSTALL'
7206test -n "\$AWK" || AWK=awk
25ed0b71 7207_ACEOF
9255ee31 7208
81ecdfbb
RW
7209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7210# The default lists apply if the user does not specify any file.
9255ee31
EZ
7211ac_need_defaults=:
7212while test $# != 0
d60d9f65 7213do
9255ee31 7214 case $1 in
d0ac1c44 7215 --*=?*)
81ecdfbb
RW
7216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25ed0b71
KW
7218 ac_shift=:
7219 ;;
d0ac1c44
SM
7220 --*=)
7221 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7222 ac_optarg=
7223 ac_shift=:
7224 ;;
81ecdfbb 7225 *)
25ed0b71
KW
7226 ac_option=$1
7227 ac_optarg=$2
7228 ac_shift=shift
9255ee31 7229 ;;
9255ee31
EZ
7230 esac
7231
25ed0b71 7232 case $ac_option in
9255ee31 7233 # Handling of the options.
d60d9f65 7234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25ed0b71 7235 ac_cs_recheck=: ;;
81ecdfbb
RW
7236 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7237 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
7238 --config | --confi | --conf | --con | --co | --c )
7239 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 7240 --debug | --debu | --deb | --de | --d | -d )
9255ee31
EZ
7241 debug=: ;;
7242 --file | --fil | --fi | --f )
25ed0b71 7243 $ac_shift
81ecdfbb
RW
7244 case $ac_optarg in
7245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 7246 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
7247 esac
7248 as_fn_append CONFIG_FILES " '$ac_optarg'"
9255ee31
EZ
7249 ac_need_defaults=false;;
7250 --header | --heade | --head | --hea )
25ed0b71 7251 $ac_shift
81ecdfbb
RW
7252 case $ac_optarg in
7253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7254 esac
7255 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9255ee31 7256 ac_need_defaults=false;;
81ecdfbb
RW
7257 --he | --h)
7258 # Conflict between --help and --header
d0ac1c44 7259 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
7260Try \`$0 --help' for more information.";;
7261 --help | --hel | -h )
7262 $as_echo "$ac_cs_usage"; exit ;;
25ed0b71
KW
7263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7264 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7265 ac_cs_silent=: ;;
9255ee31
EZ
7266
7267 # This is an error.
d0ac1c44 7268 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 7269Try \`$0 --help' for more information." ;;
9255ee31 7270
81ecdfbb
RW
7271 *) as_fn_append ac_config_targets " $1"
7272 ac_need_defaults=false ;;
9255ee31 7273
d60d9f65 7274 esac
9255ee31 7275 shift
d60d9f65
SS
7276done
7277
25ed0b71 7278ac_configure_extra_args=
9255ee31 7279
25ed0b71
KW
7280if $ac_cs_silent; then
7281 exec 6>/dev/null
7282 ac_configure_extra_args="$ac_configure_extra_args --silent"
7283fi
9255ee31 7284
25ed0b71 7285_ACEOF
81ecdfbb 7286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25ed0b71 7287if \$ac_cs_recheck; then
d0ac1c44 7288 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
7289 shift
7290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7291 CONFIG_SHELL='$SHELL'
7292 export CONFIG_SHELL
7293 exec "\$@"
25ed0b71 7294fi
d60d9f65 7295
9255ee31 7296_ACEOF
81ecdfbb
RW
7297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7298exec 5>>config.log
7299{
7300 echo
7301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7302## Running $as_me. ##
7303_ASBOX
7304 $as_echo "$ac_log"
7305} >&5
d60d9f65 7306
81ecdfbb
RW
7307_ACEOF
7308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7309_ACEOF
25ed0b71 7310
81ecdfbb 7311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25ed0b71 7312
81ecdfbb 7313# Handling of arguments.
9255ee31
EZ
7314for ac_config_target in $ac_config_targets
7315do
81ecdfbb
RW
7316 case $ac_config_target in
7317 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7318 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7319 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7320 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7321 "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
775e241e 7322 "readline.pc") CONFIG_FILES="$CONFIG_FILES readline.pc" ;;
81ecdfbb
RW
7323 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7324
d0ac1c44 7325 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9255ee31
EZ
7326 esac
7327done
7328
81ecdfbb 7329
9255ee31
EZ
7330# If the user did not use the arguments to specify the items to instantiate,
7331# then the envvar interface is used. Set only those that are not.
7332# We use the long form for the default assignment because of an extremely
7333# bizarre bug on SunOS 4.1.3.
7334if $ac_need_defaults; then
7335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7336 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7337 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7338fi
7339
25ed0b71 7340# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 7341# simply because there is no reason against having it here, and in addition,
25ed0b71 7342# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
7343# Hook for its removal unless debugging.
7344# Note that there is a small window in which the directory will not be cleaned:
7345# after its creation but before its name has been assigned to `$tmp'.
9255ee31
EZ
7346$debug ||
7347{
d0ac1c44 7348 tmp= ac_tmp=
81ecdfbb 7349 trap 'exit_status=$?
d0ac1c44
SM
7350 : "${ac_tmp:=$tmp}"
7351 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
7352' 0
7353 trap 'as_fn_exit 1' 1 2 13 15
9255ee31 7354}
9255ee31 7355# Create a (secure) tmp directory for tmp files.
25ed0b71 7356
9255ee31 7357{
81ecdfbb 7358 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 7359 test -d "$tmp"
9255ee31
EZ
7360} ||
7361{
81ecdfbb
RW
7362 tmp=./conf$$-$RANDOM
7363 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
7364} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7365ac_tmp=$tmp
81ecdfbb
RW
7366
7367# Set up the scripts for CONFIG_FILES section.
7368# No need to generate them if there are no CONFIG_FILES.
7369# This happens for instance with `./config.status config.h'.
7370if test -n "$CONFIG_FILES"; then
7371
7372
7373ac_cr=`echo X | tr X '\015'`
7374# On cygwin, bash can eat \r inside `` if the user requested igncr.
7375# But we know of no other shell where ac_cr would be empty at this
7376# point, so we can use a bashism as a fallback.
7377if test "x$ac_cr" = x; then
7378 eval ac_cr=\$\'\\r\'
7379fi
7380ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7381if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 7382 ac_cs_awk_cr='\\r'
81ecdfbb
RW
7383else
7384 ac_cs_awk_cr=$ac_cr
7385fi
7386
d0ac1c44 7387echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
7388_ACEOF
7389
7390
9255ee31 7391{
81ecdfbb
RW
7392 echo "cat >conf$$subs.awk <<_ACEOF" &&
7393 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7394 echo "_ACEOF"
7395} >conf$$subs.sh ||
d0ac1c44
SM
7396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7397ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
7398ac_delim='%!_!# '
7399for ac_last_try in false false false false false :; do
7400 . ./conf$$subs.sh ||
d0ac1c44 7401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
7402
7403 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7404 if test $ac_delim_n = $ac_delim_num; then
7405 break
7406 elif $ac_last_try; then
d0ac1c44 7407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
7408 else
7409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7410 fi
7411done
7412rm -f conf$$subs.sh
7413
7414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 7415cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
7416_ACEOF
7417sed -n '
7418h
7419s/^/S["/; s/!.*/"]=/
7420p
7421g
7422s/^[^!]*!//
7423:repl
7424t repl
7425s/'"$ac_delim"'$//
7426t delim
7427:nl
7428h
d0ac1c44 7429s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
7430t more1
7431s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7432p
7433n
7434b repl
7435:more1
7436s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7437p
7438g
7439s/.\{148\}//
7440t nl
7441:delim
7442h
d0ac1c44 7443s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
7444t more2
7445s/["\\]/\\&/g; s/^/"/; s/$/"/
7446p
7447b
7448:more2
7449s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7450p
7451g
7452s/.\{148\}//
7453t delim
7454' <conf$$subs.awk | sed '
7455/^[^""]/{
7456 N
7457 s/\n//
9255ee31 7458}
81ecdfbb
RW
7459' >>$CONFIG_STATUS || ac_write_fail=1
7460rm -f conf$$subs.awk
7461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7462_ACAWK
d0ac1c44 7463cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
7464 for (key in S) S_is_set[key] = 1
7465 FS = "\a"
d60d9f65 7466
81ecdfbb
RW
7467}
7468{
7469 line = $ 0
7470 nfields = split(line, field, "@")
7471 substed = 0
7472 len = length(field[1])
7473 for (i = 2; i < nfields; i++) {
7474 key = field[i]
7475 keylen = length(key)
7476 if (S_is_set[key]) {
7477 value = S[key]
7478 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7479 len += length(value) + length(field[++i])
7480 substed = 1
7481 } else
7482 len += 1 + keylen
7483 }
d60d9f65 7484
81ecdfbb
RW
7485 print line
7486}
d60d9f65 7487
81ecdfbb
RW
7488_ACAWK
7489_ACEOF
7490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7491if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7492 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7493else
7494 cat
d0ac1c44
SM
7495fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7496 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
7497_ACEOF
7498
d0ac1c44
SM
7499# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7500# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
7501# trailing colons and then remove the whole line if VPATH becomes empty
7502# (actually we leave an empty line to preserve line numbers).
7503if test "x$srcdir" = x.; then
d0ac1c44
SM
7504 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7505h
7506s///
7507s/^/:/
7508s/[ ]*$/:/
7509s/:\$(srcdir):/:/g
7510s/:\${srcdir}:/:/g
7511s/:@srcdir@:/:/g
7512s/^:*//
81ecdfbb 7513s/:*$//
d0ac1c44
SM
7514x
7515s/\(=[ ]*\).*/\1/
7516G
7517s/\n//
81ecdfbb
RW
7518s/^[^=]*=[ ]*$//
7519}'
7520fi
9255ee31 7521
81ecdfbb
RW
7522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7523fi # test -n "$CONFIG_FILES"
9255ee31 7524
81ecdfbb
RW
7525# Set up the scripts for CONFIG_HEADERS section.
7526# No need to generate them if there are no CONFIG_HEADERS.
7527# This happens for instance with `./config.status Makefile'.
7528if test -n "$CONFIG_HEADERS"; then
d0ac1c44 7529cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 7530BEGIN {
25ed0b71 7531_ACEOF
9255ee31 7532
81ecdfbb
RW
7533# Transform confdefs.h into an awk script `defines.awk', embedded as
7534# here-document in config.status, that substitutes the proper values into
7535# config.h.in to produce config.h.
7536
7537# Create a delimiter string that does not exist in confdefs.h, to ease
7538# handling of long lines.
7539ac_delim='%!_!# '
7540for ac_last_try in false false :; do
d0ac1c44
SM
7541 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7542 if test -z "$ac_tt"; then
81ecdfbb
RW
7543 break
7544 elif $ac_last_try; then
d0ac1c44 7545 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
7546 else
7547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d60d9f65 7548 fi
81ecdfbb 7549done
d60d9f65 7550
81ecdfbb
RW
7551# For the awk script, D is an array of macro values keyed by name,
7552# likewise P contains macro parameters if any. Preserve backslash
7553# newline sequences.
7554
7555ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7556sed -n '
7557s/.\{148\}/&'"$ac_delim"'/g
7558t rset
7559:rset
7560s/^[ ]*#[ ]*define[ ][ ]*/ /
7561t def
7562d
7563:def
7564s/\\$//
7565t bsnl
7566s/["\\]/\\&/g
7567s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7568D["\1"]=" \3"/p
7569s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7570d
7571:bsnl
7572s/["\\]/\\&/g
7573s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7574D["\1"]=" \3\\\\\\n"\\/p
7575t cont
7576s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7577t cont
7578d
7579:cont
7580n
7581s/.\{148\}/&'"$ac_delim"'/g
7582t clear
7583:clear
7584s/\\$//
7585t bsnlc
7586s/["\\]/\\&/g; s/^/"/; s/$/"/p
7587d
7588:bsnlc
7589s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7590b cont
7591' <confdefs.h | sed '
7592s/'"$ac_delim"'/"\\\
7593"/g' >>$CONFIG_STATUS || ac_write_fail=1
7594
7595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7596 for (key in D) D_is_set[key] = 1
7597 FS = "\a"
7598}
7599/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7600 line = \$ 0
7601 split(line, arg, " ")
7602 if (arg[1] == "#") {
7603 defundef = arg[2]
7604 mac1 = arg[3]
7605 } else {
7606 defundef = substr(arg[1], 2)
7607 mac1 = arg[2]
7608 }
7609 split(mac1, mac2, "(") #)
7610 macro = mac2[1]
7611 prefix = substr(line, 1, index(line, defundef) - 1)
7612 if (D_is_set[macro]) {
7613 # Preserve the white space surrounding the "#".
7614 print prefix "define", macro P[macro] D[macro]
7615 next
7616 } else {
7617 # Replace #undef with comments. This is necessary, for example,
7618 # in the case of _POSIX_SOURCE, which is predefined and required
7619 # on some systems where configure will not decide to define it.
7620 if (defundef == "undef") {
7621 print "/*", prefix defundef, macro, "*/"
7622 next
7623 }
7624 }
7625}
7626{ print }
7627_ACAWK
25ed0b71 7628_ACEOF
81ecdfbb 7629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 7630 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
7631fi # test -n "$CONFIG_HEADERS"
7632
7633
7634eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7635shift
7636for ac_tag
7637do
7638 case $ac_tag in
7639 :[FHLC]) ac_mode=$ac_tag; continue;;
7640 esac
7641 case $ac_mode$ac_tag in
7642 :[FHL]*:*);;
d0ac1c44 7643 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
7644 :[FH]-) ac_tag=-:-;;
7645 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7646 esac
7647 ac_save_IFS=$IFS
7648 IFS=:
7649 set x $ac_tag
7650 IFS=$ac_save_IFS
7651 shift
7652 ac_file=$1
7653 shift
7654
7655 case $ac_mode in
7656 :L) ac_source=$1;;
7657 :[FH])
7658 ac_file_inputs=
7659 for ac_f
7660 do
7661 case $ac_f in
d0ac1c44 7662 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
7663 *) # Look for the file first in the build tree, then in the source tree
7664 # (if the path is not absolute). The absolute path cannot be DOS-style,
7665 # because $ac_f cannot contain `:'.
7666 test -f "$ac_f" ||
7667 case $ac_f in
7668 [\\/$]*) false;;
7669 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7670 esac ||
d0ac1c44 7671 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
7672 esac
7673 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7674 as_fn_append ac_file_inputs " '$ac_f'"
7675 done
7676
7677 # Let's still pretend it is `configure' which instantiates (i.e., don't
7678 # use $as_me), people would be surprised to read:
7679 # /* config.h. Generated by config.status. */
7680 configure_input='Generated from '`
7681 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7682 `' by configure.'
7683 if test x"$ac_file" != x-; then
7684 configure_input="$ac_file. $configure_input"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7686$as_echo "$as_me: creating $ac_file" >&6;}
7687 fi
7688 # Neutralize special characters interpreted by sed in replacement strings.
7689 case $configure_input in #(
7690 *\&* | *\|* | *\\* )
7691 ac_sed_conf_input=`$as_echo "$configure_input" |
7692 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7693 *) ac_sed_conf_input=$configure_input;;
7694 esac
7695
7696 case $ac_tag in
d0ac1c44
SM
7697 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
7699 esac
7700 ;;
d60d9f65
SS
7701 esac
7702
81ecdfbb 7703 ac_dir=`$as_dirname -- "$ac_file" ||
25ed0b71 7704$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
430b7832
MM
7705 X"$ac_file" : 'X\(//\)[^/]' \| \
7706 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
7707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7708$as_echo X"$ac_file" |
7709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7710 s//\1/
7711 q
7712 }
7713 /^X\(\/\/\)[^/].*/{
7714 s//\1/
7715 q
7716 }
7717 /^X\(\/\/\)$/{
7718 s//\1/
7719 q
7720 }
7721 /^X\(\/\).*/{
7722 s//\1/
7723 q
7724 }
7725 s/.*/./; q'`
7726 as_dir="$ac_dir"; as_fn_mkdir_p
25ed0b71
KW
7727 ac_builddir=.
7728
81ecdfbb
RW
7729case "$ac_dir" in
7730.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7731*)
7732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7733 # A ".." for each directory in $ac_dir_suffix.
7734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7735 case $ac_top_builddir_sub in
7736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7738 esac ;;
7739esac
7740ac_abs_top_builddir=$ac_pwd
7741ac_abs_builddir=$ac_pwd$ac_dir_suffix
7742# for backward compatibility:
7743ac_top_builddir=$ac_top_build_prefix
25ed0b71
KW
7744
7745case $srcdir in
81ecdfbb 7746 .) # We are building in place.
25ed0b71 7747 ac_srcdir=.
81ecdfbb
RW
7748 ac_top_srcdir=$ac_top_builddir_sub
7749 ac_abs_top_srcdir=$ac_pwd ;;
7750 [\\/]* | ?:[\\/]* ) # Absolute name.
25ed0b71 7751 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
7752 ac_top_srcdir=$srcdir
7753 ac_abs_top_srcdir=$srcdir ;;
7754 *) # Relative name.
7755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7756 ac_top_srcdir=$ac_top_build_prefix$srcdir
7757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25ed0b71 7758esac
81ecdfbb 7759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
430b7832 7760
25ed0b71 7761
81ecdfbb
RW
7762 case $ac_mode in
7763 :F)
7764 #
7765 # CONFIG_FILE
7766 #
d60d9f65 7767
9255ee31
EZ
7768 case $INSTALL in
7769 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 7770 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d60d9f65 7771 esac
81ecdfbb 7772_ACEOF
d60d9f65 7773
81ecdfbb
RW
7774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7775# If the template does not know about datarootdir, expand it.
7776# FIXME: This hack should be removed a few years after 2.60.
7777ac_datarootdir_hack=; ac_datarootdir_seen=
7778ac_sed_dataroot='
7779/datarootdir/ {
7780 p
7781 q
7782}
7783/@datadir@/p
7784/@docdir@/p
7785/@infodir@/p
7786/@localedir@/p
7787/@mandir@/p'
7788case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7789*datarootdir*) ac_datarootdir_seen=yes;;
7790*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7792$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7793_ACEOF
7794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7795 ac_datarootdir_hack='
7796 s&@datadir@&$datadir&g
7797 s&@docdir@&$docdir&g
7798 s&@infodir@&$infodir&g
7799 s&@localedir@&$localedir&g
7800 s&@mandir@&$mandir&g
7801 s&\\\${datarootdir}&$datarootdir&g' ;;
7802esac
25ed0b71 7803_ACEOF
81ecdfbb
RW
7804
7805# Neutralize VPATH when `$srcdir' = `.'.
7806# Shell code in configure.ac might set extrasub.
7807# FIXME: do we really want to maintain this feature?
7808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7809ac_sed_extra="$ac_vpsub
9255ee31 7810$extrasub
25ed0b71 7811_ACEOF
81ecdfbb 7812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9255ee31
EZ
7813:t
7814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
7815s|@configure_input@|$ac_sed_conf_input|;t t
7816s&@top_builddir@&$ac_top_builddir_sub&;t t
7817s&@top_build_prefix@&$ac_top_build_prefix&;t t
7818s&@srcdir@&$ac_srcdir&;t t
7819s&@abs_srcdir@&$ac_abs_srcdir&;t t
7820s&@top_srcdir@&$ac_top_srcdir&;t t
7821s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7822s&@builddir@&$ac_builddir&;t t
7823s&@abs_builddir@&$ac_abs_builddir&;t t
7824s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7825s&@INSTALL@&$ac_INSTALL&;t t
7826$ac_datarootdir_hack
7827"
d0ac1c44
SM
7828eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7829 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
7830
7831test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
7832 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7833 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7834 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 7836which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 7837$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 7838which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 7839
d0ac1c44 7840 rm -f "$ac_tmp/stdin"
9255ee31 7841 case $ac_file in
d0ac1c44
SM
7842 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7843 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 7844 esac \
d0ac1c44 7845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
7846 ;;
7847 :H)
7848 #
7849 # CONFIG_HEADER
7850 #
9255ee31 7851 if test x"$ac_file" != x-; then
81ecdfbb
RW
7852 {
7853 $as_echo "/* $configure_input */" \
d0ac1c44
SM
7854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7855 } >"$ac_tmp/config.h" \
7856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7857 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7859$as_echo "$as_me: $ac_file is unchanged" >&6;}
9255ee31 7860 else
81ecdfbb 7861 rm -f "$ac_file"
d0ac1c44
SM
7862 mv "$ac_tmp/config.h" "$ac_file" \
7863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d60d9f65 7864 fi
9255ee31 7865 else
81ecdfbb 7866 $as_echo "/* $configure_input */" \
d0ac1c44
SM
7867 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7868 || as_fn_error $? "could not create -" "$LINENO" 5
d60d9f65 7869 fi
81ecdfbb 7870 ;;
430b7832 7871
81ecdfbb
RW
7872 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7873$as_echo "$as_me: executing $ac_file commands" >&6;}
7874 ;;
7875 esac
25ed0b71 7876
d60d9f65 7877
81ecdfbb
RW
7878 case $ac_file$ac_mode in
7879 "default":C)
d60d9f65
SS
7880# Makefile uses this timestamp file to record whether config.h is up to date.
7881echo > stamp-h
9255ee31 7882 ;;
81ecdfbb 7883
9255ee31 7884 esac
81ecdfbb 7885done # for ac_tag
d60d9f65 7886
9255ee31 7887
81ecdfbb 7888as_fn_exit 0
25ed0b71 7889_ACEOF
9255ee31
EZ
7890ac_clean_files=$ac_clean_files_save
7891
81ecdfbb 7892test $ac_write_fail = 0 ||
d0ac1c44 7893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 7894
25ed0b71 7895
9255ee31
EZ
7896# configure is writing to config.log, and then calls config.status.
7897# config.status does its own redirection, appending to config.log.
7898# Unfortunately, on DOS this fails, as config.log is still kept open
7899# by configure, so config.status won't be able to write to it; its
7900# output is simply discarded. So we exec the FD to /dev/null,
7901# effectively closing config.log, so it can be properly (re)opened and
7902# appended to by config.status. When coming back to configure, we
7903# need to make the FD available again.
7904if test "$no_create" != yes; then
7905 ac_cs_success=:
25ed0b71
KW
7906 ac_config_status_args=
7907 test "$silent" = yes &&
7908 ac_config_status_args="$ac_config_status_args --quiet"
9255ee31 7909 exec 5>/dev/null
25ed0b71 7910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9255ee31
EZ
7911 exec 5>>config.log
7912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7913 # would make configure fail if this is the last instruction.
d0ac1c44 7914 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
7915fi
7916if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7918$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9255ee31 7919fi
d60d9f65 7920
This page took 1.408838 seconds and 4 git commands to generate.