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