2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 gl_fnmatch_required
=POSIX
594 ac_subst_vars
='am__EXEEXT_FALSE
620 INSTALL_STRIP_PROGRAM
641 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
655 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_STRING_H
659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
661 GL_GENERATE_STDDEF_H_FALSE
662 GL_GENERATE_STDDEF_H_TRUE
667 GL_GENERATE_STDBOOL_H_FALSE
668 GL_GENERATE_STDBOOL_H_TRUE
838 LOCALCHARSET_TESTS_ENVIRONMENT
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
867 HAVE_SIGNED_SIG_ATOMIC_T
870 BITSIZEOF_SIG_ATOMIC_T
873 APPLE_UNIVERSAL_BUILD
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
882 HAVE_UNSIGNED_LONG_LONG_INT
884 GL_GENERATE_FNMATCH_H_FALSE
885 GL_GENERATE_FNMATCH_H_TRUE
893 GL_GENERATE_ERRNO_H_FALSE
894 GL_GENERATE_ERRNO_H_TRUE
896 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
904 GL_GENERATE_ALLOCA_H_FALSE
905 GL_GENERATE_ALLOCA_H_TRUE
908 GL_COND_LIBTOOL_FALSE
936 MAINTAINER_MODE_FALSE
965 program_transform_name
978 enable_option_checking
979 enable_maintainer_mode
980 enable_dependency_tracking
982 ac_precious_vars
='build_alias
993 # Initialize some variables set by options.
995 ac_init_version
=false
996 ac_unrecognized_opts
=
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file
=/dev
/null
1007 program_transform_name
=s
,x
,x
,
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir
='${exec_prefix}/bin'
1022 sbindir
='${exec_prefix}/sbin'
1023 libexecdir
='${exec_prefix}/libexec'
1024 datarootdir
='${prefix}/share'
1025 datadir
='${datarootdir}'
1026 sysconfdir
='${prefix}/etc'
1027 sharedstatedir
='${prefix}/com'
1028 localstatedir
='${prefix}/var'
1029 includedir
='${prefix}/include'
1030 oldincludedir
='/usr/include'
1031 docdir
='${datarootdir}/doc/${PACKAGE}'
1032 infodir
='${datarootdir}/info'
1037 libdir
='${exec_prefix}/lib'
1038 localedir
='${datarootdir}/locale'
1039 mandir
='${datarootdir}/man'
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\
$ac_option
1053 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1063 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1065 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1066 bindir
=$ac_optarg ;;
1068 -build |
--build |
--buil |
--bui |
--bu)
1069 ac_prev
=build_alias
;;
1070 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1071 build_alias
=$ac_optarg ;;
1073 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1074 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1075 ac_prev
=cache_file
;;
1076 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1077 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1078 cache_file
=$ac_optarg ;;
1080 --config-cache |
-C)
1081 cache_file
=config.cache
;;
1083 -datadir |
--datadir |
--datadi |
--datad)
1085 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1086 datadir
=$ac_optarg ;;
1088 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1089 |
--dataroo |
--dataro |
--datar)
1090 ac_prev
=datarootdir
;;
1091 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1092 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1093 datarootdir
=$ac_optarg ;;
1095 -disable-* |
--disable-*)
1096 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1099 as_fn_error
"invalid feature name: $ac_useropt"
1100 ac_useropt_orig
=$ac_useropt
1101 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_
$ac_useropt"
1106 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep
=', ';;
1109 eval enable_
$ac_useropt=no
;;
1111 -docdir |
--docdir |
--docdi |
--doc |
--do)
1113 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1114 docdir
=$ac_optarg ;;
1116 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1118 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1119 dvidir
=$ac_optarg ;;
1121 -enable-* |
--enable-*)
1122 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1125 as_fn_error
"invalid feature name: $ac_useropt"
1126 ac_useropt_orig
=$ac_useropt
1127 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_
$ac_useropt"
1132 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep
=', ';;
1135 eval enable_
$ac_useropt=\
$ac_optarg ;;
1137 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1138 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1139 |
--exec |
--exe |
--ex)
1140 ac_prev
=exec_prefix
;;
1141 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1142 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1143 |
--exec=* |
--exe=* |
--ex=*)
1144 exec_prefix
=$ac_optarg ;;
1146 -gas |
--gas |
--ga |
--g)
1147 # Obsolete; use --with-gas.
1150 -help |
--help |
--hel |
--he |
-h)
1151 ac_init_help
=long
;;
1152 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1153 ac_init_help
=recursive
;;
1154 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1155 ac_init_help
=short
;;
1157 -host |
--host |
--hos |
--ho)
1158 ac_prev
=host_alias
;;
1159 -host=* |
--host=* |
--hos=* |
--ho=*)
1160 host_alias
=$ac_optarg ;;
1162 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1164 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1166 htmldir
=$ac_optarg ;;
1168 -includedir |
--includedir |
--includedi |
--included |
--include \
1169 |
--includ |
--inclu |
--incl |
--inc)
1170 ac_prev
=includedir
;;
1171 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1172 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1173 includedir
=$ac_optarg ;;
1175 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1177 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1178 infodir
=$ac_optarg ;;
1180 -libdir |
--libdir |
--libdi |
--libd)
1182 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1183 libdir
=$ac_optarg ;;
1185 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1186 |
--libexe |
--libex |
--libe)
1187 ac_prev
=libexecdir
;;
1188 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1189 |
--libexe=* |
--libex=* |
--libe=*)
1190 libexecdir
=$ac_optarg ;;
1192 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1193 ac_prev
=localedir
;;
1194 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1195 localedir
=$ac_optarg ;;
1197 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1198 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1199 ac_prev
=localstatedir
;;
1200 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1201 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1202 localstatedir
=$ac_optarg ;;
1204 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1206 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1207 mandir
=$ac_optarg ;;
1209 -nfp |
--nfp |
--nf)
1210 # Obsolete; use --without-fp.
1213 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1214 |
--no-cr |
--no-c |
-n)
1217 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1218 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1221 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1222 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1223 |
--oldin |
--oldi |
--old |
--ol |
--o)
1224 ac_prev
=oldincludedir
;;
1225 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1226 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1227 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1228 oldincludedir
=$ac_optarg ;;
1230 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1232 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1233 prefix
=$ac_optarg ;;
1235 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1236 |
--program-pre |
--program-pr |
--program-p)
1237 ac_prev
=program_prefix
;;
1238 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1239 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1240 program_prefix
=$ac_optarg ;;
1242 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1243 |
--program-suf |
--program-su |
--program-s)
1244 ac_prev
=program_suffix
;;
1245 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1246 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1247 program_suffix
=$ac_optarg ;;
1249 -program-transform-name |
--program-transform-name \
1250 |
--program-transform-nam |
--program-transform-na \
1251 |
--program-transform-n |
--program-transform- \
1252 |
--program-transform |
--program-transfor \
1253 |
--program-transfo |
--program-transf \
1254 |
--program-trans |
--program-tran \
1255 |
--progr-tra |
--program-tr |
--program-t)
1256 ac_prev
=program_transform_name
;;
1257 -program-transform-name=* |
--program-transform-name=* \
1258 |
--program-transform-nam=* |
--program-transform-na=* \
1259 |
--program-transform-n=* |
--program-transform-=* \
1260 |
--program-transform=* |
--program-transfor=* \
1261 |
--program-transfo=* |
--program-transf=* \
1262 |
--program-trans=* |
--program-tran=* \
1263 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1264 program_transform_name
=$ac_optarg ;;
1266 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1268 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1269 pdfdir
=$ac_optarg ;;
1271 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1273 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1276 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1277 |
-silent |
--silent |
--silen |
--sile |
--sil)
1280 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1282 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1284 sbindir
=$ac_optarg ;;
1286 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1287 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1288 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1290 ac_prev
=sharedstatedir
;;
1291 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1292 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1293 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1295 sharedstatedir
=$ac_optarg ;;
1297 -site |
--site |
--sit)
1299 -site=* |
--site=* |
--sit=*)
1302 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1304 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1305 srcdir
=$ac_optarg ;;
1307 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1308 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1309 ac_prev
=sysconfdir
;;
1310 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1311 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1312 sysconfdir
=$ac_optarg ;;
1314 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1315 ac_prev
=target_alias
;;
1316 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1317 target_alias
=$ac_optarg ;;
1319 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1322 -version |
--version |
--versio |
--versi |
--vers |
-V)
1323 ac_init_version
=: ;;
1326 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1329 as_fn_error
"invalid package name: $ac_useropt"
1330 ac_useropt_orig
=$ac_useropt
1331 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337 ac_unrecognized_sep
=', ';;
1339 eval with_
$ac_useropt=\
$ac_optarg ;;
1341 -without-* |
--without-*)
1342 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1345 as_fn_error
"invalid package name: $ac_useropt"
1346 ac_useropt_orig
=$ac_useropt
1347 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1352 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1353 ac_unrecognized_sep
=', ';;
1355 eval with_
$ac_useropt=no
;;
1358 # Obsolete; use --with-x.
1361 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1362 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1363 ac_prev
=x_includes
;;
1364 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1365 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1366 x_includes
=$ac_optarg ;;
1368 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1369 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1370 ac_prev
=x_libraries
;;
1371 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1372 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1373 x_libraries
=$ac_optarg ;;
1375 -*) as_fn_error
"unrecognized option: \`$ac_option'
1376 Try \`$0 --help' for more information."
1380 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 case $ac_envvar in #(
1383 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1384 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1386 eval $ac_envvar=\
$ac_optarg
1387 export $ac_envvar ;;
1390 # FIXME: should be removed in autoconf 3.0.
1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1394 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1400 if test -n "$ac_prev"; then
1401 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1402 as_fn_error
"missing argument to $ac_option"
1405 if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1408 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1413 # Check all directory arguments for consistency.
1414 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1415 datadir sysconfdir sharedstatedir localstatedir includedir \
1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1417 libdir localedir mandir
1419 eval ac_val
=\$
$ac_var
1420 # Remove trailing slashes.
1423 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1424 eval $ac_var=\
$ac_val;;
1426 # Be sure to have absolute directory names.
1428 [\\/$
]* | ?
:[\\/]* ) continue;;
1429 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1431 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1434 # There might be people who depend on the old broken behavior: `$host'
1435 # used to hold the argument of --host etc.
1436 # FIXME: To remove some day.
1439 target
=$target_alias
1441 # FIXME: To remove some day.
1442 if test "x$host_alias" != x
; then
1443 if test "x$build_alias" = x
; then
1444 cross_compiling
=maybe
1445 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1446 If a cross compiler is detected then cross compile mode will be used." >&2
1447 elif test "x$build_alias" != "x$host_alias"; then
1453 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1455 test "$silent" = yes && exec 6>/dev
/null
1458 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di
=`ls -di .` &&
1460 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error
"working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error
"pwd does not report name of working directory"
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted
=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir
=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1498 ac_srcdir_defaulted
=no
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1502 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1504 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1516 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518 for ac_var
in $ac_precious_vars; do
1519 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1521 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1526 # Report the --help message.
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1532 \`configure' configures this package to adapt to many kinds of systems.
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1539 Defaults for the options are specified in brackets.
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1563 For better control, use the options below.
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1590 --program-prefix=PREFIX prepend PREFIX to installed program names
1591 --program-suffix=SUFFIX append SUFFIX to installed program names
1592 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1595 --build=BUILD configure
for building on BUILD
[guessed
]
1596 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1597 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1601 if test -n "$ac_init_help"; then
1606 --disable-option-checking ignore unrecognized
--enable/--with options
1607 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1608 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1609 --enable-maintainer-mode enable make rules and dependencies not useful
1610 (and sometimes confusing
) to the casual installer
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1614 Some influential environment variables
:
1615 CC C compiler
command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1618 nonstandard directory
<lib dir
>
1619 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1620 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1621 you have headers
in a nonstandard directory
<include dir
>
1624 Use these variables to override the choices made by
`configure' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1627 Report bugs to the package provider.
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1691 generated by GNU Autoconf 2.64
1693 Copyright (C) 2009 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext
1711 if { { ac_try="$ac_compile"
1713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1714 *) ac_try_echo
=$ac_try;;
1716 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1720 if test -s conftest.err
; then
1721 grep -v '^ *+' conftest.err
>conftest.er1
1722 cat conftest.er1
>&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.
$ac_objext; then :
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.
$ac_ext >&5
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1740 } # ac_fn_c_try_compile
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1748 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } >/dev/null && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1784 ac_fn_c_check_header_mongrel ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1808 ac_header_compiler=no
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1824 ac_header_preproc=no
1826 rm -f conftest.err conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1856 eval "$3=\$ac_header_compiler"
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_check_header_mongrel
1866 # ac_fn_c_try_run LINENO
1867 # ----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1869 # that executables *can* be run.
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if { { ac_try="$ac_link"
1875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1876 *) ac_try_echo
=$ac_try;;
1878 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>&5
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1884 { { case "(($ac_try" in
1885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_try") 2>&5
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; }; }; then :
1896 $as_echo "$as_me: program exited with status $ac_status" >&5
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 ac_retval=$ac_status
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists and can be compiled using the include files in
1911 # INCLUDES, setting the cache variable VAR accordingly.
1912 ac_fn_c_check_header_compile ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1925 if ac_fn_c_try_compile "$LINENO"; then :
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 } # ac_fn_c_check_header_compile
1939 # ac_fn_c_try_link LINENO
1940 # -----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 rm -f conftest.$ac_objext conftest$ac_exeext
1946 if { { ac_try="$ac_link"
1948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1949 *) ac_try_echo
=$ac_try;;
1951 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>conftest.err
1955 if test -s conftest.err
; then
1956 grep -v '^ *+' conftest.err
>conftest.er1
1957 cat conftest.er1
>&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && {
1962 test -z "$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest
$ac_exeext && {
1965 test "$cross_compiling" = yes ||
1966 $as_test_x conftest
$ac_exeext
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.
$ac_ext >&5
1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977 # interfere with the next link command; also delete a directory that is
1978 # left behind by Apple's compiler. We do this before executing the actions.
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1983 } # ac_fn_c_try_link
1985 # ac_fn_c_check_func LINENO FUNC VAR
1986 # ----------------------------------
1987 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1988 ac_fn_c_check_func
()
1990 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2000 #define $2 innocuous_$2
2002 /* System header to define __stub macros and hopefully few prototypes,
2003 which can conflict with char $2 (); below.
2004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2005 <limits.h> exists even on freestanding compilers. */
2008 # include <limits.h>
2010 # include <assert.h>
2015 /* Override any GCC internal prototype to avoid an error.
2016 Use char because int might match the return type of a GCC
2017 builtin and then its argument prototype would still apply. */
2022 /* The GNU C library defines this for functions which it implements
2023 to always fail with ENOSYS. Some functions are actually named
2024 something starting with __ and the normal name is an alias. */
2025 #if defined __stub_$2 || defined __stub___$2
2037 if ac_fn_c_try_link
"$LINENO"; then :
2042 rm -f core conftest.err conftest.
$ac_objext \
2043 conftest
$ac_exeext conftest.
$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2050 } # ac_fn_c_check_func
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 ac_fn_c_compute_int
()
2059 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2075 if ac_fn_c_try_compile
"$LINENO"; then :
2078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 if ac_fn_c_try_compile
"$LINENO"; then :
2092 ac_hi
=$ac_mid; break
2094 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2095 if test $ac_lo -le $ac_mid; then
2099 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) < 0)];
2117 if ac_fn_c_try_compile
"$LINENO"; then :
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2126 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2133 if ac_fn_c_try_compile
"$LINENO"; then :
2134 ac_lo
=$ac_mid; break
2136 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2137 if test $ac_mid -le $ac_hi; then
2141 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 # Binary search between lo and hi bounds.
2152 while test "x$ac_lo" != "x$ac_hi"; do
2153 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2167 if ac_fn_c_try_compile
"$LINENO"; then :
2170 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2175 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2190 FILE *f = fopen ("conftest.val", "w");
2195 long int i = longval ();
2198 fprintf (f, "%ld", i);
2202 unsigned long int i = ulongval ();
2205 fprintf (f, "%lu", i);
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2215 if ac_fn_c_try_run
"$LINENO"; then :
2216 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2220 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2221 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2228 } # ac_fn_c_compute_int
2230 # ac_fn_c_check_decl LINENO SYMBOL VAR
2231 # ------------------------------------
2232 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2233 ac_fn_c_check_decl
()
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2237 $as_echo_n "checking whether $2 is declared... " >&6; }
2238 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2255 if ac_fn_c_try_compile
"$LINENO"; then :
2260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2267 } # ac_fn_c_check_decl
2269 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2270 # -------------------------------------------
2271 # Tests whether TYPE exists after having included INCLUDES, setting cache
2272 # variable VAR accordingly.
2273 ac_fn_c_check_type
()
2275 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2294 if ac_fn_c_try_compile
"$LINENO"; then :
2295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2307 if ac_fn_c_try_compile
"$LINENO"; then :
2312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2321 } # ac_fn_c_check_type
2322 cat >config.log
<<_ACEOF
2323 This file contains any messages produced by compilers while
2324 running configure, to aid debugging if configure makes a mistake.
2326 It was created by $as_me, which was
2327 generated by GNU Autoconf 2.64. Invocation command line was
2339 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2340 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2341 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2342 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2343 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2345 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2346 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2348 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2349 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2350 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2351 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2352 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2353 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2354 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir
=.
2363 $as_echo "PATH: $as_dir"
2379 # Keep a trace of the command line.
2380 # Strip out --no-create and --no-recursion so they do not pile up.
2381 # Strip out --silent because we don't want to record it for future runs.
2382 # Also quote any args containing shell meta-characters.
2383 # Make two passes to allow for proper duplicate-argument suppression.
2387 ac_must_keep_next
=false
2393 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2394 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2395 |
-silent |
--silent |
--silen |
--sile |
--sil)
2398 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2403 as_fn_append ac_configure_args1
" '$ac_arg'"
2404 if test $ac_must_keep_next = true
; then
2405 ac_must_keep_next
=false
# Got value, back to normal.
2408 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2409 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2410 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2411 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2412 case "$ac_configure_args0 " in
2413 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416 -* ) ac_must_keep_next
=true
;;
2419 as_fn_append ac_configure_args
" '$ac_arg'"
2424 { ac_configure_args0
=; unset ac_configure_args0
;}
2425 { ac_configure_args1
=; unset ac_configure_args1
;}
2427 # When interrupted or exit'd, cleanup temporary files, and complete
2428 # config.log. We remove comments because anyway the quotes in there
2429 # would cause problems or look ugly.
2430 # WARNING: Use '\'' to represent an apostrophe within the trap.
2431 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2432 trap 'exit_status=$?
2433 # Save into config.log some information that might help in debugging.
2438 ## ---------------- ##
2439 ## Cache variables. ##
2440 ## ---------------- ##
2443 # The following way of writing the cache mishandles newlines in values,
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2476 ## ----------------- ##
2477 ## Output variables. ##
2478 ## ----------------- ##
2481 for ac_var in $ac_subst_vars
2483 eval ac_val=\$$ac_var
2485 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2487 $as_echo "$ac_var='\''$ac_val'\''"
2491 if test -n "$ac_subst_files"; then
2493 ## ------------------- ##
2494 ## File substitutions. ##
2495 ## ------------------- ##
2498 for ac_var
in $ac_subst_files
2500 eval ac_val
=\$
$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2509 if test -s confdefs.h; then
2519 test "$ac_signal" != 0 &&
2520 $as_echo "$as_me: caught signal $ac_signal"
2521 $as_echo "$as_me: exit $exit_status"
2523 rm -f core *.core core.conftest.* &&
2524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527 for ac_signal
in 1 2 13 15; do
2528 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2533 rm -f -r conftest
* confdefs.h
2535 $as_echo "/* confdefs.h */" > confdefs.h
2537 # Predefined preprocessor variables.
2539 cat >>confdefs.h
<<_ACEOF
2540 #define PACKAGE_NAME "$PACKAGE_NAME"
2543 cat >>confdefs.h
<<_ACEOF
2544 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547 cat >>confdefs.h
<<_ACEOF
2548 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2551 cat >>confdefs.h
<<_ACEOF
2552 #define PACKAGE_STRING "$PACKAGE_STRING"
2555 cat >>confdefs.h
<<_ACEOF
2556 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559 cat >>confdefs.h
<<_ACEOF
2560 #define PACKAGE_URL "$PACKAGE_URL"
2564 # Let the site file select an alternate cache file if it wants to.
2565 # Prefer an explicitly selected file to automatically selected ones.
2568 if test -n "$CONFIG_SITE"; then
2569 ac_site_file1
=$CONFIG_SITE
2570 elif test "x$prefix" != xNONE
; then
2571 ac_site_file1
=$prefix/share
/config.site
2572 ac_site_file2
=$prefix/etc
/config.site
2574 ac_site_file1
=$ac_default_prefix/share
/config.site
2575 ac_site_file2
=$ac_default_prefix/etc
/config.site
2577 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2579 test "x$ac_site_file" = xNONE
&& continue
2580 if test -r "$ac_site_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2582 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2583 sed 's/^/| /' "$ac_site_file" >&5
2588 if test -r "$cache_file"; then
2589 # Some versions of bash will fail to source /dev/null (special
2590 # files actually), so we avoid doing that.
2591 if test -f "$cache_file"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2593 $as_echo "$as_me: loading cache $cache_file" >&6;}
2595 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2596 *) .
"./$cache_file";;
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2601 $as_echo "$as_me: creating cache $cache_file" >&6;}
2605 gl_func_list
="$gl_func_list btowc"
2606 gl_func_list
="$gl_func_list isblank"
2607 gl_func_list
="$gl_func_list iswctype"
2608 gl_func_list
="$gl_func_list mbsrtowcs"
2609 gl_func_list
="$gl_func_list mempcpy"
2610 gl_func_list
="$gl_func_list wmemchr"
2611 gl_func_list
="$gl_func_list wmemcpy"
2612 gl_func_list
="$gl_func_list wmempcpy"
2613 gl_header_list
="$gl_header_list wctype.h"
2614 gl_fnmatch_required
=GNU
2615 gl_header_list
="$gl_header_list wchar.h"
2616 gl_header_list
="$gl_header_list stdint.h"
2617 gl_header_list
="$gl_header_list inttypes.h"
2618 gl_header_list
="$gl_header_list unistd.h"
2619 gl_func_list
="$gl_func_list symlink"
2620 gl_func_list
="$gl_func_list mbsinit"
2621 gl_func_list
="$gl_func_list mbrtowc"
2622 gl_header_list
="$gl_header_list sys/mman.h"
2623 gl_func_list
="$gl_func_list mprotect"
2624 gl_header_list
="$gl_header_list features.h"
2625 gl_func_list
="$gl_func_list iswcntrl"
2626 # Check that the precious variables saved in the cache have kept the same
2628 ac_cache_corrupted
=false
2629 for ac_var
in $ac_precious_vars; do
2630 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2631 eval ac_new_set
=\
$ac_env_${ac_var}_set
2632 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2633 eval ac_new_val
=\
$ac_env_${ac_var}_value
2634 case $ac_old_set,$ac_new_set in
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2637 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2638 ac_cache_corrupted
=: ;;
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2641 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2642 ac_cache_corrupted
=: ;;
2645 if test "x$ac_old_val" != "x$ac_new_val"; then
2646 # differences in whitespace do not lead to failure.
2647 ac_old_val_w
=`echo x $ac_old_val`
2648 ac_new_val_w
=`echo x $ac_new_val`
2649 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2651 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2652 ac_cache_corrupted
=:
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2655 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2656 eval $ac_var=\
$ac_old_val
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2659 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2661 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2664 # Pass precious variables to config.status.
2665 if test "$ac_new_set" = set; then
2667 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2668 *) ac_arg
=$ac_var=$ac_new_val ;;
2670 case " $ac_configure_args " in
2671 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2672 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2676 if $ac_cache_corrupted; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2680 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2681 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2683 ## -------------------- ##
2684 ## Main body of script. ##
2685 ## -------------------- ##
2688 ac_cpp
='$CPP $CPPFLAGS'
2689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2694 ac_config_headers
="$ac_config_headers config.h:config.in"
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699 # Check whether --enable-maintainer-mode was given.
2700 if test "${enable_maintainer_mode+set}" = set; then :
2701 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2703 USE_MAINTAINER_MODE
=no
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2707 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2708 if test $USE_MAINTAINER_MODE = yes; then
2709 MAINTAINER_MODE_TRUE
=
2710 MAINTAINER_MODE_FALSE
='#'
2712 MAINTAINER_MODE_TRUE
='#'
2713 MAINTAINER_MODE_FALSE
=
2716 MAINT
=$MAINTAINER_MODE_TRUE
2721 ac_cpp
='$CPP $CPPFLAGS'
2722 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC
="$CC" # Let the user override the test.
2736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir
=.
2741 for ac_exec_ext
in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2764 if test -z "$ac_cv_prog_CC"; then
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc
; ac_word
=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir
=.
2781 for ac_exec_ext
in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_ac_ct_CC
="gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796 $as_echo "$ac_ct_CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2802 if test "x$ac_ct_CC" = x
; then
2805 case $cross_compiling:$ac_tool_warned in
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2809 ac_tool_warned
=yes ;;
2817 if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2820 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_CC+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC
="$CC" # Let the user override the test.
2829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir
=.
2834 for ac_exec_ext
in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2858 if test -z "$CC"; then
2859 # Extract the first word of "cc", so it can be a program name with args.
2860 set dummy cc
; ac_word
=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC
="$CC" # Let the user override the test.
2870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir
=.
2875 for ac_exec_ext
in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878 ac_prog_rejected
=yes
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy
$ac_cv_prog_CC
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2898 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2914 if test -z "$CC"; then
2915 if test -n "$ac_tool_prefix"; then
2916 for ac_prog
in cl.exe
2918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if test "${ac_cv_prog_CC+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC
="$CC" # Let the user override the test.
2928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir
=.
2933 for ac_exec_ext
in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2955 test -n "$CC" && break
2958 if test -z "$CC"; then
2960 for ac_prog
in cl.exe
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy
$ac_prog; ac_word
=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir
=.
2977 for ac_exec_ext
in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC
="$ac_prog"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2999 test -n "$ac_ct_CC" && break
3002 if test "x$ac_ct_CC" = x
; then
3005 case $cross_compiling:$ac_tool_warned in
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned
=yes ;;
3018 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error
"no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details." "$LINENO" 5; }
3023 # Provide some information about the compiler.
3024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3027 for ac_option
in --version -v -V -qversion; do
3028 { { ac_try
="$ac_compiler $ac_option >&5"
3030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3037 if test -s conftest.err; then
3039 ... rest of stderr output deleted ...
3040 10q' conftest.err >conftest.er1
3041 cat conftest.er1 >&5
3042 rm -f conftest.er1 conftest.err
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3054 FILE *f = fopen ("conftest.out", "w");
3055 return ferror (f) || fclose (f) != 0;
3061 ac_clean_files_save=$ac_clean_files
3062 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3063 # Try to create an executable without -o first, disregard a.out.
3064 # It will help us diagnose broken compilers, and finding out an intuition
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067 $as_echo_n "checking for C compiler default output file name... " >&6; }
3068 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3070 # The possible output files:
3071 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3074 for ac_file in $ac_files
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083 if { { ac_try="$ac_link_default"
3085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3086 *) ac_try_echo
=$ac_try;;
3088 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link_default") 2>&5
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3097 # so that the user can short-circuit this test for compilers unknown to
3099 for ac_file
in $ac_files ''
3101 test -f "$ac_file" ||
continue
3103 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3106 # We found the default executable, but exeext='' is most
3110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3112 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 # We set ac_cv_exeext here because the later test for it is not
3115 # safe: cross compilers may not add the suffix if given an `-o'
3116 # argument, so we may need to know it at that point already.
3117 # Even if this section looks crufty: it has the advantage of
3124 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3130 $as_echo "$ac_file" >&6; }
3131 if test -z "$ac_file"; then :
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.
$ac_ext >&5
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 { as_fn_set_status
77
3138 as_fn_error
"C compiler cannot create executables
3139 See \`config.log' for more details." "$LINENO" 5; }; }
3141 ac_exeext
=$ac_cv_exeext
3143 # Check that the compiler produces executables we can run. If not, either
3144 # the compiler is broken, or we cross compile.
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3146 $as_echo_n "checking whether the C compiler works... " >&6; }
3147 # If not cross compiling, check that we can run a simple program.
3148 if test "$cross_compiling" != yes; then
3149 if { ac_try
='./$ac_file'
3150 { { case "(($ac_try" in
3151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_try") 2>&5
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; }; then
3162 if test "$cross_compiling" = maybe; then
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error "cannot run C compiled programs.
3168 If you meant to cross compile
, use \
`--host'.
3169 See \`config.log
' for more details." "$LINENO" 5; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3177 ac_clean_files=$ac_clean_files_save
3178 # Check that the compiler produces executables we can run. If not, either
3179 # the compiler is broken, or we cross compile.
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3181 $as_echo_n "checking whether we are cross compiling... " >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3183 $as_echo "$cross_compiling" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186 $as_echo_n "checking for suffix of executables... " >&6; }
3187 if { { ac_try="$ac_link"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_link") 2>&5
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
3198 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3202 for ac_file
in conftest.exe conftest conftest.
*; do
3203 test -f "$ac_file" ||
continue
3205 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3206 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." "$LINENO" 5; }
3217 rm -f conftest
$ac_cv_exeext
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219 $as_echo "$ac_cv_exeext" >&6; }
3221 rm -f conftest.
$ac_ext
3222 EXEEXT
=$ac_cv_exeext
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3225 $as_echo_n "checking for suffix of object files... " >&6; }
3226 if test "${ac_cv_objext+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
3229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3240 rm -f conftest.o conftest.obj
3241 if { { ac_try
="$ac_compile"
3243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compile") 2>&5
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 for ac_file in conftest.o conftest.obj conftest.*; do
3253 test -f "$ac_file" || continue;
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error "cannot compute suffix of object files
: cannot compile
3267 See \
`config.log' for more details." "$LINENO" 5; }
3269 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3272 $as_echo "$ac_cv_objext" >&6; }
3273 OBJEXT=$ac_cv_objext
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3276 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3277 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3294 if ac_fn_c_try_compile "$LINENO"; then :
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3304 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3305 if test $ac_compiler_gnu = yes; then
3310 ac_test_CFLAGS=${CFLAGS+set}
3311 ac_save_CFLAGS=$CFLAGS
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3313 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3314 if test "${ac_cv_prog_cc_g+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3317 ac_save_c_werror_flag=$ac_c_werror_flag
3318 ac_c_werror_flag=yes
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3332 if ac_fn_c_try_compile "$LINENO"; then :
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 if ac_fn_c_try_compile "$LINENO"; then :
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3374 $as_echo "$ac_cv_prog_cc_g" >&6; }
3375 if test "$ac_test_CFLAGS" = set; then
3376 CFLAGS=$ac_save_CFLAGS
3377 elif test $ac_cv_prog_cc_g = yes; then
3378 if test "$GCC" = yes; then
3384 if test "$GCC" = yes; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3391 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3392 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3395 ac_cv_prog_cc_c89=no
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3401 #include <sys/types.h>
3402 #include <sys/stat.h>
3403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3404 struct buf { int x; };
3405 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406 static char *e (p, i)
3412 static char *f (char * (*g) (char **, int), char **p, ...)
3417 s = g (p, va_arg (v,int));
3422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3423 function prototypes and stuff, but not '\xHH' hex character constants.
3424 These don't provoke an error unfortunately, instead are silently treated
3425 as 'x'. The following induces an error, until -std is added to get
3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3427 array size at least. It's necessary to write '\x00'==0 to get something
3428 that's true only with -std. */
3429 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432 inside strings and character constants. */
3434 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3436 int test (int i, double x);
3437 struct s1 {int (*f) (int a);};
3438 struct s2 {int (*f) (double a);};
3439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3450 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3453 CC="$ac_save_CC $ac_arg"
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_c89=$ac_arg
3457 rm -f core conftest.err conftest.$ac_objext
3458 test "x$ac_cv_prog_cc_c89" != "xno" && break
3460 rm -f conftest.$ac_ext
3465 case "x$ac_cv_prog_cc_c89" in
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3468 $as_echo "none needed" >&6; } ;;
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3471 $as_echo "unsupported" >&6; } ;;
3473 CC="$CC $ac_cv_prog_cc_c89"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3475 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3477 if test "x$ac_cv_prog_cc_c89" != xno; then :
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3489 for ac_t in install-sh install.sh shtool; do
3490 if test -f "$ac_dir/$ac_t"; then
3492 ac_install_sh="$ac_aux_dir/$ac_t -c"
3497 if test -z "$ac_aux_dir"; then
3498 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3501 # These three variables are undocumented and unsupported,
3502 # and are intended to be withdrawn in a future Autoconf release.
3503 # They can cause serious problems if a builder's source tree is in a directory
3504 # whose full name contains unusual characters.
3505 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3506 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3507 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3510 # Make sure we can run config.sub.
3511 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3512 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3515 $as_echo_n "checking build system type... " >&6; }
3516 if test "${ac_cv_build+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 ac_build_alias=$build_alias
3520 test "x$ac_build_alias" = x &&
3521 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3522 test "x$ac_build_alias" = x &&
3523 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3524 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3525 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3529 $as_echo "$ac_cv_build" >&6; }
3530 case $ac_cv_build in
3532 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3535 ac_save_IFS=$IFS; IFS='-'
3541 # Remember, the first character of IFS is used to create $*,
3542 # except with old shells:
3545 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3549 $as_echo_n "checking host system type... " >&6; }
3550 if test "${ac_cv_host+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test "x$host_alias" = x; then
3554 ac_cv_host=$ac_cv_build
3556 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3557 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3562 $as_echo "$ac_cv_host" >&6; }
3565 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3568 ac_save_IFS=$IFS; IFS='-'
3574 # Remember, the first character of IFS is used to create $*,
3575 # except with old shells:
3578 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3588 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3589 # On Suns, sometimes $CPP names a directory.
3590 if test -n "$CPP" && test -d "$CPP"; then
3593 if test -z "$CPP"; then
3594 if test "${ac_cv_prog_CPP+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3597 # Double quotes because CPP needs to be expanded
3598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3601 for ac_c_preproc_warn_flag in '' yes
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
3605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
3607 # On the NeXT, cc -E runs the code through the compiler's parser,
3608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3612 # include <limits.h>
3614 # include <assert.h>
3618 if ac_fn_c_try_cpp "$LINENO"; then :
3621 # Broken: fails on valid input.
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3632 if ac_fn_c_try_cpp "$LINENO"; then :
3633 # Broken: success on invalid input.
3636 # Passes both tests.
3640 rm -f conftest.err conftest.$ac_ext
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.
$ac_ext
3645 if $ac_preproc_ok; then :
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3658 $as_echo "$CPP" >&6; }
3660 for ac_c_preproc_warn_flag
in '' yes
3662 # Use a header file that comes with gcc, so configuring glibc
3663 # with a fresh cross-compiler works.
3664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665 # <limits.h> exists even on freestanding compilers.
3666 # On the NeXT, cc -E runs the code through the compiler's parser,
3667 # not just through cpp. "Syntax error" is here to catch this case.
3668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3671 # include <limits.h>
3673 # include <assert.h>
3677 if ac_fn_c_try_cpp
"$LINENO"; then :
3680 # Broken: fails on valid input.
3683 rm -f conftest.err conftest.
$ac_ext
3685 # OK, works on sane cases. Now check whether nonexistent headers
3686 # can be detected and how.
3687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <ac_nonexistent.h>
3691 if ac_fn_c_try_cpp
"$LINENO"; then :
3692 # Broken: success on invalid input.
3695 # Passes both tests.
3699 rm -f conftest.err conftest.
$ac_ext
3702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3703 rm -f conftest.err conftest.
$ac_ext
3704 if $ac_preproc_ok; then :
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3710 See \`config.log' for more details." "$LINENO" 5; }
3714 ac_cpp
='$CPP $CPPFLAGS'
3715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3721 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3722 if test "${ac_cv_path_GREP+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -z "$GREP"; then
3726 ac_path_GREP_found
=false
3727 # Loop through the user's path and test for each of PROGNAME-LIST
3728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3729 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3732 test -z "$as_dir" && as_dir
=.
3733 for ac_prog
in grep ggrep
; do
3734 for ac_exec_ext
in '' $ac_executable_extensions; do
3735 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3736 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3737 # Check for GNU ac_path_GREP and select it if it is found.
3738 # Check for GNU $ac_path_GREP
3739 case `"$ac_path_GREP" --version 2>&1` in
3741 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3744 $as_echo_n 0123456789 >"conftest.in"
3747 cat "conftest.in" "conftest.in" >"conftest.tmp"
3748 mv "conftest.tmp" "conftest.in"
3749 cp "conftest.in" "conftest.nl"
3750 $as_echo 'GREP' >> "conftest.nl"
3751 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3752 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3753 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3754 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3755 # Best one so far, save it but keep looking for a better one
3756 ac_cv_path_GREP
="$ac_path_GREP"
3757 ac_path_GREP_max
=$ac_count
3759 # 10*(2^10) chars as input seems more than enough
3760 test $ac_count -gt 10 && break
3762 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3765 $ac_path_GREP_found && break 3
3770 if test -z "$ac_cv_path_GREP"; then
3771 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3774 ac_cv_path_GREP
=$GREP
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3779 $as_echo "$ac_cv_path_GREP" >&6; }
3780 GREP
="$ac_cv_path_GREP"
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3784 $as_echo_n "checking for egrep... " >&6; }
3785 if test "${ac_cv_path_EGREP+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3788 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3789 then ac_cv_path_EGREP
="$GREP -E"
3791 if test -z "$EGREP"; then
3792 ac_path_EGREP_found
=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3795 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3798 test -z "$as_dir" && as_dir
=.
3799 for ac_prog
in egrep; do
3800 for ac_exec_ext
in '' $ac_executable_extensions; do
3801 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3802 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3803 # Check for GNU ac_path_EGREP and select it if it is found.
3804 # Check for GNU $ac_path_EGREP
3805 case `"$ac_path_EGREP" --version 2>&1` in
3807 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3810 $as_echo_n 0123456789 >"conftest.in"
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 $as_echo 'EGREP' >> "conftest.nl"
3817 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3818 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3819 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3820 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_EGREP
="$ac_path_EGREP"
3823 ac_path_EGREP_max
=$ac_count
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3828 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3831 $ac_path_EGREP_found && break 3
3836 if test -z "$ac_cv_path_EGREP"; then
3837 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3840 ac_cv_path_EGREP
=$EGREP
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3846 $as_echo "$ac_cv_path_EGREP" >&6; }
3847 EGREP
="$ac_cv_path_EGREP"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3851 $as_echo_n "checking for ANSI C header files... " >&6; }
3852 if test "${ac_cv_header_stdc+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3870 if ac_fn_c_try_compile
"$LINENO"; then :
3871 ac_cv_header_stdc
=yes
3873 ac_cv_header_stdc
=no
3875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3885 $EGREP "memchr" >/dev
/null
2>&1; then :
3888 ac_cv_header_stdc
=no
3894 if test $ac_cv_header_stdc = yes; then
3895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "free" >/dev
/null
2>&1; then :
3905 ac_cv_header_stdc
=no
3911 if test $ac_cv_header_stdc = yes; then
3912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3913 if test "$cross_compiling" = yes; then :
3916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3920 #if ((' ' & 0x0FF) == 0x020)
3921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3924 # define ISLOWER(c) \
3925 (('a' <= (c) && (c) <= 'i') \
3926 || ('j' <= (c) && (c) <= 'r') \
3927 || ('s' <= (c) && (c) <= 'z'))
3928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3936 for (i = 0; i < 256; i++)
3937 if (XOR (islower (i), ISLOWER (i))
3938 || toupper (i) != TOUPPER (i))
3943 if ac_fn_c_try_run
"$LINENO"; then :
3946 ac_cv_header_stdc
=no
3948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3955 $as_echo "$ac_cv_header_stdc" >&6; }
3956 if test $ac_cv_header_stdc = yes; then
3958 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3963 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3964 inttypes.h stdint.h unistd.h
3966 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3967 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3969 eval as_val
=\$
$as_ac_Header
3970 if test "x$as_val" = x
""yes; then :
3971 cat >>confdefs.h
<<_ACEOF
3972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3984 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3991 if test "$MINIX" = yes; then
3993 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3996 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3999 $as_echo "#define _MINIX 1" >>confdefs.h
4006 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4013 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4014 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4020 # define __EXTENSIONS__ 1
4021 $ac_includes_default
4030 if ac_fn_c_try_compile
"$LINENO"; then :
4031 ac_cv_safe_to_define___extensions__
=yes
4033 ac_cv_safe_to_define___extensions__
=no
4035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4038 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4039 test $ac_cv_safe_to_define___extensions__ = yes &&
4040 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4042 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4044 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4046 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4048 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4050 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4056 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4057 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4071 gl_cv_c_amsterdam_compiler
=yes
4073 gl_cv_c_amsterdam_compiler
=no
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4080 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4081 if test -z "$AR"; then
4082 if test $gl_cv_c_amsterdam_compiler = yes; then
4084 if test -z "$ARFLAGS"; then
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4090 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_AR+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$AR"; then
4097 ac_cv_prog_AR
="$AR" # Let the user override the test.
4099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir
=.
4104 for ac_exec_ext
in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 if test -n "$AR"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4119 $as_echo "$AR" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4127 if test -z "$ac_cv_prog_AR"; then
4129 # Extract the first word of "ar", so it can be a program name with args.
4130 set dummy
ar; ac_word
=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4136 if test -n "$ac_ct_AR"; then
4137 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir
=.
4144 for ac_exec_ext
in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_ac_ct_AR
="ar"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4157 if test -n "$ac_ct_AR"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4159 $as_echo "$ac_ct_AR" >&6; }
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4165 if test "x$ac_ct_AR" = x
; then
4168 case $cross_compiling:$ac_tool_warned in
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned
=yes ;;
4180 if test -z "$ARFLAGS"; then
4185 if test -z "$ARFLAGS"; then
4191 if test -z "$RANLIB"; then
4192 if test $gl_cv_c_amsterdam_compiler = yes; then
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4197 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$RANLIB"; then
4204 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 RANLIB
=$ac_cv_prog_RANLIB
4224 if test -n "$RANLIB"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4226 $as_echo "$RANLIB" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4234 if test -z "$ac_cv_prog_RANLIB"; then
4235 ac_ct_RANLIB
=$RANLIB
4236 # Extract the first word of "ranlib", so it can be a program name with args.
4237 set dummy ranlib
; ac_word
=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4243 if test -n "$ac_ct_RANLIB"; then
4244 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir
=.
4251 for ac_exec_ext
in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4264 if test -n "$ac_ct_RANLIB"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4266 $as_echo "$ac_ct_RANLIB" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4272 if test "x$ac_ct_RANLIB" = x
; then
4275 case $cross_compiling:$ac_tool_warned in
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned
=yes ;;
4281 RANLIB
=$ac_ct_RANLIB
4284 RANLIB
="$ac_cv_prog_RANLIB"
4299 # Code from module alloca:
4300 # Code from module alloca-opt:
4301 # Code from module configmake:
4302 # Code from module errno:
4303 # Code from module extensions:
4305 # Code from module extern-inline:
4306 # Code from module fnmatch:
4307 # Code from module fnmatch-gnu:
4308 # Code from module include_next:
4309 # Code from module inttypes:
4310 # Code from module inttypes-incomplete:
4311 # Code from module localcharset:
4312 # Code from module mbrtowc:
4313 # Code from module mbsinit:
4314 # Code from module mbsrtowcs:
4315 # Code from module memchr:
4316 # Code from module memmem:
4317 # Code from module memmem-simple:
4318 # Code from module multiarch:
4319 # Code from module snippet/arg-nonnull:
4320 # Code from module snippet/c++defs:
4321 # Code from module snippet/warn-on-use:
4322 # Code from module stdbool:
4323 # Code from module stddef:
4324 # Code from module stdint:
4325 # Code from module streq:
4326 # Code from module string:
4327 # Code from module strnlen1:
4328 # Code from module update-copyright:
4329 # Code from module verify:
4330 # Code from module wchar:
4331 # Code from module wctype-h:
4334 ac_cpp
='$CPP $CPPFLAGS'
4335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4338 if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4340 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if test "${ac_cv_prog_CC+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4346 if test -n "$CC"; then
4347 ac_cv_prog_CC
="$CC" # Let the user override the test.
4349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir
=.
4354 for ac_exec_ext
in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 if test -n "$CC"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369 $as_echo "$CC" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4377 if test -z "$ac_cv_prog_CC"; then
4379 # Extract the first word of "gcc", so it can be a program name with args.
4380 set dummy gcc
; ac_word
=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4386 if test -n "$ac_ct_CC"; then
4387 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir
=.
4394 for ac_exec_ext
in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_ac_ct_CC
="gcc"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4407 if test -n "$ac_ct_CC"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4409 $as_echo "$ac_ct_CC" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4415 if test "x$ac_ct_CC" = x
; then
4418 case $cross_compiling:$ac_tool_warned in
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned
=yes ;;
4430 if test -z "$CC"; then
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4433 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_CC+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC
="$CC" # Let the user override the test.
4442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir
=.
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 if test -n "$CC"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4462 $as_echo "$CC" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4471 if test -z "$CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473 set dummy cc
; ac_word
=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_CC+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 if test -n "$CC"; then
4480 ac_cv_prog_CC
="$CC" # Let the user override the test.
4483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir
=.
4488 for ac_exec_ext
in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected
=yes
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy
$ac_cv_prog_CC
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set CC to just the basename; use the full file name.
4511 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4517 if test -n "$CC"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4519 $as_echo "$CC" >&6; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4527 if test -z "$CC"; then
4528 if test -n "$ac_tool_prefix"; then
4529 for ac_prog
in cl.exe
4531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4532 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if test "${ac_cv_prog_CC+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4538 if test -n "$CC"; then
4539 ac_cv_prog_CC
="$CC" # Let the user override the test.
4541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir
=.
4546 for ac_exec_ext
in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 if test -n "$CC"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4561 $as_echo "$CC" >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4568 test -n "$CC" && break
4571 if test -z "$CC"; then
4573 for ac_prog
in cl.exe
4575 # Extract the first word of "$ac_prog", so it can be a program name with args.
4576 set dummy
$ac_prog; ac_word
=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4582 if test -n "$ac_ct_CC"; then
4583 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir
=.
4590 for ac_exec_ext
in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_CC
="$ac_prog"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4603 if test -n "$ac_ct_CC"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4605 $as_echo "$ac_ct_CC" >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4612 test -n "$ac_ct_CC" && break
4615 if test "x$ac_ct_CC" = x
; then
4618 case $cross_compiling:$ac_tool_warned in
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622 ac_tool_warned
=yes ;;
4631 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 as_fn_error
"no acceptable C compiler found in \$PATH
4634 See \`config.log' for more details." "$LINENO" 5; }
4636 # Provide some information about the compiler.
4637 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4640 for ac_option
in --version -v -V -qversion; do
4641 { { ac_try
="$ac_compiler $ac_option >&5"
4643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647 $as_echo "$ac_try_echo"; } >&5
4648 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4650 if test -s conftest.err; then
4652 ... rest of stderr output deleted ...
4653 10q' conftest.err >conftest.er1
4654 cat conftest.er1 >&5
4655 rm -f conftest.er1 conftest.err
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4662 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4663 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4680 if ac_fn_c_try_compile "$LINENO"; then :
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4690 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4691 if test $ac_compiler_gnu = yes; then
4696 ac_test_CFLAGS=${CFLAGS+set}
4697 ac_save_CFLAGS=$CFLAGS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4700 if test "${ac_cv_prog_cc_g+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4718 if ac_fn_c_try_compile "$LINENO"; then :
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4733 if ac_fn_c_try_compile "$LINENO"; then :
4736 ac_c_werror_flag=$ac_save_c_werror_flag
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 if ac_fn_c_try_compile "$LINENO"; then :
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4760 $as_echo "$ac_cv_prog_cc_g" >&6; }
4761 if test "$ac_test_CFLAGS" = set; then
4762 CFLAGS=$ac_save_CFLAGS
4763 elif test $ac_cv_prog_cc_g = yes; then
4764 if test "$GCC" = yes; then
4770 if test "$GCC" = yes; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4778 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 ac_cv_prog_cc_c89=no
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4787 #include <sys/types.h>
4788 #include <sys/stat.h>
4789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4790 struct buf { int x; };
4791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4792 static char *e (p, i)
4798 static char *f (char * (*g) (char **, int), char **p, ...)
4803 s = g (p, va_arg (v,int));
4808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4809 function prototypes and stuff, but not '\xHH' hex character constants.
4810 These don't provoke an error unfortunately, instead are silently treated
4811 as 'x'. The following induces an error, until -std is added to get
4812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4813 array size at least. It's necessary to write '\x00'==0 to get something
4814 that's true only with -std. */
4815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4818 inside strings and character constants. */
4820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4822 int test (int i, double x);
4823 struct s1 {int (*f) (int a);};
4824 struct s2 {int (*f) (double a);};
4825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4839 CC="$ac_save_CC $ac_arg"
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_prog_cc_c89=$ac_arg
4843 rm -f core conftest.err conftest.$ac_objext
4844 test "x$ac_cv_prog_cc_c89" != "xno" && break
4846 rm -f conftest.$ac_ext
4851 case "x$ac_cv_prog_cc_c89" in
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4854 $as_echo "none needed" >&6; } ;;
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4857 $as_echo "unsupported" >&6; } ;;
4859 CC="$CC $ac_cv_prog_cc_c89"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4863 if test "x$ac_cv_prog_cc_c89" != xno; then :
4868 ac_cpp='$CPP $CPPFLAGS'
4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4878 for ac_dir in ../.. "$srcdir"/../..; do
4879 for ac_t in install-sh install.sh shtool; do
4880 if test -f "$ac_dir/$ac_t"; then
4882 ac_install_sh="$ac_aux_dir/$ac_t -c"
4887 if test -z "$ac_aux_dir"; then
4888 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4891 # These three variables are undocumented and unsupported,
4892 # and are intended to be withdrawn in a future Autoconf release.
4893 # They can cause serious problems if a builder's source tree is in a directory
4894 # whose full name contains unusual characters.
4895 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4896 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4897 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4901 $as_echo_n "checking target system type... " >&6; }
4902 if test "${ac_cv_target+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4905 if test "x$target_alias" = x; then
4906 ac_cv_target=$ac_cv_host
4908 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4909 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4914 $as_echo "$ac_cv_target" >&6; }
4915 case $ac_cv_target in
4917 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4919 target=$ac_cv_target
4920 ac_save_IFS=$IFS; IFS='-'
4926 # Remember, the first character of IFS is used to create $*,
4927 # except with old shells:
4930 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
4933 # The aliases save the names the user supplied, while $host etc.
4934 # will get canonicalized.
4935 test -n "$target_alias" &&
4936 test "$program_prefix$program_suffix$program_transform_name" = \
4938 program_prefix=${target_alias}-
4946 LIBC_FATAL_STDERR_=1
4947 export LIBC_FATAL_STDERR_
4949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4950 # for constant arguments. Useless!
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4952 $as_echo_n "checking for working alloca.h... " >&6; }
4953 if test "${ac_cv_working_alloca_h+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4962 char *p = (char *) alloca (2 * sizeof (int));
4968 if ac_fn_c_try_link "$LINENO"; then :
4969 ac_cv_working_alloca_h=yes
4971 ac_cv_working_alloca_h=no
4973 rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4977 $as_echo "$ac_cv_working_alloca_h" >&6; }
4978 if test $ac_cv_working_alloca_h = yes; then
4980 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4985 $as_echo_n "checking for alloca... " >&6; }
4986 if test "${ac_cv_func_alloca_works+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4992 # define alloca __builtin_alloca
4995 # include <malloc.h>
4996 # define alloca _alloca
4998 # ifdef HAVE_ALLOCA_H
4999 # include <alloca.h>
5004 # ifndef alloca /* predefined by HP cc +Olibcalls */
5015 char *p = (char *) alloca (1);
5021 if ac_fn_c_try_link "$LINENO"; then :
5022 ac_cv_func_alloca_works=yes
5024 ac_cv_func_alloca_works=no
5026 rm -f core conftest.err conftest.$ac_objext \
5027 conftest$ac_exeext conftest.$ac_ext
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5030 $as_echo "$ac_cv_func_alloca_works" >&6; }
5032 if test $ac_cv_func_alloca_works = yes; then
5034 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5037 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5038 # that cause trouble. Some versions do not even contain alloca or
5039 # contain a buggy version. If you still want to use their alloca,
5040 # use ar to extract alloca.o from them instead of compiling alloca.c.
5046 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5048 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5052 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5053 if test "${ac_cv_os_cray+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 #if defined CRAY && ! defined CRAY2
5065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066 $EGREP "webecray" >/dev/null 2>&1; then :
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5075 $as_echo "$ac_cv_os_cray" >&6; }
5076 if test $ac_cv_os_cray = yes; then
5077 for ac_func in _getb67 GETB67 getb67; do
5078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5080 eval as_val=\$$as_ac_var
5081 if test "x$as_val" = x""yes; then :
5083 cat >>confdefs.h <<_ACEOF
5084 #define CRAY_STACKSEG_END $ac_func
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5094 $as_echo_n "checking stack direction for C alloca... " >&6; }
5095 if test "${ac_cv_c_stack_direction+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5098 if test "$cross_compiling" = yes; then :
5099 ac_cv_c_stack_direction=0
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 $ac_includes_default
5105 find_stack_direction (int *addr, int depth)
5110 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5111 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5116 main (int argc, char **argv)
5118 return find_stack_direction (0, argc + !argv + 20) < 0;
5121 if ac_fn_c_try_run "$LINENO"; then :
5122 ac_cv_c_stack_direction=1
5124 ac_cv_c_stack_direction=-1
5126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5127 conftest.$ac_objext conftest.beam conftest.$ac_ext
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5132 $as_echo "$ac_cv_c_stack_direction" >&6; }
5133 cat >>confdefs.h <<_ACEOF
5134 #define STACK_DIRECTION $ac_cv_c_stack_direction
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5143 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5144 if test "${gl_cv_have_include_next+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5147 rm -rf conftestd1a conftestd1b conftestd2
5148 mkdir conftestd1a conftestd1b conftestd2
5149 cat <<EOF > conftestd1a/conftest.h
5150 #define DEFINED_IN_CONFTESTD1
5151 #include_next <conftest.h>
5152 #ifdef DEFINED_IN_CONFTESTD2
5155 #error "include_next doesn't work"
5158 cat <<EOF > conftestd1b/conftest.h
5159 #define DEFINED_IN_CONFTESTD1
5161 #include_next <conftest.h>
5162 #ifdef DEFINED_IN_CONFTESTD2
5165 #error "include_next doesn't work"
5168 cat <<EOF > conftestd2/conftest.h
5169 #ifndef DEFINED_IN_CONFTESTD1
5170 #error "include_next test doesn't work"
5172 #define DEFINED_IN_CONFTESTD2
5174 gl_save_CPPFLAGS="$CPPFLAGS"
5175 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <conftest.h>
5180 if ac_fn_c_try_compile "$LINENO"; then :
5181 gl_cv_have_include_next=yes
5183 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <conftest.h>
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 gl_cv_have_include_next=buggy
5191 gl_cv_have_include_next=no
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 CPPFLAGS="$gl_save_CPPFLAGS"
5198 rm -rf conftestd1a conftestd1b conftestd2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5202 $as_echo "$gl_cv_have_include_next" >&6; }
5203 PRAGMA_SYSTEM_HEADER=
5204 if test $gl_cv_have_include_next = yes; then
5205 INCLUDE_NEXT=include_next
5206 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5207 if test -n "$GCC"; then
5208 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5211 if test $gl_cv_have_include_next = buggy; then
5212 INCLUDE_NEXT=include
5213 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5215 INCLUDE_NEXT=include
5216 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5223 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5224 if test "${gl_cv_pragma_columns+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "choke me" >/dev/null 2>&1; then :
5237 gl_cv_pragma_columns=yes
5239 gl_cv_pragma_columns=no
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5246 $as_echo "$gl_cv_pragma_columns" >&6; }
5247 if test $gl_cv_pragma_columns = yes; then
5248 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5257 $as_echo_n "checking for complete errno.h... " >&6; }
5258 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 #if !defined ETXTBSY
5275 #if !defined ENOLINK
5281 #if !defined EMULTIHOP
5284 #if !defined EBADMSG
5287 #if !defined EOVERFLOW
5290 #if !defined ENOTSUP
5293 #if !defined ENETRESET
5296 #if !defined ECONNABORTED
5305 #if !defined ECANCELED
5308 #if !defined EOWNERDEAD
5311 #if !defined ENOTRECOVERABLE
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "booboo" >/dev/null 2>&1; then :
5321 gl_cv_header_errno_h_complete=no
5323 gl_cv_header_errno_h_complete=yes
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5330 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5331 if test $gl_cv_header_errno_h_complete = yes; then
5342 if test $gl_cv_have_include_next = yes; then
5343 gl_cv_next_errno_h='<'errno.h'>'
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5346 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5347 if test "${gl_cv_next_errno_h+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5357 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5358 *) gl_absname_cpp="$ac_cpp" ;;
5363 gl_dirsep_regex='[/\\]'
5366 gl_dirsep_regex='\/'
5369 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5371 gl_header_literal_regex=`echo 'errno.h' \
5372 |
sed -e "$gl_make_literal_regex_sed"`
5373 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5374 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5379 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5380 sed -n "$gl_absolute_header_sed"`'"'
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5385 $as_echo "$gl_cv_next_errno_h" >&6; }
5387 NEXT_ERRNO_H=$gl_cv_next_errno_h
5389 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5390 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5391 gl_next_as_first_directive='<'errno.h'>'
5393 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5394 gl_next_as_first_directive=$gl_cv_next_errno_h
5396 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
5404 if test -n "$ERRNO_H"; then
5405 GL_GENERATE_ERRNO_H_TRUE=
5406 GL_GENERATE_ERRNO_H_FALSE='#'
5408 GL_GENERATE_ERRNO_H_TRUE='#'
5409 GL_GENERATE_ERRNO_H_FALSE=
5413 if test -n "$ERRNO_H"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5415 $as_echo_n "checking for EMULTIHOP value... " >&6; }
5416 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "yes" >/dev/null 2>&1; then :
5431 gl_cv_header_errno_h_EMULTIHOP=yes
5433 gl_cv_header_errno_h_EMULTIHOP=no
5437 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5441 #define _XOPEN_SOURCE_EXTENDED 1
5448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5449 $EGREP "yes" >/dev/null 2>&1; then :
5450 gl_cv_header_errno_h_EMULTIHOP=hidden
5454 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5455 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
5456 #define _XOPEN_SOURCE_EXTENDED 1
5458 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5470 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5471 case $gl_cv_header_errno_h_EMULTIHOP in
5473 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5476 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5484 if test -n "$ERRNO_H"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5486 $as_echo_n "checking for ENOLINK value... " >&6; }
5487 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 $EGREP "yes" >/dev/null 2>&1; then :
5502 gl_cv_header_errno_h_ENOLINK=yes
5504 gl_cv_header_errno_h_ENOLINK=no
5508 if test $gl_cv_header_errno_h_ENOLINK = no; then
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5512 #define _XOPEN_SOURCE_EXTENDED 1
5519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5520 $EGREP "yes" >/dev/null 2>&1; then :
5521 gl_cv_header_errno_h_ENOLINK=hidden
5525 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5526 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
5527 #define _XOPEN_SOURCE_EXTENDED 1
5529 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5541 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5542 case $gl_cv_header_errno_h_ENOLINK in
5544 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5547 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5555 if test -n "$ERRNO_H"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
5557 $as_echo_n "checking for EOVERFLOW value... " >&6; }
5558 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572 $EGREP "yes" >/dev/null 2>&1; then :
5573 gl_cv_header_errno_h_EOVERFLOW=yes
5575 gl_cv_header_errno_h_EOVERFLOW=no
5579 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5583 #define _XOPEN_SOURCE_EXTENDED 1
5590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5591 $EGREP "yes" >/dev/null 2>&1; then :
5592 gl_cv_header_errno_h_EOVERFLOW=hidden
5596 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
5597 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
5598 #define _XOPEN_SOURCE_EXTENDED 1
5600 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
5612 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
5613 case $gl_cv_header_errno_h_EOVERFLOW in
5615 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
5618 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5632 $as_echo_n "checking for mbstate_t... " >&6; }
5633 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5634 $as_echo_n "(cached) " >&6
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 $ac_includes_default
5639 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5641 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5642 included before <wchar.h>. */
5650 mbstate_t x; return sizeof x;
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_type_mbstate_t=yes
5658 ac_cv_type_mbstate_t=no
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5663 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5664 if test $ac_cv_type_mbstate_t = yes; then
5666 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5670 $as_echo "#define mbstate_t int" >>confdefs.h
5678 for ac_func in $gl_func_list
5680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5682 eval as_val=\$$as_ac_var
5683 if test "x$as_val" = x""yes; then :
5684 cat >>confdefs.h <<_ACEOF
5685 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5734 for ac_header in $gl_header_list
5736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5738 eval as_val=\$$as_ac_Header
5739 if test "x$as_val" = x""yes; then :
5740 cat >>confdefs.h <<_ACEOF
5741 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5754 $as_echo_n "checking for unsigned long long int... " >&6; }
5755 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5758 ac_cv_type_unsigned_long_long_int=yes
5759 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5763 /* For now, do not test the preprocessor; as of 2007 there are too many
5764 implementations with broken preprocessors. Perhaps this can
5765 be revisited in 2012. In the meantime, code should not expect
5766 #if to work with literals wider than 32 bits. */
5767 /* Test literals. */
5768 long long int ll = 9223372036854775807ll;
5769 long long int nll = -9223372036854775807LL;
5770 unsigned long long int ull = 18446744073709551615ULL;
5771 /* Test constant expressions. */
5772 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5774 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5780 /* Test availability of runtime routines for shift and division. */
5781 long long int llmax = 9223372036854775807ll;
5782 unsigned long long int ullmax = 18446744073709551615ull;
5783 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5784 | (llmax / ll) | (llmax % ll)
5785 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5786 | (ullmax / ull) | (ullmax % ull));
5792 if ac_fn_c_try_link "$LINENO"; then :
5795 ac_cv_type_unsigned_long_long_int=no
5797 rm -f core conftest.err conftest.$ac_objext \
5798 conftest$ac_exeext conftest.$ac_ext
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5802 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5803 if test $ac_cv_type_unsigned_long_long_int = yes; then
5805 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5812 $as_echo_n "checking for long long int... " >&6; }
5813 if test "${ac_cv_type_long_long_int+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5816 ac_cv_type_long_long_int=yes
5817 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5818 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5819 if test $ac_cv_type_long_long_int = yes; then
5820 if test "$cross_compiling" = yes; then :
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5828 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5829 # define LLONG_MAX (HALF - 1 + HALF)
5834 long long int n = 1;
5838 long long int m = n << i;
5841 if (LLONG_MAX / 2 < m)
5849 if ac_fn_c_try_run "$LINENO"; then :
5852 ac_cv_type_long_long_int=no
5854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5855 conftest.$ac_objext conftest.beam conftest.$ac_ext
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5862 $as_echo "$ac_cv_type_long_long_int" >&6; }
5863 if test $ac_cv_type_long_long_int = yes; then
5865 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5880 gl_cv_c_multiarch=no
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #ifndef __APPLE_CC__
5884 not a universal capable compiler
5889 if ac_fn_c_try_compile "$LINENO"; then :
5893 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5894 if test -n "$prev"; then
5896 i?86 | x86_64 | ppc | ppc64)
5897 if test -z "$arch" || test "$arch" = "$word"; then
5900 gl_cv_c_multiarch=yes
5906 if test "x$word" = "x-arch"; then
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 if test $gl_cv_c_multiarch = yes; then
5915 APPLE_UNIVERSAL_BUILD=1
5917 APPLE_UNIVERSAL_BUILD=0
5924 if test $ac_cv_type_long_long_int = yes; then
5925 HAVE_LONG_LONG_INT=1
5927 HAVE_LONG_LONG_INT=0
5931 if test $ac_cv_type_unsigned_long_long_int = yes; then
5932 HAVE_UNSIGNED_LONG_LONG_INT=1
5934 HAVE_UNSIGNED_LONG_LONG_INT=0
5945 if test $ac_cv_header_wchar_h = yes; then
5952 if test $ac_cv_header_inttypes_h = yes; then
5959 if test $ac_cv_header_sys_types_h = yes; then
5981 if test $gl_cv_have_include_next = yes; then
5982 gl_cv_next_stdint_h='<'stdint.h'>'
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5985 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5986 if test "${gl_cv_next_stdint_h+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5990 if test $ac_cv_header_stdint_h = yes; then
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5999 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6000 *) gl_absname_cpp="$ac_cpp" ;;
6005 gl_dirsep_regex='[/\\]'
6008 gl_dirsep_regex='\/'
6011 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6013 gl_header_literal_regex=`echo 'stdint.h' \
6014 |
sed -e "$gl_make_literal_regex_sed"`
6015 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6016 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6021 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6022 sed -n "$gl_absolute_header_sed"`'"'
6024 gl_cv_next_stdint_h='<'stdint.h'>'
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6030 $as_echo "$gl_cv_next_stdint_h" >&6; }
6032 NEXT_STDINT_H=$gl_cv_next_stdint_h
6034 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6035 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6036 gl_next_as_first_directive='<'stdint.h'>'
6038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6039 gl_next_as_first_directive=$gl_cv_next_stdint_h
6041 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6046 if test $ac_cv_header_stdint_h = yes; then
6053 if test $ac_cv_header_stdint_h = yes; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6055 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6056 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6059 gl_cv_header_working_stdint_h=no
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6064 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6066 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6067 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6068 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6072 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6073 included before <wchar.h>. */
6084 int8_t a1 = INT8_MAX;
6085 int8_t a1min = INT8_MIN;
6088 int16_t a2 = INT16_MAX;
6089 int16_t a2min = INT16_MIN;
6092 int32_t a3 = INT32_MAX;
6093 int32_t a3min = INT32_MIN;
6096 int64_t a4 = INT64_MAX;
6097 int64_t a4min = INT64_MIN;
6100 uint8_t b1 = UINT8_MAX;
6102 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6105 uint16_t b2 = UINT16_MAX;
6108 uint32_t b3 = UINT32_MAX;
6111 uint64_t b4 = UINT64_MAX;
6113 int_least8_t c1 = INT8_C (0x7f);
6114 int_least8_t c1max = INT_LEAST8_MAX;
6115 int_least8_t c1min = INT_LEAST8_MIN;
6116 int_least16_t c2 = INT16_C (0x7fff);
6117 int_least16_t c2max = INT_LEAST16_MAX;
6118 int_least16_t c2min = INT_LEAST16_MIN;
6119 int_least32_t c3 = INT32_C (0x7fffffff);
6120 int_least32_t c3max = INT_LEAST32_MAX;
6121 int_least32_t c3min = INT_LEAST32_MIN;
6122 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6123 int_least64_t c4max = INT_LEAST64_MAX;
6124 int_least64_t c4min = INT_LEAST64_MIN;
6125 uint_least8_t d1 = UINT8_C (0xff);
6126 uint_least8_t d1max = UINT_LEAST8_MAX;
6127 uint_least16_t d2 = UINT16_C (0xffff);
6128 uint_least16_t d2max = UINT_LEAST16_MAX;
6129 uint_least32_t d3 = UINT32_C (0xffffffff);
6130 uint_least32_t d3max = UINT_LEAST32_MAX;
6131 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6132 uint_least64_t d4max = UINT_LEAST64_MAX;
6133 int_fast8_t e1 = INT_FAST8_MAX;
6134 int_fast8_t e1min = INT_FAST8_MIN;
6135 int_fast16_t e2 = INT_FAST16_MAX;
6136 int_fast16_t e2min = INT_FAST16_MIN;
6137 int_fast32_t e3 = INT_FAST32_MAX;
6138 int_fast32_t e3min = INT_FAST32_MIN;
6139 int_fast64_t e4 = INT_FAST64_MAX;
6140 int_fast64_t e4min = INT_FAST64_MIN;
6141 uint_fast8_t f1 = UINT_FAST8_MAX;
6142 uint_fast16_t f2 = UINT_FAST16_MAX;
6143 uint_fast32_t f3 = UINT_FAST32_MAX;
6144 uint_fast64_t f4 = UINT_FAST64_MAX;
6146 intptr_t g = INTPTR_MAX;
6147 intptr_t gmin = INTPTR_MIN;
6150 uintptr_t h = UINTPTR_MAX;
6152 intmax_t i = INTMAX_MAX;
6153 uintmax_t j = UINTMAX_MAX;
6155 #include <limits.h> /* for CHAR_BIT */
6156 #define TYPE_MINIMUM(t) \
6157 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6158 #define TYPE_MAXIMUM(t) \
6159 ((t) ((t) 0 < (t) -1 \
6161 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6164 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6165 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6167 /* Detect bug in FreeBSD 6.0 / ia64. */
6168 int check_SIG_ATOMIC:
6169 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6170 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6172 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6174 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6175 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6177 /* Detect bug in mingw. */
6179 WINT_MIN == TYPE_MINIMUM (wint_t)
6180 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6183 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6185 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6187 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6189 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6191 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6194 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6197 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6200 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6202 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6203 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6204 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6205 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6206 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6207 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6208 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6209 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6210 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6211 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6212 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6223 if ac_fn_c_try_compile "$LINENO"; then :
6224 if test "$cross_compiling" = yes; then :
6225 gl_cv_header_working_stdint_h=yes
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6232 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6236 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6237 included before <wchar.h>. */
6249 #define MVAL(macro) MVAL1(macro)
6250 #define MVAL1(expression) #expression
6251 static const char *macro_values[] =
6285 for (mv = macro_values; *mv != NULL; mv++)
6287 const char *value = *mv;
6288 /* Test whether it looks like a cast expression. */
6289 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6290 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6291 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6292 || strncmp (value, "((int)"/*)*/, 6) == 0
6293 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6294 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6295 return mv - macro_values + 1;
6303 if ac_fn_c_try_run "$LINENO"; then :
6304 gl_cv_header_working_stdint_h=yes
6306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6307 conftest.$ac_objext conftest.beam conftest.$ac_ext
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6316 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6318 if test "$gl_cv_header_working_stdint_h" = yes; then
6321 for ac_header in sys/inttypes.h sys/bitypes.h
6323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6325 eval as_val=\$$as_ac_Header
6326 if test "x$as_val" = x""yes; then :
6327 cat >>confdefs.h <<_ACEOF
6328 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6335 if test $ac_cv_header_sys_inttypes_h = yes; then
6336 HAVE_SYS_INTTYPES_H=1
6338 HAVE_SYS_INTTYPES_H=0
6341 if test $ac_cv_header_sys_bitypes_h = yes; then
6342 HAVE_SYS_BITYPES_H=1
6344 HAVE_SYS_BITYPES_H=0
6350 if test $APPLE_UNIVERSAL_BUILD = 0; then
6353 for gltype in ptrdiff_t size_t ; do
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6355 $as_echo_n "checking for bit size of $gltype... " >&6; }
6356 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6357 $as_echo_n "(cached) " >&6
6359 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6360 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6361 included before <wchar.h>. */
6370 #include <limits.h>"; then :
6376 eval gl_cv_bitsizeof_${gltype}=\$result
6379 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382 eval result=\$gl_cv_bitsizeof_${gltype}
6383 if test $result = unknown; then
6386 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6387 cat >>confdefs.h <<_ACEOF
6388 #define BITSIZEOF_${GLTYPE} $result
6391 eval BITSIZEOF_${GLTYPE}=\$result
6398 for gltype in sig_atomic_t wchar_t wint_t ; do
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6400 $as_echo_n "checking for bit size of $gltype... " >&6; }
6401 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6404 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6405 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6406 included before <wchar.h>. */
6415 #include <limits.h>"; then :
6421 eval gl_cv_bitsizeof_${gltype}=\$result
6424 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 eval result=\$gl_cv_bitsizeof_${gltype}
6428 if test $result = unknown; then
6431 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6432 cat >>confdefs.h <<_ACEOF
6433 #define BITSIZEOF_${GLTYPE} $result
6436 eval BITSIZEOF_${GLTYPE}=\$result
6442 for gltype in sig_atomic_t wchar_t wint_t ; do
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6444 $as_echo_n "checking whether $gltype is signed... " >&6; }
6445 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6446 $as_echo_n "(cached) " >&6
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6451 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6452 included before <wchar.h>. */
6461 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6470 if ac_fn_c_try_compile "$LINENO"; then :
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 eval gl_cv_type_${gltype}_signed=\$result
6479 eval ac_res=\$gl_cv_type_${gltype}_signed
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6481 $as_echo "$ac_res" >&6; }
6482 eval result=\$gl_cv_type_${gltype}_signed
6483 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6484 if test "$result" = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define HAVE_SIGNED_${GLTYPE} 1
6489 eval HAVE_SIGNED_${GLTYPE}=1
6491 eval HAVE_SIGNED_${GLTYPE}=0
6496 gl_cv_type_ptrdiff_t_signed=yes
6497 gl_cv_type_size_t_signed=no
6498 if test $APPLE_UNIVERSAL_BUILD = 0; then
6501 for gltype in ptrdiff_t size_t ; do
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6503 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6504 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6505 $as_echo_n "(cached) " >&6
6507 eval gl_cv_type_${gltype}_suffix=no
6508 eval result=\$gl_cv_type_${gltype}_signed
6509 if test "$result" = yes; then
6514 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6517 l) gltype1='long int';;
6518 ll) gltype1='long long int';;
6519 i64) gltype1='__int64';;
6520 u) gltype1='unsigned int';;
6521 ul) gltype1='unsigned long int';;
6522 ull) gltype1='unsigned long long int';;
6523 ui64)gltype1='unsigned __int64';;
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6529 included before <wchar.h>. */
6539 extern $gltype1 foo;
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 eval gl_cv_type_${gltype}_suffix=\$glsuf
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 eval result=\$gl_cv_type_${gltype}_suffix
6553 test "$result" != no && break
6556 eval ac_res=\$gl_cv_type_${gltype}_suffix
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6558 $as_echo "$ac_res" >&6; }
6559 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6560 eval result=\$gl_cv_type_${gltype}_suffix
6561 test "$result" = no && result=
6562 eval ${GLTYPE}_SUFFIX=\$result
6563 cat >>confdefs.h <<_ACEOF
6564 #define ${GLTYPE}_SUFFIX $result
6573 for gltype in sig_atomic_t wchar_t wint_t ; do
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6575 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6576 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6577 $as_echo_n "(cached) " >&6
6579 eval gl_cv_type_${gltype}_suffix=no
6580 eval result=\$gl_cv_type_${gltype}_signed
6581 if test "$result" = yes; then
6586 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6589 l) gltype1='long int';;
6590 ll) gltype1='long long int';;
6591 i64) gltype1='__int64';;
6592 u) gltype1='unsigned int';;
6593 ul) gltype1='unsigned long int';;
6594 ull) gltype1='unsigned long long int';;
6595 ui64)gltype1='unsigned __int64';;
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6600 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6601 included before <wchar.h>. */
6611 extern $gltype1 foo;
6620 if ac_fn_c_try_compile "$LINENO"; then :
6621 eval gl_cv_type_${gltype}_suffix=\$glsuf
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 eval result=\$gl_cv_type_${gltype}_suffix
6625 test "$result" != no && break
6628 eval ac_res=\$gl_cv_type_${gltype}_suffix
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6630 $as_echo "$ac_res" >&6; }
6631 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6632 eval result=\$gl_cv_type_${gltype}_suffix
6633 test "$result" = no && result=
6634 eval ${GLTYPE}_SUFFIX=\$result
6635 cat >>confdefs.h <<_ACEOF
6636 #define ${GLTYPE}_SUFFIX $result
6643 if test $BITSIZEOF_WINT_T -lt 32; then
6650 if test -n "$STDINT_H"; then
6651 GL_GENERATE_STDINT_H_TRUE=
6652 GL_GENERATE_STDINT_H_FALSE='#'
6654 GL_GENERATE_STDINT_H_TRUE='#'
6655 GL_GENERATE_STDINT_H_FALSE=
6669 HAVE_DECL_IMAXABS=1;
6670 HAVE_DECL_IMAXDIV=1;
6671 HAVE_DECL_STRTOIMAX=1;
6672 HAVE_DECL_STRTOUMAX=1;
6673 REPLACE_STRTOIMAX=0;
6674 INT32_MAX_LT_INTMAX_MAX=1;
6675 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6676 PRI_MACROS_BROKEN=0;
6677 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6678 UINT32_MAX_LT_UINTMAX_MAX=1;
6679 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6707 if test $gl_cv_have_include_next = yes; then
6708 gl_cv_next_inttypes_h='<'inttypes.h'>'
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6711 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6712 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6716 if test $ac_cv_header_inttypes_h = yes; then
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <inttypes.h>
6725 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6726 *) gl_absname_cpp="$ac_cpp" ;;
6731 gl_dirsep_regex='[/\\]'
6734 gl_dirsep_regex='\/'
6737 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6739 gl_header_literal_regex=`echo 'inttypes.h' \
6740 |
sed -e "$gl_make_literal_regex_sed"`
6741 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6742 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6747 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6748 sed -n "$gl_absolute_header_sed"`'"'
6750 gl_cv_next_inttypes_h='<'inttypes.h'>'
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6756 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6758 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6760 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6762 gl_next_as_first_directive='<'inttypes.h'>'
6764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6765 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6767 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6776 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6777 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6779 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6780 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6781 $as_echo_n "(cached) " >&6
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 #include <inttypes.h>
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 eval "$as_gl_Symbol=yes"
6799 eval "$as_gl_Symbol=no"
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 eval ac_res=\$$as_gl_Symbol
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6805 $as_echo "$ac_res" >&6; }
6806 eval as_val=\$$as_gl_Symbol
6807 if test "x$as_val" = x""yes; then :
6808 cat >>confdefs.h <<_ACEOF
6809 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
6812 eval ac_cv_have_decl_$gl_func=yes
6818 for ac_header in inttypes.h
6820 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6821 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_INTTYPES_H 1
6830 if test $ac_cv_header_inttypes_h = yes; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6832 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6833 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6834 $as_echo_n "(cached) " >&6
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6840 #include <inttypes.h>
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 gt_cv_inttypes_pri_broken=no
6856 gt_cv_inttypes_pri_broken=yes
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6862 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6864 if test "$gt_cv_inttypes_pri_broken" = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define PRI_MACROS_BROKEN 1
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6878 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6879 if test "${am_cv_langinfo_codeset+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 #include <langinfo.h>
6888 char* cs = nl_langinfo(CODESET); return !cs;
6893 if ac_fn_c_try_link "$LINENO"; then :
6894 am_cv_langinfo_codeset=yes
6896 am_cv_langinfo_codeset=no
6898 rm -f core conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6903 $as_echo "$am_cv_langinfo_codeset" >&6; }
6904 if test $am_cv_langinfo_codeset = yes; then
6906 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6938 $as_echo_n "checking for working fcntl.h... " >&6; }
6939 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6942 if test "$cross_compiling" = yes; then :
6943 gl_cv_header_working_fcntl_h=cross-compiling
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <sys/types.h>
6948 #include <sys/stat.h>
6950 # include <unistd.h>
6951 #else /* on Windows with MSVC */
6953 # include <stdlib.h>
6954 # defined sleep(n) _sleep ((n) * 1000)
6961 #define O_NOFOLLOW 0
6963 static int const constants[] =
6965 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6966 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6973 int result = !constants;
6976 static char const sym[] = "conftest.sym";
6977 if (symlink ("/dev/null", sym) != 0)
6981 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
6988 if (unlink (sym) != 0 || symlink (".", sym) != 0)
6992 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7003 static char const file[] = "confdefs.h";
7004 int fd = open (file, O_RDONLY | O_NOATIME);
7010 if (fstat (fd, &st0) != 0)
7016 if (read (fd, &c, 1) != 1)
7020 if (close (fd) != 0)
7025 if (stat (file, &st1) != 0)
7028 if (st0.st_atime != st1.st_atime)
7040 if ac_fn_c_try_run "$LINENO"; then :
7041 gl_cv_header_working_fcntl_h=yes
7044 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7045 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7046 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7047 *) gl_cv_header_working_fcntl_h='no';;
7050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7051 conftest.$ac_objext conftest.beam conftest.$ac_ext
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7056 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7058 case $gl_cv_header_working_fcntl_h in #(
7059 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7063 cat >>confdefs.h <<_ACEOF
7064 #define HAVE_WORKING_O_NOATIME $ac_val
7068 case $gl_cv_header_working_fcntl_h in #(
7069 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7073 cat >>confdefs.h <<_ACEOF
7074 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7079 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7080 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7086 cat >>confdefs.h <<_ACEOF
7087 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7093 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7094 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7100 #include <features.h>
7101 #ifdef __GNU_LIBRARY__
7102 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112 $EGREP "Lucky" >/dev/null 2>&1; then :
7113 ac_cv_gnu_library_2_1=yes
7115 ac_cv_gnu_library_2_1=no
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7123 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7125 GLIBC21="$ac_cv_gnu_library_2_1"
7135 GNULIB_MBSNRTOWCS=0;
7138 GNULIB_WCSNRTOMBS=0;
7155 GNULIB_WCSCASECMP=0;
7156 GNULIB_WCSNCASECMP=0;
7206 HAVE_DECL_WCWIDTH=1;
7207 REPLACE_MBSTATE_T=0;
7213 REPLACE_MBSRTOWCS=0;
7214 REPLACE_MBSNRTOWCS=0;
7216 REPLACE_WCSRTOMBS=0;
7217 REPLACE_WCSNRTOMBS=0;
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
7235 $as_echo_n "checking for a traditional japanese locale... " >&6; }
7236 if test "${gt_cv_locale_ja+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7245 #if HAVE_LANGINFO_CODESET
7246 # include <langinfo.h>
7255 /* Check whether the given locale name is recognized by the system. */
7256 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7257 /* On native Windows, setlocale(category, "") looks at the system settings,
7258 not at the environment variables. Also, when an encoding suffix such
7259 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7260 category of the locale to "C". */
7261 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7262 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7265 if (setlocale (LC_ALL, "") == NULL) return 1;
7267 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7268 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7269 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7270 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7271 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7272 some unit tests fail.
7273 On MirBSD 10, when an unsupported locale is specified, setlocale()
7274 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7275 #if HAVE_LANGINFO_CODESET
7277 const char *cs = nl_langinfo (CODESET);
7278 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7279 || strcmp (cs, "UTF-8") == 0)
7284 /* On Cygwin, avoid locale names without encoding suffix, because the
7285 locale_charset() function relies on the encoding suffix. Note that
7286 LC_ALL is set on the command line. */
7287 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7289 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
7291 if (MB_CUR_MAX == 1)
7293 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7294 This excludes the UTF-8 encoding (except on MirBSD). */
7295 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7296 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7297 for (p = buf; *p != '\0'; p++)
7298 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7305 (eval $ac_link) 2>&5
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7310 # Handle native Windows specially, because there setlocale() interprets
7311 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7312 # "fr" or "fra" as "French" or "French_France.1252",
7313 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7314 # "ja" as "Japanese" or "Japanese_Japan.932",
7317 # Note that on native Windows, the Japanese locale is
7318 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
7319 # cannot use it here.
7320 gt_cv_locale_ja=none
7323 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7324 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7325 # configure script would override the LC_ALL setting. Likewise for
7326 # LC_CTYPE, which is also set at the beginning of the configure script.
7327 # Test for the AIX locale name.
7328 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7329 gt_cv_locale_ja=ja_JP
7331 # Test for the locale name with explicit encoding suffix.
7332 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7333 gt_cv_locale_ja=ja_JP.EUC-JP
7335 # Test for the HP-UX, OSF/1, NetBSD locale name.
7336 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7337 gt_cv_locale_ja=ja_JP.eucJP
7339 # Test for the IRIX, FreeBSD locale name.
7340 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7341 gt_cv_locale_ja=ja_JP.EUC
7343 # Test for the Solaris 7 locale name.
7344 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7347 # Special test for NetBSD 1.6.
7348 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
7349 gt_cv_locale_ja=ja_JP.eucJP
7352 gt_cv_locale_ja=none
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
7366 $as_echo "$gt_cv_locale_ja" >&6; }
7367 LOCALE_JA=$gt_cv_locale_ja
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
7374 $as_echo_n "checking for a transitional chinese locale... " >&6; }
7375 if test "${gt_cv_locale_zh_CN+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7385 #if HAVE_LANGINFO_CODESET
7386 # include <langinfo.h>
7395 /* Check whether the given locale name is recognized by the system. */
7396 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7397 /* On native Windows, setlocale(category, "") looks at the system settings,
7398 not at the environment variables. Also, when an encoding suffix such
7399 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7400 category of the locale to "C". */
7401 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7402 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7405 if (setlocale (LC_ALL, "") == NULL) return 1;
7407 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7408 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7409 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7410 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7411 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7412 some unit tests fail.
7413 On MirBSD 10, when an unsupported locale is specified, setlocale()
7414 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7415 #if HAVE_LANGINFO_CODESET
7417 const char *cs = nl_langinfo (CODESET);
7418 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7419 || strcmp (cs, "UTF-8") == 0)
7424 /* On Cygwin, avoid locale names without encoding suffix, because the
7425 locale_charset() function relies on the encoding suffix. Note that
7426 LC_ALL is set on the command line. */
7427 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7429 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7430 This excludes the UTF-8 encoding (except on MirBSD). */
7431 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7432 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7433 for (p = buf; *p != '\0'; p++)
7434 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7436 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7437 single wide character. This excludes the GB2312 and GBK encodings. */
7438 if (mblen ("\203\062\332\066", 5) != 4)
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7445 (eval $ac_link) 2>&5
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7450 # Handle native Windows specially, because there setlocale() interprets
7451 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7452 # "fr" or "fra" as "French" or "French_France.1252",
7453 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7454 # "ja" as "Japanese" or "Japanese_Japan.932",
7457 # Test for the hypothetical native Windows locale name.
7458 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7459 gt_cv_locale_zh_CN=Chinese_China.54936
7462 gt_cv_locale_zh_CN=none
7466 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7467 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7468 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7469 gt_cv_locale_zh_CN=none
7472 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7473 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7474 # configure script would override the LC_ALL setting. Likewise for
7475 # LC_CTYPE, which is also set at the beginning of the configure script.
7476 # Test for the locale name without encoding suffix.
7477 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7478 gt_cv_locale_zh_CN=zh_CN
7480 # Test for the locale name with explicit encoding suffix.
7481 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7482 gt_cv_locale_zh_CN=zh_CN.GB18030
7485 gt_cv_locale_zh_CN=none
7491 # If there was a link error, due to mblen(), the system is so old that
7492 # it certainly doesn't have a chinese locale.
7493 gt_cv_locale_zh_CN=none
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7499 $as_echo "$gt_cv_locale_zh_CN" >&6; }
7500 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7506 $as_echo_n "checking for a french Unicode locale... " >&6; }
7507 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
7508 $as_echo_n "(cached) " >&6
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7516 #if HAVE_LANGINFO_CODESET
7517 # include <langinfo.h>
7524 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7525 imitates locale dependent behaviour by looking at the environment
7526 variables, and all locales use the UTF-8 encoding. */
7527 #if !(defined __BEOS__ || defined __HAIKU__)
7528 /* Check whether the given locale name is recognized by the system. */
7529 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7530 /* On native Windows, setlocale(category, "") looks at the system settings,
7531 not at the environment variables. Also, when an encoding suffix such
7532 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7533 category of the locale to "C". */
7534 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7535 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7538 if (setlocale (LC_ALL, "") == NULL) return 1;
7540 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7541 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7542 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7543 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7544 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7545 some unit tests fail. */
7546 # if HAVE_LANGINFO_CODESET
7548 const char *cs = nl_langinfo (CODESET);
7549 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7554 /* On Cygwin, avoid locale names without encoding suffix, because the
7555 locale_charset() function relies on the encoding suffix. Note that
7556 LC_ALL is set on the command line. */
7557 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7559 /* Check whether in the abbreviation of the second month, the second
7560 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7561 two bytes long, with UTF-8 encoding. */
7562 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7563 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7564 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7567 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7568 /* Check whether the decimal separator is a comma.
7569 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7570 are nl_langinfo(RADIXCHAR) are both ".". */
7571 if (localeconv () ->decimal_point[0] != ',') return 1;
7577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7578 (eval $ac_link) 2>&5
7580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7583 # Handle native Windows specially, because there setlocale() interprets
7584 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7585 # "fr" or "fra" as "French" or "French_France.1252",
7586 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7587 # "ja" as "Japanese" or "Japanese_Japan.932",
7590 # Test for the hypothetical native Windows locale name.
7591 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7592 gt_cv_locale_fr_utf8=French_France.65001
7595 gt_cv_locale_fr_utf8=none
7599 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7600 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7601 # configure script would override the LC_ALL setting. Likewise for
7602 # LC_CTYPE, which is also set at the beginning of the configure script.
7603 # Test for the usual locale name.
7604 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7605 gt_cv_locale_fr_utf8=fr_FR
7607 # Test for the locale name with explicit encoding suffix.
7608 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7609 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7611 # Test for the Solaris 7 locale name.
7612 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7613 gt_cv_locale_fr_utf8=fr.UTF-8
7616 gt_cv_locale_fr_utf8=none
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7627 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
7628 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7635 $as_echo_n "checking for a traditional french locale... " >&6; }
7636 if test "${gt_cv_locale_fr+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7645 #if HAVE_LANGINFO_CODESET
7646 # include <langinfo.h>
7653 /* Check whether the given locale name is recognized by the system. */
7654 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7655 /* On native Windows, setlocale(category, "") looks at the system settings,
7656 not at the environment variables. Also, when an encoding suffix such
7657 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7658 category of the locale to "C". */
7659 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7660 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7663 if (setlocale (LC_ALL, "") == NULL) return 1;
7665 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7666 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7667 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7668 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7669 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7670 some unit tests fail.
7671 On MirBSD 10, when an unsupported locale is specified, setlocale()
7672 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7673 #if HAVE_LANGINFO_CODESET
7675 const char *cs = nl_langinfo (CODESET);
7676 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7677 || strcmp (cs, "UTF-8") == 0)
7682 /* On Cygwin, avoid locale names without encoding suffix, because the
7683 locale_charset() function relies on the encoding suffix. Note that
7684 LC_ALL is set on the command line. */
7685 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7687 /* Check whether in the abbreviation of the second month, the second
7688 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7689 one byte long. This excludes the UTF-8 encoding. */
7690 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7691 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7692 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7693 /* Check whether the decimal separator is a comma.
7694 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7695 are nl_langinfo(RADIXCHAR) are both ".". */
7696 if (localeconv () ->decimal_point[0] != ',') return 1;
7702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7703 (eval $ac_link) 2>&5
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7708 # Handle native Windows specially, because there setlocale() interprets
7709 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7710 # "fr" or "fra" as "French" or "French_France.1252",
7711 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7712 # "ja" as "Japanese" or "Japanese_Japan.932",
7715 # Test for the native Windows locale name.
7716 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7717 gt_cv_locale_fr=French_France.1252
7720 gt_cv_locale_fr=none
7724 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7725 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7726 # configure script would override the LC_ALL setting. Likewise for
7727 # LC_CTYPE, which is also set at the beginning of the configure script.
7728 # Test for the usual locale name.
7729 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7730 gt_cv_locale_fr=fr_FR
7732 # Test for the locale name with explicit encoding suffix.
7733 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7734 gt_cv_locale_fr=fr_FR.ISO-8859-1
7736 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7737 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7738 gt_cv_locale_fr=fr_FR.ISO8859-1
7740 # Test for the HP-UX locale name.
7741 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7742 gt_cv_locale_fr=fr_FR.iso88591
7744 # Test for the Solaris 7 locale name.
7745 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7749 gt_cv_locale_fr=none
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7762 $as_echo "$gt_cv_locale_fr" >&6; }
7763 LOCALE_FR=$gt_cv_locale_fr
7794 GNULIB_STRCASESTR=0;
7801 GNULIB_MBSCASECMP=0;
7802 GNULIB_MBSNCASECMP=0;
7803 GNULIB_MBSPCASECMP=0;
7804 GNULIB_MBSCASESTR=0;
7811 GNULIB_STRERROR_R=0;
7813 GNULIB_STRVERSCMP=0;
7820 HAVE_DECL_MEMRCHR=1;
7826 HAVE_DECL_STRNDUP=1;
7827 HAVE_DECL_STRNLEN=1;
7831 HAVE_DECL_STRTOK_R=1;
7832 HAVE_DECL_STRERROR_R=1;
7833 HAVE_DECL_STRSIGNAL=1;
7840 REPLACE_STRCASESTR=0;
7841 REPLACE_STRCHRNUL=0;
7843 REPLACE_STRERROR_R=0;
7847 REPLACE_STRSIGNAL=0;
7849 UNDEFINE_STRTOK_R=0;
7855 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7856 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7857 # irrelevant for anonymous mappings.
7858 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7859 if test "x$ac_cv_func_mmap" = x""yes; then :
7866 # Try to allow MAP_ANONYMOUS.
7867 gl_have_mmap_anonymous=no
7868 if test $gl_have_mmap = yes; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7870 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7874 #include <sys/mman.h>
7875 #ifdef MAP_ANONYMOUS
7876 I cannot identify this map
7880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7881 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7882 gl_have_mmap_anonymous=yes
7886 if test $gl_have_mmap_anonymous != yes; then
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7890 #include <sys/mman.h>
7892 I cannot identify this map
7896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7897 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7899 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7901 gl_have_mmap_anonymous=yes
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7907 $as_echo "$gl_have_mmap_anonymous" >&6; }
7908 if test $gl_have_mmap_anonymous = yes; then
7910 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7932 if test $HAVE_MEMCHR = 1; then
7933 # Detect platform-specific bugs in some versions of glibc:
7934 # memchr should not dereference anything with length 0
7935 # http://bugzilla.redhat.com/499689
7936 # memchr should not dereference overestimated length after a match
7937 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7938 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7939 # Assume that memchr works on platforms that lack mprotect.
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7941 $as_echo_n "checking whether memchr works... " >&6; }
7942 if test "${gl_cv_func_memchr_works+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7945 if test "$cross_compiling" = yes; then :
7946 gl_cv_func_memchr_works="guessing no"
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7954 # include <unistd.h>
7955 # include <sys/types.h>
7956 # include <sys/mman.h>
7968 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7969 # if HAVE_MAP_ANONYMOUS
7970 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7972 # else /* !HAVE_MAP_ANONYMOUS */
7973 const int flags = MAP_FILE | MAP_PRIVATE;
7974 int fd = open ("/dev/zero", O_RDONLY, 0666);
7978 int pagesize = getpagesize ();
7980 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7982 if (two_pages != (char *)(-1)
7983 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7984 fence = two_pages + pagesize;
7989 if (memchr (fence, 0, 0))
7991 strcpy (fence - 9, "12345678");
7992 if (memchr (fence - 9, 0, 79) != fence - 1)
7994 if (memchr (fence - 1, 0, 3) != fence - 1)
8003 if ac_fn_c_try_run "$LINENO"; then :
8004 gl_cv_func_memchr_works=yes
8006 gl_cv_func_memchr_works=no
8008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8009 conftest.$ac_objext conftest.beam conftest.$ac_ext
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8014 $as_echo "$gl_cv_func_memchr_works" >&6; }
8015 if test "$gl_cv_func_memchr_works" != yes; then
8021 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8022 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8028 cat >>confdefs.h <<_ACEOF
8029 #define HAVE_DECL_MEMMEM $ac_have_decl
8037 for ac_func in memmem
8039 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8040 if test "x$ac_cv_func_memmem" = x""yes; then :
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_MEMMEM 1
8048 if test $ac_cv_func_memmem = yes; then
8060 if test $ac_cv_have_decl_memmem = no; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8064 $as_echo_n "checking whether memmem works... " >&6; }
8065 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 if test "$cross_compiling" = yes; then :
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8072 #ifdef __GNU_LIBRARY__
8073 #include <features.h>
8074 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8075 || __GLIBC_MINOR__ > 12)) \
8076 || (__GLIBC__ > 2)) \
8077 || defined __UCLIBC__
8080 #elif defined __CYGWIN__
8081 #include <cygwin/version.h>
8082 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8091 $EGREP "Lucky user" >/dev/null 2>&1; then :
8092 gl_cv_func_memmem_works_always="guessing yes"
8094 gl_cv_func_memmem_works_always="guessing no"
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8103 #include <string.h> /* for memmem */
8104 #define P "_EF_BF_BD"
8105 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8106 #define NEEDLE P P P P P
8113 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8115 /* Check for empty needle behavior. */
8117 const char *haystack = "AAA";
8118 if (memmem (haystack, 3, NULL, 0) != haystack)
8127 if ac_fn_c_try_run "$LINENO"; then :
8128 gl_cv_func_memmem_works_always=yes
8130 gl_cv_func_memmem_works_always=no
8132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8133 conftest.$ac_objext conftest.beam conftest.$ac_ext
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8139 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8140 case "$gl_cv_func_memmem_works_always" in
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8150 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8151 if test "${ac_cv_header_stdbool_h+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8157 #include <stdbool.h>
8159 "error: bool is not defined"
8162 "error: false is not defined"
8165 "error: false is not 0"
8168 "error: true is not defined"
8171 "error: true is not 1"
8173 #ifndef __bool_true_false_are_defined
8174 "error: __bool_true_false_are_defined is not defined"
8177 struct s { _Bool s: 1; _Bool t; } s;
8179 char a[true == 1 ? 1 : -1];
8180 char b[false == 0 ? 1 : -1];
8181 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8182 char d[(bool) 0.5 == true ? 1 : -1];
8183 /* See body of main program for 'e'. */
8184 char f[(_Bool) 0.0 == false ? 1 : -1];
8186 char h[sizeof (_Bool)];
8188 enum { j = false, k = true, l = false * true, m = true * 256 };
8189 /* The following fails for
8190 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8192 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8193 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8194 /* Catch a bug in an HP-UX C compiler. See
8195 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8196 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8208 /* Refer to every declared value, to avoid compiler optimizations. */
8209 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8210 + !m + !n + !o + !p + !q + !pq);
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217 ac_cv_header_stdbool_h=yes
8219 ac_cv_header_stdbool_h=no
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8224 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8225 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8226 if test "x$ac_cv_type__Bool" = x""yes; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE__BOOL 1
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8242 $as_echo_n "checking for wchar_t... " >&6; }
8243 if test "${gt_cv_c_wchar_t+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8249 wchar_t foo = (wchar_t)'\0';
8258 if ac_fn_c_try_compile "$LINENO"; then :
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8266 $as_echo "$gt_cv_c_wchar_t" >&6; }
8267 if test $gt_cv_c_wchar_t = yes; then
8269 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8274 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8275 if test "${ac_cv_c_restrict+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8279 # The order here caters to the fact that C++ does not require restrict.
8280 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 typedef int * int_ptr;
8284 int foo (int_ptr $ac_kw ip) {
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 ac_cv_c_restrict=$ac_kw
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 test "$ac_cv_c_restrict" != no && break
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
8307 $as_echo "$ac_cv_c_restrict" >&6; }
8309 case $ac_cv_c_restrict in
8311 no) $as_echo "#define restrict /**/" >>confdefs.h
8313 *) cat >>confdefs.h <<_ACEOF
8314 #define restrict $ac_cv_c_restrict
8330 if test $gl_cv_have_include_next = yes; then
8331 gl_cv_next_string_h='<'string.h'>'
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
8334 $as_echo_n "checking absolute name of <string.h>... " >&6; }
8335 if test "${gl_cv_next_string_h+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8345 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8346 *) gl_absname_cpp="$ac_cpp" ;;
8351 gl_dirsep_regex='[/\\]'
8354 gl_dirsep_regex='\/'
8357 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8359 gl_header_literal_regex=`echo 'string.h' \
8360 |
sed -e "$gl_make_literal_regex_sed"`
8361 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8362 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8367 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8368 sed -n "$gl_absolute_header_sed"`'"'
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
8373 $as_echo "$gl_cv_next_string_h" >&6; }
8375 NEXT_STRING_H=$gl_cv_next_string_h
8377 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8379 gl_next_as_first_directive='<'string.h'>'
8381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8382 gl_next_as_first_directive=$gl_cv_next_string_h
8384 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
8391 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
8392 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8394 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8395 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8396 $as_echo_n "(cached) " >&6
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412 eval "$as_gl_Symbol=yes"
8414 eval "$as_gl_Symbol=no"
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 eval ac_res=\$$as_gl_Symbol
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8420 $as_echo "$ac_res" >&6; }
8421 eval as_val=\$$as_gl_Symbol
8422 if test "x$as_val" = x""yes; then :
8423 cat >>confdefs.h <<_ACEOF
8424 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8427 eval ac_cv_have_decl_$gl_func=yes
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8434 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8435 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8438 gl_cv_header_wchar_h_correct_inline=yes
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8442 #define wcstod renamed_wcstod
8443 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8445 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8446 included before <wchar.h>. */
8451 extern int zero (void);
8452 int main () { return zero(); }
8455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8456 (eval $ac_compile) 2>&5
8458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8459 test $ac_status = 0; }; then
8460 mv conftest.$ac_objext conftest1.$ac_objext
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8464 #define wcstod renamed_wcstod
8465 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8467 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8468 included before <wchar.h>. */
8473 int zero (void) { return 0; }
8476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8477 (eval $ac_compile) 2>&5
8479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8480 test $ac_status = 0; }; then
8481 mv conftest.$ac_objext conftest2.$ac_objext
8482 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8485 gl_cv_header_wchar_h_correct_inline=no
8489 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8493 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8494 if test $gl_cv_header_wchar_h_correct_inline = no; then
8495 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8496 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8497 C99 mode. You have four options:
8498 - Add the flag -fgnu89-inline to CC and reconfigure, or
8499 - Fix your include files, using parts of
8500 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8501 - Use a gcc version older than 4.3, or
8502 - Don't use the flags -std=c99 or -std=gnu99.
8503 Configuration aborted." "$LINENO" 5
8519 if test $ac_cv_header_features_h = yes; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8528 $as_echo_n "checking for wint_t... " >&6; }
8529 if test "${gt_cv_c_wint_t+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8535 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8538 before <wchar.h>. */
8543 wint_t foo = (wchar_t)'\0';
8552 if ac_fn_c_try_compile "$LINENO"; then :
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8560 $as_echo "$gt_cv_c_wint_t" >&6; }
8561 if test $gt_cv_c_wint_t = yes; then
8563 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8585 GL_COND_LIBTOOL_TRUE=
8586 GL_COND_LIBTOOL_FALSE='#'
8588 GL_COND_LIBTOOL_TRUE='#'
8589 GL_COND_LIBTOOL_FALSE=
8592 gl_cond_libtool=false
8595 gl_m4_base='import/m4'
8605 gl_source_base='import'
8608 if test $ac_cv_func_alloca_works = no; then
8612 # Define an additional variable used in the Makefile substitution.
8613 if test $ac_cv_working_alloca_h = yes; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8615 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
8616 if test "${gl_cv_rpl_alloca+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8623 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8629 $EGREP "Need own alloca" >/dev/null 2>&1; then :
8630 gl_cv_rpl_alloca=yes
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8639 $as_echo "$gl_cv_rpl_alloca" >&6; }
8640 if test $gl_cv_rpl_alloca = yes; then
8642 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8652 if test -n "$ALLOCA_H"; then
8653 GL_GENERATE_ALLOCA_H_TRUE=
8654 GL_GENERATE_ALLOCA_H_FALSE='#'
8656 GL_GENERATE_ALLOCA_H_TRUE='#'
8657 GL_GENERATE_ALLOCA_H_FALSE=
8662 if test "x$datarootdir" = x; then
8663 datarootdir='${datadir}'
8666 if test "x$docdir" = x; then
8667 docdir='${datarootdir}/doc/${PACKAGE}'
8670 if test "x$htmldir" = x; then
8674 if test "x$dvidir" = x; then
8678 if test "x$pdfdir" = x; then
8682 if test "x$psdir" = x; then
8686 if test "x$lispdir" = x; then
8687 lispdir='${datarootdir}/emacs/site-lisp'
8690 if test "x$localedir" = x; then
8691 localedir='${datarootdir}/locale'
8695 pkglibexecdir='${libexecdir}/${PACKAGE}'
8706 gl_fnmatch_required_lowercase=`
8707 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
8709 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
8711 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
8712 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
8713 $as_echo_n "(cached) " >&6
8715 if test $gl_fnmatch_required = GNU; then
8716 gl_fnmatch_gnu_start=
8719 gl_fnmatch_gnu_start='#if 0'
8720 gl_fnmatch_gnu_end='#endif'
8722 if test "$cross_compiling" = yes; then :
8723 eval "$gl_fnmatch_cache_var=\"guessing no\""
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 #include <fnmatch.h>
8729 y (char const *pattern, char const *string, int flags)
8731 return fnmatch (pattern, string, flags) == 0;
8734 n (char const *pattern, char const *string, int flags)
8736 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
8742 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
8743 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
8744 static char const A_1[] = { 'A' - 1, 0 };
8745 static char const A01[] = { 'A' + 1, 0 };
8746 static char const a_1[] = { 'a' - 1, 0 };
8747 static char const a01[] = { 'a' + 1, 0 };
8748 static char const bs_1[] = { '\\\\' - 1, 0 };
8749 static char const bs01[] = { '\\\\' + 1, 0 };
8751 if (!n ("a*", "", 0))
8753 if (!y ("a*", "abc", 0))
8755 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
8757 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
8759 if (!y ("a\\\\bc", "abc", 0))
8761 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
8763 if (!y ("*x", ".x", 0))
8765 if (!n ("*x", ".x", FNM_PERIOD))
8767 if (!y (Apat, "\\\\", 0))
8769 if (!y (Apat, "A", 0))
8771 if (!y (apat, "\\\\", 0))
8773 if (!y (apat, "a", 0))
8775 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
8777 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
8779 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
8781 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
8783 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
8785 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
8787 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
8789 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
8791 $gl_fnmatch_gnu_start
8792 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
8794 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
8796 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
8798 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
8800 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
8802 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
8811 if ac_fn_c_try_run "$LINENO"; then :
8812 eval "$gl_fnmatch_cache_var=yes"
8814 eval "$gl_fnmatch_cache_var=no"
8816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8817 conftest.$ac_objext conftest.beam conftest.$ac_ext
8822 eval ac_res=\$$gl_fnmatch_cache_var
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8824 $as_echo "$ac_res" >&6; }
8825 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
8826 if test "$gl_fnmatch_result" = yes; then
8827 rm -f "$gl_source_base/fnmatch.h"
8832 if test -n "$FNMATCH_H"; then
8833 GL_GENERATE_FNMATCH_H_TRUE=
8834 GL_GENERATE_FNMATCH_H_FALSE='#'
8836 GL_GENERATE_FNMATCH_H_TRUE='#'
8837 GL_GENERATE_FNMATCH_H_FALSE=
8841 if test -n "$FNMATCH_H"; then
8850 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8854 cat >>confdefs.h <<_ACEOF
8855 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8859 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8861 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8867 cat >>confdefs.h <<_ACEOF
8868 #define HAVE_DECL_ISBLANK $ac_have_decl
8913 if test -n "$FNMATCH_H"; then
8922 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8926 cat >>confdefs.h <<_ACEOF
8927 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8931 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8933 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_DECL_ISBLANK $ac_have_decl
8986 if test -n "$STDINT_H"; then
8989 for glpfx in '' l ll I64; do
8992 l) gltype1='long int';;
8993 ll) gltype1='long long int';;
8994 I64) gltype1='__int64';;
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8999 extern intptr_t foo;
9000 extern $gltype1 foo;
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 PRIPTR_PREFIX='"'$glpfx'"'
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 test -n "$PRIPTR_PREFIX" && break
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
9020 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
9021 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 /* Work also in C++ mode. */
9027 #define __STDC_LIMIT_MACROS 1
9029 /* Work if build is not clean. */
9030 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9037 #if defined INT32_MAX && defined INTMAX_MAX
9038 #define CONDITION (INT32_MAX < INTMAX_MAX)
9039 #elif HAVE_LONG_LONG_INT
9040 #define CONDITION (sizeof (int) < sizeof (long long int))
9044 int test[CONDITION ? 1 : -1];
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
9056 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
9061 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
9062 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
9063 INT32_MAX_LT_INTMAX_MAX=1;
9065 INT32_MAX_LT_INTMAX_MAX=0;
9069 if test $APPLE_UNIVERSAL_BUILD = 0; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
9072 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
9073 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 /* Work also in C++ mode. */
9079 #define __STDC_LIMIT_MACROS 1
9081 /* Work if build is not clean. */
9082 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9089 #if defined INT64_MAX
9090 #define CONDITION (INT64_MAX == LONG_MAX)
9091 #elif HAVE_LONG_LONG_INT
9092 #define CONDITION (sizeof (long long int) == sizeof (long int))
9096 int test[CONDITION ? 1 : -1];
9105 if ac_fn_c_try_compile "$LINENO"; then :
9106 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
9108 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
9113 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
9114 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
9115 INT64_MAX_EQ_LONG_MAX=1;
9117 INT64_MAX_EQ_LONG_MAX=0;
9122 INT64_MAX_EQ_LONG_MAX=-1
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
9126 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
9127 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
9128 $as_echo_n "(cached) " >&6
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 /* Work also in C++ mode. */
9133 #define __STDC_LIMIT_MACROS 1
9135 /* Work if build is not clean. */
9136 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9143 #if defined UINT32_MAX && defined UINTMAX_MAX
9144 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
9145 #elif HAVE_LONG_LONG_INT
9146 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
9150 int test[CONDITION ? 1 : -1];
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
9162 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
9164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
9167 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
9168 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
9169 UINT32_MAX_LT_UINTMAX_MAX=1;
9171 UINT32_MAX_LT_UINTMAX_MAX=0;
9175 if test $APPLE_UNIVERSAL_BUILD = 0; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
9178 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
9179 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 /* Work also in C++ mode. */
9185 #define __STDC_LIMIT_MACROS 1
9187 /* Work if build is not clean. */
9188 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
9195 #if defined UINT64_MAX
9196 #define CONDITION (UINT64_MAX == ULONG_MAX)
9197 #elif HAVE_LONG_LONG_INT
9198 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
9202 int test[CONDITION ? 1 : -1];
9211 if ac_fn_c_try_compile "$LINENO"; then :
9212 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
9214 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
9219 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
9220 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
9221 UINT64_MAX_EQ_ULONG_MAX=1;
9223 UINT64_MAX_EQ_ULONG_MAX=0;
9228 UINT64_MAX_EQ_ULONG_MAX=-1
9247 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
9271 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9276 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9277 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9282 # Guess no on AIX and OSF/1.
9283 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9284 # Guess yes otherwise.
9285 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9287 if test $LOCALE_JA != none; then
9288 if test "$cross_compiling" = yes; then :
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9296 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9298 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9299 included before <wchar.h>. */
9306 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9308 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9312 memset (&state, '\0', sizeof (mbstate_t));
9313 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9314 if (mbsinit (&state))
9320 if ac_fn_c_try_run "$LINENO"; then :
9321 gl_cv_func_mbrtowc_incomplete_state=yes
9323 gl_cv_func_mbrtowc_incomplete_state=no
9325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9326 conftest.$ac_objext conftest.beam conftest.$ac_ext
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9333 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9339 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9340 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9345 # Guess no on Solaris 8.
9346 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9347 # Guess yes otherwise.
9348 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9350 if test $LOCALE_ZH_CN != none; then
9351 if test "$cross_compiling" = yes; then :
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9360 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9362 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9363 included before <wchar.h>. */
9370 /* This fails on Solaris 8:
9371 mbrtowc returns 2, and sets wc to 0x00F0.
9372 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9373 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9375 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9379 memset (&state, '\0', sizeof (mbstate_t));
9380 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9381 && mbtowc (&wc, input + 3, 6) == 4)
9387 if ac_fn_c_try_run "$LINENO"; then :
9388 gl_cv_func_mbrtowc_sanitycheck=yes
9390 gl_cv_func_mbrtowc_sanitycheck=no
9392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9393 conftest.$ac_objext conftest.beam conftest.$ac_ext
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9400 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9403 case "$gl_cv_func_mbrtowc_incomplete_state" in
9405 *) REPLACE_MBSTATE_T=1 ;;
9407 case "$gl_cv_func_mbrtowc_sanitycheck" in
9409 *) REPLACE_MBSTATE_T=1 ;;
9423 if test $ac_cv_func_mbrtowc = no; then
9425 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
9426 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9428 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9429 included before <wchar.h>. */
9436 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
9442 cat >>confdefs.h <<_ACEOF
9443 #define HAVE_DECL_MBRTOWC $ac_have_decl
9446 if test $ac_cv_have_decl_mbrtowc = yes; then
9450 if test $REPLACE_MBSTATE_T = 1; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
9457 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
9458 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9463 # Guess no on Solaris.
9464 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
9465 # Guess yes otherwise.
9466 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
9468 if test $LOCALE_FR_UTF8 != none; then
9469 if test "$cross_compiling" = yes; then :
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9478 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9480 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9481 included before <wchar.h>. */
9490 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9492 char input[] = "\303\237er";
9497 memset (&state, '\0', sizeof (mbstate_t));
9498 wc = (wchar_t) 0xBADFACE;
9499 ret = mbrtowc (&wc, input, 5, &state);
9502 if (!mbsinit (&state))
9505 memset (&state, '\0', sizeof (mbstate_t));
9506 ret = mbrtowc (NULL, input, 5, &state);
9507 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
9509 if (!mbsinit (&state))
9515 if ac_fn_c_try_run "$LINENO"; then :
9516 gl_cv_func_mbrtowc_null_arg1=yes
9518 gl_cv_func_mbrtowc_null_arg1=no
9520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9521 conftest.$ac_objext conftest.beam conftest.$ac_ext
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
9528 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
9534 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
9535 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9540 # Guess no on OSF/1.
9541 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
9542 # Guess yes otherwise.
9543 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
9545 if test $LOCALE_FR_UTF8 != none; then
9546 if test "$cross_compiling" = yes; then :
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9554 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9556 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9557 included before <wchar.h>. */
9564 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9570 memset (&state, '\0', sizeof (mbstate_t));
9571 wc = (wchar_t) 0xBADFACE;
9572 mbrtowc (&wc, NULL, 5, &state);
9573 /* Check that wc was not modified. */
9574 if (wc != (wchar_t) 0xBADFACE)
9580 if ac_fn_c_try_run "$LINENO"; then :
9581 gl_cv_func_mbrtowc_null_arg2=yes
9583 gl_cv_func_mbrtowc_null_arg2=no
9585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9586 conftest.$ac_objext conftest.beam conftest.$ac_ext
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
9593 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
9601 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
9602 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9607 # Guess no on HP-UX, Solaris, native Windows.
9608 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
9609 # Guess yes otherwise.
9610 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
9612 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
9613 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
9614 if test "$cross_compiling" = yes; then :
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9622 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9624 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9625 included before <wchar.h>. */
9633 int found_some_locale = 0;
9634 /* This fails on Solaris. */
9635 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9637 char input[] = "B\303\274\303\237er"; /* "Büßer" */
9641 memset (&state, '\0', sizeof (mbstate_t));
9642 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9645 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
9648 found_some_locale = 1;
9650 /* This fails on HP-UX 11.11. */
9651 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9653 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9657 memset (&state, '\0', sizeof (mbstate_t));
9658 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9661 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
9664 found_some_locale = 1;
9666 /* This fails on native Windows. */
9667 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
9669 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
9673 memset (&state, '\0', sizeof (mbstate_t));
9674 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9677 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9680 found_some_locale = 1;
9682 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
9684 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
9688 memset (&state, '\0', sizeof (mbstate_t));
9689 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9692 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9695 found_some_locale = 1;
9697 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
9699 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
9703 memset (&state, '\0', sizeof (mbstate_t));
9704 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9707 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9710 found_some_locale = 1;
9712 return (found_some_locale ? result : 77);
9715 if ac_fn_c_try_run "$LINENO"; then :
9716 gl_cv_func_mbrtowc_retval=yes
9718 if test $? != 77; then
9719 gl_cv_func_mbrtowc_retval=no
9723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9724 conftest.$ac_objext conftest.beam conftest.$ac_ext
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
9731 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
9737 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
9738 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9743 # Guess no on Solaris 8 and 9.
9744 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
9745 # Guess yes otherwise.
9746 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
9748 if test $LOCALE_ZH_CN != none; then
9749 if test "$cross_compiling" = yes; then :
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9757 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9759 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9760 included before <wchar.h>. */
9767 /* This fails on Solaris 8 and 9. */
9768 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9773 memset (&state, '\0', sizeof (mbstate_t));
9774 if (mbrtowc (&wc, "", 1, &state) != 0)
9780 if ac_fn_c_try_run "$LINENO"; then :
9781 gl_cv_func_mbrtowc_nul_retval=yes
9783 gl_cv_func_mbrtowc_nul_retval=no
9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9786 conftest.$ac_objext conftest.beam conftest.$ac_ext
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
9793 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
9795 case "$gl_cv_func_mbrtowc_null_arg1" in
9798 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
9803 case "$gl_cv_func_mbrtowc_null_arg2" in
9806 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
9811 case "$gl_cv_func_mbrtowc_retval" in
9814 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
9819 case "$gl_cv_func_mbrtowc_nul_retval" in
9822 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
9830 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
9839 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
9856 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
9883 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9888 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9889 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9894 # Guess no on AIX and OSF/1.
9895 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9896 # Guess yes otherwise.
9897 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9899 if test $LOCALE_JA != none; then
9900 if test "$cross_compiling" = yes; then :
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9908 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9910 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9911 included before <wchar.h>. */
9918 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9920 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9924 memset (&state, '\0', sizeof (mbstate_t));
9925 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9926 if (mbsinit (&state))
9932 if ac_fn_c_try_run "$LINENO"; then :
9933 gl_cv_func_mbrtowc_incomplete_state=yes
9935 gl_cv_func_mbrtowc_incomplete_state=no
9937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9938 conftest.$ac_objext conftest.beam conftest.$ac_ext
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9945 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9951 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9952 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9953 $as_echo_n "(cached) " >&6
9957 # Guess no on Solaris 8.
9958 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9959 # Guess yes otherwise.
9960 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9962 if test $LOCALE_ZH_CN != none; then
9963 if test "$cross_compiling" = yes; then :
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9972 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9974 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9975 included before <wchar.h>. */
9982 /* This fails on Solaris 8:
9983 mbrtowc returns 2, and sets wc to 0x00F0.
9984 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9985 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9987 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9991 memset (&state, '\0', sizeof (mbstate_t));
9992 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9993 && mbtowc (&wc, input + 3, 6) == 4)
9999 if ac_fn_c_try_run "$LINENO"; then :
10000 gl_cv_func_mbrtowc_sanitycheck=yes
10002 gl_cv_func_mbrtowc_sanitycheck=no
10004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10005 conftest.$ac_objext conftest.beam conftest.$ac_ext
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
10012 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
10014 REPLACE_MBSTATE_T=0
10015 case "$gl_cv_func_mbrtowc_incomplete_state" in
10017 *) REPLACE_MBSTATE_T=1 ;;
10019 case "$gl_cv_func_mbrtowc_sanitycheck" in
10021 *) REPLACE_MBSTATE_T=1 ;;
10024 REPLACE_MBSTATE_T=1
10035 if test $ac_cv_func_mbsinit = no; then
10037 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
10038 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10040 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10041 included before <wchar.h>. */
10042 #include <stddef.h>
10048 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
10054 cat >>confdefs.h <<_ACEOF
10055 #define HAVE_DECL_MBSINIT $ac_have_decl
10058 if test $ac_cv_have_decl_mbsinit = yes; then
10062 if test $REPLACE_MBSTATE_T = 1; then
10066 mingw*) REPLACE_MBSINIT=1 ;;
10071 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
10080 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
10097 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
10123 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
10128 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
10129 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
10134 # Guess no on AIX and OSF/1.
10135 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
10136 # Guess yes otherwise.
10137 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
10139 if test $LOCALE_JA != none; then
10140 if test "$cross_compiling" = yes; then :
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 #include <locale.h>
10147 #include <string.h>
10148 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10150 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10151 included before <wchar.h>. */
10152 #include <stddef.h>
10158 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
10160 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
10164 memset (&state, '\0', sizeof (mbstate_t));
10165 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
10166 if (mbsinit (&state))
10172 if ac_fn_c_try_run "$LINENO"; then :
10173 gl_cv_func_mbrtowc_incomplete_state=yes
10175 gl_cv_func_mbrtowc_incomplete_state=no
10177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10178 conftest.$ac_objext conftest.beam conftest.$ac_ext
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
10185 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
10191 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
10192 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10197 # Guess no on Solaris 8.
10198 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
10199 # Guess yes otherwise.
10200 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
10202 if test $LOCALE_ZH_CN != none; then
10203 if test "$cross_compiling" = yes; then :
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10209 #include <locale.h>
10210 #include <stdlib.h>
10211 #include <string.h>
10212 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10214 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10215 included before <wchar.h>. */
10216 #include <stddef.h>
10222 /* This fails on Solaris 8:
10223 mbrtowc returns 2, and sets wc to 0x00F0.
10224 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
10225 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10227 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
10231 memset (&state, '\0', sizeof (mbstate_t));
10232 if (mbrtowc (&wc, input + 3, 6, &state) != 4
10233 && mbtowc (&wc, input + 3, 6) == 4)
10239 if ac_fn_c_try_run "$LINENO"; then :
10240 gl_cv_func_mbrtowc_sanitycheck=yes
10242 gl_cv_func_mbrtowc_sanitycheck=no
10244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10245 conftest.$ac_objext conftest.beam conftest.$ac_ext
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
10252 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
10254 REPLACE_MBSTATE_T=0
10255 case "$gl_cv_func_mbrtowc_incomplete_state" in
10257 *) REPLACE_MBSTATE_T=1 ;;
10259 case "$gl_cv_func_mbrtowc_sanitycheck" in
10261 *) REPLACE_MBSTATE_T=1 ;;
10264 REPLACE_MBSTATE_T=1
10275 if test $ac_cv_func_mbsrtowcs = no; then
10277 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
10278 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10280 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10281 included before <wchar.h>. */
10282 #include <stddef.h>
10288 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
10294 cat >>confdefs.h <<_ACEOF
10295 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
10298 if test $ac_cv_have_decl_mbsrtowcs = yes; then
10299 REPLACE_MBSRTOWCS=1
10302 if test $REPLACE_MBSTATE_T = 1; then
10303 REPLACE_MBSRTOWCS=1
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
10312 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
10313 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10318 # Guess no on HP-UX, Solaris, mingw.
10319 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
10320 # Guess yes otherwise.
10321 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
10323 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
10324 if test "$cross_compiling" = yes; then :
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 #include <locale.h>
10331 #include <string.h>
10332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10335 included before <wchar.h>. */
10336 #include <stddef.h>
10343 /* Test whether the function supports a NULL destination argument.
10344 This fails on native Windows. */
10345 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
10347 const char input[] = "\337er";
10348 const char *src = input;
10351 memset (&state, '\0', sizeof (mbstate_t));
10352 if (mbsrtowcs (NULL, &src, 1, &state) != 3
10356 /* Test whether the function works when started with a conversion state
10357 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
10358 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
10360 const char input[] = "B\303\274\303\237er";
10363 memset (&state, '\0', sizeof (mbstate_t));
10364 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10365 if (!mbsinit (&state))
10367 const char *src = input + 2;
10368 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10372 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
10374 const char input[] = "<\306\374\313\334\270\354>";
10377 memset (&state, '\0', sizeof (mbstate_t));
10378 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
10379 if (!mbsinit (&state))
10381 const char *src = input + 4;
10382 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
10386 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10388 const char input[] = "B\250\271\201\060\211\070er";
10391 memset (&state, '\0', sizeof (mbstate_t));
10392 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10393 if (!mbsinit (&state))
10395 const char *src = input + 2;
10396 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10403 if ac_fn_c_try_run "$LINENO"; then :
10404 gl_cv_func_mbsrtowcs_works=yes
10406 gl_cv_func_mbsrtowcs_works=no
10408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10409 conftest.$ac_objext conftest.beam conftest.$ac_ext
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
10416 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
10418 case "$gl_cv_func_mbsrtowcs_works" in
10420 *) REPLACE_MBSRTOWCS=1 ;;
10425 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
10434 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
10444 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
10461 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
10466 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
10475 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10478 for ac_header in bp-sym.h
10480 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10481 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_BP_SYM_H 1
10503 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10509 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
10511 $as_echo_n "checking whether memmem works in linear time... " >&6; }
10512 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10515 if test "$cross_compiling" = yes; then :
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 #include <features.h>
10520 #ifdef __GNU_LIBRARY__
10521 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
10522 && !defined __UCLIBC__
10527 #include <cygwin/version.h>
10528 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
10534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10535 $EGREP "Lucky user" >/dev/null 2>&1; then :
10536 gl_cv_func_memmem_works_fast="guessing yes"
10538 gl_cv_func_memmem_works_fast="guessing no"
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10547 #include <signal.h> /* for signal */
10548 #include <string.h> /* for memmem */
10549 #include <stdlib.h> /* for malloc */
10550 #include <unistd.h> /* for alarm */
10551 static void quit (int sig) { exit (sig + 128); }
10558 size_t m = 1000000;
10559 char *haystack = (char *) malloc (2 * m + 1);
10560 char *needle = (char *) malloc (m + 1);
10561 /* Failure to compile this test due to missing alarm is okay,
10562 since all such platforms (mingw) also lack memmem. */
10563 signal (SIGALRM, quit);
10565 /* Check for quadratic performance. */
10566 if (haystack && needle)
10568 memset (haystack, 'A', 2 * m);
10569 haystack[2 * m] = 'B';
10570 memset (needle, 'A', m);
10572 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
10581 if ac_fn_c_try_run "$LINENO"; then :
10582 gl_cv_func_memmem_works_fast=yes
10584 gl_cv_func_memmem_works_fast=no
10586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10587 conftest.$ac_objext conftest.beam conftest.$ac_ext
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
10593 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
10594 case "$gl_cv_func_memmem_works_fast" in
10602 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10611 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10618 for ac_func in memmem
10620 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10621 if test "x$ac_cv_func_memmem" = x""yes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_MEMMEM 1
10629 if test $ac_cv_func_memmem = yes; then
10641 if test $ac_cv_have_decl_memmem = no; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10645 $as_echo_n "checking whether memmem works... " >&6; }
10646 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10649 if test "$cross_compiling" = yes; then :
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 #ifdef __GNU_LIBRARY__
10654 #include <features.h>
10655 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10656 || __GLIBC_MINOR__ > 12)) \
10657 || (__GLIBC__ > 2)) \
10658 || defined __UCLIBC__
10661 #elif defined __CYGWIN__
10662 #include <cygwin/version.h>
10663 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10672 $EGREP "Lucky user" >/dev/null 2>&1; then :
10673 gl_cv_func_memmem_works_always="guessing yes"
10675 gl_cv_func_memmem_works_always="guessing no"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10684 #include <string.h> /* for memmem */
10685 #define P "_EF_BF_BD"
10686 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10687 #define NEEDLE P P P P P
10694 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10696 /* Check for empty needle behavior. */
10698 const char *haystack = "AAA";
10699 if (memmem (haystack, 3, NULL, 0) != haystack)
10708 if ac_fn_c_try_run "$LINENO"; then :
10709 gl_cv_func_memmem_works_always=yes
10711 gl_cv_func_memmem_works_always=no
10713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10714 conftest.$ac_objext conftest.beam conftest.$ac_ext
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10720 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10721 case "$gl_cv_func_memmem_works_always" in
10730 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10739 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10753 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
10761 # Define two additional variables used in the Makefile substitution.
10763 if test "$ac_cv_header_stdbool_h" = yes; then
10766 STDBOOL_H='stdbool.h'
10769 if test -n "$STDBOOL_H"; then
10770 GL_GENERATE_STDBOOL_H_TRUE=
10771 GL_GENERATE_STDBOOL_H_FALSE='#'
10773 GL_GENERATE_STDBOOL_H_TRUE='#'
10774 GL_GENERATE_STDBOOL_H_FALSE=
10778 if test "$ac_cv_type__Bool" = yes; then
10789 if test $gt_cv_c_wchar_t = no; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10794 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10795 if test "${gl_cv_decl_null_works+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 #include <stddef.h>
10801 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 gl_cv_decl_null_works=yes
10814 gl_cv_decl_null_works=no
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10819 $as_echo "$gl_cv_decl_null_works" >&6; }
10820 if test $gl_cv_decl_null_works = no; then
10825 if test -n "$STDDEF_H"; then
10826 GL_GENERATE_STDDEF_H_TRUE=
10827 GL_GENERATE_STDDEF_H_FALSE='#'
10829 GL_GENERATE_STDDEF_H_TRUE='#'
10830 GL_GENERATE_STDDEF_H_FALSE=
10833 if test -n "$STDDEF_H"; then
10842 if test $gl_cv_have_include_next = yes; then
10843 gl_cv_next_stddef_h='<'stddef.h'>'
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10846 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10847 if test "${gl_cv_next_stddef_h+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853 #include <stddef.h>
10857 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10858 *) gl_absname_cpp="$ac_cpp" ;;
10863 gl_dirsep_regex='[/\\]'
10866 gl_dirsep_regex='\/'
10869 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10871 gl_header_literal_regex=`echo 'stddef.h' \
10872 |
sed -e "$gl_make_literal_regex_sed"`
10873 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10874 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10879 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10880 sed -n "$gl_absolute_header_sed"`'"'
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10885 $as_echo "$gl_cv_next_stddef_h" >&6; }
10887 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10889 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10891 gl_next_as_first_directive='<'stddef.h'>'
10893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10894 gl_next_as_first_directive=$gl_cv_next_stddef_h
10896 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10925 if test $gl_cv_have_include_next = yes; then
10926 gl_cv_next_wchar_h='<'wchar.h'>'
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
10929 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
10930 if test "${gl_cv_next_wchar_h+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10934 if test $ac_cv_header_wchar_h = yes; then
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10943 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10944 *) gl_absname_cpp="$ac_cpp" ;;
10949 gl_dirsep_regex='[/\\]'
10952 gl_dirsep_regex='\/'
10955 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10957 gl_header_literal_regex=`echo 'wchar.h' \
10958 |
sed -e "$gl_make_literal_regex_sed"`
10959 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10965 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10966 sed -n "$gl_absolute_header_sed"`'"'
10968 gl_cv_next_wchar_h='<'wchar.h'>'
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
10974 $as_echo "$gl_cv_next_wchar_h" >&6; }
10976 NEXT_WCHAR_H=$gl_cv_next_wchar_h
10978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10980 gl_next_as_first_directive='<'wchar.h'>'
10982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10983 gl_next_as_first_directive=$gl_cv_next_wchar_h
10985 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
10990 if test $ac_cv_header_wchar_h = yes; then
11000 if test $gt_cv_c_wint_t = yes; then
11008 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
11009 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11011 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11012 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11013 $as_echo_n "(cached) " >&6
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11018 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11020 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11021 included before <wchar.h>. */
11022 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11023 # include <stddef.h>
11024 # include <stdio.h>
11038 if ac_fn_c_try_compile "$LINENO"; then :
11039 eval "$as_gl_Symbol=yes"
11041 eval "$as_gl_Symbol=no"
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 eval ac_res=\$$as_gl_Symbol
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11047 $as_echo "$ac_res" >&6; }
11048 eval as_val=\$$as_gl_Symbol
11049 if test "x$as_val" = x""yes; then :
11050 cat >>confdefs.h <<_ACEOF
11051 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11054 eval ac_cv_have_decl_$gl_func=yes
11070 if test $ac_cv_func_iswcntrl = yes; then
11078 if test $gt_cv_c_wint_t = yes; then
11100 if test $gl_cv_have_include_next = yes; then
11101 gl_cv_next_wctype_h='<'wctype.h'>'
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
11104 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
11105 if test "${gl_cv_next_wctype_h+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11109 if test $ac_cv_header_wctype_h = yes; then
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 #include <wctype.h>
11118 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11119 *) gl_absname_cpp="$ac_cpp" ;;
11124 gl_dirsep_regex='[/\\]'
11127 gl_dirsep_regex='\/'
11130 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11132 gl_header_literal_regex=`echo 'wctype.h' \
11133 |
sed -e "$gl_make_literal_regex_sed"`
11134 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11135 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11140 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11141 sed -n "$gl_absolute_header_sed"`'"'
11143 gl_cv_next_wctype_h='<'wctype.h'>'
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
11149 $as_echo "$gl_cv_next_wctype_h" >&6; }
11151 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
11153 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11155 gl_next_as_first_directive='<'wctype.h'>'
11157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11158 gl_next_as_first_directive=$gl_cv_next_wctype_h
11160 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
11165 if test $ac_cv_header_wctype_h = yes; then
11166 if test $ac_cv_func_iswcntrl = yes; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
11168 $as_echo_n "checking whether iswcntrl works... " >&6; }
11169 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11173 if test "$cross_compiling" = yes; then :
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176 #include <stdlib.h>
11177 #if __GNU_LIBRARY__ == 1
11178 Linux libc5 i18n is broken.
11188 if ac_fn_c_try_compile "$LINENO"; then :
11189 gl_cv_func_iswcntrl_works="guessing yes"
11191 gl_cv_func_iswcntrl_works="guessing no"
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11199 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11200 included before <wchar.h>.
11201 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11202 must be included before <wchar.h>. */
11203 #include <stddef.h>
11207 #include <wctype.h>
11208 int main () { return iswprint ('x') == 0; }
11211 if ac_fn_c_try_run "$LINENO"; then :
11212 gl_cv_func_iswcntrl_works=yes
11214 gl_cv_func_iswcntrl_works=no
11216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11217 conftest.$ac_objext conftest.beam conftest.$ac_ext
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
11223 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
11231 case "$gl_cv_func_iswcntrl_works" in
11232 *yes) REPLACE_ISWCNTRL=0 ;;
11233 *) REPLACE_ISWCNTRL=1 ;;
11237 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
11241 if test $REPLACE_ISWCNTRL = 1; then
11244 for ac_func in towlower
11246 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
11247 if test "x$ac_cv_func_towlower" = x""yes; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_TOWLOWER 1
11255 if test $ac_cv_func_towlower = yes; then
11258 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11259 included before <wchar.h>.
11260 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11261 must be included before <wchar.h>. */
11262 #include <stddef.h>
11267 # include <wctype.h>
11271 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
11277 cat >>confdefs.h <<_ACEOF
11278 #define HAVE_DECL_TOWLOWER $ac_have_decl
11281 if test $ac_cv_have_decl_towlower = yes; then
11290 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
11295 $as_echo_n "checking for wctype_t... " >&6; }
11296 if test "${gl_cv_type_wctype_t+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11302 included before <wchar.h>.
11303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11304 must be included before <wchar.h>. */
11305 #include <stddef.h>
11310 # include <wctype.h>
11322 if ac_fn_c_try_compile "$LINENO"; then :
11323 gl_cv_type_wctype_t=yes
11325 gl_cv_type_wctype_t=no
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
11331 $as_echo "$gl_cv_type_wctype_t" >&6; }
11332 if test $gl_cv_type_wctype_t = no; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
11337 $as_echo_n "checking for wctrans_t... " >&6; }
11338 if test "${gl_cv_type_wctrans_t+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
11344 included before <wchar.h>.
11345 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
11346 must be included before <wchar.h>. */
11347 #include <stddef.h>
11351 #include <wctype.h>
11362 if ac_fn_c_try_compile "$LINENO"; then :
11363 gl_cv_type_wctrans_t=yes
11365 gl_cv_type_wctrans_t=no
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
11371 $as_echo "$gl_cv_type_wctrans_t" >&6; }
11372 if test $gl_cv_type_wctrans_t = no; then
11377 for gl_func in wctype iswctype wctrans towctrans ; do
11378 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11380 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11381 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11382 $as_echo_n "(cached) " >&6
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11387 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11389 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11390 included before <wchar.h>. */
11391 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11392 # include <stddef.h>
11393 # include <stdio.h>
11395 # include <wchar.h>
11397 #include <wctype.h>
11408 if ac_fn_c_try_compile "$LINENO"; then :
11409 eval "$as_gl_Symbol=yes"
11411 eval "$as_gl_Symbol=no"
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11415 eval ac_res=\$$as_gl_Symbol
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11417 $as_echo "$ac_res" >&6; }
11418 eval as_val=\$$as_gl_Symbol
11419 if test "x$as_val" = x""yes; then :
11420 cat >>confdefs.h <<_ACEOF
11421 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11424 eval ac_cv_have_decl_$gl_func=yes
11429 # End of code from modules
11450 gl_source_base='tests'
11451 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL
=C
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL
=C
sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
11453 gl_module_indicator_condition=$gltests_WITNESS
11463 LIBGNU_LIBDEPS="$gl_libdeps"
11465 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11469 # We don't use automake, but gnulib does. This line lets us generate
11471 am__api_version='1.11'
11473 # Find a good install program. We prefer a C program (faster),
11474 # so one script is as good as another. But avoid the broken or
11475 # incompatible versions:
11476 # SysV /etc/install, /usr/sbin/install
11477 # SunOS /usr/etc/install
11478 # IRIX /sbin/install
11480 # AmigaOS /C/install, which installs bootblocks on floppy discs
11481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11484 # OS/2's system install, which has a completely different semantic
11485 # ./install, which can be erroneously created by make from ./install.sh.
11486 # Reject install programs that cannot install multiple files.
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11489 if test -z "$INSTALL"; then
11490 if test "${ac_cv_path_install+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11497 test -z "$as_dir" && as_dir=.
11498 # Account for people who put trailing slashes in PATH elements.
11499 case $as_dir/ in #((
11500 ./ | .// | /[cC]/* | \
11501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11505 # OSF1 and SCO ODT 3.0 have their own names for install.
11506 # Don't use installbsd from OSF since it installs stuff as root
11508 for ac_prog in ginstall scoinst install; do
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11511 if test $ac_prog = install &&
11512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11513 # AIX install. It has an incompatible calling convention.
11515 elif test $ac_prog = install &&
11516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11517 # program-specific install script used by HP pwplus--don't use.
11520 rm -rf conftest.one conftest.two conftest.dir
11521 echo one > conftest.one
11522 echo two > conftest.two
11524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11525 test -s conftest.one && test -s conftest.two &&
11526 test -s conftest.dir/conftest.one &&
11527 test -s conftest.dir/conftest.two
11529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11542 rm -rf conftest.one conftest.two conftest.dir
11545 if test "${ac_cv_path_install+set}" = set; then
11546 INSTALL=$ac_cv_path_install
11548 # As a last resort, use the slow shell script. Don't cache a
11549 # value for INSTALL within a source directory, because that will
11550 # break other packages using the cache if that directory is
11551 # removed, or if the value is a relative name.
11552 INSTALL=$ac_install_sh
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11556 $as_echo "$INSTALL" >&6; }
11558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11559 # It thinks the first close brace ends the variable substitution.
11560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11567 $as_echo_n "checking whether build environment is sane... " >&6; }
11570 echo timestamp > conftest.file
11571 # Reject unsafe characters in $srcdir or the absolute working directory
11572 # name. Accept space and tab only in the latter.
11576 *[\\\"\#\$\&\'\`$am_lf]*)
11577 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
11580 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
11581 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11584 # Do `set' in a subshell so we don't clobber the current shell's
11585 # arguments. Must try -L first in case configure is actually a
11586 # symlink; some systems play weird games with the mod time of symlinks
11587 # (eg FreeBSD returns the mod time of the symlink's containing
11590 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11591 if test "$*" = "X"; then
11593 set X
`ls -t "$srcdir/configure" conftest.file`
11595 rm -f conftest.
file
11596 if test "$*" != "X $srcdir/configure conftest.file" \
11597 && test "$*" != "X conftest.file $srcdir/configure"; then
11599 # If neither matched, then we have a broken ls. This can happen
11600 # if, for instance, CONFIG_SHELL is bash and it inherits a
11601 # broken ls alias from the environment. This has actually
11602 # happened. Such a system could not be considered "sane".
11603 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
11604 alias in your environment" "$LINENO" 5
11607 test "$2" = conftest.
file
11613 as_fn_error
"newly created file is older than distributed files!
11614 Check your system clock" "$LINENO" 5
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 $as_echo "yes" >&6; }
11618 test "$program_prefix" != NONE
&&
11619 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
11620 # Use a double $ so make ignores it.
11621 test "$program_suffix" != NONE
&&
11622 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
11623 # Double any \ or $.
11624 # By default was `s,x,x', remove it if useless.
11625 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
11626 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
11628 # expand $ac_aux_dir to an absolute path
11629 am_aux_dir
=`cd $ac_aux_dir && pwd`
11631 if test x
"${MISSING+set}" != xset
; then
11632 case $am_aux_dir in
11634 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
11636 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
11639 # Use eval to expand $SHELL
11640 if eval "$MISSING --run true"; then
11641 am_missing_run
="$MISSING --run "
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11645 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11648 if test x
"${install_sh}" != xset
; then
11649 case $am_aux_dir in
11651 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
11653 install_sh
="\${SHELL} $am_aux_dir/install-sh"
11657 # Installed binaries are usually stripped using `strip' when the user
11658 # run `make install-strip'. However `strip' might not be the right
11659 # tool to use in cross-compilation environments, therefore Automake
11660 # will honor the `STRIP' environment variable to overrule this program.
11661 if test "$cross_compiling" != no
; then
11662 if test -n "$ac_tool_prefix"; then
11663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11664 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_prog_STRIP+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 if test -n "$STRIP"; then
11671 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
11673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11674 for as_dir
in $PATH
11677 test -z "$as_dir" && as_dir
=.
11678 for ac_exec_ext
in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 STRIP
=$ac_cv_prog_STRIP
11691 if test -n "$STRIP"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11693 $as_echo "$STRIP" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 if test -z "$ac_cv_prog_STRIP"; then
11703 # Extract the first word of "strip", so it can be a program name with args.
11704 set dummy strip
; ac_word
=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11710 if test -n "$ac_ct_STRIP"; then
11711 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
11713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11714 for as_dir
in $PATH
11717 test -z "$as_dir" && as_dir
=.
11718 for ac_exec_ext
in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_prog_ac_ct_STRIP
="strip"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
11731 if test -n "$ac_ct_STRIP"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11733 $as_echo "$ac_ct_STRIP" >&6; }
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11739 if test "x$ac_ct_STRIP" = x
; then
11742 case $cross_compiling:$ac_tool_warned in
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11746 ac_tool_warned
=yes ;;
11751 STRIP
="$ac_cv_prog_STRIP"
11755 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11758 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11759 if test -z "$MKDIR_P"; then
11760 if test "${ac_cv_path_mkdir+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11764 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
11767 test -z "$as_dir" && as_dir
=.
11768 for ac_prog
in mkdir gmkdir
; do
11769 for ac_exec_ext
in '' $ac_executable_extensions; do
11770 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
11771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11772 'mkdir (GNU coreutils) '* | \
11773 'mkdir (coreutils) '* | \
11774 'mkdir (fileutils) '4.1*)
11775 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
11785 if test "${ac_cv_path_mkdir+set}" = set; then
11786 MKDIR_P
="$ac_cv_path_mkdir -p"
11788 # As a last resort, use the slow shell script. Don't cache a
11789 # value for MKDIR_P within a source directory, because that will
11790 # break other packages using the cache if that directory is
11791 # removed, or if the value is a relative name.
11792 test -d .
/--version && rmdir .
/--version
11793 MKDIR_P
="$ac_install_sh -d"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11797 $as_echo "$MKDIR_P" >&6; }
11802 [\\/$
]* | ?
:[\\/]*) ;;
11803 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
11806 for ac_prog
in gawk mawk nawk
awk
11808 # Extract the first word of "$ac_prog", so it can be a program name with args.
11809 set dummy
$ac_prog; ac_word
=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if test "${ac_cv_prog_AWK+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11815 if test -n "$AWK"; then
11816 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
11818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11819 for as_dir
in $PATH
11822 test -z "$as_dir" && as_dir
=.
11823 for ac_exec_ext
in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_prog_AWK
="$ac_prog"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 AWK
=$ac_cv_prog_AWK
11836 if test -n "$AWK"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11838 $as_echo "$AWK" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11845 test -n "$AWK" && break
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11851 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11852 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11853 $as_echo_n "(cached) " >&6
11855 cat >conftest.
make <<\_ACEOF
11858 @
echo '@@@%%%=$(MAKE)=@@@%%%'
11860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11862 *@@@
%%%=?
*=@@@
%%%*)
11863 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
11865 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
11867 rm -f conftest.
make
11869 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 SET_MAKE
="MAKE=${MAKE-make}"
11879 rm -rf .tst
2>/dev
/null
11880 mkdir .tst
2>/dev
/null
11881 if test -d .tst
; then
11886 rmdir .tst
2>/dev
/null
11888 DEPDIR
="${am__leading_dot}deps"
11890 ac_config_commands
="$ac_config_commands depfiles"
11893 am_make
=${MAKE-make}
11894 cat > confinc
<< 'END'
11896 @
echo this is the am__doit target
11899 # If we don't find an include directive, just comment out the code.
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11905 # First try GNU make style include.
11906 echo "include confinc" > confmf
11907 # Ignore all kinds of additional output from `make'.
11908 case `$am_make -s -f confmf 2> /dev/null` in #(
11909 *the\ am__doit\ target
*)
11910 am__include
=include
11915 # Now try BSD make style include.
11916 if test "$am__include" = "#"; then
11917 echo '.include "confinc"' > confmf
11918 case `$am_make -s -f confmf 2> /dev/null` in #(
11919 *the\ am__doit\ target
*)
11920 am__include
=.include
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11929 $as_echo "$_am_result" >&6; }
11930 rm -f confinc confmf
11932 # Check whether --enable-dependency-tracking was given.
11933 if test "${enable_dependency_tracking+set}" = set; then :
11934 enableval
=$enable_dependency_tracking;
11937 if test "x$enable_dependency_tracking" != xno
; then
11938 am_depcomp
="$ac_aux_dir/depcomp"
11941 if test "x$enable_dependency_tracking" != xno; then
11950 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11951 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11952 # is not polluted with repeated "-I."
11953 am__isrc
=' -I$(srcdir)'
11954 # test to see if srcdir already configured
11955 if test -f $srcdir/config.status
; then
11956 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11960 # test whether we have cygpath
11961 if test -z "$CYGPATH_W"; then
11962 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
11963 CYGPATH_W
='cygpath -w'
11970 # Define the identity of the package.
11972 VERSION
=UNUSED-VERSION
11975 # Some tools Automake needs.
11977 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11980 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
11983 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11986 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
11989 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
11991 # We need awk for the "check" target. The system "awk" is bad on
11993 # Always define AMTAR for backward compatibility.
11995 AMTAR
=${AMTAR-"${am_missing_run}tar"}
11997 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
12002 depcc
="$CC" am_compiler_list
=
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12005 $as_echo_n "checking dependency style of $depcc... " >&6; }
12006 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12010 # We make a subdir and do the tests there. Otherwise we can end up
12011 # making bogus files that we don't know about and never remove. For
12012 # instance it was reported that on HP-UX the gcc test will end up
12013 # making a dummy file named `D' -- because `-MD' means `put the output
12016 # Copy depcomp to subdir because otherwise we won't find it if we're
12017 # using a relative directory.
12018 cp "$am_depcomp" conftest.dir
12020 # We will build objects and dependencies in a subdirectory because
12021 # it helps to detect inapplicable dependency modes. For instance
12022 # both Tru64's cc and ICC support -MD to output dependencies as a
12023 # side effect of compilation, but ICC will put the dependencies in
12024 # the current directory while Tru64 will put them in the object
12028 am_cv_CC_dependencies_compiler_type
=none
12029 if test "$am_compiler_list" = ""; then
12030 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12032 am__universal
=false
12033 case " $depcc " in #(
12034 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
12037 for depmode
in $am_compiler_list; do
12038 # Setup a source with many dependencies, because some compilers
12039 # like to wrap large dependency lists on column 80 (with \), and
12040 # we should not choose a depcomp mode which is confused by this.
12042 # We need to recreate these files for each test, as the compiler may
12043 # overwrite some of them when testing with obscure command lines.
12044 # This happens at least with the AIX C compiler.
12046 for i
in 1 2 3 4 5 6; do
12047 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12048 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12049 # Solaris 8's {/usr,}/bin/sh.
12050 touch sub
/conftst
$i.h
12052 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12054 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12055 # mode. It turns out that the SunPro C++ compiler does not properly
12056 # handle `-M -o', and we need to detect this. Also, some Intel
12057 # versions had trouble with output in subdirs
12058 am__obj
=sub
/conftest.
${OBJEXT-o}
12059 am__minus_obj
="-o $am__obj"
12062 # This depmode causes a compiler race in universal mode.
12063 test "$am__universal" = false ||
continue
12066 # after this tag, mechanisms are not by side-effect, so they'll
12067 # only be used when explicitly requested
12068 if test "x$enable_dependency_tracking" = xyes
; then
12074 msvisualcpp | msvcmsys
)
12075 # This compiler won't grok `-c -o', but also, the minuso test has
12076 # not run yet. These depmodes are late enough in the game, and
12077 # so weak that their functioning should not be impacted.
12078 am__obj
=conftest.
${OBJEXT-o}
12083 if depmode
=$depmode \
12084 source=sub
/conftest.c object
=$am__obj \
12085 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12086 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12087 >/dev
/null
2>conftest.err
&&
12088 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12089 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12090 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12091 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12092 # icc doesn't choke on unknown options, it will just issue warnings
12093 # or remarks (even with -Werror). So we grep stderr for any message
12094 # that says an option was ignored or not supported.
12095 # When given -MP, icc 7.0 and 7.1 complain thusly:
12096 # icc: Command line warning: ignoring option '-M'; no argument required
12097 # The diagnosis changed in icc 8.0:
12098 # icc: Command line remark: option '-MP' not supported
12099 if (grep 'ignoring option' conftest.err ||
12100 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12101 am_cv_CC_dependencies_compiler_type
=$depmode
12108 rm -rf conftest.dir
12110 am_cv_CC_dependencies_compiler_type
=none
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12115 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12116 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
12119 test "x$enable_dependency_tracking" != xno \
12120 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
12121 am__fastdepCC_TRUE
=
12122 am__fastdepCC_FALSE
='#'
12124 am__fastdepCC_TRUE
='#'
12125 am__fastdepCC_FALSE
=
12131 # --------------------- #
12132 # Checks for programs. #
12133 # --------------------- #
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12137 $as_echo_n "checking whether ln -s works... " >&6; }
12139 if test "$LN_S" = "ln -s"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12141 $as_echo "yes" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12144 $as_echo "no, using $LN_S" >&6; }
12147 if test -n "$ac_tool_prefix"; then
12148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12149 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12153 $as_echo_n "(cached) " >&6
12155 if test -n "$RANLIB"; then
12156 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
12158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12159 for as_dir
in $PATH
12162 test -z "$as_dir" && as_dir
=.
12163 for ac_exec_ext
in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 RANLIB
=$ac_cv_prog_RANLIB
12176 if test -n "$RANLIB"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12178 $as_echo "$RANLIB" >&6; }
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12186 if test -z "$ac_cv_prog_RANLIB"; then
12187 ac_ct_RANLIB
=$RANLIB
12188 # Extract the first word of "ranlib", so it can be a program name with args.
12189 set dummy ranlib
; ac_word
=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
12195 if test -n "$ac_ct_RANLIB"; then
12196 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
12198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12199 for as_dir
in $PATH
12202 test -z "$as_dir" && as_dir
=.
12203 for ac_exec_ext
in '' $ac_executable_extensions; do
12204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12205 ac_cv_prog_ac_ct_RANLIB
="ranlib"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
12216 if test -n "$ac_ct_RANLIB"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12218 $as_echo "$ac_ct_RANLIB" >&6; }
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12224 if test "x$ac_ct_RANLIB" = x
; then
12227 case $cross_compiling:$ac_tool_warned in
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12231 ac_tool_warned
=yes ;;
12233 RANLIB
=$ac_ct_RANLIB
12236 RANLIB
="$ac_cv_prog_RANLIB"
12240 if test -n "$ac_tool_prefix"; then
12241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12242 set dummy
${ac_tool_prefix}ar; ac_word
=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if test "${ac_cv_prog_AR+set}" = set; then :
12246 $as_echo_n "(cached) " >&6
12248 if test -n "$AR"; then
12249 ac_cv_prog_AR
="$AR" # Let the user override the test.
12251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12252 for as_dir
in $PATH
12255 test -z "$as_dir" && as_dir
=.
12256 for ac_exec_ext
in '' $ac_executable_extensions; do
12257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12258 ac_cv_prog_AR
="${ac_tool_prefix}ar"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 if test -n "$AR"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12271 $as_echo "$AR" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12279 if test -z "$ac_cv_prog_AR"; then
12281 # Extract the first word of "ar", so it can be a program name with args.
12282 set dummy
ar; ac_word
=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284 $as_echo_n "checking for $ac_word... " >&6; }
12285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12288 if test -n "$ac_ct_AR"; then
12289 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
12291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12292 for as_dir
in $PATH
12295 test -z "$as_dir" && as_dir
=.
12296 for ac_exec_ext
in '' $ac_executable_extensions; do
12297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12298 ac_cv_prog_ac_ct_AR
="ar"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
12309 if test -n "$ac_ct_AR"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12311 $as_echo "$ac_ct_AR" >&6; }
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12317 if test "x$ac_ct_AR" = x
; then
12320 case $cross_compiling:$ac_tool_warned in
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12324 ac_tool_warned
=yes ;;
12329 AR
="$ac_cv_prog_AR"
12333 # ---------------------- #
12334 # Checks for libraries. #
12335 # ---------------------- #
12337 ac_config_files
="$ac_config_files Makefile import/Makefile"
12339 ac_config_commands
="$ac_config_commands default"
12341 cat >confcache
<<\_ACEOF
12342 # This file is a shell script that caches the results of configure
12343 # tests run on this system so they can be shared between configure
12344 # scripts and configure runs, see configure's option --config-cache.
12345 # It is not useful on other systems. If it contains results you don't
12346 # want to keep, you may remove or edit it.
12348 # config.status only pays attention to the cache file if you give it
12349 # the --recheck option to rerun configure.
12351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12353 # following values.
12357 # The following way of writing the cache mishandles newlines in values,
12358 # but we know of no workaround that is simple, portable, and efficient.
12359 # So, we kill variables containing newlines.
12360 # Ultrix sh set writes to stderr and can't be redirected directly,
12361 # and sets the high bit in the cache file unless we assign to the vars.
12363 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12364 eval ac_val
=\$
$ac_var
12368 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12372 _ | IFS | as_nl
) ;; #(
12373 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12374 *) { eval $ac_var=; unset $ac_var;} ;;
12380 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12381 *${as_nl}ac_space
=\
*)
12382 # `set' does not quote correctly, so add quotes: double-quote
12383 # substitution turns \\\\ into \\, and sed turns \\ into \.
12386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12389 # `set' quotes correctly as required by POSIX, so do not add quotes.
12390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12403 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12404 if test -w "$cache_file"; then
12405 test "x$cache_file" != "x/dev/null" &&
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12407 $as_echo "$as_me: updating cache $cache_file" >&6;}
12408 cat confcache
>$cache_file
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12411 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12416 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12417 # Let make expand exec_prefix.
12418 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12420 DEFS
=-DHAVE_CONFIG_H
12424 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12425 # 1. Remove the extension, and $U if already installed.
12426 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12427 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12429 # will be set to the directory where LIBOBJS objects are built.
12430 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12431 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12433 LIBOBJS
=$ac_libobjs
12435 LTLIBOBJS
=$ac_ltlibobjs
12438 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12439 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
12440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12442 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12443 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
12444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12446 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
12447 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
12448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12450 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
12451 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
12452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12454 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
12455 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
12456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12458 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
12459 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
12460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12462 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12463 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12466 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12467 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12473 if test -n "$gl_LIBOBJS"; then
12474 # Remove the extension.
12475 sed_drop_objext
='s/\.o$//;s/\.obj$//'
12476 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12477 gl_libobjs
="$gl_libobjs $i.$ac_objext"
12478 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
12481 gl_LIBOBJS
=$gl_libobjs
12483 gl_LTLIBOBJS
=$gl_ltlibobjs
12489 if test -n "$gltests_LIBOBJS"; then
12490 # Remove the extension.
12491 sed_drop_objext
='s/\.o$//;s/\.obj$//'
12492 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12493 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
12494 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
12497 gltests_LIBOBJS
=$gltests_libobjs
12499 gltests_LTLIBOBJS
=$gltests_ltlibobjs
12502 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12503 as_fn_error
"conditional \"AMDEP\" was never defined.
12504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12506 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12507 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
12508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12510 if test -n "$EXEEXT"; then
12512 am__EXEEXT_FALSE
='#'
12514 am__EXEEXT_TRUE
='#'
12519 : ${CONFIG_STATUS=./config.status}
12521 ac_clean_files_save
=$ac_clean_files
12522 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12528 # Generated by $as_me.
12529 # Run this file to recreate the current configuration.
12530 # Compiler output produced by configure, useful for debugging
12531 # configure, is in config.log if it exists.
12534 ac_cs_recheck=false
12537 SHELL=\${CONFIG_SHELL-$SHELL}
12540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12541 ## -------------------- ##
12542 ## M4sh Initialization. ##
12543 ## -------------------- ##
12545 # Be more Bourne compatible
12546 DUALCASE
=1; export DUALCASE
# for MKS sh
12547 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12550 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12551 # is contrary to our usage. Disable this feature.
12552 alias -g '${1+"$@"}'='"$@"'
12553 setopt NO_GLOB_SUBST
12555 case `(set -o) 2>/dev/null` in #(
12567 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12568 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12571 # Prefer a ksh shell builtin over an external printf program on Solaris,
12572 # but without wasting forks for bash or zsh.
12573 if test -z "$BASH_VERSION$ZSH_VERSION" \
12574 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12575 as_echo='print
-r --'
12576 as_echo_n='print
-rn --'
12577 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12578 as_echo='printf %s
\n'
12579 as_echo_n='printf %s
'
12581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12582 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12583 as_echo_n='/usr
/ucb
/echo -n'
12585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12586 as_echo_n_body='eval
12590 expr "X$arg" : "X\\(.*\\)$as_nl";
12591 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12593 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12595 export as_echo_n_body
12596 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12598 export as_echo_body
12599 as_echo='sh
-c $as_echo_body as_echo
'
12602 # The user is always right.
12603 if test "${PATH_SEPARATOR+set}" != set; then
12605 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12606 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12613 # We need space, tab and new line, in precisely that order. Quoting is
12614 # there to prevent editors from complaining about space-tab.
12615 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12616 # splitting by setting IFS to empty value.)
12619 # Find who we are. Look in the path if we contain no directory separator.
12621 *[\\/]* ) as_myself=$0 ;;
12622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12626 test -z "$as_dir" && as_dir=.
12627 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12633 # We did not find ourselves, most probably we were run as `sh COMMAND'
12634 # in which case we are not to be found in the path.
12635 if test "x$as_myself" = x
; then
12638 if test ! -f "$as_myself"; then
12639 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12643 # Unset variables that we do not need and which cause bugs (e.g. in
12644 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12645 # suppresses any "Segmentation fault" message there. '((' could
12646 # trigger a bug in pdksh 5.2.14.
12647 for as_var
in BASH_ENV ENV MAIL MAILPATH
12648 do eval test x\
${$as_var+set} = xset \
12649 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12662 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12665 # as_fn_error ERROR [LINENO LOG_FD]
12666 # ---------------------------------
12667 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12668 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12669 # script with status $?, using 1 if that was 0.
12672 as_status
=$?
; test $as_status -eq 0 && as_status
=1
12674 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12675 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12677 $as_echo "$as_me: error: $1" >&2
12678 as_fn_exit
$as_status
12682 # as_fn_set_status STATUS
12683 # -----------------------
12684 # Set $? to STATUS, without forking.
12685 as_fn_set_status
()
12688 } # as_fn_set_status
12690 # as_fn_exit STATUS
12691 # -----------------
12692 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12696 as_fn_set_status
$1
12702 # Portably unset VAR.
12705 { eval $1=; unset $1;}
12707 as_unset
=as_fn_unset
12708 # as_fn_append VAR VALUE
12709 # ----------------------
12710 # Append the text in VALUE to the end of the definition contained in VAR. Take
12711 # advantage of any shell optimizations that allow amortized linear growth over
12712 # repeated appends, instead of the typical quadratic growth present in naive
12714 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12715 eval 'as_fn_append ()
12726 # as_fn_arith ARG...
12727 # ------------------
12728 # Perform arithmetic evaluation on the ARGs, and store the result in the
12729 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12730 # must be portable across $(()) and expr.
12731 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12732 eval 'as_fn_arith ()
12739 as_val
=`expr "$@" || test $? -eq 1`
12744 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12745 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12751 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12752 as_basename
=basename
12757 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12763 as_me
=`$as_basename -- "$0" ||
12764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12765 X"$0" : 'X\(//\)$' \| \
12766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12768 sed '/^.*\/\([^/][^/]*\)\/*$/{
12782 # Avoid depending upon Character Ranges.
12783 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12784 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12785 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12786 as_cr_digits
='0123456789'
12787 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12789 ECHO_C
= ECHO_N
= ECHO_T
=
12790 case `echo -n x` in #(((((
12792 case `echo 'xy\c'` in
12793 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12795 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12802 rm -f conf$$ conf$$.exe conf$$.
file
12803 if test -d conf$$.dir
; then
12804 rm -f conf$$.dir
/conf$$.
file
12807 mkdir conf$$.dir
2>/dev
/null
12809 if (echo >conf$$.
file) 2>/dev
/null
; then
12810 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12812 # ... but there are two gotchas:
12813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12815 # In both cases, we have to default to `cp -p'.
12816 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12818 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12826 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12827 rmdir conf$$.dir
2>/dev
/null
12832 # Create "$as_dir" as a directory, including parents if necessary.
12837 -*) as_dir
=.
/$as_dir;;
12839 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12843 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12844 *) as_qdir
=$as_dir;;
12846 as_dirs
="'$as_qdir' $as_dirs"
12847 as_dir
=`$as_dirname -- "$as_dir" ||
12848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12849 X"$as_dir" : 'X\(//\)[^/]' \| \
12850 X"$as_dir" : 'X\(//\)$' \| \
12851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12852 $as_echo X"$as_dir" |
12853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12857 /^X\(\/\/\)[^/].*/{
12870 test -d "$as_dir" && break
12872 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12873 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
12877 if mkdir
-p .
2>/dev
/null
; then
12878 as_mkdir_p
='mkdir -p "$as_dir"'
12880 test -d .
/-p && rmdir .
/-p
12884 if test -x / >/dev
/null
2>&1; then
12885 as_test_x
='test -x'
12887 if ls -dL / >/dev
/null
2>&1; then
12894 if test -d "$1"; then
12900 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12901 ???[sx]*):;;*)false;;esac;fi
12905 as_executable_p
=$as_test_x
12907 # Sed expression to map a string onto a valid CPP name.
12908 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12910 # Sed expression to map a string onto a valid variable name.
12911 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12915 ## ----------------------------------- ##
12916 ## Main body of $CONFIG_STATUS script. ##
12917 ## ----------------------------------- ##
12919 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12922 # Save the log message, to keep $0 and so on meaningful, and to
12923 # report actual input values of CONFIG_FILES etc. instead of their
12924 # values after options handling.
12926 This file was extended by $as_me, which was
12927 generated by GNU Autoconf 2.64. Invocation command line was
12929 CONFIG_FILES = $CONFIG_FILES
12930 CONFIG_HEADERS = $CONFIG_HEADERS
12931 CONFIG_LINKS = $CONFIG_LINKS
12932 CONFIG_COMMANDS = $CONFIG_COMMANDS
12935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12940 case $ac_config_files in *"
12941 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12944 case $ac_config_headers in *"
12945 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12950 # Files that config.status was made for.
12951 config_files="$ac_config_files"
12952 config_headers="$ac_config_headers"
12953 config_commands="$ac_config_commands"
12957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12959 \`$as_me' instantiates files and other configuration actions
12960 from templates according to the current configuration. Unless the files
12961 and actions are specified as TAGs, all are instantiated by default.
12963 Usage: $0 [OPTION]... [TAG]...
12965 -h, --help print this help, then exit
12966 -V, --version print version number and configuration settings, then exit
12967 -q, --quiet, --silent
12968 do not print progress messages
12969 -d, --debug don't remove temporary files
12970 --recheck update $as_me by reconfiguring in the same conditions
12971 --file=FILE[:TEMPLATE]
12972 instantiate the configuration file FILE
12973 --header=FILE[:TEMPLATE]
12974 instantiate the configuration header FILE
12976 Configuration files:
12979 Configuration headers:
12982 Configuration commands:
12985 Report bugs to the package provider."
12988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12991 configured by $0, generated by GNU Autoconf 2.64,
12992 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12994 Copyright (C) 2009 Free Software Foundation, Inc.
12995 This config.status script is free software; the Free Software Foundation
12996 gives unlimited permission to copy, distribute and modify it."
13003 test -n "\$AWK" || AWK=awk
13006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13007 # The default lists apply if the user does not specify any file.
13013 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13014 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13025 # Handling of the options.
13026 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13028 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13029 $as_echo "$ac_cs_version"; exit ;;
13030 --debug |
--debu |
--deb |
--de |
--d |
-d )
13032 --file |
--fil |
--fi |
--f )
13035 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13037 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13038 ac_need_defaults
=false
;;
13039 --header |
--heade |
--head |
--hea )
13042 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13044 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13045 ac_need_defaults
=false
;;
13047 # Conflict between --help and --header
13048 as_fn_error
"ambiguous option: \`$1'
13049 Try \`$0 --help' for more information.";;
13050 --help |
--hel |
-h )
13051 $as_echo "$ac_cs_usage"; exit ;;
13052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13053 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13056 # This is an error.
13057 -*) as_fn_error
"unrecognized option: \`$1'
13058 Try \`$0 --help' for more information." ;;
13060 *) as_fn_append ac_config_targets
" $1"
13061 ac_need_defaults
=false
;;
13067 ac_configure_extra_args
=
13069 if $ac_cs_silent; then
13071 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13076 if \$ac_cs_recheck; then
13077 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13080 CONFIG_SHELL='$SHELL'
13081 export CONFIG_SHELL
13086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13091 ## Running $as_me. ##
13097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13101 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13107 # Handling of arguments.
13108 for ac_config_target
in $ac_config_targets
13110 case $ac_config_target in
13111 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
13112 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13113 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13114 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
13115 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
13117 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13122 # If the user did not use the arguments to specify the items to instantiate,
13123 # then the envvar interface is used. Set only those that are not.
13124 # We use the long form for the default assignment because of an extremely
13125 # bizarre bug on SunOS 4.1.3.
13126 if $ac_need_defaults; then
13127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13132 # Have a temporary directory for convenience. Make it in the build tree
13133 # simply because there is no reason against having it here, and in addition,
13134 # creating and moving files from /tmp can sometimes cause problems.
13135 # Hook for its removal unless debugging.
13136 # Note that there is a small window in which the directory will not be cleaned:
13137 # after its creation but before its name has been assigned to `$tmp'.
13141 trap 'exit_status=$?
13142 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13144 trap 'as_fn_exit 1' 1 2 13 15
13146 # Create a (secure) tmp directory for tmp files.
13149 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13150 test -n "$tmp" && test -d "$tmp"
13153 tmp
=.
/conf$$
-$RANDOM
13154 (umask 077 && mkdir
"$tmp")
13155 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
13157 # Set up the scripts for CONFIG_FILES section.
13158 # No need to generate them if there are no CONFIG_FILES.
13159 # This happens for instance with `./config.status config.h'.
13160 if test -n "$CONFIG_FILES"; then
13163 ac_cr
=`echo X | tr X '\015'`
13164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13165 # But we know of no other shell where ac_cr would be empty at this
13166 # point, so we can use a bashism as a fallback.
13167 if test "x$ac_cr" = x
; then
13168 eval ac_cr
=\$
\'\\r
\'
13170 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13174 ac_cs_awk_cr
=$ac_cr
13177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13182 echo "cat >conf$$subs.awk <<_ACEOF" &&
13183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13185 } >conf$$subs.sh ||
13186 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13189 for ac_last_try in false false false false false :; do
13190 . ./conf$$subs.sh ||
13191 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13193 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13194 if test $ac_delim_n = $ac_delim_num; then
13196 elif $ac_last_try; then
13197 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13199 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13202 rm -f conf$$subs.sh
13204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13205 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13209 s/^/S["/; s
/!.
*/"]=/
13219 s/\(.\{148\}\).*/\1/
13221 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13226 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13233 s/\(.\{148\}\).*/\1/
13235 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13239 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13244 ' <conf$$subs.awk | sed '
13249 ' >>$CONFIG_STATUS || ac_write_fail=1
13250 rm -f conf$$subs.awk
13251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13253 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13254 for (key in S) S_is_set[key] = 1
13260 nfields = split(line, field, "@
")
13262 len = length(field[1])
13263 for (i = 2; i < nfields; i++) {
13265 keylen = length(key)
13266 if (S_is_set[key]) {
13268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13269 len += length(value) + length(field[++i])
13280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13281 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13282 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13285 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13286 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
13289 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13290 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
13291 # trailing colons and then remove the whole line if VPATH becomes empty
13292 # (actually we leave an empty line to preserve line numbers).
13293 if test "x
$srcdir" = x.; then
13294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13295 s/:*\$(srcdir):*/:/
13296 s/:*\${srcdir}:*/:/
13298 s/^\([^=]*=[ ]*\):*/\1/
13304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13305 fi # test -n "$CONFIG_FILES"
13307 # Set up the scripts for CONFIG_HEADERS section.
13308 # No need to generate them if there are no CONFIG_HEADERS.
13309 # This happens for instance with `./config.status Makefile'.
13310 if test -n "$CONFIG_HEADERS"; then
13311 cat >"$tmp/defines.
awk" <<\_ACAWK ||
13315 # Transform confdefs.h into an awk script `defines.awk', embedded as
13316 # here-document in config.status, that substitutes the proper values into
13317 # config.h.in to produce config.h.
13319 # Create a delimiter string that does not exist in confdefs.h, to ease
13320 # handling of long lines.
13322 for ac_last_try in false false :; do
13323 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
13324 if test -z "$ac_t"; then
13326 elif $ac_last_try; then
13327 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
13329 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13333 # For the awk script, D is an array of macro values keyed by name,
13334 # likewise P contains macro parameters if any. Preserve backslash
13335 # newline sequences.
13337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13339 s/.\{148\}/&'"$ac_delim"'/g
13342 s/^[ ]*#[ ]*define[ ][ ]*/ /
13349 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13351 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13355 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13356 D["\
1"]=" \
3\\\\\\n
"\\/p
13358 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13363 s/.\{148\}/&'"$ac_delim"'/g
13368 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13371 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13373 ' <confdefs.h | sed '
13374 s/'"$ac_delim"'/"\\\
13375 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13378 for (key in D) D_is_set[key] = 1
13381 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13383 split(line, arg, " ")
13384 if (arg[1] == "#") {
13388 defundef
= substr
(arg
[1], 2)
13391 split(mac1
, mac2
, "(") #)
13393 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13394 if (D_is_set
[macro
]) {
13395 # Preserve the white space surrounding the "#".
13396 print prefix
"define", macro P
[macro
] D
[macro
]
13399 # Replace #undef with comments. This is necessary, for example,
13400 # in the case of _POSIX_SOURCE, which is predefined and required
13401 # on some systems where configure will not decide to define it.
13402 if (defundef
== "undef") {
13403 print
"/*", prefix defundef
, macro
, "*/"
13411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13412 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
13413 fi # test -n "$CONFIG_HEADERS"
13416 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13421 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13423 case $ac_mode$ac_tag in
13425 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13426 :[FH
]-) ac_tag
=-:-;;
13427 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13444 -) ac_f
="$tmp/stdin";;
13445 *) # Look for the file first in the build tree, then in the source tree
13446 # (if the path is not absolute). The absolute path cannot be DOS-style,
13447 # because $ac_f cannot contain `:'.
13451 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13453 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
13455 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13456 as_fn_append ac_file_inputs
" '$ac_f'"
13459 # Let's still pretend it is `configure' which instantiates (i.e., don't
13460 # use $as_me), people would be surprised to read:
13461 # /* config.h. Generated by config.status. */
13462 configure_input
='Generated from '`
13463 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13465 if test x
"$ac_file" != x-
; then
13466 configure_input
="$ac_file. $configure_input"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13468 $as_echo "$as_me: creating $ac_file" >&6;}
13470 # Neutralize special characters interpreted by sed in replacement strings.
13471 case $configure_input in #(
13472 *\
&* |
*\|
* |
*\\* )
13473 ac_sed_conf_input
=`$as_echo "$configure_input" |
13474 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13475 *) ac_sed_conf_input
=$configure_input;;
13479 *:-:* |
*:-) cat >"$tmp/stdin" \
13480 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
13485 ac_dir
=`$as_dirname -- "$ac_file" ||
13486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13487 X"$ac_file" : 'X\(//\)[^/]' \| \
13488 X"$ac_file" : 'X\(//\)$' \| \
13489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13490 $as_echo X"$ac_file" |
13491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13495 /^X\(\/\/\)[^/].*/{
13508 as_dir
="$ac_dir"; as_fn_mkdir_p
13512 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13514 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13515 # A ".." for each directory in $ac_dir_suffix.
13516 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13517 case $ac_top_builddir_sub in
13518 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13519 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13522 ac_abs_top_builddir
=$ac_pwd
13523 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13524 # for backward compatibility:
13525 ac_top_builddir
=$ac_top_build_prefix
13528 .
) # We are building in place.
13530 ac_top_srcdir
=$ac_top_builddir_sub
13531 ac_abs_top_srcdir
=$ac_pwd ;;
13532 [\\/]* | ?
:[\\/]* ) # Absolute name.
13533 ac_srcdir
=$srcdir$ac_dir_suffix;
13534 ac_top_srcdir
=$srcdir
13535 ac_abs_top_srcdir
=$srcdir ;;
13536 *) # Relative name.
13537 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13538 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13539 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13541 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13551 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13552 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13554 ac_MKDIR_P
=$MKDIR_P
13556 [\\/$
]* | ?
:[\\/]* ) ;;
13557 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13562 # If the template does not know about datarootdir, expand it.
13563 # FIXME: This hack should be removed a few years after 2.60.
13564 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13575 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13576 *datarootdir
*) ac_datarootdir_seen
=yes;;
13577 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13579 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582 ac_datarootdir_hack='
13583 s&@datadir@&$datadir&g
13584 s&@docdir@&$docdir&g
13585 s&@infodir@&$infodir&g
13586 s&@localedir@&$localedir&g
13587 s&@mandir@&$mandir&g
13588 s&\\\${datarootdir}&$datarootdir&g' ;;
13592 # Neutralize VPATH when `$srcdir' = `.'.
13593 # Shell code in configure.ac might set extrasub.
13594 # FIXME: do we really want to maintain this feature?
13595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13596 ac_sed_extra="$ac_vpsub
13599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13601 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13602 s|@configure_input@|
$ac_sed_conf_input|
;t t
13603 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13604 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13605 s
&@srcdir@
&$ac_srcdir&;t t
13606 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13607 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13608 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13609 s
&@builddir@
&$ac_builddir&;t t
13610 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13611 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13612 s
&@INSTALL@
&$ac_INSTALL&;t t
13613 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13614 $ac_datarootdir_hack
13616 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13617 || as_fn_error "could not create
$ac_file" "$LINENO" 5
13619 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13620 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13621 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13623 which seems to be undefined. Please make sure it is defined." >&5
13624 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13625 which seems to be undefined. Please make sure it is defined." >&2;}
13629 -) cat "$tmp/out" && rm -f "$tmp/out";;
13630 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13632 || as_fn_error "could not create $ac_file" "$LINENO" 5
13638 if test x"$ac_file" != x-; then
13640 $as_echo "/* $configure_input */" \
13641 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13642 } >"$tmp/config.h" \
13643 || as_fn_error "could not create $ac_file" "$LINENO" 5
13644 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13646 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13649 mv "$tmp/config.h" "$ac_file" \
13650 || as_fn_error "could not create $ac_file" "$LINENO" 5
13653 $as_echo "/* $configure_input */" \
13654 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13655 || as_fn_error "could not create -" "$LINENO" 5
13657 # Compute "$ac_file"'s index
in $config_headers.
13660 for _am_header
in $config_headers :; do
13661 case $_am_header in
13662 $_am_arg |
$_am_arg:* )
13665 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13668 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13669 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13670 X"$_am_arg" : 'X\(//\)[^/]' \| \
13671 X"$_am_arg" : 'X\(//\)$' \| \
13672 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13673 $as_echo X"$_am_arg" |
13674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13678 /^X\(\/\/\)[^/].*/{
13690 s/.*/./; q'`/stamp-h
$_am_stamp_count
13693 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13694 $as_echo "$as_me: executing $ac_file commands" >&6;}
13699 case $ac_file$ac_mode in
13700 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
13701 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13702 # are listed without --file. Let's play safe and only enable the eval
13703 # if we detect the quoting.
13704 case $CONFIG_FILES in
13705 *\'*) eval set x
"$CONFIG_FILES" ;;
13706 *) set x
$CONFIG_FILES ;;
13711 # Strip MF so we end up with the name of the file.
13712 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13713 # Check whether this is an Automake generated Makefile or not.
13714 # We used to match only the files named `Makefile.in', but
13715 # some people rename them; so instead we look at the file content.
13716 # Grep'ing the first line is not enough: some people post-process
13717 # each Makefile.in and add a new line on top of each file to say so.
13718 # Grep'ing the whole file is not good either: AIX grep has a line
13719 # limit of 2048, but all sed's we know have understand at least 4000.
13720 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13721 dirpart
=`$as_dirname -- "$mf" ||
13722 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13723 X"$mf" : 'X\(//\)[^/]' \| \
13724 X"$mf" : 'X\(//\)$' \| \
13725 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13731 /^X\(\/\/\)[^/].*/{
13747 # Extract the definition of DEPDIR, am__include, and am__quote
13748 # from the Makefile without running `make'.
13749 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13750 test -z "$DEPDIR" && continue
13751 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13752 test -z "am__include" && continue
13753 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13754 # When using ansi2knr, U may be empty or an underscore; expand it
13755 U
=`sed -n 's/^U = //p' < "$mf"`
13756 # Find all dependency output files, they are included files with
13757 # $(DEPDIR) in their names. We invoke sed twice because it is the
13758 # simplest approach to changing $(DEPDIR) to its actual value in the
13760 for file in `sed -n "
13761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13763 # Make sure the directory exists.
13764 test -f "$dirpart/$file" && continue
13765 fdir
=`$as_dirname -- "$file" ||
13766 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13767 X"$file" : 'X\(//\)[^/]' \| \
13768 X"$file" : 'X\(//\)$' \| \
13769 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13770 $as_echo X"$file" |
13771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13775 /^X\(\/\/\)[^/].*/{
13788 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
13789 # echo "creating $dirpart/$file"
13790 echo '# dummy' > "$dirpart/$file"
13796 case x
$CONFIG_HEADERS in
13797 xconfig.h
:config.
in)
13808 ac_clean_files
=$ac_clean_files_save
13810 test $ac_write_fail = 0 ||
13811 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
13814 # configure is writing to config.log, and then calls config.status.
13815 # config.status does its own redirection, appending to config.log.
13816 # Unfortunately, on DOS this fails, as config.log is still kept open
13817 # by configure, so config.status won't be able to write to it; its
13818 # output is simply discarded. So we exec the FD to /dev/null,
13819 # effectively closing config.log, so it can be properly (re)opened and
13820 # appended to by config.status. When coming back to configure, we
13821 # need to make the FD available again.
13822 if test "$no_create" != yes; then
13824 ac_config_status_args
=
13825 test "$silent" = yes &&
13826 ac_config_status_args
="$ac_config_status_args --quiet"
13828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13831 # would make configure fail if this is the last instruction.
13832 $ac_cs_success || as_fn_exit $?
13834 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13836 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}