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
881 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
886 HAVE_UNSIGNED_LONG_LONG_INT
888 GL_GENERATE_FNMATCH_H_FALSE
889 GL_GENERATE_FNMATCH_H_TRUE
893 GL_GENERATE_ALLOCA_H_FALSE
894 GL_GENERATE_ALLOCA_H_TRUE
897 GL_COND_LIBTOOL_FALSE
925 MAINTAINER_MODE_FALSE
954 program_transform_name
967 enable_option_checking
968 enable_maintainer_mode
969 enable_dependency_tracking
971 ac_precious_vars
='build_alias
982 # Initialize some variables set by options.
984 ac_init_version
=false
985 ac_unrecognized_opts
=
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
996 program_transform_name
=s
,x
,x
,
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir
='${exec_prefix}/bin'
1011 sbindir
='${exec_prefix}/sbin'
1012 libexecdir
='${exec_prefix}/libexec'
1013 datarootdir
='${prefix}/share'
1014 datadir
='${datarootdir}'
1015 sysconfdir
='${prefix}/etc'
1016 sharedstatedir
='${prefix}/com'
1017 localstatedir
='${prefix}/var'
1018 includedir
='${prefix}/include'
1019 oldincludedir
='/usr/include'
1020 docdir
='${datarootdir}/doc/${PACKAGE}'
1021 infodir
='${datarootdir}/info'
1026 libdir
='${exec_prefix}/lib'
1027 localedir
='${datarootdir}/locale'
1028 mandir
='${datarootdir}/man'
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\
$ac_option
1042 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1048 case $ac_dashdash$ac_option in
1052 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1054 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1055 bindir
=$ac_optarg ;;
1057 -build |
--build |
--buil |
--bui |
--bu)
1058 ac_prev
=build_alias
;;
1059 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1060 build_alias
=$ac_optarg ;;
1062 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1063 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1064 ac_prev
=cache_file
;;
1065 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1066 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1067 cache_file
=$ac_optarg ;;
1069 --config-cache |
-C)
1070 cache_file
=config.cache
;;
1072 -datadir |
--datadir |
--datadi |
--datad)
1074 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1075 datadir
=$ac_optarg ;;
1077 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1078 |
--dataroo |
--dataro |
--datar)
1079 ac_prev
=datarootdir
;;
1080 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1081 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1082 datarootdir
=$ac_optarg ;;
1084 -disable-* |
--disable-*)
1085 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error
"invalid feature name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_
$ac_useropt"
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval enable_
$ac_useropt=no
;;
1100 -docdir |
--docdir |
--docdi |
--doc |
--do)
1102 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1103 docdir
=$ac_optarg ;;
1105 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1107 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1108 dvidir
=$ac_optarg ;;
1110 -enable-* |
--enable-*)
1111 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1114 as_fn_error
"invalid feature name: $ac_useropt"
1115 ac_useropt_orig
=$ac_useropt
1116 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_
$ac_useropt"
1121 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep
=', ';;
1124 eval enable_
$ac_useropt=\
$ac_optarg ;;
1126 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1127 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1128 |
--exec |
--exe |
--ex)
1129 ac_prev
=exec_prefix
;;
1130 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1131 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1132 |
--exec=* |
--exe=* |
--ex=*)
1133 exec_prefix
=$ac_optarg ;;
1135 -gas |
--gas |
--ga |
--g)
1136 # Obsolete; use --with-gas.
1139 -help |
--help |
--hel |
--he |
-h)
1140 ac_init_help
=long
;;
1141 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1142 ac_init_help
=recursive
;;
1143 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1144 ac_init_help
=short
;;
1146 -host |
--host |
--hos |
--ho)
1147 ac_prev
=host_alias
;;
1148 -host=* |
--host=* |
--hos=* |
--ho=*)
1149 host_alias
=$ac_optarg ;;
1151 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1153 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1155 htmldir
=$ac_optarg ;;
1157 -includedir |
--includedir |
--includedi |
--included |
--include \
1158 |
--includ |
--inclu |
--incl |
--inc)
1159 ac_prev
=includedir
;;
1160 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1161 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1162 includedir
=$ac_optarg ;;
1164 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1166 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1167 infodir
=$ac_optarg ;;
1169 -libdir |
--libdir |
--libdi |
--libd)
1171 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1172 libdir
=$ac_optarg ;;
1174 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1175 |
--libexe |
--libex |
--libe)
1176 ac_prev
=libexecdir
;;
1177 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1178 |
--libexe=* |
--libex=* |
--libe=*)
1179 libexecdir
=$ac_optarg ;;
1181 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1182 ac_prev
=localedir
;;
1183 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1184 localedir
=$ac_optarg ;;
1186 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1187 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1188 ac_prev
=localstatedir
;;
1189 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1190 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1191 localstatedir
=$ac_optarg ;;
1193 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1195 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1196 mandir
=$ac_optarg ;;
1198 -nfp |
--nfp |
--nf)
1199 # Obsolete; use --without-fp.
1202 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1203 |
--no-cr |
--no-c |
-n)
1206 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1207 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1210 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1211 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1212 |
--oldin |
--oldi |
--old |
--ol |
--o)
1213 ac_prev
=oldincludedir
;;
1214 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1215 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1216 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1217 oldincludedir
=$ac_optarg ;;
1219 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1221 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1222 prefix
=$ac_optarg ;;
1224 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1225 |
--program-pre |
--program-pr |
--program-p)
1226 ac_prev
=program_prefix
;;
1227 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1228 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1229 program_prefix
=$ac_optarg ;;
1231 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1232 |
--program-suf |
--program-su |
--program-s)
1233 ac_prev
=program_suffix
;;
1234 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1235 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1236 program_suffix
=$ac_optarg ;;
1238 -program-transform-name |
--program-transform-name \
1239 |
--program-transform-nam |
--program-transform-na \
1240 |
--program-transform-n |
--program-transform- \
1241 |
--program-transform |
--program-transfor \
1242 |
--program-transfo |
--program-transf \
1243 |
--program-trans |
--program-tran \
1244 |
--progr-tra |
--program-tr |
--program-t)
1245 ac_prev
=program_transform_name
;;
1246 -program-transform-name=* |
--program-transform-name=* \
1247 |
--program-transform-nam=* |
--program-transform-na=* \
1248 |
--program-transform-n=* |
--program-transform-=* \
1249 |
--program-transform=* |
--program-transfor=* \
1250 |
--program-transfo=* |
--program-transf=* \
1251 |
--program-trans=* |
--program-tran=* \
1252 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1253 program_transform_name
=$ac_optarg ;;
1255 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1257 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1258 pdfdir
=$ac_optarg ;;
1260 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1262 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1265 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1266 |
-silent |
--silent |
--silen |
--sile |
--sil)
1269 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1271 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1273 sbindir
=$ac_optarg ;;
1275 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1276 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1277 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1279 ac_prev
=sharedstatedir
;;
1280 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1281 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1282 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1284 sharedstatedir
=$ac_optarg ;;
1286 -site |
--site |
--sit)
1288 -site=* |
--site=* |
--sit=*)
1291 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1293 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1294 srcdir
=$ac_optarg ;;
1296 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1297 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1298 ac_prev
=sysconfdir
;;
1299 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1300 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1301 sysconfdir
=$ac_optarg ;;
1303 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1304 ac_prev
=target_alias
;;
1305 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1306 target_alias
=$ac_optarg ;;
1308 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1311 -version |
--version |
--versio |
--versi |
--vers |
-V)
1312 ac_init_version
=: ;;
1315 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1318 as_fn_error
"invalid package name: $ac_useropt"
1319 ac_useropt_orig
=$ac_useropt
1320 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep
=', ';;
1328 eval with_
$ac_useropt=\
$ac_optarg ;;
1330 -without-* |
--without-*)
1331 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1334 as_fn_error
"invalid package name: $ac_useropt"
1335 ac_useropt_orig
=$ac_useropt
1336 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1341 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342 ac_unrecognized_sep
=', ';;
1344 eval with_
$ac_useropt=no
;;
1347 # Obsolete; use --with-x.
1350 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1351 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1352 ac_prev
=x_includes
;;
1353 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1354 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1355 x_includes
=$ac_optarg ;;
1357 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1358 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1359 ac_prev
=x_libraries
;;
1360 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1361 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1362 x_libraries
=$ac_optarg ;;
1364 -*) as_fn_error
"unrecognized option: \`$ac_option'
1365 Try \`$0 --help' for more information."
1369 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1370 # Reject names that are not valid shell variable names.
1371 case $ac_envvar in #(
1372 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1373 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1375 eval $ac_envvar=\
$ac_optarg
1376 export $ac_envvar ;;
1379 # FIXME: should be removed in autoconf 3.0.
1380 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1382 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389 if test -n "$ac_prev"; then
1390 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1391 as_fn_error
"missing argument to $ac_option"
1394 if test -n "$ac_unrecognized_opts"; then
1395 case $enable_option_checking in
1397 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1398 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 # Check all directory arguments for consistency.
1403 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404 datadir sysconfdir sharedstatedir localstatedir includedir \
1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406 libdir localedir mandir
1408 eval ac_val
=\$
$ac_var
1409 # Remove trailing slashes.
1412 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413 eval $ac_var=\
$ac_val;;
1415 # Be sure to have absolute directory names.
1417 [\\/$
]* | ?
:[\\/]* ) continue;;
1418 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1420 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1428 target
=$target_alias
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x
; then
1432 if test "x$build_alias" = x
; then
1433 cross_compiling
=maybe
1434 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1435 If a cross compiler is detected then cross compile mode will be used." >&2
1436 elif test "x$build_alias" != "x$host_alias"; then
1442 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1444 test "$silent" = yes && exec 6>/dev
/null
1447 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1448 ac_ls_di
=`ls -di .` &&
1449 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1450 as_fn_error
"working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 as_fn_error
"pwd does not report name of working directory"
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted
=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir
=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 $as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1487 ac_srcdir_defaulted
=no
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1491 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1493 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1495 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1497 # When building in place, set srcdir=.
1498 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 # Remove unnecessary trailing slashes from srcdir.
1502 # Double slashes in file names in object file debugging info
1503 # mess up M-x gdb in Emacs.
1505 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1507 for ac_var
in $ac_precious_vars; do
1508 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1509 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1510 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1511 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1515 # Report the --help message.
1517 if test "$ac_init_help" = "long"; then
1518 # Omit some internal or obsolete options to make the list less imposing.
1519 # This message is too long to be a string in the A/UX 3.1 sh.
1521 \`configure' configures this package to adapt to many kinds of systems.
1523 Usage: $0 [OPTION]... [VAR=VALUE]...
1525 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1526 VAR=VALUE. See below for descriptions of some of the useful variables.
1528 Defaults for the options are specified in brackets.
1531 -h, --help display this help and exit
1532 --help=short display options specific to this package
1533 --help=recursive display the short help of all the included packages
1534 -V, --version display version information and exit
1535 -q, --quiet, --silent do not print \`checking...' messages
1536 --cache-file=FILE cache test results in FILE [disabled]
1537 -C, --config-cache alias for \`--cache-file=config.cache'
1538 -n, --no-create do not create output files
1539 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1541 Installation directories:
1542 --prefix=PREFIX install architecture-independent files in PREFIX
1543 [$ac_default_prefix]
1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 By default, \`make install' will install all the files in
1548 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1549 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1550 for instance \`--prefix=\$HOME'.
1552 For better control, use the options below.
1554 Fine tuning of the installation directories:
1555 --bindir=DIR user executables [EPREFIX/bin]
1556 --sbindir=DIR system admin executables [EPREFIX/sbin]
1557 --libexecdir=DIR program executables [EPREFIX/libexec]
1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1561 --libdir=DIR object code libraries [EPREFIX/lib]
1562 --includedir=DIR C header files [PREFIX/include]
1563 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1564 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1565 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1566 --infodir=DIR info documentation [DATAROOTDIR/info]
1567 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1568 --mandir=DIR man documentation [DATAROOTDIR/man]
1569 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1570 --htmldir=DIR html documentation [DOCDIR]
1571 --dvidir=DIR dvi documentation [DOCDIR]
1572 --pdfdir=DIR pdf documentation [DOCDIR]
1573 --psdir=DIR ps documentation [DOCDIR]
1579 --program-prefix=PREFIX prepend PREFIX to installed program names
1580 --program-suffix=SUFFIX append SUFFIX to installed program names
1581 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1584 --build=BUILD configure
for building on BUILD
[guessed
]
1585 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1586 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1590 if test -n "$ac_init_help"; then
1595 --disable-option-checking ignore unrecognized
--enable/--with options
1596 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1597 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1598 --enable-maintainer-mode enable make rules and dependencies not useful
1599 (and sometimes confusing
) to the casual installer
1600 --disable-dependency-tracking speeds up one-time build
1601 --enable-dependency-tracking do not reject slow dependency extractors
1603 Some influential environment variables
:
1604 CC C compiler
command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1607 nonstandard directory
<lib dir
>
1608 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1609 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1610 you have headers
in a nonstandard directory
<include dir
>
1613 Use these variables to override the choices made by
`configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1616 Report bugs to the package provider.
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1680 generated by GNU Autoconf 2.64
1682 Copyright (C) 2009 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1703 *) ac_try_echo
=$ac_try;;
1705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1709 if test -s conftest.err
; then
1710 grep -v '^ *+' conftest.err
>conftest.er1
1711 cat conftest.er1
>&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.
$ac_objext; then :
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.
$ac_ext >&5
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1729 } # ac_fn_c_try_compile
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1737 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } >/dev/null && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771 # the include files in INCLUDES and setting the cache variable VAR
1773 ac_fn_c_check_header_mongrel ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1786 # Is the header compilable?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788 $as_echo_n "checking $2 usability... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1797 ac_header_compiler=no
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801 $as_echo "$ac_header_compiler" >&6; }
1803 # Is the header present?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805 $as_echo_n "checking $2 presence... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1810 if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1813 ac_header_preproc=no
1815 rm -f conftest.err conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817 $as_echo "$ac_header_preproc" >&6; }
1819 # So? What about this header?
1820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 $as_echo_n "(cached) " >&6
1845 eval "$3=\$ac_header_compiler"
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 } # ac_fn_c_check_header_mongrel
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1865 *) ac_try_echo
=$ac_try;;
1867 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=$ac_status
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1914 if ac_fn_c_try_compile "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 } # ac_fn_c_check_header_compile
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1938 *) ac_try_echo
=$ac_try;;
1940 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1944 if test -s conftest.err
; then
1945 grep -v '^ *+' conftest.err
>conftest.er1
1946 cat conftest.er1
>&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest
$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest
$ac_exeext
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.
$ac_ext >&5
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1972 } # ac_fn_c_try_link
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func
()
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989 #define $2 innocuous_$2
1991 /* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1997 # include <limits.h>
1999 # include <assert.h>
2004 /* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined __stub_$2 || defined __stub___$2
2026 if ac_fn_c_try_link
"$LINENO"; then :
2031 rm -f core conftest.err conftest.
$ac_objext \
2032 conftest
$ac_exeext conftest.
$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2039 } # ac_fn_c_check_func
2041 # ac_fn_c_check_decl LINENO SYMBOL VAR
2042 # ------------------------------------
2043 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2044 ac_fn_c_check_decl
()
2046 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2048 $as_echo_n "checking whether $2 is declared... " >&6; }
2049 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2066 if ac_fn_c_try_compile
"$LINENO"; then :
2071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2078 } # ac_fn_c_check_decl
2080 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081 # --------------------------------------------
2082 # Tries to find the compile-time value of EXPR in a program that includes
2083 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2085 ac_fn_c_compute_int
()
2087 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2096 static int test_array [1 - 2 * !(($2) >= 0)];
2103 if ac_fn_c_try_compile
"$LINENO"; then :
2106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 if ac_fn_c_try_compile
"$LINENO"; then :
2120 ac_hi
=$ac_mid; break
2122 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2123 if test $ac_lo -le $ac_mid; then
2127 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) < 0)];
2145 if ac_fn_c_try_compile
"$LINENO"; then :
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2162 ac_lo
=$ac_mid; break
2164 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2165 if test $ac_mid -le $ac_hi; then
2169 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 if ac_fn_c_try_compile
"$LINENO"; then :
2198 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2203 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2210 static long int longval () { return $2; }
2211 static unsigned long int ulongval () { return $2; }
2218 FILE *f = fopen ("conftest.val", "w");
2223 long int i = longval ();
2226 fprintf (f, "%ld", i);
2230 unsigned long int i = ulongval ();
2233 fprintf (f, "%lu", i);
2235 /* Do not output a trailing newline, as this causes \r\n confusion
2236 on some platforms. */
2237 return ferror (f) || fclose (f) != 0;
2243 if ac_fn_c_try_run
"$LINENO"; then :
2244 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2248 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2249 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2256 } # ac_fn_c_compute_int
2258 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2259 # -------------------------------------------
2260 # Tests whether TYPE exists after having included INCLUDES, setting cache
2261 # variable VAR accordingly.
2262 ac_fn_c_check_type
()
2264 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 $as_echo_n "(cached) " >&6
2271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2283 if ac_fn_c_try_compile
"$LINENO"; then :
2284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2296 if ac_fn_c_try_compile
"$LINENO"; then :
2301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2310 } # ac_fn_c_check_type
2311 cat >config.log
<<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2315 It was created by $as_me, which was
2316 generated by GNU Autoconf 2.64. Invocation command line was
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir
=.
2352 $as_echo "PATH: $as_dir"
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2376 ac_must_keep_next
=false
2382 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2383 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2384 |
-silent |
--silent |
--silen |
--sile |
--sil)
2387 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2392 as_fn_append ac_configure_args1
" '$ac_arg'"
2393 if test $ac_must_keep_next = true
; then
2394 ac_must_keep_next
=false
# Got value, back to normal.
2397 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2398 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2399 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2400 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405 -* ) ac_must_keep_next
=true
;;
2408 as_fn_append ac_configure_args
" '$ac_arg'"
2413 { ac_configure_args0
=; unset ac_configure_args0
;}
2414 { ac_configure_args1
=; unset ac_configure_args1
;}
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2427 ## ---------------- ##
2428 ## Cache variables. ##
2429 ## ---------------- ##
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2465 ## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##
2470 for ac_var in $ac_subst_vars
2472 eval ac_val=\$$ac_var
2474 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 $as_echo "$ac_var='\''$ac_val'\''"
2480 if test -n "$ac_subst_files"; then
2482 ## ------------------- ##
2483 ## File substitutions. ##
2484 ## ------------------- ##
2487 for ac_var
in $ac_subst_files
2489 eval ac_val
=\$
$ac_var
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 $as_echo "$ac_var='\''$ac_val'\''"
2498 if test -s confdefs.h; then
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2516 for ac_signal
in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2522 rm -f -r conftest
* confdefs.h
2524 $as_echo "/* confdefs.h */" > confdefs.h
2526 # Predefined preprocessor variables.
2528 cat >>confdefs.h
<<_ACEOF
2529 #define PACKAGE_NAME "$PACKAGE_NAME"
2532 cat >>confdefs.h
<<_ACEOF
2533 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2536 cat >>confdefs.h
<<_ACEOF
2537 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2540 cat >>confdefs.h
<<_ACEOF
2541 #define PACKAGE_STRING "$PACKAGE_STRING"
2544 cat >>confdefs.h
<<_ACEOF
2545 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2548 cat >>confdefs.h
<<_ACEOF
2549 #define PACKAGE_URL "$PACKAGE_URL"
2553 # Let the site file select an alternate cache file if it wants to.
2554 # Prefer an explicitly selected file to automatically selected ones.
2557 if test -n "$CONFIG_SITE"; then
2558 ac_site_file1
=$CONFIG_SITE
2559 elif test "x$prefix" != xNONE
; then
2560 ac_site_file1
=$prefix/share
/config.site
2561 ac_site_file2
=$prefix/etc
/config.site
2563 ac_site_file1
=$ac_default_prefix/share
/config.site
2564 ac_site_file2
=$ac_default_prefix/etc
/config.site
2566 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2568 test "x$ac_site_file" = xNONE
&& continue
2569 if test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2577 if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special
2579 # files actually), so we avoid doing that.
2580 if test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2585 *) .
"./$cache_file";;
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594 gl_func_list
="$gl_func_list btowc"
2595 gl_func_list
="$gl_func_list isblank"
2596 gl_func_list
="$gl_func_list iswctype"
2597 gl_func_list
="$gl_func_list mbsrtowcs"
2598 gl_func_list
="$gl_func_list mempcpy"
2599 gl_func_list
="$gl_func_list wmemchr"
2600 gl_func_list
="$gl_func_list wmemcpy"
2601 gl_func_list
="$gl_func_list wmempcpy"
2602 gl_header_list
="$gl_header_list wctype.h"
2603 gl_fnmatch_required
=GNU
2604 gl_header_list
="$gl_header_list wchar.h"
2605 gl_header_list
="$gl_header_list stdint.h"
2606 gl_header_list
="$gl_header_list inttypes.h"
2607 gl_header_list
="$gl_header_list unistd.h"
2608 gl_func_list
="$gl_func_list symlink"
2609 gl_func_list
="$gl_func_list mbsinit"
2610 gl_func_list
="$gl_func_list mbrtowc"
2611 gl_header_list
="$gl_header_list sys/mman.h"
2612 gl_func_list
="$gl_func_list mprotect"
2613 gl_header_list
="$gl_header_list features.h"
2614 gl_func_list
="$gl_func_list iswcntrl"
2615 # Check that the precious variables saved in the cache have kept the same
2617 ac_cache_corrupted
=false
2618 for ac_var
in $ac_precious_vars; do
2619 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2620 eval ac_new_set
=\
$ac_env_${ac_var}_set
2621 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2622 eval ac_new_val
=\
$ac_env_${ac_var}_value
2623 case $ac_old_set,$ac_new_set in
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2627 ac_cache_corrupted
=: ;;
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2631 ac_cache_corrupted
=: ;;
2634 if test "x$ac_old_val" != "x$ac_new_val"; then
2635 # differences in whitespace do not lead to failure.
2636 ac_old_val_w
=`echo x $ac_old_val`
2637 ac_new_val_w
=`echo x $ac_new_val`
2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2640 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2641 ac_cache_corrupted
=:
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2644 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2645 eval $ac_var=\
$ac_old_val
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2648 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2650 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2656 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg
=$ac_var=$ac_new_val ;;
2659 case " $ac_configure_args " in
2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2661 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2665 if $ac_cache_corrupted; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2669 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2670 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672 ## -------------------- ##
2673 ## Main body of script. ##
2674 ## -------------------- ##
2677 ac_cpp
='$CPP $CPPFLAGS'
2678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2683 ac_config_headers
="$ac_config_headers config.h:config.in"
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2687 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2688 # Check whether --enable-maintainer-mode was given.
2689 if test "${enable_maintainer_mode+set}" = set; then :
2690 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2692 USE_MAINTAINER_MODE
=no
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2696 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2697 if test $USE_MAINTAINER_MODE = yes; then
2698 MAINTAINER_MODE_TRUE
=
2699 MAINTAINER_MODE_FALSE
='#'
2701 MAINTAINER_MODE_TRUE
='#'
2702 MAINTAINER_MODE_FALSE
=
2705 MAINT
=$MAINTAINER_MODE_TRUE
2710 ac_cpp
='$CPP $CPPFLAGS'
2711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC
="$CC" # Let the user override the test.
2725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir
=.
2730 for ac_exec_ext
in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2753 if test -z "$ac_cv_prog_CC"; then
2755 # Extract the first word of "gcc", so it can be a program name with args.
2756 set dummy gcc
; ac_word
=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 for ac_exec_ext
in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_CC
="gcc"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2783 if test -n "$ac_ct_CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2785 $as_echo "$ac_ct_CC" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2791 if test "x$ac_ct_CC" = x
; then
2794 case $cross_compiling:$ac_tool_warned in
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798 ac_tool_warned
=yes ;;
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC
="$CC" # Let the user override the test.
2818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir
=.
2823 for ac_exec_ext
in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2847 if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849 set dummy cc
; ac_word
=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC
="$CC" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected
=yes
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy
$ac_cv_prog_CC
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2887 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog
in cl.exe
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC
="$CC" # Let the user override the test.
2917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir
=.
2922 for ac_exec_ext
in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2944 test -n "$CC" && break
2947 if test -z "$CC"; then
2949 for ac_prog
in cl.exe
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy
$ac_prog; ac_word
=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir
=.
2966 for ac_exec_ext
in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC
="$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$ac_ct_CC" && break
2991 if test "x$ac_ct_CC" = x
; then
2994 case $cross_compiling:$ac_tool_warned in
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned
=yes ;;
3007 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error
"no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." "$LINENO" 5; }
3012 # Provide some information about the compiler.
3013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3016 for ac_option
in --version -v -V -qversion; do
3017 { { ac_try
="$ac_compiler $ac_option >&5"
3019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3026 if test -s conftest.err; then
3028 ... rest of stderr output deleted ...
3029 10q' conftest.err >conftest.er1
3030 cat conftest.er1 >&5
3031 rm -f conftest.er1 conftest.err
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3050 ac_clean_files_save=$ac_clean_files
3051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3052 # Try to create an executable without -o first, disregard a.out.
3053 # It will help us diagnose broken compilers, and finding out an intuition
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3056 $as_echo_n "checking for C compiler default output file name... " >&6; }
3057 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3059 # The possible output files:
3060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3063 for ac_file in $ac_files
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072 if { { ac_try="$ac_link_default"
3074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3075 *) ac_try_echo
=$ac_try;;
3077 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_link_default") 2>&5
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3086 # so that the user can short-circuit this test for compilers unknown to
3088 for ac_file
in $ac_files ''
3090 test -f "$ac_file" ||
continue
3092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3095 # We found the default executable, but exeext='' is most
3099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3101 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 # We set ac_cv_exeext here because the later test for it is not
3104 # safe: cross compilers may not add the suffix if given an `-o'
3105 # argument, so we may need to know it at that point already.
3106 # Even if this section looks crufty: it has the advantage of
3113 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119 $as_echo "$ac_file" >&6; }
3120 if test -z "$ac_file"; then :
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.
$ac_ext >&5
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { as_fn_set_status
77
3127 as_fn_error
"C compiler cannot create executables
3128 See \`config.log' for more details." "$LINENO" 5; }; }
3130 ac_exeext
=$ac_cv_exeext
3132 # Check that the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135 $as_echo_n "checking whether the C compiler works... " >&6; }
3136 # If not cross compiling, check that we can run a simple program.
3137 if test "$cross_compiling" != yes; then
3138 if { ac_try
='./$ac_file'
3139 { { case "(($ac_try" in
3140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3151 if test "$cross_compiling" = maybe; then
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error "cannot run C compiled programs.
3157 If you meant to cross compile
, use \
`--host'.
3158 See \`config.log
' for more details." "$LINENO" 5; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3166 ac_clean_files=$ac_clean_files_save
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3170 $as_echo_n "checking whether we are cross compiling... " >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3172 $as_echo "$cross_compiling" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175 $as_echo_n "checking for suffix of executables... " >&6; }
3176 if { { ac_try="$ac_link"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3188 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3189 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3191 for ac_file
in conftest.exe conftest conftest.
*; do
3192 test -f "$ac_file" ||
continue
3194 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3195 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details." "$LINENO" 5; }
3206 rm -f conftest
$ac_cv_exeext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208 $as_echo "$ac_cv_exeext" >&6; }
3210 rm -f conftest.
$ac_ext
3211 EXEEXT
=$ac_cv_exeext
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3214 $as_echo_n "checking for suffix of object files... " >&6; }
3215 if test "${ac_cv_objext+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3229 rm -f conftest.o conftest.obj
3230 if { { ac_try
="$ac_compile"
3232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_compile") 2>&5
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 for ac_file in conftest.o conftest.obj conftest.*; do
3242 test -f "$ac_file" || continue;
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3245 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error "cannot compute suffix of object files
: cannot compile
3256 See \
`config.log' for more details." "$LINENO" 5; }
3258 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3261 $as_echo "$ac_cv_objext" >&6; }
3262 OBJEXT=$ac_cv_objext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3265 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3266 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3283 if ac_fn_c_try_compile "$LINENO"; then :
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3293 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3294 if test $ac_compiler_gnu = yes; then
3299 ac_test_CFLAGS=${CFLAGS+set}
3300 ac_save_CFLAGS=$CFLAGS
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3302 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3303 if test "${ac_cv_prog_cc_g+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3306 ac_save_c_werror_flag=$ac_c_werror_flag
3307 ac_c_werror_flag=yes
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3321 if ac_fn_c_try_compile "$LINENO"; then :
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3336 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3352 if ac_fn_c_try_compile "$LINENO"; then :
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3363 $as_echo "$ac_cv_prog_cc_g" >&6; }
3364 if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3373 if test "$GCC" = yes; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3380 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3381 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 ac_cv_prog_cc_c89=no
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3406 s = g (p, va_arg (v,int));
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 CC="$ac_save_CC $ac_arg"
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_c89=$ac_arg
3446 rm -f core conftest.err conftest.$ac_objext
3447 test "x$ac_cv_prog_cc_c89" != "xno" && break
3449 rm -f conftest.$ac_ext
3454 case "x$ac_cv_prog_cc_c89" in
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3457 $as_echo "none needed" >&6; } ;;
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3460 $as_echo "unsupported" >&6; } ;;
3462 CC="$CC $ac_cv_prog_cc_c89"
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3464 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466 if test "x$ac_cv_prog_cc_c89" != xno; then :
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3478 for ac_t in install-sh install.sh shtool; do
3479 if test -f "$ac_dir/$ac_t"; then
3481 ac_install_sh="$ac_aux_dir/$ac_t -c"
3486 if test -z "$ac_aux_dir"; then
3487 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3490 # These three variables are undocumented and unsupported,
3491 # and are intended to be withdrawn in a future Autoconf release.
3492 # They can cause serious problems if a builder's source tree is in a directory
3493 # whose full name contains unusual characters.
3494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3504 $as_echo_n "checking build system type... " >&6; }
3505 if test "${ac_cv_build+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3508 ac_build_alias=$build_alias
3509 test "x$ac_build_alias" = x &&
3510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3511 test "x$ac_build_alias" = x &&
3512 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3518 $as_echo "$ac_cv_build" >&6; }
3519 case $ac_cv_build in
3521 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3524 ac_save_IFS=$IFS; IFS='-'
3530 # Remember, the first character of IFS is used to create $*,
3531 # except with old shells:
3534 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3538 $as_echo_n "checking host system type... " >&6; }
3539 if test "${ac_cv_host+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3551 $as_echo "$ac_cv_host" >&6; }
3554 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3557 ac_save_IFS=$IFS; IFS='-'
3563 # Remember, the first character of IFS is used to create $*,
3564 # except with old shells:
3567 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3577 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3578 # On Suns, sometimes $CPP names a directory.
3579 if test -n "$CPP" && test -d "$CPP"; then
3582 if test -z "$CPP"; then
3583 if test "${ac_cv_prog_CPP+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3586 # Double quotes because CPP needs to be expanded
3587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3590 for ac_c_preproc_warn_flag in '' yes
3592 # Use a header file that comes with gcc, so configuring glibc
3593 # with a fresh cross-compiler works.
3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 # <limits.h> exists even on freestanding compilers.
3596 # On the NeXT, cc -E runs the code through the compiler's parser,
3597 # not just through cpp. "Syntax error" is here to catch this case.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3601 # include <limits.h>
3603 # include <assert.h>
3607 if ac_fn_c_try_cpp "$LINENO"; then :
3610 # Broken: fails on valid input.
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3622 # Broken: success on invalid input.
3625 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.
$ac_ext
3634 if $ac_preproc_ok; then :
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3647 $as_echo "$CPP" >&6; }
3649 for ac_c_preproc_warn_flag
in '' yes
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3660 # include <limits.h>
3662 # include <assert.h>
3666 if ac_fn_c_try_cpp
"$LINENO"; then :
3669 # Broken: fails on valid input.
3672 rm -f conftest.err conftest.
$ac_ext
3674 # OK, works on sane cases. Now check whether nonexistent headers
3675 # can be detected and how.
3676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 #include <ac_nonexistent.h>
3680 if ac_fn_c_try_cpp
"$LINENO"; then :
3681 # Broken: success on invalid input.
3684 # Passes both tests.
3688 rm -f conftest.err conftest.
$ac_ext
3691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692 rm -f conftest.err conftest.
$ac_ext
3693 if $ac_preproc_ok; then :
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3699 See \`config.log' for more details." "$LINENO" 5; }
3703 ac_cpp
='$CPP $CPPFLAGS'
3704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3710 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3711 if test "${ac_cv_path_GREP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -z "$GREP"; then
3715 ac_path_GREP_found
=false
3716 # Loop through the user's path and test for each of PROGNAME-LIST
3717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3718 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3721 test -z "$as_dir" && as_dir
=.
3722 for ac_prog
in grep ggrep
; do
3723 for ac_exec_ext
in '' $ac_executable_extensions; do
3724 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3725 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3726 # Check for GNU ac_path_GREP and select it if it is found.
3727 # Check for GNU $ac_path_GREP
3728 case `"$ac_path_GREP" --version 2>&1` in
3730 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3733 $as_echo_n 0123456789 >"conftest.in"
3736 cat "conftest.in" "conftest.in" >"conftest.tmp"
3737 mv "conftest.tmp" "conftest.in"
3738 cp "conftest.in" "conftest.nl"
3739 $as_echo 'GREP' >> "conftest.nl"
3740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3741 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3742 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3743 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3744 # Best one so far, save it but keep looking for a better one
3745 ac_cv_path_GREP
="$ac_path_GREP"
3746 ac_path_GREP_max
=$ac_count
3748 # 10*(2^10) chars as input seems more than enough
3749 test $ac_count -gt 10 && break
3751 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3754 $ac_path_GREP_found && break 3
3759 if test -z "$ac_cv_path_GREP"; then
3760 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3763 ac_cv_path_GREP
=$GREP
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3768 $as_echo "$ac_cv_path_GREP" >&6; }
3769 GREP
="$ac_cv_path_GREP"
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3773 $as_echo_n "checking for egrep... " >&6; }
3774 if test "${ac_cv_path_EGREP+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3777 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3778 then ac_cv_path_EGREP
="$GREP -E"
3780 if test -z "$EGREP"; then
3781 ac_path_EGREP_found
=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3787 test -z "$as_dir" && as_dir
=.
3788 for ac_prog
in egrep; do
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3792 # Check for GNU ac_path_EGREP and select it if it is found.
3793 # Check for GNU $ac_path_EGREP
3794 case `"$ac_path_EGREP" --version 2>&1` in
3796 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3799 $as_echo_n 0123456789 >"conftest.in"
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'EGREP' >> "conftest.nl"
3806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3807 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3808 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_EGREP
="$ac_path_EGREP"
3812 ac_path_EGREP_max
=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3820 $ac_path_EGREP_found && break 3
3825 if test -z "$ac_cv_path_EGREP"; then
3826 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829 ac_cv_path_EGREP
=$EGREP
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3835 $as_echo "$ac_cv_path_EGREP" >&6; }
3836 EGREP
="$ac_cv_path_EGREP"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3840 $as_echo_n "checking for ANSI C header files... " >&6; }
3841 if test "${ac_cv_header_stdc+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3859 if ac_fn_c_try_compile
"$LINENO"; then :
3860 ac_cv_header_stdc
=yes
3862 ac_cv_header_stdc
=no
3864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3866 if test $ac_cv_header_stdc = yes; then
3867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 $EGREP "memchr" >/dev
/null
2>&1; then :
3877 ac_cv_header_stdc
=no
3883 if test $ac_cv_header_stdc = yes; then
3884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "free" >/dev
/null
2>&1; then :
3894 ac_cv_header_stdc
=no
3900 if test $ac_cv_header_stdc = yes; then
3901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then :
3905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3909 #if ((' ' & 0x0FF) == 0x020)
3910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3913 # define ISLOWER(c) \
3914 (('a' <= (c) && (c) <= 'i') \
3915 || ('j' <= (c) && (c) <= 'r') \
3916 || ('s' <= (c) && (c) <= 'z'))
3917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925 for (i = 0; i < 256; i++)
3926 if (XOR (islower (i), ISLOWER (i))
3927 || toupper (i) != TOUPPER (i))
3932 if ac_fn_c_try_run
"$LINENO"; then :
3935 ac_cv_header_stdc
=no
3937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3944 $as_echo "$ac_cv_header_stdc" >&6; }
3945 if test $ac_cv_header_stdc = yes; then
3947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3952 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3953 inttypes.h stdint.h unistd.h
3955 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3958 eval as_val
=\$
$as_ac_Header
3959 if test "x$as_val" = x
""yes; then :
3960 cat >>confdefs.h
<<_ACEOF
3961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3972 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3973 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3980 if test "$MINIX" = yes; then
3982 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3985 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3988 $as_echo "#define _MINIX 1" >>confdefs.h
3995 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4002 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4003 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4009 # define __EXTENSIONS__ 1
4010 $ac_includes_default
4019 if ac_fn_c_try_compile
"$LINENO"; then :
4020 ac_cv_safe_to_define___extensions__
=yes
4022 ac_cv_safe_to_define___extensions__
=no
4024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4028 test $ac_cv_safe_to_define___extensions__ = yes &&
4029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4033 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4035 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4037 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4039 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4045 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4046 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4060 gl_cv_c_amsterdam_compiler
=yes
4062 gl_cv_c_amsterdam_compiler
=no
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4069 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4070 if test -z "$AR"; then
4071 if test $gl_cv_c_amsterdam_compiler = yes; then
4073 if test -z "$ARFLAGS"; then
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4079 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if test "${ac_cv_prog_AR+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4085 if test -n "$AR"; then
4086 ac_cv_prog_AR
="$AR" # Let the user override the test.
4088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4092 test -z "$as_dir" && as_dir
=.
4093 for ac_exec_ext
in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 if test -n "$AR"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4108 $as_echo "$AR" >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4116 if test -z "$ac_cv_prog_AR"; then
4118 # Extract the first word of "ar", so it can be a program name with args.
4119 set dummy
ar; ac_word
=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 if test -n "$ac_ct_AR"; then
4126 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir
=.
4133 for ac_exec_ext
in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_ac_ct_AR
="ar"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4146 if test -n "$ac_ct_AR"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4148 $as_echo "$ac_ct_AR" >&6; }
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4154 if test "x$ac_ct_AR" = x
; then
4157 case $cross_compiling:$ac_tool_warned in
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned
=yes ;;
4169 if test -z "$ARFLAGS"; then
4174 if test -z "$ARFLAGS"; then
4180 if test -z "$RANLIB"; then
4181 if test $gl_cv_c_amsterdam_compiler = yes; then
4184 if test -n "$ac_tool_prefix"; then
4185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4186 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4192 if test -n "$RANLIB"; then
4193 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir
=.
4200 for ac_exec_ext
in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 RANLIB
=$ac_cv_prog_RANLIB
4213 if test -n "$RANLIB"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4215 $as_echo "$RANLIB" >&6; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4223 if test -z "$ac_cv_prog_RANLIB"; then
4224 ac_ct_RANLIB
=$RANLIB
4225 # Extract the first word of "ranlib", so it can be a program name with args.
4226 set dummy ranlib
; ac_word
=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4232 if test -n "$ac_ct_RANLIB"; then
4233 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir
=.
4240 for ac_exec_ext
in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4253 if test -n "$ac_ct_RANLIB"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4255 $as_echo "$ac_ct_RANLIB" >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4261 if test "x$ac_ct_RANLIB" = x
; then
4264 case $cross_compiling:$ac_tool_warned in
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268 ac_tool_warned
=yes ;;
4270 RANLIB
=$ac_ct_RANLIB
4273 RANLIB
="$ac_cv_prog_RANLIB"
4288 # Code from module alloca:
4289 # Code from module alloca-opt:
4290 # Code from module configmake:
4291 # Code from module extensions:
4293 # Code from module extern-inline:
4294 # Code from module fnmatch:
4295 # Code from module fnmatch-gnu:
4296 # Code from module include_next:
4297 # Code from module inttypes:
4298 # Code from module inttypes-incomplete:
4299 # Code from module localcharset:
4300 # Code from module mbrtowc:
4301 # Code from module mbsinit:
4302 # Code from module mbsrtowcs:
4303 # Code from module memchr:
4304 # Code from module memmem:
4305 # Code from module memmem-simple:
4306 # Code from module multiarch:
4307 # Code from module snippet/arg-nonnull:
4308 # Code from module snippet/c++defs:
4309 # Code from module snippet/warn-on-use:
4310 # Code from module stdbool:
4311 # Code from module stddef:
4312 # Code from module stdint:
4313 # Code from module streq:
4314 # Code from module string:
4315 # Code from module strnlen1:
4316 # Code from module update-copyright:
4317 # Code from module verify:
4318 # Code from module wchar:
4319 # Code from module wctype-h:
4322 ac_cpp
='$CPP $CPPFLAGS'
4323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4326 if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4328 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if test "${ac_cv_prog_CC+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC
="$CC" # Let the user override the test.
4337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir
=.
4342 for ac_exec_ext
in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 if test -n "$CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357 $as_echo "$CC" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4365 if test -z "$ac_cv_prog_CC"; then
4367 # Extract the first word of "gcc", so it can be a program name with args.
4368 set dummy gcc
; ac_word
=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4374 if test -n "$ac_ct_CC"; then
4375 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir
=.
4382 for ac_exec_ext
in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_ac_ct_CC
="gcc"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4395 if test -n "$ac_ct_CC"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4397 $as_echo "$ac_ct_CC" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4403 if test "x$ac_ct_CC" = x
; then
4406 case $cross_compiling:$ac_tool_warned in
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned
=yes ;;
4418 if test -z "$CC"; then
4419 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4421 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if test "${ac_cv_prog_CC+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC
="$CC" # Let the user override the test.
4430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir
=.
4435 for ac_exec_ext
in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 if test -n "$CC"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4450 $as_echo "$CC" >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4459 if test -z "$CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc
; ac_word
=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if test "${ac_cv_prog_CC+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4467 if test -n "$CC"; then
4468 ac_cv_prog_CC
="$CC" # Let the user override the test.
4471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir
=.
4476 for ac_exec_ext
in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected
=yes
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy
$ac_cv_prog_CC
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set CC to just the basename; use the full file name.
4499 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4505 if test -n "$CC"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4507 $as_echo "$CC" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4515 if test -z "$CC"; then
4516 if test -n "$ac_tool_prefix"; then
4517 for ac_prog
in cl.exe
4519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4520 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_CC+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC
="$CC" # Let the user override the test.
4529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir
=.
4534 for ac_exec_ext
in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 if test -n "$CC"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4549 $as_echo "$CC" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 test -n "$CC" && break
4559 if test -z "$CC"; then
4561 for ac_prog
in cl.exe
4563 # Extract the first word of "$ac_prog", so it can be a program name with args.
4564 set dummy
$ac_prog; ac_word
=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 if test -n "$ac_ct_CC"; then
4571 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir
=.
4578 for ac_exec_ext
in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_ac_ct_CC
="$ac_prog"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4591 if test -n "$ac_ct_CC"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4593 $as_echo "$ac_ct_CC" >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4600 test -n "$ac_ct_CC" && break
4603 if test "x$ac_ct_CC" = x
; then
4606 case $cross_compiling:$ac_tool_warned in
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned
=yes ;;
4619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error
"no acceptable C compiler found in \$PATH
4622 See \`config.log' for more details." "$LINENO" 5; }
4624 # Provide some information about the compiler.
4625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4628 for ac_option
in --version -v -V -qversion; do
4629 { { ac_try
="$ac_compiler $ac_option >&5"
4631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4638 if test -s conftest.err; then
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 rm -f conftest.er1 conftest.err
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4651 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4668 if ac_fn_c_try_compile "$LINENO"; then :
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4679 if test $ac_compiler_gnu = yes; then
4684 ac_test_CFLAGS=${CFLAGS+set}
4685 ac_save_CFLAGS=$CFLAGS
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4688 if test "${ac_cv_prog_cc_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 ac_save_c_werror_flag=$ac_c_werror_flag
4692 ac_c_werror_flag=yes
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 if ac_fn_c_try_compile "$LINENO"; then :
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4721 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_c_werror_flag=$ac_save_c_werror_flag
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4737 if ac_fn_c_try_compile "$LINENO"; then :
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_c_werror_flag=$ac_save_c_werror_flag
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4748 $as_echo "$ac_cv_prog_cc_g" >&6; }
4749 if test "$ac_test_CFLAGS" = set; then
4750 CFLAGS=$ac_save_CFLAGS
4751 elif test $ac_cv_prog_cc_g = yes; then
4752 if test "$GCC" = yes; then
4758 if test "$GCC" = yes; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4766 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4769 ac_cv_prog_cc_c89=no
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 #include <sys/types.h>
4776 #include <sys/stat.h>
4777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4778 struct buf { int x; };
4779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4780 static char *e (p, i)
4786 static char *f (char * (*g) (char **, int), char **p, ...)
4791 s = g (p, va_arg (v,int));
4796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4797 function prototypes and stuff, but not '\xHH' hex character constants.
4798 These don't provoke an error unfortunately, instead are silently treated
4799 as 'x'. The following induces an error, until -std is added to get
4800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4801 array size at least. It's necessary to write '\x00'==0 to get something
4802 that's true only with -std. */
4803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4806 inside strings and character constants. */
4808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4810 int test (int i, double x);
4811 struct s1 {int (*f) (int a);};
4812 struct s2 {int (*f) (double a);};
4813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4824 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4827 CC="$ac_save_CC $ac_arg"
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_prog_cc_c89=$ac_arg
4831 rm -f core conftest.err conftest.$ac_objext
4832 test "x$ac_cv_prog_cc_c89" != "xno" && break
4834 rm -f conftest.$ac_ext
4839 case "x$ac_cv_prog_cc_c89" in
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4842 $as_echo "none needed" >&6; } ;;
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4845 $as_echo "unsupported" >&6; } ;;
4847 CC="$CC $ac_cv_prog_cc_c89"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4849 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4851 if test "x$ac_cv_prog_cc_c89" != xno; then :
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4866 for ac_dir in ../.. "$srcdir"/../..; do
4867 for ac_t in install-sh install.sh shtool; do
4868 if test -f "$ac_dir/$ac_t"; then
4870 ac_install_sh="$ac_aux_dir/$ac_t -c"
4875 if test -z "$ac_aux_dir"; then
4876 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4879 # These three variables are undocumented and unsupported,
4880 # and are intended to be withdrawn in a future Autoconf release.
4881 # They can cause serious problems if a builder's source tree is in a directory
4882 # whose full name contains unusual characters.
4883 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4884 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4885 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4889 $as_echo_n "checking target system type... " >&6; }
4890 if test "${ac_cv_target+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4893 if test "x$target_alias" = x; then
4894 ac_cv_target=$ac_cv_host
4896 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4897 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4902 $as_echo "$ac_cv_target" >&6; }
4903 case $ac_cv_target in
4905 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4907 target=$ac_cv_target
4908 ac_save_IFS=$IFS; IFS='-'
4914 # Remember, the first character of IFS is used to create $*,
4915 # except with old shells:
4918 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
4921 # The aliases save the names the user supplied, while $host etc.
4922 # will get canonicalized.
4923 test -n "$target_alias" &&
4924 test "$program_prefix$program_suffix$program_transform_name" = \
4926 program_prefix=${target_alias}-
4934 LIBC_FATAL_STDERR_=1
4935 export LIBC_FATAL_STDERR_
4937 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4938 # for constant arguments. Useless!
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4940 $as_echo_n "checking for working alloca.h... " >&6; }
4941 if test "${ac_cv_working_alloca_h+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4950 char *p = (char *) alloca (2 * sizeof (int));
4956 if ac_fn_c_try_link "$LINENO"; then :
4957 ac_cv_working_alloca_h=yes
4959 ac_cv_working_alloca_h=no
4961 rm -f core conftest.err conftest.$ac_objext \
4962 conftest$ac_exeext conftest.$ac_ext
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4965 $as_echo "$ac_cv_working_alloca_h" >&6; }
4966 if test $ac_cv_working_alloca_h = yes; then
4968 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4973 $as_echo_n "checking for alloca... " >&6; }
4974 if test "${ac_cv_func_alloca_works+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4980 # define alloca __builtin_alloca
4983 # include <malloc.h>
4984 # define alloca _alloca
4986 # ifdef HAVE_ALLOCA_H
4987 # include <alloca.h>
4992 # ifndef alloca /* predefined by HP cc +Olibcalls */
5003 char *p = (char *) alloca (1);
5009 if ac_fn_c_try_link "$LINENO"; then :
5010 ac_cv_func_alloca_works=yes
5012 ac_cv_func_alloca_works=no
5014 rm -f core conftest.err conftest.$ac_objext \
5015 conftest$ac_exeext conftest.$ac_ext
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5018 $as_echo "$ac_cv_func_alloca_works" >&6; }
5020 if test $ac_cv_func_alloca_works = yes; then
5022 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5025 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5026 # that cause trouble. Some versions do not even contain alloca or
5027 # contain a buggy version. If you still want to use their alloca,
5028 # use ar to extract alloca.o from them instead of compiling alloca.c.
5034 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5036 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5040 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5041 if test "${ac_cv_os_cray+set}" = set; then :
5042 $as_echo_n "(cached) " >&6
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 #if defined CRAY && ! defined CRAY2
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054 $EGREP "webecray" >/dev/null 2>&1; then :
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5063 $as_echo "$ac_cv_os_cray" >&6; }
5064 if test $ac_cv_os_cray = yes; then
5065 for ac_func in _getb67 GETB67 getb67; do
5066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5067 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5068 eval as_val=\$$as_ac_var
5069 if test "x$as_val" = x""yes; then :
5071 cat >>confdefs.h <<_ACEOF
5072 #define CRAY_STACKSEG_END $ac_func
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5082 $as_echo_n "checking stack direction for C alloca... " >&6; }
5083 if test "${ac_cv_c_stack_direction+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5086 if test "$cross_compiling" = yes; then :
5087 ac_cv_c_stack_direction=0
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 $ac_includes_default
5093 find_stack_direction (int *addr, int depth)
5098 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5099 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5104 main (int argc, char **argv)
5106 return find_stack_direction (0, argc + !argv + 20) < 0;
5109 if ac_fn_c_try_run "$LINENO"; then :
5110 ac_cv_c_stack_direction=1
5112 ac_cv_c_stack_direction=-1
5114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5115 conftest.$ac_objext conftest.beam conftest.$ac_ext
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5120 $as_echo "$ac_cv_c_stack_direction" >&6; }
5121 cat >>confdefs.h <<_ACEOF
5122 #define STACK_DIRECTION $ac_cv_c_stack_direction
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5134 $as_echo_n "checking for mbstate_t... " >&6; }
5135 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 $ac_includes_default
5141 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5143 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5144 included before <wchar.h>. */
5152 mbstate_t x; return sizeof x;
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_type_mbstate_t=yes
5160 ac_cv_type_mbstate_t=no
5162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5165 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5166 if test $ac_cv_type_mbstate_t = yes; then
5168 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5172 $as_echo "#define mbstate_t int" >>confdefs.h
5180 for ac_func in $gl_func_list
5182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5184 eval as_val=\$$as_ac_var
5185 if test "x$as_val" = x""yes; then :
5186 cat >>confdefs.h <<_ACEOF
5187 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5236 for ac_header in $gl_header_list
5238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5239 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5240 eval as_val=\$$as_ac_Header
5241 if test "x$as_val" = x""yes; then :
5242 cat >>confdefs.h <<_ACEOF
5243 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5256 $as_echo_n "checking for unsigned long long int... " >&6; }
5257 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5260 ac_cv_type_unsigned_long_long_int=yes
5261 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5265 /* For now, do not test the preprocessor; as of 2007 there are too many
5266 implementations with broken preprocessors. Perhaps this can
5267 be revisited in 2012. In the meantime, code should not expect
5268 #if to work with literals wider than 32 bits. */
5269 /* Test literals. */
5270 long long int ll = 9223372036854775807ll;
5271 long long int nll = -9223372036854775807LL;
5272 unsigned long long int ull = 18446744073709551615ULL;
5273 /* Test constant expressions. */
5274 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5276 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5282 /* Test availability of runtime routines for shift and division. */
5283 long long int llmax = 9223372036854775807ll;
5284 unsigned long long int ullmax = 18446744073709551615ull;
5285 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5286 | (llmax / ll) | (llmax % ll)
5287 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5288 | (ullmax / ull) | (ullmax % ull));
5294 if ac_fn_c_try_link "$LINENO"; then :
5297 ac_cv_type_unsigned_long_long_int=no
5299 rm -f core conftest.err conftest.$ac_objext \
5300 conftest$ac_exeext conftest.$ac_ext
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5304 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5307 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5314 $as_echo_n "checking for long long int... " >&6; }
5315 if test "${ac_cv_type_long_long_int+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5318 ac_cv_type_long_long_int=yes
5319 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5320 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5321 if test $ac_cv_type_long_long_int = yes; then
5322 if test "$cross_compiling" = yes; then :
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5330 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5331 # define LLONG_MAX (HALF - 1 + HALF)
5336 long long int n = 1;
5340 long long int m = n << i;
5343 if (LLONG_MAX / 2 < m)
5351 if ac_fn_c_try_run "$LINENO"; then :
5354 ac_cv_type_long_long_int=no
5356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5357 conftest.$ac_objext conftest.beam conftest.$ac_ext
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5364 $as_echo "$ac_cv_type_long_long_int" >&6; }
5365 if test $ac_cv_type_long_long_int = yes; then
5367 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5379 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5380 if test "${gl_cv_have_include_next+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5383 rm -rf conftestd1a conftestd1b conftestd2
5384 mkdir conftestd1a conftestd1b conftestd2
5385 cat <<EOF > conftestd1a/conftest.h
5386 #define DEFINED_IN_CONFTESTD1
5387 #include_next <conftest.h>
5388 #ifdef DEFINED_IN_CONFTESTD2
5391 #error "include_next doesn't work"
5394 cat <<EOF > conftestd1b/conftest.h
5395 #define DEFINED_IN_CONFTESTD1
5397 #include_next <conftest.h>
5398 #ifdef DEFINED_IN_CONFTESTD2
5401 #error "include_next doesn't work"
5404 cat <<EOF > conftestd2/conftest.h
5405 #ifndef DEFINED_IN_CONFTESTD1
5406 #error "include_next test doesn't work"
5408 #define DEFINED_IN_CONFTESTD2
5410 gl_save_CPPFLAGS="$CPPFLAGS"
5411 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 #include <conftest.h>
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 gl_cv_have_include_next=yes
5419 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <conftest.h>
5424 if ac_fn_c_try_compile "$LINENO"; then :
5425 gl_cv_have_include_next=buggy
5427 gl_cv_have_include_next=no
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 CPPFLAGS="$gl_save_CPPFLAGS"
5434 rm -rf conftestd1a conftestd1b conftestd2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5438 $as_echo "$gl_cv_have_include_next" >&6; }
5439 PRAGMA_SYSTEM_HEADER=
5440 if test $gl_cv_have_include_next = yes; then
5441 INCLUDE_NEXT=include_next
5442 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5443 if test -n "$GCC"; then
5444 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5447 if test $gl_cv_have_include_next = buggy; then
5448 INCLUDE_NEXT=include
5449 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5451 INCLUDE_NEXT=include
5452 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5459 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5460 if test "${gl_cv_pragma_columns+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472 $EGREP "choke me" >/dev/null 2>&1; then :
5473 gl_cv_pragma_columns=yes
5475 gl_cv_pragma_columns=no
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5482 $as_echo "$gl_cv_pragma_columns" >&6; }
5483 if test $gl_cv_pragma_columns = yes; then
5484 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5496 gl_cv_c_multiarch=no
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #ifndef __APPLE_CC__
5500 not a universal capable compiler
5505 if ac_fn_c_try_compile "$LINENO"; then :
5509 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5510 if test -n "$prev"; then
5512 i?86 | x86_64 | ppc | ppc64)
5513 if test -z "$arch" || test "$arch" = "$word"; then
5516 gl_cv_c_multiarch=yes
5522 if test "x$word" = "x-arch"; then
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 if test $gl_cv_c_multiarch = yes; then
5531 APPLE_UNIVERSAL_BUILD=1
5533 APPLE_UNIVERSAL_BUILD=0
5540 if test $ac_cv_type_long_long_int = yes; then
5541 HAVE_LONG_LONG_INT=1
5543 HAVE_LONG_LONG_INT=0
5547 if test $ac_cv_type_unsigned_long_long_int = yes; then
5548 HAVE_UNSIGNED_LONG_LONG_INT=1
5550 HAVE_UNSIGNED_LONG_LONG_INT=0
5561 if test $ac_cv_header_wchar_h = yes; then
5568 if test $ac_cv_header_inttypes_h = yes; then
5575 if test $ac_cv_header_sys_types_h = yes; then
5597 if test $gl_cv_have_include_next = yes; then
5598 gl_cv_next_stdint_h='<'stdint.h'>'
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5601 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5602 if test "${gl_cv_next_stdint_h+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5606 if test $ac_cv_header_stdint_h = yes; then
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5615 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5616 *) gl_absname_cpp="$ac_cpp" ;;
5621 gl_dirsep_regex='[/\\]'
5624 gl_dirsep_regex='\/'
5627 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5629 gl_header_literal_regex=`echo 'stdint.h' \
5630 |
sed -e "$gl_make_literal_regex_sed"`
5631 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5632 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5637 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5638 sed -n "$gl_absolute_header_sed"`'"'
5640 gl_cv_next_stdint_h='<'stdint.h'>'
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5646 $as_echo "$gl_cv_next_stdint_h" >&6; }
5648 NEXT_STDINT_H=$gl_cv_next_stdint_h
5650 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5651 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5652 gl_next_as_first_directive='<'stdint.h'>'
5654 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5655 gl_next_as_first_directive=$gl_cv_next_stdint_h
5657 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5662 if test $ac_cv_header_stdint_h = yes; then
5669 if test $ac_cv_header_stdint_h = yes; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5671 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5672 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5675 gl_cv_header_working_stdint_h=no
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5680 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5682 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5683 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5684 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5688 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5689 included before <wchar.h>. */
5700 int8_t a1 = INT8_MAX;
5701 int8_t a1min = INT8_MIN;
5704 int16_t a2 = INT16_MAX;
5705 int16_t a2min = INT16_MIN;
5708 int32_t a3 = INT32_MAX;
5709 int32_t a3min = INT32_MIN;
5712 int64_t a4 = INT64_MAX;
5713 int64_t a4min = INT64_MIN;
5716 uint8_t b1 = UINT8_MAX;
5718 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5721 uint16_t b2 = UINT16_MAX;
5724 uint32_t b3 = UINT32_MAX;
5727 uint64_t b4 = UINT64_MAX;
5729 int_least8_t c1 = INT8_C (0x7f);
5730 int_least8_t c1max = INT_LEAST8_MAX;
5731 int_least8_t c1min = INT_LEAST8_MIN;
5732 int_least16_t c2 = INT16_C (0x7fff);
5733 int_least16_t c2max = INT_LEAST16_MAX;
5734 int_least16_t c2min = INT_LEAST16_MIN;
5735 int_least32_t c3 = INT32_C (0x7fffffff);
5736 int_least32_t c3max = INT_LEAST32_MAX;
5737 int_least32_t c3min = INT_LEAST32_MIN;
5738 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5739 int_least64_t c4max = INT_LEAST64_MAX;
5740 int_least64_t c4min = INT_LEAST64_MIN;
5741 uint_least8_t d1 = UINT8_C (0xff);
5742 uint_least8_t d1max = UINT_LEAST8_MAX;
5743 uint_least16_t d2 = UINT16_C (0xffff);
5744 uint_least16_t d2max = UINT_LEAST16_MAX;
5745 uint_least32_t d3 = UINT32_C (0xffffffff);
5746 uint_least32_t d3max = UINT_LEAST32_MAX;
5747 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5748 uint_least64_t d4max = UINT_LEAST64_MAX;
5749 int_fast8_t e1 = INT_FAST8_MAX;
5750 int_fast8_t e1min = INT_FAST8_MIN;
5751 int_fast16_t e2 = INT_FAST16_MAX;
5752 int_fast16_t e2min = INT_FAST16_MIN;
5753 int_fast32_t e3 = INT_FAST32_MAX;
5754 int_fast32_t e3min = INT_FAST32_MIN;
5755 int_fast64_t e4 = INT_FAST64_MAX;
5756 int_fast64_t e4min = INT_FAST64_MIN;
5757 uint_fast8_t f1 = UINT_FAST8_MAX;
5758 uint_fast16_t f2 = UINT_FAST16_MAX;
5759 uint_fast32_t f3 = UINT_FAST32_MAX;
5760 uint_fast64_t f4 = UINT_FAST64_MAX;
5762 intptr_t g = INTPTR_MAX;
5763 intptr_t gmin = INTPTR_MIN;
5766 uintptr_t h = UINTPTR_MAX;
5768 intmax_t i = INTMAX_MAX;
5769 uintmax_t j = UINTMAX_MAX;
5771 #include <limits.h> /* for CHAR_BIT */
5772 #define TYPE_MINIMUM(t) \
5773 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5774 #define TYPE_MAXIMUM(t) \
5775 ((t) ((t) 0 < (t) -1 \
5777 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5780 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5781 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5783 /* Detect bug in FreeBSD 6.0 / ia64. */
5784 int check_SIG_ATOMIC:
5785 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5786 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5788 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5790 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5791 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5793 /* Detect bug in mingw. */
5795 WINT_MIN == TYPE_MINIMUM (wint_t)
5796 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5799 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5801 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5803 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5805 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5807 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5810 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5813 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5816 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5818 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5819 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5820 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5821 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5822 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5823 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5824 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5825 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5826 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5827 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5828 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840 if test "$cross_compiling" = yes; then :
5841 gl_cv_header_working_stdint_h=yes
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5848 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5853 included before <wchar.h>. */
5865 #define MVAL(macro) MVAL1(macro)
5866 #define MVAL1(expression) #expression
5867 static const char *macro_values[] =
5901 for (mv = macro_values; *mv != NULL; mv++)
5903 const char *value = *mv;
5904 /* Test whether it looks like a cast expression. */
5905 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5906 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5907 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5908 || strncmp (value, "((int)"/*)*/, 6) == 0
5909 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5910 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5911 return mv - macro_values + 1;
5919 if ac_fn_c_try_run "$LINENO"; then :
5920 gl_cv_header_working_stdint_h=yes
5922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5923 conftest.$ac_objext conftest.beam conftest.$ac_ext
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5932 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5934 if test "$gl_cv_header_working_stdint_h" = yes; then
5937 for ac_header in sys/inttypes.h sys/bitypes.h
5939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5941 eval as_val=\$$as_ac_Header
5942 if test "x$as_val" = x""yes; then :
5943 cat >>confdefs.h <<_ACEOF
5944 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5951 if test $ac_cv_header_sys_inttypes_h = yes; then
5952 HAVE_SYS_INTTYPES_H=1
5954 HAVE_SYS_INTTYPES_H=0
5957 if test $ac_cv_header_sys_bitypes_h = yes; then
5958 HAVE_SYS_BITYPES_H=1
5960 HAVE_SYS_BITYPES_H=0
5966 if test $APPLE_UNIVERSAL_BUILD = 0; then
5969 for gltype in ptrdiff_t size_t ; do
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5971 $as_echo_n "checking for bit size of $gltype... " >&6; }
5972 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5973 $as_echo_n "(cached) " >&6
5975 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5976 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5977 included before <wchar.h>. */
5986 #include <limits.h>"; then :
5992 eval gl_cv_bitsizeof_${gltype}=\$result
5995 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5997 $as_echo "$ac_res" >&6; }
5998 eval result=\$gl_cv_bitsizeof_${gltype}
5999 if test $result = unknown; then
6002 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6003 cat >>confdefs.h <<_ACEOF
6004 #define BITSIZEOF_${GLTYPE} $result
6007 eval BITSIZEOF_${GLTYPE}=\$result
6014 for gltype in sig_atomic_t wchar_t wint_t ; do
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6016 $as_echo_n "checking for bit size of $gltype... " >&6; }
6017 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6018 $as_echo_n "(cached) " >&6
6020 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6021 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6022 included before <wchar.h>. */
6031 #include <limits.h>"; then :
6037 eval gl_cv_bitsizeof_${gltype}=\$result
6040 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6042 $as_echo "$ac_res" >&6; }
6043 eval result=\$gl_cv_bitsizeof_${gltype}
6044 if test $result = unknown; then
6047 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6048 cat >>confdefs.h <<_ACEOF
6049 #define BITSIZEOF_${GLTYPE} $result
6052 eval BITSIZEOF_${GLTYPE}=\$result
6058 for gltype in sig_atomic_t wchar_t wint_t ; do
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6060 $as_echo_n "checking whether $gltype is signed... " >&6; }
6061 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6062 $as_echo_n "(cached) " >&6
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6067 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6068 included before <wchar.h>. */
6077 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6086 if ac_fn_c_try_compile "$LINENO"; then :
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 eval gl_cv_type_${gltype}_signed=\$result
6095 eval ac_res=\$gl_cv_type_${gltype}_signed
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6097 $as_echo "$ac_res" >&6; }
6098 eval result=\$gl_cv_type_${gltype}_signed
6099 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6100 if test "$result" = yes; then
6101 cat >>confdefs.h <<_ACEOF
6102 #define HAVE_SIGNED_${GLTYPE} 1
6105 eval HAVE_SIGNED_${GLTYPE}=1
6107 eval HAVE_SIGNED_${GLTYPE}=0
6112 gl_cv_type_ptrdiff_t_signed=yes
6113 gl_cv_type_size_t_signed=no
6114 if test $APPLE_UNIVERSAL_BUILD = 0; then
6117 for gltype in ptrdiff_t size_t ; do
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6119 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6120 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6121 $as_echo_n "(cached) " >&6
6123 eval gl_cv_type_${gltype}_suffix=no
6124 eval result=\$gl_cv_type_${gltype}_signed
6125 if test "$result" = yes; then
6130 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6133 l) gltype1='long int';;
6134 ll) gltype1='long long int';;
6135 i64) gltype1='__int64';;
6136 u) gltype1='unsigned int';;
6137 ul) gltype1='unsigned long int';;
6138 ull) gltype1='unsigned long long int';;
6139 ui64)gltype1='unsigned __int64';;
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6144 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6145 included before <wchar.h>. */
6155 extern $gltype1 foo;
6164 if ac_fn_c_try_compile "$LINENO"; then :
6165 eval gl_cv_type_${gltype}_suffix=\$glsuf
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 eval result=\$gl_cv_type_${gltype}_suffix
6169 test "$result" != no && break
6172 eval ac_res=\$gl_cv_type_${gltype}_suffix
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6174 $as_echo "$ac_res" >&6; }
6175 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6176 eval result=\$gl_cv_type_${gltype}_suffix
6177 test "$result" = no && result=
6178 eval ${GLTYPE}_SUFFIX=\$result
6179 cat >>confdefs.h <<_ACEOF
6180 #define ${GLTYPE}_SUFFIX $result
6189 for gltype in sig_atomic_t wchar_t wint_t ; do
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6191 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6192 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6193 $as_echo_n "(cached) " >&6
6195 eval gl_cv_type_${gltype}_suffix=no
6196 eval result=\$gl_cv_type_${gltype}_signed
6197 if test "$result" = yes; then
6202 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6205 l) gltype1='long int';;
6206 ll) gltype1='long long int';;
6207 i64) gltype1='__int64';;
6208 u) gltype1='unsigned int';;
6209 ul) gltype1='unsigned long int';;
6210 ull) gltype1='unsigned long long int';;
6211 ui64)gltype1='unsigned __int64';;
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6216 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6217 included before <wchar.h>. */
6227 extern $gltype1 foo;
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 eval gl_cv_type_${gltype}_suffix=\$glsuf
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 eval result=\$gl_cv_type_${gltype}_suffix
6241 test "$result" != no && break
6244 eval ac_res=\$gl_cv_type_${gltype}_suffix
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6246 $as_echo "$ac_res" >&6; }
6247 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6248 eval result=\$gl_cv_type_${gltype}_suffix
6249 test "$result" = no && result=
6250 eval ${GLTYPE}_SUFFIX=\$result
6251 cat >>confdefs.h <<_ACEOF
6252 #define ${GLTYPE}_SUFFIX $result
6259 if test $BITSIZEOF_WINT_T -lt 32; then
6266 if test -n "$STDINT_H"; then
6267 GL_GENERATE_STDINT_H_TRUE=
6268 GL_GENERATE_STDINT_H_FALSE='#'
6270 GL_GENERATE_STDINT_H_TRUE='#'
6271 GL_GENERATE_STDINT_H_FALSE=
6285 HAVE_DECL_IMAXABS=1;
6286 HAVE_DECL_IMAXDIV=1;
6287 HAVE_DECL_STRTOIMAX=1;
6288 HAVE_DECL_STRTOUMAX=1;
6289 REPLACE_STRTOIMAX=0;
6290 INT32_MAX_LT_INTMAX_MAX=1;
6291 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6292 PRI_MACROS_BROKEN=0;
6293 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6294 UINT32_MAX_LT_UINTMAX_MAX=1;
6295 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6323 if test $gl_cv_have_include_next = yes; then
6324 gl_cv_next_inttypes_h='<'inttypes.h'>'
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6327 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6328 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6332 if test $ac_cv_header_inttypes_h = yes; then
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #include <inttypes.h>
6341 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6342 *) gl_absname_cpp="$ac_cpp" ;;
6347 gl_dirsep_regex='[/\\]'
6350 gl_dirsep_regex='\/'
6353 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6355 gl_header_literal_regex=`echo 'inttypes.h' \
6356 |
sed -e "$gl_make_literal_regex_sed"`
6357 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6363 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6364 sed -n "$gl_absolute_header_sed"`'"'
6366 gl_cv_next_inttypes_h='<'inttypes.h'>'
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6372 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6374 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6376 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6378 gl_next_as_first_directive='<'inttypes.h'>'
6380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6381 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6383 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6392 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6393 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6395 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6396 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6397 $as_echo_n "(cached) " >&6
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 #include <inttypes.h>
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 eval "$as_gl_Symbol=yes"
6415 eval "$as_gl_Symbol=no"
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 eval ac_res=\$$as_gl_Symbol
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6421 $as_echo "$ac_res" >&6; }
6422 eval as_val=\$$as_gl_Symbol
6423 if test "x$as_val" = x""yes; then :
6424 cat >>confdefs.h <<_ACEOF
6425 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
6428 eval ac_cv_have_decl_$gl_func=yes
6434 for ac_header in inttypes.h
6436 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6437 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6438 cat >>confdefs.h <<_ACEOF
6439 #define HAVE_INTTYPES_H 1
6446 if test $ac_cv_header_inttypes_h = yes; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6448 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6449 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6456 #include <inttypes.h>
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470 gt_cv_inttypes_pri_broken=no
6472 gt_cv_inttypes_pri_broken=yes
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6478 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6480 if test "$gt_cv_inttypes_pri_broken" = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define PRI_MACROS_BROKEN 1
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6494 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6495 if test "${am_cv_langinfo_codeset+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500 #include <langinfo.h>
6504 char* cs = nl_langinfo(CODESET); return !cs;
6509 if ac_fn_c_try_link "$LINENO"; then :
6510 am_cv_langinfo_codeset=yes
6512 am_cv_langinfo_codeset=no
6514 rm -f core conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6519 $as_echo "$am_cv_langinfo_codeset" >&6; }
6520 if test $am_cv_langinfo_codeset = yes; then
6522 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6554 $as_echo_n "checking for working fcntl.h... " >&6; }
6555 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6558 if test "$cross_compiling" = yes; then :
6559 gl_cv_header_working_fcntl_h=cross-compiling
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #include <sys/types.h>
6564 #include <sys/stat.h>
6566 # include <unistd.h>
6567 #else /* on Windows with MSVC */
6569 # include <stdlib.h>
6570 # defined sleep(n) _sleep ((n) * 1000)
6577 #define O_NOFOLLOW 0
6579 static int const constants[] =
6581 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6582 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6589 int result = !constants;
6592 static char const sym[] = "conftest.sym";
6593 if (symlink ("/dev/null", sym) != 0)
6597 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
6604 if (unlink (sym) != 0 || symlink (".", sym) != 0)
6608 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6619 static char const file[] = "confdefs.h";
6620 int fd = open (file, O_RDONLY | O_NOATIME);
6626 if (fstat (fd, &st0) != 0)
6632 if (read (fd, &c, 1) != 1)
6636 if (close (fd) != 0)
6641 if (stat (file, &st1) != 0)
6644 if (st0.st_atime != st1.st_atime)
6656 if ac_fn_c_try_run "$LINENO"; then :
6657 gl_cv_header_working_fcntl_h=yes
6660 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6661 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6662 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6663 *) gl_cv_header_working_fcntl_h='no';;
6666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6667 conftest.$ac_objext conftest.beam conftest.$ac_ext
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6672 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6674 case $gl_cv_header_working_fcntl_h in #(
6675 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6679 cat >>confdefs.h <<_ACEOF
6680 #define HAVE_WORKING_O_NOATIME $ac_val
6684 case $gl_cv_header_working_fcntl_h in #(
6685 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6689 cat >>confdefs.h <<_ACEOF
6690 #define HAVE_WORKING_O_NOFOLLOW $ac_val
6695 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6696 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
6702 cat >>confdefs.h <<_ACEOF
6703 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6709 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6710 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 #include <features.h>
6717 #ifdef __GNU_LIBRARY__
6718 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728 $EGREP "Lucky" >/dev/null 2>&1; then :
6729 ac_cv_gnu_library_2_1=yes
6731 ac_cv_gnu_library_2_1=no
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6739 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
6741 GLIBC21="$ac_cv_gnu_library_2_1"
6751 GNULIB_MBSNRTOWCS=0;
6754 GNULIB_WCSNRTOMBS=0;
6771 GNULIB_WCSCASECMP=0;
6772 GNULIB_WCSNCASECMP=0;
6822 HAVE_DECL_WCWIDTH=1;
6823 REPLACE_MBSTATE_T=0;
6829 REPLACE_MBSRTOWCS=0;
6830 REPLACE_MBSNRTOWCS=0;
6832 REPLACE_WCSRTOMBS=0;
6833 REPLACE_WCSNRTOMBS=0;
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
6851 $as_echo_n "checking for a traditional japanese locale... " >&6; }
6852 if test "${gt_cv_locale_ja+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6861 #if HAVE_LANGINFO_CODESET
6862 # include <langinfo.h>
6871 /* Check whether the given locale name is recognized by the system. */
6872 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6873 /* On native Windows, setlocale(category, "") looks at the system settings,
6874 not at the environment variables. Also, when an encoding suffix such
6875 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
6876 category of the locale to "C". */
6877 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
6878 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
6881 if (setlocale (LC_ALL, "") == NULL) return 1;
6883 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6884 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6885 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6886 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6887 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6888 some unit tests fail.
6889 On MirBSD 10, when an unsupported locale is specified, setlocale()
6890 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
6891 #if HAVE_LANGINFO_CODESET
6893 const char *cs = nl_langinfo (CODESET);
6894 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
6895 || strcmp (cs, "UTF-8") == 0)
6900 /* On Cygwin, avoid locale names without encoding suffix, because the
6901 locale_charset() function relies on the encoding suffix. Note that
6902 LC_ALL is set on the command line. */
6903 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
6905 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
6907 if (MB_CUR_MAX == 1)
6909 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
6910 This excludes the UTF-8 encoding (except on MirBSD). */
6911 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
6912 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
6913 for (p = buf; *p != '\0'; p++)
6914 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
6920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6921 (eval $ac_link) 2>&5
6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6926 # Handle native Windows specially, because there setlocale() interprets
6927 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
6928 # "fr" or "fra" as "French" or "French_France.1252",
6929 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
6930 # "ja" as "Japanese" or "Japanese_Japan.932",
6933 # Note that on native Windows, the Japanese locale is
6934 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
6935 # cannot use it here.
6936 gt_cv_locale_ja=none
6939 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
6940 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
6941 # configure script would override the LC_ALL setting. Likewise for
6942 # LC_CTYPE, which is also set at the beginning of the configure script.
6943 # Test for the AIX locale name.
6944 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6945 gt_cv_locale_ja=ja_JP
6947 # Test for the locale name with explicit encoding suffix.
6948 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6949 gt_cv_locale_ja=ja_JP.EUC-JP
6951 # Test for the HP-UX, OSF/1, NetBSD locale name.
6952 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6953 gt_cv_locale_ja=ja_JP.eucJP
6955 # Test for the IRIX, FreeBSD locale name.
6956 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6957 gt_cv_locale_ja=ja_JP.EUC
6959 # Test for the Solaris 7 locale name.
6960 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6963 # Special test for NetBSD 1.6.
6964 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
6965 gt_cv_locale_ja=ja_JP.eucJP
6968 gt_cv_locale_ja=none
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
6982 $as_echo "$gt_cv_locale_ja" >&6; }
6983 LOCALE_JA=$gt_cv_locale_ja
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
6990 $as_echo_n "checking for a transitional chinese locale... " >&6; }
6991 if test "${gt_cv_locale_zh_CN+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
7001 #if HAVE_LANGINFO_CODESET
7002 # include <langinfo.h>
7011 /* Check whether the given locale name is recognized by the system. */
7012 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7013 /* On native Windows, setlocale(category, "") looks at the system settings,
7014 not at the environment variables. Also, when an encoding suffix such
7015 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7016 category of the locale to "C". */
7017 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7018 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7021 if (setlocale (LC_ALL, "") == NULL) return 1;
7023 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7024 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7025 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7026 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7027 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7028 some unit tests fail.
7029 On MirBSD 10, when an unsupported locale is specified, setlocale()
7030 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7031 #if HAVE_LANGINFO_CODESET
7033 const char *cs = nl_langinfo (CODESET);
7034 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7035 || strcmp (cs, "UTF-8") == 0)
7040 /* On Cygwin, avoid locale names without encoding suffix, because the
7041 locale_charset() function relies on the encoding suffix. Note that
7042 LC_ALL is set on the command line. */
7043 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7045 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7046 This excludes the UTF-8 encoding (except on MirBSD). */
7047 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7048 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7049 for (p = buf; *p != '\0'; p++)
7050 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7052 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7053 single wide character. This excludes the GB2312 and GBK encodings. */
7054 if (mblen ("\203\062\332\066", 5) != 4)
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7061 (eval $ac_link) 2>&5
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7066 # Handle native Windows specially, because there setlocale() interprets
7067 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7068 # "fr" or "fra" as "French" or "French_France.1252",
7069 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7070 # "ja" as "Japanese" or "Japanese_Japan.932",
7073 # Test for the hypothetical native Windows locale name.
7074 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7075 gt_cv_locale_zh_CN=Chinese_China.54936
7078 gt_cv_locale_zh_CN=none
7082 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7083 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7084 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7085 gt_cv_locale_zh_CN=none
7088 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7089 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7090 # configure script would override the LC_ALL setting. Likewise for
7091 # LC_CTYPE, which is also set at the beginning of the configure script.
7092 # Test for the locale name without encoding suffix.
7093 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7094 gt_cv_locale_zh_CN=zh_CN
7096 # Test for the locale name with explicit encoding suffix.
7097 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7098 gt_cv_locale_zh_CN=zh_CN.GB18030
7101 gt_cv_locale_zh_CN=none
7107 # If there was a link error, due to mblen(), the system is so old that
7108 # it certainly doesn't have a chinese locale.
7109 gt_cv_locale_zh_CN=none
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7115 $as_echo "$gt_cv_locale_zh_CN" >&6; }
7116 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7122 $as_echo_n "checking for a french Unicode locale... " >&6; }
7123 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7132 #if HAVE_LANGINFO_CODESET
7133 # include <langinfo.h>
7140 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7141 imitates locale dependent behaviour by looking at the environment
7142 variables, and all locales use the UTF-8 encoding. */
7143 #if !(defined __BEOS__ || defined __HAIKU__)
7144 /* Check whether the given locale name is recognized by the system. */
7145 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7146 /* On native Windows, setlocale(category, "") looks at the system settings,
7147 not at the environment variables. Also, when an encoding suffix such
7148 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7149 category of the locale to "C". */
7150 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7151 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7154 if (setlocale (LC_ALL, "") == NULL) return 1;
7156 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7157 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7158 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7159 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7160 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7161 some unit tests fail. */
7162 # if HAVE_LANGINFO_CODESET
7164 const char *cs = nl_langinfo (CODESET);
7165 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7170 /* On Cygwin, avoid locale names without encoding suffix, because the
7171 locale_charset() function relies on the encoding suffix. Note that
7172 LC_ALL is set on the command line. */
7173 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7175 /* Check whether in the abbreviation of the second month, the second
7176 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7177 two bytes long, with UTF-8 encoding. */
7178 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7179 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7180 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7183 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7184 /* Check whether the decimal separator is a comma.
7185 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7186 are nl_langinfo(RADIXCHAR) are both ".". */
7187 if (localeconv () ->decimal_point[0] != ',') return 1;
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7194 (eval $ac_link) 2>&5
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7199 # Handle native Windows specially, because there setlocale() interprets
7200 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7201 # "fr" or "fra" as "French" or "French_France.1252",
7202 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7203 # "ja" as "Japanese" or "Japanese_Japan.932",
7206 # Test for the hypothetical native Windows locale name.
7207 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7208 gt_cv_locale_fr_utf8=French_France.65001
7211 gt_cv_locale_fr_utf8=none
7215 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7216 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7217 # configure script would override the LC_ALL setting. Likewise for
7218 # LC_CTYPE, which is also set at the beginning of the configure script.
7219 # Test for the usual locale name.
7220 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7221 gt_cv_locale_fr_utf8=fr_FR
7223 # Test for the locale name with explicit encoding suffix.
7224 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7225 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7227 # Test for the Solaris 7 locale name.
7228 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7229 gt_cv_locale_fr_utf8=fr.UTF-8
7232 gt_cv_locale_fr_utf8=none
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7243 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
7244 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7251 $as_echo_n "checking for a traditional french locale... " >&6; }
7252 if test "${gt_cv_locale_fr+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7261 #if HAVE_LANGINFO_CODESET
7262 # include <langinfo.h>
7269 /* Check whether the given locale name is recognized by the system. */
7270 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7271 /* On native Windows, setlocale(category, "") looks at the system settings,
7272 not at the environment variables. Also, when an encoding suffix such
7273 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7274 category of the locale to "C". */
7275 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7276 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7279 if (setlocale (LC_ALL, "") == NULL) return 1;
7281 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7282 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7283 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7284 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7285 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7286 some unit tests fail.
7287 On MirBSD 10, when an unsupported locale is specified, setlocale()
7288 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7289 #if HAVE_LANGINFO_CODESET
7291 const char *cs = nl_langinfo (CODESET);
7292 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7293 || strcmp (cs, "UTF-8") == 0)
7298 /* On Cygwin, avoid locale names without encoding suffix, because the
7299 locale_charset() function relies on the encoding suffix. Note that
7300 LC_ALL is set on the command line. */
7301 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7303 /* Check whether in the abbreviation of the second month, the second
7304 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7305 one byte long. This excludes the UTF-8 encoding. */
7306 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7307 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7308 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7309 /* Check whether the decimal separator is a comma.
7310 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7311 are nl_langinfo(RADIXCHAR) are both ".". */
7312 if (localeconv () ->decimal_point[0] != ',') return 1;
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7319 (eval $ac_link) 2>&5
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7324 # Handle native Windows specially, because there setlocale() interprets
7325 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7326 # "fr" or "fra" as "French" or "French_France.1252",
7327 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7328 # "ja" as "Japanese" or "Japanese_Japan.932",
7331 # Test for the native Windows locale name.
7332 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7333 gt_cv_locale_fr=French_France.1252
7336 gt_cv_locale_fr=none
7340 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7341 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7342 # configure script would override the LC_ALL setting. Likewise for
7343 # LC_CTYPE, which is also set at the beginning of the configure script.
7344 # Test for the usual locale name.
7345 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7346 gt_cv_locale_fr=fr_FR
7348 # Test for the locale name with explicit encoding suffix.
7349 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7350 gt_cv_locale_fr=fr_FR.ISO-8859-1
7352 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7353 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7354 gt_cv_locale_fr=fr_FR.ISO8859-1
7356 # Test for the HP-UX locale name.
7357 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7358 gt_cv_locale_fr=fr_FR.iso88591
7360 # Test for the Solaris 7 locale name.
7361 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7365 gt_cv_locale_fr=none
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7378 $as_echo "$gt_cv_locale_fr" >&6; }
7379 LOCALE_FR=$gt_cv_locale_fr
7410 GNULIB_STRCASESTR=0;
7417 GNULIB_MBSCASECMP=0;
7418 GNULIB_MBSNCASECMP=0;
7419 GNULIB_MBSPCASECMP=0;
7420 GNULIB_MBSCASESTR=0;
7427 GNULIB_STRERROR_R=0;
7429 GNULIB_STRVERSCMP=0;
7436 HAVE_DECL_MEMRCHR=1;
7442 HAVE_DECL_STRNDUP=1;
7443 HAVE_DECL_STRNLEN=1;
7447 HAVE_DECL_STRTOK_R=1;
7448 HAVE_DECL_STRERROR_R=1;
7449 HAVE_DECL_STRSIGNAL=1;
7456 REPLACE_STRCASESTR=0;
7457 REPLACE_STRCHRNUL=0;
7459 REPLACE_STRERROR_R=0;
7463 REPLACE_STRSIGNAL=0;
7465 UNDEFINE_STRTOK_R=0;
7471 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7472 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7473 # irrelevant for anonymous mappings.
7474 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7475 if test "x$ac_cv_func_mmap" = x""yes; then :
7482 # Try to allow MAP_ANONYMOUS.
7483 gl_have_mmap_anonymous=no
7484 if test $gl_have_mmap = yes; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7486 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7490 #include <sys/mman.h>
7491 #ifdef MAP_ANONYMOUS
7492 I cannot identify this map
7496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7497 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7498 gl_have_mmap_anonymous=yes
7502 if test $gl_have_mmap_anonymous != yes; then
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7506 #include <sys/mman.h>
7508 I cannot identify this map
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7515 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7517 gl_have_mmap_anonymous=yes
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7523 $as_echo "$gl_have_mmap_anonymous" >&6; }
7524 if test $gl_have_mmap_anonymous = yes; then
7526 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7548 if test $HAVE_MEMCHR = 1; then
7549 # Detect platform-specific bugs in some versions of glibc:
7550 # memchr should not dereference anything with length 0
7551 # http://bugzilla.redhat.com/499689
7552 # memchr should not dereference overestimated length after a match
7553 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7554 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7555 # Assume that memchr works on platforms that lack mprotect.
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7557 $as_echo_n "checking whether memchr works... " >&6; }
7558 if test "${gl_cv_func_memchr_works+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7561 if test "$cross_compiling" = yes; then :
7562 gl_cv_func_memchr_works="guessing no"
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7570 # include <unistd.h>
7571 # include <sys/types.h>
7572 # include <sys/mman.h>
7584 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7585 # if HAVE_MAP_ANONYMOUS
7586 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7588 # else /* !HAVE_MAP_ANONYMOUS */
7589 const int flags = MAP_FILE | MAP_PRIVATE;
7590 int fd = open ("/dev/zero", O_RDONLY, 0666);
7594 int pagesize = getpagesize ();
7596 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7598 if (two_pages != (char *)(-1)
7599 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7600 fence = two_pages + pagesize;
7605 if (memchr (fence, 0, 0))
7607 strcpy (fence - 9, "12345678");
7608 if (memchr (fence - 9, 0, 79) != fence - 1)
7610 if (memchr (fence - 1, 0, 3) != fence - 1)
7619 if ac_fn_c_try_run "$LINENO"; then :
7620 gl_cv_func_memchr_works=yes
7622 gl_cv_func_memchr_works=no
7624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7625 conftest.$ac_objext conftest.beam conftest.$ac_ext
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
7630 $as_echo "$gl_cv_func_memchr_works" >&6; }
7631 if test "$gl_cv_func_memchr_works" != yes; then
7637 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7638 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7644 cat >>confdefs.h <<_ACEOF
7645 #define HAVE_DECL_MEMMEM $ac_have_decl
7653 for ac_func in memmem
7655 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7656 if test "x$ac_cv_func_memmem" = x""yes; then :
7657 cat >>confdefs.h <<_ACEOF
7658 #define HAVE_MEMMEM 1
7664 if test $ac_cv_func_memmem = yes; then
7676 if test $ac_cv_have_decl_memmem = no; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7680 $as_echo_n "checking whether memmem works... " >&6; }
7681 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7684 if test "$cross_compiling" = yes; then :
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7688 #ifdef __GNU_LIBRARY__
7689 #include <features.h>
7690 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7691 || __GLIBC_MINOR__ > 12)) \
7692 || (__GLIBC__ > 2)) \
7693 || defined __UCLIBC__
7696 #elif defined __CYGWIN__
7697 #include <cygwin/version.h>
7698 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 $EGREP "Lucky user" >/dev/null 2>&1; then :
7708 gl_cv_func_memmem_works_always="guessing yes"
7710 gl_cv_func_memmem_works_always="guessing no"
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7719 #include <string.h> /* for memmem */
7720 #define P "_EF_BF_BD"
7721 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7722 #define NEEDLE P P P P P
7729 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7731 /* Check for empty needle behavior. */
7733 const char *haystack = "AAA";
7734 if (memmem (haystack, 3, NULL, 0) != haystack)
7743 if ac_fn_c_try_run "$LINENO"; then :
7744 gl_cv_func_memmem_works_always=yes
7746 gl_cv_func_memmem_works_always=no
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7749 conftest.$ac_objext conftest.beam conftest.$ac_ext
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7755 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
7756 case "$gl_cv_func_memmem_works_always" in
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7766 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7767 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7773 #include <stdbool.h>
7775 "error: bool is not defined"
7778 "error: false is not defined"
7781 "error: false is not 0"
7784 "error: true is not defined"
7787 "error: true is not 1"
7789 #ifndef __bool_true_false_are_defined
7790 "error: __bool_true_false_are_defined is not defined"
7793 struct s { _Bool s: 1; _Bool t; } s;
7795 char a[true == 1 ? 1 : -1];
7796 char b[false == 0 ? 1 : -1];
7797 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7798 char d[(bool) 0.5 == true ? 1 : -1];
7799 /* See body of main program for 'e'. */
7800 char f[(_Bool) 0.0 == false ? 1 : -1];
7802 char h[sizeof (_Bool)];
7804 enum { j = false, k = true, l = false * true, m = true * 256 };
7805 /* The following fails for
7806 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7808 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7809 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7810 /* Catch a bug in an HP-UX C compiler. See
7811 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7812 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7824 /* Refer to every declared value, to avoid compiler optimizations. */
7825 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7826 + !m + !n + !o + !p + !q + !pq);
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 ac_cv_header_stdbool_h=yes
7835 ac_cv_header_stdbool_h=no
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7840 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7841 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7842 if test "x$ac_cv_type__Bool" = x""yes; then :
7844 cat >>confdefs.h <<_ACEOF
7845 #define HAVE__BOOL 1
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7858 $as_echo_n "checking for wchar_t... " >&6; }
7859 if test "${gt_cv_c_wchar_t+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7865 wchar_t foo = (wchar_t)'\0';
7874 if ac_fn_c_try_compile "$LINENO"; then :
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7882 $as_echo "$gt_cv_c_wchar_t" >&6; }
7883 if test $gt_cv_c_wchar_t = yes; then
7885 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7890 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7891 if test "${ac_cv_c_restrict+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7895 # The order here caters to the fact that C++ does not require restrict.
7896 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 typedef int * int_ptr;
7900 int foo (int_ptr $ac_kw ip) {
7914 if ac_fn_c_try_compile "$LINENO"; then :
7915 ac_cv_c_restrict=$ac_kw
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 test "$ac_cv_c_restrict" != no && break
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7923 $as_echo "$ac_cv_c_restrict" >&6; }
7925 case $ac_cv_c_restrict in
7927 no) $as_echo "#define restrict /**/" >>confdefs.h
7929 *) cat >>confdefs.h <<_ACEOF
7930 #define restrict $ac_cv_c_restrict
7946 if test $gl_cv_have_include_next = yes; then
7947 gl_cv_next_string_h='<'string.h'>'
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7950 $as_echo_n "checking absolute name of <string.h>... " >&6; }
7951 if test "${gl_cv_next_string_h+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7961 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7962 *) gl_absname_cpp="$ac_cpp" ;;
7967 gl_dirsep_regex='[/\\]'
7970 gl_dirsep_regex='\/'
7973 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7975 gl_header_literal_regex=`echo 'string.h' \
7976 |
sed -e "$gl_make_literal_regex_sed"`
7977 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7978 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7983 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7984 sed -n "$gl_absolute_header_sed"`'"'
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7989 $as_echo "$gl_cv_next_string_h" >&6; }
7991 NEXT_STRING_H=$gl_cv_next_string_h
7993 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7994 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7995 gl_next_as_first_directive='<'string.h'>'
7997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7998 gl_next_as_first_directive=$gl_cv_next_string_h
8000 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
8007 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
8008 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8010 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8011 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8012 $as_echo_n "(cached) " >&6
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028 eval "$as_gl_Symbol=yes"
8030 eval "$as_gl_Symbol=no"
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 eval ac_res=\$$as_gl_Symbol
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8036 $as_echo "$ac_res" >&6; }
8037 eval as_val=\$$as_gl_Symbol
8038 if test "x$as_val" = x""yes; then :
8039 cat >>confdefs.h <<_ACEOF
8040 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8043 eval ac_cv_have_decl_$gl_func=yes
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8050 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8051 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8054 gl_cv_header_wchar_h_correct_inline=yes
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8058 #define wcstod renamed_wcstod
8059 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8061 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8062 included before <wchar.h>. */
8067 extern int zero (void);
8068 int main () { return zero(); }
8071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8072 (eval $ac_compile) 2>&5
8074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8075 test $ac_status = 0; }; then
8076 mv conftest.$ac_objext conftest1.$ac_objext
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8080 #define wcstod renamed_wcstod
8081 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8083 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8084 included before <wchar.h>. */
8089 int zero (void) { return 0; }
8092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8093 (eval $ac_compile) 2>&5
8095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8096 test $ac_status = 0; }; then
8097 mv conftest.$ac_objext conftest2.$ac_objext
8098 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8101 gl_cv_header_wchar_h_correct_inline=no
8105 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8109 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8110 if test $gl_cv_header_wchar_h_correct_inline = no; then
8111 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8112 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8113 C99 mode. You have four options:
8114 - Add the flag -fgnu89-inline to CC and reconfigure, or
8115 - Fix your include files, using parts of
8116 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8117 - Use a gcc version older than 4.3, or
8118 - Don't use the flags -std=c99 or -std=gnu99.
8119 Configuration aborted." "$LINENO" 5
8135 if test $ac_cv_header_features_h = yes; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8144 $as_echo_n "checking for wint_t... " >&6; }
8145 if test "${gt_cv_c_wint_t+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8151 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8153 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8154 before <wchar.h>. */
8159 wint_t foo = (wchar_t)'\0';
8168 if ac_fn_c_try_compile "$LINENO"; then :
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8176 $as_echo "$gt_cv_c_wint_t" >&6; }
8177 if test $gt_cv_c_wint_t = yes; then
8179 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8201 GL_COND_LIBTOOL_TRUE=
8202 GL_COND_LIBTOOL_FALSE='#'
8204 GL_COND_LIBTOOL_TRUE='#'
8205 GL_COND_LIBTOOL_FALSE=
8208 gl_cond_libtool=false
8211 gl_m4_base='import/m4'
8221 gl_source_base='import'
8224 if test $ac_cv_func_alloca_works = no; then
8228 # Define an additional variable used in the Makefile substitution.
8229 if test $ac_cv_working_alloca_h = yes; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8231 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
8232 if test "${gl_cv_rpl_alloca+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8239 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "Need own alloca" >/dev/null 2>&1; then :
8246 gl_cv_rpl_alloca=yes
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8255 $as_echo "$gl_cv_rpl_alloca" >&6; }
8256 if test $gl_cv_rpl_alloca = yes; then
8258 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8268 if test -n "$ALLOCA_H"; then
8269 GL_GENERATE_ALLOCA_H_TRUE=
8270 GL_GENERATE_ALLOCA_H_FALSE='#'
8272 GL_GENERATE_ALLOCA_H_TRUE='#'
8273 GL_GENERATE_ALLOCA_H_FALSE=
8278 if test "x$datarootdir" = x; then
8279 datarootdir='${datadir}'
8282 if test "x$docdir" = x; then
8283 docdir='${datarootdir}/doc/${PACKAGE}'
8286 if test "x$htmldir" = x; then
8290 if test "x$dvidir" = x; then
8294 if test "x$pdfdir" = x; then
8298 if test "x$psdir" = x; then
8302 if test "x$lispdir" = x; then
8303 lispdir='${datarootdir}/emacs/site-lisp'
8306 if test "x$localedir" = x; then
8307 localedir='${datarootdir}/locale'
8311 pkglibexecdir='${libexecdir}/${PACKAGE}'
8321 gl_fnmatch_required_lowercase=`
8322 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
8324 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
8326 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
8327 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
8328 $as_echo_n "(cached) " >&6
8330 if test $gl_fnmatch_required = GNU; then
8331 gl_fnmatch_gnu_start=
8334 gl_fnmatch_gnu_start='#if 0'
8335 gl_fnmatch_gnu_end='#endif'
8337 if test "$cross_compiling" = yes; then :
8338 eval "$gl_fnmatch_cache_var=\"guessing no\""
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 #include <fnmatch.h>
8344 y (char const *pattern, char const *string, int flags)
8346 return fnmatch (pattern, string, flags) == 0;
8349 n (char const *pattern, char const *string, int flags)
8351 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
8357 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
8358 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
8359 static char const A_1[] = { 'A' - 1, 0 };
8360 static char const A01[] = { 'A' + 1, 0 };
8361 static char const a_1[] = { 'a' - 1, 0 };
8362 static char const a01[] = { 'a' + 1, 0 };
8363 static char const bs_1[] = { '\\\\' - 1, 0 };
8364 static char const bs01[] = { '\\\\' + 1, 0 };
8366 if (!n ("a*", "", 0))
8368 if (!y ("a*", "abc", 0))
8370 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
8372 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
8374 if (!y ("a\\\\bc", "abc", 0))
8376 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
8378 if (!y ("*x", ".x", 0))
8380 if (!n ("*x", ".x", FNM_PERIOD))
8382 if (!y (Apat, "\\\\", 0))
8384 if (!y (Apat, "A", 0))
8386 if (!y (apat, "\\\\", 0))
8388 if (!y (apat, "a", 0))
8390 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
8392 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
8394 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
8396 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
8398 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
8400 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
8402 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
8404 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
8406 $gl_fnmatch_gnu_start
8407 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
8409 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
8411 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
8413 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
8415 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
8417 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
8426 if ac_fn_c_try_run "$LINENO"; then :
8427 eval "$gl_fnmatch_cache_var=yes"
8429 eval "$gl_fnmatch_cache_var=no"
8431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8432 conftest.$ac_objext conftest.beam conftest.$ac_ext
8437 eval ac_res=\$$gl_fnmatch_cache_var
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8439 $as_echo "$ac_res" >&6; }
8440 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
8441 if test "$gl_fnmatch_result" = yes; then
8442 rm -f "$gl_source_base/fnmatch.h"
8447 if test -n "$FNMATCH_H"; then
8448 GL_GENERATE_FNMATCH_H_TRUE=
8449 GL_GENERATE_FNMATCH_H_FALSE='#'
8451 GL_GENERATE_FNMATCH_H_TRUE='#'
8452 GL_GENERATE_FNMATCH_H_FALSE=
8456 if test -n "$FNMATCH_H"; then
8465 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8469 cat >>confdefs.h <<_ACEOF
8470 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8474 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8476 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_DECL_ISBLANK $ac_have_decl
8528 if test -n "$FNMATCH_H"; then
8537 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8541 cat >>confdefs.h <<_ACEOF
8542 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8546 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8548 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_DECL_ISBLANK $ac_have_decl
8601 if test -n "$STDINT_H"; then
8604 for glpfx in '' l ll I64; do
8607 l) gltype1='long int';;
8608 ll) gltype1='long long int';;
8609 I64) gltype1='__int64';;
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8614 extern intptr_t foo;
8615 extern $gltype1 foo;
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625 PRIPTR_PREFIX='"'$glpfx'"'
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 test -n "$PRIPTR_PREFIX" && break
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
8635 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
8636 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 /* Work also in C++ mode. */
8642 #define __STDC_LIMIT_MACROS 1
8644 /* Work if build is not clean. */
8645 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8652 #if defined INT32_MAX && defined INTMAX_MAX
8653 #define CONDITION (INT32_MAX < INTMAX_MAX)
8654 #elif HAVE_LONG_LONG_INT
8655 #define CONDITION (sizeof (int) < sizeof (long long int))
8659 int test[CONDITION ? 1 : -1];
8668 if ac_fn_c_try_compile "$LINENO"; then :
8669 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
8671 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
8676 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
8677 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
8678 INT32_MAX_LT_INTMAX_MAX=1;
8680 INT32_MAX_LT_INTMAX_MAX=0;
8684 if test $APPLE_UNIVERSAL_BUILD = 0; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
8687 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
8688 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 /* Work also in C++ mode. */
8694 #define __STDC_LIMIT_MACROS 1
8696 /* Work if build is not clean. */
8697 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8704 #if defined INT64_MAX
8705 #define CONDITION (INT64_MAX == LONG_MAX)
8706 #elif HAVE_LONG_LONG_INT
8707 #define CONDITION (sizeof (long long int) == sizeof (long int))
8711 int test[CONDITION ? 1 : -1];
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
8723 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
8728 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
8729 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
8730 INT64_MAX_EQ_LONG_MAX=1;
8732 INT64_MAX_EQ_LONG_MAX=0;
8737 INT64_MAX_EQ_LONG_MAX=-1
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
8741 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
8742 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 /* Work also in C++ mode. */
8748 #define __STDC_LIMIT_MACROS 1
8750 /* Work if build is not clean. */
8751 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8758 #if defined UINT32_MAX && defined UINTMAX_MAX
8759 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
8760 #elif HAVE_LONG_LONG_INT
8761 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
8765 int test[CONDITION ? 1 : -1];
8774 if ac_fn_c_try_compile "$LINENO"; then :
8775 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
8777 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
8782 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
8783 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
8784 UINT32_MAX_LT_UINTMAX_MAX=1;
8786 UINT32_MAX_LT_UINTMAX_MAX=0;
8790 if test $APPLE_UNIVERSAL_BUILD = 0; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
8793 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
8794 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 /* Work also in C++ mode. */
8800 #define __STDC_LIMIT_MACROS 1
8802 /* Work if build is not clean. */
8803 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8810 #if defined UINT64_MAX
8811 #define CONDITION (UINT64_MAX == ULONG_MAX)
8812 #elif HAVE_LONG_LONG_INT
8813 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
8817 int test[CONDITION ? 1 : -1];
8826 if ac_fn_c_try_compile "$LINENO"; then :
8827 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
8829 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
8834 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
8835 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
8836 UINT64_MAX_EQ_ULONG_MAX=1;
8838 UINT64_MAX_EQ_ULONG_MAX=0;
8843 UINT64_MAX_EQ_ULONG_MAX=-1
8862 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
8886 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8891 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8892 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
8897 # Guess no on AIX and OSF/1.
8898 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
8899 # Guess yes otherwise.
8900 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
8902 if test $LOCALE_JA != none; then
8903 if test "$cross_compiling" = yes; then :
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8911 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8913 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8914 included before <wchar.h>. */
8921 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8923 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8927 memset (&state, '\0', sizeof (mbstate_t));
8928 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8929 if (mbsinit (&state))
8935 if ac_fn_c_try_run "$LINENO"; then :
8936 gl_cv_func_mbrtowc_incomplete_state=yes
8938 gl_cv_func_mbrtowc_incomplete_state=no
8940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8941 conftest.$ac_objext conftest.beam conftest.$ac_ext
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
8948 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
8954 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
8955 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8960 # Guess no on Solaris 8.
8961 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
8962 # Guess yes otherwise.
8963 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
8965 if test $LOCALE_ZH_CN != none; then
8966 if test "$cross_compiling" = yes; then :
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8975 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8977 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8978 included before <wchar.h>. */
8985 /* This fails on Solaris 8:
8986 mbrtowc returns 2, and sets wc to 0x00F0.
8987 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
8988 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
8990 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
8994 memset (&state, '\0', sizeof (mbstate_t));
8995 if (mbrtowc (&wc, input + 3, 6, &state) != 4
8996 && mbtowc (&wc, input + 3, 6) == 4)
9002 if ac_fn_c_try_run "$LINENO"; then :
9003 gl_cv_func_mbrtowc_sanitycheck=yes
9005 gl_cv_func_mbrtowc_sanitycheck=no
9007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9008 conftest.$ac_objext conftest.beam conftest.$ac_ext
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9015 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9018 case "$gl_cv_func_mbrtowc_incomplete_state" in
9020 *) REPLACE_MBSTATE_T=1 ;;
9022 case "$gl_cv_func_mbrtowc_sanitycheck" in
9024 *) REPLACE_MBSTATE_T=1 ;;
9038 if test $ac_cv_func_mbrtowc = no; then
9040 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
9041 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9043 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9044 included before <wchar.h>. */
9051 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
9057 cat >>confdefs.h <<_ACEOF
9058 #define HAVE_DECL_MBRTOWC $ac_have_decl
9061 if test $ac_cv_have_decl_mbrtowc = yes; then
9065 if test $REPLACE_MBSTATE_T = 1; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
9072 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
9073 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9078 # Guess no on Solaris.
9079 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
9080 # Guess yes otherwise.
9081 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
9083 if test $LOCALE_FR_UTF8 != none; then
9084 if test "$cross_compiling" = yes; then :
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9093 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9095 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9096 included before <wchar.h>. */
9105 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9107 char input[] = "\303\237er";
9112 memset (&state, '\0', sizeof (mbstate_t));
9113 wc = (wchar_t) 0xBADFACE;
9114 ret = mbrtowc (&wc, input, 5, &state);
9117 if (!mbsinit (&state))
9120 memset (&state, '\0', sizeof (mbstate_t));
9121 ret = mbrtowc (NULL, input, 5, &state);
9122 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
9124 if (!mbsinit (&state))
9130 if ac_fn_c_try_run "$LINENO"; then :
9131 gl_cv_func_mbrtowc_null_arg1=yes
9133 gl_cv_func_mbrtowc_null_arg1=no
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136 conftest.$ac_objext conftest.beam conftest.$ac_ext
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
9143 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
9149 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
9150 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9155 # Guess no on OSF/1.
9156 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
9157 # Guess yes otherwise.
9158 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
9160 if test $LOCALE_FR_UTF8 != none; then
9161 if test "$cross_compiling" = yes; then :
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9169 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9172 included before <wchar.h>. */
9179 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9185 memset (&state, '\0', sizeof (mbstate_t));
9186 wc = (wchar_t) 0xBADFACE;
9187 mbrtowc (&wc, NULL, 5, &state);
9188 /* Check that wc was not modified. */
9189 if (wc != (wchar_t) 0xBADFACE)
9195 if ac_fn_c_try_run "$LINENO"; then :
9196 gl_cv_func_mbrtowc_null_arg2=yes
9198 gl_cv_func_mbrtowc_null_arg2=no
9200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9201 conftest.$ac_objext conftest.beam conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
9208 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
9216 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
9217 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9222 # Guess no on HP-UX, Solaris, native Windows.
9223 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
9224 # Guess yes otherwise.
9225 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
9227 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
9228 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
9229 if test "$cross_compiling" = yes; then :
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9237 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9239 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9240 included before <wchar.h>. */
9248 int found_some_locale = 0;
9249 /* This fails on Solaris. */
9250 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9252 char input[] = "B\303\274\303\237er"; /* "Büßer" */
9256 memset (&state, '\0', sizeof (mbstate_t));
9257 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9260 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
9263 found_some_locale = 1;
9265 /* This fails on HP-UX 11.11. */
9266 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9268 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9272 memset (&state, '\0', sizeof (mbstate_t));
9273 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9276 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
9279 found_some_locale = 1;
9281 /* This fails on native Windows. */
9282 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
9284 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
9288 memset (&state, '\0', sizeof (mbstate_t));
9289 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9292 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9295 found_some_locale = 1;
9297 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
9299 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
9303 memset (&state, '\0', sizeof (mbstate_t));
9304 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9307 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9310 found_some_locale = 1;
9312 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
9314 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
9318 memset (&state, '\0', sizeof (mbstate_t));
9319 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9322 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9325 found_some_locale = 1;
9327 return (found_some_locale ? result : 77);
9330 if ac_fn_c_try_run "$LINENO"; then :
9331 gl_cv_func_mbrtowc_retval=yes
9333 if test $? != 77; then
9334 gl_cv_func_mbrtowc_retval=no
9338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9339 conftest.$ac_objext conftest.beam conftest.$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
9346 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
9352 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
9353 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9358 # Guess no on Solaris 8 and 9.
9359 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
9360 # Guess yes otherwise.
9361 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
9363 if test $LOCALE_ZH_CN != none; then
9364 if test "$cross_compiling" = yes; then :
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9372 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9374 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9375 included before <wchar.h>. */
9382 /* This fails on Solaris 8 and 9. */
9383 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9388 memset (&state, '\0', sizeof (mbstate_t));
9389 if (mbrtowc (&wc, "", 1, &state) != 0)
9395 if ac_fn_c_try_run "$LINENO"; then :
9396 gl_cv_func_mbrtowc_nul_retval=yes
9398 gl_cv_func_mbrtowc_nul_retval=no
9400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9401 conftest.$ac_objext conftest.beam conftest.$ac_ext
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
9408 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
9410 case "$gl_cv_func_mbrtowc_null_arg1" in
9413 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
9418 case "$gl_cv_func_mbrtowc_null_arg2" in
9421 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
9426 case "$gl_cv_func_mbrtowc_retval" in
9429 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
9434 case "$gl_cv_func_mbrtowc_nul_retval" in
9437 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
9445 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
9454 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
9471 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
9498 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9503 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9504 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9509 # Guess no on AIX and OSF/1.
9510 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9511 # Guess yes otherwise.
9512 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9514 if test $LOCALE_JA != none; then
9515 if test "$cross_compiling" = yes; then :
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9523 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9525 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9526 included before <wchar.h>. */
9533 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9535 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9539 memset (&state, '\0', sizeof (mbstate_t));
9540 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9541 if (mbsinit (&state))
9547 if ac_fn_c_try_run "$LINENO"; then :
9548 gl_cv_func_mbrtowc_incomplete_state=yes
9550 gl_cv_func_mbrtowc_incomplete_state=no
9552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9553 conftest.$ac_objext conftest.beam conftest.$ac_ext
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9560 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9566 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9567 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9572 # Guess no on Solaris 8.
9573 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9574 # Guess yes otherwise.
9575 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9577 if test $LOCALE_ZH_CN != none; then
9578 if test "$cross_compiling" = yes; then :
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9587 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9589 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9590 included before <wchar.h>. */
9597 /* This fails on Solaris 8:
9598 mbrtowc returns 2, and sets wc to 0x00F0.
9599 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9600 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9602 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9606 memset (&state, '\0', sizeof (mbstate_t));
9607 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9608 && mbtowc (&wc, input + 3, 6) == 4)
9614 if ac_fn_c_try_run "$LINENO"; then :
9615 gl_cv_func_mbrtowc_sanitycheck=yes
9617 gl_cv_func_mbrtowc_sanitycheck=no
9619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9620 conftest.$ac_objext conftest.beam conftest.$ac_ext
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9627 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9630 case "$gl_cv_func_mbrtowc_incomplete_state" in
9632 *) REPLACE_MBSTATE_T=1 ;;
9634 case "$gl_cv_func_mbrtowc_sanitycheck" in
9636 *) REPLACE_MBSTATE_T=1 ;;
9650 if test $ac_cv_func_mbsinit = no; then
9652 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
9653 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9655 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9656 included before <wchar.h>. */
9663 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
9669 cat >>confdefs.h <<_ACEOF
9670 #define HAVE_DECL_MBSINIT $ac_have_decl
9673 if test $ac_cv_have_decl_mbsinit = yes; then
9677 if test $REPLACE_MBSTATE_T = 1; then
9681 mingw*) REPLACE_MBSINIT=1 ;;
9686 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
9695 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
9712 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
9738 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9743 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9744 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9749 # Guess no on AIX and OSF/1.
9750 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9751 # Guess yes otherwise.
9752 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9754 if test $LOCALE_JA != none; then
9755 if test "$cross_compiling" = yes; then :
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9763 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9765 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9766 included before <wchar.h>. */
9773 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9775 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9779 memset (&state, '\0', sizeof (mbstate_t));
9780 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9781 if (mbsinit (&state))
9787 if ac_fn_c_try_run "$LINENO"; then :
9788 gl_cv_func_mbrtowc_incomplete_state=yes
9790 gl_cv_func_mbrtowc_incomplete_state=no
9792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9793 conftest.$ac_objext conftest.beam conftest.$ac_ext
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9800 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9806 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9807 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9812 # Guess no on Solaris 8.
9813 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9814 # Guess yes otherwise.
9815 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9817 if test $LOCALE_ZH_CN != none; then
9818 if test "$cross_compiling" = yes; then :
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9827 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9829 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9830 included before <wchar.h>. */
9837 /* This fails on Solaris 8:
9838 mbrtowc returns 2, and sets wc to 0x00F0.
9839 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9840 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9842 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9846 memset (&state, '\0', sizeof (mbstate_t));
9847 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9848 && mbtowc (&wc, input + 3, 6) == 4)
9854 if ac_fn_c_try_run "$LINENO"; then :
9855 gl_cv_func_mbrtowc_sanitycheck=yes
9857 gl_cv_func_mbrtowc_sanitycheck=no
9859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9860 conftest.$ac_objext conftest.beam conftest.$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9867 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9870 case "$gl_cv_func_mbrtowc_incomplete_state" in
9872 *) REPLACE_MBSTATE_T=1 ;;
9874 case "$gl_cv_func_mbrtowc_sanitycheck" in
9876 *) REPLACE_MBSTATE_T=1 ;;
9890 if test $ac_cv_func_mbsrtowcs = no; then
9892 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
9893 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9895 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9896 included before <wchar.h>. */
9903 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
9913 if test $ac_cv_have_decl_mbsrtowcs = yes; then
9917 if test $REPLACE_MBSTATE_T = 1; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
9927 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
9928 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
9929 $as_echo_n "(cached) " >&6
9933 # Guess no on HP-UX, Solaris, mingw.
9934 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
9935 # Guess yes otherwise.
9936 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
9938 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
9939 if test "$cross_compiling" = yes; then :
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9947 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9949 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9950 included before <wchar.h>. */
9958 /* Test whether the function supports a NULL destination argument.
9959 This fails on native Windows. */
9960 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
9962 const char input[] = "\337er";
9963 const char *src = input;
9966 memset (&state, '\0', sizeof (mbstate_t));
9967 if (mbsrtowcs (NULL, &src, 1, &state) != 3
9971 /* Test whether the function works when started with a conversion state
9972 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
9973 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9975 const char input[] = "B\303\274\303\237er";
9978 memset (&state, '\0', sizeof (mbstate_t));
9979 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
9980 if (!mbsinit (&state))
9982 const char *src = input + 2;
9983 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
9987 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9989 const char input[] = "<\306\374\313\334\270\354>";
9992 memset (&state, '\0', sizeof (mbstate_t));
9993 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
9994 if (!mbsinit (&state))
9996 const char *src = input + 4;
9997 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
10001 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10003 const char input[] = "B\250\271\201\060\211\070er";
10006 memset (&state, '\0', sizeof (mbstate_t));
10007 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10008 if (!mbsinit (&state))
10010 const char *src = input + 2;
10011 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10018 if ac_fn_c_try_run "$LINENO"; then :
10019 gl_cv_func_mbsrtowcs_works=yes
10021 gl_cv_func_mbsrtowcs_works=no
10023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10024 conftest.$ac_objext conftest.beam conftest.$ac_ext
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
10031 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
10033 case "$gl_cv_func_mbsrtowcs_works" in
10035 *) REPLACE_MBSRTOWCS=1 ;;
10040 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
10049 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
10059 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
10076 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
10081 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
10090 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10093 for ac_header in bp-sym.h
10095 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10096 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10097 cat >>confdefs.h <<_ACEOF
10098 #define HAVE_BP_SYM_H 1
10118 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10124 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
10126 $as_echo_n "checking whether memmem works in linear time... " >&6; }
10127 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10130 if test "$cross_compiling" = yes; then :
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10134 #include <features.h>
10135 #ifdef __GNU_LIBRARY__
10136 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
10137 && !defined __UCLIBC__
10142 #include <cygwin/version.h>
10143 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
10149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10150 $EGREP "Lucky user" >/dev/null 2>&1; then :
10151 gl_cv_func_memmem_works_fast="guessing yes"
10153 gl_cv_func_memmem_works_fast="guessing no"
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10162 #include <signal.h> /* for signal */
10163 #include <string.h> /* for memmem */
10164 #include <stdlib.h> /* for malloc */
10165 #include <unistd.h> /* for alarm */
10166 static void quit (int sig) { exit (sig + 128); }
10173 size_t m = 1000000;
10174 char *haystack = (char *) malloc (2 * m + 1);
10175 char *needle = (char *) malloc (m + 1);
10176 /* Failure to compile this test due to missing alarm is okay,
10177 since all such platforms (mingw) also lack memmem. */
10178 signal (SIGALRM, quit);
10180 /* Check for quadratic performance. */
10181 if (haystack && needle)
10183 memset (haystack, 'A', 2 * m);
10184 haystack[2 * m] = 'B';
10185 memset (needle, 'A', m);
10187 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
10196 if ac_fn_c_try_run "$LINENO"; then :
10197 gl_cv_func_memmem_works_fast=yes
10199 gl_cv_func_memmem_works_fast=no
10201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10202 conftest.$ac_objext conftest.beam conftest.$ac_ext
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
10208 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
10209 case "$gl_cv_func_memmem_works_fast" in
10217 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10226 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10233 for ac_func in memmem
10235 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10236 if test "x$ac_cv_func_memmem" = x""yes; then :
10237 cat >>confdefs.h <<_ACEOF
10238 #define HAVE_MEMMEM 1
10244 if test $ac_cv_func_memmem = yes; then
10256 if test $ac_cv_have_decl_memmem = no; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10260 $as_echo_n "checking whether memmem works... " >&6; }
10261 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10264 if test "$cross_compiling" = yes; then :
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10268 #ifdef __GNU_LIBRARY__
10269 #include <features.h>
10270 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10271 || __GLIBC_MINOR__ > 12)) \
10272 || (__GLIBC__ > 2)) \
10273 || defined __UCLIBC__
10276 #elif defined __CYGWIN__
10277 #include <cygwin/version.h>
10278 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10287 $EGREP "Lucky user" >/dev/null 2>&1; then :
10288 gl_cv_func_memmem_works_always="guessing yes"
10290 gl_cv_func_memmem_works_always="guessing no"
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10299 #include <string.h> /* for memmem */
10300 #define P "_EF_BF_BD"
10301 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10302 #define NEEDLE P P P P P
10309 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10311 /* Check for empty needle behavior. */
10313 const char *haystack = "AAA";
10314 if (memmem (haystack, 3, NULL, 0) != haystack)
10323 if ac_fn_c_try_run "$LINENO"; then :
10324 gl_cv_func_memmem_works_always=yes
10326 gl_cv_func_memmem_works_always=no
10328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10329 conftest.$ac_objext conftest.beam conftest.$ac_ext
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10335 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10336 case "$gl_cv_func_memmem_works_always" in
10345 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10354 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10368 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
10376 # Define two additional variables used in the Makefile substitution.
10378 if test "$ac_cv_header_stdbool_h" = yes; then
10381 STDBOOL_H='stdbool.h'
10384 if test -n "$STDBOOL_H"; then
10385 GL_GENERATE_STDBOOL_H_TRUE=
10386 GL_GENERATE_STDBOOL_H_FALSE='#'
10388 GL_GENERATE_STDBOOL_H_TRUE='#'
10389 GL_GENERATE_STDBOOL_H_FALSE=
10393 if test "$ac_cv_type__Bool" = yes; then
10404 if test $gt_cv_c_wchar_t = no; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10409 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10410 if test "${gl_cv_decl_null_works+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415 #include <stddef.h>
10416 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10426 if ac_fn_c_try_compile "$LINENO"; then :
10427 gl_cv_decl_null_works=yes
10429 gl_cv_decl_null_works=no
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10434 $as_echo "$gl_cv_decl_null_works" >&6; }
10435 if test $gl_cv_decl_null_works = no; then
10440 if test -n "$STDDEF_H"; then
10441 GL_GENERATE_STDDEF_H_TRUE=
10442 GL_GENERATE_STDDEF_H_FALSE='#'
10444 GL_GENERATE_STDDEF_H_TRUE='#'
10445 GL_GENERATE_STDDEF_H_FALSE=
10448 if test -n "$STDDEF_H"; then
10457 if test $gl_cv_have_include_next = yes; then
10458 gl_cv_next_stddef_h='<'stddef.h'>'
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10461 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10462 if test "${gl_cv_next_stddef_h+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 #include <stddef.h>
10472 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10473 *) gl_absname_cpp="$ac_cpp" ;;
10478 gl_dirsep_regex='[/\\]'
10481 gl_dirsep_regex='\/'
10484 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10486 gl_header_literal_regex=`echo 'stddef.h' \
10487 |
sed -e "$gl_make_literal_regex_sed"`
10488 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10489 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10494 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10495 sed -n "$gl_absolute_header_sed"`'"'
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10500 $as_echo "$gl_cv_next_stddef_h" >&6; }
10502 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10504 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10506 gl_next_as_first_directive='<'stddef.h'>'
10508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10509 gl_next_as_first_directive=$gl_cv_next_stddef_h
10511 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10540 if test $gl_cv_have_include_next = yes; then
10541 gl_cv_next_wchar_h='<'wchar.h'>'
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
10544 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
10545 if test "${gl_cv_next_wchar_h+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10549 if test $ac_cv_header_wchar_h = yes; then
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10558 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10559 *) gl_absname_cpp="$ac_cpp" ;;
10564 gl_dirsep_regex='[/\\]'
10567 gl_dirsep_regex='\/'
10570 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10572 gl_header_literal_regex=`echo 'wchar.h' \
10573 |
sed -e "$gl_make_literal_regex_sed"`
10574 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10575 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10580 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10581 sed -n "$gl_absolute_header_sed"`'"'
10583 gl_cv_next_wchar_h='<'wchar.h'>'
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
10589 $as_echo "$gl_cv_next_wchar_h" >&6; }
10591 NEXT_WCHAR_H=$gl_cv_next_wchar_h
10593 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10595 gl_next_as_first_directive='<'wchar.h'>'
10597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10598 gl_next_as_first_directive=$gl_cv_next_wchar_h
10600 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
10605 if test $ac_cv_header_wchar_h = yes; then
10615 if test $gt_cv_c_wint_t = yes; then
10623 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
10624 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10626 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10627 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10628 $as_echo_n "(cached) " >&6
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10633 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10635 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10636 included before <wchar.h>. */
10637 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10638 # include <stddef.h>
10639 # include <stdio.h>
10653 if ac_fn_c_try_compile "$LINENO"; then :
10654 eval "$as_gl_Symbol=yes"
10656 eval "$as_gl_Symbol=no"
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 eval ac_res=\$$as_gl_Symbol
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10662 $as_echo "$ac_res" >&6; }
10663 eval as_val=\$$as_gl_Symbol
10664 if test "x$as_val" = x""yes; then :
10665 cat >>confdefs.h <<_ACEOF
10666 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
10669 eval ac_cv_have_decl_$gl_func=yes
10685 if test $ac_cv_func_iswcntrl = yes; then
10693 if test $gt_cv_c_wint_t = yes; then
10715 if test $gl_cv_have_include_next = yes; then
10716 gl_cv_next_wctype_h='<'wctype.h'>'
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
10719 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
10720 if test "${gl_cv_next_wctype_h+set}" = set; then :
10721 $as_echo_n "(cached) " >&6
10724 if test $ac_cv_header_wctype_h = yes; then
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #include <wctype.h>
10733 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10734 *) gl_absname_cpp="$ac_cpp" ;;
10739 gl_dirsep_regex='[/\\]'
10742 gl_dirsep_regex='\/'
10745 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10747 gl_header_literal_regex=`echo 'wctype.h' \
10748 |
sed -e "$gl_make_literal_regex_sed"`
10749 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10750 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10755 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10756 sed -n "$gl_absolute_header_sed"`'"'
10758 gl_cv_next_wctype_h='<'wctype.h'>'
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
10764 $as_echo "$gl_cv_next_wctype_h" >&6; }
10766 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
10768 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10770 gl_next_as_first_directive='<'wctype.h'>'
10772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10773 gl_next_as_first_directive=$gl_cv_next_wctype_h
10775 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
10780 if test $ac_cv_header_wctype_h = yes; then
10781 if test $ac_cv_func_iswcntrl = yes; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
10783 $as_echo_n "checking whether iswcntrl works... " >&6; }
10784 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10788 if test "$cross_compiling" = yes; then :
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 #include <stdlib.h>
10792 #if __GNU_LIBRARY__ == 1
10793 Linux libc5 i18n is broken.
10803 if ac_fn_c_try_compile "$LINENO"; then :
10804 gl_cv_func_iswcntrl_works="guessing yes"
10806 gl_cv_func_iswcntrl_works="guessing no"
10808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10814 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10815 included before <wchar.h>.
10816 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10817 must be included before <wchar.h>. */
10818 #include <stddef.h>
10822 #include <wctype.h>
10823 int main () { return iswprint ('x') == 0; }
10826 if ac_fn_c_try_run "$LINENO"; then :
10827 gl_cv_func_iswcntrl_works=yes
10829 gl_cv_func_iswcntrl_works=no
10831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10832 conftest.$ac_objext conftest.beam conftest.$ac_ext
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
10838 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
10846 case "$gl_cv_func_iswcntrl_works" in
10847 *yes) REPLACE_ISWCNTRL=0 ;;
10848 *) REPLACE_ISWCNTRL=1 ;;
10852 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
10856 if test $REPLACE_ISWCNTRL = 1; then
10859 for ac_func in towlower
10861 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
10862 if test "x$ac_cv_func_towlower" = x""yes; then :
10863 cat >>confdefs.h <<_ACEOF
10864 #define HAVE_TOWLOWER 1
10870 if test $ac_cv_func_towlower = yes; then
10873 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10874 included before <wchar.h>.
10875 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10876 must be included before <wchar.h>. */
10877 #include <stddef.h>
10882 # include <wctype.h>
10886 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
10892 cat >>confdefs.h <<_ACEOF
10893 #define HAVE_DECL_TOWLOWER $ac_have_decl
10896 if test $ac_cv_have_decl_towlower = yes; then
10905 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
10910 $as_echo_n "checking for wctype_t... " >&6; }
10911 if test "${gl_cv_type_wctype_t+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10917 included before <wchar.h>.
10918 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10919 must be included before <wchar.h>. */
10920 #include <stddef.h>
10925 # include <wctype.h>
10937 if ac_fn_c_try_compile "$LINENO"; then :
10938 gl_cv_type_wctype_t=yes
10940 gl_cv_type_wctype_t=no
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
10946 $as_echo "$gl_cv_type_wctype_t" >&6; }
10947 if test $gl_cv_type_wctype_t = no; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
10952 $as_echo_n "checking for wctrans_t... " >&6; }
10953 if test "${gl_cv_type_wctrans_t+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10959 included before <wchar.h>.
10960 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10961 must be included before <wchar.h>. */
10962 #include <stddef.h>
10966 #include <wctype.h>
10977 if ac_fn_c_try_compile "$LINENO"; then :
10978 gl_cv_type_wctrans_t=yes
10980 gl_cv_type_wctrans_t=no
10982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
10986 $as_echo "$gl_cv_type_wctrans_t" >&6; }
10987 if test $gl_cv_type_wctrans_t = no; then
10992 for gl_func in wctype iswctype wctrans towctrans ; do
10993 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10995 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10996 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10997 $as_echo_n "(cached) " >&6
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11004 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11005 included before <wchar.h>. */
11006 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11007 # include <stddef.h>
11008 # include <stdio.h>
11010 # include <wchar.h>
11012 #include <wctype.h>
11023 if ac_fn_c_try_compile "$LINENO"; then :
11024 eval "$as_gl_Symbol=yes"
11026 eval "$as_gl_Symbol=no"
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 eval ac_res=\$$as_gl_Symbol
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11032 $as_echo "$ac_res" >&6; }
11033 eval as_val=\$$as_gl_Symbol
11034 if test "x$as_val" = x""yes; then :
11035 cat >>confdefs.h <<_ACEOF
11036 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11039 eval ac_cv_have_decl_$gl_func=yes
11044 # End of code from modules
11065 gl_source_base='tests'
11066 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
11068 gl_module_indicator_condition=$gltests_WITNESS
11078 LIBGNU_LIBDEPS="$gl_libdeps"
11080 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11084 # We don't use automake, but gnulib does. This line lets us generate
11086 am__api_version='1.11'
11088 # Find a good install program. We prefer a C program (faster),
11089 # so one script is as good as another. But avoid the broken or
11090 # incompatible versions:
11091 # SysV /etc/install, /usr/sbin/install
11092 # SunOS /usr/etc/install
11093 # IRIX /sbin/install
11095 # AmigaOS /C/install, which installs bootblocks on floppy discs
11096 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11097 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11098 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11099 # OS/2's system install, which has a completely different semantic
11100 # ./install, which can be erroneously created by make from ./install.sh.
11101 # Reject install programs that cannot install multiple files.
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11103 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11104 if test -z "$INSTALL"; then
11105 if test "${ac_cv_path_install+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11112 test -z "$as_dir" && as_dir=.
11113 # Account for people who put trailing slashes in PATH elements.
11114 case $as_dir/ in #((
11115 ./ | .// | /[cC]/* | \
11116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11117 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11120 # OSF1 and SCO ODT 3.0 have their own names for install.
11121 # Don't use installbsd from OSF since it installs stuff as root
11123 for ac_prog in ginstall scoinst install; do
11124 for ac_exec_ext in '' $ac_executable_extensions; do
11125 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11126 if test $ac_prog = install &&
11127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11128 # AIX install. It has an incompatible calling convention.
11130 elif test $ac_prog = install &&
11131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11132 # program-specific install script used by HP pwplus--don't use.
11135 rm -rf conftest.one conftest.two conftest.dir
11136 echo one > conftest.one
11137 echo two > conftest.two
11139 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11140 test -s conftest.one && test -s conftest.two &&
11141 test -s conftest.dir/conftest.one &&
11142 test -s conftest.dir/conftest.two
11144 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11157 rm -rf conftest.one conftest.two conftest.dir
11160 if test "${ac_cv_path_install+set}" = set; then
11161 INSTALL=$ac_cv_path_install
11163 # As a last resort, use the slow shell script. Don't cache a
11164 # value for INSTALL within a source directory, because that will
11165 # break other packages using the cache if that directory is
11166 # removed, or if the value is a relative name.
11167 INSTALL=$ac_install_sh
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11171 $as_echo "$INSTALL" >&6; }
11173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11174 # It thinks the first close brace ends the variable substitution.
11175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11177 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11179 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11182 $as_echo_n "checking whether build environment is sane... " >&6; }
11185 echo timestamp > conftest.file
11186 # Reject unsafe characters in $srcdir or the absolute working directory
11187 # name. Accept space and tab only in the latter.
11191 *[\\\"\#\$\&\'\`$am_lf]*)
11192 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
11195 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
11196 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11199 # Do `set' in a subshell so we don't clobber the current shell's
11200 # arguments. Must try -L first in case configure is actually a
11201 # symlink; some systems play weird games with the mod time of symlinks
11202 # (eg FreeBSD returns the mod time of the symlink's containing
11205 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11206 if test "$*" = "X"; then
11208 set X
`ls -t "$srcdir/configure" conftest.file`
11210 rm -f conftest.
file
11211 if test "$*" != "X $srcdir/configure conftest.file" \
11212 && test "$*" != "X conftest.file $srcdir/configure"; then
11214 # If neither matched, then we have a broken ls. This can happen
11215 # if, for instance, CONFIG_SHELL is bash and it inherits a
11216 # broken ls alias from the environment. This has actually
11217 # happened. Such a system could not be considered "sane".
11218 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
11219 alias in your environment" "$LINENO" 5
11222 test "$2" = conftest.
file
11228 as_fn_error
"newly created file is older than distributed files!
11229 Check your system clock" "$LINENO" 5
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11232 $as_echo "yes" >&6; }
11233 test "$program_prefix" != NONE
&&
11234 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
11235 # Use a double $ so make ignores it.
11236 test "$program_suffix" != NONE
&&
11237 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
11238 # Double any \ or $.
11239 # By default was `s,x,x', remove it if useless.
11240 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
11241 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
11243 # expand $ac_aux_dir to an absolute path
11244 am_aux_dir
=`cd $ac_aux_dir && pwd`
11246 if test x
"${MISSING+set}" != xset
; then
11247 case $am_aux_dir in
11249 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
11251 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
11254 # Use eval to expand $SHELL
11255 if eval "$MISSING --run true"; then
11256 am_missing_run
="$MISSING --run "
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11260 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11263 if test x
"${install_sh}" != xset
; then
11264 case $am_aux_dir in
11266 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
11268 install_sh
="\${SHELL} $am_aux_dir/install-sh"
11272 # Installed binaries are usually stripped using `strip' when the user
11273 # run `make install-strip'. However `strip' might not be the right
11274 # tool to use in cross-compilation environments, therefore Automake
11275 # will honor the `STRIP' environment variable to overrule this program.
11276 if test "$cross_compiling" != no
; then
11277 if test -n "$ac_tool_prefix"; then
11278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11279 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if test "${ac_cv_prog_STRIP+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11285 if test -n "$STRIP"; then
11286 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
11288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11289 for as_dir
in $PATH
11292 test -z "$as_dir" && as_dir
=.
11293 for ac_exec_ext
in '' $ac_executable_extensions; do
11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 STRIP
=$ac_cv_prog_STRIP
11306 if test -n "$STRIP"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11308 $as_echo "$STRIP" >&6; }
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11316 if test -z "$ac_cv_prog_STRIP"; then
11318 # Extract the first word of "strip", so it can be a program name with args.
11319 set dummy strip
; ac_word
=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11325 if test -n "$ac_ct_STRIP"; then
11326 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
11328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11329 for as_dir
in $PATH
11332 test -z "$as_dir" && as_dir
=.
11333 for ac_exec_ext
in '' $ac_executable_extensions; do
11334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11335 ac_cv_prog_ac_ct_STRIP
="strip"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
11346 if test -n "$ac_ct_STRIP"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11348 $as_echo "$ac_ct_STRIP" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11354 if test "x$ac_ct_STRIP" = x
; then
11357 case $cross_compiling:$ac_tool_warned in
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361 ac_tool_warned
=yes ;;
11366 STRIP
="$ac_cv_prog_STRIP"
11370 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11373 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11374 if test -z "$MKDIR_P"; then
11375 if test "${ac_cv_path_mkdir+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11379 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
11382 test -z "$as_dir" && as_dir
=.
11383 for ac_prog
in mkdir gmkdir
; do
11384 for ac_exec_ext
in '' $ac_executable_extensions; do
11385 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
11386 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11387 'mkdir (GNU coreutils) '* | \
11388 'mkdir (coreutils) '* | \
11389 'mkdir (fileutils) '4.1*)
11390 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
11400 if test "${ac_cv_path_mkdir+set}" = set; then
11401 MKDIR_P
="$ac_cv_path_mkdir -p"
11403 # As a last resort, use the slow shell script. Don't cache a
11404 # value for MKDIR_P within a source directory, because that will
11405 # break other packages using the cache if that directory is
11406 # removed, or if the value is a relative name.
11407 test -d .
/--version && rmdir .
/--version
11408 MKDIR_P
="$ac_install_sh -d"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11412 $as_echo "$MKDIR_P" >&6; }
11417 [\\/$
]* | ?
:[\\/]*) ;;
11418 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
11421 for ac_prog
in gawk mawk nawk
awk
11423 # Extract the first word of "$ac_prog", so it can be a program name with args.
11424 set dummy
$ac_prog; ac_word
=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if test "${ac_cv_prog_AWK+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11430 if test -n "$AWK"; then
11431 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
11433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11434 for as_dir
in $PATH
11437 test -z "$as_dir" && as_dir
=.
11438 for ac_exec_ext
in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_prog_AWK
="$ac_prog"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 AWK
=$ac_cv_prog_AWK
11451 if test -n "$AWK"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11453 $as_echo "$AWK" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11460 test -n "$AWK" && break
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11464 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11466 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11467 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11468 $as_echo_n "(cached) " >&6
11470 cat >conftest.
make <<\_ACEOF
11473 @
echo '@@@%%%=$(MAKE)=@@@%%%'
11475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11476 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11477 *@@@
%%%=?
*=@@@
%%%*)
11478 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
11480 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
11482 rm -f conftest.
make
11484 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 SET_MAKE
="MAKE=${MAKE-make}"
11494 rm -rf .tst
2>/dev
/null
11495 mkdir .tst
2>/dev
/null
11496 if test -d .tst
; then
11501 rmdir .tst
2>/dev
/null
11503 DEPDIR
="${am__leading_dot}deps"
11505 ac_config_commands
="$ac_config_commands depfiles"
11508 am_make
=${MAKE-make}
11509 cat > confinc
<< 'END'
11511 @
echo this is the am__doit target
11514 # If we don't find an include directive, just comment out the code.
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11516 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11520 # First try GNU make style include.
11521 echo "include confinc" > confmf
11522 # Ignore all kinds of additional output from `make'.
11523 case `$am_make -s -f confmf 2> /dev/null` in #(
11524 *the\ am__doit\ target
*)
11525 am__include
=include
11530 # Now try BSD make style include.
11531 if test "$am__include" = "#"; then
11532 echo '.include "confinc"' > confmf
11533 case `$am_make -s -f confmf 2> /dev/null` in #(
11534 *the\ am__doit\ target
*)
11535 am__include
=.include
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11544 $as_echo "$_am_result" >&6; }
11545 rm -f confinc confmf
11547 # Check whether --enable-dependency-tracking was given.
11548 if test "${enable_dependency_tracking+set}" = set; then :
11549 enableval
=$enable_dependency_tracking;
11552 if test "x$enable_dependency_tracking" != xno
; then
11553 am_depcomp
="$ac_aux_dir/depcomp"
11556 if test "x$enable_dependency_tracking" != xno; then
11565 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11566 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11567 # is not polluted with repeated "-I."
11568 am__isrc
=' -I$(srcdir)'
11569 # test to see if srcdir already configured
11570 if test -f $srcdir/config.status
; then
11571 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11575 # test whether we have cygpath
11576 if test -z "$CYGPATH_W"; then
11577 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
11578 CYGPATH_W
='cygpath -w'
11585 # Define the identity of the package.
11587 VERSION
=UNUSED-VERSION
11590 # Some tools Automake needs.
11592 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11595 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
11598 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11601 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
11604 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
11606 # We need awk for the "check" target. The system "awk" is bad on
11608 # Always define AMTAR for backward compatibility.
11610 AMTAR
=${AMTAR-"${am_missing_run}tar"}
11612 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
11617 depcc
="$CC" am_compiler_list
=
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11620 $as_echo_n "checking dependency style of $depcc... " >&6; }
11621 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11622 $as_echo_n "(cached) " >&6
11624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11625 # We make a subdir and do the tests there. Otherwise we can end up
11626 # making bogus files that we don't know about and never remove. For
11627 # instance it was reported that on HP-UX the gcc test will end up
11628 # making a dummy file named `D' -- because `-MD' means `put the output
11631 # Copy depcomp to subdir because otherwise we won't find it if we're
11632 # using a relative directory.
11633 cp "$am_depcomp" conftest.dir
11635 # We will build objects and dependencies in a subdirectory because
11636 # it helps to detect inapplicable dependency modes. For instance
11637 # both Tru64's cc and ICC support -MD to output dependencies as a
11638 # side effect of compilation, but ICC will put the dependencies in
11639 # the current directory while Tru64 will put them in the object
11643 am_cv_CC_dependencies_compiler_type
=none
11644 if test "$am_compiler_list" = ""; then
11645 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11647 am__universal
=false
11648 case " $depcc " in #(
11649 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
11652 for depmode
in $am_compiler_list; do
11653 # Setup a source with many dependencies, because some compilers
11654 # like to wrap large dependency lists on column 80 (with \), and
11655 # we should not choose a depcomp mode which is confused by this.
11657 # We need to recreate these files for each test, as the compiler may
11658 # overwrite some of them when testing with obscure command lines.
11659 # This happens at least with the AIX C compiler.
11661 for i
in 1 2 3 4 5 6; do
11662 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11663 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11664 # Solaris 8's {/usr,}/bin/sh.
11665 touch sub
/conftst
$i.h
11667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11669 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11670 # mode. It turns out that the SunPro C++ compiler does not properly
11671 # handle `-M -o', and we need to detect this. Also, some Intel
11672 # versions had trouble with output in subdirs
11673 am__obj
=sub
/conftest.
${OBJEXT-o}
11674 am__minus_obj
="-o $am__obj"
11677 # This depmode causes a compiler race in universal mode.
11678 test "$am__universal" = false ||
continue
11681 # after this tag, mechanisms are not by side-effect, so they'll
11682 # only be used when explicitly requested
11683 if test "x$enable_dependency_tracking" = xyes
; then
11689 msvisualcpp | msvcmsys
)
11690 # This compiler won't grok `-c -o', but also, the minuso test has
11691 # not run yet. These depmodes are late enough in the game, and
11692 # so weak that their functioning should not be impacted.
11693 am__obj
=conftest.
${OBJEXT-o}
11698 if depmode
=$depmode \
11699 source=sub
/conftest.c object
=$am__obj \
11700 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11701 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11702 >/dev
/null
2>conftest.err
&&
11703 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11704 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11705 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11706 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11707 # icc doesn't choke on unknown options, it will just issue warnings
11708 # or remarks (even with -Werror). So we grep stderr for any message
11709 # that says an option was ignored or not supported.
11710 # When given -MP, icc 7.0 and 7.1 complain thusly:
11711 # icc: Command line warning: ignoring option '-M'; no argument required
11712 # The diagnosis changed in icc 8.0:
11713 # icc: Command line remark: option '-MP' not supported
11714 if (grep 'ignoring option' conftest.err ||
11715 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11716 am_cv_CC_dependencies_compiler_type
=$depmode
11723 rm -rf conftest.dir
11725 am_cv_CC_dependencies_compiler_type
=none
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11730 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11731 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
11734 test "x$enable_dependency_tracking" != xno \
11735 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
11736 am__fastdepCC_TRUE
=
11737 am__fastdepCC_FALSE
='#'
11739 am__fastdepCC_TRUE
='#'
11740 am__fastdepCC_FALSE
=
11746 # --------------------- #
11747 # Checks for programs. #
11748 # --------------------- #
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11752 $as_echo_n "checking whether ln -s works... " >&6; }
11754 if test "$LN_S" = "ln -s"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 $as_echo "yes" >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11759 $as_echo "no, using $LN_S" >&6; }
11762 if test -n "$ac_tool_prefix"; then
11763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11764 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if test "${ac_cv_prog_RANLIB+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11770 if test -n "$RANLIB"; then
11771 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
11773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11774 for as_dir
in $PATH
11777 test -z "$as_dir" && as_dir
=.
11778 for ac_exec_ext
in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 RANLIB
=$ac_cv_prog_RANLIB
11791 if test -n "$RANLIB"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11793 $as_echo "$RANLIB" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11801 if test -z "$ac_cv_prog_RANLIB"; then
11802 ac_ct_RANLIB
=$RANLIB
11803 # Extract the first word of "ranlib", so it can be a program name with args.
11804 set dummy ranlib
; ac_word
=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11810 if test -n "$ac_ct_RANLIB"; then
11811 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
11813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11814 for as_dir
in $PATH
11817 test -z "$as_dir" && as_dir
=.
11818 for ac_exec_ext
in '' $ac_executable_extensions; do
11819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11820 ac_cv_prog_ac_ct_RANLIB
="ranlib"
11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
11831 if test -n "$ac_ct_RANLIB"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11833 $as_echo "$ac_ct_RANLIB" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11839 if test "x$ac_ct_RANLIB" = x
; then
11842 case $cross_compiling:$ac_tool_warned in
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11846 ac_tool_warned
=yes ;;
11848 RANLIB
=$ac_ct_RANLIB
11851 RANLIB
="$ac_cv_prog_RANLIB"
11855 if test -n "$ac_tool_prefix"; then
11856 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11857 set dummy
${ac_tool_prefix}ar; ac_word
=$2
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859 $as_echo_n "checking for $ac_word... " >&6; }
11860 if test "${ac_cv_prog_AR+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11863 if test -n "$AR"; then
11864 ac_cv_prog_AR
="$AR" # Let the user override the test.
11866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11867 for as_dir
in $PATH
11870 test -z "$as_dir" && as_dir
=.
11871 for ac_exec_ext
in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_prog_AR
="${ac_tool_prefix}ar"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 if test -n "$AR"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11886 $as_echo "$AR" >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11894 if test -z "$ac_cv_prog_AR"; then
11896 # Extract the first word of "ar", so it can be a program name with args.
11897 set dummy
ar; ac_word
=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11903 if test -n "$ac_ct_AR"; then
11904 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
11906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11907 for as_dir
in $PATH
11910 test -z "$as_dir" && as_dir
=.
11911 for ac_exec_ext
in '' $ac_executable_extensions; do
11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913 ac_cv_prog_ac_ct_AR
="ar"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
11924 if test -n "$ac_ct_AR"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11926 $as_echo "$ac_ct_AR" >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11932 if test "x$ac_ct_AR" = x
; then
11935 case $cross_compiling:$ac_tool_warned in
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939 ac_tool_warned
=yes ;;
11944 AR
="$ac_cv_prog_AR"
11948 # ---------------------- #
11949 # Checks for libraries. #
11950 # ---------------------- #
11952 ac_config_files
="$ac_config_files Makefile import/Makefile"
11954 ac_config_commands
="$ac_config_commands default"
11956 cat >confcache
<<\_ACEOF
11957 # This file is a shell script that caches the results of configure
11958 # tests run on this system so they can be shared between configure
11959 # scripts and configure runs, see configure's option --config-cache.
11960 # It is not useful on other systems. If it contains results you don't
11961 # want to keep, you may remove or edit it.
11963 # config.status only pays attention to the cache file if you give it
11964 # the --recheck option to rerun configure.
11966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11968 # following values.
11972 # The following way of writing the cache mishandles newlines in values,
11973 # but we know of no workaround that is simple, portable, and efficient.
11974 # So, we kill variables containing newlines.
11975 # Ultrix sh set writes to stderr and can't be redirected directly,
11976 # and sets the high bit in the cache file unless we assign to the vars.
11978 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11979 eval ac_val
=\$
$ac_var
11983 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11987 _ | IFS | as_nl
) ;; #(
11988 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11989 *) { eval $ac_var=; unset $ac_var;} ;;
11995 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11996 *${as_nl}ac_space
=\
*)
11997 # `set' does not quote correctly, so add quotes: double-quote
11998 # substitution turns \\\\ into \\, and sed turns \\ into \.
12001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12004 # `set' quotes correctly as required by POSIX, so do not add quotes.
12005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12016 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12018 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12019 if test -w "$cache_file"; then
12020 test "x$cache_file" != "x/dev/null" &&
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12022 $as_echo "$as_me: updating cache $cache_file" >&6;}
12023 cat confcache
>$cache_file
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12026 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12031 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12032 # Let make expand exec_prefix.
12033 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12035 DEFS
=-DHAVE_CONFIG_H
12039 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12040 # 1. Remove the extension, and $U if already installed.
12041 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12042 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12044 # will be set to the directory where LIBOBJS objects are built.
12045 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12046 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12048 LIBOBJS
=$ac_libobjs
12050 LTLIBOBJS
=$ac_ltlibobjs
12053 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12054 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
12055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12057 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12058 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
12059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12061 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
12062 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
12063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12065 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
12066 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
12067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12069 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
12070 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
12071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12073 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12074 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12077 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12078 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12084 if test -n "$gl_LIBOBJS"; then
12085 # Remove the extension.
12086 sed_drop_objext
='s/\.o$//;s/\.obj$//'
12087 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12088 gl_libobjs
="$gl_libobjs $i.$ac_objext"
12089 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
12092 gl_LIBOBJS
=$gl_libobjs
12094 gl_LTLIBOBJS
=$gl_ltlibobjs
12100 if test -n "$gltests_LIBOBJS"; then
12101 # Remove the extension.
12102 sed_drop_objext
='s/\.o$//;s/\.obj$//'
12103 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12104 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
12105 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
12108 gltests_LIBOBJS
=$gltests_libobjs
12110 gltests_LTLIBOBJS
=$gltests_ltlibobjs
12113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12114 as_fn_error
"conditional \"AMDEP\" was never defined.
12115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12117 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12118 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
12119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12121 if test -n "$EXEEXT"; then
12123 am__EXEEXT_FALSE
='#'
12125 am__EXEEXT_TRUE
='#'
12130 : ${CONFIG_STATUS=./config.status}
12132 ac_clean_files_save
=$ac_clean_files
12133 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12135 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12137 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12139 # Generated by $as_me.
12140 # Run this file to recreate the current configuration.
12141 # Compiler output produced by configure, useful for debugging
12142 # configure, is in config.log if it exists.
12145 ac_cs_recheck=false
12148 SHELL=\${CONFIG_SHELL-$SHELL}
12151 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12152 ## -------------------- ##
12153 ## M4sh Initialization. ##
12154 ## -------------------- ##
12156 # Be more Bourne compatible
12157 DUALCASE
=1; export DUALCASE
# for MKS sh
12158 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12162 # is contrary to our usage. Disable this feature.
12163 alias -g '${1+"$@"}'='"$@"'
12164 setopt NO_GLOB_SUBST
12166 case `(set -o) 2>/dev/null` in #(
12178 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12179 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12182 # Prefer a ksh shell builtin over an external printf program on Solaris,
12183 # but without wasting forks for bash or zsh.
12184 if test -z "$BASH_VERSION$ZSH_VERSION" \
12185 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12186 as_echo='print
-r --'
12187 as_echo_n='print
-rn --'
12188 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12189 as_echo='printf %s
\n'
12190 as_echo_n='printf %s
'
12192 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12193 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12194 as_echo_n='/usr
/ucb
/echo -n'
12196 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12197 as_echo_n_body='eval
12201 expr "X$arg" : "X\\(.*\\)$as_nl";
12202 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12204 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12206 export as_echo_n_body
12207 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12209 export as_echo_body
12210 as_echo='sh
-c $as_echo_body as_echo
'
12213 # The user is always right.
12214 if test "${PATH_SEPARATOR+set}" != set; then
12216 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12217 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12224 # We need space, tab and new line, in precisely that order. Quoting is
12225 # there to prevent editors from complaining about space-tab.
12226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12227 # splitting by setting IFS to empty value.)
12230 # Find who we are. Look in the path if we contain no directory separator.
12232 *[\\/]* ) as_myself=$0 ;;
12233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12237 test -z "$as_dir" && as_dir=.
12238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12244 # We did not find ourselves, most probably we were run as `sh COMMAND'
12245 # in which case we are not to be found in the path.
12246 if test "x$as_myself" = x
; then
12249 if test ! -f "$as_myself"; then
12250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12254 # Unset variables that we do not need and which cause bugs (e.g. in
12255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12256 # suppresses any "Segmentation fault" message there. '((' could
12257 # trigger a bug in pdksh 5.2.14.
12258 for as_var
in BASH_ENV ENV MAIL MAILPATH
12259 do eval test x\
${$as_var+set} = xset \
12260 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12273 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12276 # as_fn_error ERROR [LINENO LOG_FD]
12277 # ---------------------------------
12278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12280 # script with status $?, using 1 if that was 0.
12283 as_status
=$?
; test $as_status -eq 0 && as_status
=1
12285 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12288 $as_echo "$as_me: error: $1" >&2
12289 as_fn_exit
$as_status
12293 # as_fn_set_status STATUS
12294 # -----------------------
12295 # Set $? to STATUS, without forking.
12296 as_fn_set_status
()
12299 } # as_fn_set_status
12301 # as_fn_exit STATUS
12302 # -----------------
12303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12307 as_fn_set_status
$1
12313 # Portably unset VAR.
12316 { eval $1=; unset $1;}
12318 as_unset
=as_fn_unset
12319 # as_fn_append VAR VALUE
12320 # ----------------------
12321 # Append the text in VALUE to the end of the definition contained in VAR. Take
12322 # advantage of any shell optimizations that allow amortized linear growth over
12323 # repeated appends, instead of the typical quadratic growth present in naive
12325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12326 eval 'as_fn_append ()
12337 # as_fn_arith ARG...
12338 # ------------------
12339 # Perform arithmetic evaluation on the ARGs, and store the result in the
12340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12341 # must be portable across $(()) and expr.
12342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12343 eval 'as_fn_arith ()
12350 as_val
=`expr "$@" || test $? -eq 1`
12355 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12356 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12362 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12363 as_basename
=basename
12368 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12374 as_me
=`$as_basename -- "$0" ||
12375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12376 X"$0" : 'X\(//\)$' \| \
12377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12379 sed '/^.*\/\([^/][^/]*\)\/*$/{
12393 # Avoid depending upon Character Ranges.
12394 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12395 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12396 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12397 as_cr_digits
='0123456789'
12398 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12400 ECHO_C
= ECHO_N
= ECHO_T
=
12401 case `echo -n x` in #(((((
12403 case `echo 'xy\c'` in
12404 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12406 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12413 rm -f conf$$ conf$$.exe conf$$.
file
12414 if test -d conf$$.dir
; then
12415 rm -f conf$$.dir
/conf$$.
file
12418 mkdir conf$$.dir
2>/dev
/null
12420 if (echo >conf$$.
file) 2>/dev
/null
; then
12421 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12423 # ... but there are two gotchas:
12424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12426 # In both cases, we have to default to `cp -p'.
12427 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12429 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12437 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12438 rmdir conf$$.dir
2>/dev
/null
12443 # Create "$as_dir" as a directory, including parents if necessary.
12448 -*) as_dir
=.
/$as_dir;;
12450 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12454 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12455 *) as_qdir
=$as_dir;;
12457 as_dirs
="'$as_qdir' $as_dirs"
12458 as_dir
=`$as_dirname -- "$as_dir" ||
12459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460 X"$as_dir" : 'X\(//\)[^/]' \| \
12461 X"$as_dir" : 'X\(//\)$' \| \
12462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12463 $as_echo X"$as_dir" |
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12468 /^X\(\/\/\)[^/].*/{
12481 test -d "$as_dir" && break
12483 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12484 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
12488 if mkdir
-p .
2>/dev
/null
; then
12489 as_mkdir_p
='mkdir -p "$as_dir"'
12491 test -d .
/-p && rmdir .
/-p
12495 if test -x / >/dev
/null
2>&1; then
12496 as_test_x
='test -x'
12498 if ls -dL / >/dev
/null
2>&1; then
12505 if test -d "$1"; then
12511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12512 ???[sx]*):;;*)false;;esac;fi
12516 as_executable_p
=$as_test_x
12518 # Sed expression to map a string onto a valid CPP name.
12519 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12521 # Sed expression to map a string onto a valid variable name.
12522 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12526 ## ----------------------------------- ##
12527 ## Main body of $CONFIG_STATUS script. ##
12528 ## ----------------------------------- ##
12530 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12533 # Save the log message, to keep $0 and so on meaningful, and to
12534 # report actual input values of CONFIG_FILES etc. instead of their
12535 # values after options handling.
12537 This file was extended by $as_me, which was
12538 generated by GNU Autoconf 2.64. Invocation command line was
12540 CONFIG_FILES = $CONFIG_FILES
12541 CONFIG_HEADERS = $CONFIG_HEADERS
12542 CONFIG_LINKS = $CONFIG_LINKS
12543 CONFIG_COMMANDS = $CONFIG_COMMANDS
12546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12551 case $ac_config_files in *"
12552 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12555 case $ac_config_headers in *"
12556 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12561 # Files that config.status was made for.
12562 config_files="$ac_config_files"
12563 config_headers="$ac_config_headers"
12564 config_commands="$ac_config_commands"
12568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12570 \`$as_me' instantiates files and other configuration actions
12571 from templates according to the current configuration. Unless the files
12572 and actions are specified as TAGs, all are instantiated by default.
12574 Usage: $0 [OPTION]... [TAG]...
12576 -h, --help print this help, then exit
12577 -V, --version print version number and configuration settings, then exit
12578 -q, --quiet, --silent
12579 do not print progress messages
12580 -d, --debug don't remove temporary files
12581 --recheck update $as_me by reconfiguring in the same conditions
12582 --file=FILE[:TEMPLATE]
12583 instantiate the configuration file FILE
12584 --header=FILE[:TEMPLATE]
12585 instantiate the configuration header FILE
12587 Configuration files:
12590 Configuration headers:
12593 Configuration commands:
12596 Report bugs to the package provider."
12599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12602 configured by $0, generated by GNU Autoconf 2.64,
12603 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12605 Copyright (C) 2009 Free Software Foundation, Inc.
12606 This config.status script is free software; the Free Software Foundation
12607 gives unlimited permission to copy, distribute and modify it."
12614 test -n "\$AWK" || AWK=awk
12617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12618 # The default lists apply if the user does not specify any file.
12624 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12625 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12636 # Handling of the options.
12637 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12639 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12640 $as_echo "$ac_cs_version"; exit ;;
12641 --debug |
--debu |
--deb |
--de |
--d |
-d )
12643 --file |
--fil |
--fi |
--f )
12646 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12648 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12649 ac_need_defaults
=false
;;
12650 --header |
--heade |
--head |
--hea )
12653 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12655 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12656 ac_need_defaults
=false
;;
12658 # Conflict between --help and --header
12659 as_fn_error
"ambiguous option: \`$1'
12660 Try \`$0 --help' for more information.";;
12661 --help |
--hel |
-h )
12662 $as_echo "$ac_cs_usage"; exit ;;
12663 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12664 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12667 # This is an error.
12668 -*) as_fn_error
"unrecognized option: \`$1'
12669 Try \`$0 --help' for more information." ;;
12671 *) as_fn_append ac_config_targets
" $1"
12672 ac_need_defaults
=false
;;
12678 ac_configure_extra_args
=
12680 if $ac_cs_silent; then
12682 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12687 if \$ac_cs_recheck; then
12688 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12690 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12691 CONFIG_SHELL='$SHELL'
12692 export CONFIG_SHELL
12697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12702 ## Running $as_me. ##
12708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12712 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12718 # Handling of arguments.
12719 for ac_config_target
in $ac_config_targets
12721 case $ac_config_target in
12722 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
12723 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
12724 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12725 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
12726 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12728 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12733 # If the user did not use the arguments to specify the items to instantiate,
12734 # then the envvar interface is used. Set only those that are not.
12735 # We use the long form for the default assignment because of an extremely
12736 # bizarre bug on SunOS 4.1.3.
12737 if $ac_need_defaults; then
12738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12743 # Have a temporary directory for convenience. Make it in the build tree
12744 # simply because there is no reason against having it here, and in addition,
12745 # creating and moving files from /tmp can sometimes cause problems.
12746 # Hook for its removal unless debugging.
12747 # Note that there is a small window in which the directory will not be cleaned:
12748 # after its creation but before its name has been assigned to `$tmp'.
12752 trap 'exit_status=$?
12753 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12755 trap 'as_fn_exit 1' 1 2 13 15
12757 # Create a (secure) tmp directory for tmp files.
12760 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12761 test -n "$tmp" && test -d "$tmp"
12764 tmp
=.
/conf$$
-$RANDOM
12765 (umask 077 && mkdir
"$tmp")
12766 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
12768 # Set up the scripts for CONFIG_FILES section.
12769 # No need to generate them if there are no CONFIG_FILES.
12770 # This happens for instance with `./config.status config.h'.
12771 if test -n "$CONFIG_FILES"; then
12774 ac_cr
=`echo X | tr X '\015'`
12775 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12776 # But we know of no other shell where ac_cr would be empty at this
12777 # point, so we can use a bashism as a fallback.
12778 if test "x$ac_cr" = x
; then
12779 eval ac_cr
=\$
\'\\r
\'
12781 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12782 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12785 ac_cs_awk_cr
=$ac_cr
12788 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12793 echo "cat >conf$$subs.awk <<_ACEOF" &&
12794 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12796 } >conf$$subs.sh ||
12797 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12798 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12800 for ac_last_try in false false false false false :; do
12801 . ./conf$$subs.sh ||
12802 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12804 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12805 if test $ac_delim_n = $ac_delim_num; then
12807 elif $ac_last_try; then
12808 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12810 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12813 rm -f conf$$subs.sh
12815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12816 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
12820 s/^/S["/; s
/!.
*/"]=/
12830 s/\(.\{148\}\).*/\1/
12832 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12837 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12844 s/\(.\{148\}\).*/\1/
12846 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12850 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12855 ' <conf$$subs.awk | sed '
12860 ' >>$CONFIG_STATUS || ac_write_fail=1
12861 rm -f conf$$subs.awk
12862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12864 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
12865 for (key in S) S_is_set[key] = 1
12871 nfields = split(line, field, "@
")
12873 len = length(field[1])
12874 for (i = 2; i < nfields; i++) {
12876 keylen = length(key)
12877 if (S_is_set[key]) {
12879 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12880 len += length(value) + length(field[++i])
12891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12893 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12896 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
12897 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
12900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
12902 # trailing colons and then remove the whole line if VPATH becomes empty
12903 # (actually we leave an empty line to preserve line numbers).
12904 if test "x
$srcdir" = x.; then
12905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12906 s/:*\$(srcdir):*/:/
12907 s/:*\${srcdir}:*/:/
12909 s/^\([^=]*=[ ]*\):*/\1/
12915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12916 fi # test -n "$CONFIG_FILES"
12918 # Set up the scripts for CONFIG_HEADERS section.
12919 # No need to generate them if there are no CONFIG_HEADERS.
12920 # This happens for instance with `./config.status Makefile'.
12921 if test -n "$CONFIG_HEADERS"; then
12922 cat >"$tmp/defines.
awk" <<\_ACAWK ||
12926 # Transform confdefs.h into an awk script `defines.awk', embedded as
12927 # here-document in config.status, that substitutes the proper values into
12928 # config.h.in to produce config.h.
12930 # Create a delimiter string that does not exist in confdefs.h, to ease
12931 # handling of long lines.
12933 for ac_last_try in false false :; do
12934 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
12935 if test -z "$ac_t"; then
12937 elif $ac_last_try; then
12938 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
12940 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12944 # For the awk script, D is an array of macro values keyed by name,
12945 # likewise P contains macro parameters if any. Preserve backslash
12946 # newline sequences.
12948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12950 s/.\{148\}/&'"$ac_delim"'/g
12953 s/^[ ]*#[ ]*define[ ][ ]*/ /
12960 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12962 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12967 D["\
1"]=" \
3\\\\\\n
"\\/p
12969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12974 s/.\{148\}/&'"$ac_delim"'/g
12979 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12982 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12984 ' <confdefs.h | sed '
12985 s/'"$ac_delim"'/"\\\
12986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12989 for (key in D) D_is_set[key] = 1
12992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12994 split(line, arg, " ")
12995 if (arg[1] == "#") {
12999 defundef
= substr
(arg
[1], 2)
13002 split(mac1
, mac2
, "(") #)
13004 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13005 if (D_is_set
[macro
]) {
13006 # Preserve the white space surrounding the "#".
13007 print prefix
"define", macro P
[macro
] D
[macro
]
13010 # Replace #undef with comments. This is necessary, for example,
13011 # in the case of _POSIX_SOURCE, which is predefined and required
13012 # on some systems where configure will not decide to define it.
13013 if (defundef
== "undef") {
13014 print
"/*", prefix defundef
, macro
, "*/"
13022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13023 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
13024 fi # test -n "$CONFIG_HEADERS"
13027 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13032 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13034 case $ac_mode$ac_tag in
13036 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13037 :[FH
]-) ac_tag
=-:-;;
13038 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13055 -) ac_f
="$tmp/stdin";;
13056 *) # Look for the file first in the build tree, then in the source tree
13057 # (if the path is not absolute). The absolute path cannot be DOS-style,
13058 # because $ac_f cannot contain `:'.
13062 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13064 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
13066 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13067 as_fn_append ac_file_inputs
" '$ac_f'"
13070 # Let's still pretend it is `configure' which instantiates (i.e., don't
13071 # use $as_me), people would be surprised to read:
13072 # /* config.h. Generated by config.status. */
13073 configure_input
='Generated from '`
13074 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13076 if test x
"$ac_file" != x-
; then
13077 configure_input
="$ac_file. $configure_input"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13079 $as_echo "$as_me: creating $ac_file" >&6;}
13081 # Neutralize special characters interpreted by sed in replacement strings.
13082 case $configure_input in #(
13083 *\
&* |
*\|
* |
*\\* )
13084 ac_sed_conf_input
=`$as_echo "$configure_input" |
13085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13086 *) ac_sed_conf_input
=$configure_input;;
13090 *:-:* |
*:-) cat >"$tmp/stdin" \
13091 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
13096 ac_dir
=`$as_dirname -- "$ac_file" ||
13097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13098 X"$ac_file" : 'X\(//\)[^/]' \| \
13099 X"$ac_file" : 'X\(//\)$' \| \
13100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13101 $as_echo X"$ac_file" |
13102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13106 /^X\(\/\/\)[^/].*/{
13119 as_dir
="$ac_dir"; as_fn_mkdir_p
13123 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13125 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13126 # A ".." for each directory in $ac_dir_suffix.
13127 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13128 case $ac_top_builddir_sub in
13129 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13130 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13133 ac_abs_top_builddir
=$ac_pwd
13134 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13135 # for backward compatibility:
13136 ac_top_builddir
=$ac_top_build_prefix
13139 .
) # We are building in place.
13141 ac_top_srcdir
=$ac_top_builddir_sub
13142 ac_abs_top_srcdir
=$ac_pwd ;;
13143 [\\/]* | ?
:[\\/]* ) # Absolute name.
13144 ac_srcdir
=$srcdir$ac_dir_suffix;
13145 ac_top_srcdir
=$srcdir
13146 ac_abs_top_srcdir
=$srcdir ;;
13147 *) # Relative name.
13148 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13149 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13150 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13152 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13162 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13163 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13165 ac_MKDIR_P
=$MKDIR_P
13167 [\\/$
]* | ?
:[\\/]* ) ;;
13168 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13173 # If the template does not know about datarootdir, expand it.
13174 # FIXME: This hack should be removed a few years after 2.60.
13175 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13187 *datarootdir
*) ac_datarootdir_seen
=yes;;
13188 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13193 ac_datarootdir_hack='
13194 s&@datadir@&$datadir&g
13195 s&@docdir@&$docdir&g
13196 s&@infodir@&$infodir&g
13197 s&@localedir@&$localedir&g
13198 s&@mandir@&$mandir&g
13199 s&\\\${datarootdir}&$datarootdir&g' ;;
13203 # Neutralize VPATH when `$srcdir' = `.'.
13204 # Shell code in configure.ac might set extrasub.
13205 # FIXME: do we really want to maintain this feature?
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 ac_sed_extra="$ac_vpsub
13210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13212 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13213 s|@configure_input@|
$ac_sed_conf_input|
;t t
13214 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13215 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13216 s
&@srcdir@
&$ac_srcdir&;t t
13217 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13218 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13219 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13220 s
&@builddir@
&$ac_builddir&;t t
13221 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13222 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13223 s
&@INSTALL@
&$ac_INSTALL&;t t
13224 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13225 $ac_datarootdir_hack
13227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13228 || as_fn_error "could not create
$ac_file" "$LINENO" 5
13230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13234 which seems to be undefined. Please make sure it is defined." >&5
13235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13236 which seems to be undefined. Please make sure it is defined." >&2;}
13240 -) cat "$tmp/out" && rm -f "$tmp/out";;
13241 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13243 || as_fn_error "could not create $ac_file" "$LINENO" 5
13249 if test x"$ac_file" != x-; then
13251 $as_echo "/* $configure_input */" \
13252 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13253 } >"$tmp/config.h" \
13254 || as_fn_error "could not create $ac_file" "$LINENO" 5
13255 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13260 mv "$tmp/config.h" "$ac_file" \
13261 || as_fn_error "could not create $ac_file" "$LINENO" 5
13264 $as_echo "/* $configure_input */" \
13265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13266 || as_fn_error "could not create -" "$LINENO" 5
13268 # Compute "$ac_file"'s index
in $config_headers.
13271 for _am_header
in $config_headers :; do
13272 case $_am_header in
13273 $_am_arg |
$_am_arg:* )
13276 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13279 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13280 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13281 X"$_am_arg" : 'X\(//\)[^/]' \| \
13282 X"$_am_arg" : 'X\(//\)$' \| \
13283 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13284 $as_echo X"$_am_arg" |
13285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13289 /^X\(\/\/\)[^/].*/{
13301 s/.*/./; q'`/stamp-h
$_am_stamp_count
13304 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13305 $as_echo "$as_me: executing $ac_file commands" >&6;}
13310 case $ac_file$ac_mode in
13311 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
13312 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13313 # are listed without --file. Let's play safe and only enable the eval
13314 # if we detect the quoting.
13315 case $CONFIG_FILES in
13316 *\'*) eval set x
"$CONFIG_FILES" ;;
13317 *) set x
$CONFIG_FILES ;;
13322 # Strip MF so we end up with the name of the file.
13323 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13324 # Check whether this is an Automake generated Makefile or not.
13325 # We used to match only the files named `Makefile.in', but
13326 # some people rename them; so instead we look at the file content.
13327 # Grep'ing the first line is not enough: some people post-process
13328 # each Makefile.in and add a new line on top of each file to say so.
13329 # Grep'ing the whole file is not good either: AIX grep has a line
13330 # limit of 2048, but all sed's we know have understand at least 4000.
13331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13332 dirpart
=`$as_dirname -- "$mf" ||
13333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13334 X"$mf" : 'X\(//\)[^/]' \| \
13335 X"$mf" : 'X\(//\)$' \| \
13336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13342 /^X\(\/\/\)[^/].*/{
13358 # Extract the definition of DEPDIR, am__include, and am__quote
13359 # from the Makefile without running `make'.
13360 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13361 test -z "$DEPDIR" && continue
13362 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13363 test -z "am__include" && continue
13364 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13365 # When using ansi2knr, U may be empty or an underscore; expand it
13366 U
=`sed -n 's/^U = //p' < "$mf"`
13367 # Find all dependency output files, they are included files with
13368 # $(DEPDIR) in their names. We invoke sed twice because it is the
13369 # simplest approach to changing $(DEPDIR) to its actual value in the
13371 for file in `sed -n "
13372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13374 # Make sure the directory exists.
13375 test -f "$dirpart/$file" && continue
13376 fdir
=`$as_dirname -- "$file" ||
13377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378 X"$file" : 'X\(//\)[^/]' \| \
13379 X"$file" : 'X\(//\)$' \| \
13380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13381 $as_echo X"$file" |
13382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13386 /^X\(\/\/\)[^/].*/{
13399 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
13400 # echo "creating $dirpart/$file"
13401 echo '# dummy' > "$dirpart/$file"
13407 case x
$CONFIG_HEADERS in
13408 xconfig.h
:config.
in)
13419 ac_clean_files
=$ac_clean_files_save
13421 test $ac_write_fail = 0 ||
13422 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
13425 # configure is writing to config.log, and then calls config.status.
13426 # config.status does its own redirection, appending to config.log.
13427 # Unfortunately, on DOS this fails, as config.log is still kept open
13428 # by configure, so config.status won't be able to write to it; its
13429 # output is simply discarded. So we exec the FD to /dev/null,
13430 # effectively closing config.log, so it can be properly (re)opened and
13431 # appended to by config.status. When coming back to configure, we
13432 # need to make the FD available again.
13433 if test "$no_create" != yes; then
13435 ac_config_status_args
=
13436 test "$silent" = yes &&
13437 ac_config_status_args
="$ac_config_status_args --quiet"
13439 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13441 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13442 # would make configure fail if this is the last instruction.
13443 $ac_cs_success || as_fn_exit $?
13445 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13447 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}