Annotation of embedaddon/readline/configure, revision 1.1.1.1.4.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
1.1.1.1.4.1! misho 1181: echo "aaaaaaaaaaaaaaaaaaaaaaaa $cross_compiling"
1.1 misho 1182:
1183: ac_tool_prefix=
1184: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185:
1186: test "$silent" = yes && exec 6>/dev/null
1187:
1188:
1189: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190: ac_ls_di=`ls -di .` &&
1191: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192: as_fn_error $? "working directory cannot be determined"
1193: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194: as_fn_error $? "pwd does not report name of working directory"
1195:
1196:
1197: # Find the source files, if location was not specified.
1198: if test -z "$srcdir"; then
1199: ac_srcdir_defaulted=yes
1200: # Try the directory containing this script, then the parent directory.
1201: ac_confdir=`$as_dirname -- "$as_myself" ||
1202: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203: X"$as_myself" : 'X\(//\)[^/]' \| \
1204: X"$as_myself" : 'X\(//\)$' \| \
1205: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206: $as_echo X"$as_myself" |
1207: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208: s//\1/
1209: q
1210: }
1211: /^X\(\/\/\)[^/].*/{
1212: s//\1/
1213: q
1214: }
1215: /^X\(\/\/\)$/{
1216: s//\1/
1217: q
1218: }
1219: /^X\(\/\).*/{
1220: s//\1/
1221: q
1222: }
1223: s/.*/./; q'`
1224: srcdir=$ac_confdir
1225: if test ! -r "$srcdir/$ac_unique_file"; then
1226: srcdir=..
1227: fi
1228: else
1229: ac_srcdir_defaulted=no
1230: fi
1231: if test ! -r "$srcdir/$ac_unique_file"; then
1232: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1234: fi
1235: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236: ac_abs_confdir=`(
1237: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238: pwd)`
1239: # When building in place, set srcdir=.
1240: if test "$ac_abs_confdir" = "$ac_pwd"; then
1241: srcdir=.
1242: fi
1243: # Remove unnecessary trailing slashes from srcdir.
1244: # Double slashes in file names in object file debugging info
1245: # mess up M-x gdb in Emacs.
1246: case $srcdir in
1247: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248: esac
1249: for ac_var in $ac_precious_vars; do
1250: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251: eval ac_env_${ac_var}_value=\$${ac_var}
1252: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254: done
1255:
1256: #
1257: # Report the --help message.
1258: #
1259: if test "$ac_init_help" = "long"; then
1260: # Omit some internal or obsolete options to make the list less imposing.
1261: # This message is too long to be a string in the A/UX 3.1 sh.
1262: cat <<_ACEOF
1263: \`configure' configures readline 6.3 to adapt to many kinds of systems.
1264:
1265: Usage: $0 [OPTION]... [VAR=VALUE]...
1266:
1267: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268: VAR=VALUE. See below for descriptions of some of the useful variables.
1269:
1270: Defaults for the options are specified in brackets.
1271:
1272: Configuration:
1273: -h, --help display this help and exit
1274: --help=short display options specific to this package
1275: --help=recursive display the short help of all the included packages
1276: -V, --version display version information and exit
1277: -q, --quiet, --silent do not print \`checking ...' messages
1278: --cache-file=FILE cache test results in FILE [disabled]
1279: -C, --config-cache alias for \`--cache-file=config.cache'
1280: -n, --no-create do not create output files
1281: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282:
1283: Installation directories:
1284: --prefix=PREFIX install architecture-independent files in PREFIX
1285: [$ac_default_prefix]
1286: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287: [PREFIX]
1288:
1289: By default, \`make install' will install all the files in
1290: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292: for instance \`--prefix=\$HOME'.
1293:
1294: For better control, use the options below.
1295:
1296: Fine tuning of the installation directories:
1297: --bindir=DIR user executables [EPREFIX/bin]
1298: --sbindir=DIR system admin executables [EPREFIX/sbin]
1299: --libexecdir=DIR program executables [EPREFIX/libexec]
1300: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303: --libdir=DIR object code libraries [EPREFIX/lib]
1304: --includedir=DIR C header files [PREFIX/include]
1305: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308: --infodir=DIR info documentation [DATAROOTDIR/info]
1309: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310: --mandir=DIR man documentation [DATAROOTDIR/man]
1311: --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1312: --htmldir=DIR html documentation [DOCDIR]
1313: --dvidir=DIR dvi documentation [DOCDIR]
1314: --pdfdir=DIR pdf documentation [DOCDIR]
1315: --psdir=DIR ps documentation [DOCDIR]
1316: _ACEOF
1317:
1318: cat <<\_ACEOF
1319:
1320: System types:
1321: --build=BUILD configure for building on BUILD [guessed]
1322: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1323: _ACEOF
1324: fi
1325:
1326: if test -n "$ac_init_help"; then
1327: case $ac_init_help in
1328: short | recursive ) echo "Configuration of readline 6.3:";;
1329: esac
1330: cat <<\_ACEOF
1331:
1332: Optional Features:
1333: --disable-option-checking ignore unrecognized --enable/--with options
1334: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1335: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1336: --enable-multibyte enable multibyte characters if OS supports them
1337: --enable-shared build shared libraries [[default=YES]]
1338: --enable-static build static libraries [[default=YES]]
1339: --disable-largefile omit support for large files
1340:
1341: Optional Packages:
1342: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1343: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1344: --with-curses use the curses library instead of the termcap
1345: library
1346: --with-purify configure to postprocess with purify
1347:
1348: Some influential environment variables:
1349: CC C compiler command
1350: CFLAGS C compiler flags
1351: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1352: nonstandard directory <lib dir>
1353: LIBS libraries to pass to the linker, e.g. -l<library>
1354: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355: you have headers in a nonstandard directory <include dir>
1356: CPP C preprocessor
1357:
1358: Use these variables to override the choices made by `configure' or to help
1359: it to find libraries and programs with nonstandard names/locations.
1360:
1361: Report bugs to <bug-readline@gnu.org>.
1362: _ACEOF
1363: ac_status=$?
1364: fi
1365:
1366: if test "$ac_init_help" = "recursive"; then
1367: # If there are subdirs, report their specific --help.
1368: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369: test -d "$ac_dir" ||
1370: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1371: continue
1372: ac_builddir=.
1373:
1374: case "$ac_dir" in
1375: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376: *)
1377: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1378: # A ".." for each directory in $ac_dir_suffix.
1379: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1380: case $ac_top_builddir_sub in
1381: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383: esac ;;
1384: esac
1385: ac_abs_top_builddir=$ac_pwd
1386: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387: # for backward compatibility:
1388: ac_top_builddir=$ac_top_build_prefix
1389:
1390: case $srcdir in
1391: .) # We are building in place.
1392: ac_srcdir=.
1393: ac_top_srcdir=$ac_top_builddir_sub
1394: ac_abs_top_srcdir=$ac_pwd ;;
1395: [\\/]* | ?:[\\/]* ) # Absolute name.
1396: ac_srcdir=$srcdir$ac_dir_suffix;
1397: ac_top_srcdir=$srcdir
1398: ac_abs_top_srcdir=$srcdir ;;
1399: *) # Relative name.
1400: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401: ac_top_srcdir=$ac_top_build_prefix$srcdir
1402: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403: esac
1404: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405:
1406: cd "$ac_dir" || { ac_status=$?; continue; }
1407: # Check for guested configure.
1408: if test -f "$ac_srcdir/configure.gnu"; then
1409: echo &&
1410: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411: elif test -f "$ac_srcdir/configure"; then
1412: echo &&
1413: $SHELL "$ac_srcdir/configure" --help=recursive
1414: else
1415: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416: fi || ac_status=$?
1417: cd "$ac_pwd" || { ac_status=$?; break; }
1418: done
1419: fi
1420:
1421: test -n "$ac_init_help" && exit $ac_status
1422: if $ac_init_version; then
1423: cat <<\_ACEOF
1424: readline configure 6.3
1425: generated by GNU Autoconf 2.68
1426:
1427: Copyright (C) 2010 Free Software Foundation, Inc.
1428: This configure script is free software; the Free Software Foundation
1429: gives unlimited permission to copy, distribute and modify it.
1430: _ACEOF
1431: exit
1432: fi
1433:
1434: ## ------------------------ ##
1435: ## Autoconf initialization. ##
1436: ## ------------------------ ##
1437:
1438: # ac_fn_c_try_compile LINENO
1439: # --------------------------
1440: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1441: ac_fn_c_try_compile ()
1442: {
1443: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444: rm -f conftest.$ac_objext
1445: if { { ac_try="$ac_compile"
1446: case "(($ac_try" in
1447: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448: *) ac_try_echo=$ac_try;;
1449: esac
1450: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451: $as_echo "$ac_try_echo"; } >&5
1452: (eval "$ac_compile") 2>conftest.err
1453: ac_status=$?
1454: if test -s conftest.err; then
1455: grep -v '^ *+' conftest.err >conftest.er1
1456: cat conftest.er1 >&5
1457: mv -f conftest.er1 conftest.err
1458: fi
1459: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460: test $ac_status = 0; } && {
1461: test -z "$ac_c_werror_flag" ||
1462: test ! -s conftest.err
1463: } && test -s conftest.$ac_objext; then :
1464: ac_retval=0
1465: else
1466: $as_echo "$as_me: failed program was:" >&5
1467: sed 's/^/| /' conftest.$ac_ext >&5
1468:
1469: ac_retval=1
1470: fi
1471: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1472: as_fn_set_status $ac_retval
1473:
1474: } # ac_fn_c_try_compile
1475:
1476: # ac_fn_c_try_cpp LINENO
1477: # ----------------------
1478: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1479: ac_fn_c_try_cpp ()
1480: {
1481: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482: if { { ac_try="$ac_cpp conftest.$ac_ext"
1483: case "(($ac_try" in
1484: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485: *) ac_try_echo=$ac_try;;
1486: esac
1487: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488: $as_echo "$ac_try_echo"; } >&5
1489: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1490: ac_status=$?
1491: if test -s conftest.err; then
1492: grep -v '^ *+' conftest.err >conftest.er1
1493: cat conftest.er1 >&5
1494: mv -f conftest.er1 conftest.err
1495: fi
1496: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497: test $ac_status = 0; } > conftest.i && {
1498: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1499: test ! -s conftest.err
1500: }; then :
1501: ac_retval=0
1502: else
1503: $as_echo "$as_me: failed program was:" >&5
1504: sed 's/^/| /' conftest.$ac_ext >&5
1505:
1506: ac_retval=1
1507: fi
1508: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1509: as_fn_set_status $ac_retval
1510:
1511: } # ac_fn_c_try_cpp
1512:
1513: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1514: # -------------------------------------------------------
1515: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1516: # the include files in INCLUDES and setting the cache variable VAR
1517: # accordingly.
1518: ac_fn_c_check_header_mongrel ()
1519: {
1520: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521: if eval \${$3+:} false; then :
1522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1523: $as_echo_n "checking for $2... " >&6; }
1524: if eval \${$3+:} false; then :
1525: $as_echo_n "(cached) " >&6
1526: fi
1527: eval ac_res=\$$3
1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1529: $as_echo "$ac_res" >&6; }
1530: else
1531: # Is the header compilable?
1532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1533: $as_echo_n "checking $2 usability... " >&6; }
1534: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535: /* end confdefs.h. */
1536: $4
1537: #include <$2>
1538: _ACEOF
1539: if ac_fn_c_try_compile "$LINENO"; then :
1540: ac_header_compiler=yes
1541: else
1542: ac_header_compiler=no
1543: fi
1544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1546: $as_echo "$ac_header_compiler" >&6; }
1547:
1548: # Is the header present?
1549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1550: $as_echo_n "checking $2 presence... " >&6; }
1551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552: /* end confdefs.h. */
1553: #include <$2>
1554: _ACEOF
1555: if ac_fn_c_try_cpp "$LINENO"; then :
1556: ac_header_preproc=yes
1557: else
1558: ac_header_preproc=no
1559: fi
1560: rm -f conftest.err conftest.i conftest.$ac_ext
1561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1562: $as_echo "$ac_header_preproc" >&6; }
1563:
1564: # So? What about this header?
1565: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1566: yes:no: )
1567: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1568: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1569: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1570: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1571: ;;
1572: no:yes:* )
1573: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1574: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1575: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1576: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1577: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1578: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1579: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1580: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1581: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1583: ( $as_echo "## ----------------------------------- ##
1584: ## Report this to bug-readline@gnu.org ##
1585: ## ----------------------------------- ##"
1586: ) | sed "s/^/$as_me: WARNING: /" >&2
1587: ;;
1588: esac
1589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590: $as_echo_n "checking for $2... " >&6; }
1591: if eval \${$3+:} false; then :
1592: $as_echo_n "(cached) " >&6
1593: else
1594: eval "$3=\$ac_header_compiler"
1595: fi
1596: eval ac_res=\$$3
1597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598: $as_echo "$ac_res" >&6; }
1599: fi
1600: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601:
1602: } # ac_fn_c_check_header_mongrel
1603:
1604: # ac_fn_c_try_run LINENO
1605: # ----------------------
1606: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1607: # that executables *can* be run.
1608: ac_fn_c_try_run ()
1609: {
1610: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611: if { { ac_try="$ac_link"
1612: case "(($ac_try" in
1613: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614: *) ac_try_echo=$ac_try;;
1615: esac
1616: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617: $as_echo "$ac_try_echo"; } >&5
1618: (eval "$ac_link") 2>&5
1619: ac_status=$?
1620: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622: { { case "(($ac_try" in
1623: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624: *) ac_try_echo=$ac_try;;
1625: esac
1626: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627: $as_echo "$ac_try_echo"; } >&5
1628: (eval "$ac_try") 2>&5
1629: ac_status=$?
1630: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631: test $ac_status = 0; }; }; then :
1632: ac_retval=0
1633: else
1634: $as_echo "$as_me: program exited with status $ac_status" >&5
1635: $as_echo "$as_me: failed program was:" >&5
1636: sed 's/^/| /' conftest.$ac_ext >&5
1637:
1638: ac_retval=$ac_status
1639: fi
1640: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642: as_fn_set_status $ac_retval
1643:
1644: } # ac_fn_c_try_run
1645:
1646: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647: # -------------------------------------------------------
1648: # Tests whether HEADER exists and can be compiled using the include files in
1649: # INCLUDES, setting the cache variable VAR accordingly.
1650: ac_fn_c_check_header_compile ()
1651: {
1652: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654: $as_echo_n "checking for $2... " >&6; }
1655: if eval \${$3+:} false; then :
1656: $as_echo_n "(cached) " >&6
1657: else
1658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659: /* end confdefs.h. */
1660: $4
1661: #include <$2>
1662: _ACEOF
1663: if ac_fn_c_try_compile "$LINENO"; then :
1664: eval "$3=yes"
1665: else
1666: eval "$3=no"
1667: fi
1668: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669: fi
1670: eval ac_res=\$$3
1671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672: $as_echo "$ac_res" >&6; }
1673: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674:
1675: } # ac_fn_c_check_header_compile
1676:
1677: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1678: # -------------------------------------------
1679: # Tests whether TYPE exists after having included INCLUDES, setting cache
1680: # variable VAR accordingly.
1681: ac_fn_c_check_type ()
1682: {
1683: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685: $as_echo_n "checking for $2... " >&6; }
1686: if eval \${$3+:} false; then :
1687: $as_echo_n "(cached) " >&6
1688: else
1689: eval "$3=no"
1690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691: /* end confdefs.h. */
1692: $4
1693: int
1694: main ()
1695: {
1696: if (sizeof ($2))
1697: return 0;
1698: ;
1699: return 0;
1700: }
1701: _ACEOF
1702: if ac_fn_c_try_compile "$LINENO"; then :
1703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704: /* end confdefs.h. */
1705: $4
1706: int
1707: main ()
1708: {
1709: if (sizeof (($2)))
1710: return 0;
1711: ;
1712: return 0;
1713: }
1714: _ACEOF
1715: if ac_fn_c_try_compile "$LINENO"; then :
1716:
1717: else
1718: eval "$3=yes"
1719: fi
1720: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721: fi
1722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723: fi
1724: eval ac_res=\$$3
1725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726: $as_echo "$ac_res" >&6; }
1727: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728:
1729: } # ac_fn_c_check_type
1730:
1731: # ac_fn_c_try_link LINENO
1732: # -----------------------
1733: # Try to link conftest.$ac_ext, and return whether this succeeded.
1734: ac_fn_c_try_link ()
1735: {
1736: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737: rm -f conftest.$ac_objext conftest$ac_exeext
1738: if { { ac_try="$ac_link"
1739: case "(($ac_try" in
1740: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741: *) ac_try_echo=$ac_try;;
1742: esac
1743: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744: $as_echo "$ac_try_echo"; } >&5
1745: (eval "$ac_link") 2>conftest.err
1746: ac_status=$?
1747: if test -s conftest.err; then
1748: grep -v '^ *+' conftest.err >conftest.er1
1749: cat conftest.er1 >&5
1750: mv -f conftest.er1 conftest.err
1751: fi
1752: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753: test $ac_status = 0; } && {
1754: test -z "$ac_c_werror_flag" ||
1755: test ! -s conftest.err
1756: } && test -s conftest$ac_exeext && {
1757: test "$cross_compiling" = yes ||
1758: $as_test_x conftest$ac_exeext
1759: }; then :
1760: ac_retval=0
1761: else
1762: $as_echo "$as_me: failed program was:" >&5
1763: sed 's/^/| /' conftest.$ac_ext >&5
1764:
1765: ac_retval=1
1766: fi
1767: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769: # interfere with the next link command; also delete a directory that is
1770: # left behind by Apple's compiler. We do this before executing the actions.
1771: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773: as_fn_set_status $ac_retval
1774:
1775: } # ac_fn_c_try_link
1776:
1777: # ac_fn_c_check_func LINENO FUNC VAR
1778: # ----------------------------------
1779: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780: ac_fn_c_check_func ()
1781: {
1782: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784: $as_echo_n "checking for $2... " >&6; }
1785: if eval \${$3+:} false; then :
1786: $as_echo_n "(cached) " >&6
1787: else
1788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789: /* end confdefs.h. */
1790: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792: #define $2 innocuous_$2
1793:
1794: /* System header to define __stub macros and hopefully few prototypes,
1795: which can conflict with char $2 (); below.
1796: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797: <limits.h> exists even on freestanding compilers. */
1798:
1799: #ifdef __STDC__
1800: # include <limits.h>
1801: #else
1802: # include <assert.h>
1803: #endif
1804:
1805: #undef $2
1806:
1807: /* Override any GCC internal prototype to avoid an error.
1808: Use char because int might match the return type of a GCC
1809: builtin and then its argument prototype would still apply. */
1810: #ifdef __cplusplus
1811: extern "C"
1812: #endif
1813: char $2 ();
1814: /* The GNU C library defines this for functions which it implements
1815: to always fail with ENOSYS. Some functions are actually named
1816: something starting with __ and the normal name is an alias. */
1817: #if defined __stub_$2 || defined __stub___$2
1818: choke me
1819: #endif
1820:
1821: int
1822: main ()
1823: {
1824: return $2 ();
1825: ;
1826: return 0;
1827: }
1828: _ACEOF
1829: if ac_fn_c_try_link "$LINENO"; then :
1830: eval "$3=yes"
1831: else
1832: eval "$3=no"
1833: fi
1834: rm -f core conftest.err conftest.$ac_objext \
1835: conftest$ac_exeext conftest.$ac_ext
1836: fi
1837: eval ac_res=\$$3
1838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839: $as_echo "$ac_res" >&6; }
1840: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841:
1842: } # ac_fn_c_check_func
1843:
1844: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1845: # ---------------------------------------------
1846: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1847: # accordingly.
1848: ac_fn_c_check_decl ()
1849: {
1850: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851: as_decl_name=`echo $2|sed 's/ *(.*//'`
1852: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1854: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1855: if eval \${$3+:} false; then :
1856: $as_echo_n "(cached) " >&6
1857: else
1858: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859: /* end confdefs.h. */
1860: $4
1861: int
1862: main ()
1863: {
1864: #ifndef $as_decl_name
1865: #ifdef __cplusplus
1866: (void) $as_decl_use;
1867: #else
1868: (void) $as_decl_name;
1869: #endif
1870: #endif
1871:
1872: ;
1873: return 0;
1874: }
1875: _ACEOF
1876: if ac_fn_c_try_compile "$LINENO"; then :
1877: eval "$3=yes"
1878: else
1879: eval "$3=no"
1880: fi
1881: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882: fi
1883: eval ac_res=\$$3
1884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885: $as_echo "$ac_res" >&6; }
1886: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887:
1888: } # ac_fn_c_check_decl
1889: cat >config.log <<_ACEOF
1890: This file contains any messages produced by compilers while
1891: running configure, to aid debugging if configure makes a mistake.
1892:
1893: It was created by readline $as_me 6.3, which was
1894: generated by GNU Autoconf 2.68. Invocation command line was
1895:
1896: $ $0 $@
1897:
1898: _ACEOF
1899: exec 5>>config.log
1900: {
1901: cat <<_ASUNAME
1902: ## --------- ##
1903: ## Platform. ##
1904: ## --------- ##
1905:
1906: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911:
1912: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1914:
1915: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1916: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1917: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1919: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1920: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1921: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1922:
1923: _ASUNAME
1924:
1925: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926: for as_dir in $PATH
1927: do
1928: IFS=$as_save_IFS
1929: test -z "$as_dir" && as_dir=.
1930: $as_echo "PATH: $as_dir"
1931: done
1932: IFS=$as_save_IFS
1933:
1934: } >&5
1935:
1936: cat >&5 <<_ACEOF
1937:
1938:
1939: ## ----------- ##
1940: ## Core tests. ##
1941: ## ----------- ##
1942:
1943: _ACEOF
1944:
1945:
1946: # Keep a trace of the command line.
1947: # Strip out --no-create and --no-recursion so they do not pile up.
1948: # Strip out --silent because we don't want to record it for future runs.
1949: # Also quote any args containing shell meta-characters.
1950: # Make two passes to allow for proper duplicate-argument suppression.
1951: ac_configure_args=
1952: ac_configure_args0=
1953: ac_configure_args1=
1954: ac_must_keep_next=false
1955: for ac_pass in 1 2
1956: do
1957: for ac_arg
1958: do
1959: case $ac_arg in
1960: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1961: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1962: | -silent | --silent | --silen | --sile | --sil)
1963: continue ;;
1964: *\'*)
1965: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1966: esac
1967: case $ac_pass in
1968: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1969: 2)
1970: as_fn_append ac_configure_args1 " '$ac_arg'"
1971: if test $ac_must_keep_next = true; then
1972: ac_must_keep_next=false # Got value, back to normal.
1973: else
1974: case $ac_arg in
1975: *=* | --config-cache | -C | -disable-* | --disable-* \
1976: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1977: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1978: | -with-* | --with-* | -without-* | --without-* | --x)
1979: case "$ac_configure_args0 " in
1980: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1981: esac
1982: ;;
1983: -* ) ac_must_keep_next=true ;;
1984: esac
1985: fi
1986: as_fn_append ac_configure_args " '$ac_arg'"
1987: ;;
1988: esac
1989: done
1990: done
1991: { ac_configure_args0=; unset ac_configure_args0;}
1992: { ac_configure_args1=; unset ac_configure_args1;}
1993:
1994: # When interrupted or exit'd, cleanup temporary files, and complete
1995: # config.log. We remove comments because anyway the quotes in there
1996: # would cause problems or look ugly.
1997: # WARNING: Use '\'' to represent an apostrophe within the trap.
1998: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1999: trap 'exit_status=$?
2000: # Save into config.log some information that might help in debugging.
2001: {
2002: echo
2003:
2004: $as_echo "## ---------------- ##
2005: ## Cache variables. ##
2006: ## ---------------- ##"
2007: echo
2008: # The following way of writing the cache mishandles newlines in values,
2009: (
2010: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011: eval ac_val=\$$ac_var
2012: case $ac_val in #(
2013: *${as_nl}*)
2014: case $ac_var in #(
2015: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017: esac
2018: case $ac_var in #(
2019: _ | IFS | as_nl) ;; #(
2020: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021: *) { eval $ac_var=; unset $ac_var;} ;;
2022: esac ;;
2023: esac
2024: done
2025: (set) 2>&1 |
2026: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027: *${as_nl}ac_space=\ *)
2028: sed -n \
2029: "s/'\''/'\''\\\\'\'''\''/g;
2030: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031: ;; #(
2032: *)
2033: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034: ;;
2035: esac |
2036: sort
2037: )
2038: echo
2039:
2040: $as_echo "## ----------------- ##
2041: ## Output variables. ##
2042: ## ----------------- ##"
2043: echo
2044: for ac_var in $ac_subst_vars
2045: do
2046: eval ac_val=\$$ac_var
2047: case $ac_val in
2048: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049: esac
2050: $as_echo "$ac_var='\''$ac_val'\''"
2051: done | sort
2052: echo
2053:
2054: if test -n "$ac_subst_files"; then
2055: $as_echo "## ------------------- ##
2056: ## File substitutions. ##
2057: ## ------------------- ##"
2058: echo
2059: for ac_var in $ac_subst_files
2060: do
2061: eval ac_val=\$$ac_var
2062: case $ac_val in
2063: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064: esac
2065: $as_echo "$ac_var='\''$ac_val'\''"
2066: done | sort
2067: echo
2068: fi
2069:
2070: if test -s confdefs.h; then
2071: $as_echo "## ----------- ##
2072: ## confdefs.h. ##
2073: ## ----------- ##"
2074: echo
2075: cat confdefs.h
2076: echo
2077: fi
2078: test "$ac_signal" != 0 &&
2079: $as_echo "$as_me: caught signal $ac_signal"
2080: $as_echo "$as_me: exit $exit_status"
2081: } >&5
2082: rm -f core *.core core.conftest.* &&
2083: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084: exit $exit_status
2085: ' 0
2086: for ac_signal in 1 2 13 15; do
2087: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088: done
2089: ac_signal=0
2090:
2091: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092: rm -f -r conftest* confdefs.h
2093:
2094: $as_echo "/* confdefs.h */" > confdefs.h
2095:
2096: # Predefined preprocessor variables.
2097:
2098: cat >>confdefs.h <<_ACEOF
2099: #define PACKAGE_NAME "$PACKAGE_NAME"
2100: _ACEOF
2101:
2102: cat >>confdefs.h <<_ACEOF
2103: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104: _ACEOF
2105:
2106: cat >>confdefs.h <<_ACEOF
2107: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108: _ACEOF
2109:
2110: cat >>confdefs.h <<_ACEOF
2111: #define PACKAGE_STRING "$PACKAGE_STRING"
2112: _ACEOF
2113:
2114: cat >>confdefs.h <<_ACEOF
2115: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116: _ACEOF
2117:
2118: cat >>confdefs.h <<_ACEOF
2119: #define PACKAGE_URL "$PACKAGE_URL"
2120: _ACEOF
2121:
2122:
2123: # Let the site file select an alternate cache file if it wants to.
2124: # Prefer an explicitly selected file to automatically selected ones.
2125: ac_site_file1=NONE
2126: ac_site_file2=NONE
2127: if test -n "$CONFIG_SITE"; then
2128: # We do not want a PATH search for config.site.
2129: case $CONFIG_SITE in #((
2130: -*) ac_site_file1=./$CONFIG_SITE;;
2131: */*) ac_site_file1=$CONFIG_SITE;;
2132: *) ac_site_file1=./$CONFIG_SITE;;
2133: esac
2134: elif test "x$prefix" != xNONE; then
2135: ac_site_file1=$prefix/share/config.site
2136: ac_site_file2=$prefix/etc/config.site
2137: else
2138: ac_site_file1=$ac_default_prefix/share/config.site
2139: ac_site_file2=$ac_default_prefix/etc/config.site
2140: fi
2141: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2142: do
2143: test "x$ac_site_file" = xNONE && continue
2144: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2145: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2147: sed 's/^/| /' "$ac_site_file" >&5
2148: . "$ac_site_file" \
2149: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151: as_fn_error $? "failed to load site script $ac_site_file
2152: See \`config.log' for more details" "$LINENO" 5; }
2153: fi
2154: done
2155:
2156: if test -r "$cache_file"; then
2157: # Some versions of bash will fail to source /dev/null (special files
2158: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2159: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161: $as_echo "$as_me: loading cache $cache_file" >&6;}
2162: case $cache_file in
2163: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164: *) . "./$cache_file";;
2165: esac
2166: fi
2167: else
2168: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169: $as_echo "$as_me: creating cache $cache_file" >&6;}
2170: >$cache_file
2171: fi
2172:
2173: # Check that the precious variables saved in the cache have kept the same
2174: # value.
2175: ac_cache_corrupted=false
2176: for ac_var in $ac_precious_vars; do
2177: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2178: eval ac_new_set=\$ac_env_${ac_var}_set
2179: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2180: eval ac_new_val=\$ac_env_${ac_var}_value
2181: case $ac_old_set,$ac_new_set in
2182: set,)
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2184: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2185: ac_cache_corrupted=: ;;
2186: ,set)
2187: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2188: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2189: ac_cache_corrupted=: ;;
2190: ,);;
2191: *)
2192: if test "x$ac_old_val" != "x$ac_new_val"; then
2193: # differences in whitespace do not lead to failure.
2194: ac_old_val_w=`echo x $ac_old_val`
2195: ac_new_val_w=`echo x $ac_new_val`
2196: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2197: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2198: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2199: ac_cache_corrupted=:
2200: else
2201: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2202: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2203: eval $ac_var=\$ac_old_val
2204: fi
2205: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2206: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2207: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2208: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2209: fi;;
2210: esac
2211: # Pass precious variables to config.status.
2212: if test "$ac_new_set" = set; then
2213: case $ac_new_val in
2214: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2215: *) ac_arg=$ac_var=$ac_new_val ;;
2216: esac
2217: case " $ac_configure_args " in
2218: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2219: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2220: esac
2221: fi
2222: done
2223: if $ac_cache_corrupted; then
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2227: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2228: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2229: fi
2230: ## -------------------- ##
2231: ## Main body of script. ##
2232: ## -------------------- ##
2233:
2234: ac_ext=c
2235: ac_cpp='$CPP $CPPFLAGS'
2236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239:
2240:
2241:
2242:
2243:
2244:
2245: ac_aux_dir=
2246: for ac_dir in ./support "$srcdir"/./support; do
2247: if test -f "$ac_dir/install-sh"; then
2248: ac_aux_dir=$ac_dir
2249: ac_install_sh="$ac_aux_dir/install-sh -c"
2250: break
2251: elif test -f "$ac_dir/install.sh"; then
2252: ac_aux_dir=$ac_dir
2253: ac_install_sh="$ac_aux_dir/install.sh -c"
2254: break
2255: elif test -f "$ac_dir/shtool"; then
2256: ac_aux_dir=$ac_dir
2257: ac_install_sh="$ac_aux_dir/shtool install -c"
2258: break
2259: fi
2260: done
2261: if test -z "$ac_aux_dir"; then
2262: as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2263: fi
2264:
2265: # These three variables are undocumented and unsupported,
2266: # and are intended to be withdrawn in a future Autoconf release.
2267: # They can cause serious problems if a builder's source tree is in a directory
2268: # whose full name contains unusual characters.
2269: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2270: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2271: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2272:
2273:
2274: ac_config_headers="$ac_config_headers config.h"
2275:
2276:
2277: LIBVERSION=6.3
2278:
2279: # Make sure we can run config.sub.
2280: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2281: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2282:
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2284: $as_echo_n "checking build system type... " >&6; }
2285: if ${ac_cv_build+:} false; then :
2286: $as_echo_n "(cached) " >&6
2287: else
2288: ac_build_alias=$build_alias
2289: test "x$ac_build_alias" = x &&
2290: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2291: test "x$ac_build_alias" = x &&
2292: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2293: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2294: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2295:
2296: fi
2297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2298: $as_echo "$ac_cv_build" >&6; }
2299: case $ac_cv_build in
2300: *-*-*) ;;
2301: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2302: esac
2303: build=$ac_cv_build
2304: ac_save_IFS=$IFS; IFS='-'
2305: set x $ac_cv_build
2306: shift
2307: build_cpu=$1
2308: build_vendor=$2
2309: shift; shift
2310: # Remember, the first character of IFS is used to create $*,
2311: # except with old shells:
2312: build_os=$*
2313: IFS=$ac_save_IFS
2314: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2315:
2316:
2317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2318: $as_echo_n "checking host system type... " >&6; }
2319: if ${ac_cv_host+:} false; then :
2320: $as_echo_n "(cached) " >&6
2321: else
2322: if test "x$host_alias" = x; then
2323: ac_cv_host=$ac_cv_build
2324: else
2325: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2326: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2327: fi
2328:
2329: fi
2330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2331: $as_echo "$ac_cv_host" >&6; }
2332: case $ac_cv_host in
2333: *-*-*) ;;
2334: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2335: esac
2336: host=$ac_cv_host
2337: ac_save_IFS=$IFS; IFS='-'
2338: set x $ac_cv_host
2339: shift
2340: host_cpu=$1
2341: host_vendor=$2
2342: shift; shift
2343: # Remember, the first character of IFS is used to create $*,
2344: # except with old shells:
2345: host_os=$*
2346: IFS=$ac_save_IFS
2347: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2348:
2349:
2350:
2351:
2352: opt_curses=no
2353: opt_purify=no
2354:
2355:
2356: # Check whether --with-curses was given.
2357: if test "${with_curses+set}" = set; then :
2358: withval=$with_curses; opt_curses=$withval
2359: fi
2360:
2361:
2362: # Check whether --with-purify was given.
2363: if test "${with_purify+set}" = set; then :
2364: withval=$with_purify; opt_purify=$withval
2365: fi
2366:
2367:
2368: if test "$opt_curses" = "yes"; then
2369: prefer_curses=yes
2370: fi
2371:
2372: if test "$opt_purify" = yes; then
2373: PURIFY="purify"
2374: else
2375: PURIFY=
2376: fi
2377:
2378: opt_multibyte=yes
2379: opt_static_libs=yes
2380: opt_shared_libs=yes
2381:
2382: # Check whether --enable-multibyte was given.
2383: if test "${enable_multibyte+set}" = set; then :
2384: enableval=$enable_multibyte; opt_multibyte=$enableval
2385: fi
2386:
2387: # Check whether --enable-shared was given.
2388: if test "${enable_shared+set}" = set; then :
2389: enableval=$enable_shared; opt_shared_libs=$enableval
2390: fi
2391:
2392: # Check whether --enable-static was given.
2393: if test "${enable_static+set}" = set; then :
2394: enableval=$enable_static; opt_static_libs=$enableval
2395: fi
2396:
2397:
2398: if test $opt_multibyte = no; then
2399: $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
2400:
2401: fi
2402:
2403:
2404:
2405: CROSS_COMPILE=
2406: if test "x$cross_compiling" = "xyes"; then
2407: case "${host}" in
2408: *-cygwin*)
2409: cross_cache=${srcdir}/cross-build/cygwin.cache
2410: ;;
2411: *-mingw*)
2412: cross_cache=${srcdir}/cross-build/mingw.cache
2413: ;;
2414: i[3456]86-*-beos*)
2415: cross_cache=${srcdir}/cross-build/x86-beos.cache
2416: ;;
2417: *) echo "configure: cross-compiling for $host is not supported" >&2
2418: ;;
2419: esac
2420: if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2421: echo "loading cross-build cache file ${cross_cache}"
2422: . ${cross_cache}
2423: fi
2424: unset cross_cache
2425: CROSS_COMPILE='-DCROSS_COMPILING'
2426:
2427: fi
2428:
2429: echo ""
2430: echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2431: echo ""
2432:
2433: # We want these before the checks, so the checks can modify their values.
2434: test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2435:
2436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2437: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2438: set x ${MAKE-make}
2439: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2440: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2441: $as_echo_n "(cached) " >&6
2442: else
2443: cat >conftest.make <<\_ACEOF
2444: SHELL = /bin/sh
2445: all:
2446: @echo '@@@%%%=$(MAKE)=@@@%%%'
2447: _ACEOF
2448: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2449: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2450: *@@@%%%=?*=@@@%%%*)
2451: eval ac_cv_prog_make_${ac_make}_set=yes;;
2452: *)
2453: eval ac_cv_prog_make_${ac_make}_set=no;;
2454: esac
2455: rm -f conftest.make
2456: fi
2457: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459: $as_echo "yes" >&6; }
2460: SET_MAKE=
2461: else
2462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463: $as_echo "no" >&6; }
2464: SET_MAKE="MAKE=${MAKE-make}"
2465: fi
2466:
2467: ac_ext=c
2468: ac_cpp='$CPP $CPPFLAGS'
2469: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472: if test -n "$ac_tool_prefix"; then
2473: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476: $as_echo_n "checking for $ac_word... " >&6; }
2477: if ${ac_cv_prog_CC+:} false; then :
2478: $as_echo_n "(cached) " >&6
2479: else
2480: if test -n "$CC"; then
2481: ac_cv_prog_CC="$CC" # Let the user override the test.
2482: else
2483: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484: for as_dir in $PATH
2485: do
2486: IFS=$as_save_IFS
2487: test -z "$as_dir" && as_dir=.
2488: for ac_exec_ext in '' $ac_executable_extensions; do
2489: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2491: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492: break 2
2493: fi
2494: done
2495: done
2496: IFS=$as_save_IFS
2497:
2498: fi
2499: fi
2500: CC=$ac_cv_prog_CC
2501: if test -n "$CC"; then
2502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2503: $as_echo "$CC" >&6; }
2504: else
2505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506: $as_echo "no" >&6; }
2507: fi
2508:
2509:
2510: fi
2511: if test -z "$ac_cv_prog_CC"; then
2512: ac_ct_CC=$CC
2513: # Extract the first word of "gcc", so it can be a program name with args.
2514: set dummy gcc; ac_word=$2
2515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516: $as_echo_n "checking for $ac_word... " >&6; }
2517: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2518: $as_echo_n "(cached) " >&6
2519: else
2520: if test -n "$ac_ct_CC"; then
2521: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522: else
2523: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524: for as_dir in $PATH
2525: do
2526: IFS=$as_save_IFS
2527: test -z "$as_dir" && as_dir=.
2528: for ac_exec_ext in '' $ac_executable_extensions; do
2529: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530: ac_cv_prog_ac_ct_CC="gcc"
2531: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532: break 2
2533: fi
2534: done
2535: done
2536: IFS=$as_save_IFS
2537:
2538: fi
2539: fi
2540: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541: if test -n "$ac_ct_CC"; then
2542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2543: $as_echo "$ac_ct_CC" >&6; }
2544: else
2545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546: $as_echo "no" >&6; }
2547: fi
2548:
2549: if test "x$ac_ct_CC" = x; then
2550: CC=""
2551: else
2552: case $cross_compiling:$ac_tool_warned in
2553: yes:)
2554: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556: ac_tool_warned=yes ;;
2557: esac
2558: CC=$ac_ct_CC
2559: fi
2560: else
2561: CC="$ac_cv_prog_CC"
2562: fi
2563:
2564: if test -z "$CC"; then
2565: if test -n "$ac_tool_prefix"; then
2566: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2567: set dummy ${ac_tool_prefix}cc; ac_word=$2
2568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569: $as_echo_n "checking for $ac_word... " >&6; }
2570: if ${ac_cv_prog_CC+:} false; then :
2571: $as_echo_n "(cached) " >&6
2572: else
2573: if test -n "$CC"; then
2574: ac_cv_prog_CC="$CC" # Let the user override the test.
2575: else
2576: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577: for as_dir in $PATH
2578: do
2579: IFS=$as_save_IFS
2580: test -z "$as_dir" && as_dir=.
2581: for ac_exec_ext in '' $ac_executable_extensions; do
2582: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583: ac_cv_prog_CC="${ac_tool_prefix}cc"
2584: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585: break 2
2586: fi
2587: done
2588: done
2589: IFS=$as_save_IFS
2590:
2591: fi
2592: fi
2593: CC=$ac_cv_prog_CC
2594: if test -n "$CC"; then
2595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2596: $as_echo "$CC" >&6; }
2597: else
2598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599: $as_echo "no" >&6; }
2600: fi
2601:
2602:
2603: fi
2604: fi
2605: if test -z "$CC"; then
2606: # Extract the first word of "cc", so it can be a program name with args.
2607: set dummy cc; ac_word=$2
2608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609: $as_echo_n "checking for $ac_word... " >&6; }
2610: if ${ac_cv_prog_CC+:} false; then :
2611: $as_echo_n "(cached) " >&6
2612: else
2613: if test -n "$CC"; then
2614: ac_cv_prog_CC="$CC" # Let the user override the test.
2615: else
2616: ac_prog_rejected=no
2617: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618: for as_dir in $PATH
2619: do
2620: IFS=$as_save_IFS
2621: test -z "$as_dir" && as_dir=.
2622: for ac_exec_ext in '' $ac_executable_extensions; do
2623: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2625: ac_prog_rejected=yes
2626: continue
2627: fi
2628: ac_cv_prog_CC="cc"
2629: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630: break 2
2631: fi
2632: done
2633: done
2634: IFS=$as_save_IFS
2635:
2636: if test $ac_prog_rejected = yes; then
2637: # We found a bogon in the path, so make sure we never use it.
2638: set dummy $ac_cv_prog_CC
2639: shift
2640: if test $# != 0; then
2641: # We chose a different compiler from the bogus one.
2642: # However, it has the same basename, so the bogon will be chosen
2643: # first if we set CC to just the basename; use the full file name.
2644: shift
2645: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2646: fi
2647: fi
2648: fi
2649: fi
2650: CC=$ac_cv_prog_CC
2651: if test -n "$CC"; then
2652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653: $as_echo "$CC" >&6; }
2654: else
2655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656: $as_echo "no" >&6; }
2657: fi
2658:
2659:
2660: fi
2661: if test -z "$CC"; then
2662: if test -n "$ac_tool_prefix"; then
2663: for ac_prog in cl.exe
2664: do
2665: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2666: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668: $as_echo_n "checking for $ac_word... " >&6; }
2669: if ${ac_cv_prog_CC+:} false; then :
2670: $as_echo_n "(cached) " >&6
2671: else
2672: if test -n "$CC"; then
2673: ac_cv_prog_CC="$CC" # Let the user override the test.
2674: else
2675: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676: for as_dir in $PATH
2677: do
2678: IFS=$as_save_IFS
2679: test -z "$as_dir" && as_dir=.
2680: for ac_exec_ext in '' $ac_executable_extensions; do
2681: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2683: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684: break 2
2685: fi
2686: done
2687: done
2688: IFS=$as_save_IFS
2689:
2690: fi
2691: fi
2692: CC=$ac_cv_prog_CC
2693: if test -n "$CC"; then
2694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695: $as_echo "$CC" >&6; }
2696: else
2697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698: $as_echo "no" >&6; }
2699: fi
2700:
2701:
2702: test -n "$CC" && break
2703: done
2704: fi
2705: if test -z "$CC"; then
2706: ac_ct_CC=$CC
2707: for ac_prog in cl.exe
2708: do
2709: # Extract the first word of "$ac_prog", so it can be a program name with args.
2710: set dummy $ac_prog; ac_word=$2
2711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712: $as_echo_n "checking for $ac_word... " >&6; }
2713: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2714: $as_echo_n "(cached) " >&6
2715: else
2716: if test -n "$ac_ct_CC"; then
2717: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718: else
2719: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720: for as_dir in $PATH
2721: do
2722: IFS=$as_save_IFS
2723: test -z "$as_dir" && as_dir=.
2724: for ac_exec_ext in '' $ac_executable_extensions; do
2725: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726: ac_cv_prog_ac_ct_CC="$ac_prog"
2727: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728: break 2
2729: fi
2730: done
2731: done
2732: IFS=$as_save_IFS
2733:
2734: fi
2735: fi
2736: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737: if test -n "$ac_ct_CC"; then
2738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2739: $as_echo "$ac_ct_CC" >&6; }
2740: else
2741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742: $as_echo "no" >&6; }
2743: fi
2744:
2745:
2746: test -n "$ac_ct_CC" && break
2747: done
2748:
2749: if test "x$ac_ct_CC" = x; then
2750: CC=""
2751: else
2752: case $cross_compiling:$ac_tool_warned in
2753: yes:)
2754: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756: ac_tool_warned=yes ;;
2757: esac
2758: CC=$ac_ct_CC
2759: fi
2760: fi
2761:
2762: fi
2763:
2764:
2765: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767: as_fn_error $? "no acceptable C compiler found in \$PATH
2768: See \`config.log' for more details" "$LINENO" 5; }
2769:
2770: # Provide some information about the compiler.
2771: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2772: set X $ac_compile
2773: ac_compiler=$2
2774: for ac_option in --version -v -V -qversion; do
2775: { { ac_try="$ac_compiler $ac_option >&5"
2776: case "(($ac_try" in
2777: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778: *) ac_try_echo=$ac_try;;
2779: esac
2780: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781: $as_echo "$ac_try_echo"; } >&5
2782: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2783: ac_status=$?
2784: if test -s conftest.err; then
2785: sed '10a\
2786: ... rest of stderr output deleted ...
2787: 10q' conftest.err >conftest.er1
2788: cat conftest.er1 >&5
2789: fi
2790: rm -f conftest.er1 conftest.err
2791: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792: test $ac_status = 0; }
2793: done
2794:
2795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796: /* end confdefs.h. */
2797:
2798: int
2799: main ()
2800: {
2801:
2802: ;
2803: return 0;
2804: }
2805: _ACEOF
2806: ac_clean_files_save=$ac_clean_files
2807: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2808: # Try to create an executable without -o first, disregard a.out.
2809: # It will help us diagnose broken compilers, and finding out an intuition
2810: # of exeext.
2811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2812: $as_echo_n "checking whether the C compiler works... " >&6; }
2813: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2814:
2815: # The possible output files:
2816: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2817:
2818: ac_rmfiles=
2819: for ac_file in $ac_files
2820: do
2821: case $ac_file in
2822: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2823: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2824: esac
2825: done
2826: rm -f $ac_rmfiles
2827:
2828: if { { ac_try="$ac_link_default"
2829: case "(($ac_try" in
2830: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831: *) ac_try_echo=$ac_try;;
2832: esac
2833: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834: $as_echo "$ac_try_echo"; } >&5
2835: (eval "$ac_link_default") 2>&5
2836: ac_status=$?
2837: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838: test $ac_status = 0; }; then :
2839: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2840: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2841: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2842: # so that the user can short-circuit this test for compilers unknown to
2843: # Autoconf.
2844: for ac_file in $ac_files ''
2845: do
2846: test -f "$ac_file" || continue
2847: case $ac_file in
2848: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2849: ;;
2850: [ab].out )
2851: # We found the default executable, but exeext='' is most
2852: # certainly right.
2853: break;;
2854: *.* )
2855: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2856: then :; else
2857: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858: fi
2859: # We set ac_cv_exeext here because the later test for it is not
2860: # safe: cross compilers may not add the suffix if given an `-o'
2861: # argument, so we may need to know it at that point already.
2862: # Even if this section looks crufty: it has the advantage of
2863: # actually working.
2864: break;;
2865: * )
2866: break;;
2867: esac
2868: done
2869: test "$ac_cv_exeext" = no && ac_cv_exeext=
2870:
2871: else
2872: ac_file=''
2873: fi
2874: if test -z "$ac_file"; then :
2875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876: $as_echo "no" >&6; }
2877: $as_echo "$as_me: failed program was:" >&5
2878: sed 's/^/| /' conftest.$ac_ext >&5
2879:
2880: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882: as_fn_error 77 "C compiler cannot create executables
2883: See \`config.log' for more details" "$LINENO" 5; }
2884: else
2885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886: $as_echo "yes" >&6; }
2887: fi
2888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2889: $as_echo_n "checking for C compiler default output file name... " >&6; }
2890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2891: $as_echo "$ac_file" >&6; }
2892: ac_exeext=$ac_cv_exeext
2893:
2894: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2895: ac_clean_files=$ac_clean_files_save
2896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2897: $as_echo_n "checking for suffix of executables... " >&6; }
2898: if { { ac_try="$ac_link"
2899: case "(($ac_try" in
2900: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901: *) ac_try_echo=$ac_try;;
2902: esac
2903: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904: $as_echo "$ac_try_echo"; } >&5
2905: (eval "$ac_link") 2>&5
2906: ac_status=$?
2907: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908: test $ac_status = 0; }; then :
2909: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2910: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2911: # work properly (i.e., refer to `conftest.exe'), while it won't with
2912: # `rm'.
2913: for ac_file in conftest.exe conftest conftest.*; do
2914: test -f "$ac_file" || continue
2915: case $ac_file in
2916: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918: break;;
2919: * ) break;;
2920: esac
2921: done
2922: else
2923: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2926: See \`config.log' for more details" "$LINENO" 5; }
2927: fi
2928: rm -f conftest conftest$ac_cv_exeext
2929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2930: $as_echo "$ac_cv_exeext" >&6; }
2931:
2932: rm -f conftest.$ac_ext
2933: EXEEXT=$ac_cv_exeext
2934: ac_exeext=$EXEEXT
2935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936: /* end confdefs.h. */
2937: #include <stdio.h>
2938: int
2939: main ()
2940: {
2941: FILE *f = fopen ("conftest.out", "w");
2942: return ferror (f) || fclose (f) != 0;
2943:
2944: ;
2945: return 0;
2946: }
2947: _ACEOF
2948: ac_clean_files="$ac_clean_files conftest.out"
2949: # Check that the compiler produces executables we can run. If not, either
2950: # the compiler is broken, or we cross compile.
2951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2952: $as_echo_n "checking whether we are cross compiling... " >&6; }
2953: if test "$cross_compiling" != yes; then
2954: { { ac_try="$ac_link"
2955: case "(($ac_try" in
2956: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957: *) ac_try_echo=$ac_try;;
2958: esac
2959: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960: $as_echo "$ac_try_echo"; } >&5
2961: (eval "$ac_link") 2>&5
2962: ac_status=$?
2963: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964: test $ac_status = 0; }
2965: if { ac_try='./conftest$ac_cv_exeext'
2966: { { case "(($ac_try" in
2967: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968: *) ac_try_echo=$ac_try;;
2969: esac
2970: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971: $as_echo "$ac_try_echo"; } >&5
2972: (eval "$ac_try") 2>&5
2973: ac_status=$?
2974: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975: test $ac_status = 0; }; }; then
2976: cross_compiling=no
2977: else
2978: if test "$cross_compiling" = maybe; then
2979: cross_compiling=yes
2980: else
2981: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983: as_fn_error $? "cannot run C compiled programs.
2984: If you meant to cross compile, use \`--host'.
2985: See \`config.log' for more details" "$LINENO" 5; }
2986: fi
2987: fi
2988: fi
2989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2990: $as_echo "$cross_compiling" >&6; }
2991:
2992: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2993: ac_clean_files=$ac_clean_files_save
2994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2995: $as_echo_n "checking for suffix of object files... " >&6; }
2996: if ${ac_cv_objext+:} false; then :
2997: $as_echo_n "(cached) " >&6
2998: else
2999: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000: /* end confdefs.h. */
3001:
3002: int
3003: main ()
3004: {
3005:
3006: ;
3007: return 0;
3008: }
3009: _ACEOF
3010: rm -f conftest.o conftest.obj
3011: if { { ac_try="$ac_compile"
3012: case "(($ac_try" in
3013: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014: *) ac_try_echo=$ac_try;;
3015: esac
3016: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017: $as_echo "$ac_try_echo"; } >&5
3018: (eval "$ac_compile") 2>&5
3019: ac_status=$?
3020: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021: test $ac_status = 0; }; then :
3022: for ac_file in conftest.o conftest.obj conftest.*; do
3023: test -f "$ac_file" || continue;
3024: case $ac_file in
3025: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3026: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3027: break;;
3028: esac
3029: done
3030: else
3031: $as_echo "$as_me: failed program was:" >&5
3032: sed 's/^/| /' conftest.$ac_ext >&5
3033:
3034: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036: as_fn_error $? "cannot compute suffix of object files: cannot compile
3037: See \`config.log' for more details" "$LINENO" 5; }
3038: fi
3039: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3040: fi
3041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3042: $as_echo "$ac_cv_objext" >&6; }
3043: OBJEXT=$ac_cv_objext
3044: ac_objext=$OBJEXT
3045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3046: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3047: if ${ac_cv_c_compiler_gnu+:} false; then :
3048: $as_echo_n "(cached) " >&6
3049: else
3050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051: /* end confdefs.h. */
3052:
3053: int
3054: main ()
3055: {
3056: #ifndef __GNUC__
3057: choke me
3058: #endif
3059:
3060: ;
3061: return 0;
3062: }
3063: _ACEOF
3064: if ac_fn_c_try_compile "$LINENO"; then :
3065: ac_compiler_gnu=yes
3066: else
3067: ac_compiler_gnu=no
3068: fi
3069: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3071:
3072: fi
3073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3074: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3075: if test $ac_compiler_gnu = yes; then
3076: GCC=yes
3077: else
3078: GCC=
3079: fi
3080: ac_test_CFLAGS=${CFLAGS+set}
3081: ac_save_CFLAGS=$CFLAGS
3082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3083: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3084: if ${ac_cv_prog_cc_g+:} false; then :
3085: $as_echo_n "(cached) " >&6
3086: else
3087: ac_save_c_werror_flag=$ac_c_werror_flag
3088: ac_c_werror_flag=yes
3089: ac_cv_prog_cc_g=no
3090: CFLAGS="-g"
3091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092: /* end confdefs.h. */
3093:
3094: int
3095: main ()
3096: {
3097:
3098: ;
3099: return 0;
3100: }
3101: _ACEOF
3102: if ac_fn_c_try_compile "$LINENO"; then :
3103: ac_cv_prog_cc_g=yes
3104: else
3105: CFLAGS=""
3106: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107: /* end confdefs.h. */
3108:
3109: int
3110: main ()
3111: {
3112:
3113: ;
3114: return 0;
3115: }
3116: _ACEOF
3117: if ac_fn_c_try_compile "$LINENO"; then :
3118:
3119: else
3120: ac_c_werror_flag=$ac_save_c_werror_flag
3121: CFLAGS="-g"
3122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123: /* end confdefs.h. */
3124:
3125: int
3126: main ()
3127: {
3128:
3129: ;
3130: return 0;
3131: }
3132: _ACEOF
3133: if ac_fn_c_try_compile "$LINENO"; then :
3134: ac_cv_prog_cc_g=yes
3135: fi
3136: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137: fi
3138: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139: fi
3140: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141: ac_c_werror_flag=$ac_save_c_werror_flag
3142: fi
3143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3144: $as_echo "$ac_cv_prog_cc_g" >&6; }
3145: if test "$ac_test_CFLAGS" = set; then
3146: CFLAGS=$ac_save_CFLAGS
3147: elif test $ac_cv_prog_cc_g = yes; then
3148: if test "$GCC" = yes; then
3149: CFLAGS="-g -O2"
3150: else
3151: CFLAGS="-g"
3152: fi
3153: else
3154: if test "$GCC" = yes; then
3155: CFLAGS="-O2"
3156: else
3157: CFLAGS=
3158: fi
3159: fi
3160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3161: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3162: if ${ac_cv_prog_cc_c89+:} false; then :
3163: $as_echo_n "(cached) " >&6
3164: else
3165: ac_cv_prog_cc_c89=no
3166: ac_save_CC=$CC
3167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168: /* end confdefs.h. */
3169: #include <stdarg.h>
3170: #include <stdio.h>
3171: #include <sys/types.h>
3172: #include <sys/stat.h>
3173: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3174: struct buf { int x; };
3175: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3176: static char *e (p, i)
3177: char **p;
3178: int i;
3179: {
3180: return p[i];
3181: }
3182: static char *f (char * (*g) (char **, int), char **p, ...)
3183: {
3184: char *s;
3185: va_list v;
3186: va_start (v,p);
3187: s = g (p, va_arg (v,int));
3188: va_end (v);
3189: return s;
3190: }
3191:
3192: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3193: function prototypes and stuff, but not '\xHH' hex character constants.
3194: These don't provoke an error unfortunately, instead are silently treated
3195: as 'x'. The following induces an error, until -std is added to get
3196: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3197: array size at least. It's necessary to write '\x00'==0 to get something
3198: that's true only with -std. */
3199: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200:
3201: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3202: inside strings and character constants. */
3203: #define FOO(x) 'x'
3204: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205:
3206: int test (int i, double x);
3207: struct s1 {int (*f) (int a);};
3208: struct s2 {int (*f) (double a);};
3209: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3210: int argc;
3211: char **argv;
3212: int
3213: main ()
3214: {
3215: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216: ;
3217: return 0;
3218: }
3219: _ACEOF
3220: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3221: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222: do
3223: CC="$ac_save_CC $ac_arg"
3224: if ac_fn_c_try_compile "$LINENO"; then :
3225: ac_cv_prog_cc_c89=$ac_arg
3226: fi
3227: rm -f core conftest.err conftest.$ac_objext
3228: test "x$ac_cv_prog_cc_c89" != "xno" && break
3229: done
3230: rm -f conftest.$ac_ext
3231: CC=$ac_save_CC
3232:
3233: fi
3234: # AC_CACHE_VAL
3235: case "x$ac_cv_prog_cc_c89" in
3236: x)
3237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3238: $as_echo "none needed" >&6; } ;;
3239: xno)
3240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3241: $as_echo "unsupported" >&6; } ;;
3242: *)
3243: CC="$CC $ac_cv_prog_cc_c89"
3244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3245: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3246: esac
3247: if test "x$ac_cv_prog_cc_c89" != xno; then :
3248:
3249: fi
3250:
3251: ac_ext=c
3252: ac_cpp='$CPP $CPPFLAGS'
3253: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256:
3257:
3258: ac_ext=c
3259: ac_cpp='$CPP $CPPFLAGS'
3260: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3264: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3265: # On Suns, sometimes $CPP names a directory.
3266: if test -n "$CPP" && test -d "$CPP"; then
3267: CPP=
3268: fi
3269: if test -z "$CPP"; then
3270: if ${ac_cv_prog_CPP+:} false; then :
3271: $as_echo_n "(cached) " >&6
3272: else
3273: # Double quotes because CPP needs to be expanded
3274: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3275: do
3276: ac_preproc_ok=false
3277: for ac_c_preproc_warn_flag in '' yes
3278: do
3279: # Use a header file that comes with gcc, so configuring glibc
3280: # with a fresh cross-compiler works.
3281: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3282: # <limits.h> exists even on freestanding compilers.
3283: # On the NeXT, cc -E runs the code through the compiler's parser,
3284: # not just through cpp. "Syntax error" is here to catch this case.
3285: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286: /* end confdefs.h. */
3287: #ifdef __STDC__
3288: # include <limits.h>
3289: #else
3290: # include <assert.h>
3291: #endif
3292: Syntax error
3293: _ACEOF
3294: if ac_fn_c_try_cpp "$LINENO"; then :
3295:
3296: else
3297: # Broken: fails on valid input.
3298: continue
3299: fi
3300: rm -f conftest.err conftest.i conftest.$ac_ext
3301:
3302: # OK, works on sane cases. Now check whether nonexistent headers
3303: # can be detected and how.
3304: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305: /* end confdefs.h. */
3306: #include <ac_nonexistent.h>
3307: _ACEOF
3308: if ac_fn_c_try_cpp "$LINENO"; then :
3309: # Broken: success on invalid input.
3310: continue
3311: else
3312: # Passes both tests.
3313: ac_preproc_ok=:
3314: break
3315: fi
3316: rm -f conftest.err conftest.i conftest.$ac_ext
3317:
3318: done
3319: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320: rm -f conftest.i conftest.err conftest.$ac_ext
3321: if $ac_preproc_ok; then :
3322: break
3323: fi
3324:
3325: done
3326: ac_cv_prog_CPP=$CPP
3327:
3328: fi
3329: CPP=$ac_cv_prog_CPP
3330: else
3331: ac_cv_prog_CPP=$CPP
3332: fi
3333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3334: $as_echo "$CPP" >&6; }
3335: ac_preproc_ok=false
3336: for ac_c_preproc_warn_flag in '' yes
3337: do
3338: # Use a header file that comes with gcc, so configuring glibc
3339: # with a fresh cross-compiler works.
3340: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341: # <limits.h> exists even on freestanding compilers.
3342: # On the NeXT, cc -E runs the code through the compiler's parser,
3343: # not just through cpp. "Syntax error" is here to catch this case.
3344: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345: /* end confdefs.h. */
3346: #ifdef __STDC__
3347: # include <limits.h>
3348: #else
3349: # include <assert.h>
3350: #endif
3351: Syntax error
3352: _ACEOF
3353: if ac_fn_c_try_cpp "$LINENO"; then :
3354:
3355: else
3356: # Broken: fails on valid input.
3357: continue
3358: fi
3359: rm -f conftest.err conftest.i conftest.$ac_ext
3360:
3361: # OK, works on sane cases. Now check whether nonexistent headers
3362: # can be detected and how.
3363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364: /* end confdefs.h. */
3365: #include <ac_nonexistent.h>
3366: _ACEOF
3367: if ac_fn_c_try_cpp "$LINENO"; then :
3368: # Broken: success on invalid input.
3369: continue
3370: else
3371: # Passes both tests.
3372: ac_preproc_ok=:
3373: break
3374: fi
3375: rm -f conftest.err conftest.i conftest.$ac_ext
3376:
3377: done
3378: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379: rm -f conftest.i conftest.err conftest.$ac_ext
3380: if $ac_preproc_ok; then :
3381:
3382: else
3383: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3386: See \`config.log' for more details" "$LINENO" 5; }
3387: fi
3388:
3389: ac_ext=c
3390: ac_cpp='$CPP $CPPFLAGS'
3391: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394:
3395:
3396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3397: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3398: if ${ac_cv_path_GREP+:} false; then :
3399: $as_echo_n "(cached) " >&6
3400: else
3401: if test -z "$GREP"; then
3402: ac_path_GREP_found=false
3403: # Loop through the user's path and test for each of PROGNAME-LIST
3404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3406: do
3407: IFS=$as_save_IFS
3408: test -z "$as_dir" && as_dir=.
3409: for ac_prog in grep ggrep; do
3410: for ac_exec_ext in '' $ac_executable_extensions; do
3411: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3412: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3413: # Check for GNU ac_path_GREP and select it if it is found.
3414: # Check for GNU $ac_path_GREP
3415: case `"$ac_path_GREP" --version 2>&1` in
3416: *GNU*)
3417: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3418: *)
3419: ac_count=0
3420: $as_echo_n 0123456789 >"conftest.in"
3421: while :
3422: do
3423: cat "conftest.in" "conftest.in" >"conftest.tmp"
3424: mv "conftest.tmp" "conftest.in"
3425: cp "conftest.in" "conftest.nl"
3426: $as_echo 'GREP' >> "conftest.nl"
3427: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3428: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3429: as_fn_arith $ac_count + 1 && ac_count=$as_val
3430: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3431: # Best one so far, save it but keep looking for a better one
3432: ac_cv_path_GREP="$ac_path_GREP"
3433: ac_path_GREP_max=$ac_count
3434: fi
3435: # 10*(2^10) chars as input seems more than enough
3436: test $ac_count -gt 10 && break
3437: done
3438: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3439: esac
3440:
3441: $ac_path_GREP_found && break 3
3442: done
3443: done
3444: done
3445: IFS=$as_save_IFS
3446: if test -z "$ac_cv_path_GREP"; then
3447: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3448: fi
3449: else
3450: ac_cv_path_GREP=$GREP
3451: fi
3452:
3453: fi
3454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3455: $as_echo "$ac_cv_path_GREP" >&6; }
3456: GREP="$ac_cv_path_GREP"
3457:
3458:
3459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3460: $as_echo_n "checking for egrep... " >&6; }
3461: if ${ac_cv_path_EGREP+:} false; then :
3462: $as_echo_n "(cached) " >&6
3463: else
3464: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3465: then ac_cv_path_EGREP="$GREP -E"
3466: else
3467: if test -z "$EGREP"; then
3468: ac_path_EGREP_found=false
3469: # Loop through the user's path and test for each of PROGNAME-LIST
3470: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472: do
3473: IFS=$as_save_IFS
3474: test -z "$as_dir" && as_dir=.
3475: for ac_prog in egrep; do
3476: for ac_exec_ext in '' $ac_executable_extensions; do
3477: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3478: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3479: # Check for GNU ac_path_EGREP and select it if it is found.
3480: # Check for GNU $ac_path_EGREP
3481: case `"$ac_path_EGREP" --version 2>&1` in
3482: *GNU*)
3483: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3484: *)
3485: ac_count=0
3486: $as_echo_n 0123456789 >"conftest.in"
3487: while :
3488: do
3489: cat "conftest.in" "conftest.in" >"conftest.tmp"
3490: mv "conftest.tmp" "conftest.in"
3491: cp "conftest.in" "conftest.nl"
3492: $as_echo 'EGREP' >> "conftest.nl"
3493: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3494: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3495: as_fn_arith $ac_count + 1 && ac_count=$as_val
3496: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3497: # Best one so far, save it but keep looking for a better one
3498: ac_cv_path_EGREP="$ac_path_EGREP"
3499: ac_path_EGREP_max=$ac_count
3500: fi
3501: # 10*(2^10) chars as input seems more than enough
3502: test $ac_count -gt 10 && break
3503: done
3504: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3505: esac
3506:
3507: $ac_path_EGREP_found && break 3
3508: done
3509: done
3510: done
3511: IFS=$as_save_IFS
3512: if test -z "$ac_cv_path_EGREP"; then
3513: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3514: fi
3515: else
3516: ac_cv_path_EGREP=$EGREP
3517: fi
3518:
3519: fi
3520: fi
3521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3522: $as_echo "$ac_cv_path_EGREP" >&6; }
3523: EGREP="$ac_cv_path_EGREP"
3524:
3525:
3526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3527: $as_echo_n "checking for ANSI C header files... " >&6; }
3528: if ${ac_cv_header_stdc+:} false; then :
3529: $as_echo_n "(cached) " >&6
3530: else
3531: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532: /* end confdefs.h. */
3533: #include <stdlib.h>
3534: #include <stdarg.h>
3535: #include <string.h>
3536: #include <float.h>
3537:
3538: int
3539: main ()
3540: {
3541:
3542: ;
3543: return 0;
3544: }
3545: _ACEOF
3546: if ac_fn_c_try_compile "$LINENO"; then :
3547: ac_cv_header_stdc=yes
3548: else
3549: ac_cv_header_stdc=no
3550: fi
3551: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552:
3553: if test $ac_cv_header_stdc = yes; then
3554: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556: /* end confdefs.h. */
3557: #include <string.h>
3558:
3559: _ACEOF
3560: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561: $EGREP "memchr" >/dev/null 2>&1; then :
3562:
3563: else
3564: ac_cv_header_stdc=no
3565: fi
3566: rm -f conftest*
3567:
3568: fi
3569:
3570: if test $ac_cv_header_stdc = yes; then
3571: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3572: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573: /* end confdefs.h. */
3574: #include <stdlib.h>
3575:
3576: _ACEOF
3577: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578: $EGREP "free" >/dev/null 2>&1; then :
3579:
3580: else
3581: ac_cv_header_stdc=no
3582: fi
3583: rm -f conftest*
3584:
3585: fi
3586:
3587: if test $ac_cv_header_stdc = yes; then
3588: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3589: if test "$cross_compiling" = yes; then :
3590: :
3591: else
3592: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593: /* end confdefs.h. */
3594: #include <ctype.h>
3595: #include <stdlib.h>
3596: #if ((' ' & 0x0FF) == 0x020)
3597: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3598: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599: #else
3600: # define ISLOWER(c) \
3601: (('a' <= (c) && (c) <= 'i') \
3602: || ('j' <= (c) && (c) <= 'r') \
3603: || ('s' <= (c) && (c) <= 'z'))
3604: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3605: #endif
3606:
3607: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3608: int
3609: main ()
3610: {
3611: int i;
3612: for (i = 0; i < 256; i++)
3613: if (XOR (islower (i), ISLOWER (i))
3614: || toupper (i) != TOUPPER (i))
3615: return 2;
3616: return 0;
3617: }
3618: _ACEOF
3619: if ac_fn_c_try_run "$LINENO"; then :
3620:
3621: else
3622: ac_cv_header_stdc=no
3623: fi
3624: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3625: conftest.$ac_objext conftest.beam conftest.$ac_ext
3626: fi
3627:
3628: fi
3629: fi
3630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3631: $as_echo "$ac_cv_header_stdc" >&6; }
3632: if test $ac_cv_header_stdc = yes; then
3633:
3634: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3635:
3636: fi
3637:
3638: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3639: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3640: inttypes.h stdint.h unistd.h
3641: do :
3642: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3643: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3644: "
3645: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3646: cat >>confdefs.h <<_ACEOF
3647: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3648: _ACEOF
3649:
3650: fi
3651:
3652: done
3653:
3654:
3655:
3656: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3657: if test "x$ac_cv_header_minix_config_h" = xyes; then :
3658: MINIX=yes
3659: else
3660: MINIX=
3661: fi
3662:
3663:
3664: if test "$MINIX" = yes; then
3665:
3666: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3667:
3668:
3669: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3670:
3671:
3672: $as_echo "#define _MINIX 1" >>confdefs.h
3673:
3674: fi
3675:
3676:
3677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3678: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3679: if ${ac_cv_safe_to_define___extensions__+:} false; then :
3680: $as_echo_n "(cached) " >&6
3681: else
3682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683: /* end confdefs.h. */
3684:
3685: # define __EXTENSIONS__ 1
3686: $ac_includes_default
3687: int
3688: main ()
3689: {
3690:
3691: ;
3692: return 0;
3693: }
3694: _ACEOF
3695: if ac_fn_c_try_compile "$LINENO"; then :
3696: ac_cv_safe_to_define___extensions__=yes
3697: else
3698: ac_cv_safe_to_define___extensions__=no
3699: fi
3700: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701: fi
3702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3703: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3704: test $ac_cv_safe_to_define___extensions__ = yes &&
3705: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3706:
3707: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3708:
3709: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3710:
3711: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3712:
3713: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3714:
3715:
3716:
3717:
3718: # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3719: test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
3720:
3721: if test $ac_cv_c_compiler_gnu = yes; then
3722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3723: $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3724: if ${ac_cv_prog_gcc_traditional+:} false; then :
3725: $as_echo_n "(cached) " >&6
3726: else
3727: ac_pattern="Autoconf.*'x'"
3728: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729: /* end confdefs.h. */
3730: #include <sgtty.h>
3731: Autoconf TIOCGETP
3732: _ACEOF
3733: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3735: ac_cv_prog_gcc_traditional=yes
3736: else
3737: ac_cv_prog_gcc_traditional=no
3738: fi
3739: rm -f conftest*
3740:
3741:
3742: if test $ac_cv_prog_gcc_traditional = no; then
3743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744: /* end confdefs.h. */
3745: #include <termio.h>
3746: Autoconf TCGETA
3747: _ACEOF
3748: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3750: ac_cv_prog_gcc_traditional=yes
3751: fi
3752: rm -f conftest*
3753:
3754: fi
3755: fi
3756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3757: $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3758: if test $ac_cv_prog_gcc_traditional = yes; then
3759: CC="$CC -traditional"
3760: fi
3761: fi
3762:
3763: # Find a good install program. We prefer a C program (faster),
3764: # so one script is as good as another. But avoid the broken or
3765: # incompatible versions:
3766: # SysV /etc/install, /usr/sbin/install
3767: # SunOS /usr/etc/install
3768: # IRIX /sbin/install
3769: # AIX /bin/install
3770: # AmigaOS /C/install, which installs bootblocks on floppy discs
3771: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3772: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3773: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3774: # OS/2's system install, which has a completely different semantic
3775: # ./install, which can be erroneously created by make from ./install.sh.
3776: # Reject install programs that cannot install multiple files.
3777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3778: $as_echo_n "checking for a BSD-compatible install... " >&6; }
3779: if test -z "$INSTALL"; then
3780: if ${ac_cv_path_install+:} false; then :
3781: $as_echo_n "(cached) " >&6
3782: else
3783: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784: for as_dir in $PATH
3785: do
3786: IFS=$as_save_IFS
3787: test -z "$as_dir" && as_dir=.
3788: # Account for people who put trailing slashes in PATH elements.
3789: case $as_dir/ in #((
3790: ./ | .// | /[cC]/* | \
3791: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3792: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3793: /usr/ucb/* ) ;;
3794: *)
3795: # OSF1 and SCO ODT 3.0 have their own names for install.
3796: # Don't use installbsd from OSF since it installs stuff as root
3797: # by default.
3798: for ac_prog in ginstall scoinst install; do
3799: for ac_exec_ext in '' $ac_executable_extensions; do
3800: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3801: if test $ac_prog = install &&
3802: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803: # AIX install. It has an incompatible calling convention.
3804: :
3805: elif test $ac_prog = install &&
3806: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3807: # program-specific install script used by HP pwplus--don't use.
3808: :
3809: else
3810: rm -rf conftest.one conftest.two conftest.dir
3811: echo one > conftest.one
3812: echo two > conftest.two
3813: mkdir conftest.dir
3814: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3815: test -s conftest.one && test -s conftest.two &&
3816: test -s conftest.dir/conftest.one &&
3817: test -s conftest.dir/conftest.two
3818: then
3819: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3820: break 3
3821: fi
3822: fi
3823: fi
3824: done
3825: done
3826: ;;
3827: esac
3828:
3829: done
3830: IFS=$as_save_IFS
3831:
3832: rm -rf conftest.one conftest.two conftest.dir
3833:
3834: fi
3835: if test "${ac_cv_path_install+set}" = set; then
3836: INSTALL=$ac_cv_path_install
3837: else
3838: # As a last resort, use the slow shell script. Don't cache a
3839: # value for INSTALL within a source directory, because that will
3840: # break other packages using the cache if that directory is
3841: # removed, or if the value is a relative name.
3842: INSTALL=$ac_install_sh
3843: fi
3844: fi
3845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3846: $as_echo "$INSTALL" >&6; }
3847:
3848: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849: # It thinks the first close brace ends the variable substitution.
3850: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3851:
3852: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3853:
3854: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3855:
3856: if test -n "$ac_tool_prefix"; then
3857: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3858: set dummy ${ac_tool_prefix}ar; ac_word=$2
3859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860: $as_echo_n "checking for $ac_word... " >&6; }
3861: if ${ac_cv_prog_AR+:} false; then :
3862: $as_echo_n "(cached) " >&6
3863: else
3864: if test -n "$AR"; then
3865: ac_cv_prog_AR="$AR" # Let the user override the test.
3866: else
3867: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868: for as_dir in $PATH
3869: do
3870: IFS=$as_save_IFS
3871: test -z "$as_dir" && as_dir=.
3872: for ac_exec_ext in '' $ac_executable_extensions; do
3873: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874: ac_cv_prog_AR="${ac_tool_prefix}ar"
3875: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876: break 2
3877: fi
3878: done
3879: done
3880: IFS=$as_save_IFS
3881:
3882: fi
3883: fi
3884: AR=$ac_cv_prog_AR
3885: if test -n "$AR"; then
3886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3887: $as_echo "$AR" >&6; }
3888: else
3889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890: $as_echo "no" >&6; }
3891: fi
3892:
3893:
3894: fi
3895: if test -z "$ac_cv_prog_AR"; then
3896: ac_ct_AR=$AR
3897: # Extract the first word of "ar", so it can be a program name with args.
3898: set dummy ar; ac_word=$2
3899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900: $as_echo_n "checking for $ac_word... " >&6; }
3901: if ${ac_cv_prog_ac_ct_AR+:} false; then :
3902: $as_echo_n "(cached) " >&6
3903: else
3904: if test -n "$ac_ct_AR"; then
3905: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3906: else
3907: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908: for as_dir in $PATH
3909: do
3910: IFS=$as_save_IFS
3911: test -z "$as_dir" && as_dir=.
3912: for ac_exec_ext in '' $ac_executable_extensions; do
3913: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914: ac_cv_prog_ac_ct_AR="ar"
3915: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916: break 2
3917: fi
3918: done
3919: done
3920: IFS=$as_save_IFS
3921:
3922: fi
3923: fi
3924: ac_ct_AR=$ac_cv_prog_ac_ct_AR
3925: if test -n "$ac_ct_AR"; then
3926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3927: $as_echo "$ac_ct_AR" >&6; }
3928: else
3929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930: $as_echo "no" >&6; }
3931: fi
3932:
3933: if test "x$ac_ct_AR" = x; then
3934: AR=""
3935: else
3936: case $cross_compiling:$ac_tool_warned in
3937: yes:)
3938: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3939: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3940: ac_tool_warned=yes ;;
3941: esac
3942: AR=$ac_ct_AR
3943: fi
3944: else
3945: AR="$ac_cv_prog_AR"
3946: fi
3947:
3948: test -n "$ARFLAGS" || ARFLAGS="cr"
3949: if test -n "$ac_tool_prefix"; then
3950: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3951: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953: $as_echo_n "checking for $ac_word... " >&6; }
3954: if ${ac_cv_prog_RANLIB+:} false; then :
3955: $as_echo_n "(cached) " >&6
3956: else
3957: if test -n "$RANLIB"; then
3958: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3959: else
3960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961: for as_dir in $PATH
3962: do
3963: IFS=$as_save_IFS
3964: test -z "$as_dir" && as_dir=.
3965: for ac_exec_ext in '' $ac_executable_extensions; do
3966: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3968: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969: break 2
3970: fi
3971: done
3972: done
3973: IFS=$as_save_IFS
3974:
3975: fi
3976: fi
3977: RANLIB=$ac_cv_prog_RANLIB
3978: if test -n "$RANLIB"; then
3979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3980: $as_echo "$RANLIB" >&6; }
3981: else
3982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983: $as_echo "no" >&6; }
3984: fi
3985:
3986:
3987: fi
3988: if test -z "$ac_cv_prog_RANLIB"; then
3989: ac_ct_RANLIB=$RANLIB
3990: # Extract the first word of "ranlib", so it can be a program name with args.
3991: set dummy ranlib; ac_word=$2
3992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993: $as_echo_n "checking for $ac_word... " >&6; }
3994: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3995: $as_echo_n "(cached) " >&6
3996: else
3997: if test -n "$ac_ct_RANLIB"; then
3998: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3999: else
4000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001: for as_dir in $PATH
4002: do
4003: IFS=$as_save_IFS
4004: test -z "$as_dir" && as_dir=.
4005: for ac_exec_ext in '' $ac_executable_extensions; do
4006: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007: ac_cv_prog_ac_ct_RANLIB="ranlib"
4008: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009: break 2
4010: fi
4011: done
4012: done
4013: IFS=$as_save_IFS
4014:
4015: fi
4016: fi
4017: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4018: if test -n "$ac_ct_RANLIB"; then
4019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4020: $as_echo "$ac_ct_RANLIB" >&6; }
4021: else
4022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023: $as_echo "no" >&6; }
4024: fi
4025:
4026: if test "x$ac_ct_RANLIB" = x; then
4027: RANLIB=":"
4028: else
4029: case $cross_compiling:$ac_tool_warned in
4030: yes:)
4031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4032: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4033: ac_tool_warned=yes ;;
4034: esac
4035: RANLIB=$ac_ct_RANLIB
4036: fi
4037: else
4038: RANLIB="$ac_cv_prog_RANLIB"
4039: fi
4040:
4041:
4042: MAKE_SHELL=/bin/sh
4043:
4044:
4045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4046: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4047: if ${ac_cv_c_const+:} false; then :
4048: $as_echo_n "(cached) " >&6
4049: else
4050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051: /* end confdefs.h. */
4052:
4053: int
4054: main ()
4055: {
4056: /* FIXME: Include the comments suggested by Paul. */
4057: #ifndef __cplusplus
4058: /* Ultrix mips cc rejects this. */
4059: typedef int charset[2];
4060: const charset cs;
4061: /* SunOS 4.1.1 cc rejects this. */
4062: char const *const *pcpcc;
4063: char **ppc;
4064: /* NEC SVR4.0.2 mips cc rejects this. */
4065: struct point {int x, y;};
4066: static struct point const zero = {0,0};
4067: /* AIX XL C 1.02.0.0 rejects this.
4068: It does not let you subtract one const X* pointer from another in
4069: an arm of an if-expression whose if-part is not a constant
4070: expression */
4071: const char *g = "string";
4072: pcpcc = &g + (g ? g-g : 0);
4073: /* HPUX 7.0 cc rejects these. */
4074: ++pcpcc;
4075: ppc = (char**) pcpcc;
4076: pcpcc = (char const *const *) ppc;
4077: { /* SCO 3.2v4 cc rejects this. */
4078: char *t;
4079: char const *s = 0 ? (char *) 0 : (char const *) 0;
4080:
4081: *t++ = 0;
4082: if (s) return 0;
4083: }
4084: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4085: int x[] = {25, 17};
4086: const int *foo = &x[0];
4087: ++foo;
4088: }
4089: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4090: typedef const int *iptr;
4091: iptr p = 0;
4092: ++p;
4093: }
4094: { /* AIX XL C 1.02.0.0 rejects this saying
4095: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4096: struct s { int j; const int *ap[3]; };
4097: struct s *b; b->j = 5;
4098: }
4099: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4100: const int foo = 10;
4101: if (!foo) return 0;
4102: }
4103: return !cs[0] && !zero.x;
4104: #endif
4105:
4106: ;
4107: return 0;
4108: }
4109: _ACEOF
4110: if ac_fn_c_try_compile "$LINENO"; then :
4111: ac_cv_c_const=yes
4112: else
4113: ac_cv_c_const=no
4114: fi
4115: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116: fi
4117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4118: $as_echo "$ac_cv_c_const" >&6; }
4119: if test $ac_cv_c_const = no; then
4120:
4121: $as_echo "#define const /**/" >>confdefs.h
4122:
4123: fi
4124:
4125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4126: $as_echo_n "checking for function prototypes... " >&6; }
4127: if test "$ac_cv_prog_cc_c89" != no; then
4128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129: $as_echo "yes" >&6; }
4130:
4131: $as_echo "#define PROTOTYPES 1" >>confdefs.h
4132:
4133:
4134: $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4135:
4136: else
4137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138: $as_echo "no" >&6; }
4139: fi
4140:
4141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4142: $as_echo_n "checking whether char is unsigned... " >&6; }
4143: if ${ac_cv_c_char_unsigned+:} false; then :
4144: $as_echo_n "(cached) " >&6
4145: else
4146: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147: /* end confdefs.h. */
4148: $ac_includes_default
4149: int
4150: main ()
4151: {
4152: static int test_array [1 - 2 * !(((char) -1) < 0)];
4153: test_array [0] = 0
4154:
4155: ;
4156: return 0;
4157: }
4158: _ACEOF
4159: if ac_fn_c_try_compile "$LINENO"; then :
4160: ac_cv_c_char_unsigned=no
4161: else
4162: ac_cv_c_char_unsigned=yes
4163: fi
4164: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165: fi
4166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4167: $as_echo "$ac_cv_c_char_unsigned" >&6; }
4168: if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4169: $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
4170:
4171: fi
4172:
4173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4174: $as_echo_n "checking for working volatile... " >&6; }
4175: if ${ac_cv_c_volatile+:} false; then :
4176: $as_echo_n "(cached) " >&6
4177: else
4178: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179: /* end confdefs.h. */
4180:
4181: int
4182: main ()
4183: {
4184:
4185: volatile int x;
4186: int * volatile y = (int *) 0;
4187: return !x && !y;
4188: ;
4189: return 0;
4190: }
4191: _ACEOF
4192: if ac_fn_c_try_compile "$LINENO"; then :
4193: ac_cv_c_volatile=yes
4194: else
4195: ac_cv_c_volatile=no
4196: fi
4197: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198: fi
4199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4200: $as_echo "$ac_cv_c_volatile" >&6; }
4201: if test $ac_cv_c_volatile = no; then
4202:
4203: $as_echo "#define volatile /**/" >>confdefs.h
4204:
4205: fi
4206:
4207:
4208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4209: $as_echo_n "checking return type of signal handlers... " >&6; }
4210: if ${ac_cv_type_signal+:} false; then :
4211: $as_echo_n "(cached) " >&6
4212: else
4213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214: /* end confdefs.h. */
4215: #include <sys/types.h>
4216: #include <signal.h>
4217:
4218: int
4219: main ()
4220: {
4221: return *(signal (0, 0)) (0) == 1;
4222: ;
4223: return 0;
4224: }
4225: _ACEOF
4226: if ac_fn_c_try_compile "$LINENO"; then :
4227: ac_cv_type_signal=int
4228: else
4229: ac_cv_type_signal=void
4230: fi
4231: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232: fi
4233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4234: $as_echo "$ac_cv_type_signal" >&6; }
4235:
4236: cat >>confdefs.h <<_ACEOF
4237: #define RETSIGTYPE $ac_cv_type_signal
4238: _ACEOF
4239:
4240:
4241:
4242: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4243: if test "x$ac_cv_type_size_t" = xyes; then :
4244:
4245: else
4246:
4247: cat >>confdefs.h <<_ACEOF
4248: #define size_t unsigned int
4249: _ACEOF
4250:
4251: fi
4252:
4253: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4254: if test "x$ac_cv_type_ssize_t" = xyes; then :
4255:
4256: else
4257:
4258: cat >>confdefs.h <<_ACEOF
4259: #define ssize_t int
4260: _ACEOF
4261:
4262: fi
4263:
4264:
4265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4266: $as_echo_n "checking for ANSI C header files... " >&6; }
4267: if ${ac_cv_header_stdc+:} false; then :
4268: $as_echo_n "(cached) " >&6
4269: else
4270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271: /* end confdefs.h. */
4272: #include <stdlib.h>
4273: #include <stdarg.h>
4274: #include <string.h>
4275: #include <float.h>
4276:
4277: int
4278: main ()
4279: {
4280:
4281: ;
4282: return 0;
4283: }
4284: _ACEOF
4285: if ac_fn_c_try_compile "$LINENO"; then :
4286: ac_cv_header_stdc=yes
4287: else
4288: ac_cv_header_stdc=no
4289: fi
4290: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291:
4292: if test $ac_cv_header_stdc = yes; then
4293: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295: /* end confdefs.h. */
4296: #include <string.h>
4297:
4298: _ACEOF
4299: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300: $EGREP "memchr" >/dev/null 2>&1; then :
4301:
4302: else
4303: ac_cv_header_stdc=no
4304: fi
4305: rm -f conftest*
4306:
4307: fi
4308:
4309: if test $ac_cv_header_stdc = yes; then
4310: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312: /* end confdefs.h. */
4313: #include <stdlib.h>
4314:
4315: _ACEOF
4316: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317: $EGREP "free" >/dev/null 2>&1; then :
4318:
4319: else
4320: ac_cv_header_stdc=no
4321: fi
4322: rm -f conftest*
4323:
4324: fi
4325:
4326: if test $ac_cv_header_stdc = yes; then
4327: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4328: if test "$cross_compiling" = yes; then :
4329: :
4330: else
4331: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332: /* end confdefs.h. */
4333: #include <ctype.h>
4334: #include <stdlib.h>
4335: #if ((' ' & 0x0FF) == 0x020)
4336: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4337: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4338: #else
4339: # define ISLOWER(c) \
4340: (('a' <= (c) && (c) <= 'i') \
4341: || ('j' <= (c) && (c) <= 'r') \
4342: || ('s' <= (c) && (c) <= 'z'))
4343: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4344: #endif
4345:
4346: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4347: int
4348: main ()
4349: {
4350: int i;
4351: for (i = 0; i < 256; i++)
4352: if (XOR (islower (i), ISLOWER (i))
4353: || toupper (i) != TOUPPER (i))
4354: return 2;
4355: return 0;
4356: }
4357: _ACEOF
4358: if ac_fn_c_try_run "$LINENO"; then :
4359:
4360: else
4361: ac_cv_header_stdc=no
4362: fi
4363: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4364: conftest.$ac_objext conftest.beam conftest.$ac_ext
4365: fi
4366:
4367: fi
4368: fi
4369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4370: $as_echo "$ac_cv_header_stdc" >&6; }
4371: if test $ac_cv_header_stdc = yes; then
4372:
4373: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4374:
4375: fi
4376:
4377:
4378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4379: $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4380: if ${ac_cv_header_stat_broken+:} false; then :
4381: $as_echo_n "(cached) " >&6
4382: else
4383: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384: /* end confdefs.h. */
4385: #include <sys/types.h>
4386: #include <sys/stat.h>
4387:
4388: #if defined S_ISBLK && defined S_IFDIR
4389: extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4390: #endif
4391:
4392: #if defined S_ISBLK && defined S_IFCHR
4393: extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4394: #endif
4395:
4396: #if defined S_ISLNK && defined S_IFREG
4397: extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4398: #endif
4399:
4400: #if defined S_ISSOCK && defined S_IFREG
4401: extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4402: #endif
4403:
4404: _ACEOF
4405: if ac_fn_c_try_compile "$LINENO"; then :
4406: ac_cv_header_stat_broken=no
4407: else
4408: ac_cv_header_stat_broken=yes
4409: fi
4410: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411: fi
4412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4413: $as_echo "$ac_cv_header_stat_broken" >&6; }
4414: if test $ac_cv_header_stat_broken = yes; then
4415:
4416: $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4417:
4418: fi
4419:
4420: ac_header_dirent=no
4421: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4422: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4424: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4425: if eval \${$as_ac_Header+:} false; then :
4426: $as_echo_n "(cached) " >&6
4427: else
4428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429: /* end confdefs.h. */
4430: #include <sys/types.h>
4431: #include <$ac_hdr>
4432:
4433: int
4434: main ()
4435: {
4436: if ((DIR *) 0)
4437: return 0;
4438: ;
4439: return 0;
4440: }
4441: _ACEOF
4442: if ac_fn_c_try_compile "$LINENO"; then :
4443: eval "$as_ac_Header=yes"
4444: else
4445: eval "$as_ac_Header=no"
4446: fi
4447: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448: fi
4449: eval ac_res=\$$as_ac_Header
4450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4451: $as_echo "$ac_res" >&6; }
4452: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4453: cat >>confdefs.h <<_ACEOF
4454: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4455: _ACEOF
4456:
4457: ac_header_dirent=$ac_hdr; break
4458: fi
4459:
4460: done
4461: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4462: if test $ac_header_dirent = dirent.h; then
4463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4464: $as_echo_n "checking for library containing opendir... " >&6; }
4465: if ${ac_cv_search_opendir+:} false; then :
4466: $as_echo_n "(cached) " >&6
4467: else
4468: ac_func_search_save_LIBS=$LIBS
4469: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470: /* end confdefs.h. */
4471:
4472: /* Override any GCC internal prototype to avoid an error.
4473: Use char because int might match the return type of a GCC
4474: builtin and then its argument prototype would still apply. */
4475: #ifdef __cplusplus
4476: extern "C"
4477: #endif
4478: char opendir ();
4479: int
4480: main ()
4481: {
4482: return opendir ();
4483: ;
4484: return 0;
4485: }
4486: _ACEOF
4487: for ac_lib in '' dir; do
4488: if test -z "$ac_lib"; then
4489: ac_res="none required"
4490: else
4491: ac_res=-l$ac_lib
4492: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4493: fi
4494: if ac_fn_c_try_link "$LINENO"; then :
4495: ac_cv_search_opendir=$ac_res
4496: fi
4497: rm -f core conftest.err conftest.$ac_objext \
4498: conftest$ac_exeext
4499: if ${ac_cv_search_opendir+:} false; then :
4500: break
4501: fi
4502: done
4503: if ${ac_cv_search_opendir+:} false; then :
4504:
4505: else
4506: ac_cv_search_opendir=no
4507: fi
4508: rm conftest.$ac_ext
4509: LIBS=$ac_func_search_save_LIBS
4510: fi
4511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4512: $as_echo "$ac_cv_search_opendir" >&6; }
4513: ac_res=$ac_cv_search_opendir
4514: if test "$ac_res" != no; then :
4515: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4516:
4517: fi
4518:
4519: else
4520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4521: $as_echo_n "checking for library containing opendir... " >&6; }
4522: if ${ac_cv_search_opendir+:} false; then :
4523: $as_echo_n "(cached) " >&6
4524: else
4525: ac_func_search_save_LIBS=$LIBS
4526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527: /* end confdefs.h. */
4528:
4529: /* Override any GCC internal prototype to avoid an error.
4530: Use char because int might match the return type of a GCC
4531: builtin and then its argument prototype would still apply. */
4532: #ifdef __cplusplus
4533: extern "C"
4534: #endif
4535: char opendir ();
4536: int
4537: main ()
4538: {
4539: return opendir ();
4540: ;
4541: return 0;
4542: }
4543: _ACEOF
4544: for ac_lib in '' x; do
4545: if test -z "$ac_lib"; then
4546: ac_res="none required"
4547: else
4548: ac_res=-l$ac_lib
4549: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4550: fi
4551: if ac_fn_c_try_link "$LINENO"; then :
4552: ac_cv_search_opendir=$ac_res
4553: fi
4554: rm -f core conftest.err conftest.$ac_objext \
4555: conftest$ac_exeext
4556: if ${ac_cv_search_opendir+:} false; then :
4557: break
4558: fi
4559: done
4560: if ${ac_cv_search_opendir+:} false; then :
4561:
4562: else
4563: ac_cv_search_opendir=no
4564: fi
4565: rm conftest.$ac_ext
4566: LIBS=$ac_func_search_save_LIBS
4567: fi
4568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4569: $as_echo "$ac_cv_search_opendir" >&6; }
4570: ac_res=$ac_cv_search_opendir
4571: if test "$ac_res" != no; then :
4572: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4573:
4574: fi
4575:
4576: fi
4577:
4578:
4579: for ac_func in fcntl kill lstat
4580: do :
4581: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4582: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4583: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4584: cat >>confdefs.h <<_ACEOF
4585: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4586: _ACEOF
4587:
4588: fi
4589: done
4590:
4591: for ac_func in memmove putenv select setenv setlocale \
4592: strcasecmp strpbrk tcgetattr vsnprintf
4593: do :
4594: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4595: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4596: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4597: cat >>confdefs.h <<_ACEOF
4598: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4599: _ACEOF
4600:
4601: fi
4602: done
4603:
4604: for ac_func in isascii isxdigit
4605: do :
4606: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4607: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4608: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4609: cat >>confdefs.h <<_ACEOF
4610: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4611: _ACEOF
4612:
4613: fi
4614: done
4615:
4616: for ac_func in getpwent getpwnam getpwuid
4617: do :
4618: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4619: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4620: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4621: cat >>confdefs.h <<_ACEOF
4622: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4623: _ACEOF
4624:
4625: fi
4626: done
4627:
4628:
4629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4630: $as_echo_n "checking for working strcoll... " >&6; }
4631: if ${ac_cv_func_strcoll_works+:} false; then :
4632: $as_echo_n "(cached) " >&6
4633: else
4634: if test "$cross_compiling" = yes; then :
4635: ac_cv_func_strcoll_works=no
4636: else
4637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638: /* end confdefs.h. */
4639: $ac_includes_default
4640: int
4641: main ()
4642: {
4643: return (strcoll ("abc", "def") >= 0 ||
4644: strcoll ("ABC", "DEF") >= 0 ||
4645: strcoll ("123", "456") >= 0)
4646: ;
4647: return 0;
4648: }
4649: _ACEOF
4650: if ac_fn_c_try_run "$LINENO"; then :
4651: ac_cv_func_strcoll_works=yes
4652: else
4653: ac_cv_func_strcoll_works=no
4654: fi
4655: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4656: conftest.$ac_objext conftest.beam conftest.$ac_ext
4657: fi
4658:
4659: fi
4660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4661: $as_echo "$ac_cv_func_strcoll_works" >&6; }
4662: if test $ac_cv_func_strcoll_works = yes; then
4663:
4664: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4665:
4666: fi
4667:
4668:
4669: for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \
4670: string.h strings.h \
4671: limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h
4672: do :
4673: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4675: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4676: cat >>confdefs.h <<_ACEOF
4677: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678: _ACEOF
4679:
4680: fi
4681:
4682: done
4683:
4684: for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h
4685: do :
4686: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4688: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4689: cat >>confdefs.h <<_ACEOF
4690: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4691: _ACEOF
4692:
4693: fi
4694:
4695: done
4696:
4697:
4698: for ac_header in sys/ptem.h
4699: do :
4700: ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
4701: #if HAVE_SYS_STREAM_H
4702: # include <sys/stream.h>
4703: #endif
4704:
4705: "
4706: if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
4707: cat >>confdefs.h <<_ACEOF
4708: #define HAVE_SYS_PTEM_H 1
4709: _ACEOF
4710:
4711: fi
4712:
4713: done
4714:
4715:
4716: # Check whether --enable-largefile was given.
4717: if test "${enable_largefile+set}" = set; then :
4718: enableval=$enable_largefile;
4719: fi
4720:
4721: if test "$enable_largefile" != no; then
4722:
4723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4724: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4725: if ${ac_cv_sys_largefile_CC+:} false; then :
4726: $as_echo_n "(cached) " >&6
4727: else
4728: ac_cv_sys_largefile_CC=no
4729: if test "$GCC" != yes; then
4730: ac_save_CC=$CC
4731: while :; do
4732: # IRIX 6.2 and later do not support large files by default,
4733: # so use the C compiler's -n32 option if that helps.
4734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735: /* end confdefs.h. */
4736: #include <sys/types.h>
4737: /* Check that off_t can represent 2**63 - 1 correctly.
4738: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4739: since some C++ compilers masquerading as C compilers
4740: incorrectly reject 9223372036854775807. */
4741: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4742: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4743: && LARGE_OFF_T % 2147483647 == 1)
4744: ? 1 : -1];
4745: int
4746: main ()
4747: {
4748:
4749: ;
4750: return 0;
4751: }
4752: _ACEOF
4753: if ac_fn_c_try_compile "$LINENO"; then :
4754: break
4755: fi
4756: rm -f core conftest.err conftest.$ac_objext
4757: CC="$CC -n32"
4758: if ac_fn_c_try_compile "$LINENO"; then :
4759: ac_cv_sys_largefile_CC=' -n32'; break
4760: fi
4761: rm -f core conftest.err conftest.$ac_objext
4762: break
4763: done
4764: CC=$ac_save_CC
4765: rm -f conftest.$ac_ext
4766: fi
4767: fi
4768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4769: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4770: if test "$ac_cv_sys_largefile_CC" != no; then
4771: CC=$CC$ac_cv_sys_largefile_CC
4772: fi
4773:
4774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4775: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4776: if ${ac_cv_sys_file_offset_bits+:} false; then :
4777: $as_echo_n "(cached) " >&6
4778: else
4779: while :; do
4780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781: /* end confdefs.h. */
4782: #include <sys/types.h>
4783: /* Check that off_t can represent 2**63 - 1 correctly.
4784: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4785: since some C++ compilers masquerading as C compilers
4786: incorrectly reject 9223372036854775807. */
4787: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4788: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4789: && LARGE_OFF_T % 2147483647 == 1)
4790: ? 1 : -1];
4791: int
4792: main ()
4793: {
4794:
4795: ;
4796: return 0;
4797: }
4798: _ACEOF
4799: if ac_fn_c_try_compile "$LINENO"; then :
4800: ac_cv_sys_file_offset_bits=no; break
4801: fi
4802: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804: /* end confdefs.h. */
4805: #define _FILE_OFFSET_BITS 64
4806: #include <sys/types.h>
4807: /* Check that off_t can represent 2**63 - 1 correctly.
4808: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4809: since some C++ compilers masquerading as C compilers
4810: incorrectly reject 9223372036854775807. */
4811: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4812: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4813: && LARGE_OFF_T % 2147483647 == 1)
4814: ? 1 : -1];
4815: int
4816: main ()
4817: {
4818:
4819: ;
4820: return 0;
4821: }
4822: _ACEOF
4823: if ac_fn_c_try_compile "$LINENO"; then :
4824: ac_cv_sys_file_offset_bits=64; break
4825: fi
4826: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827: ac_cv_sys_file_offset_bits=unknown
4828: break
4829: done
4830: fi
4831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4832: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4833: case $ac_cv_sys_file_offset_bits in #(
4834: no | unknown) ;;
4835: *)
4836: cat >>confdefs.h <<_ACEOF
4837: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4838: _ACEOF
4839: ;;
4840: esac
4841: rm -rf conftest*
4842: if test $ac_cv_sys_file_offset_bits = unknown; then
4843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4844: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4845: if ${ac_cv_sys_large_files+:} false; then :
4846: $as_echo_n "(cached) " >&6
4847: else
4848: while :; do
4849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850: /* end confdefs.h. */
4851: #include <sys/types.h>
4852: /* Check that off_t can represent 2**63 - 1 correctly.
4853: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4854: since some C++ compilers masquerading as C compilers
4855: incorrectly reject 9223372036854775807. */
4856: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4857: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4858: && LARGE_OFF_T % 2147483647 == 1)
4859: ? 1 : -1];
4860: int
4861: main ()
4862: {
4863:
4864: ;
4865: return 0;
4866: }
4867: _ACEOF
4868: if ac_fn_c_try_compile "$LINENO"; then :
4869: ac_cv_sys_large_files=no; break
4870: fi
4871: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873: /* end confdefs.h. */
4874: #define _LARGE_FILES 1
4875: #include <sys/types.h>
4876: /* Check that off_t can represent 2**63 - 1 correctly.
4877: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4878: since some C++ compilers masquerading as C compilers
4879: incorrectly reject 9223372036854775807. */
4880: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4881: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4882: && LARGE_OFF_T % 2147483647 == 1)
4883: ? 1 : -1];
4884: int
4885: main ()
4886: {
4887:
4888: ;
4889: return 0;
4890: }
4891: _ACEOF
4892: if ac_fn_c_try_compile "$LINENO"; then :
4893: ac_cv_sys_large_files=1; break
4894: fi
4895: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896: ac_cv_sys_large_files=unknown
4897: break
4898: done
4899: fi
4900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4901: $as_echo "$ac_cv_sys_large_files" >&6; }
4902: case $ac_cv_sys_large_files in #(
4903: no | unknown) ;;
4904: *)
4905: cat >>confdefs.h <<_ACEOF
4906: #define _LARGE_FILES $ac_cv_sys_large_files
4907: _ACEOF
4908: ;;
4909: esac
4910: rm -rf conftest*
4911: fi
4912: fi
4913:
4914:
4915:
4916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
4917: $as_echo_n "checking for type of signal functions... " >&6; }
4918: if ${bash_cv_signal_vintage+:} false; then :
4919: $as_echo_n "(cached) " >&6
4920: else
4921:
4922: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923: /* end confdefs.h. */
4924: #include <signal.h>
4925: int
4926: main ()
4927: {
4928:
4929: sigset_t ss;
4930: struct sigaction sa;
4931: sigemptyset(&ss); sigsuspend(&ss);
4932: sigaction(SIGINT, &sa, (struct sigaction *) 0);
4933: sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4934:
4935: ;
4936: return 0;
4937: }
4938: _ACEOF
4939: if ac_fn_c_try_link "$LINENO"; then :
4940: bash_cv_signal_vintage=posix
4941: else
4942:
4943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944: /* end confdefs.h. */
4945: #include <signal.h>
4946: int
4947: main ()
4948: {
4949:
4950: int mask = sigmask(SIGINT);
4951: sigsetmask(mask); sigblock(mask); sigpause(mask);
4952:
4953: ;
4954: return 0;
4955: }
4956: _ACEOF
4957: if ac_fn_c_try_link "$LINENO"; then :
4958: bash_cv_signal_vintage=4.2bsd
4959: else
4960:
4961: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962: /* end confdefs.h. */
4963:
4964: #include <signal.h>
4965: RETSIGTYPE foo() { }
4966: int
4967: main ()
4968: {
4969:
4970: int mask = sigmask(SIGINT);
4971: sigset(SIGINT, foo); sigrelse(SIGINT);
4972: sighold(SIGINT); sigpause(SIGINT);
4973:
4974: ;
4975: return 0;
4976: }
4977: _ACEOF
4978: if ac_fn_c_try_link "$LINENO"; then :
4979: bash_cv_signal_vintage=svr3
4980: else
4981: bash_cv_signal_vintage=v7
4982:
4983: fi
4984: rm -f core conftest.err conftest.$ac_objext \
4985: conftest$ac_exeext conftest.$ac_ext
4986:
4987: fi
4988: rm -f core conftest.err conftest.$ac_objext \
4989: conftest$ac_exeext conftest.$ac_ext
4990:
4991: fi
4992: rm -f core conftest.err conftest.$ac_objext \
4993: conftest$ac_exeext conftest.$ac_ext
4994:
4995: fi
4996:
4997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
4998: $as_echo "$bash_cv_signal_vintage" >&6; }
4999: if test "$bash_cv_signal_vintage" = posix; then
5000: $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
5001:
5002: elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5003: $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
5004:
5005: elif test "$bash_cv_signal_vintage" = svr3; then
5006: $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
5007:
5008: fi
5009:
5010:
5011:
5012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
5013: $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
5014: if ${bash_cv_must_reinstall_sighandlers+:} false; then :
5015: $as_echo_n "(cached) " >&6
5016: else
5017: if test "$cross_compiling" = yes; then :
5018: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5019: $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5020: bash_cv_must_reinstall_sighandlers=no
5021:
5022: else
5023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024: /* end confdefs.h. */
5025:
5026: #include <signal.h>
5027: #ifdef HAVE_UNISTD_H
5028: #include <unistd.h>
5029: #endif
5030:
5031: typedef RETSIGTYPE sigfunc();
5032:
5033: int nsigint;
5034:
5035: #ifdef HAVE_POSIX_SIGNALS
5036: sigfunc *
5037: set_signal_handler(sig, handler)
5038: int sig;
5039: sigfunc *handler;
5040: {
5041: struct sigaction act, oact;
5042: act.sa_handler = handler;
5043: act.sa_flags = 0;
5044: sigemptyset (&act.sa_mask);
5045: sigemptyset (&oact.sa_mask);
5046: sigaction (sig, &act, &oact);
5047: return (oact.sa_handler);
5048: }
5049: #else
5050: #define set_signal_handler(s, h) signal(s, h)
5051: #endif
5052:
5053: RETSIGTYPE
5054: sigint(s)
5055: int s;
5056: {
5057: nsigint++;
5058: }
5059:
5060: main()
5061: {
5062: nsigint = 0;
5063: set_signal_handler(SIGINT, sigint);
5064: kill((int)getpid(), SIGINT);
5065: kill((int)getpid(), SIGINT);
5066: exit(nsigint != 2);
5067: }
5068:
5069: _ACEOF
5070: if ac_fn_c_try_run "$LINENO"; then :
5071: bash_cv_must_reinstall_sighandlers=no
5072: else
5073: bash_cv_must_reinstall_sighandlers=yes
5074: fi
5075: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5076: conftest.$ac_objext conftest.beam conftest.$ac_ext
5077: fi
5078:
5079: fi
5080:
5081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
5082: $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
5083: if test $bash_cv_must_reinstall_sighandlers = yes; then
5084: $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5085:
5086: fi
5087:
5088:
5089:
5090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5091: $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
5092: if ${bash_cv_func_sigsetjmp+:} false; then :
5093: $as_echo_n "(cached) " >&6
5094: else
5095: if test "$cross_compiling" = yes; then :
5096: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5097: $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5098: bash_cv_func_sigsetjmp=missing
5099:
5100: else
5101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102: /* end confdefs.h. */
5103:
5104: #ifdef HAVE_UNISTD_H
5105: #include <unistd.h>
5106: #endif
5107: #include <sys/types.h>
5108: #include <signal.h>
5109: #include <setjmp.h>
5110:
5111: main()
5112: {
5113: #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5114: exit (1);
5115: #else
5116:
5117: int code;
5118: sigset_t set, oset;
5119: sigjmp_buf xx;
5120:
5121: /* get the mask */
5122: sigemptyset(&set);
5123: sigemptyset(&oset);
5124: sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5125: sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5126:
5127: /* save it */
5128: code = sigsetjmp(xx, 1);
5129: if (code)
5130: exit(0); /* could get sigmask and compare to oset here. */
5131:
5132: /* change it */
5133: sigaddset(&set, SIGINT);
5134: sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5135:
5136: /* and siglongjmp */
5137: siglongjmp(xx, 10);
5138: exit(1);
5139: #endif
5140: }
5141: _ACEOF
5142: if ac_fn_c_try_run "$LINENO"; then :
5143: bash_cv_func_sigsetjmp=present
5144: else
5145: bash_cv_func_sigsetjmp=missing
5146: fi
5147: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5148: conftest.$ac_objext conftest.beam conftest.$ac_ext
5149: fi
5150:
5151: fi
5152:
5153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5154: $as_echo "$bash_cv_func_sigsetjmp" >&6; }
5155: if test $bash_cv_func_sigsetjmp = present; then
5156: $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5157:
5158: fi
5159:
5160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5161: $as_echo_n "checking for lstat... " >&6; }
5162: if ${bash_cv_func_lstat+:} false; then :
5163: $as_echo_n "(cached) " >&6
5164: else
5165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166: /* end confdefs.h. */
5167:
5168: #include <sys/types.h>
5169: #include <sys/stat.h>
5170:
5171: int
5172: main ()
5173: {
5174: lstat(".",(struct stat *)0);
5175: ;
5176: return 0;
5177: }
5178: _ACEOF
5179: if ac_fn_c_try_link "$LINENO"; then :
5180: bash_cv_func_lstat=yes
5181: else
5182: bash_cv_func_lstat=no
5183: fi
5184: rm -f core conftest.err conftest.$ac_objext \
5185: conftest$ac_exeext conftest.$ac_ext
5186: fi
5187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5188: $as_echo "$bash_cv_func_lstat" >&6; }
5189: if test $bash_cv_func_lstat = yes; then
5190: $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5191:
5192: fi
5193:
5194:
5195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5196: $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
5197: if ${bash_cv_func_strcoll_broken+:} false; then :
5198: $as_echo_n "(cached) " >&6
5199: else
5200: if test "$cross_compiling" = yes; then :
5201: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5202: $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5203: bash_cv_func_strcoll_broken=no
5204:
5205: else
5206: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207: /* end confdefs.h. */
5208:
5209: #include <stdio.h>
5210: #if defined (HAVE_LOCALE_H)
5211: #include <locale.h>
5212: #endif
5213:
5214: main(c, v)
5215: int c;
5216: char *v[];
5217: {
5218: int r1, r2;
5219: char *deflocale, *defcoll;
5220:
5221: #ifdef HAVE_SETLOCALE
5222: deflocale = setlocale(LC_ALL, "");
5223: defcoll = setlocale(LC_COLLATE, "");
5224: #endif
5225:
5226: #ifdef HAVE_STRCOLL
5227: /* These two values are taken from tests/glob-test. */
5228: r1 = strcoll("abd", "aXd");
5229: #else
5230: r1 = 0;
5231: #endif
5232: r2 = strcmp("abd", "aXd");
5233:
5234: /* These two should both be greater than 0. It is permissible for
5235: a system to return different values, as long as the sign is the
5236: same. */
5237:
5238: /* Exit with 1 (failure) if these two values are both > 0, since
5239: this tests whether strcoll(3) is broken with respect to strcmp(3)
5240: in the default locale. */
5241: exit (r1 > 0 && r2 > 0);
5242: }
5243:
5244: _ACEOF
5245: if ac_fn_c_try_run "$LINENO"; then :
5246: bash_cv_func_strcoll_broken=yes
5247: else
5248: bash_cv_func_strcoll_broken=no
5249: fi
5250: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5251: conftest.$ac_objext conftest.beam conftest.$ac_ext
5252: fi
5253:
5254: fi
5255:
5256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5257: $as_echo "$bash_cv_func_strcoll_broken" >&6; }
5258: if test $bash_cv_func_strcoll_broken = yes; then
5259: $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5260:
5261: fi
5262:
5263:
5264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5265: $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
5266: if ${bash_cv_func_ctype_nonascii+:} false; then :
5267: $as_echo_n "(cached) " >&6
5268: else
5269: if test "$cross_compiling" = yes; then :
5270: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5271: $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5272: bash_cv_func_ctype_nonascii=no
5273:
5274: else
5275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276: /* end confdefs.h. */
5277:
5278: #ifdef HAVE_LOCALE_H
5279: #include <locale.h>
5280: #endif
5281: #include <stdio.h>
5282: #include <ctype.h>
5283:
5284: main(c, v)
5285: int c;
5286: char *v[];
5287: {
5288: char *deflocale;
5289: unsigned char x;
5290: int r1, r2;
5291:
5292: #ifdef HAVE_SETLOCALE
5293: /* We take a shot here. If that locale is not known, try the
5294: system default. We try this one because '\342' (226) is
5295: known to be a printable character in that locale. */
5296: deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5297: if (deflocale == 0)
5298: deflocale = setlocale(LC_ALL, "");
5299: #endif
5300:
5301: x = '\342';
5302: r1 = isprint(x);
5303: x -= 128;
5304: r2 = isprint(x);
5305: exit (r1 == 0 || r2 == 0);
5306: }
5307:
5308: _ACEOF
5309: if ac_fn_c_try_run "$LINENO"; then :
5310: bash_cv_func_ctype_nonascii=yes
5311: else
5312: bash_cv_func_ctype_nonascii=no
5313: fi
5314: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5315: conftest.$ac_objext conftest.beam conftest.$ac_ext
5316: fi
5317:
5318: fi
5319:
5320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5321: $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5322: if test $bash_cv_func_ctype_nonascii = yes; then
5323: $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
5324:
5325: fi
5326:
5327:
5328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5329: $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
5330: if ${bash_cv_getpw_declared+:} false; then :
5331: $as_echo_n "(cached) " >&6
5332: else
5333: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334: /* end confdefs.h. */
5335:
5336: #include <sys/types.h>
5337: #ifdef HAVE_UNISTD_H
5338: # include <unistd.h>
5339: #endif
5340: #include <pwd.h>
5341:
5342: _ACEOF
5343: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344: $EGREP "getpwuid" >/dev/null 2>&1; then :
5345: bash_cv_getpw_declared=yes
5346: else
5347: bash_cv_getpw_declared=no
5348: fi
5349: rm -f conftest*
5350:
5351: fi
5352:
5353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5354: $as_echo "$bash_cv_getpw_declared" >&6; }
5355: if test $bash_cv_getpw_declared = yes; then
5356: $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
5357:
5358: fi
5359:
5360:
5361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5362: $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5363: if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
5364: $as_echo_n "(cached) " >&6
5365: else
5366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367: /* end confdefs.h. */
5368: #include <sys/types.h>
5369: #include <termios.h>
5370: #ifdef TIOCGWINSZ
5371: yes
5372: #endif
5373:
5374: _ACEOF
5375: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376: $EGREP "yes" >/dev/null 2>&1; then :
5377: ac_cv_sys_tiocgwinsz_in_termios_h=yes
5378: else
5379: ac_cv_sys_tiocgwinsz_in_termios_h=no
5380: fi
5381: rm -f conftest*
5382:
5383: fi
5384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5385: $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5386:
5387: if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5389: $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5390: if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
5391: $as_echo_n "(cached) " >&6
5392: else
5393: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394: /* end confdefs.h. */
5395: #include <sys/types.h>
5396: #include <sys/ioctl.h>
5397: #ifdef TIOCGWINSZ
5398: yes
5399: #endif
5400:
5401: _ACEOF
5402: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5403: $EGREP "yes" >/dev/null 2>&1; then :
5404: ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
5405: else
5406: ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
5407: fi
5408: rm -f conftest*
5409:
5410: fi
5411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5412: $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5413:
5414: if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5415:
5416: $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5417:
5418: fi
5419: fi
5420:
5421:
5422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5423: $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
5424: if ${ac_cv_have_sig_atomic_t+:} false; then :
5425: $as_echo_n "(cached) " >&6
5426: else
5427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428: /* end confdefs.h. */
5429:
5430: #include <signal.h>
5431:
5432: int
5433: main ()
5434: {
5435: sig_atomic_t x;
5436: ;
5437: return 0;
5438: }
5439: _ACEOF
5440: if ac_fn_c_try_link "$LINENO"; then :
5441: ac_cv_have_sig_atomic_t=yes
5442: else
5443: ac_cv_have_sig_atomic_t=no
5444: fi
5445: rm -f core conftest.err conftest.$ac_objext \
5446: conftest$ac_exeext conftest.$ac_ext
5447: fi
5448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5449: $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5450: if test "$ac_cv_have_sig_atomic_t" = "no"
5451: then
5452: ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
5453: if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
5454:
5455: else
5456:
5457: cat >>confdefs.h <<_ACEOF
5458: #define sig_atomic_t int
5459: _ACEOF
5460:
5461: fi
5462:
5463: fi
5464:
5465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5466: $as_echo_n "checking whether signal handlers are of type void... " >&6; }
5467: if ${bash_cv_void_sighandler+:} false; then :
5468: $as_echo_n "(cached) " >&6
5469: else
5470: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471: /* end confdefs.h. */
5472: #include <sys/types.h>
5473: #include <signal.h>
5474: #ifdef signal
5475: #undef signal
5476: #endif
5477: #ifdef __cplusplus
5478: extern "C"
5479: #endif
5480: void (*signal ()) ();
5481: int
5482: main ()
5483: {
5484: int i;
5485: ;
5486: return 0;
5487: }
5488: _ACEOF
5489: if ac_fn_c_try_compile "$LINENO"; then :
5490: bash_cv_void_sighandler=yes
5491: else
5492: bash_cv_void_sighandler=no
5493: fi
5494: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495: fi
5496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5497: $as_echo "$bash_cv_void_sighandler" >&6; }
5498: if test $bash_cv_void_sighandler = yes; then
5499: $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
5500:
5501: fi
5502:
5503:
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5505: $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
5506: if ${bash_cv_tiocstat_in_ioctl+:} false; then :
5507: $as_echo_n "(cached) " >&6
5508: else
5509: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510: /* end confdefs.h. */
5511: #include <sys/types.h>
5512: #include <sys/ioctl.h>
5513: int
5514: main ()
5515: {
5516: int x = TIOCSTAT;
5517: ;
5518: return 0;
5519: }
5520: _ACEOF
5521: if ac_fn_c_try_compile "$LINENO"; then :
5522: bash_cv_tiocstat_in_ioctl=yes
5523: else
5524: bash_cv_tiocstat_in_ioctl=no
5525: fi
5526: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527: fi
5528:
5529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5530: $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5531: if test $bash_cv_tiocstat_in_ioctl = yes; then
5532: $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
5533:
5534: fi
5535:
5536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5537: $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
5538: if ${bash_cv_fionread_in_ioctl+:} false; then :
5539: $as_echo_n "(cached) " >&6
5540: else
5541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542: /* end confdefs.h. */
5543: #include <sys/types.h>
5544: #include <sys/ioctl.h>
5545: int
5546: main ()
5547: {
5548: int x = FIONREAD;
5549: ;
5550: return 0;
5551: }
5552: _ACEOF
5553: if ac_fn_c_try_compile "$LINENO"; then :
5554: bash_cv_fionread_in_ioctl=yes
5555: else
5556: bash_cv_fionread_in_ioctl=no
5557: fi
5558: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559: fi
5560:
5561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5562: $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5563: if test $bash_cv_fionread_in_ioctl = yes; then
5564: $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
5565:
5566: fi
5567:
5568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5569: $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
5570: if ${bash_cv_speed_t_in_sys_types+:} false; then :
5571: $as_echo_n "(cached) " >&6
5572: else
5573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574: /* end confdefs.h. */
5575: #include <sys/types.h>
5576: int
5577: main ()
5578: {
5579: speed_t x;
5580: ;
5581: return 0;
5582: }
5583: _ACEOF
5584: if ac_fn_c_try_compile "$LINENO"; then :
5585: bash_cv_speed_t_in_sys_types=yes
5586: else
5587: bash_cv_speed_t_in_sys_types=no
5588: fi
5589: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590: fi
5591:
5592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5593: $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5594: if test $bash_cv_speed_t_in_sys_types = yes; then
5595: $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
5596:
5597: fi
5598:
5599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5600: $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
5601: if ${bash_cv_struct_winsize_header+:} false; then :
5602: $as_echo_n "(cached) " >&6
5603: else
5604: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605: /* end confdefs.h. */
5606: #include <sys/types.h>
5607: #include <sys/ioctl.h>
5608: int
5609: main ()
5610: {
5611: struct winsize x;
5612: ;
5613: return 0;
5614: }
5615: _ACEOF
5616: if ac_fn_c_try_compile "$LINENO"; then :
5617: bash_cv_struct_winsize_header=ioctl_h
5618: else
5619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620: /* end confdefs.h. */
5621: #include <sys/types.h>
5622: #include <termios.h>
5623: int
5624: main ()
5625: {
5626: struct winsize x;
5627: ;
5628: return 0;
5629: }
5630: _ACEOF
5631: if ac_fn_c_try_compile "$LINENO"; then :
5632: bash_cv_struct_winsize_header=termios_h
5633: else
5634: bash_cv_struct_winsize_header=other
5635: fi
5636: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637:
5638: fi
5639: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640: fi
5641:
5642: if test $bash_cv_struct_winsize_header = ioctl_h; then
5643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5644: $as_echo "sys/ioctl.h" >&6; }
5645: $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
5646:
5647: elif test $bash_cv_struct_winsize_header = termios_h; then
5648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5649: $as_echo "termios.h" >&6; }
5650: $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
5651:
5652: else
5653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5654: $as_echo "not found" >&6; }
5655: fi
5656:
5657:
5658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5659: $as_echo_n "checking for struct dirent.d_ino... " >&6; }
5660: if ${bash_cv_dirent_has_dino+:} false; then :
5661: $as_echo_n "(cached) " >&6
5662: else
5663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664: /* end confdefs.h. */
5665:
5666: #include <stdio.h>
5667: #include <sys/types.h>
5668: #ifdef HAVE_UNISTD_H
5669: # include <unistd.h>
5670: #endif /* HAVE_UNISTD_H */
5671: #if defined(HAVE_DIRENT_H)
5672: # include <dirent.h>
5673: #else
5674: # define dirent direct
5675: # ifdef HAVE_SYS_NDIR_H
5676: # include <sys/ndir.h>
5677: # endif /* SYSNDIR */
5678: # ifdef HAVE_SYS_DIR_H
5679: # include <sys/dir.h>
5680: # endif /* SYSDIR */
5681: # ifdef HAVE_NDIR_H
5682: # include <ndir.h>
5683: # endif
5684: #endif /* HAVE_DIRENT_H */
5685:
5686: int
5687: main ()
5688: {
5689:
5690: struct dirent d; int z; z = d.d_ino;
5691:
5692: ;
5693: return 0;
5694: }
5695: _ACEOF
5696: if ac_fn_c_try_compile "$LINENO"; then :
5697: bash_cv_dirent_has_dino=yes
5698: else
5699: bash_cv_dirent_has_dino=no
5700: fi
5701: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702: fi
5703:
5704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
5705: $as_echo "$bash_cv_dirent_has_dino" >&6; }
5706: if test $bash_cv_dirent_has_dino = yes; then
5707: $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
5708:
5709: fi
5710:
5711:
5712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
5713: $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
5714: if ${bash_cv_dirent_has_d_fileno+:} false; then :
5715: $as_echo_n "(cached) " >&6
5716: else
5717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718: /* end confdefs.h. */
5719:
5720: #include <stdio.h>
5721: #include <sys/types.h>
5722: #ifdef HAVE_UNISTD_H
5723: # include <unistd.h>
5724: #endif /* HAVE_UNISTD_H */
5725: #if defined(HAVE_DIRENT_H)
5726: # include <dirent.h>
5727: #else
5728: # define dirent direct
5729: # ifdef HAVE_SYS_NDIR_H
5730: # include <sys/ndir.h>
5731: # endif /* SYSNDIR */
5732: # ifdef HAVE_SYS_DIR_H
5733: # include <sys/dir.h>
5734: # endif /* SYSDIR */
5735: # ifdef HAVE_NDIR_H
5736: # include <ndir.h>
5737: # endif
5738: #endif /* HAVE_DIRENT_H */
5739:
5740: int
5741: main ()
5742: {
5743:
5744: struct dirent d; int z; z = d.d_fileno;
5745:
5746: ;
5747: return 0;
5748: }
5749: _ACEOF
5750: if ac_fn_c_try_compile "$LINENO"; then :
5751: bash_cv_dirent_has_d_fileno=yes
5752: else
5753: bash_cv_dirent_has_d_fileno=no
5754: fi
5755: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756: fi
5757:
5758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
5759: $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
5760: if test $bash_cv_dirent_has_d_fileno = yes; then
5761: $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
5762:
5763: fi
5764:
5765:
5766: ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
5767: "
5768: if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
5769: ac_have_decl=1
5770: else
5771: ac_have_decl=0
5772: fi
5773:
5774: cat >>confdefs.h <<_ACEOF
5775: #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
5776: _ACEOF
5777:
5778:
5779: case "$host_os" in
5780: aix*) prefer_curses=yes ;;
5781: esac
5782:
5783: if test "X$bash_cv_termcap_lib" = "X"; then
5784: _bash_needmsg=yes
5785: else
5786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5787: $as_echo_n "checking which library has the termcap functions... " >&6; }
5788: _bash_needmsg=
5789: fi
5790: if ${bash_cv_termcap_lib+:} false; then :
5791: $as_echo_n "(cached) " >&6
5792: else
5793: ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5794: if test "x$ac_cv_func_tgetent" = xyes; then :
5795: bash_cv_termcap_lib=libc
5796: else
5797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5798: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5799: if ${ac_cv_lib_termcap_tgetent+:} false; then :
5800: $as_echo_n "(cached) " >&6
5801: else
5802: ac_check_lib_save_LIBS=$LIBS
5803: LIBS="-ltermcap $LIBS"
5804: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805: /* end confdefs.h. */
5806:
5807: /* Override any GCC internal prototype to avoid an error.
5808: Use char because int might match the return type of a GCC
5809: builtin and then its argument prototype would still apply. */
5810: #ifdef __cplusplus
5811: extern "C"
5812: #endif
5813: char tgetent ();
5814: int
5815: main ()
5816: {
5817: return tgetent ();
5818: ;
5819: return 0;
5820: }
5821: _ACEOF
5822: if ac_fn_c_try_link "$LINENO"; then :
5823: ac_cv_lib_termcap_tgetent=yes
5824: else
5825: ac_cv_lib_termcap_tgetent=no
5826: fi
5827: rm -f core conftest.err conftest.$ac_objext \
5828: conftest$ac_exeext conftest.$ac_ext
5829: LIBS=$ac_check_lib_save_LIBS
5830: fi
5831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5832: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5833: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
5834: bash_cv_termcap_lib=libtermcap
5835: else
5836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5837: $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5838: if ${ac_cv_lib_tinfo_tgetent+:} false; then :
5839: $as_echo_n "(cached) " >&6
5840: else
5841: ac_check_lib_save_LIBS=$LIBS
5842: LIBS="-ltinfo $LIBS"
5843: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844: /* end confdefs.h. */
5845:
5846: /* Override any GCC internal prototype to avoid an error.
5847: Use char because int might match the return type of a GCC
5848: builtin and then its argument prototype would still apply. */
5849: #ifdef __cplusplus
5850: extern "C"
5851: #endif
5852: char tgetent ();
5853: int
5854: main ()
5855: {
5856: return tgetent ();
5857: ;
5858: return 0;
5859: }
5860: _ACEOF
5861: if ac_fn_c_try_link "$LINENO"; then :
5862: ac_cv_lib_tinfo_tgetent=yes
5863: else
5864: ac_cv_lib_tinfo_tgetent=no
5865: fi
5866: rm -f core conftest.err conftest.$ac_objext \
5867: conftest$ac_exeext conftest.$ac_ext
5868: LIBS=$ac_check_lib_save_LIBS
5869: fi
5870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5871: $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5872: if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
5873: bash_cv_termcap_lib=libtinfo
5874: else
5875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5876: $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5877: if ${ac_cv_lib_curses_tgetent+:} false; then :
5878: $as_echo_n "(cached) " >&6
5879: else
5880: ac_check_lib_save_LIBS=$LIBS
5881: LIBS="-lcurses $LIBS"
5882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883: /* end confdefs.h. */
5884:
5885: /* Override any GCC internal prototype to avoid an error.
5886: Use char because int might match the return type of a GCC
5887: builtin and then its argument prototype would still apply. */
5888: #ifdef __cplusplus
5889: extern "C"
5890: #endif
5891: char tgetent ();
5892: int
5893: main ()
5894: {
5895: return tgetent ();
5896: ;
5897: return 0;
5898: }
5899: _ACEOF
5900: if ac_fn_c_try_link "$LINENO"; then :
5901: ac_cv_lib_curses_tgetent=yes
5902: else
5903: ac_cv_lib_curses_tgetent=no
5904: fi
5905: rm -f core conftest.err conftest.$ac_objext \
5906: conftest$ac_exeext conftest.$ac_ext
5907: LIBS=$ac_check_lib_save_LIBS
5908: fi
5909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5910: $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5911: if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
5912: bash_cv_termcap_lib=libcurses
5913: else
5914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5915: $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5916: if ${ac_cv_lib_ncurses_tgetent+:} false; then :
5917: $as_echo_n "(cached) " >&6
5918: else
5919: ac_check_lib_save_LIBS=$LIBS
5920: LIBS="-lncurses $LIBS"
5921: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922: /* end confdefs.h. */
5923:
5924: /* Override any GCC internal prototype to avoid an error.
5925: Use char because int might match the return type of a GCC
5926: builtin and then its argument prototype would still apply. */
5927: #ifdef __cplusplus
5928: extern "C"
5929: #endif
5930: char tgetent ();
5931: int
5932: main ()
5933: {
5934: return tgetent ();
5935: ;
5936: return 0;
5937: }
5938: _ACEOF
5939: if ac_fn_c_try_link "$LINENO"; then :
5940: ac_cv_lib_ncurses_tgetent=yes
5941: else
5942: ac_cv_lib_ncurses_tgetent=no
5943: fi
5944: rm -f core conftest.err conftest.$ac_objext \
5945: conftest$ac_exeext conftest.$ac_ext
5946: LIBS=$ac_check_lib_save_LIBS
5947: fi
5948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5949: $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5950: if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
5951: bash_cv_termcap_lib=libncurses
5952: else
5953: bash_cv_termcap_lib=gnutermcap
5954: fi
5955:
5956: fi
5957:
5958: fi
5959:
5960: fi
5961:
5962: fi
5963:
5964: fi
5965:
5966: if test "X$_bash_needmsg" = "Xyes"; then
5967: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5968: $as_echo_n "checking which library has the termcap functions... " >&6; }
5969: fi
5970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5971: $as_echo "using $bash_cv_termcap_lib" >&6; }
5972: if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5973: LDFLAGS="$LDFLAGS -L./lib/termcap"
5974: TERMCAP_LIB="./lib/termcap/libtermcap.a"
5975: TERMCAP_DEP="./lib/termcap/libtermcap.a"
5976: elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5977: TERMCAP_LIB=-ltermcap
5978: TERMCAP_DEP=
5979: elif test $bash_cv_termcap_lib = libtinfo; then
5980: TERMCAP_LIB=-ltinfo
5981: TERMCAP_DEP=
5982: elif test $bash_cv_termcap_lib = libncurses; then
5983: TERMCAP_LIB=-lncurses
5984: TERMCAP_DEP=
5985: elif test $bash_cv_termcap_lib = libc; then
5986: TERMCAP_LIB=
5987: TERMCAP_DEP=
5988: else
5989: TERMCAP_LIB=-lcurses
5990: TERMCAP_DEP=
5991: fi
5992:
5993: if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5994: if test "$prefer_curses" = yes; then
5995: TERMCAP_LIB=-lcurses
5996: else
5997: TERMCAP_LIB=-ltermcap #default
5998: fi
5999: fi
6000:
6001:
6002: for ac_header in wctype.h
6003: do :
6004: ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6005: if test "x$ac_cv_header_wctype_h" = xyes; then :
6006: cat >>confdefs.h <<_ACEOF
6007: #define HAVE_WCTYPE_H 1
6008: _ACEOF
6009:
6010: fi
6011:
6012: done
6013:
6014: for ac_header in wchar.h
6015: do :
6016: ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6017: if test "x$ac_cv_header_wchar_h" = xyes; then :
6018: cat >>confdefs.h <<_ACEOF
6019: #define HAVE_WCHAR_H 1
6020: _ACEOF
6021:
6022: fi
6023:
6024: done
6025:
6026: for ac_header in langinfo.h
6027: do :
6028: ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6029: if test "x$ac_cv_header_langinfo_h" = xyes; then :
6030: cat >>confdefs.h <<_ACEOF
6031: #define HAVE_LANGINFO_H 1
6032: _ACEOF
6033:
6034: fi
6035:
6036: done
6037:
6038:
6039: ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
6040: if test "x$ac_cv_func_mbrlen" = xyes; then :
6041: $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
6042:
6043: fi
6044:
6045: ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
6046: if test "x$ac_cv_func_mbscasecmp" = xyes; then :
6047: $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6048:
6049: fi
6050:
6051: ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
6052: if test "x$ac_cv_func_mbscmp" = xyes; then :
6053: $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6054:
6055: fi
6056:
6057: ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
6058: if test "x$ac_cv_func_mbsnrtowcs" = xyes; then :
6059: $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
6060:
6061: fi
6062:
6063: ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
6064: if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
6065: $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
6066:
6067: fi
6068:
6069:
6070: ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
6071: if test "x$ac_cv_func_mbschr" = xyes; then :
6072: $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
6073:
6074: else
6075: case " $LIBOBJS " in
6076: *" mbschr.$ac_objext "* ) ;;
6077: *) LIBOBJS="$LIBOBJS mbschr.$ac_objext"
6078: ;;
6079: esac
6080:
6081: fi
6082:
6083:
6084:
6085: ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
6086: if test "x$ac_cv_func_wcrtomb" = xyes; then :
6087: $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
6088:
6089: fi
6090:
6091: ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
6092: if test "x$ac_cv_func_wcscoll" = xyes; then :
6093: $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6094:
6095: fi
6096:
6097: ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
6098: if test "x$ac_cv_func_wcsdup" = xyes; then :
6099: $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
6100:
6101: fi
6102:
6103: ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
6104: if test "x$ac_cv_func_wcwidth" = xyes; then :
6105: $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6106:
6107: fi
6108:
6109: ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6110: if test "x$ac_cv_func_wctype" = xyes; then :
6111: $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
6112:
6113: fi
6114:
6115:
6116: ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6117: if test "x$ac_cv_func_wcswidth" = xyes; then :
6118: $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
6119:
6120: else
6121: case " $LIBOBJS " in
6122: *" wcswidth.$ac_objext "* ) ;;
6123: *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext"
6124: ;;
6125: esac
6126:
6127: fi
6128:
6129:
6130:
6131:
6132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6133: $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6134: if ${ac_cv_func_mbrtowc+:} false; then :
6135: $as_echo_n "(cached) " >&6
6136: else
6137: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138: /* end confdefs.h. */
6139: #include <wchar.h>
6140: int
6141: main ()
6142: {
6143: wchar_t wc;
6144: char const s[] = "";
6145: size_t n = 1;
6146: mbstate_t state;
6147: return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6148: ;
6149: return 0;
6150: }
6151: _ACEOF
6152: if ac_fn_c_try_link "$LINENO"; then :
6153: ac_cv_func_mbrtowc=yes
6154: else
6155: ac_cv_func_mbrtowc=no
6156: fi
6157: rm -f core conftest.err conftest.$ac_objext \
6158: conftest$ac_exeext conftest.$ac_ext
6159: fi
6160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6161: $as_echo "$ac_cv_func_mbrtowc" >&6; }
6162: if test $ac_cv_func_mbrtowc = yes; then
6163:
6164: $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6165:
6166: fi
6167:
6168: if test $ac_cv_func_mbrtowc = yes; then
6169: $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6170:
6171: fi
6172:
6173: for ac_func in iswlower iswupper towlower towupper iswctype
6174: do :
6175: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6176: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6177: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6178: cat >>confdefs.h <<_ACEOF
6179: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6180: _ACEOF
6181:
6182: fi
6183: done
6184:
6185:
6186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6187: $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6188: if ${bash_cv_langinfo_codeset+:} false; then :
6189: $as_echo_n "(cached) " >&6
6190: else
6191: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192: /* end confdefs.h. */
6193: #include <langinfo.h>
6194: int
6195: main ()
6196: {
6197: char* cs = nl_langinfo(CODESET);
6198: ;
6199: return 0;
6200: }
6201: _ACEOF
6202: if ac_fn_c_try_link "$LINENO"; then :
6203: bash_cv_langinfo_codeset=yes
6204: else
6205: bash_cv_langinfo_codeset=no
6206: fi
6207: rm -f core conftest.err conftest.$ac_objext \
6208: conftest$ac_exeext conftest.$ac_ext
6209: fi
6210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6211: $as_echo "$bash_cv_langinfo_codeset" >&6; }
6212: if test $bash_cv_langinfo_codeset = yes; then
6213: $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6214:
6215: fi
6216:
6217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6218: $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
6219: if ${bash_cv_type_wchar_t+:} false; then :
6220: $as_echo_n "(cached) " >&6
6221: else
6222: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223: /* end confdefs.h. */
6224: #include <wchar.h>
6225:
6226: int
6227: main ()
6228: {
6229:
6230: wchar_t foo;
6231: foo = 0;
6232:
6233: ;
6234: return 0;
6235: }
6236: _ACEOF
6237: if ac_fn_c_try_compile "$LINENO"; then :
6238: bash_cv_type_wchar_t=yes
6239: else
6240: bash_cv_type_wchar_t=no
6241: fi
6242: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243: fi
6244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6245: $as_echo "$bash_cv_type_wchar_t" >&6; }
6246: if test $bash_cv_type_wchar_t = yes; then
6247:
6248: $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6249:
6250: fi
6251:
6252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6253: $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
6254: if ${bash_cv_type_wctype_t+:} false; then :
6255: $as_echo_n "(cached) " >&6
6256: else
6257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258: /* end confdefs.h. */
6259: #include <wctype.h>
6260: int
6261: main ()
6262: {
6263:
6264: wctype_t foo;
6265: foo = 0;
6266:
6267: ;
6268: return 0;
6269: }
6270: _ACEOF
6271: if ac_fn_c_try_compile "$LINENO"; then :
6272: bash_cv_type_wctype_t=yes
6273: else
6274: bash_cv_type_wctype_t=no
6275: fi
6276: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277: fi
6278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6279: $as_echo "$bash_cv_type_wctype_t" >&6; }
6280: if test $bash_cv_type_wctype_t = yes; then
6281:
6282: $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6283:
6284: fi
6285:
6286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6287: $as_echo_n "checking for wint_t in wctype.h... " >&6; }
6288: if ${bash_cv_type_wint_t+:} false; then :
6289: $as_echo_n "(cached) " >&6
6290: else
6291: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292: /* end confdefs.h. */
6293: #include <wctype.h>
6294: int
6295: main ()
6296: {
6297:
6298: wint_t foo;
6299: foo = 0;
6300:
6301: ;
6302: return 0;
6303: }
6304: _ACEOF
6305: if ac_fn_c_try_compile "$LINENO"; then :
6306: bash_cv_type_wint_t=yes
6307: else
6308: bash_cv_type_wint_t=no
6309: fi
6310: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311: fi
6312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6313: $as_echo "$bash_cv_type_wint_t" >&6; }
6314: if test $bash_cv_type_wint_t = yes; then
6315:
6316: $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6317:
6318: fi
6319:
1.1.1.1.4.1! misho 6320: echo bbbbbbbbbbbbbbbbbbbbbb $cross_compiling
! 6321:
1.1 misho 6322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
6323: $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
6324: if ${bash_cv_wcwidth_broken+:} false; then :
6325: $as_echo_n "(cached) " >&6
6326: else
6327: if test "$cross_compiling" = yes; then :
1.1.1.1.4.1! misho 6328: bash_cv_wcwdith_broken=no
1.1 misho 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>