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