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>
592 gl_fnmatch_required=POSIX
594 ac_subst_vars='am__EXEEXT_FALSE
619 INSTALL_STRIP_PROGRAM
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
659 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 HAVE_DECL_LOCALTIME_R
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
717 NEXT_AS_FIRST_DIRECTIVE_STRING_H
719 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
721 GL_GENERATE_STDDEF_H_FALSE
722 GL_GENERATE_STDDEF_H_TRUE
727 GL_GENERATE_STDBOOL_H_FALSE
728 GL_GENERATE_STDBOOL_H_TRUE
898 NEXT_AS_FIRST_DIRECTIVE_MATH_H
900 LOCALCHARSET_TESTS_ENVIRONMENT
902 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
904 UINT64_MAX_EQ_ULONG_MAX
905 UINT32_MAX_LT_UINTMAX_MAX
908 INT64_MAX_EQ_LONG_MAX
909 INT32_MAX_LT_INTMAX_MAX
919 GL_GENERATE_STDINT_H_FALSE
920 GL_GENERATE_STDINT_H_TRUE
929 HAVE_SIGNED_SIG_ATOMIC_T
932 BITSIZEOF_SIG_ATOMIC_T
935 APPLE_UNIVERSAL_BUILD
939 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
944 HAVE_UNSIGNED_LONG_LONG_INT
947 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
953 REPLACE_SIGNBIT_USING_GCC
1022 HAVE_DECL_REMAINDERL
1203 GL_GENERATE_FNMATCH_H_FALSE
1204 GL_GENERATE_FNMATCH_H_TRUE
1207 GL_GENERATE_FLOAT_H_FALSE
1208 GL_GENERATE_FLOAT_H_TRUE
1210 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1213 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1216 PRAGMA_SYSTEM_HEADER
1217 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1240 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1241 UNISTD_H_HAVE_WINSOCK2_H
1262 REPLACE_GETDOMAINNAME
1273 HAVE_DECL_SETHOSTNAME
1274 HAVE_DECL_GETUSERSHELL
1275 HAVE_DECL_GETPAGESIZE
1276 HAVE_DECL_GETLOGIN_R
1277 HAVE_DECL_GETDOMAINNAME
1316 GNULIB_UNISTD_H_SIGPIPE
1317 GNULIB_UNISTD_H_NONBLOCKING
1343 GNULIB_GETDTABLESIZE
1344 GNULIB_GETDOMAINNAME
1362 GL_GENERATE_ALLOCA_H_FALSE
1363 GL_GENERATE_ALLOCA_H_TRUE
1366 GL_COND_LIBTOOL_FALSE
1367 GL_COND_LIBTOOL_TRUE
1394 MAINTAINER_MODE_FALSE
1395 MAINTAINER_MODE_TRUE
1423 program_transform_name
1436 enable_option_checking
1437 enable_maintainer_mode
1438 enable_dependency_tracking
1440 ac_precious_vars='build_alias
1451 # Initialize some variables set by options.
1453 ac_init_version=false
1454 ac_unrecognized_opts=
1455 ac_unrecognized_sep=
1456 # The variables have the same names as the options, with
1457 # dashes changed to underlines.
1458 cache_file=/dev/null
1465 program_transform_name=s,x,x,
1473 # Installation directory options.
1474 # These are left unexpanded so users can "make install exec_prefix=/foo"
1475 # and all the variables that are supposed to be based on exec_prefix
1476 # by default will actually change.
1477 # Use braces instead of parens because sh, perl, etc. also accept them.
1478 # (The list follows the same order as the GNU Coding Standards.)
1479 bindir='${exec_prefix}/bin'
1480 sbindir='${exec_prefix}/sbin'
1481 libexecdir='${exec_prefix}/libexec'
1482 datarootdir='${prefix}/share'
1483 datadir='${datarootdir}'
1484 sysconfdir='${prefix}/etc'
1485 sharedstatedir='${prefix}/com'
1486 localstatedir='${prefix}/var'
1487 includedir='${prefix}/include'
1488 oldincludedir='/usr/include'
1489 docdir='${datarootdir}/doc/${PACKAGE}'
1490 infodir='${datarootdir}/info'
1495 libdir='${exec_prefix}/lib'
1496 localedir='${datarootdir}/locale'
1497 mandir='${datarootdir}/man'
1503 # If the previous option needs an argument, assign it.
1504 if test -n "$ac_prev"; then
1505 eval $ac_prev=\$ac_option
1511 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1515 # Accept the important Cygnus configure options, so we can diagnose typos.
1517 case $ac_dashdash$ac_option in
1521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1524 bindir=$ac_optarg ;;
1526 -build | --build | --buil | --bui | --bu)
1527 ac_prev=build_alias ;;
1528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1529 build_alias=$ac_optarg ;;
1531 -cache-file | --cache-file | --cache-fil | --cache-fi \
1532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1533 ac_prev=cache_file ;;
1534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1536 cache_file=$ac_optarg ;;
1538 --config-cache | -C)
1539 cache_file=config.cache ;;
1541 -datadir | --datadir | --datadi | --datad)
1543 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1544 datadir=$ac_optarg ;;
1546 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1547 | --dataroo | --dataro | --datar)
1548 ac_prev=datarootdir ;;
1549 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1550 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1551 datarootdir=$ac_optarg ;;
1553 -disable-* | --disable-*)
1554 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1555 # Reject names that are not valid shell variable names.
1556 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1557 as_fn_error "invalid feature name: $ac_useropt"
1558 ac_useropt_orig=$ac_useropt
1559 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1560 case $ac_user_opts in
1562 "enable_$ac_useropt"
1564 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1565 ac_unrecognized_sep=', ';;
1567 eval enable_$ac_useropt=no ;;
1569 -docdir | --docdir | --docdi | --doc | --do)
1571 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1572 docdir=$ac_optarg ;;
1574 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1576 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1577 dvidir=$ac_optarg ;;
1579 -enable-* | --enable-*)
1580 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583 as_fn_error "invalid feature name: $ac_useropt"
1584 ac_useropt_orig=$ac_useropt
1585 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1588 "enable_$ac_useropt"
1590 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1591 ac_unrecognized_sep=', ';;
1593 eval enable_$ac_useropt=\$ac_optarg ;;
1595 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1596 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1597 | --exec | --exe | --ex)
1598 ac_prev=exec_prefix ;;
1599 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1600 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1601 | --exec=* | --exe=* | --ex=*)
1602 exec_prefix=$ac_optarg ;;
1604 -gas | --gas | --ga | --g)
1605 # Obsolete; use --with-gas.
1608 -help | --help | --hel | --he | -h)
1609 ac_init_help=long ;;
1610 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1611 ac_init_help=recursive ;;
1612 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1613 ac_init_help=short ;;
1615 -host | --host | --hos | --ho)
1616 ac_prev=host_alias ;;
1617 -host=* | --host=* | --hos=* | --ho=*)
1618 host_alias=$ac_optarg ;;
1620 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1622 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1624 htmldir=$ac_optarg ;;
1626 -includedir | --includedir | --includedi | --included | --include \
1627 | --includ | --inclu | --incl | --inc)
1628 ac_prev=includedir ;;
1629 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1630 | --includ=* | --inclu=* | --incl=* | --inc=*)
1631 includedir=$ac_optarg ;;
1633 -infodir | --infodir | --infodi | --infod | --info | --inf)
1635 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1636 infodir=$ac_optarg ;;
1638 -libdir | --libdir | --libdi | --libd)
1640 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1641 libdir=$ac_optarg ;;
1643 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1644 | --libexe | --libex | --libe)
1645 ac_prev=libexecdir ;;
1646 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1647 | --libexe=* | --libex=* | --libe=*)
1648 libexecdir=$ac_optarg ;;
1650 -localedir | --localedir | --localedi | --localed | --locale)
1651 ac_prev=localedir ;;
1652 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1653 localedir=$ac_optarg ;;
1655 -localstatedir | --localstatedir | --localstatedi | --localstated \
1656 | --localstate | --localstat | --localsta | --localst | --locals)
1657 ac_prev=localstatedir ;;
1658 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1659 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1660 localstatedir=$ac_optarg ;;
1662 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1664 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1665 mandir=$ac_optarg ;;
1667 -nfp | --nfp | --nf)
1668 # Obsolete; use --without-fp.
1671 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1672 | --no-cr | --no-c | -n)
1675 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1676 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1679 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1680 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1681 | --oldin | --oldi | --old | --ol | --o)
1682 ac_prev=oldincludedir ;;
1683 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1684 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1685 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1686 oldincludedir=$ac_optarg ;;
1688 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1690 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1691 prefix=$ac_optarg ;;
1693 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1694 | --program-pre | --program-pr | --program-p)
1695 ac_prev=program_prefix ;;
1696 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1697 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1698 program_prefix=$ac_optarg ;;
1700 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1701 | --program-suf | --program-su | --program-s)
1702 ac_prev=program_suffix ;;
1703 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1704 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1705 program_suffix=$ac_optarg ;;
1707 -program-transform-name | --program-transform-name \
1708 | --program-transform-nam | --program-transform-na \
1709 | --program-transform-n | --program-transform- \
1710 | --program-transform | --program-transfor \
1711 | --program-transfo | --program-transf \
1712 | --program-trans | --program-tran \
1713 | --progr-tra | --program-tr | --program-t)
1714 ac_prev=program_transform_name ;;
1715 -program-transform-name=* | --program-transform-name=* \
1716 | --program-transform-nam=* | --program-transform-na=* \
1717 | --program-transform-n=* | --program-transform-=* \
1718 | --program-transform=* | --program-transfor=* \
1719 | --program-transfo=* | --program-transf=* \
1720 | --program-trans=* | --program-tran=* \
1721 | --progr-tra=* | --program-tr=* | --program-t=*)
1722 program_transform_name=$ac_optarg ;;
1724 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1726 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1727 pdfdir=$ac_optarg ;;
1729 -psdir | --psdir | --psdi | --psd | --ps)
1731 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735 | -silent | --silent | --silen | --sile | --sil)
1738 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1740 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1742 sbindir=$ac_optarg ;;
1744 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1745 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1746 | --sharedst | --shareds | --shared | --share | --shar \
1748 ac_prev=sharedstatedir ;;
1749 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1750 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1751 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1753 sharedstatedir=$ac_optarg ;;
1755 -site | --site | --sit)
1757 -site=* | --site=* | --sit=*)
1760 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1762 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1763 srcdir=$ac_optarg ;;
1765 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1766 | --syscon | --sysco | --sysc | --sys | --sy)
1767 ac_prev=sysconfdir ;;
1768 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1769 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1770 sysconfdir=$ac_optarg ;;
1772 -target | --target | --targe | --targ | --tar | --ta | --t)
1773 ac_prev=target_alias ;;
1774 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1775 target_alias=$ac_optarg ;;
1777 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1780 -version | --version | --versio | --versi | --vers | -V)
1781 ac_init_version=: ;;
1784 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1785 # Reject names that are not valid shell variable names.
1786 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1787 as_fn_error "invalid package name: $ac_useropt"
1788 ac_useropt_orig=$ac_useropt
1789 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1790 case $ac_user_opts in
1794 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1795 ac_unrecognized_sep=', ';;
1797 eval with_$ac_useropt=\$ac_optarg ;;
1799 -without-* | --without-*)
1800 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1801 # Reject names that are not valid shell variable names.
1802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1803 as_fn_error "invalid package name: $ac_useropt"
1804 ac_useropt_orig=$ac_useropt
1805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1806 case $ac_user_opts in
1810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1811 ac_unrecognized_sep=', ';;
1813 eval with_$ac_useropt=no ;;
1816 # Obsolete; use --with-x.
1819 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1820 | --x-incl | --x-inc | --x-in | --x-i)
1821 ac_prev=x_includes ;;
1822 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1823 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1824 x_includes=$ac_optarg ;;
1826 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1827 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1828 ac_prev=x_libraries ;;
1829 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1830 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1831 x_libraries=$ac_optarg ;;
1833 -*) as_fn_error "unrecognized option: \`$ac_option'
1834 Try \`$0 --help' for more information."
1838 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1839 # Reject names that are not valid shell variable names.
1840 case $ac_envvar in #(
1841 '' | [0-9]* | *[!_$as_cr_alnum]* )
1842 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1844 eval $ac_envvar=\$ac_optarg
1845 export $ac_envvar ;;
1848 # FIXME: should be removed in autoconf 3.0.
1849 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1850 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1851 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1852 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1858 if test -n "$ac_prev"; then
1859 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1860 as_fn_error "missing argument to $ac_option"
1863 if test -n "$ac_unrecognized_opts"; then
1864 case $enable_option_checking in
1866 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1867 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1871 # Check all directory arguments for consistency.
1872 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1873 datadir sysconfdir sharedstatedir localstatedir includedir \
1874 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1875 libdir localedir mandir
1877 eval ac_val=\$$ac_var
1878 # Remove trailing slashes.
1881 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1882 eval $ac_var=\$ac_val;;
1884 # Be sure to have absolute directory names.
1886 [\\/$]* | ?:[\\/]* ) continue;;
1887 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1889 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1892 # There might be people who depend on the old broken behavior: `$host'
1893 # used to hold the argument of --host etc.
1894 # FIXME: To remove some day.
1897 target=$target_alias
1899 # FIXME: To remove some day.
1900 if test "x$host_alias" != x; then
1901 if test "x$build_alias" = x; then
1902 cross_compiling=maybe
1903 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1904 If a cross compiler is detected then cross compile mode will be used." >&2
1905 elif test "x$build_alias" != "x$host_alias"; then
1911 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1913 test "$silent" = yes && exec 6>/dev/null
1916 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1917 ac_ls_di=`ls -di .` &&
1918 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1919 as_fn_error "working directory cannot be determined"
1920 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1921 as_fn_error "pwd does not report name of working directory"
1924 # Find the source files, if location was not specified.
1925 if test -z "$srcdir"; then
1926 ac_srcdir_defaulted=yes
1927 # Try the directory containing this script, then the parent directory.
1928 ac_confdir=`$as_dirname -- "$as_myself" ||
1929 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1930 X"$as_myself" : 'X\(//\)[^/]' \| \
1931 X"$as_myself" : 'X\(//\)$' \| \
1932 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1933 $as_echo X"$as_myself" |
1934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1952 if test ! -r "$srcdir/$ac_unique_file"; then
1956 ac_srcdir_defaulted=no
1958 if test ! -r "$srcdir/$ac_unique_file"; then
1959 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1960 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1962 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1964 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1966 # When building in place, set srcdir=.
1967 if test "$ac_abs_confdir" = "$ac_pwd"; then
1970 # Remove unnecessary trailing slashes from srcdir.
1971 # Double slashes in file names in object file debugging info
1972 # mess up M-x gdb in Emacs.
1974 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1978 eval ac_env_${ac_var}_value=\$${ac_var}
1979 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1980 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1984 # Report the --help message.
1986 if test "$ac_init_help" = "long"; then
1987 # Omit some internal or obsolete options to make the list less imposing.
1988 # This message is too long to be a string in the A/UX 3.1 sh.
1990 \`configure' configures this package to adapt to many kinds of systems.
1992 Usage: $0 [OPTION]... [VAR=VALUE]...
1994 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1995 VAR=VALUE. See below for descriptions of some of the useful variables.
1997 Defaults for the options are specified in brackets.
2000 -h, --help display this help and exit
2001 --help=short display options specific to this package
2002 --help=recursive display the short help of all the included packages
2003 -V, --version display version information and exit
2004 -q, --quiet, --silent do not print \`checking...' messages
2005 --cache-file=FILE cache test results in FILE [disabled]
2006 -C, --config-cache alias for \`--cache-file=config.cache'
2007 -n, --no-create do not create output files
2008 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2010 Installation directories:
2011 --prefix=PREFIX install architecture-independent files in PREFIX
2012 [$ac_default_prefix]
2013 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2016 By default, \`make install' will install all the files in
2017 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2018 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2019 for instance \`--prefix=\$HOME'.
2021 For better control, use the options below.
2023 Fine tuning of the installation directories:
2024 --bindir=DIR user executables [EPREFIX/bin]
2025 --sbindir=DIR system admin executables [EPREFIX/sbin]
2026 --libexecdir=DIR program executables [EPREFIX/libexec]
2027 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2028 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2029 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2030 --libdir=DIR object code libraries [EPREFIX/lib]
2031 --includedir=DIR C header files [PREFIX/include]
2032 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2033 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2034 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2035 --infodir=DIR info documentation [DATAROOTDIR/info]
2036 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2037 --mandir=DIR man documentation [DATAROOTDIR/man]
2038 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2039 --htmldir=DIR html documentation [DOCDIR]
2040 --dvidir=DIR dvi documentation [DOCDIR]
2041 --pdfdir=DIR pdf documentation [DOCDIR]
2042 --psdir=DIR ps documentation [DOCDIR]
2048 --program-prefix=PREFIX prepend PREFIX to installed program names
2049 --program-suffix=SUFFIX append SUFFIX to installed program names
2050 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2053 --build=BUILD configure for building on BUILD [guessed]
2054 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2055 --target=TARGET configure for building compilers for TARGET [HOST]
2059 if test -n "$ac_init_help"; then
2064 --disable-option-checking ignore unrecognized --enable/--with options
2065 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2066 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2067 --enable-maintainer-mode enable make rules and dependencies not useful
2068 (and sometimes confusing) to the casual installer
2069 --disable-dependency-tracking speeds up one-time build
2070 --enable-dependency-tracking do not reject slow dependency extractors
2072 Some influential environment variables:
2073 CC C compiler command
2074 CFLAGS C compiler flags
2075 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2076 nonstandard directory <lib dir>
2077 LIBS libraries to pass to the linker, e.g. -l<library>
2078 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2079 you have headers in a nonstandard directory <include dir>
2082 Use these variables to override the choices made by `configure' or to help
2083 it to find libraries and programs with nonstandard names/locations.
2085 Report bugs to the package provider.
2090 if test "$ac_init_help" = "recursive"; then
2091 # If there are subdirs, report their specific --help.
2092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2093 test -d "$ac_dir" ||
2094 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2101 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2102 # A ".." for each directory in $ac_dir_suffix.
2103 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2104 case $ac_top_builddir_sub in
2105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2109 ac_abs_top_builddir=$ac_pwd
2110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2111 # for backward compatibility:
2112 ac_top_builddir=$ac_top_build_prefix
2115 .) # We are building in place.
2117 ac_top_srcdir=$ac_top_builddir_sub
2118 ac_abs_top_srcdir=$ac_pwd ;;
2119 [\\/]* | ?:[\\/]* ) # Absolute name.
2120 ac_srcdir=$srcdir$ac_dir_suffix;
2121 ac_top_srcdir=$srcdir
2122 ac_abs_top_srcdir=$srcdir ;;
2124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2125 ac_top_srcdir=$ac_top_build_prefix$srcdir
2126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2130 cd "$ac_dir" || { ac_status=$?; continue; }
2131 # Check for guested configure.
2132 if test -f "$ac_srcdir/configure.gnu"; then
2134 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2135 elif test -f "$ac_srcdir/configure"; then
2137 $SHELL "$ac_srcdir/configure" --help=recursive
2139 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2141 cd "$ac_pwd" || { ac_status=$?; break; }
2145 test -n "$ac_init_help" && exit $ac_status
2146 if $ac_init_version; then
2149 generated by GNU Autoconf 2.64
2151 Copyright (C) 2009 Free Software Foundation, Inc.
2152 This configure script is free software; the Free Software Foundation
2153 gives unlimited permission to copy, distribute and modify it.
2158 ## ------------------------ ##
2159 ## Autoconf initialization. ##
2160 ## ------------------------ ##
2162 # ac_fn_c_try_compile LINENO
2163 # --------------------------
2164 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_c_try_compile ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext
2169 if { { ac_try="$ac_compile"
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_compile") 2>conftest.err
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest.$ac_objext; then :
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 } # ac_fn_c_try_compile
2200 # ac_fn_c_try_cpp LINENO
2201 # ----------------------
2202 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { { ac_try="$ac_cpp conftest.$ac_ext"
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } >/dev/null && {
2222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2223 test ! -s conftest.err
2227 $as_echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2238 # -------------------------------------------------------
2239 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2240 # the include files in INCLUDES and setting the cache variable VAR
2242 ac_fn_c_check_header_mongrel ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 $as_echo_n "(cached) " >&6
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2255 # Is the header compilable?
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2257 $as_echo_n "checking $2 usability... " >&6; }
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_header_compiler=yes
2266 ac_header_compiler=no
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2270 $as_echo "$ac_header_compiler" >&6; }
2272 # Is the header present?
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2274 $as_echo_n "checking $2 presence... " >&6; }
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 if ac_fn_c_try_cpp "$LINENO"; then :
2280 ac_header_preproc=yes
2282 ac_header_preproc=no
2284 rm -f conftest.err conftest.$ac_ext
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2286 $as_echo "$ac_header_preproc" >&6; }
2288 # So? What about this header?
2289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2292 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2294 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2298 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2300 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2302 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2304 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 $as_echo_n "(cached) " >&6
2314 eval "$3=\$ac_header_compiler"
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322 } # ac_fn_c_check_header_mongrel
2324 # ac_fn_c_try_run LINENO
2325 # ----------------------
2326 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2327 # that executables *can* be run.
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 if { { ac_try="$ac_link"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_link") 2>&5
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2342 { { case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_try") 2>&5
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; }; }; then :
2354 $as_echo "$as_me: program exited with status $ac_status" >&5
2355 $as_echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2358 ac_retval=$ac_status
2360 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2367 # -------------------------------------------------------
2368 # Tests whether HEADER exists and can be compiled using the include files in
2369 # INCLUDES, setting the cache variable VAR accordingly.
2370 ac_fn_c_check_header_compile ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2376 $as_echo_n "(cached) " >&6
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2383 if ac_fn_c_try_compile "$LINENO"; then :
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392 $as_echo "$ac_res" >&6; }
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2395 } # ac_fn_c_check_header_compile
2397 # ac_fn_c_try_link LINENO
2398 # -----------------------
2399 # Try to link conftest.$ac_ext, and return whether this succeeded.
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 rm -f conftest.$ac_objext conftest$ac_exeext
2404 if { { ac_try="$ac_link"
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2410 $as_echo "$ac_try_echo"; } >&5
2411 (eval "$ac_link") 2>conftest.err
2413 if test -s conftest.err; then
2414 grep -v '^ *+' conftest.err >conftest.er1
2415 cat conftest.er1 >&5
2416 mv -f conftest.er1 conftest.err
2418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2419 test $ac_status = 0; } && {
2420 test -z "$ac_c_werror_flag" ||
2421 test ! -s conftest.err
2422 } && test -s conftest$ac_exeext && {
2423 test "$cross_compiling" = yes ||
2424 $as_test_x conftest$ac_exeext
2428 $as_echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2433 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2434 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2435 # interfere with the next link command; also delete a directory that is
2436 # left behind by Apple's compiler. We do this before executing the actions.
2437 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2441 } # ac_fn_c_try_link
2443 # ac_fn_c_check_func LINENO FUNC VAR
2444 # ----------------------------------
2445 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2446 ac_fn_c_check_func ()
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2452 $as_echo_n "(cached) " >&6
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2456 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2458 #define $2 innocuous_$2
2460 /* System header to define __stub macros and hopefully few prototypes,
2461 which can conflict with char $2 (); below.
2462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2463 <limits.h> exists even on freestanding compilers. */
2466 # include <limits.h>
2468 # include <assert.h>
2473 /* Override any GCC internal prototype to avoid an error.
2474 Use char because int might match the return type of a GCC
2475 builtin and then its argument prototype would still apply. */
2480 /* The GNU C library defines this for functions which it implements
2481 to always fail with ENOSYS. Some functions are actually named
2482 something starting with __ and the normal name is an alias. */
2483 #if defined __stub_$2 || defined __stub___$2
2495 if ac_fn_c_try_link "$LINENO"; then :
2500 rm -f core conftest.err conftest.$ac_objext \
2501 conftest$ac_exeext conftest.$ac_ext
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508 } # ac_fn_c_check_func
2510 # ac_fn_c_check_decl LINENO SYMBOL VAR
2511 # ------------------------------------
2512 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2513 ac_fn_c_check_decl ()
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2517 $as_echo_n "checking whether $2 is declared... " >&6; }
2518 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2535 if ac_fn_c_try_compile "$LINENO"; then :
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 } # ac_fn_c_check_decl
2549 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2550 # --------------------------------------------
2551 # Tries to find the compile-time value of EXPR in a program that includes
2552 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2554 ac_fn_c_compute_int ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 if test "$cross_compiling" = yes; then
2558 # Depending upon the size, compute the lo and hi bounds.
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2565 static int test_array [1 - 2 * !(($2) >= 0)];
2572 if ac_fn_c_try_compile "$LINENO"; then :
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2581 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589 ac_hi=$ac_mid; break
2591 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2592 if test $ac_lo -le $ac_mid; then
2596 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2607 static int test_array [1 - 2 * !(($2) < 0)];
2614 if ac_fn_c_try_compile "$LINENO"; then :
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2623 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_lo=$ac_mid; break
2633 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2634 if test $ac_mid -le $ac_hi; then
2638 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 # Binary search between lo and hi bounds.
2649 while test "x$ac_lo" != "x$ac_hi"; do
2650 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2657 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2664 if ac_fn_c_try_compile "$LINENO"; then :
2667 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2679 static long int longval () { return $2; }
2680 static unsigned long int ulongval () { return $2; }
2687 FILE *f = fopen ("conftest.val", "w");
2692 long int i = longval ();
2695 fprintf (f, "%ld", i);
2699 unsigned long int i = ulongval ();
2702 fprintf (f, "%lu", i);
2704 /* Do not output a trailing newline, as this causes \r\n confusion
2705 on some platforms. */
2706 return ferror (f) || fclose (f) != 0;
2712 if ac_fn_c_try_run "$LINENO"; then :
2713 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2718 conftest.$ac_objext conftest.beam conftest.$ac_ext
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2725 } # ac_fn_c_compute_int
2727 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2728 # -------------------------------------------
2729 # Tests whether TYPE exists after having included INCLUDES, setting cache
2730 # variable VAR accordingly.
2731 ac_fn_c_check_type ()
2733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2735 $as_echo_n "checking for $2... " >&6; }
2736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2737 $as_echo_n "(cached) " >&6
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2765 if ac_fn_c_try_compile "$LINENO"; then :
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2779 } # ac_fn_c_check_type
2780 cat >config.log <<_ACEOF
2781 This file contains any messages produced by compilers while
2782 running configure, to aid debugging if configure makes a mistake.
2784 It was created by $as_me, which was
2785 generated by GNU Autoconf 2.64. Invocation command line was
2797 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2798 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2799 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2800 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2801 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2803 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2804 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2806 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2807 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2808 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2809 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2810 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2811 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2812 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 $as_echo "PATH: $as_dir"
2837 # Keep a trace of the command line.
2838 # Strip out --no-create and --no-recursion so they do not pile up.
2839 # Strip out --silent because we don't want to record it for future runs.
2840 # Also quote any args containing shell meta-characters.
2841 # Make two passes to allow for proper duplicate-argument suppression.
2845 ac_must_keep_next=false
2851 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2853 | -silent | --silent | --silen | --sile | --sil)
2856 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2859 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2861 as_fn_append ac_configure_args1 " '$ac_arg'"
2862 if test $ac_must_keep_next = true; then
2863 ac_must_keep_next=false # Got value, back to normal.
2866 *=* | --config-cache | -C | -disable-* | --disable-* \
2867 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2868 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2869 | -with-* | --with-* | -without-* | --without-* | --x)
2870 case "$ac_configure_args0 " in
2871 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2874 -* ) ac_must_keep_next=true ;;
2877 as_fn_append ac_configure_args " '$ac_arg'"
2882 { ac_configure_args0=; unset ac_configure_args0;}
2883 { ac_configure_args1=; unset ac_configure_args1;}
2885 # When interrupted or exit'd, cleanup temporary files, and complete
2886 # config.log. We remove comments because anyway the quotes in there
2887 # would cause problems or look ugly.
2888 # WARNING: Use '\'' to represent an apostrophe within the trap.
2889 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2890 trap 'exit_status=$?
2891 # Save into config.log some information that might help in debugging.
2896 ## ---------------- ##
2897 ## Cache variables. ##
2898 ## ---------------- ##
2901 # The following way of writing the cache mishandles newlines in values,
2903 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2904 eval ac_val=\$$ac_var
2908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2912 _ | IFS | as_nl) ;; #(
2913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2914 *) { eval $ac_var=; unset $ac_var;} ;;
2919 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2920 *${as_nl}ac_space=\ *)
2922 "s/'\''/'\''\\\\'\'''\''/g;
2923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2934 ## ----------------- ##
2935 ## Output variables. ##
2936 ## ----------------- ##
2939 for ac_var in $ac_subst_vars
2941 eval ac_val=\$$ac_var
2943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2945 $as_echo "$ac_var='\''$ac_val'\''"
2949 if test -n "$ac_subst_files"; then
2951 ## ------------------- ##
2952 ## File substitutions. ##
2953 ## ------------------- ##
2956 for ac_var in $ac_subst_files
2958 eval ac_val=\$$ac_var
2960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2962 $as_echo "$ac_var='\''$ac_val'\''"
2967 if test -s confdefs.h; then
2977 test "$ac_signal" != 0 &&
2978 $as_echo "$as_me: caught signal $ac_signal"
2979 $as_echo "$as_me: exit $exit_status"
2981 rm -f core *.core core.conftest.* &&
2982 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2985 for ac_signal in 1 2 13 15; do
2986 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2990 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2991 rm -f -r conftest* confdefs.h
2993 $as_echo "/* confdefs.h */" > confdefs.h
2995 # Predefined preprocessor variables.
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE_NAME "$PACKAGE_NAME"
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3005 cat >>confdefs.h <<_ACEOF
3006 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_STRING "$PACKAGE_STRING"
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_URL "$PACKAGE_URL"
3022 # Let the site file select an alternate cache file if it wants to.
3023 # Prefer an explicitly selected file to automatically selected ones.
3026 if test -n "$CONFIG_SITE"; then
3027 ac_site_file1=$CONFIG_SITE
3028 elif test "x$prefix" != xNONE; then
3029 ac_site_file1=$prefix/share/config.site
3030 ac_site_file2=$prefix/etc/config.site
3032 ac_site_file1=$ac_default_prefix/share/config.site
3033 ac_site_file2=$ac_default_prefix/etc/config.site
3035 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3037 test "x$ac_site_file" = xNONE && continue
3038 if test -r "$ac_site_file"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3040 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3041 sed 's/^/| /' "$ac_site_file" >&5
3046 if test -r "$cache_file"; then
3047 # Some versions of bash will fail to source /dev/null (special
3048 # files actually), so we avoid doing that.
3049 if test -f "$cache_file"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3051 $as_echo "$as_me: loading cache $cache_file" >&6;}
3053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3054 *) . "./$cache_file";;
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3059 $as_echo "$as_me: creating cache $cache_file" >&6;}
3063 as_fn_append ac_header_list " dirent.h"
3064 as_fn_append ac_func_list " btowc"
3065 as_fn_append ac_func_list " isblank"
3066 as_fn_append ac_func_list " iswctype"
3067 as_fn_append ac_func_list " mbsrtowcs"
3068 as_fn_append ac_func_list " mempcpy"
3069 as_fn_append ac_func_list " wmemchr"
3070 as_fn_append ac_func_list " wmemcpy"
3071 as_fn_append ac_func_list " wmempcpy"
3072 as_fn_append ac_header_list " wctype.h"
3073 gl_fnmatch_required=GNU
3074 as_fn_append ac_func_list " alarm"
3075 as_fn_append ac_header_list " wchar.h"
3076 as_fn_append ac_header_list " stdint.h"
3077 as_fn_append ac_header_list " inttypes.h"
3078 as_fn_append ac_header_list " unistd.h"
3079 as_fn_append ac_func_list " symlink"
3080 as_fn_append ac_header_list " math.h"
3081 as_fn_append ac_func_list " mbsinit"
3082 as_fn_append ac_func_list " mbrtowc"
3083 as_fn_append ac_header_list " sys/mman.h"
3084 as_fn_append ac_func_list " mprotect"
3085 as_fn_append ac_header_list " sys/param.h"
3086 as_fn_append ac_header_list " sys/stat.h"
3087 as_fn_append ac_header_list " sys/time.h"
3088 as_fn_append ac_header_list " features.h"
3089 as_fn_append ac_func_list " iswcntrl"
3090 # Check that the precious variables saved in the cache have kept the same
3092 ac_cache_corrupted=false
3093 for ac_var in $ac_precious_vars; do
3094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3095 eval ac_new_set=\$ac_env_${ac_var}_set
3096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3097 eval ac_new_val=\$ac_env_${ac_var}_value
3098 case $ac_old_set,$ac_new_set in
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3102 ac_cache_corrupted=: ;;
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3106 ac_cache_corrupted=: ;;
3109 if test "x$ac_old_val" != "x$ac_new_val"; then
3110 # differences in whitespace do not lead to failure.
3111 ac_old_val_w=`echo x $ac_old_val`
3112 ac_new_val_w=`echo x $ac_new_val`
3113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3116 ac_cache_corrupted=:
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3120 eval $ac_var=\$ac_old_val
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3128 # Pass precious variables to config.status.
3129 if test "$ac_new_set" = set; then
3131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3132 *) ac_arg=$ac_var=$ac_new_val ;;
3134 case " $ac_configure_args " in
3135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3140 if $ac_cache_corrupted; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3147 ## -------------------- ##
3148 ## Main body of script. ##
3149 ## -------------------- ##
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 ac_config_headers="$ac_config_headers config.h:config.in"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3162 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3163 # Check whether --enable-maintainer-mode was given.
3164 if test "${enable_maintainer_mode+set}" = set; then :
3165 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3167 USE_MAINTAINER_MODE=no
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3171 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3172 if test $USE_MAINTAINER_MODE = yes; then
3173 MAINTAINER_MODE_TRUE=
3174 MAINTAINER_MODE_FALSE='#'
3176 MAINTAINER_MODE_TRUE='#'
3177 MAINTAINER_MODE_FALSE=
3180 MAINT=$MAINTAINER_MODE_TRUE
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3228 if test -z "$ac_cv_prog_CC"; then
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_ac_ct_CC="gcc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258 if test -n "$ac_ct_CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260 $as_echo "$ac_ct_CC" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3266 if test "x$ac_ct_CC" = x; then
3269 case $cross_compiling:$ac_tool_warned in
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3322 if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3368 if test -n "$CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog in cl.exe
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then :
3387 $as_echo_n "(cached) " >&6
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test -n "$CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412 $as_echo "$CC" >&6; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3419 test -n "$CC" && break
3422 if test -z "$CC"; then
3424 for ac_prog in cl.exe
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_CC="$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3463 test -n "$ac_ct_CC" && break
3466 if test "x$ac_ct_CC" = x; then
3469 case $cross_compiling:$ac_tool_warned in
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3482 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error "no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." "$LINENO" 5; }
3487 # Provide some information about the compiler.
3488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3491 for ac_option in --version -v -V -qversion; do
3492 { { ac_try="$ac_compiler $ac_option >&5"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3501 if test -s conftest.err; then
3503 ... rest of stderr output deleted ...
3504 10q' conftest.err >conftest.er1
3505 cat conftest.er1 >&5
3506 rm -f conftest.er1 conftest.err
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3518 FILE *f = fopen ("conftest.out", "w");
3519 return ferror (f) || fclose (f) != 0;
3525 ac_clean_files_save=$ac_clean_files
3526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3527 # Try to create an executable without -o first, disregard a.out.
3528 # It will help us diagnose broken compilers, and finding out an intuition
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3531 $as_echo_n "checking for C compiler default output file name... " >&6; }
3532 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3534 # The possible output files:
3535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3538 for ac_file in $ac_files
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547 if { { ac_try="$ac_link_default"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link_default") 2>&5
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
3558 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3559 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3560 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3561 # so that the user can short-circuit this test for compilers unknown to
3563 for ac_file in $ac_files ''
3565 test -f "$ac_file" || continue
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3570 # We found the default executable, but exeext='' is most
3574 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3578 # We set ac_cv_exeext here because the later test for it is not
3579 # safe: cross compilers may not add the suffix if given an `-o'
3580 # argument, so we may need to know it at that point already.
3581 # Even if this section looks crufty: it has the advantage of
3588 test "$ac_cv_exeext" = no && ac_cv_exeext=
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594 $as_echo "$ac_file" >&6; }
3595 if test -z "$ac_file"; then :
3596 $as_echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 { as_fn_set_status 77
3602 as_fn_error "C compiler cannot create executables
3603 See \`config.log' for more details." "$LINENO" 5; }; }
3605 ac_exeext=$ac_cv_exeext
3607 # Check that the compiler produces executables we can run. If not, either
3608 # the compiler is broken, or we cross compile.
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610 $as_echo_n "checking whether the C compiler works... " >&6; }
3611 # If not cross compiling, check that we can run a simple program.
3612 if test "$cross_compiling" != yes; then
3613 if { ac_try='./$ac_file'
3614 { { case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_try") 2>&5
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; }; then
3626 if test "$cross_compiling" = maybe; then
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error "cannot run C compiled programs.
3632 If you meant to cross compile, use \`--host'.
3633 See \`config.log' for more details." "$LINENO" 5; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3640 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3641 ac_clean_files=$ac_clean_files_save
3642 # Check that the compiler produces executables we can run. If not, either
3643 # the compiler is broken, or we cross compile.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3645 $as_echo_n "checking whether we are cross compiling... " >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3647 $as_echo "$cross_compiling" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650 $as_echo_n "checking for suffix of executables... " >&6; }
3651 if { { ac_try="$ac_link"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
3666 for ac_file in conftest.exe conftest conftest.*; do
3667 test -f "$ac_file" || continue
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error "cannot compute suffix of executables: cannot compile and link
3679 See \`config.log' for more details." "$LINENO" 5; }
3681 rm -f conftest$ac_cv_exeext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683 $as_echo "$ac_cv_exeext" >&6; }
3685 rm -f conftest.$ac_ext
3686 EXEEXT=$ac_cv_exeext
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3689 $as_echo_n "checking for suffix of object files... " >&6; }
3690 if test "${ac_cv_objext+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 rm -f conftest.o conftest.obj
3705 if { { ac_try="$ac_compile"
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_compile") 2>&5
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; then :
3716 for ac_file in conftest.o conftest.obj conftest.*; do
3717 test -f "$ac_file" || continue;
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error "cannot compute suffix of object files: cannot compile
3731 See \`config.log' for more details." "$LINENO" 5; }
3733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3736 $as_echo "$ac_cv_objext" >&6; }
3737 OBJEXT=$ac_cv_objext
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3741 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3758 if ac_fn_c_try_compile "$LINENO"; then :
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3769 if test $ac_compiler_gnu = yes; then
3774 ac_test_CFLAGS=${CFLAGS+set}
3775 ac_save_CFLAGS=$CFLAGS
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3778 if test "${ac_cv_prog_cc_g+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3781 ac_save_c_werror_flag=$ac_c_werror_flag
3782 ac_c_werror_flag=yes
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 if ac_fn_c_try_compile "$LINENO"; then :
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_c_werror_flag=$ac_save_c_werror_flag
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3838 $as_echo "$ac_cv_prog_cc_g" >&6; }
3839 if test "$ac_test_CFLAGS" = set; then
3840 CFLAGS=$ac_save_CFLAGS
3841 elif test $ac_cv_prog_cc_g = yes; then
3842 if test "$GCC" = yes; then
3848 if test "$GCC" = yes; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3856 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 ac_cv_prog_cc_c89=no
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3865 #include <sys/types.h>
3866 #include <sys/stat.h>
3867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868 struct buf { int x; };
3869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870 static char *e (p, i)
3876 static char *f (char * (*g) (char **, int), char **p, ...)
3881 s = g (p, va_arg (v,int));
3886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917 CC="$ac_save_CC $ac_arg"
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_prog_cc_c89=$ac_arg
3921 rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 rm -f conftest.$ac_ext
3929 case "x$ac_cv_prog_cc_c89" in
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932 $as_echo "none needed" >&6; } ;;
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935 $as_echo "unsupported" >&6; } ;;
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3953 for ac_t in install-sh install.sh shtool; do
3954 if test -f "$ac_dir/$ac_t"; then
3956 ac_install_sh="$ac_aux_dir/$ac_t -c"
3961 if test -z "$ac_aux_dir"; then
3962 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3965 # These three variables are undocumented and unsupported,
3966 # and are intended to be withdrawn in a future Autoconf release.
3967 # They can cause serious problems if a builder's source tree is in a directory
3968 # whose full name contains unusual characters.
3969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3974 # Make sure we can run config.sub.
3975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3976 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3979 $as_echo_n "checking build system type... " >&6; }
3980 if test "${ac_cv_build+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3983 ac_build_alias=$build_alias
3984 test "x$ac_build_alias" = x &&
3985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3986 test "x$ac_build_alias" = x &&
3987 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3989 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3993 $as_echo "$ac_cv_build" >&6; }
3994 case $ac_cv_build in
3996 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3999 ac_save_IFS=$IFS; IFS='-'
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4009 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4013 $as_echo_n "checking host system type... " >&6; }
4014 if test "${ac_cv_host+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4017 if test "x$host_alias" = x; then
4018 ac_cv_host=$ac_cv_build
4020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4021 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4026 $as_echo "$ac_cv_host" >&6; }
4029 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4032 ac_save_IFS=$IFS; IFS='-'
4038 # Remember, the first character of IFS is used to create $*,
4039 # except with old shells:
4042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4076 # include <limits.h>
4078 # include <assert.h>
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4085 # Broken: fails on valid input.
4088 rm -f conftest.err conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <ac_nonexistent.h>
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4097 # Broken: success on invalid input.
4100 # Passes both tests.
4104 rm -f conftest.err conftest.$ac_ext
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then :
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4122 $as_echo "$CPP" >&6; }
4124 for ac_c_preproc_warn_flag in '' yes
4126 # Use a header file that comes with gcc, so configuring glibc
4127 # with a fresh cross-compiler works.
4128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4129 # <limits.h> exists even on freestanding compilers.
4130 # On the NeXT, cc -E runs the code through the compiler's parser,
4131 # not just through cpp. "Syntax error" is here to catch this case.
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4135 # include <limits.h>
4137 # include <assert.h>
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4144 # Broken: fails on valid input.
4147 rm -f conftest.err conftest.$ac_ext
4149 # OK, works on sane cases. Now check whether nonexistent headers
4150 # can be detected and how.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #include <ac_nonexistent.h>
4155 if ac_fn_c_try_cpp "$LINENO"; then :
4156 # Broken: success on invalid input.
4159 # Passes both tests.
4163 rm -f conftest.err conftest.$ac_ext
4166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167 rm -f conftest.err conftest.$ac_ext
4168 if $ac_preproc_ok; then :
4171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4174 See \`config.log' for more details." "$LINENO" 5; }
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4185 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4186 if test "${ac_cv_path_GREP+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4189 if test -z "$GREP"; then
4190 ac_path_GREP_found=false
4191 # Loop through the user's path and test for each of PROGNAME-LIST
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in grep ggrep; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4200 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4201 # Check for GNU ac_path_GREP and select it if it is found.
4202 # Check for GNU $ac_path_GREP
4203 case `"$ac_path_GREP" --version 2>&1` in
4205 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4208 $as_echo_n 0123456789 >"conftest.in"
4211 cat "conftest.in" "conftest.in" >"conftest.tmp"
4212 mv "conftest.tmp" "conftest.in"
4213 cp "conftest.in" "conftest.nl"
4214 $as_echo 'GREP' >> "conftest.nl"
4215 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 as_fn_arith $ac_count + 1 && ac_count=$as_val
4218 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4219 # Best one so far, save it but keep looking for a better one
4220 ac_cv_path_GREP="$ac_path_GREP"
4221 ac_path_GREP_max=$ac_count
4223 # 10*(2^10) chars as input seems more than enough
4224 test $ac_count -gt 10 && break
4226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229 $ac_path_GREP_found && break 3
4234 if test -z "$ac_cv_path_GREP"; then
4235 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4238 ac_cv_path_GREP=$GREP
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4243 $as_echo "$ac_cv_path_GREP" >&6; }
4244 GREP="$ac_cv_path_GREP"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4248 $as_echo_n "checking for egrep... " >&6; }
4249 if test "${ac_cv_path_EGREP+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4252 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4253 then ac_cv_path_EGREP="$GREP -E"
4255 if test -z "$EGREP"; then
4256 ac_path_EGREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in egrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4267 # Check for GNU ac_path_EGREP and select it if it is found.
4268 # Check for GNU $ac_path_EGREP
4269 case `"$ac_path_EGREP" --version 2>&1` in
4271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4274 $as_echo_n 0123456789 >"conftest.in"
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'EGREP' >> "conftest.nl"
4281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 as_fn_arith $ac_count + 1 && ac_count=$as_val
4284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_EGREP="$ac_path_EGREP"
4287 ac_path_EGREP_max=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 $ac_path_EGREP_found && break 3
4300 if test -z "$ac_cv_path_EGREP"; then
4301 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4304 ac_cv_path_EGREP=$EGREP
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4310 $as_echo "$ac_cv_path_EGREP" >&6; }
4311 EGREP="$ac_cv_path_EGREP"
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4315 $as_echo_n "checking for ANSI C header files... " >&6; }
4316 if test "${ac_cv_header_stdc+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_header_stdc=yes
4337 ac_cv_header_stdc=no
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 if test $ac_cv_header_stdc = yes; then
4342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "memchr" >/dev/null 2>&1; then :
4352 ac_cv_header_stdc=no
4358 if test $ac_cv_header_stdc = yes; then
4359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "free" >/dev/null 2>&1; then :
4369 ac_cv_header_stdc=no
4375 if test $ac_cv_header_stdc = yes; then
4376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4377 if test "$cross_compiling" = yes; then :
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4384 #if ((' ' & 0x0FF) == 0x020)
4385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4388 # define ISLOWER(c) \
4389 (('a' <= (c) && (c) <= 'i') \
4390 || ('j' <= (c) && (c) <= 'r') \
4391 || ('s' <= (c) && (c) <= 'z'))
4392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4400 for (i = 0; i < 256; i++)
4401 if (XOR (islower (i), ISLOWER (i))
4402 || toupper (i) != TOUPPER (i))
4407 if ac_fn_c_try_run "$LINENO"; then :
4410 ac_cv_header_stdc=no
4412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4413 conftest.$ac_objext conftest.beam conftest.$ac_ext
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4419 $as_echo "$ac_cv_header_stdc" >&6; }
4420 if test $ac_cv_header_stdc = yes; then
4422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4427 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4428 inttypes.h stdint.h unistd.h
4430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4433 eval as_val=\$$as_ac_Header
4434 if test "x$as_val" = x""yes; then :
4435 cat >>confdefs.h <<_ACEOF
4436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4447 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4448 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4455 if test "$MINIX" = yes; then
4457 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4460 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4463 $as_echo "#define _MINIX 1" >>confdefs.h
4470 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4477 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4478 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4484 # define __EXTENSIONS__ 1
4485 $ac_includes_default
4494 if ac_fn_c_try_compile "$LINENO"; then :
4495 ac_cv_safe_to_define___extensions__=yes
4497 ac_cv_safe_to_define___extensions__=no
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4502 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4503 test $ac_cv_safe_to_define___extensions__ = yes &&
4504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4508 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4510 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4512 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4514 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4520 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4521 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4534 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4535 gl_cv_c_amsterdam_compiler=yes
4537 gl_cv_c_amsterdam_compiler=no
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4544 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4545 if test -z "$AR"; then
4546 if test $gl_cv_c_amsterdam_compiler = yes; then
4548 if test -z "$ARFLAGS"; then
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}ar; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_AR+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -n "$AR"; then
4561 ac_cv_prog_AR="$AR" # Let the user override the test.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_AR="${ac_tool_prefix}ar"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 if test -n "$AR"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4583 $as_echo "$AR" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_AR"; then
4593 # Extract the first word of "ar", so it can be a program name with args.
4594 set dummy ar; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$ac_ct_AR"; then
4601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_AR="ar"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4621 if test -n "$ac_ct_AR"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4623 $as_echo "$ac_ct_AR" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_AR" = x; then
4632 case $cross_compiling:$ac_tool_warned in
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4644 if test -z "$ARFLAGS"; then
4649 if test -z "$ARFLAGS"; then
4655 if test -z "$RANLIB"; then
4656 if test $gl_cv_c_amsterdam_compiler = yes; then
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$RANLIB"; then
4668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 RANLIB=$ac_cv_prog_RANLIB
4688 if test -n "$RANLIB"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4690 $as_echo "$RANLIB" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_RANLIB"; then
4699 ac_ct_RANLIB=$RANLIB
4700 # Extract the first word of "ranlib", so it can be a program name with args.
4701 set dummy ranlib; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4707 if test -n "$ac_ct_RANLIB"; then
4708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_RANLIB="ranlib"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4728 if test -n "$ac_ct_RANLIB"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4730 $as_echo "$ac_ct_RANLIB" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_RANLIB" = x; then
4739 case $cross_compiling:$ac_tool_warned in
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4745 RANLIB=$ac_ct_RANLIB
4748 RANLIB="$ac_cv_prog_RANLIB"
4764 # IEEE behaviour is the default on all CPUs except Alpha and SH
4765 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4766 # and the GCC 4.1.2 manual).
4769 # On Alpha systems, a compiler option provides the behaviour.
4770 # See the ieee(3) manual page, also available at
4771 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4772 if test -n "$GCC"; then
4773 # GCC has the option -mieee.
4774 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4775 CPPFLAGS="$CPPFLAGS -mieee"
4777 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4778 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4779 CPPFLAGS="$CPPFLAGS -ieee"
4783 if test -n "$GCC"; then
4784 # GCC has the option -mieee.
4785 CPPFLAGS="$CPPFLAGS -mieee"
4792 # Code from module alloca:
4793 # Code from module alloca-opt:
4794 # Code from module configmake:
4795 # Code from module dirent:
4796 # Code from module extensions:
4798 # Code from module extern-inline:
4799 # Code from module float:
4800 # Code from module fnmatch:
4801 # Code from module fnmatch-gnu:
4802 # Code from module fpieee:
4804 # Code from module fpucw:
4805 # Code from module frexp:
4806 # Code from module frexpl:
4807 # Code from module include_next:
4808 # Code from module inttypes:
4809 # Code from module inttypes-incomplete:
4810 # Code from module isnand-nolibm:
4811 # Code from module isnanl-nolibm:
4812 # Code from module localcharset:
4813 # Code from module math:
4814 # Code from module mbrtowc:
4815 # Code from module mbsinit:
4816 # Code from module mbsrtowcs:
4817 # Code from module memchr:
4818 # Code from module memmem:
4819 # Code from module memmem-simple:
4820 # Code from module multiarch:
4821 # Code from module pathmax:
4822 # Code from module snippet/arg-nonnull:
4823 # Code from module snippet/c++defs:
4824 # Code from module snippet/warn-on-use:
4825 # Code from module ssize_t:
4826 # Code from module stdbool:
4827 # Code from module stddef:
4828 # Code from module stdint:
4829 # Code from module streq:
4830 # Code from module string:
4831 # Code from module strnlen1:
4832 # Code from module strstr:
4833 # Code from module strstr-simple:
4834 # Code from module sys_stat:
4835 # Code from module sys_types:
4836 # Code from module time:
4837 # Code from module unistd:
4838 # Code from module update-copyright:
4839 # Code from module verify:
4840 # Code from module wchar:
4841 # Code from module wctype-h:
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4887 if test -z "$ac_cv_prog_CC"; then
4889 # Extract the first word of "gcc", so it can be a program name with args.
4890 set dummy gcc; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4896 if test -n "$ac_ct_CC"; then
4897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CC="gcc"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4917 if test -n "$ac_ct_CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4919 $as_echo "$ac_ct_CC" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4925 if test "x$ac_ct_CC" = x; then
4928 case $cross_compiling:$ac_tool_warned in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned=yes ;;
4940 if test -z "$CC"; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}cc; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4949 if test -n "$CC"; then
4950 ac_cv_prog_CC="$CC" # Let the user override the test.
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_CC="${ac_tool_prefix}cc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 $as_echo "$CC" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4981 if test -z "$CC"; then
4982 # Extract the first word of "cc", so it can be a program name with args.
4983 set dummy cc; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC="$CC" # Let the user override the test.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5001 ac_prog_rejected=yes
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 if test $ac_prog_rejected = yes; then
5013 # We found a bogon in the path, so make sure we never use it.
5014 set dummy $ac_cv_prog_CC
5016 if test $# != 0; then
5017 # We chose a different compiler from the bogus one.
5018 # However, it has the same basename, so the bogon will be chosen
5019 # first if we set CC to just the basename; use the full file name.
5021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5027 if test -n "$CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029 $as_echo "$CC" >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5037 if test -z "$CC"; then
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in cl.exe
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_CC+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$CC"; then
5049 ac_cv_prog_CC="$CC" # Let the user override the test.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 if test -n "$CC"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5071 $as_echo "$CC" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 test -n "$CC" && break
5081 if test -z "$CC"; then
5083 for ac_prog in cl.exe
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$ac_ct_CC"; then
5093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_CC="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5113 if test -n "$ac_ct_CC"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5115 $as_echo "$ac_ct_CC" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$ac_ct_CC" && break
5125 if test "x$ac_ct_CC" = x; then
5128 case $cross_compiling:$ac_tool_warned in
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error "no acceptable C compiler found in \$PATH
5144 See \`config.log' for more details." "$LINENO" 5; }
5146 # Provide some information about the compiler.
5147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5150 for ac_option in --version -v -V -qversion; do
5151 { { ac_try="$ac_compiler $ac_option >&5"
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5160 if test -s conftest.err; then
5162 ... rest of stderr output deleted ...
5163 10q' conftest.err >conftest.er1
5164 cat conftest.er1 >&5
5165 rm -f conftest.er1 conftest.err
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5172 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5173 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5190 if ac_fn_c_try_compile "$LINENO"; then :
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5201 if test $ac_compiler_gnu = yes; then
5206 ac_test_CFLAGS=${CFLAGS+set}
5207 ac_save_CFLAGS=$CFLAGS
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5210 if test "${ac_cv_prog_cc_g+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 ac_save_c_werror_flag=$ac_c_werror_flag
5214 ac_c_werror_flag=yes
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5228 if ac_fn_c_try_compile "$LINENO"; then :
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5243 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_c_werror_flag=$ac_save_c_werror_flag
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5259 if ac_fn_c_try_compile "$LINENO"; then :
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5270 $as_echo "$ac_cv_prog_cc_g" >&6; }
5271 if test "$ac_test_CFLAGS" = set; then
5272 CFLAGS=$ac_save_CFLAGS
5273 elif test $ac_cv_prog_cc_g = yes; then
5274 if test "$GCC" = yes; then
5280 if test "$GCC" = yes; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5287 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5288 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5291 ac_cv_prog_cc_c89=no
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5297 #include <sys/types.h>
5298 #include <sys/stat.h>
5299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5300 struct buf { int x; };
5301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5302 static char *e (p, i)
5308 static char *f (char * (*g) (char **, int), char **p, ...)
5313 s = g (p, va_arg (v,int));
5318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5319 function prototypes and stuff, but not '\xHH' hex character constants.
5320 These don't provoke an error unfortunately, instead are silently treated
5321 as 'x'. The following induces an error, until -std is added to get
5322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5323 array size at least. It's necessary to write '\x00'==0 to get something
5324 that's true only with -std. */
5325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5328 inside strings and character constants. */
5330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5332 int test (int i, double x);
5333 struct s1 {int (*f) (int a);};
5334 struct s2 {int (*f) (double a);};
5335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5349 CC="$ac_save_CC $ac_arg"
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_prog_cc_c89=$ac_arg
5353 rm -f core conftest.err conftest.$ac_objext
5354 test "x$ac_cv_prog_cc_c89" != "xno" && break
5356 rm -f conftest.$ac_ext
5361 case "x$ac_cv_prog_cc_c89" in
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5364 $as_echo "none needed" >&6; } ;;
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5367 $as_echo "unsupported" >&6; } ;;
5369 CC="$CC $ac_cv_prog_cc_c89"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5371 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5373 if test "x$ac_cv_prog_cc_c89" != xno; then :
5378 ac_cpp='$CPP $CPPFLAGS'
5379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5388 for ac_dir in ../.. "$srcdir"/../..; do
5389 for ac_t in install-sh install.sh shtool; do
5390 if test -f "$ac_dir/$ac_t"; then
5392 ac_install_sh="$ac_aux_dir/$ac_t -c"
5397 if test -z "$ac_aux_dir"; then
5398 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5401 # These three variables are undocumented and unsupported,
5402 # and are intended to be withdrawn in a future Autoconf release.
5403 # They can cause serious problems if a builder's source tree is in a directory
5404 # whose full name contains unusual characters.
5405 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5406 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5407 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5411 $as_echo_n "checking target system type... " >&6; }
5412 if test "${ac_cv_target+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5415 if test "x$target_alias" = x; then
5416 ac_cv_target=$ac_cv_host
5418 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5419 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5424 $as_echo "$ac_cv_target" >&6; }
5425 case $ac_cv_target in
5427 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5429 target=$ac_cv_target
5430 ac_save_IFS=$IFS; IFS='-'
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5440 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5443 # The aliases save the names the user supplied, while $host etc.
5444 # will get canonicalized.
5445 test -n "$target_alias" &&
5446 test "$program_prefix$program_suffix$program_transform_name" = \
5448 program_prefix=${target_alias}-
5456 LIBC_FATAL_STDERR_=1
5457 export LIBC_FATAL_STDERR_
5459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5460 # for constant arguments. Useless!
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5462 $as_echo_n "checking for working alloca.h... " >&6; }
5463 if test "${ac_cv_working_alloca_h+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5472 char *p = (char *) alloca (2 * sizeof (int));
5478 if ac_fn_c_try_link "$LINENO"; then :
5479 ac_cv_working_alloca_h=yes
5481 ac_cv_working_alloca_h=no
5483 rm -f core conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5487 $as_echo "$ac_cv_working_alloca_h" >&6; }
5488 if test $ac_cv_working_alloca_h = yes; then
5490 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5495 $as_echo_n "checking for alloca... " >&6; }
5496 if test "${ac_cv_func_alloca_works+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5502 # define alloca __builtin_alloca
5505 # include <malloc.h>
5506 # define alloca _alloca
5508 # ifdef HAVE_ALLOCA_H
5509 # include <alloca.h>
5514 # ifndef alloca /* predefined by HP cc +Olibcalls */
5525 char *p = (char *) alloca (1);
5531 if ac_fn_c_try_link "$LINENO"; then :
5532 ac_cv_func_alloca_works=yes
5534 ac_cv_func_alloca_works=no
5536 rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5540 $as_echo "$ac_cv_func_alloca_works" >&6; }
5542 if test $ac_cv_func_alloca_works = yes; then
5544 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5548 # that cause trouble. Some versions do not even contain alloca or
5549 # contain a buggy version. If you still want to use their alloca,
5550 # use ar to extract alloca.o from them instead of compiling alloca.c.
5556 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5558 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5562 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5563 if test "${ac_cv_os_cray+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #if defined CRAY && ! defined CRAY2
5575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5576 $EGREP "webecray" >/dev/null 2>&1; then :
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5585 $as_echo "$ac_cv_os_cray" >&6; }
5586 if test $ac_cv_os_cray = yes; then
5587 for ac_func in _getb67 GETB67 getb67; do
5588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5590 eval as_val=\$$as_ac_var
5591 if test "x$as_val" = x""yes; then :
5593 cat >>confdefs.h <<_ACEOF
5594 #define CRAY_STACKSEG_END $ac_func
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5604 $as_echo_n "checking stack direction for C alloca... " >&6; }
5605 if test "${ac_cv_c_stack_direction+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5608 if test "$cross_compiling" = yes; then :
5609 ac_cv_c_stack_direction=0
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 $ac_includes_default
5615 find_stack_direction (int *addr, int depth)
5620 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5621 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5626 main (int argc, char **argv)
5628 return find_stack_direction (0, argc + !argv + 20) < 0;
5631 if ac_fn_c_try_run "$LINENO"; then :
5632 ac_cv_c_stack_direction=1
5634 ac_cv_c_stack_direction=-1
5636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5637 conftest.$ac_objext conftest.beam conftest.$ac_ext
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5642 $as_echo "$ac_cv_c_stack_direction" >&6; }
5643 cat >>confdefs.h <<_ACEOF
5644 #define STACK_DIRECTION $ac_cv_c_stack_direction
5658 GNULIB_EUIDACCESS=0;
5666 GNULIB_GETDOMAINNAME=0;
5667 GNULIB_GETDTABLESIZE=0;
5669 GNULIB_GETHOSTNAME=0;
5671 GNULIB_GETLOGIN_R=0;
5672 GNULIB_GETPAGESIZE=0;
5673 GNULIB_GETUSERSHELL=0;
5674 GNULIB_GROUP_MEMBER=0;
5686 GNULIB_READLINKAT=0;
5688 GNULIB_SETHOSTNAME=0;
5693 GNULIB_UNISTD_H_NONBLOCKING=0;
5694 GNULIB_UNISTD_H_SIGPIPE=0;
5709 HAVE_GETDTABLESIZE=1;
5714 HAVE_GROUP_MEMBER=1;
5730 HAVE_DECL_ENVIRON=1;
5732 HAVE_DECL_FDATASYNC=1;
5733 HAVE_DECL_GETDOMAINNAME=1;
5734 HAVE_DECL_GETLOGIN_R=1;
5735 HAVE_DECL_GETPAGESIZE=1;
5736 HAVE_DECL_GETUSERSHELL=1;
5737 HAVE_DECL_SETHOSTNAME=1;
5738 HAVE_DECL_TTYNAME_R=1;
5746 REPLACE_FTRUNCATE=0;
5748 REPLACE_GETDOMAINNAME=0;
5749 REPLACE_GETLOGIN_R=0;
5750 REPLACE_GETGROUPS=0;
5751 REPLACE_GETPAGESIZE=0;
5764 REPLACE_TTYNAME_R=0;
5769 UNISTD_H_HAVE_WINSOCK2_H=0;
5770 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5787 HAVE_DECL_FDOPENDIR=1;
5794 REPLACE_FDOPENDIR=0;
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5799 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5800 if test "${gl_cv_have_include_next+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5803 rm -rf conftestd1a conftestd1b conftestd2
5804 mkdir conftestd1a conftestd1b conftestd2
5805 cat <<EOF > conftestd1a/conftest.h
5806 #define DEFINED_IN_CONFTESTD1
5807 #include_next <conftest.h>
5808 #ifdef DEFINED_IN_CONFTESTD2
5811 #error "include_next doesn't work"
5814 cat <<EOF > conftestd1b/conftest.h
5815 #define DEFINED_IN_CONFTESTD1
5817 #include_next <conftest.h>
5818 #ifdef DEFINED_IN_CONFTESTD2
5821 #error "include_next doesn't work"
5824 cat <<EOF > conftestd2/conftest.h
5825 #ifndef DEFINED_IN_CONFTESTD1
5826 #error "include_next test doesn't work"
5828 #define DEFINED_IN_CONFTESTD2
5830 gl_save_CPPFLAGS="$CPPFLAGS"
5831 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <conftest.h>
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 gl_cv_have_include_next=yes
5839 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <conftest.h>
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 gl_cv_have_include_next=buggy
5847 gl_cv_have_include_next=no
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 CPPFLAGS="$gl_save_CPPFLAGS"
5854 rm -rf conftestd1a conftestd1b conftestd2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5858 $as_echo "$gl_cv_have_include_next" >&6; }
5859 PRAGMA_SYSTEM_HEADER=
5860 if test $gl_cv_have_include_next = yes; then
5861 INCLUDE_NEXT=include_next
5862 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5863 if test -n "$GCC"; then
5864 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5867 if test $gl_cv_have_include_next = buggy; then
5868 INCLUDE_NEXT=include
5869 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5871 INCLUDE_NEXT=include
5872 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5879 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5880 if test "${gl_cv_pragma_columns+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "choke me" >/dev/null 2>&1; then :
5893 gl_cv_pragma_columns=yes
5895 gl_cv_pragma_columns=no
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5902 $as_echo "$gl_cv_pragma_columns" >&6; }
5903 if test $gl_cv_pragma_columns = yes; then
5904 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5913 for ac_header in $ac_header_list
5915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5918 eval as_val=\$$as_ac_Header
5919 if test "x$as_val" = x""yes; then :
5920 cat >>confdefs.h <<_ACEOF
5921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5936 $as_echo_n "checking for mbstate_t... " >&6; }
5937 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5946 included before <wchar.h>. */
5954 mbstate_t x; return sizeof x;
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 ac_cv_type_mbstate_t=yes
5962 ac_cv_type_mbstate_t=no
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5967 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5968 if test $ac_cv_type_mbstate_t = yes; then
5970 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5974 $as_echo "#define mbstate_t int" >>confdefs.h
5981 for ac_func in $ac_func_list
5983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5985 eval as_val=\$$as_ac_var
5986 if test "x$as_val" = x""yes; then :
5987 cat >>confdefs.h <<_ACEOF
5988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6088 GNULIB_REMAINDERF=0;
6089 GNULIB_REMAINDERL=0;
6175 HAVE_DECL_COPYSIGNF=1;
6192 HAVE_DECL_REMAINDER=1;
6193 HAVE_DECL_REMAINDERL=1;
6255 REPLACE_REMAINDER=0;
6256 REPLACE_REMAINDERF=0;
6257 REPLACE_REMAINDERL=0;
6262 REPLACE_SIGNBIT_USING_GCC=0;
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6270 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6271 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6282 int e; return frexp (x, &e) > 0;
6287 if ac_fn_c_try_link "$LINENO"; then :
6288 gl_cv_func_frexp_no_libm=yes
6290 gl_cv_func_frexp_no_libm=no
6292 rm -f core conftest.err conftest.$ac_objext \
6293 conftest$ac_exeext conftest.$ac_ext
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6297 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6303 $as_echo_n "checking whether long double and double are the same... " >&6; }
6304 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6313 typedef int check[sizeof (long double) == sizeof (double)
6314 && LDBL_MANT_DIG == DBL_MANT_DIG
6315 && LDBL_MAX_EXP == DBL_MAX_EXP
6316 && LDBL_MIN_EXP == DBL_MIN_EXP
6323 if ac_fn_c_try_compile "$LINENO"; then :
6324 gl_cv_long_double_equals_double=yes
6326 gl_cv_long_double_equals_double=no
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6332 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6333 if test $gl_cv_long_double_equals_double = yes; then
6335 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6337 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6339 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345 $as_echo_n "checking for unsigned long long int... " >&6; }
6346 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6349 ac_cv_type_unsigned_long_long_int=yes
6350 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6354 /* For now, do not test the preprocessor; as of 2007 there are too many
6355 implementations with broken preprocessors. Perhaps this can
6356 be revisited in 2012. In the meantime, code should not expect
6357 #if to work with literals wider than 32 bits. */
6358 /* Test literals. */
6359 long long int ll = 9223372036854775807ll;
6360 long long int nll = -9223372036854775807LL;
6361 unsigned long long int ull = 18446744073709551615ULL;
6362 /* Test constant expressions. */
6363 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6365 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6371 /* Test availability of runtime routines for shift and division. */
6372 long long int llmax = 9223372036854775807ll;
6373 unsigned long long int ullmax = 18446744073709551615ull;
6374 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6375 | (llmax / ll) | (llmax % ll)
6376 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6377 | (ullmax / ull) | (ullmax % ull));
6383 if ac_fn_c_try_link "$LINENO"; then :
6386 ac_cv_type_unsigned_long_long_int=no
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6393 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6394 if test $ac_cv_type_unsigned_long_long_int = yes; then
6396 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6403 $as_echo_n "checking for long long int... " >&6; }
6404 if test "${ac_cv_type_long_long_int+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6407 ac_cv_type_long_long_int=yes
6408 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6409 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6410 if test $ac_cv_type_long_long_int = yes; then
6411 if test "$cross_compiling" = yes; then :
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6419 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6420 # define LLONG_MAX (HALF - 1 + HALF)
6425 long long int n = 1;
6429 long long int m = n << i;
6432 if (LLONG_MAX / 2 < m)
6440 if ac_fn_c_try_run "$LINENO"; then :
6443 ac_cv_type_long_long_int=no
6445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6446 conftest.$ac_objext conftest.beam conftest.$ac_ext
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6453 $as_echo "$ac_cv_type_long_long_int" >&6; }
6454 if test $ac_cv_type_long_long_int = yes; then
6456 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6465 gl_cv_c_multiarch=no
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #ifndef __APPLE_CC__
6469 not a universal capable compiler
6474 if ac_fn_c_try_compile "$LINENO"; then :
6478 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6479 if test -n "$prev"; then
6481 i?86 | x86_64 | ppc | ppc64)
6482 if test -z "$arch" || test "$arch" = "$word"; then
6485 gl_cv_c_multiarch=yes
6491 if test "x$word" = "x-arch"; then
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 if test $gl_cv_c_multiarch = yes; then
6500 APPLE_UNIVERSAL_BUILD=1
6502 APPLE_UNIVERSAL_BUILD=0
6509 if test $ac_cv_type_long_long_int = yes; then
6510 HAVE_LONG_LONG_INT=1
6512 HAVE_LONG_LONG_INT=0
6516 if test $ac_cv_type_unsigned_long_long_int = yes; then
6517 HAVE_UNSIGNED_LONG_LONG_INT=1
6519 HAVE_UNSIGNED_LONG_LONG_INT=0
6524 if test $ac_cv_header_wchar_h = yes; then
6531 if test $ac_cv_header_inttypes_h = yes; then
6538 if test $ac_cv_header_sys_types_h = yes; then
6554 if test $gl_cv_have_include_next = yes; then
6555 gl_cv_next_stdint_h='<'stdint.h'>'
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6558 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6559 if test "${gl_cv_next_stdint_h+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6563 if test $ac_cv_header_stdint_h = yes; then
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6572 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6573 *) gl_absname_cpp="$ac_cpp" ;;
6578 gl_dirsep_regex='[/\\]'
6581 gl_dirsep_regex='\/'
6584 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6586 gl_header_literal_regex=`echo 'stdint.h' \
6587 | sed -e "$gl_make_literal_regex_sed"`
6588 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6589 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6594 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6595 sed -n "$gl_absolute_header_sed"`'"'
6597 gl_cv_next_stdint_h='<'stdint.h'>'
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6603 $as_echo "$gl_cv_next_stdint_h" >&6; }
6605 NEXT_STDINT_H=$gl_cv_next_stdint_h
6607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6609 gl_next_as_first_directive='<'stdint.h'>'
6611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6612 gl_next_as_first_directive=$gl_cv_next_stdint_h
6614 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6619 if test $ac_cv_header_stdint_h = yes; then
6626 if test $ac_cv_header_stdint_h = yes; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6628 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6629 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6632 gl_cv_header_working_stdint_h=no
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6637 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6639 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6640 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6641 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6645 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6646 included before <wchar.h>. */
6657 int8_t a1 = INT8_MAX;
6658 int8_t a1min = INT8_MIN;
6661 int16_t a2 = INT16_MAX;
6662 int16_t a2min = INT16_MIN;
6665 int32_t a3 = INT32_MAX;
6666 int32_t a3min = INT32_MIN;
6669 int64_t a4 = INT64_MAX;
6670 int64_t a4min = INT64_MIN;
6673 uint8_t b1 = UINT8_MAX;
6675 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6678 uint16_t b2 = UINT16_MAX;
6681 uint32_t b3 = UINT32_MAX;
6684 uint64_t b4 = UINT64_MAX;
6686 int_least8_t c1 = INT8_C (0x7f);
6687 int_least8_t c1max = INT_LEAST8_MAX;
6688 int_least8_t c1min = INT_LEAST8_MIN;
6689 int_least16_t c2 = INT16_C (0x7fff);
6690 int_least16_t c2max = INT_LEAST16_MAX;
6691 int_least16_t c2min = INT_LEAST16_MIN;
6692 int_least32_t c3 = INT32_C (0x7fffffff);
6693 int_least32_t c3max = INT_LEAST32_MAX;
6694 int_least32_t c3min = INT_LEAST32_MIN;
6695 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6696 int_least64_t c4max = INT_LEAST64_MAX;
6697 int_least64_t c4min = INT_LEAST64_MIN;
6698 uint_least8_t d1 = UINT8_C (0xff);
6699 uint_least8_t d1max = UINT_LEAST8_MAX;
6700 uint_least16_t d2 = UINT16_C (0xffff);
6701 uint_least16_t d2max = UINT_LEAST16_MAX;
6702 uint_least32_t d3 = UINT32_C (0xffffffff);
6703 uint_least32_t d3max = UINT_LEAST32_MAX;
6704 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6705 uint_least64_t d4max = UINT_LEAST64_MAX;
6706 int_fast8_t e1 = INT_FAST8_MAX;
6707 int_fast8_t e1min = INT_FAST8_MIN;
6708 int_fast16_t e2 = INT_FAST16_MAX;
6709 int_fast16_t e2min = INT_FAST16_MIN;
6710 int_fast32_t e3 = INT_FAST32_MAX;
6711 int_fast32_t e3min = INT_FAST32_MIN;
6712 int_fast64_t e4 = INT_FAST64_MAX;
6713 int_fast64_t e4min = INT_FAST64_MIN;
6714 uint_fast8_t f1 = UINT_FAST8_MAX;
6715 uint_fast16_t f2 = UINT_FAST16_MAX;
6716 uint_fast32_t f3 = UINT_FAST32_MAX;
6717 uint_fast64_t f4 = UINT_FAST64_MAX;
6719 intptr_t g = INTPTR_MAX;
6720 intptr_t gmin = INTPTR_MIN;
6723 uintptr_t h = UINTPTR_MAX;
6725 intmax_t i = INTMAX_MAX;
6726 uintmax_t j = UINTMAX_MAX;
6728 #include <limits.h> /* for CHAR_BIT */
6729 #define TYPE_MINIMUM(t) \
6730 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6731 #define TYPE_MAXIMUM(t) \
6732 ((t) ((t) 0 < (t) -1 \
6734 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6737 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6738 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6740 /* Detect bug in FreeBSD 6.0 / ia64. */
6741 int check_SIG_ATOMIC:
6742 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6743 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6745 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6747 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6748 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6750 /* Detect bug in mingw. */
6752 WINT_MIN == TYPE_MINIMUM (wint_t)
6753 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6756 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6758 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6760 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6762 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6764 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6767 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6770 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6773 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6775 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6776 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6777 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6778 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6779 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6780 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6781 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6782 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6783 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6784 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6785 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 if test "$cross_compiling" = yes; then :
6798 gl_cv_header_working_stdint_h=yes
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6805 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6809 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6810 included before <wchar.h>. */
6822 #define MVAL(macro) MVAL1(macro)
6823 #define MVAL1(expression) #expression
6824 static const char *macro_values[] =
6858 for (mv = macro_values; *mv != NULL; mv++)
6860 const char *value = *mv;
6861 /* Test whether it looks like a cast expression. */
6862 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6863 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6864 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6865 || strncmp (value, "((int)"/*)*/, 6) == 0
6866 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6867 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6868 return mv - macro_values + 1;
6876 if ac_fn_c_try_run "$LINENO"; then :
6877 gl_cv_header_working_stdint_h=yes
6879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6880 conftest.$ac_objext conftest.beam conftest.$ac_ext
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6889 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6891 if test "$gl_cv_header_working_stdint_h" = yes; then
6894 for ac_header in sys/inttypes.h sys/bitypes.h
6896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6898 eval as_val=\$$as_ac_Header
6899 if test "x$as_val" = x""yes; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6908 if test $ac_cv_header_sys_inttypes_h = yes; then
6909 HAVE_SYS_INTTYPES_H=1
6911 HAVE_SYS_INTTYPES_H=0
6914 if test $ac_cv_header_sys_bitypes_h = yes; then
6915 HAVE_SYS_BITYPES_H=1
6917 HAVE_SYS_BITYPES_H=0
6923 if test $APPLE_UNIVERSAL_BUILD = 0; then
6926 for gltype in ptrdiff_t size_t ; do
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6928 $as_echo_n "checking for bit size of $gltype... " >&6; }
6929 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6930 $as_echo_n "(cached) " >&6
6932 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6933 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6934 included before <wchar.h>. */
6943 #include <limits.h>"; then :
6949 eval gl_cv_bitsizeof_${gltype}=\$result
6952 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6954 $as_echo "$ac_res" >&6; }
6955 eval result=\$gl_cv_bitsizeof_${gltype}
6956 if test $result = unknown; then
6959 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6960 cat >>confdefs.h <<_ACEOF
6961 #define BITSIZEOF_${GLTYPE} $result
6964 eval BITSIZEOF_${GLTYPE}=\$result
6971 for gltype in sig_atomic_t wchar_t wint_t ; do
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6973 $as_echo_n "checking for bit size of $gltype... " >&6; }
6974 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6975 $as_echo_n "(cached) " >&6
6977 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6978 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6979 included before <wchar.h>. */
6988 #include <limits.h>"; then :
6994 eval gl_cv_bitsizeof_${gltype}=\$result
6997 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6999 $as_echo "$ac_res" >&6; }
7000 eval result=\$gl_cv_bitsizeof_${gltype}
7001 if test $result = unknown; then
7004 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7005 cat >>confdefs.h <<_ACEOF
7006 #define BITSIZEOF_${GLTYPE} $result
7009 eval BITSIZEOF_${GLTYPE}=\$result
7015 for gltype in sig_atomic_t wchar_t wint_t ; do
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7017 $as_echo_n "checking whether $gltype is signed... " >&6; }
7018 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7019 $as_echo_n "(cached) " >&6
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7024 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7025 included before <wchar.h>. */
7034 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7043 if ac_fn_c_try_compile "$LINENO"; then :
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 eval gl_cv_type_${gltype}_signed=\$result
7052 eval ac_res=\$gl_cv_type_${gltype}_signed
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7054 $as_echo "$ac_res" >&6; }
7055 eval result=\$gl_cv_type_${gltype}_signed
7056 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7057 if test "$result" = yes; then
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_SIGNED_${GLTYPE} 1
7062 eval HAVE_SIGNED_${GLTYPE}=1
7064 eval HAVE_SIGNED_${GLTYPE}=0
7069 gl_cv_type_ptrdiff_t_signed=yes
7070 gl_cv_type_size_t_signed=no
7071 if test $APPLE_UNIVERSAL_BUILD = 0; then
7074 for gltype in ptrdiff_t size_t ; do
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7076 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7077 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7078 $as_echo_n "(cached) " >&6
7080 eval gl_cv_type_${gltype}_suffix=no
7081 eval result=\$gl_cv_type_${gltype}_signed
7082 if test "$result" = yes; then
7087 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7090 l) gltype1='long int';;
7091 ll) gltype1='long long int';;
7092 i64) gltype1='__int64';;
7093 u) gltype1='unsigned int';;
7094 ul) gltype1='unsigned long int';;
7095 ull) gltype1='unsigned long long int';;
7096 ui64)gltype1='unsigned __int64';;
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7101 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7102 included before <wchar.h>. */
7112 extern $gltype1 foo;
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 eval gl_cv_type_${gltype}_suffix=\$glsuf
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 eval result=\$gl_cv_type_${gltype}_suffix
7126 test "$result" != no && break
7129 eval ac_res=\$gl_cv_type_${gltype}_suffix
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7131 $as_echo "$ac_res" >&6; }
7132 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7133 eval result=\$gl_cv_type_${gltype}_suffix
7134 test "$result" = no && result=
7135 eval ${GLTYPE}_SUFFIX=\$result
7136 cat >>confdefs.h <<_ACEOF
7137 #define ${GLTYPE}_SUFFIX $result
7146 for gltype in sig_atomic_t wchar_t wint_t ; do
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7148 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7149 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7150 $as_echo_n "(cached) " >&6
7152 eval gl_cv_type_${gltype}_suffix=no
7153 eval result=\$gl_cv_type_${gltype}_signed
7154 if test "$result" = yes; then
7159 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7162 l) gltype1='long int';;
7163 ll) gltype1='long long int';;
7164 i64) gltype1='__int64';;
7165 u) gltype1='unsigned int';;
7166 ul) gltype1='unsigned long int';;
7167 ull) gltype1='unsigned long long int';;
7168 ui64)gltype1='unsigned __int64';;
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7173 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7174 included before <wchar.h>. */
7184 extern $gltype1 foo;
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 eval gl_cv_type_${gltype}_suffix=\$glsuf
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 eval result=\$gl_cv_type_${gltype}_suffix
7198 test "$result" != no && break
7201 eval ac_res=\$gl_cv_type_${gltype}_suffix
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7203 $as_echo "$ac_res" >&6; }
7204 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7205 eval result=\$gl_cv_type_${gltype}_suffix
7206 test "$result" = no && result=
7207 eval ${GLTYPE}_SUFFIX=\$result
7208 cat >>confdefs.h <<_ACEOF
7209 #define ${GLTYPE}_SUFFIX $result
7216 if test $BITSIZEOF_WINT_T -lt 32; then
7223 if test -n "$STDINT_H"; then
7224 GL_GENERATE_STDINT_H_TRUE=
7225 GL_GENERATE_STDINT_H_FALSE='#'
7227 GL_GENERATE_STDINT_H_TRUE='#'
7228 GL_GENERATE_STDINT_H_FALSE=
7239 HAVE_DECL_IMAXABS=1;
7240 HAVE_DECL_IMAXDIV=1;
7241 HAVE_DECL_STRTOIMAX=1;
7242 HAVE_DECL_STRTOUMAX=1;
7243 REPLACE_STRTOIMAX=0;
7244 INT32_MAX_LT_INTMAX_MAX=1;
7245 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7246 PRI_MACROS_BROKEN=0;
7247 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7248 UINT32_MAX_LT_UINTMAX_MAX=1;
7249 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7265 if test $gl_cv_have_include_next = yes; then
7266 gl_cv_next_inttypes_h='<'inttypes.h'>'
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7269 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7270 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7274 if test $ac_cv_header_inttypes_h = yes; then
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 #include <inttypes.h>
7283 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7284 *) gl_absname_cpp="$ac_cpp" ;;
7289 gl_dirsep_regex='[/\\]'
7292 gl_dirsep_regex='\/'
7295 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7297 gl_header_literal_regex=`echo 'inttypes.h' \
7298 | sed -e "$gl_make_literal_regex_sed"`
7299 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7300 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7305 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7306 sed -n "$gl_absolute_header_sed"`'"'
7308 gl_cv_next_inttypes_h='<'inttypes.h'>'
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7314 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7316 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7318 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7319 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7320 gl_next_as_first_directive='<'inttypes.h'>'
7322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7323 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7325 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7334 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7335 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7337 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7338 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7339 $as_echo_n "(cached) " >&6
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #include <inttypes.h>
7354 if ac_fn_c_try_compile "$LINENO"; then :
7355 eval "$as_gl_Symbol=yes"
7357 eval "$as_gl_Symbol=no"
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 eval ac_res=\$$as_gl_Symbol
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7363 $as_echo "$ac_res" >&6; }
7364 eval as_val=\$$as_gl_Symbol
7365 if test "x$as_val" = x""yes; then :
7366 cat >>confdefs.h <<_ACEOF
7367 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7370 eval ac_cv_have_decl_$gl_func=yes
7376 for ac_header in inttypes.h
7378 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7379 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7380 cat >>confdefs.h <<_ACEOF
7381 #define HAVE_INTTYPES_H 1
7388 if test $ac_cv_header_inttypes_h = yes; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7390 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7391 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7398 #include <inttypes.h>
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 gt_cv_inttypes_pri_broken=no
7414 gt_cv_inttypes_pri_broken=yes
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7420 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7422 if test "$gt_cv_inttypes_pri_broken" = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425 #define PRI_MACROS_BROKEN 1
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7436 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7437 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7441 if test "$cross_compiling" = yes; then :
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7446 #if defined arm || defined __arm || defined __arm__
7451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7452 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7453 gl_cv_cc_double_expbit0="unknown"
7457 if test "${ac_cv_c_bigendian+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7460 ac_cv_c_bigendian=unknown
7461 # See if we're dealing with a universal compiler.
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #ifndef __APPLE_CC__
7465 not a universal capable compiler
7470 if ac_fn_c_try_compile "$LINENO"; then :
7472 # Check for potential -arch flags. It is not universal unless
7473 # there are at least two -arch flags with different values.
7476 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7477 if test -n "$ac_prev"; then
7479 i?86 | x86_64 | ppc | ppc64)
7480 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7483 ac_cv_c_bigendian=universal
7489 elif test "x$ac_word" = "x-arch"; then
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 if test $ac_cv_c_bigendian = unknown; then
7496 # See if sys/param.h defines the BYTE_ORDER macro.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <sys/types.h>
7500 #include <sys/param.h>
7505 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7506 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516 # It does; now see whether it defined to BIG_ENDIAN or not.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <sys/types.h>
7520 #include <sys/param.h>
7525 #if BYTE_ORDER != BIG_ENDIAN
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 ac_cv_c_bigendian=yes
7536 ac_cv_c_bigendian=no
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 if test $ac_cv_c_bigendian = unknown; then
7543 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7551 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7559 if ac_fn_c_try_compile "$LINENO"; then :
7560 # It does; now see whether it defined to _BIG_ENDIAN or not.
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_cv_c_bigendian=yes
7579 ac_cv_c_bigendian=no
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 if test $ac_cv_c_bigendian = unknown; then
7586 # Compile a test program.
7587 if test "$cross_compiling" = yes; then :
7588 # Try to guess by grepping values from an object file.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 short int ascii_mm[] =
7592 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7593 short int ascii_ii[] =
7594 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7595 int use_ascii (int i) {
7596 return ascii_mm[i] + ascii_ii[i];
7598 short int ebcdic_ii[] =
7599 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7600 short int ebcdic_mm[] =
7601 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7602 int use_ebcdic (int i) {
7603 return ebcdic_mm[i] + ebcdic_ii[i];
7610 return use_ascii (foo) == use_ebcdic (foo);
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7617 ac_cv_c_bigendian=yes
7619 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7620 if test "$ac_cv_c_bigendian" = unknown; then
7621 ac_cv_c_bigendian=no
7623 # finding both strings is unlikely to happen, but who knows?
7624 ac_cv_c_bigendian=unknown
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 $ac_includes_default
7637 /* Are we little or big endian? From Harbison&Steele. */
7641 char c[sizeof (long int)];
7644 return u.c[sizeof (long int) - 1] == 1;
7650 if ac_fn_c_try_run "$LINENO"; then :
7651 ac_cv_c_bigendian=no
7653 ac_cv_c_bigendian=yes
7655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7656 conftest.$ac_objext conftest.beam conftest.$ac_ext
7662 case $ac_cv_c_bigendian in #(
7664 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7666 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7669 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7673 gl_cv_cc_double_expbit0="unknown" ;;
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7690 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7691 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7692 static unsigned int ored_words[NWORDS];
7693 static unsigned int anded_words[NWORDS];
7694 static void add_to_ored_words (double x)
7698 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7699 memset (&m, 0, sizeof (memory_double));
7701 for (i = 0; i < NWORDS; i++)
7703 ored_words[i] |= m.word[i];
7704 anded_words[i] &= m.word[i];
7710 FILE *fp = fopen ("conftest.out", "w");
7713 for (j = 0; j < NWORDS; j++)
7714 anded_words[j] = ~ (unsigned int) 0;
7715 add_to_ored_words (0.25);
7716 add_to_ored_words (0.5);
7717 add_to_ored_words (1.0);
7718 add_to_ored_words (2.0);
7719 add_to_ored_words (4.0);
7720 /* Remove bits that are common (e.g. if representation of the first mantissa
7721 bit is explicit). */
7722 for (j = 0; j < NWORDS; j++)
7723 ored_words[j] &= ~anded_words[j];
7724 /* Now find the nonzero word. */
7725 for (j = 0; j < NWORDS; j++)
7726 if (ored_words[j] != 0)
7731 for (i = j + 1; i < NWORDS; i++)
7732 if (ored_words[i] != 0)
7734 fprintf (fp, "unknown");
7735 return (fclose (fp) != 0);
7738 if ((ored_words[j] >> i) & 1)
7740 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7741 return (fclose (fp) != 0);
7744 fprintf (fp, "unknown");
7745 return (fclose (fp) != 0);
7749 if ac_fn_c_try_run "$LINENO"; then :
7750 gl_cv_cc_double_expbit0=`cat conftest.out`
7752 gl_cv_cc_double_expbit0="unknown"
7754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7755 conftest.$ac_objext conftest.beam conftest.$ac_ext
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7762 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7763 case "$gl_cv_cc_double_expbit0" in
7765 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7766 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
7768 cat >>confdefs.h <<_ACEOF
7769 #define DBL_EXPBIT0_WORD $word
7773 cat >>confdefs.h <<_ACEOF
7774 #define DBL_EXPBIT0_BIT $bit
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7782 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7783 if test "${ac_cv_c_bigendian+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7786 ac_cv_c_bigendian=unknown
7787 # See if we're dealing with a universal compiler.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #ifndef __APPLE_CC__
7791 not a universal capable compiler
7796 if ac_fn_c_try_compile "$LINENO"; then :
7798 # Check for potential -arch flags. It is not universal unless
7799 # there are at least two -arch flags with different values.
7802 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7803 if test -n "$ac_prev"; then
7805 i?86 | x86_64 | ppc | ppc64)
7806 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7809 ac_cv_c_bigendian=universal
7815 elif test "x$ac_word" = "x-arch"; then
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 if test $ac_cv_c_bigendian = unknown; then
7822 # See if sys/param.h defines the BYTE_ORDER macro.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <sys/types.h>
7826 #include <sys/param.h>
7831 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7832 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7841 if ac_fn_c_try_compile "$LINENO"; then :
7842 # It does; now see whether it defined to BIG_ENDIAN or not.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #include <sys/types.h>
7846 #include <sys/param.h>
7851 #if BYTE_ORDER != BIG_ENDIAN
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860 ac_cv_c_bigendian=yes
7862 ac_cv_c_bigendian=no
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 if test $ac_cv_c_bigendian = unknown; then
7869 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7877 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 # It does; now see whether it defined to _BIG_ENDIAN or not.
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7902 if ac_fn_c_try_compile "$LINENO"; then :
7903 ac_cv_c_bigendian=yes
7905 ac_cv_c_bigendian=no
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 if test $ac_cv_c_bigendian = unknown; then
7912 # Compile a test program.
7913 if test "$cross_compiling" = yes; then :
7914 # Try to guess by grepping values from an object file.
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 short int ascii_mm[] =
7918 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7919 short int ascii_ii[] =
7920 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7921 int use_ascii (int i) {
7922 return ascii_mm[i] + ascii_ii[i];
7924 short int ebcdic_ii[] =
7925 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7926 short int ebcdic_mm[] =
7927 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7928 int use_ebcdic (int i) {
7929 return ebcdic_mm[i] + ebcdic_ii[i];
7936 return use_ascii (foo) == use_ebcdic (foo);
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7943 ac_cv_c_bigendian=yes
7945 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7946 if test "$ac_cv_c_bigendian" = unknown; then
7947 ac_cv_c_bigendian=no
7949 # finding both strings is unlikely to happen, but who knows?
7950 ac_cv_c_bigendian=unknown
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 $ac_includes_default
7963 /* Are we little or big endian? From Harbison&Steele. */
7967 char c[sizeof (long int)];
7970 return u.c[sizeof (long int) - 1] == 1;
7976 if ac_fn_c_try_run "$LINENO"; then :
7977 ac_cv_c_bigendian=no
7979 ac_cv_c_bigendian=yes
7981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982 conftest.$ac_objext conftest.beam conftest.$ac_ext
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7988 $as_echo "$ac_cv_c_bigendian" >&6; }
7989 case $ac_cv_c_bigendian in #(
7991 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7997 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8001 as_fn_error "unknown endianness
8002 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8008 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8009 if test "${am_cv_langinfo_codeset+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 #include <langinfo.h>
8018 char* cs = nl_langinfo(CODESET); return !cs;
8023 if ac_fn_c_try_link "$LINENO"; then :
8024 am_cv_langinfo_codeset=yes
8026 am_cv_langinfo_codeset=no
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8033 $as_echo "$am_cv_langinfo_codeset" >&6; }
8034 if test $am_cv_langinfo_codeset = yes; then
8036 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8050 $as_echo_n "checking for working fcntl.h... " >&6; }
8051 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8054 if test "$cross_compiling" = yes; then :
8055 gl_cv_header_working_fcntl_h=cross-compiling
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8060 #include <sys/stat.h>
8062 # include <unistd.h>
8063 #else /* on Windows with MSVC */
8065 # include <stdlib.h>
8066 # defined sleep(n) _sleep ((n) * 1000)
8073 #define O_NOFOLLOW 0
8075 static int const constants[] =
8077 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8078 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8085 int result = !constants;
8088 static char const sym[] = "conftest.sym";
8089 if (symlink ("/dev/null", sym) != 0)
8093 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8100 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8104 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8115 static char const file[] = "confdefs.h";
8116 int fd = open (file, O_RDONLY | O_NOATIME);
8122 if (fstat (fd, &st0) != 0)
8128 if (read (fd, &c, 1) != 1)
8132 if (close (fd) != 0)
8137 if (stat (file, &st1) != 0)
8140 if (st0.st_atime != st1.st_atime)
8152 if ac_fn_c_try_run "$LINENO"; then :
8153 gl_cv_header_working_fcntl_h=yes
8156 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8157 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8158 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8159 *) gl_cv_header_working_fcntl_h='no';;
8162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8163 conftest.$ac_objext conftest.beam conftest.$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8168 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8170 case $gl_cv_header_working_fcntl_h in #(
8171 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8175 cat >>confdefs.h <<_ACEOF
8176 #define HAVE_WORKING_O_NOATIME $ac_val
8180 case $gl_cv_header_working_fcntl_h in #(
8181 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8185 cat >>confdefs.h <<_ACEOF
8186 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8190 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8191 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8197 cat >>confdefs.h <<_ACEOF
8198 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8203 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8204 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8210 #include <features.h>
8211 #ifdef __GNU_LIBRARY__
8212 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "Lucky" >/dev/null 2>&1; then :
8223 ac_cv_gnu_library_2_1=yes
8225 ac_cv_gnu_library_2_1=no
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8233 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8235 GLIBC21="$ac_cv_gnu_library_2_1"
8247 GNULIB_MBSNRTOWCS=0;
8250 GNULIB_WCSNRTOMBS=0;
8267 GNULIB_WCSCASECMP=0;
8268 GNULIB_WCSNCASECMP=0;
8318 HAVE_DECL_WCWIDTH=1;
8319 REPLACE_MBSTATE_T=0;
8325 REPLACE_MBSRTOWCS=0;
8326 REPLACE_MBSNRTOWCS=0;
8328 REPLACE_WCSRTOMBS=0;
8329 REPLACE_WCSNRTOMBS=0;
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8341 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8342 if test "${gt_cv_locale_ja+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8351 #if HAVE_LANGINFO_CODESET
8352 # include <langinfo.h>
8361 /* Check whether the given locale name is recognized by the system. */
8362 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8363 /* On native Windows, setlocale(category, "") looks at the system settings,
8364 not at the environment variables. Also, when an encoding suffix such
8365 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8366 category of the locale to "C". */
8367 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8368 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8371 if (setlocale (LC_ALL, "") == NULL) return 1;
8373 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8374 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8375 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8376 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8377 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8378 some unit tests fail.
8379 On MirBSD 10, when an unsupported locale is specified, setlocale()
8380 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8381 #if HAVE_LANGINFO_CODESET
8383 const char *cs = nl_langinfo (CODESET);
8384 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8385 || strcmp (cs, "UTF-8") == 0)
8390 /* On Cygwin, avoid locale names without encoding suffix, because the
8391 locale_charset() function relies on the encoding suffix. Note that
8392 LC_ALL is set on the command line. */
8393 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8395 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8397 if (MB_CUR_MAX == 1)
8399 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8400 This excludes the UTF-8 encoding (except on MirBSD). */
8401 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8402 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8403 for (p = buf; *p != '\0'; p++)
8404 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8411 (eval $ac_link) 2>&5
8413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8414 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8416 # Handle native Windows specially, because there setlocale() interprets
8417 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8418 # "fr" or "fra" as "French" or "French_France.1252",
8419 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8420 # "ja" as "Japanese" or "Japanese_Japan.932",
8423 # Note that on native Windows, the Japanese locale is
8424 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8425 # cannot use it here.
8426 gt_cv_locale_ja=none
8429 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8430 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8431 # configure script would override the LC_ALL setting. Likewise for
8432 # LC_CTYPE, which is also set at the beginning of the configure script.
8433 # Test for the AIX locale name.
8434 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8435 gt_cv_locale_ja=ja_JP
8437 # Test for the locale name with explicit encoding suffix.
8438 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8439 gt_cv_locale_ja=ja_JP.EUC-JP
8441 # Test for the HP-UX, OSF/1, NetBSD locale name.
8442 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8443 gt_cv_locale_ja=ja_JP.eucJP
8445 # Test for the IRIX, FreeBSD locale name.
8446 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8447 gt_cv_locale_ja=ja_JP.EUC
8449 # Test for the Solaris 7 locale name.
8450 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8453 # Special test for NetBSD 1.6.
8454 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8455 gt_cv_locale_ja=ja_JP.eucJP
8458 gt_cv_locale_ja=none
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8472 $as_echo "$gt_cv_locale_ja" >&6; }
8473 LOCALE_JA=$gt_cv_locale_ja
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8480 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8481 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8491 #if HAVE_LANGINFO_CODESET
8492 # include <langinfo.h>
8501 /* Check whether the given locale name is recognized by the system. */
8502 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8503 /* On native Windows, setlocale(category, "") looks at the system settings,
8504 not at the environment variables. Also, when an encoding suffix such
8505 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8506 category of the locale to "C". */
8507 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8508 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8511 if (setlocale (LC_ALL, "") == NULL) return 1;
8513 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8514 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8515 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8516 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8517 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8518 some unit tests fail.
8519 On MirBSD 10, when an unsupported locale is specified, setlocale()
8520 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8521 #if HAVE_LANGINFO_CODESET
8523 const char *cs = nl_langinfo (CODESET);
8524 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8525 || strcmp (cs, "UTF-8") == 0)
8530 /* On Cygwin, avoid locale names without encoding suffix, because the
8531 locale_charset() function relies on the encoding suffix. Note that
8532 LC_ALL is set on the command line. */
8533 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8535 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8536 This excludes the UTF-8 encoding (except on MirBSD). */
8537 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8538 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8539 for (p = buf; *p != '\0'; p++)
8540 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8542 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8543 single wide character. This excludes the GB2312 and GBK encodings. */
8544 if (mblen ("\203\062\332\066", 5) != 4)
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8551 (eval $ac_link) 2>&5
8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8556 # Handle native Windows specially, because there setlocale() interprets
8557 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8558 # "fr" or "fra" as "French" or "French_France.1252",
8559 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8560 # "ja" as "Japanese" or "Japanese_Japan.932",
8563 # Test for the hypothetical native Windows locale name.
8564 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8565 gt_cv_locale_zh_CN=Chinese_China.54936
8568 gt_cv_locale_zh_CN=none
8572 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8573 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8574 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8575 gt_cv_locale_zh_CN=none
8578 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8579 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8580 # configure script would override the LC_ALL setting. Likewise for
8581 # LC_CTYPE, which is also set at the beginning of the configure script.
8582 # Test for the locale name without encoding suffix.
8583 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8584 gt_cv_locale_zh_CN=zh_CN
8586 # Test for the locale name with explicit encoding suffix.
8587 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8588 gt_cv_locale_zh_CN=zh_CN.GB18030
8591 gt_cv_locale_zh_CN=none
8597 # If there was a link error, due to mblen(), the system is so old that
8598 # it certainly doesn't have a chinese locale.
8599 gt_cv_locale_zh_CN=none
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8605 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8606 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8612 $as_echo_n "checking for a french Unicode locale... " >&6; }
8613 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8622 #if HAVE_LANGINFO_CODESET
8623 # include <langinfo.h>
8630 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8631 imitates locale dependent behaviour by looking at the environment
8632 variables, and all locales use the UTF-8 encoding. */
8633 #if !(defined __BEOS__ || defined __HAIKU__)
8634 /* Check whether the given locale name is recognized by the system. */
8635 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8636 /* On native Windows, setlocale(category, "") looks at the system settings,
8637 not at the environment variables. Also, when an encoding suffix such
8638 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8639 category of the locale to "C". */
8640 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8641 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8644 if (setlocale (LC_ALL, "") == NULL) return 1;
8646 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8647 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8648 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8649 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8650 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8651 some unit tests fail. */
8652 # if HAVE_LANGINFO_CODESET
8654 const char *cs = nl_langinfo (CODESET);
8655 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8660 /* On Cygwin, avoid locale names without encoding suffix, because the
8661 locale_charset() function relies on the encoding suffix. Note that
8662 LC_ALL is set on the command line. */
8663 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8665 /* Check whether in the abbreviation of the second month, the second
8666 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8667 two bytes long, with UTF-8 encoding. */
8668 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8669 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8670 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8673 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8674 /* Check whether the decimal separator is a comma.
8675 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8676 are nl_langinfo(RADIXCHAR) are both ".". */
8677 if (localeconv () ->decimal_point[0] != ',') return 1;
8683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8684 (eval $ac_link) 2>&5
8686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8689 # Handle native Windows specially, because there setlocale() interprets
8690 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8691 # "fr" or "fra" as "French" or "French_France.1252",
8692 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8693 # "ja" as "Japanese" or "Japanese_Japan.932",
8696 # Test for the hypothetical native Windows locale name.
8697 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8698 gt_cv_locale_fr_utf8=French_France.65001
8701 gt_cv_locale_fr_utf8=none
8705 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8706 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8707 # configure script would override the LC_ALL setting. Likewise for
8708 # LC_CTYPE, which is also set at the beginning of the configure script.
8709 # Test for the usual locale name.
8710 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8711 gt_cv_locale_fr_utf8=fr_FR
8713 # Test for the locale name with explicit encoding suffix.
8714 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8715 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8717 # Test for the Solaris 7 locale name.
8718 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8719 gt_cv_locale_fr_utf8=fr.UTF-8
8722 gt_cv_locale_fr_utf8=none
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8733 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8734 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8741 $as_echo_n "checking for a traditional french locale... " >&6; }
8742 if test "${gt_cv_locale_fr+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8751 #if HAVE_LANGINFO_CODESET
8752 # include <langinfo.h>
8759 /* Check whether the given locale name is recognized by the system. */
8760 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8761 /* On native Windows, setlocale(category, "") looks at the system settings,
8762 not at the environment variables. Also, when an encoding suffix such
8763 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8764 category of the locale to "C". */
8765 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8766 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8769 if (setlocale (LC_ALL, "") == NULL) return 1;
8771 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8772 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8773 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8774 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8775 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8776 some unit tests fail.
8777 On MirBSD 10, when an unsupported locale is specified, setlocale()
8778 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8779 #if HAVE_LANGINFO_CODESET
8781 const char *cs = nl_langinfo (CODESET);
8782 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8783 || strcmp (cs, "UTF-8") == 0)
8788 /* On Cygwin, avoid locale names without encoding suffix, because the
8789 locale_charset() function relies on the encoding suffix. Note that
8790 LC_ALL is set on the command line. */
8791 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8793 /* Check whether in the abbreviation of the second month, the second
8794 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8795 one byte long. This excludes the UTF-8 encoding. */
8796 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8797 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8798 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8799 /* Check whether the decimal separator is a comma.
8800 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8801 are nl_langinfo(RADIXCHAR) are both ".". */
8802 if (localeconv () ->decimal_point[0] != ',') return 1;
8808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8809 (eval $ac_link) 2>&5
8811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8812 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8814 # Handle native Windows specially, because there setlocale() interprets
8815 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8816 # "fr" or "fra" as "French" or "French_France.1252",
8817 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8818 # "ja" as "Japanese" or "Japanese_Japan.932",
8821 # Test for the native Windows locale name.
8822 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8823 gt_cv_locale_fr=French_France.1252
8826 gt_cv_locale_fr=none
8830 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8831 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8832 # configure script would override the LC_ALL setting. Likewise for
8833 # LC_CTYPE, which is also set at the beginning of the configure script.
8834 # Test for the usual locale name.
8835 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8836 gt_cv_locale_fr=fr_FR
8838 # Test for the locale name with explicit encoding suffix.
8839 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8840 gt_cv_locale_fr=fr_FR.ISO-8859-1
8842 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8843 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8844 gt_cv_locale_fr=fr_FR.ISO8859-1
8846 # Test for the HP-UX locale name.
8847 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8848 gt_cv_locale_fr=fr_FR.iso88591
8850 # Test for the Solaris 7 locale name.
8851 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8855 gt_cv_locale_fr=none
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8868 $as_echo "$gt_cv_locale_fr" >&6; }
8869 LOCALE_FR=$gt_cv_locale_fr
8894 GNULIB_STRCASESTR=0;
8901 GNULIB_MBSCASECMP=0;
8902 GNULIB_MBSNCASECMP=0;
8903 GNULIB_MBSPCASECMP=0;
8904 GNULIB_MBSCASESTR=0;
8911 GNULIB_STRERROR_R=0;
8913 GNULIB_STRVERSCMP=0;
8920 HAVE_DECL_MEMRCHR=1;
8926 HAVE_DECL_STRNDUP=1;
8927 HAVE_DECL_STRNLEN=1;
8931 HAVE_DECL_STRTOK_R=1;
8932 HAVE_DECL_STRERROR_R=1;
8933 HAVE_DECL_STRSIGNAL=1;
8940 REPLACE_STRCASESTR=0;
8941 REPLACE_STRCHRNUL=0;
8943 REPLACE_STRERROR_R=0;
8947 REPLACE_STRSIGNAL=0;
8949 UNDEFINE_STRTOK_R=0;
8955 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8956 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8957 # irrelevant for anonymous mappings.
8958 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8959 if test "x$ac_cv_func_mmap" = x""yes; then :
8966 # Try to allow MAP_ANONYMOUS.
8967 gl_have_mmap_anonymous=no
8968 if test $gl_have_mmap = yes; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8970 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8974 #include <sys/mman.h>
8975 #ifdef MAP_ANONYMOUS
8976 I cannot identify this map
8980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8981 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8982 gl_have_mmap_anonymous=yes
8986 if test $gl_have_mmap_anonymous != yes; then
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8990 #include <sys/mman.h>
8992 I cannot identify this map
8996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8997 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8999 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9001 gl_have_mmap_anonymous=yes
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9007 $as_echo "$gl_have_mmap_anonymous" >&6; }
9008 if test $gl_have_mmap_anonymous = yes; then
9010 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9020 if test $HAVE_MEMCHR = 1; then
9021 # Detect platform-specific bugs in some versions of glibc:
9022 # memchr should not dereference anything with length 0
9023 # http://bugzilla.redhat.com/499689
9024 # memchr should not dereference overestimated length after a match
9025 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9026 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9027 # Assume that memchr works on platforms that lack mprotect.
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9029 $as_echo_n "checking whether memchr works... " >&6; }
9030 if test "${gl_cv_func_memchr_works+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9033 if test "$cross_compiling" = yes; then :
9034 gl_cv_func_memchr_works="guessing no"
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9042 # include <unistd.h>
9043 # include <sys/types.h>
9044 # include <sys/mman.h>
9056 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9057 # if HAVE_MAP_ANONYMOUS
9058 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9060 # else /* !HAVE_MAP_ANONYMOUS */
9061 const int flags = MAP_FILE | MAP_PRIVATE;
9062 int fd = open ("/dev/zero", O_RDONLY, 0666);
9066 int pagesize = getpagesize ();
9068 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9070 if (two_pages != (char *)(-1)
9071 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9072 fence = two_pages + pagesize;
9077 if (memchr (fence, 0, 0))
9079 strcpy (fence - 9, "12345678");
9080 if (memchr (fence - 9, 0, 79) != fence - 1)
9082 if (memchr (fence - 1, 0, 3) != fence - 1)
9091 if ac_fn_c_try_run "$LINENO"; then :
9092 gl_cv_func_memchr_works=yes
9094 gl_cv_func_memchr_works=no
9096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9097 conftest.$ac_objext conftest.beam conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9102 $as_echo "$gl_cv_func_memchr_works" >&6; }
9103 if test "$gl_cv_func_memchr_works" != yes; then
9108 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9109 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_DECL_MEMMEM $ac_have_decl
9123 for ac_func in memmem
9125 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9126 if test "x$ac_cv_func_memmem" = x""yes; then :
9127 cat >>confdefs.h <<_ACEOF
9128 #define HAVE_MEMMEM 1
9134 if test $ac_cv_func_memmem = yes; then
9140 if test $ac_cv_have_decl_memmem = no; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9144 $as_echo_n "checking whether memmem works... " >&6; }
9145 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9146 $as_echo_n "(cached) " >&6
9148 if test "$cross_compiling" = yes; then :
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9152 #ifdef __GNU_LIBRARY__
9153 #include <features.h>
9154 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9155 || __GLIBC_MINOR__ > 12)) \
9156 || (__GLIBC__ > 2)) \
9157 || defined __UCLIBC__
9160 #elif defined __CYGWIN__
9161 #include <cygwin/version.h>
9162 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171 $EGREP "Lucky user" >/dev/null 2>&1; then :
9172 gl_cv_func_memmem_works_always="guessing yes"
9174 gl_cv_func_memmem_works_always="guessing no"
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9183 #include <string.h> /* for memmem */
9184 #define P "_EF_BF_BD"
9185 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9186 #define NEEDLE P P P P P
9193 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9195 /* Check for empty needle behavior. */
9197 const char *haystack = "AAA";
9198 if (memmem (haystack, 3, NULL, 0) != haystack)
9207 if ac_fn_c_try_run "$LINENO"; then :
9208 gl_cv_func_memmem_works_always=yes
9210 gl_cv_func_memmem_works_always=no
9212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9219 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9220 case "$gl_cv_func_memmem_works_always" in
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9232 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9233 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9239 #include <stdbool.h>
9241 "error: bool is not defined"
9244 "error: false is not defined"
9247 "error: false is not 0"
9250 "error: true is not defined"
9253 "error: true is not 1"
9255 #ifndef __bool_true_false_are_defined
9256 "error: __bool_true_false_are_defined is not defined"
9259 struct s { _Bool s: 1; _Bool t; } s;
9261 char a[true == 1 ? 1 : -1];
9262 char b[false == 0 ? 1 : -1];
9263 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9264 char d[(bool) 0.5 == true ? 1 : -1];
9265 /* See body of main program for 'e'. */
9266 char f[(_Bool) 0.0 == false ? 1 : -1];
9268 char h[sizeof (_Bool)];
9270 enum { j = false, k = true, l = false * true, m = true * 256 };
9271 /* The following fails for
9272 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9274 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9275 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9276 /* Catch a bug in an HP-UX C compiler. See
9277 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9278 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9290 /* Refer to every declared value, to avoid compiler optimizations. */
9291 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9292 + !m + !n + !o + !p + !q + !pq);
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299 ac_cv_header_stdbool_h=yes
9301 ac_cv_header_stdbool_h=no
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9306 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9307 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9308 if test "x$ac_cv_type__Bool" = x""yes; then :
9310 cat >>confdefs.h <<_ACEOF
9311 #define HAVE__BOOL 1
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9324 $as_echo_n "checking for wchar_t... " >&6; }
9325 if test "${gt_cv_c_wchar_t+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9331 wchar_t foo = (wchar_t)'\0';
9340 if ac_fn_c_try_compile "$LINENO"; then :
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9348 $as_echo "$gt_cv_c_wchar_t" >&6; }
9349 if test $gt_cv_c_wchar_t = yes; then
9351 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9356 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9357 if test "${ac_cv_c_restrict+set}" = set; then :
9358 $as_echo_n "(cached) " >&6
9361 # The order here caters to the fact that C++ does not require restrict.
9362 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 typedef int * int_ptr;
9366 int foo (int_ptr $ac_kw ip) {
9380 if ac_fn_c_try_compile "$LINENO"; then :
9381 ac_cv_c_restrict=$ac_kw
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 test "$ac_cv_c_restrict" != no && break
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9389 $as_echo "$ac_cv_c_restrict" >&6; }
9391 case $ac_cv_c_restrict in
9393 no) $as_echo "#define restrict /**/" >>confdefs.h
9395 *) cat >>confdefs.h <<_ACEOF
9396 #define restrict $ac_cv_c_restrict
9412 if test $gl_cv_have_include_next = yes; then
9413 gl_cv_next_string_h='<'string.h'>'
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9416 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9417 if test "${gl_cv_next_string_h+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9427 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9428 *) gl_absname_cpp="$ac_cpp" ;;
9433 gl_dirsep_regex='[/\\]'
9436 gl_dirsep_regex='\/'
9439 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9441 gl_header_literal_regex=`echo 'string.h' \
9442 | sed -e "$gl_make_literal_regex_sed"`
9443 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9444 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9449 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9450 sed -n "$gl_absolute_header_sed"`'"'
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9455 $as_echo "$gl_cv_next_string_h" >&6; }
9457 NEXT_STRING_H=$gl_cv_next_string_h
9459 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9461 gl_next_as_first_directive='<'string.h'>'
9463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9464 gl_next_as_first_directive=$gl_cv_next_string_h
9466 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9473 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
9474 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9476 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9477 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9478 $as_echo_n "(cached) " >&6
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9493 if ac_fn_c_try_compile "$LINENO"; then :
9494 eval "$as_gl_Symbol=yes"
9496 eval "$as_gl_Symbol=no"
9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500 eval ac_res=\$$as_gl_Symbol
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9502 $as_echo "$ac_res" >&6; }
9503 eval as_val=\$$as_gl_Symbol
9504 if test "x$as_val" = x""yes; then :
9505 cat >>confdefs.h <<_ACEOF
9506 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9509 eval ac_cv_have_decl_$gl_func=yes
9517 if test "$gl_cv_func_memchr_works" != yes; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9521 $as_echo_n "checking whether strstr works... " >&6; }
9522 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9525 if test "$cross_compiling" = yes; then :
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9529 #ifdef __GNU_LIBRARY__
9530 #include <features.h>
9531 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9532 || defined __UCLIBC__
9535 #elif defined __CYGWIN__
9536 #include <cygwin/version.h>
9537 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9546 $EGREP "Lucky user" >/dev/null 2>&1; then :
9547 gl_cv_func_strstr_works_always="guessing yes"
9549 gl_cv_func_strstr_works_always="guessing no"
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9558 #include <string.h> /* for strstr */
9559 #define P "_EF_BF_BD"
9560 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9561 #define NEEDLE P P P P P
9566 return !!strstr (HAYSTACK, NEEDLE);
9572 if ac_fn_c_try_run "$LINENO"; then :
9573 gl_cv_func_strstr_works_always=yes
9575 gl_cv_func_strstr_works_always=no
9577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9578 conftest.$ac_objext conftest.beam conftest.$ac_ext
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9584 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
9585 case "$gl_cv_func_strstr_works_always" in
9626 REPLACE_UTIMENSAT=0;
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9629 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9630 if test "${ac_cv_header_stat_broken+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include <sys/types.h>
9636 #include <sys/stat.h>
9638 #if defined S_ISBLK && defined S_IFDIR
9639 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9642 #if defined S_ISBLK && defined S_IFCHR
9643 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9646 #if defined S_ISLNK && defined S_IFREG
9647 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9650 #if defined S_ISSOCK && defined S_IFREG
9651 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9655 if ac_fn_c_try_compile "$LINENO"; then :
9656 ac_cv_header_stat_broken=no
9658 ac_cv_header_stat_broken=yes
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9663 $as_echo "$ac_cv_header_stat_broken" >&6; }
9664 if test $ac_cv_header_stat_broken = yes; then
9666 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9672 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9673 if test "x$ac_cv_type_mode_t" = x""yes; then :
9677 cat >>confdefs.h <<_ACEOF
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9685 if test -z "$MKDIR_P"; then
9686 if test "${ac_cv_path_mkdir+set}" = set; then :
9687 $as_echo_n "(cached) " >&6
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9693 test -z "$as_dir" && as_dir=.
9694 for ac_prog in mkdir gmkdir; do
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9698 'mkdir (GNU coreutils) '* | \
9699 'mkdir (coreutils) '* | \
9700 'mkdir (fileutils) '4.1*)
9701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9711 if test "${ac_cv_path_mkdir+set}" = set; then
9712 MKDIR_P="$ac_cv_path_mkdir -p"
9714 # As a last resort, use the slow shell script. Don't cache a
9715 # value for MKDIR_P within a source directory, because that will
9716 # break other packages using the cache if that directory is
9717 # removed, or if the value is a relative name.
9718 test -d ./--version && rmdir ./--version
9719 MKDIR_P="$ac_install_sh -d"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9723 $as_echo "$MKDIR_P" >&6; }
9727 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9728 if test "x$ac_cv_type_pid_t" = x""yes; then :
9732 cat >>confdefs.h <<_ACEOF
9740 WINDOWS_64_BIT_OFF_T=0
9750 HAVE_DECL_LOCALTIME_R=1;
9754 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
9755 REPLACE_MKTIME=GNULIB_PORTCHECK;
9756 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
9757 REPLACE_TIMEGM=GNULIB_PORTCHECK;
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
9764 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
9765 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9775 static struct timespec x; x.tv_sec = x.tv_nsec;
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781 gl_cv_sys_struct_timespec_in_time_h=yes
9783 gl_cv_sys_struct_timespec_in_time_h=no
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
9788 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
9790 TIME_H_DEFINES_STRUCT_TIMESPEC=0
9791 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
9792 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
9793 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
9794 TIME_H_DEFINES_STRUCT_TIMESPEC=1
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
9797 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
9798 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 #include <sys/time.h>
9808 static struct timespec x; x.tv_sec = x.tv_nsec;
9813 if ac_fn_c_try_compile "$LINENO"; then :
9814 gl_cv_sys_struct_timespec_in_sys_time_h=yes
9816 gl_cv_sys_struct_timespec_in_sys_time_h=no
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
9821 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
9822 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
9823 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
9826 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
9827 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 #include <pthread.h>
9837 static struct timespec x; x.tv_sec = x.tv_nsec;
9842 if ac_fn_c_try_compile "$LINENO"; then :
9843 gl_cv_sys_struct_timespec_in_pthread_h=yes
9845 gl_cv_sys_struct_timespec_in_pthread_h=no
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
9850 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
9851 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
9852 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
9871 if test $gl_cv_have_include_next = yes; then
9872 gl_cv_next_time_h='<'time.h'>'
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
9875 $as_echo_n "checking absolute name of <time.h>... " >&6; }
9876 if test "${gl_cv_next_time_h+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9886 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9887 *) gl_absname_cpp="$ac_cpp" ;;
9892 gl_dirsep_regex='[/\\]'
9895 gl_dirsep_regex='\/'
9898 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9900 gl_header_literal_regex=`echo 'time.h' \
9901 | sed -e "$gl_make_literal_regex_sed"`
9902 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9903 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9908 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9909 sed -n "$gl_absolute_header_sed"`'"'
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
9914 $as_echo "$gl_cv_next_time_h" >&6; }
9916 NEXT_TIME_H=$gl_cv_next_time_h
9918 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9920 gl_next_as_first_directive='<'time.h'>'
9922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9923 gl_next_as_first_directive=$gl_cv_next_time_h
9925 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9934 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9935 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9938 gl_cv_header_wchar_h_correct_inline=yes
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9942 #define wcstod renamed_wcstod
9943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9946 included before <wchar.h>. */
9951 extern int zero (void);
9952 int main () { return zero(); }
9955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956 (eval $ac_compile) 2>&5
9958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959 test $ac_status = 0; }; then
9960 mv conftest.$ac_objext conftest1.$ac_objext
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 #define wcstod renamed_wcstod
9965 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9967 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9968 included before <wchar.h>. */
9973 int zero (void) { return 0; }
9976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9977 (eval $ac_compile) 2>&5
9979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9980 test $ac_status = 0; }; then
9981 mv conftest.$ac_objext conftest2.$ac_objext
9982 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9985 gl_cv_header_wchar_h_correct_inline=no
9989 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9993 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9994 if test $gl_cv_header_wchar_h_correct_inline = no; then
9995 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9996 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9997 C99 mode. You have four options:
9998 - Add the flag -fgnu89-inline to CC and reconfigure, or
9999 - Fix your include files, using parts of
10000 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10001 - Use a gcc version older than 4.3, or
10002 - Don't use the flags -std=c99 or -std=gnu99.
10003 Configuration aborted." "$LINENO" 5
10010 if test $ac_cv_header_features_h = yes; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10019 $as_echo_n "checking for wint_t... " >&6; }
10020 if test "${gt_cv_c_wint_t+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10026 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10028 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10029 before <wchar.h>. */
10030 #include <stddef.h>
10034 wint_t foo = (wchar_t)'\0';
10043 if ac_fn_c_try_compile "$LINENO"; then :
10048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10051 $as_echo "$gt_cv_c_wint_t" >&6; }
10052 if test $gt_cv_c_wint_t = yes; then
10054 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10063 GNULIB_TOWCTRANS=0;
10067 REPLACE_ISWBLANK=0;
10073 GL_COND_LIBTOOL_TRUE=
10074 GL_COND_LIBTOOL_FALSE='#'
10076 GL_COND_LIBTOOL_TRUE='#'
10077 GL_COND_LIBTOOL_FALSE=
10080 gl_cond_libtool=false
10083 gl_m4_base='import/m4'
10093 gl_source_base='import'
10096 if test $ac_cv_func_alloca_works = no; then
10100 # Define an additional variable used in the Makefile substitution.
10101 if test $ac_cv_working_alloca_h = yes; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10103 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10104 if test "${gl_cv_rpl_alloca+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10111 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10117 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10118 gl_cv_rpl_alloca=yes
10120 gl_cv_rpl_alloca=no
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10127 $as_echo "$gl_cv_rpl_alloca" >&6; }
10128 if test $gl_cv_rpl_alloca = yes; then
10130 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10140 if test -n "$ALLOCA_H"; then
10141 GL_GENERATE_ALLOCA_H_TRUE=
10142 GL_GENERATE_ALLOCA_H_FALSE='#'
10144 GL_GENERATE_ALLOCA_H_TRUE='#'
10145 GL_GENERATE_ALLOCA_H_FALSE=
10150 if test "x$datarootdir" = x; then
10151 datarootdir='${datadir}'
10154 if test "x$docdir" = x; then
10155 docdir='${datarootdir}/doc/${PACKAGE}'
10158 if test "x$htmldir" = x; then
10159 htmldir='${docdir}'
10162 if test "x$dvidir" = x; then
10166 if test "x$pdfdir" = x; then
10170 if test "x$psdir" = x; then
10174 if test "x$lispdir" = x; then
10175 lispdir='${datarootdir}/emacs/site-lisp'
10178 if test "x$localedir" = x; then
10179 localedir='${datarootdir}/locale'
10183 pkglibexecdir='${libexecdir}/${PACKAGE}'
10198 if test $gl_cv_have_include_next = yes; then
10199 gl_cv_next_dirent_h='<'dirent.h'>'
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10202 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10203 if test "${gl_cv_next_dirent_h+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10207 if test $ac_cv_header_dirent_h = yes; then
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 #include <dirent.h>
10216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10217 *) gl_absname_cpp="$ac_cpp" ;;
10222 gl_dirsep_regex='[/\\]'
10225 gl_dirsep_regex='\/'
10228 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10230 gl_header_literal_regex=`echo 'dirent.h' \
10231 | sed -e "$gl_make_literal_regex_sed"`
10232 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10238 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10239 sed -n "$gl_absolute_header_sed"`'"'
10241 gl_cv_next_dirent_h='<'dirent.h'>'
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10247 $as_echo "$gl_cv_next_dirent_h" >&6; }
10249 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10253 gl_next_as_first_directive='<'dirent.h'>'
10255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10256 gl_next_as_first_directive=$gl_cv_next_dirent_h
10258 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10263 if test $ac_cv_header_dirent_h = yes; then
10271 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10272 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10274 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10275 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10276 $as_echo_n "(cached) " >&6
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 #include <dirent.h>
10291 if ac_fn_c_try_compile "$LINENO"; then :
10292 eval "$as_gl_Symbol=yes"
10294 eval "$as_gl_Symbol=no"
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 eval ac_res=\$$as_gl_Symbol
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10300 $as_echo "$ac_res" >&6; }
10301 eval as_val=\$$as_gl_Symbol
10302 if test "x$as_val" = x""yes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10307 eval ac_cv_have_decl_$gl_func=yes
10317 REPLACE_FLOAT_LDBL=0
10319 aix* | beos* | openbsd* | mirbsd* | irix*)
10323 case "$host_cpu" in
10328 # On x86_64 systems, the C compiler may still be generating
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10337 $EGREP "yes" >/dev/null 2>&1; then :
10348 case "$host_cpu" in
10356 aix* | freebsd* | linux*)
10357 if test -n "$FLOAT_H"; then
10358 REPLACE_FLOAT_LDBL=1
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10365 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10366 if test "${gl_cv_func_itold_works+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
10370 if test "$cross_compiling" = yes; then :
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #if defined __LP64__ || defined __arch64__
10379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10380 $EGREP "yes" >/dev/null 2>&1; then :
10381 gl_cv_func_itold_works="guessing no"
10383 gl_cv_func_itold_works="guessing yes"
10388 *) gl_cv_func_itold_works="guessing yes" ;;
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10396 volatile long double ld;
10405 if ac_fn_c_try_run "$LINENO"; then :
10406 gl_cv_func_itold_works=yes
10408 gl_cv_func_itold_works=no
10410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10411 conftest.$ac_objext conftest.beam conftest.$ac_ext
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10417 $as_echo "$gl_cv_func_itold_works" >&6; }
10418 case "$gl_cv_func_itold_works" in
10425 if test -n "$FLOAT_H"; then
10434 if test $gl_cv_have_include_next = yes; then
10435 gl_cv_next_float_h='<'float.h'>'
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10438 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10439 if test "${gl_cv_next_float_h+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10449 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10450 *) gl_absname_cpp="$ac_cpp" ;;
10455 gl_dirsep_regex='[/\\]'
10458 gl_dirsep_regex='\/'
10461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10463 gl_header_literal_regex=`echo 'float.h' \
10464 | sed -e "$gl_make_literal_regex_sed"`
10465 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10466 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10471 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10472 sed -n "$gl_absolute_header_sed"`'"'
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10477 $as_echo "$gl_cv_next_float_h" >&6; }
10479 NEXT_FLOAT_H=$gl_cv_next_float_h
10481 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10483 gl_next_as_first_directive='<'float.h'>'
10485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10486 gl_next_as_first_directive=$gl_cv_next_float_h
10488 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10495 if test -n "$FLOAT_H"; then
10496 GL_GENERATE_FLOAT_H_TRUE=
10497 GL_GENERATE_FLOAT_H_FALSE='#'
10499 GL_GENERATE_FLOAT_H_TRUE='#'
10500 GL_GENERATE_FLOAT_H_FALSE=
10505 if test $REPLACE_FLOAT_LDBL = 1; then
10514 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10517 if test $REPLACE_ITOLD = 1; then
10526 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10535 gl_fnmatch_required_lowercase=`
10536 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
10538 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10540 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10541 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10542 $as_echo_n "(cached) " >&6
10544 if test $gl_fnmatch_required = GNU; then
10545 gl_fnmatch_gnu_start=
10546 gl_fnmatch_gnu_end=
10548 gl_fnmatch_gnu_start='#if 0'
10549 gl_fnmatch_gnu_end='#endif'
10551 if test "$cross_compiling" = yes; then :
10552 eval "$gl_fnmatch_cache_var=\"guessing no\""
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 #include <fnmatch.h>
10558 y (char const *pattern, char const *string, int flags)
10560 return fnmatch (pattern, string, flags) == 0;
10563 n (char const *pattern, char const *string, int flags)
10565 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
10571 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
10572 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
10573 static char const A_1[] = { 'A' - 1, 0 };
10574 static char const A01[] = { 'A' + 1, 0 };
10575 static char const a_1[] = { 'a' - 1, 0 };
10576 static char const a01[] = { 'a' + 1, 0 };
10577 static char const bs_1[] = { '\\\\' - 1, 0 };
10578 static char const bs01[] = { '\\\\' + 1, 0 };
10580 if (!n ("a*", "", 0))
10582 if (!y ("a*", "abc", 0))
10584 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10586 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10588 if (!y ("a\\\\bc", "abc", 0))
10590 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10592 if (!y ("*x", ".x", 0))
10594 if (!n ("*x", ".x", FNM_PERIOD))
10596 if (!y (Apat, "\\\\", 0))
10598 if (!y (Apat, "A", 0))
10600 if (!y (apat, "\\\\", 0))
10602 if (!y (apat, "a", 0))
10604 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10606 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10608 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10610 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10612 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10614 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10616 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10618 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10620 $gl_fnmatch_gnu_start
10621 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10623 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10625 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10627 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10629 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10631 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10633 $gl_fnmatch_gnu_end
10640 if ac_fn_c_try_run "$LINENO"; then :
10641 eval "$gl_fnmatch_cache_var=yes"
10643 eval "$gl_fnmatch_cache_var=no"
10645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10646 conftest.$ac_objext conftest.beam conftest.$ac_ext
10651 eval ac_res=\$$gl_fnmatch_cache_var
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10653 $as_echo "$ac_res" >&6; }
10654 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10655 if test "$gl_fnmatch_result" = yes; then
10656 rm -f "$gl_source_base/fnmatch.h"
10658 FNMATCH_H=fnmatch.h
10661 if test -n "$FNMATCH_H"; then
10662 GL_GENERATE_FNMATCH_H_TRUE=
10663 GL_GENERATE_FNMATCH_H_FALSE='#'
10665 GL_GENERATE_FNMATCH_H_TRUE='#'
10666 GL_GENERATE_FNMATCH_H_FALSE=
10670 if test -n "$FNMATCH_H"; then
10679 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10683 cat >>confdefs.h <<_ACEOF
10684 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10688 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10690 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10696 cat >>confdefs.h <<_ACEOF
10697 #define HAVE_DECL_ISBLANK $ac_have_decl
10709 if test -n "$FNMATCH_H"; then
10718 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10722 cat >>confdefs.h <<_ACEOF
10723 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10727 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10729 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10735 cat >>confdefs.h <<_ACEOF
10736 #define HAVE_DECL_ISBLANK $ac_have_decl
10747 if test $gl_cv_func_frexp_no_libm = no; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10749 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10750 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10751 $as_echo_n "(cached) " >&6
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10763 int e; return frexp (x, &e) > 0;
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 gl_cv_func_frexp_in_libm=yes
10771 gl_cv_func_frexp_in_libm=no
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10779 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10780 if test $gl_cv_func_frexp_in_libm = yes; then
10784 if test $gl_cv_func_frexp_no_libm = yes \
10785 || test $gl_cv_func_frexp_in_libm = yes; then
10787 LIBS="$LIBS $FREXP_LIBM"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10792 $as_echo_n "checking whether frexp works... " >&6; }
10793 if test "${gl_cv_func_frexp_works+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10797 if test "$cross_compiling" = yes; then :
10799 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10800 *) gl_cv_func_frexp_works="guessing yes";;
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10809 #include <string.h>
10811 # include <unistd.h>
10813 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10814 ICC 10.0 has a bug when optimizing the expression -zero.
10815 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10816 to PowerPC on Mac OS X 10.5. */
10817 #if defined __hpux || defined __sgi || defined __ICC
10819 compute_minus_zero (void)
10821 return -DBL_MIN * DBL_MIN;
10823 # define minus_zero compute_minus_zero ()
10825 double minus_zero = -0.0;
10834 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10835 number. Let the test fail in this case. */
10838 /* Test on denormalized numbers. */
10839 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10844 double y = frexp (x, &exp);
10845 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10846 On NetBSD: y = 0.75. Correct: y = 0.5. */
10850 /* Test on infinite numbers. */
10854 double y = frexp (x, &exp);
10858 /* Test on negative zero. */
10862 double y = frexp (x, &exp);
10863 if (memcmp (&y, &x, sizeof x))
10869 if ac_fn_c_try_run "$LINENO"; then :
10870 gl_cv_func_frexp_works=yes
10872 gl_cv_func_frexp_works=no
10874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10875 conftest.$ac_objext conftest.beam conftest.$ac_ext
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10881 $as_echo "$gl_cv_func_frexp_works" >&6; }
10884 case "$gl_cv_func_frexp_works" in
10885 *yes) gl_func_frexp=yes ;;
10886 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10891 if test $gl_func_frexp = yes; then
10893 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10898 if test $gl_func_frexp != yes; then
10907 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10921 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10931 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10933 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10941 if test $HAVE_DECL_FREXPL = 1; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10944 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10945 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10956 int e; return frexpl (x, &e) > 0;
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 gl_cv_func_frexpl_no_libm=yes
10964 gl_cv_func_frexpl_no_libm=no
10966 rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10971 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10973 if test $gl_cv_func_frexpl_no_libm = no; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10975 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10976 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10989 int e; return frexpl (x, &e) > 0;
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 gl_cv_func_frexpl_in_libm=yes
10997 gl_cv_func_frexpl_in_libm=no
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11005 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11006 if test $gl_cv_func_frexpl_in_libm = yes; then
11010 if test $gl_cv_func_frexpl_no_libm = yes \
11011 || test $gl_cv_func_frexpl_in_libm = yes; then
11013 LIBS="$LIBS $FREXPL_LIBM"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11017 $as_echo_n "checking whether frexpl works... " >&6; }
11018 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11022 if test "$cross_compiling" = yes; then :
11025 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11026 gl_cv_func_frexpl_works="guessing no";;
11027 *) gl_cv_func_frexpl_works="guessing yes";;
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11036 /* Override the values of <float.h>, like done in float.in.h. */
11037 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11038 # undef LDBL_MIN_EXP
11039 # define LDBL_MIN_EXP (-16381)
11041 #if defined __i386__ && defined __FreeBSD__
11042 # undef LDBL_MIN_EXP
11043 # define LDBL_MIN_EXP (-16381)
11045 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11046 # undef LDBL_MIN_EXP
11047 # define LDBL_MIN_EXP DBL_MIN_EXP
11049 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11050 # if defined __GNUC__
11051 # undef LDBL_MIN_EXP
11052 # define LDBL_MIN_EXP DBL_MIN_EXP
11059 long double frexpl (long double, int *);
11063 volatile long double x;
11064 /* Test on finite numbers that fails on AIX 5.1. */
11072 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11073 function returns an invalid (incorrectly normalized) value: it returns
11074 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11075 but the correct result is
11076 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11080 long double y = frexpl (x, &exp);
11081 if (!(exp == 1 && y == 0.505L))
11084 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11085 LDBL_MAX_EXP = 16384.
11086 In the loop end test, we test x against Infinity, rather than comparing
11087 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11090 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11101 /* Test on denormalized numbers. */
11104 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11109 long double y = frexpl (x, &exp);
11110 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11111 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11112 if (exp != LDBL_MIN_EXP - 1)
11116 /* Test on infinite numbers. */
11120 long double y = frexpl (x, &exp);
11127 if ac_fn_c_try_run "$LINENO"; then :
11128 gl_cv_func_frexpl_works=yes
11130 gl_cv_func_frexpl_works=no
11132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11133 conftest.$ac_objext conftest.beam conftest.$ac_ext
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11139 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11142 case "$gl_cv_func_frexpl_works" in
11143 *yes) gl_func_frexpl=yes ;;
11144 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11149 if test $gl_func_frexpl = yes; then
11151 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11155 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11156 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11158 FREXPL_LIBM="$FREXP_LIBM"
11165 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11174 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11188 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11198 if test -n "$STDINT_H"; then
11199 PRIPTR_PREFIX='"l"'
11201 for glpfx in '' l ll I64; do
11203 '') gltype1='int';;
11204 l) gltype1='long int';;
11205 ll) gltype1='long long int';;
11206 I64) gltype1='__int64';;
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 #include <stdint.h>
11211 extern intptr_t foo;
11212 extern $gltype1 foo;
11221 if ac_fn_c_try_compile "$LINENO"; then :
11222 PRIPTR_PREFIX='"'$glpfx'"'
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 test -n "$PRIPTR_PREFIX" && break
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11232 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11233 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 /* Work also in C++ mode. */
11239 #define __STDC_LIMIT_MACROS 1
11241 /* Work if build is not clean. */
11242 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11244 #include <limits.h>
11246 #include <stdint.h>
11249 #if defined INT32_MAX && defined INTMAX_MAX
11250 #define CONDITION (INT32_MAX < INTMAX_MAX)
11251 #elif HAVE_LONG_LONG_INT
11252 #define CONDITION (sizeof (int) < sizeof (long long int))
11254 #define CONDITION 0
11256 int test[CONDITION ? 1 : -1];
11265 if ac_fn_c_try_compile "$LINENO"; then :
11266 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11268 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11273 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11274 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11275 INT32_MAX_LT_INTMAX_MAX=1;
11277 INT32_MAX_LT_INTMAX_MAX=0;
11281 if test $APPLE_UNIVERSAL_BUILD = 0; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11284 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11285 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 /* Work also in C++ mode. */
11291 #define __STDC_LIMIT_MACROS 1
11293 /* Work if build is not clean. */
11294 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11296 #include <limits.h>
11298 #include <stdint.h>
11301 #if defined INT64_MAX
11302 #define CONDITION (INT64_MAX == LONG_MAX)
11303 #elif HAVE_LONG_LONG_INT
11304 #define CONDITION (sizeof (long long int) == sizeof (long int))
11306 #define CONDITION 0
11308 int test[CONDITION ? 1 : -1];
11317 if ac_fn_c_try_compile "$LINENO"; then :
11318 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11320 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11325 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11326 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11327 INT64_MAX_EQ_LONG_MAX=1;
11329 INT64_MAX_EQ_LONG_MAX=0;
11334 INT64_MAX_EQ_LONG_MAX=-1
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11338 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11339 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344 /* Work also in C++ mode. */
11345 #define __STDC_LIMIT_MACROS 1
11347 /* Work if build is not clean. */
11348 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11350 #include <limits.h>
11352 #include <stdint.h>
11355 #if defined UINT32_MAX && defined UINTMAX_MAX
11356 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11357 #elif HAVE_LONG_LONG_INT
11358 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11360 #define CONDITION 0
11362 int test[CONDITION ? 1 : -1];
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11374 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11379 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11380 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11381 UINT32_MAX_LT_UINTMAX_MAX=1;
11383 UINT32_MAX_LT_UINTMAX_MAX=0;
11387 if test $APPLE_UNIVERSAL_BUILD = 0; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11390 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11391 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396 /* Work also in C++ mode. */
11397 #define __STDC_LIMIT_MACROS 1
11399 /* Work if build is not clean. */
11400 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11402 #include <limits.h>
11404 #include <stdint.h>
11407 #if defined UINT64_MAX
11408 #define CONDITION (UINT64_MAX == ULONG_MAX)
11409 #elif HAVE_LONG_LONG_INT
11410 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11412 #define CONDITION 0
11414 int test[CONDITION ? 1 : -1];
11423 if ac_fn_c_try_compile "$LINENO"; then :
11424 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11426 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11431 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11432 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11433 UINT64_MAX_EQ_ULONG_MAX=1;
11435 UINT64_MAX_EQ_ULONG_MAX=0;
11440 UINT64_MAX_EQ_ULONG_MAX=-1
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11448 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11449 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11458 # define isnand(x) __builtin_isnan ((double)(x))
11461 # define isnand(x) isnan ((double)(x))
11472 if ac_fn_c_try_link "$LINENO"; then :
11473 gl_cv_func_isnand_no_libm=yes
11475 gl_cv_func_isnand_no_libm=no
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11482 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11484 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11485 if test $gl_cv_func_isnand_no_libm = yes; then
11487 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11491 if test $gl_func_isnand_no_libm != yes; then
11500 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11509 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11510 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11519 # define isnanl(x) __builtin_isnanl ((long double)(x))
11520 #elif defined isnan
11522 # define isnanl(x) isnan ((long double)(x))
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 gl_cv_func_isnanl_no_libm=yes
11536 gl_cv_func_isnanl_no_libm=no
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11543 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11545 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11546 if test $gl_func_isnanl_no_libm = yes; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
11552 $as_echo_n "checking whether isnanl works... " >&6; }
11553 if test "${gl_cv_func_isnanl_works+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11557 if test "$cross_compiling" = yes; then :
11558 case "$host_cpu" in
11559 # Guess no on ia64, x86_64, i386.
11560 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
11563 netbsd*) gl_cv_func_isnanl_works="guessing no";;
11564 *) gl_cv_func_isnanl_works="guessing yes";;
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11574 #include <limits.h>
11578 # define isnanl(x) __builtin_isnanl ((long double)(x))
11579 #elif defined isnan
11581 # define isnanl(x) isnan ((long double)(x))
11584 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11585 typedef union { unsigned int word[NWORDS]; long double value; }
11586 memory_long_double;
11587 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11588 runtime type conversion. */
11590 static long double NaNl ()
11593 return zero / zero;
11596 # define NaNl() (0.0L / 0.0L)
11602 if (!isnanl (NaNl ()))
11606 memory_long_double m;
11609 /* The isnanl function should be immune against changes in the sign bit and
11610 in the mantissa bits. The xor operation twiddles a bit that can only be
11611 a sign bit or a mantissa bit (since the exponent never extends to
11614 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11615 for (i = 0; i < NWORDS; i++)
11617 if (!isnanl (m.value))
11621 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
11622 /* Representation of an 80-bit 'long double' as an initializer for a sequence
11623 of 'unsigned int' words. */
11624 # ifdef WORDS_BIGENDIAN
11625 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11626 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11627 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11628 (unsigned int) (mantlo) << 16 \
11631 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11632 { mantlo, manthi, exponent }
11635 static memory_long_double x =
11636 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11637 if (!isnanl (x.value))
11641 /* Signalling NaN. */
11642 static memory_long_double x =
11643 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11644 if (!isnanl (x.value))
11647 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11648 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11649 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11650 Application Architecture.
11651 Table 5-2 "Floating-Point Register Encodings"
11652 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11654 { /* Pseudo-NaN. */
11655 static memory_long_double x =
11656 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11657 if (!isnanl (x.value))
11660 { /* Pseudo-Infinity. */
11661 static memory_long_double x =
11662 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11663 if (!isnanl (x.value))
11666 { /* Pseudo-Zero. */
11667 static memory_long_double x =
11668 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11669 if (!isnanl (x.value))
11672 { /* Unnormalized number. */
11673 static memory_long_double x =
11674 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11675 if (!isnanl (x.value))
11678 { /* Pseudo-Denormal. */
11679 static memory_long_double x =
11680 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11681 if (!isnanl (x.value))
11689 if ac_fn_c_try_run "$LINENO"; then :
11690 gl_cv_func_isnanl_works=yes
11692 gl_cv_func_isnanl_works=no
11694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11695 conftest.$ac_objext conftest.beam conftest.$ac_ext
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11701 $as_echo "$gl_cv_func_isnanl_works" >&6; }
11703 case "$gl_cv_func_isnanl_works" in
11705 *) gl_func_isnanl_no_libm=no ;;
11708 if test $gl_func_isnanl_no_libm = yes; then
11710 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11714 if test $gl_func_isnanl_no_libm != yes; then
11723 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11729 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11730 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11734 if test "$cross_compiling" = yes; then :
11736 gl_cv_cc_long_double_expbit0="unknown"
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11743 #include <stddef.h>
11745 #include <string.h>
11747 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11748 typedef union { long double value; unsigned int word[NWORDS]; }
11749 memory_long_double;
11750 static unsigned int ored_words[NWORDS];
11751 static unsigned int anded_words[NWORDS];
11752 static void add_to_ored_words (long double x)
11754 memory_long_double m;
11756 /* Clear it first, in case
11757 sizeof (long double) < sizeof (memory_long_double). */
11758 memset (&m, 0, sizeof (memory_long_double));
11760 for (i = 0; i < NWORDS; i++)
11762 ored_words[i] |= m.word[i];
11763 anded_words[i] &= m.word[i];
11769 FILE *fp = fopen ("conftest.out", "w");
11772 for (j = 0; j < NWORDS; j++)
11773 anded_words[j] = ~ (unsigned int) 0;
11774 add_to_ored_words (0.25L);
11775 add_to_ored_words (0.5L);
11776 add_to_ored_words (1.0L);
11777 add_to_ored_words (2.0L);
11778 add_to_ored_words (4.0L);
11779 /* Remove bits that are common (e.g. if representation of the first mantissa
11780 bit is explicit). */
11781 for (j = 0; j < NWORDS; j++)
11782 ored_words[j] &= ~anded_words[j];
11783 /* Now find the nonzero word. */
11784 for (j = 0; j < NWORDS; j++)
11785 if (ored_words[j] != 0)
11790 for (i = j + 1; i < NWORDS; i++)
11791 if (ored_words[i] != 0)
11793 fprintf (fp, "unknown");
11794 return (fclose (fp) != 0);
11797 if ((ored_words[j] >> i) & 1)
11799 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11800 return (fclose (fp) != 0);
11803 fprintf (fp, "unknown");
11804 return (fclose (fp) != 0);
11808 if ac_fn_c_try_run "$LINENO"; then :
11809 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11811 gl_cv_cc_long_double_expbit0="unknown"
11813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11814 conftest.$ac_objext conftest.beam conftest.$ac_ext
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11821 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11822 case "$gl_cv_cc_long_double_expbit0" in
11824 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11825 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11827 cat >>confdefs.h <<_ACEOF
11828 #define LDBL_EXPBIT0_WORD $word
11832 cat >>confdefs.h <<_ACEOF
11833 #define LDBL_EXPBIT0_BIT $bit
11850 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11863 if test $gl_cv_have_include_next = yes; then
11864 gl_cv_next_math_h='<'math.h'>'
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11867 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11868 if test "${gl_cv_next_math_h+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11872 if test $ac_cv_header_math_h = yes; then
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11881 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11882 *) gl_absname_cpp="$ac_cpp" ;;
11887 gl_dirsep_regex='[/\\]'
11890 gl_dirsep_regex='\/'
11893 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11895 gl_header_literal_regex=`echo 'math.h' \
11896 | sed -e "$gl_make_literal_regex_sed"`
11897 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11898 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11903 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11904 sed -n "$gl_absolute_header_sed"`'"'
11906 gl_cv_next_math_h='<'math.h'>'
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11912 $as_echo "$gl_cv_next_math_h" >&6; }
11914 NEXT_MATH_H=$gl_cv_next_math_h
11916 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11918 gl_next_as_first_directive='<'math.h'>'
11920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11921 gl_next_as_first_directive=$gl_cv_next_math_h
11923 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11930 $as_echo_n "checking whether NAN macro works... " >&6; }
11931 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11940 /* Solaris 10 has a broken definition of NAN. Other platforms
11941 fail to provide NAN, or provide it only in C99 mode; this
11942 test only needs to fail when NAN is provided but wrong. */
11952 if ac_fn_c_try_compile "$LINENO"; then :
11953 gl_cv_header_math_nan_works=yes
11955 gl_cv_header_math_nan_works=no
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11960 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11961 if test $gl_cv_header_math_nan_works = no; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11965 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11966 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11975 /* Solaris 10 has a broken definition of HUGE_VAL. */
11976 double d = HUGE_VAL;
11982 if ac_fn_c_try_compile "$LINENO"; then :
11983 gl_cv_header_math_huge_val_works=yes
11985 gl_cv_header_math_huge_val_works=no
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11990 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11991 if test $gl_cv_header_math_huge_val_works = no; then
11996 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
11997 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11999 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12000 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12001 $as_echo_n "(cached) " >&6
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016 eval "$as_gl_Symbol=yes"
12018 eval "$as_gl_Symbol=no"
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022 eval ac_res=\$$as_gl_Symbol
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12024 $as_echo "$ac_res" >&6; }
12025 eval as_val=\$$as_gl_Symbol
12026 if test "x$as_val" = x""yes; then :
12027 cat >>confdefs.h <<_ACEOF
12028 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12031 eval ac_cv_have_decl_$gl_func=yes
12046 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12051 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12052 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12057 # Guess no on AIX and OSF/1.
12058 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12059 # Guess yes otherwise.
12060 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12062 if test $LOCALE_JA != none; then
12063 if test "$cross_compiling" = yes; then :
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12069 #include <locale.h>
12070 #include <string.h>
12071 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12073 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12074 included before <wchar.h>. */
12075 #include <stddef.h>
12081 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12083 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12087 memset (&state, '\0', sizeof (mbstate_t));
12088 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12089 if (mbsinit (&state))
12095 if ac_fn_c_try_run "$LINENO"; then :
12096 gl_cv_func_mbrtowc_incomplete_state=yes
12098 gl_cv_func_mbrtowc_incomplete_state=no
12100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12101 conftest.$ac_objext conftest.beam conftest.$ac_ext
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12108 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12114 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12115 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
12120 # Guess no on Solaris 8.
12121 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12122 # Guess yes otherwise.
12123 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12125 if test $LOCALE_ZH_CN != none; then
12126 if test "$cross_compiling" = yes; then :
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12132 #include <locale.h>
12133 #include <stdlib.h>
12134 #include <string.h>
12135 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12137 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12138 included before <wchar.h>. */
12139 #include <stddef.h>
12145 /* This fails on Solaris 8:
12146 mbrtowc returns 2, and sets wc to 0x00F0.
12147 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12148 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12150 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12154 memset (&state, '\0', sizeof (mbstate_t));
12155 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12156 && mbtowc (&wc, input + 3, 6) == 4)
12162 if ac_fn_c_try_run "$LINENO"; then :
12163 gl_cv_func_mbrtowc_sanitycheck=yes
12165 gl_cv_func_mbrtowc_sanitycheck=no
12167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12168 conftest.$ac_objext conftest.beam conftest.$ac_ext
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12175 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12177 REPLACE_MBSTATE_T=0
12178 case "$gl_cv_func_mbrtowc_incomplete_state" in
12180 *) REPLACE_MBSTATE_T=1 ;;
12182 case "$gl_cv_func_mbrtowc_sanitycheck" in
12184 *) REPLACE_MBSTATE_T=1 ;;
12187 REPLACE_MBSTATE_T=1
12192 if test $ac_cv_func_mbrtowc = no; then
12194 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12195 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12197 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12198 included before <wchar.h>. */
12199 #include <stddef.h>
12205 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE_DECL_MBRTOWC $ac_have_decl
12215 if test $ac_cv_have_decl_mbrtowc = yes; then
12219 if test $REPLACE_MBSTATE_T = 1; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12226 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12227 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12232 # Guess no on Solaris.
12233 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12234 # Guess yes otherwise.
12235 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12237 if test $LOCALE_FR_UTF8 != none; then
12238 if test "$cross_compiling" = yes; then :
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12244 #include <locale.h>
12245 #include <stdlib.h>
12246 #include <string.h>
12247 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12249 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12250 included before <wchar.h>. */
12251 #include <stddef.h>
12259 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12261 char input[] = "\303\237er";
12266 memset (&state, '\0', sizeof (mbstate_t));
12267 wc = (wchar_t) 0xBADFACE;
12268 ret = mbrtowc (&wc, input, 5, &state);
12271 if (!mbsinit (&state))
12274 memset (&state, '\0', sizeof (mbstate_t));
12275 ret = mbrtowc (NULL, input, 5, &state);
12276 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12278 if (!mbsinit (&state))
12284 if ac_fn_c_try_run "$LINENO"; then :
12285 gl_cv_func_mbrtowc_null_arg1=yes
12287 gl_cv_func_mbrtowc_null_arg1=no
12289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12290 conftest.$ac_objext conftest.beam conftest.$ac_ext
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12297 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12303 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12304 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12309 # Guess no on OSF/1.
12310 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12311 # Guess yes otherwise.
12312 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12314 if test $LOCALE_FR_UTF8 != none; then
12315 if test "$cross_compiling" = yes; then :
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 #include <locale.h>
12322 #include <string.h>
12323 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12325 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12326 included before <wchar.h>. */
12327 #include <stddef.h>
12333 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12339 memset (&state, '\0', sizeof (mbstate_t));
12340 wc = (wchar_t) 0xBADFACE;
12341 mbrtowc (&wc, NULL, 5, &state);
12342 /* Check that wc was not modified. */
12343 if (wc != (wchar_t) 0xBADFACE)
12349 if ac_fn_c_try_run "$LINENO"; then :
12350 gl_cv_func_mbrtowc_null_arg2=yes
12352 gl_cv_func_mbrtowc_null_arg2=no
12354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355 conftest.$ac_objext conftest.beam conftest.$ac_ext
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12362 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12370 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12371 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12376 # Guess no on HP-UX, Solaris, native Windows.
12377 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12378 # Guess yes otherwise.
12379 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12381 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12382 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12383 if test "$cross_compiling" = yes; then :
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12389 #include <locale.h>
12390 #include <string.h>
12391 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12393 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12394 included before <wchar.h>. */
12395 #include <stddef.h>
12402 int found_some_locale = 0;
12403 /* This fails on Solaris. */
12404 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12406 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12410 memset (&state, '\0', sizeof (mbstate_t));
12411 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12414 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12417 found_some_locale = 1;
12419 /* This fails on HP-UX 11.11. */
12420 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12422 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12426 memset (&state, '\0', sizeof (mbstate_t));
12427 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12430 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12433 found_some_locale = 1;
12435 /* This fails on native Windows. */
12436 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12438 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12442 memset (&state, '\0', sizeof (mbstate_t));
12443 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12446 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12449 found_some_locale = 1;
12451 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12453 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12457 memset (&state, '\0', sizeof (mbstate_t));
12458 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12461 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12464 found_some_locale = 1;
12466 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12468 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12472 memset (&state, '\0', sizeof (mbstate_t));
12473 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12476 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12479 found_some_locale = 1;
12481 return (found_some_locale ? result : 77);
12484 if ac_fn_c_try_run "$LINENO"; then :
12485 gl_cv_func_mbrtowc_retval=yes
12487 if test $? != 77; then
12488 gl_cv_func_mbrtowc_retval=no
12492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12493 conftest.$ac_objext conftest.beam conftest.$ac_ext
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12500 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12506 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12507 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12512 # Guess no on Solaris 8 and 9.
12513 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12514 # Guess yes otherwise.
12515 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12517 if test $LOCALE_ZH_CN != none; then
12518 if test "$cross_compiling" = yes; then :
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12524 #include <locale.h>
12525 #include <string.h>
12526 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12528 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12529 included before <wchar.h>. */
12530 #include <stddef.h>
12536 /* This fails on Solaris 8 and 9. */
12537 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12542 memset (&state, '\0', sizeof (mbstate_t));
12543 if (mbrtowc (&wc, "", 1, &state) != 0)
12549 if ac_fn_c_try_run "$LINENO"; then :
12550 gl_cv_func_mbrtowc_nul_retval=yes
12552 gl_cv_func_mbrtowc_nul_retval=no
12554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12555 conftest.$ac_objext conftest.beam conftest.$ac_ext
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
12562 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
12564 case "$gl_cv_func_mbrtowc_null_arg1" in
12567 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
12572 case "$gl_cv_func_mbrtowc_null_arg2" in
12575 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
12580 case "$gl_cv_func_mbrtowc_retval" in
12583 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12588 case "$gl_cv_func_mbrtowc_nul_retval" in
12591 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12599 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
12608 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12625 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12640 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12645 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12646 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12651 # Guess no on AIX and OSF/1.
12652 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12653 # Guess yes otherwise.
12654 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12656 if test $LOCALE_JA != none; then
12657 if test "$cross_compiling" = yes; then :
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12663 #include <locale.h>
12664 #include <string.h>
12665 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12667 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12668 included before <wchar.h>. */
12669 #include <stddef.h>
12675 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12677 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12681 memset (&state, '\0', sizeof (mbstate_t));
12682 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12683 if (mbsinit (&state))
12689 if ac_fn_c_try_run "$LINENO"; then :
12690 gl_cv_func_mbrtowc_incomplete_state=yes
12692 gl_cv_func_mbrtowc_incomplete_state=no
12694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12695 conftest.$ac_objext conftest.beam conftest.$ac_ext
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12702 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12708 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12709 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12714 # Guess no on Solaris 8.
12715 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12716 # Guess yes otherwise.
12717 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12719 if test $LOCALE_ZH_CN != none; then
12720 if test "$cross_compiling" = yes; then :
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12726 #include <locale.h>
12727 #include <stdlib.h>
12728 #include <string.h>
12729 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12731 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12732 included before <wchar.h>. */
12733 #include <stddef.h>
12739 /* This fails on Solaris 8:
12740 mbrtowc returns 2, and sets wc to 0x00F0.
12741 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12742 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12744 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12748 memset (&state, '\0', sizeof (mbstate_t));
12749 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12750 && mbtowc (&wc, input + 3, 6) == 4)
12756 if ac_fn_c_try_run "$LINENO"; then :
12757 gl_cv_func_mbrtowc_sanitycheck=yes
12759 gl_cv_func_mbrtowc_sanitycheck=no
12761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12762 conftest.$ac_objext conftest.beam conftest.$ac_ext
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12769 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12771 REPLACE_MBSTATE_T=0
12772 case "$gl_cv_func_mbrtowc_incomplete_state" in
12774 *) REPLACE_MBSTATE_T=1 ;;
12776 case "$gl_cv_func_mbrtowc_sanitycheck" in
12778 *) REPLACE_MBSTATE_T=1 ;;
12781 REPLACE_MBSTATE_T=1
12786 if test $ac_cv_func_mbsinit = no; then
12788 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12792 included before <wchar.h>. */
12793 #include <stddef.h>
12799 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12805 cat >>confdefs.h <<_ACEOF
12806 #define HAVE_DECL_MBSINIT $ac_have_decl
12809 if test $ac_cv_have_decl_mbsinit = yes; then
12813 if test $REPLACE_MBSTATE_T = 1; then
12817 mingw*) REPLACE_MBSINIT=1 ;;
12822 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12831 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12848 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12862 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12867 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12868 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12869 $as_echo_n "(cached) " >&6
12873 # Guess no on AIX and OSF/1.
12874 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12875 # Guess yes otherwise.
12876 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12878 if test $LOCALE_JA != none; then
12879 if test "$cross_compiling" = yes; then :
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12885 #include <locale.h>
12886 #include <string.h>
12887 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12889 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12890 included before <wchar.h>. */
12891 #include <stddef.h>
12897 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12899 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12903 memset (&state, '\0', sizeof (mbstate_t));
12904 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12905 if (mbsinit (&state))
12911 if ac_fn_c_try_run "$LINENO"; then :
12912 gl_cv_func_mbrtowc_incomplete_state=yes
12914 gl_cv_func_mbrtowc_incomplete_state=no
12916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12917 conftest.$ac_objext conftest.beam conftest.$ac_ext
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12924 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12930 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12931 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12936 # Guess no on Solaris 8.
12937 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12938 # Guess yes otherwise.
12939 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12941 if test $LOCALE_ZH_CN != none; then
12942 if test "$cross_compiling" = yes; then :
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12948 #include <locale.h>
12949 #include <stdlib.h>
12950 #include <string.h>
12951 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12953 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12954 included before <wchar.h>. */
12955 #include <stddef.h>
12961 /* This fails on Solaris 8:
12962 mbrtowc returns 2, and sets wc to 0x00F0.
12963 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12964 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12966 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12970 memset (&state, '\0', sizeof (mbstate_t));
12971 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12972 && mbtowc (&wc, input + 3, 6) == 4)
12978 if ac_fn_c_try_run "$LINENO"; then :
12979 gl_cv_func_mbrtowc_sanitycheck=yes
12981 gl_cv_func_mbrtowc_sanitycheck=no
12983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12984 conftest.$ac_objext conftest.beam conftest.$ac_ext
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12991 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12993 REPLACE_MBSTATE_T=0
12994 case "$gl_cv_func_mbrtowc_incomplete_state" in
12996 *) REPLACE_MBSTATE_T=1 ;;
12998 case "$gl_cv_func_mbrtowc_sanitycheck" in
13000 *) REPLACE_MBSTATE_T=1 ;;
13003 REPLACE_MBSTATE_T=1
13008 if test $ac_cv_func_mbsrtowcs = no; then
13010 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13011 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13013 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13014 included before <wchar.h>. */
13015 #include <stddef.h>
13021 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13027 cat >>confdefs.h <<_ACEOF
13028 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13031 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13032 REPLACE_MBSRTOWCS=1
13035 if test $REPLACE_MBSTATE_T = 1; then
13036 REPLACE_MBSRTOWCS=1
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13045 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13046 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13051 # Guess no on HP-UX, Solaris, mingw.
13052 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13053 # Guess yes otherwise.
13054 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13056 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13057 if test "$cross_compiling" = yes; then :
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13063 #include <locale.h>
13064 #include <string.h>
13065 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13067 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13068 included before <wchar.h>. */
13069 #include <stddef.h>
13076 /* Test whether the function supports a NULL destination argument.
13077 This fails on native Windows. */
13078 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13080 const char input[] = "\337er";
13081 const char *src = input;
13084 memset (&state, '\0', sizeof (mbstate_t));
13085 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13089 /* Test whether the function works when started with a conversion state
13090 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13091 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13093 const char input[] = "B\303\274\303\237er";
13096 memset (&state, '\0', sizeof (mbstate_t));
13097 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13098 if (!mbsinit (&state))
13100 const char *src = input + 2;
13101 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13105 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13107 const char input[] = "<\306\374\313\334\270\354>";
13110 memset (&state, '\0', sizeof (mbstate_t));
13111 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13112 if (!mbsinit (&state))
13114 const char *src = input + 4;
13115 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13119 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13121 const char input[] = "B\250\271\201\060\211\070er";
13124 memset (&state, '\0', sizeof (mbstate_t));
13125 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13126 if (!mbsinit (&state))
13128 const char *src = input + 2;
13129 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13136 if ac_fn_c_try_run "$LINENO"; then :
13137 gl_cv_func_mbsrtowcs_works=yes
13139 gl_cv_func_mbsrtowcs_works=no
13141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13142 conftest.$ac_objext conftest.beam conftest.$ac_ext
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13149 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13151 case "$gl_cv_func_mbsrtowcs_works" in
13153 *) REPLACE_MBSRTOWCS=1 ;;
13158 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13167 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13177 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13194 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13199 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13208 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13211 for ac_header in bp-sym.h
13213 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13214 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_BP_SYM_H 1
13236 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13242 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13244 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13245 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13248 if test "$cross_compiling" = yes; then :
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13252 #include <features.h>
13253 #ifdef __GNU_LIBRARY__
13254 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13255 && !defined __UCLIBC__
13260 #include <cygwin/version.h>
13261 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268 $EGREP "Lucky user" >/dev/null 2>&1; then :
13269 gl_cv_func_memmem_works_fast="guessing yes"
13271 gl_cv_func_memmem_works_fast="guessing no"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 #include <signal.h> /* for signal */
13281 #include <string.h> /* for memmem */
13282 #include <stdlib.h> /* for malloc */
13283 #include <unistd.h> /* for alarm */
13284 static void quit (int sig) { exit (sig + 128); }
13291 size_t m = 1000000;
13292 char *haystack = (char *) malloc (2 * m + 1);
13293 char *needle = (char *) malloc (m + 1);
13294 /* Failure to compile this test due to missing alarm is okay,
13295 since all such platforms (mingw) also lack memmem. */
13296 signal (SIGALRM, quit);
13298 /* Check for quadratic performance. */
13299 if (haystack && needle)
13301 memset (haystack, 'A', 2 * m);
13302 haystack[2 * m] = 'B';
13303 memset (needle, 'A', m);
13305 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13314 if ac_fn_c_try_run "$LINENO"; then :
13315 gl_cv_func_memmem_works_fast=yes
13317 gl_cv_func_memmem_works_fast=no
13319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13320 conftest.$ac_objext conftest.beam conftest.$ac_ext
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13326 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13327 case "$gl_cv_func_memmem_works_fast" in
13335 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13344 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13351 for ac_func in memmem
13353 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13354 if test "x$ac_cv_func_memmem" = x""yes; then :
13355 cat >>confdefs.h <<_ACEOF
13356 #define HAVE_MEMMEM 1
13362 if test $ac_cv_func_memmem = yes; then
13368 if test $ac_cv_have_decl_memmem = no; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13372 $as_echo_n "checking whether memmem works... " >&6; }
13373 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13376 if test "$cross_compiling" = yes; then :
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13380 #ifdef __GNU_LIBRARY__
13381 #include <features.h>
13382 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13383 || __GLIBC_MINOR__ > 12)) \
13384 || (__GLIBC__ > 2)) \
13385 || defined __UCLIBC__
13388 #elif defined __CYGWIN__
13389 #include <cygwin/version.h>
13390 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "Lucky user" >/dev/null 2>&1; then :
13400 gl_cv_func_memmem_works_always="guessing yes"
13402 gl_cv_func_memmem_works_always="guessing no"
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13411 #include <string.h> /* for memmem */
13412 #define P "_EF_BF_BD"
13413 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13414 #define NEEDLE P P P P P
13421 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13423 /* Check for empty needle behavior. */
13425 const char *haystack = "AAA";
13426 if (memmem (haystack, 3, NULL, 0) != haystack)
13435 if ac_fn_c_try_run "$LINENO"; then :
13436 gl_cv_func_memmem_works_always=yes
13438 gl_cv_func_memmem_works_always=no
13440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13447 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13448 case "$gl_cv_func_memmem_works_always" in
13457 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13466 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13480 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13490 $as_echo_n "checking for ssize_t... " >&6; }
13491 if test "${gt_cv_ssize_t+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 #include <sys/types.h>
13500 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13506 if ac_fn_c_try_compile "$LINENO"; then :
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13514 $as_echo "$gt_cv_ssize_t" >&6; }
13515 if test $gt_cv_ssize_t = no; then
13517 $as_echo "#define ssize_t int" >>confdefs.h
13524 # Define two additional variables used in the Makefile substitution.
13526 if test "$ac_cv_header_stdbool_h" = yes; then
13529 STDBOOL_H='stdbool.h'
13532 if test -n "$STDBOOL_H"; then
13533 GL_GENERATE_STDBOOL_H_TRUE=
13534 GL_GENERATE_STDBOOL_H_FALSE='#'
13536 GL_GENERATE_STDBOOL_H_TRUE='#'
13537 GL_GENERATE_STDBOOL_H_FALSE=
13541 if test "$ac_cv_type__Bool" = yes; then
13552 if test $gt_cv_c_wchar_t = no; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13557 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13558 if test "${gl_cv_decl_null_works+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 #include <stddef.h>
13564 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 gl_cv_decl_null_works=yes
13577 gl_cv_decl_null_works=no
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13582 $as_echo "$gl_cv_decl_null_works" >&6; }
13583 if test $gl_cv_decl_null_works = no; then
13588 if test -n "$STDDEF_H"; then
13589 GL_GENERATE_STDDEF_H_TRUE=
13590 GL_GENERATE_STDDEF_H_FALSE='#'
13592 GL_GENERATE_STDDEF_H_TRUE='#'
13593 GL_GENERATE_STDDEF_H_FALSE=
13596 if test -n "$STDDEF_H"; then
13605 if test $gl_cv_have_include_next = yes; then
13606 gl_cv_next_stddef_h='<'stddef.h'>'
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13609 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13610 if test "${gl_cv_next_stddef_h+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 #include <stddef.h>
13620 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13621 *) gl_absname_cpp="$ac_cpp" ;;
13626 gl_dirsep_regex='[/\\]'
13629 gl_dirsep_regex='\/'
13632 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13634 gl_header_literal_regex=`echo 'stddef.h' \
13635 | sed -e "$gl_make_literal_regex_sed"`
13636 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13637 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13642 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13643 sed -n "$gl_absolute_header_sed"`'"'
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13648 $as_echo "$gl_cv_next_stddef_h" >&6; }
13650 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13652 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13654 gl_next_as_first_directive='<'stddef.h'>'
13656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13657 gl_next_as_first_directive=$gl_cv_next_stddef_h
13659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13672 if test $REPLACE_STRSTR = 0; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
13674 $as_echo_n "checking whether strstr works in linear time... " >&6; }
13675 if test "${gl_cv_func_strstr_linear+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13678 if test "$cross_compiling" = yes; then :
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13682 #include <features.h>
13683 #ifdef __GNU_LIBRARY__
13684 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13685 && !(defined __i386__ || defined __x86_64__) \
13686 && !defined __UCLIBC__
13691 #include <cygwin/version.h>
13692 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699 $EGREP "Lucky user" >/dev/null 2>&1; then :
13700 gl_cv_func_strstr_linear="guessing yes"
13702 gl_cv_func_strstr_linear="guessing no"
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13711 #include <signal.h> /* for signal */
13712 #include <string.h> /* for strstr */
13713 #include <stdlib.h> /* for malloc */
13714 #include <unistd.h> /* for alarm */
13715 static void quit (int sig) { exit (sig + 128); }
13722 size_t m = 1000000;
13723 char *haystack = (char *) malloc (2 * m + 2);
13724 char *needle = (char *) malloc (m + 2);
13725 /* Failure to compile this test due to missing alarm is okay,
13726 since all such platforms (mingw) also have quadratic strstr. */
13727 signal (SIGALRM, quit);
13729 /* Check for quadratic performance. */
13730 if (haystack && needle)
13732 memset (haystack, 'A', 2 * m);
13733 haystack[2 * m] = 'B';
13734 haystack[2 * m + 1] = 0;
13735 memset (needle, 'A', m);
13738 if (!strstr (haystack, needle))
13747 if ac_fn_c_try_run "$LINENO"; then :
13748 gl_cv_func_strstr_linear=yes
13750 gl_cv_func_strstr_linear=no
13752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13753 conftest.$ac_objext conftest.beam conftest.$ac_ext
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
13759 $as_echo "$gl_cv_func_strstr_linear" >&6; }
13760 case "$gl_cv_func_strstr_linear" in
13768 if test $REPLACE_STRSTR = 1; then
13777 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13783 if test "$gl_cv_func_memchr_works" != yes; then
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13787 $as_echo_n "checking whether strstr works... " >&6; }
13788 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13791 if test "$cross_compiling" = yes; then :
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13795 #ifdef __GNU_LIBRARY__
13796 #include <features.h>
13797 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13798 || defined __UCLIBC__
13801 #elif defined __CYGWIN__
13802 #include <cygwin/version.h>
13803 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "Lucky user" >/dev/null 2>&1; then :
13813 gl_cv_func_strstr_works_always="guessing yes"
13815 gl_cv_func_strstr_works_always="guessing no"
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13824 #include <string.h> /* for strstr */
13825 #define P "_EF_BF_BD"
13826 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13827 #define NEEDLE P P P P P
13832 return !!strstr (HAYSTACK, NEEDLE);
13838 if ac_fn_c_try_run "$LINENO"; then :
13839 gl_cv_func_strstr_works_always=yes
13841 gl_cv_func_strstr_works_always=no
13843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13844 conftest.$ac_objext conftest.beam conftest.$ac_ext
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13850 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13851 case "$gl_cv_func_strstr_works_always" in
13859 if test $REPLACE_STRSTR = 1; then
13868 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13882 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
13900 if test $gl_cv_have_include_next = yes; then
13901 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
13904 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
13905 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13909 if test $ac_cv_header_sys_stat_h = yes; then
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 #include <sys/stat.h>
13918 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13919 *) gl_absname_cpp="$ac_cpp" ;;
13924 gl_dirsep_regex='[/\\]'
13927 gl_dirsep_regex='\/'
13930 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13932 gl_header_literal_regex=`echo 'sys/stat.h' \
13933 | sed -e "$gl_make_literal_regex_sed"`
13934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13940 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13941 sed -n "$gl_absolute_header_sed"`'"'
13943 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
13949 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
13951 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
13953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13955 gl_next_as_first_directive='<'sys/stat.h'>'
13957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13958 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
13960 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
13969 WINDOWS_64_BIT_ST_SIZE=0
13972 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
13974 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
13978 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
13979 #include <sys/stat.h>
13981 if test "x$ac_cv_type_nlink_t" = x""yes; then :
13985 $as_echo "#define nlink_t int" >>confdefs.h
13991 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
13992 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13994 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13995 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13996 $as_echo_n "(cached) " >&6
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 #include <sys/stat.h>
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 eval "$as_gl_Symbol=yes"
14014 eval "$as_gl_Symbol=no"
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 eval ac_res=\$$as_gl_Symbol
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14020 $as_echo "$ac_res" >&6; }
14021 eval as_val=\$$as_gl_Symbol
14022 if test "x$as_val" = x""yes; then :
14023 cat >>confdefs.h <<_ACEOF
14024 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14027 eval ac_cv_have_decl_$gl_func=yes
14044 if test $gl_cv_have_include_next = yes; then
14045 gl_cv_next_sys_types_h='<'sys/types.h'>'
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14048 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14049 if test "${gl_cv_next_sys_types_h+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <sys/types.h>
14059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14060 *) gl_absname_cpp="$ac_cpp" ;;
14065 gl_dirsep_regex='[/\\]'
14068 gl_dirsep_regex='\/'
14071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14073 gl_header_literal_regex=`echo 'sys/types.h' \
14074 | sed -e "$gl_make_literal_regex_sed"`
14075 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14076 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14081 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14082 sed -n "$gl_absolute_header_sed"`'"'
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14087 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14089 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14091 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14092 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14093 gl_next_as_first_directive='<'sys/types.h'>'
14095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14096 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14098 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14126 if test $gl_cv_have_include_next = yes; then
14127 gl_cv_next_unistd_h='<'unistd.h'>'
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14130 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14131 if test "${gl_cv_next_unistd_h+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14135 if test $ac_cv_header_unistd_h = yes; then
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14140 #include <unistd.h>
14144 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14145 *) gl_absname_cpp="$ac_cpp" ;;
14150 gl_dirsep_regex='[/\\]'
14153 gl_dirsep_regex='\/'
14156 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14158 gl_header_literal_regex=`echo 'unistd.h' \
14159 | sed -e "$gl_make_literal_regex_sed"`
14160 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14161 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14166 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14167 sed -n "$gl_absolute_header_sed"`'"'
14169 gl_cv_next_unistd_h='<'unistd.h'>'
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14175 $as_echo "$gl_cv_next_unistd_h" >&6; }
14177 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14179 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14181 gl_next_as_first_directive='<'unistd.h'>'
14183 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14184 gl_next_as_first_directive=$gl_cv_next_unistd_h
14186 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14191 if test $ac_cv_header_unistd_h = yes; then
14203 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
14204 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14206 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14207 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14208 $as_echo_n "(cached) " >&6
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14214 # include <unistd.h>
14216 /* Some systems declare various items in the wrong headers. */
14217 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14218 # include <fcntl.h>
14219 # include <stdio.h>
14220 # include <stdlib.h>
14221 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 eval "$as_gl_Symbol=yes"
14238 eval "$as_gl_Symbol=no"
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242 eval ac_res=\$$as_gl_Symbol
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14244 $as_echo "$ac_res" >&6; }
14245 eval as_val=\$$as_gl_Symbol
14246 if test "x$as_val" = x""yes; then :
14247 cat >>confdefs.h <<_ACEOF
14248 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14251 eval ac_cv_have_decl_$gl_func=yes
14268 if test $gl_cv_have_include_next = yes; then
14269 gl_cv_next_wchar_h='<'wchar.h'>'
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14272 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14273 if test "${gl_cv_next_wchar_h+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
14277 if test $ac_cv_header_wchar_h = yes; then
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14286 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14287 *) gl_absname_cpp="$ac_cpp" ;;
14292 gl_dirsep_regex='[/\\]'
14295 gl_dirsep_regex='\/'
14298 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14300 gl_header_literal_regex=`echo 'wchar.h' \
14301 | sed -e "$gl_make_literal_regex_sed"`
14302 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14303 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14308 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14309 sed -n "$gl_absolute_header_sed"`'"'
14311 gl_cv_next_wchar_h='<'wchar.h'>'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14317 $as_echo "$gl_cv_next_wchar_h" >&6; }
14319 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14321 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14323 gl_next_as_first_directive='<'wchar.h'>'
14325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14326 gl_next_as_first_directive=$gl_cv_next_wchar_h
14328 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14333 if test $ac_cv_header_wchar_h = yes; then
14343 if test $gt_cv_c_wint_t = yes; then
14351 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
14352 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14354 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14355 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14356 $as_echo_n "(cached) " >&6
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14361 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14363 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14364 included before <wchar.h>. */
14365 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14366 # include <stddef.h>
14367 # include <stdio.h>
14381 if ac_fn_c_try_compile "$LINENO"; then :
14382 eval "$as_gl_Symbol=yes"
14384 eval "$as_gl_Symbol=no"
14386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 eval ac_res=\$$as_gl_Symbol
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14390 $as_echo "$ac_res" >&6; }
14391 eval as_val=\$$as_gl_Symbol
14392 if test "x$as_val" = x""yes; then :
14393 cat >>confdefs.h <<_ACEOF
14394 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14397 eval ac_cv_have_decl_$gl_func=yes
14407 if test $ac_cv_func_iswcntrl = yes; then
14415 if test $gt_cv_c_wint_t = yes; then
14431 if test $gl_cv_have_include_next = yes; then
14432 gl_cv_next_wctype_h='<'wctype.h'>'
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14435 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14436 if test "${gl_cv_next_wctype_h+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14440 if test $ac_cv_header_wctype_h = yes; then
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 #include <wctype.h>
14449 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14450 *) gl_absname_cpp="$ac_cpp" ;;
14455 gl_dirsep_regex='[/\\]'
14458 gl_dirsep_regex='\/'
14461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14463 gl_header_literal_regex=`echo 'wctype.h' \
14464 | sed -e "$gl_make_literal_regex_sed"`
14465 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14466 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14471 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14472 sed -n "$gl_absolute_header_sed"`'"'
14474 gl_cv_next_wctype_h='<'wctype.h'>'
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
14480 $as_echo "$gl_cv_next_wctype_h" >&6; }
14482 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
14484 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14486 gl_next_as_first_directive='<'wctype.h'>'
14488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14489 gl_next_as_first_directive=$gl_cv_next_wctype_h
14491 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
14496 if test $ac_cv_header_wctype_h = yes; then
14497 if test $ac_cv_func_iswcntrl = yes; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
14499 $as_echo_n "checking whether iswcntrl works... " >&6; }
14500 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14504 if test "$cross_compiling" = yes; then :
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 #include <stdlib.h>
14508 #if __GNU_LIBRARY__ == 1
14509 Linux libc5 i18n is broken.
14519 if ac_fn_c_try_compile "$LINENO"; then :
14520 gl_cv_func_iswcntrl_works="guessing yes"
14522 gl_cv_func_iswcntrl_works="guessing no"
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14530 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14531 included before <wchar.h>.
14532 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14533 must be included before <wchar.h>. */
14534 #include <stddef.h>
14538 #include <wctype.h>
14539 int main () { return iswprint ('x') == 0; }
14542 if ac_fn_c_try_run "$LINENO"; then :
14543 gl_cv_func_iswcntrl_works=yes
14545 gl_cv_func_iswcntrl_works=no
14547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14548 conftest.$ac_objext conftest.beam conftest.$ac_ext
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
14554 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
14562 case "$gl_cv_func_iswcntrl_works" in
14563 *yes) REPLACE_ISWCNTRL=0 ;;
14564 *) REPLACE_ISWCNTRL=1 ;;
14568 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
14572 if test $REPLACE_ISWCNTRL = 1; then
14575 for ac_func in towlower
14577 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
14578 if test "x$ac_cv_func_towlower" = x""yes; then :
14579 cat >>confdefs.h <<_ACEOF
14580 #define HAVE_TOWLOWER 1
14586 if test $ac_cv_func_towlower = yes; then
14589 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14590 included before <wchar.h>.
14591 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14592 must be included before <wchar.h>. */
14593 #include <stddef.h>
14598 # include <wctype.h>
14602 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_DECL_TOWLOWER $ac_have_decl
14612 if test $ac_cv_have_decl_towlower = yes; then
14621 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
14626 $as_echo_n "checking for wctype_t... " >&6; }
14627 if test "${gl_cv_type_wctype_t+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14633 included before <wchar.h>.
14634 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14635 must be included before <wchar.h>. */
14636 #include <stddef.h>
14641 # include <wctype.h>
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 gl_cv_type_wctype_t=yes
14656 gl_cv_type_wctype_t=no
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
14662 $as_echo "$gl_cv_type_wctype_t" >&6; }
14663 if test $gl_cv_type_wctype_t = no; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
14668 $as_echo_n "checking for wctrans_t... " >&6; }
14669 if test "${gl_cv_type_wctrans_t+set}" = set; then :
14670 $as_echo_n "(cached) " >&6
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14675 included before <wchar.h>.
14676 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14677 must be included before <wchar.h>. */
14678 #include <stddef.h>
14682 #include <wctype.h>
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694 gl_cv_type_wctrans_t=yes
14696 gl_cv_type_wctrans_t=no
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
14702 $as_echo "$gl_cv_type_wctrans_t" >&6; }
14703 if test $gl_cv_type_wctrans_t = no; then
14708 for gl_func in wctype iswctype wctrans towctrans ; do
14709 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14711 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14712 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14713 $as_echo_n "(cached) " >&6
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14720 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14721 included before <wchar.h>. */
14722 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14723 # include <stddef.h>
14724 # include <stdio.h>
14726 # include <wchar.h>
14728 #include <wctype.h>
14739 if ac_fn_c_try_compile "$LINENO"; then :
14740 eval "$as_gl_Symbol=yes"
14742 eval "$as_gl_Symbol=no"
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14746 eval ac_res=\$$as_gl_Symbol
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14748 $as_echo "$ac_res" >&6; }
14749 eval as_val=\$$as_gl_Symbol
14750 if test "x$as_val" = x""yes; then :
14751 cat >>confdefs.h <<_ACEOF
14752 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14755 eval ac_cv_have_decl_$gl_func=yes
14760 # End of code from modules
14781 gl_source_base='tests'
14782 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
14784 gl_module_indicator_condition=$gltests_WITNESS
14794 LIBGNU_LIBDEPS="$gl_libdeps"
14796 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14800 # We don't use automake, but gnulib does. This line lets us generate
14802 am__api_version='1.11'
14804 # Find a good install program. We prefer a C program (faster),
14805 # so one script is as good as another. But avoid the broken or
14806 # incompatible versions:
14807 # SysV /etc/install, /usr/sbin/install
14808 # SunOS /usr/etc/install
14809 # IRIX /sbin/install
14811 # AmigaOS /C/install, which installs bootblocks on floppy discs
14812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14815 # OS/2's system install, which has a completely different semantic
14816 # ./install, which can be erroneously created by make from ./install.sh.
14817 # Reject install programs that cannot install multiple files.
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14820 if test -z "$INSTALL"; then
14821 if test "${ac_cv_path_install+set}" = set; then :
14822 $as_echo_n "(cached) " >&6
14824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825 for as_dir in $PATH
14828 test -z "$as_dir" && as_dir=.
14829 # Account for people who put trailing slashes in PATH elements.
14830 case $as_dir/ in #((
14831 ./ | .// | /[cC]/* | \
14832 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14833 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14836 # OSF1 and SCO ODT 3.0 have their own names for install.
14837 # Don't use installbsd from OSF since it installs stuff as root
14839 for ac_prog in ginstall scoinst install; do
14840 for ac_exec_ext in '' $ac_executable_extensions; do
14841 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14842 if test $ac_prog = install &&
14843 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14844 # AIX install. It has an incompatible calling convention.
14846 elif test $ac_prog = install &&
14847 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14848 # program-specific install script used by HP pwplus--don't use.
14851 rm -rf conftest.one conftest.two conftest.dir
14852 echo one > conftest.one
14853 echo two > conftest.two
14855 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14856 test -s conftest.one && test -s conftest.two &&
14857 test -s conftest.dir/conftest.one &&
14858 test -s conftest.dir/conftest.two
14860 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14873 rm -rf conftest.one conftest.two conftest.dir
14876 if test "${ac_cv_path_install+set}" = set; then
14877 INSTALL=$ac_cv_path_install
14879 # As a last resort, use the slow shell script. Don't cache a
14880 # value for INSTALL within a source directory, because that will
14881 # break other packages using the cache if that directory is
14882 # removed, or if the value is a relative name.
14883 INSTALL=$ac_install_sh
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14887 $as_echo "$INSTALL" >&6; }
14889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14890 # It thinks the first close brace ends the variable substitution.
14891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14898 $as_echo_n "checking whether build environment is sane... " >&6; }
14901 echo timestamp > conftest.file
14902 # Reject unsafe characters in $srcdir or the absolute working directory
14903 # name. Accept space and tab only in the latter.
14907 *[\\\"\#\$\&\'\`$am_lf]*)
14908 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
14911 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14912 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14915 # Do `set' in a subshell so we don't clobber the current shell's
14916 # arguments. Must try -L first in case configure is actually a
14917 # symlink; some systems play weird games with the mod time of symlinks
14918 # (eg FreeBSD returns the mod time of the symlink's containing
14921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14922 if test "$*" = "X"; then
14924 set X `ls -t "$srcdir/configure" conftest.file`
14926 rm -f conftest.file
14927 if test "$*" != "X $srcdir/configure conftest.file" \
14928 && test "$*" != "X conftest.file $srcdir/configure"; then
14930 # If neither matched, then we have a broken ls. This can happen
14931 # if, for instance, CONFIG_SHELL is bash and it inherits a
14932 # broken ls alias from the environment. This has actually
14933 # happened. Such a system could not be considered "sane".
14934 as_fn_error "ls -t appears to fail. Make sure there is not a broken
14935 alias in your environment" "$LINENO" 5
14938 test "$2" = conftest.file
14944 as_fn_error "newly created file is older than distributed files!
14945 Check your system clock" "$LINENO" 5
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14948 $as_echo "yes" >&6; }
14949 test "$program_prefix" != NONE &&
14950 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14951 # Use a double $ so make ignores it.
14952 test "$program_suffix" != NONE &&
14953 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14954 # Double any \ or $.
14955 # By default was `s,x,x', remove it if useless.
14956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14959 # expand $ac_aux_dir to an absolute path
14960 am_aux_dir=`cd $ac_aux_dir && pwd`
14962 if test x"${MISSING+set}" != xset; then
14963 case $am_aux_dir in
14965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14967 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14970 # Use eval to expand $SHELL
14971 if eval "$MISSING --run true"; then
14972 am_missing_run="$MISSING --run "
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14979 if test x"${install_sh}" != xset; then
14980 case $am_aux_dir in
14982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14984 install_sh="\${SHELL} $am_aux_dir/install-sh"
14988 # Installed binaries are usually stripped using `strip' when the user
14989 # run `make install-strip'. However `strip' might not be the right
14990 # tool to use in cross-compilation environments, therefore Automake
14991 # will honor the `STRIP' environment variable to overrule this program.
14992 if test "$cross_compiling" != no; then
14993 if test -n "$ac_tool_prefix"; then
14994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14995 set dummy ${ac_tool_prefix}strip; ac_word=$2
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14997 $as_echo_n "checking for $ac_word... " >&6; }
14998 if test "${ac_cv_prog_STRIP+set}" = set; then :
14999 $as_echo_n "(cached) " >&6
15001 if test -n "$STRIP"; then
15002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15005 for as_dir in $PATH
15008 test -z "$as_dir" && as_dir=.
15009 for ac_exec_ext in '' $ac_executable_extensions; do
15010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15021 STRIP=$ac_cv_prog_STRIP
15022 if test -n "$STRIP"; then
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15024 $as_echo "$STRIP" >&6; }
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15032 if test -z "$ac_cv_prog_STRIP"; then
15034 # Extract the first word of "strip", so it can be a program name with args.
15035 set dummy strip; ac_word=$2
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15037 $as_echo_n "checking for $ac_word... " >&6; }
15038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15041 if test -n "$ac_ct_STRIP"; then
15042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15045 for as_dir in $PATH
15048 test -z "$as_dir" && as_dir=.
15049 for ac_exec_ext in '' $ac_executable_extensions; do
15050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15051 ac_cv_prog_ac_ct_STRIP="strip"
15052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15062 if test -n "$ac_ct_STRIP"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15064 $as_echo "$ac_ct_STRIP" >&6; }
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067 $as_echo "no" >&6; }
15070 if test "x$ac_ct_STRIP" = x; then
15073 case $cross_compiling:$ac_tool_warned in
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15077 ac_tool_warned=yes ;;
15082 STRIP="$ac_cv_prog_STRIP"
15086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15090 [\\/$]* | ?:[\\/]*) ;;
15091 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15094 for ac_prog in gawk mawk nawk awk
15096 # Extract the first word of "$ac_prog", so it can be a program name with args.
15097 set dummy $ac_prog; ac_word=$2
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099 $as_echo_n "checking for $ac_word... " >&6; }
15100 if test "${ac_cv_prog_AWK+set}" = set; then :
15101 $as_echo_n "(cached) " >&6
15103 if test -n "$AWK"; then
15104 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15110 test -z "$as_dir" && as_dir=.
15111 for ac_exec_ext in '' $ac_executable_extensions; do
15112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15113 ac_cv_prog_AWK="$ac_prog"
15114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15123 AWK=$ac_cv_prog_AWK
15124 if test -n "$AWK"; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15126 $as_echo "$AWK" >&6; }
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15133 test -n "$AWK" && break
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15139 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15141 $as_echo_n "(cached) " >&6
15143 cat >conftest.make <<\_ACEOF
15146 @echo '@@@%%%=$(MAKE)=@@@%%%'
15148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15149 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15150 *@@@%%%=?*=@@@%%%*)
15151 eval ac_cv_prog_make_${ac_make}_set=yes;;
15153 eval ac_cv_prog_make_${ac_make}_set=no;;
15155 rm -f conftest.make
15157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15159 $as_echo "yes" >&6; }
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15163 $as_echo "no" >&6; }
15164 SET_MAKE="MAKE=${MAKE-make}"
15167 rm -rf .tst 2>/dev/null
15168 mkdir .tst 2>/dev/null
15169 if test -d .tst; then
15174 rmdir .tst 2>/dev/null
15176 DEPDIR="${am__leading_dot}deps"
15178 ac_config_commands="$ac_config_commands depfiles"
15181 am_make=${MAKE-make}
15182 cat > confinc << 'END'
15184 @echo this is the am__doit target
15187 # If we don't find an include directive, just comment out the code.
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15189 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15193 # First try GNU make style include.
15194 echo "include confinc" > confmf
15195 # Ignore all kinds of additional output from `make'.
15196 case `$am_make -s -f confmf 2> /dev/null` in #(
15197 *the\ am__doit\ target*)
15198 am__include=include
15203 # Now try BSD make style include.
15204 if test "$am__include" = "#"; then
15205 echo '.include "confinc"' > confmf
15206 case `$am_make -s -f confmf 2> /dev/null` in #(
15207 *the\ am__doit\ target*)
15208 am__include=.include
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15217 $as_echo "$_am_result" >&6; }
15218 rm -f confinc confmf
15220 # Check whether --enable-dependency-tracking was given.
15221 if test "${enable_dependency_tracking+set}" = set; then :
15222 enableval=$enable_dependency_tracking;
15225 if test "x$enable_dependency_tracking" != xno; then
15226 am_depcomp="$ac_aux_dir/depcomp"
15229 if test "x$enable_dependency_tracking" != xno; then
15238 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15239 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15240 # is not polluted with repeated "-I."
15241 am__isrc=' -I$(srcdir)'
15242 # test to see if srcdir already configured
15243 if test -f $srcdir/config.status; then
15244 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15248 # test whether we have cygpath
15249 if test -z "$CYGPATH_W"; then
15250 if (cygpath --version) >/dev/null 2>/dev/null; then
15251 CYGPATH_W='cygpath -w'
15258 # Define the identity of the package.
15260 VERSION=UNUSED-VERSION
15263 # Some tools Automake needs.
15265 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15268 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15271 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15274 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15277 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15279 # We need awk for the "check" target. The system "awk" is bad on
15281 # Always define AMTAR for backward compatibility.
15283 AMTAR=${AMTAR-"${am_missing_run}tar"}
15285 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15290 depcc="$CC" am_compiler_list=
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15293 $as_echo_n "checking dependency style of $depcc... " >&6; }
15294 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15298 # We make a subdir and do the tests there. Otherwise we can end up
15299 # making bogus files that we don't know about and never remove. For
15300 # instance it was reported that on HP-UX the gcc test will end up
15301 # making a dummy file named `D' -- because `-MD' means `put the output
15304 # Copy depcomp to subdir because otherwise we won't find it if we're
15305 # using a relative directory.
15306 cp "$am_depcomp" conftest.dir
15308 # We will build objects and dependencies in a subdirectory because
15309 # it helps to detect inapplicable dependency modes. For instance
15310 # both Tru64's cc and ICC support -MD to output dependencies as a
15311 # side effect of compilation, but ICC will put the dependencies in
15312 # the current directory while Tru64 will put them in the object
15316 am_cv_CC_dependencies_compiler_type=none
15317 if test "$am_compiler_list" = ""; then
15318 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15320 am__universal=false
15321 case " $depcc " in #(
15322 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15325 for depmode in $am_compiler_list; do
15326 # Setup a source with many dependencies, because some compilers
15327 # like to wrap large dependency lists on column 80 (with \), and
15328 # we should not choose a depcomp mode which is confused by this.
15330 # We need to recreate these files for each test, as the compiler may
15331 # overwrite some of them when testing with obscure command lines.
15332 # This happens at least with the AIX C compiler.
15334 for i in 1 2 3 4 5 6; do
15335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15337 # Solaris 8's {/usr,}/bin/sh.
15338 touch sub/conftst$i.h
15340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15342 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15343 # mode. It turns out that the SunPro C++ compiler does not properly
15344 # handle `-M -o', and we need to detect this. Also, some Intel
15345 # versions had trouble with output in subdirs
15346 am__obj=sub/conftest.${OBJEXT-o}
15347 am__minus_obj="-o $am__obj"
15350 # This depmode causes a compiler race in universal mode.
15351 test "$am__universal" = false || continue
15354 # after this tag, mechanisms are not by side-effect, so they'll
15355 # only be used when explicitly requested
15356 if test "x$enable_dependency_tracking" = xyes; then
15362 msvisualcpp | msvcmsys)
15363 # This compiler won't grok `-c -o', but also, the minuso test has
15364 # not run yet. These depmodes are late enough in the game, and
15365 # so weak that their functioning should not be impacted.
15366 am__obj=conftest.${OBJEXT-o}
15371 if depmode=$depmode \
15372 source=sub/conftest.c object=$am__obj \
15373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15374 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15375 >/dev/null 2>conftest.err &&
15376 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15378 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15380 # icc doesn't choke on unknown options, it will just issue warnings
15381 # or remarks (even with -Werror). So we grep stderr for any message
15382 # that says an option was ignored or not supported.
15383 # When given -MP, icc 7.0 and 7.1 complain thusly:
15384 # icc: Command line warning: ignoring option '-M'; no argument required
15385 # The diagnosis changed in icc 8.0:
15386 # icc: Command line remark: option '-MP' not supported
15387 if (grep 'ignoring option' conftest.err ||
15388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15389 am_cv_CC_dependencies_compiler_type=$depmode
15396 rm -rf conftest.dir
15398 am_cv_CC_dependencies_compiler_type=none
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15403 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15404 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15407 test "x$enable_dependency_tracking" != xno \
15408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15409 am__fastdepCC_TRUE=
15410 am__fastdepCC_FALSE='#'
15412 am__fastdepCC_TRUE='#'
15413 am__fastdepCC_FALSE=
15419 # --------------------- #
15420 # Checks for programs. #
15421 # --------------------- #
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15425 $as_echo_n "checking whether ln -s works... " >&6; }
15427 if test "$LN_S" = "ln -s"; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15429 $as_echo "yes" >&6; }
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15432 $as_echo "no, using $LN_S" >&6; }
15435 if test -n "$ac_tool_prefix"; then
15436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15439 $as_echo_n "checking for $ac_word... " >&6; }
15440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15443 if test -n "$RANLIB"; then
15444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15447 for as_dir in $PATH
15450 test -z "$as_dir" && as_dir=.
15451 for ac_exec_ext in '' $ac_executable_extensions; do
15452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15463 RANLIB=$ac_cv_prog_RANLIB
15464 if test -n "$RANLIB"; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15466 $as_echo "$RANLIB" >&6; }
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469 $as_echo "no" >&6; }
15474 if test -z "$ac_cv_prog_RANLIB"; then
15475 ac_ct_RANLIB=$RANLIB
15476 # Extract the first word of "ranlib", so it can be a program name with args.
15477 set dummy ranlib; ac_word=$2
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479 $as_echo_n "checking for $ac_word... " >&6; }
15480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15483 if test -n "$ac_ct_RANLIB"; then
15484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487 for as_dir in $PATH
15490 test -z "$as_dir" && as_dir=.
15491 for ac_exec_ext in '' $ac_executable_extensions; do
15492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15493 ac_cv_prog_ac_ct_RANLIB="ranlib"
15494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15504 if test -n "$ac_ct_RANLIB"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15506 $as_echo "$ac_ct_RANLIB" >&6; }
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15512 if test "x$ac_ct_RANLIB" = x; then
15515 case $cross_compiling:$ac_tool_warned in
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15519 ac_tool_warned=yes ;;
15521 RANLIB=$ac_ct_RANLIB
15524 RANLIB="$ac_cv_prog_RANLIB"
15528 if test -n "$ac_tool_prefix"; then
15529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15530 set dummy ${ac_tool_prefix}ar; ac_word=$2
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15532 $as_echo_n "checking for $ac_word... " >&6; }
15533 if test "${ac_cv_prog_AR+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15536 if test -n "$AR"; then
15537 ac_cv_prog_AR="$AR" # Let the user override the test.
15539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15540 for as_dir in $PATH
15543 test -z "$as_dir" && as_dir=.
15544 for ac_exec_ext in '' $ac_executable_extensions; do
15545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15546 ac_cv_prog_AR="${ac_tool_prefix}ar"
15547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15557 if test -n "$AR"; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15559 $as_echo "$AR" >&6; }
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15562 $as_echo "no" >&6; }
15567 if test -z "$ac_cv_prog_AR"; then
15569 # Extract the first word of "ar", so it can be a program name with args.
15570 set dummy ar; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15572 $as_echo_n "checking for $ac_word... " >&6; }
15573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
15574 $as_echo_n "(cached) " >&6
15576 if test -n "$ac_ct_AR"; then
15577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15583 test -z "$as_dir" && as_dir=.
15584 for ac_exec_ext in '' $ac_executable_extensions; do
15585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15586 ac_cv_prog_ac_ct_AR="ar"
15587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15597 if test -n "$ac_ct_AR"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15599 $as_echo "$ac_ct_AR" >&6; }
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15605 if test "x$ac_ct_AR" = x; then
15608 case $cross_compiling:$ac_tool_warned in
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15612 ac_tool_warned=yes ;;
15617 AR="$ac_cv_prog_AR"
15621 # ---------------------- #
15622 # Checks for libraries. #
15623 # ---------------------- #
15625 ac_config_files="$ac_config_files Makefile import/Makefile"
15627 ac_config_commands="$ac_config_commands default"
15629 cat >confcache <<\_ACEOF
15630 # This file is a shell script that caches the results of configure
15631 # tests run on this system so they can be shared between configure
15632 # scripts and configure runs, see configure's option --config-cache.
15633 # It is not useful on other systems. If it contains results you don't
15634 # want to keep, you may remove or edit it.
15636 # config.status only pays attention to the cache file if you give it
15637 # the --recheck option to rerun configure.
15639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15641 # following values.
15645 # The following way of writing the cache mishandles newlines in values,
15646 # but we know of no workaround that is simple, portable, and efficient.
15647 # So, we kill variables containing newlines.
15648 # Ultrix sh set writes to stderr and can't be redirected directly,
15649 # and sets the high bit in the cache file unless we assign to the vars.
15651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15652 eval ac_val=\$$ac_var
15656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15657 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15660 _ | IFS | as_nl) ;; #(
15661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15662 *) { eval $ac_var=; unset $ac_var;} ;;
15668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15669 *${as_nl}ac_space=\ *)
15670 # `set' does not quote correctly, so add quotes: double-quote
15671 # substitution turns \\\\ into \\, and sed turns \\ into \.
15674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15677 # `set' quotes correctly as required by POSIX, so do not add quotes.
15678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15691 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15692 if test -w "$cache_file"; then
15693 test "x$cache_file" != "x/dev/null" &&
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15695 $as_echo "$as_me: updating cache $cache_file" >&6;}
15696 cat confcache >$cache_file
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15699 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15705 # Let make expand exec_prefix.
15706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15708 DEFS=-DHAVE_CONFIG_H
15712 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15713 # 1. Remove the extension, and $U if already installed.
15714 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15715 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15716 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15717 # will be set to the directory where LIBOBJS objects are built.
15718 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15719 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15721 LIBOBJS=$ac_libobjs
15723 LTLIBOBJS=$ac_ltlibobjs
15726 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15727 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15731 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15735 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
15739 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
15743 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
15747 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
15753 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
15757 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763 if test -n "$gl_LIBOBJS"; then
15764 # Remove the extension.
15765 sed_drop_objext='s/\.o$//;s/\.obj$//'
15766 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15767 gl_libobjs="$gl_libobjs $i.$ac_objext"
15768 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15771 gl_LIBOBJS=$gl_libobjs
15773 gl_LTLIBOBJS=$gl_ltlibobjs
15779 if test -n "$gltests_LIBOBJS"; then
15780 # Remove the extension.
15781 sed_drop_objext='s/\.o$//;s/\.obj$//'
15782 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15783 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15784 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15787 gltests_LIBOBJS=$gltests_libobjs
15789 gltests_LTLIBOBJS=$gltests_ltlibobjs
15792 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15793 as_fn_error "conditional \"AMDEP\" was never defined.
15794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15796 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15797 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15800 if test -n "$EXEEXT"; then
15802 am__EXEEXT_FALSE='#'
15804 am__EXEEXT_TRUE='#'
15809 : ${CONFIG_STATUS=./config.status}
15811 ac_clean_files_save=$ac_clean_files
15812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15814 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15816 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15818 # Generated by $as_me.
15819 # Run this file to recreate the current configuration.
15820 # Compiler output produced by configure, useful for debugging
15821 # configure, is in config.log if it exists.
15824 ac_cs_recheck=false
15827 SHELL=\${CONFIG_SHELL-$SHELL}
15830 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15831 ## -------------------- ##
15832 ## M4sh Initialization. ##
15833 ## -------------------- ##
15835 # Be more Bourne compatible
15836 DUALCASE=1; export DUALCASE # for MKS sh
15837 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15840 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15841 # is contrary to our usage. Disable this feature.
15842 alias -g '${1+"$@"}'='"$@"'
15843 setopt NO_GLOB_SUBST
15845 case `(set -o) 2>/dev/null` in #(
15857 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15858 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15859 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15860 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15861 # Prefer a ksh shell builtin over an external printf program on Solaris,
15862 # but without wasting forks for bash or zsh.
15863 if test -z "$BASH_VERSION$ZSH_VERSION" \
15864 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15865 as_echo='print -r --'
15866 as_echo_n='print -rn --'
15867 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15868 as_echo='printf %s\n'
15869 as_echo_n='printf %s'
15871 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15872 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15873 as_echo_n='/usr/ucb/echo -n'
15875 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15876 as_echo_n_body='eval
15880 expr "X$arg" : "X\\(.*\\)$as_nl";
15881 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15883 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15885 export as_echo_n_body
15886 as_echo_n='sh -c $as_echo_n_body as_echo'
15888 export as_echo_body
15889 as_echo='sh -c $as_echo_body as_echo'
15892 # The user is always right.
15893 if test "${PATH_SEPARATOR+set}" != set; then
15895 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15896 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15903 # We need space, tab and new line, in precisely that order. Quoting is
15904 # there to prevent editors from complaining about space-tab.
15905 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15906 # splitting by setting IFS to empty value.)
15909 # Find who we are. Look in the path if we contain no directory separator.
15911 *[\\/]* ) as_myself=$0 ;;
15912 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15916 test -z "$as_dir" && as_dir=.
15917 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15923 # We did not find ourselves, most probably we were run as `sh COMMAND'
15924 # in which case we are not to be found in the path.
15925 if test "x$as_myself" = x; then
15928 if test ! -f "$as_myself"; then
15929 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15933 # Unset variables that we do not need and which cause bugs (e.g. in
15934 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15935 # suppresses any "Segmentation fault" message there. '((' could
15936 # trigger a bug in pdksh 5.2.14.
15937 for as_var in BASH_ENV ENV MAIL MAILPATH
15938 do eval test x\${$as_var+set} = xset \
15939 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15955 # as_fn_error ERROR [LINENO LOG_FD]
15956 # ---------------------------------
15957 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15958 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15959 # script with status $?, using 1 if that was 0.
15962 as_status=$?; test $as_status -eq 0 && as_status=1
15964 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15965 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15967 $as_echo "$as_me: error: $1" >&2
15968 as_fn_exit $as_status
15972 # as_fn_set_status STATUS
15973 # -----------------------
15974 # Set $? to STATUS, without forking.
15975 as_fn_set_status ()
15978 } # as_fn_set_status
15980 # as_fn_exit STATUS
15981 # -----------------
15982 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15986 as_fn_set_status $1
15992 # Portably unset VAR.
15995 { eval $1=; unset $1;}
15997 as_unset=as_fn_unset
15998 # as_fn_append VAR VALUE
15999 # ----------------------
16000 # Append the text in VALUE to the end of the definition contained in VAR. Take
16001 # advantage of any shell optimizations that allow amortized linear growth over
16002 # repeated appends, instead of the typical quadratic growth present in naive
16004 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16005 eval 'as_fn_append ()
16016 # as_fn_arith ARG...
16017 # ------------------
16018 # Perform arithmetic evaluation on the ARGs, and store the result in the
16019 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16020 # must be portable across $(()) and expr.
16021 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16022 eval 'as_fn_arith ()
16029 as_val=`expr "$@" || test $? -eq 1`
16034 if expr a : '\(a\)' >/dev/null 2>&1 &&
16035 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16041 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16042 as_basename=basename
16047 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16053 as_me=`$as_basename -- "$0" ||
16054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16055 X"$0" : 'X\(//\)$' \| \
16056 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16058 sed '/^.*\/\([^/][^/]*\)\/*$/{
16072 # Avoid depending upon Character Ranges.
16073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16076 as_cr_digits='0123456789'
16077 as_cr_alnum=$as_cr_Letters$as_cr_digits
16079 ECHO_C= ECHO_N= ECHO_T=
16080 case `echo -n x` in #(((((
16082 case `echo 'xy\c'` in
16083 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16085 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16092 rm -f conf$$ conf$$.exe conf$$.file
16093 if test -d conf$$.dir; then
16094 rm -f conf$$.dir/conf$$.file
16097 mkdir conf$$.dir 2>/dev/null
16099 if (echo >conf$$.file) 2>/dev/null; then
16100 if ln -s conf$$.file conf$$ 2>/dev/null; then
16102 # ... but there are two gotchas:
16103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16105 # In both cases, we have to default to `cp -p'.
16106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16108 elif ln conf$$.file conf$$ 2>/dev/null; then
16116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16117 rmdir conf$$.dir 2>/dev/null
16122 # Create "$as_dir" as a directory, including parents if necessary.
16127 -*) as_dir=./$as_dir;;
16129 test -d "$as_dir" || eval $as_mkdir_p || {
16133 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16134 *) as_qdir=$as_dir;;
16136 as_dirs="'$as_qdir' $as_dirs"
16137 as_dir=`$as_dirname -- "$as_dir" ||
16138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16139 X"$as_dir" : 'X\(//\)[^/]' \| \
16140 X"$as_dir" : 'X\(//\)$' \| \
16141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16142 $as_echo X"$as_dir" |
16143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16147 /^X\(\/\/\)[^/].*/{
16160 test -d "$as_dir" && break
16162 test -z "$as_dirs" || eval "mkdir $as_dirs"
16163 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16167 if mkdir -p . 2>/dev/null; then
16168 as_mkdir_p='mkdir -p "$as_dir"'
16170 test -d ./-p && rmdir ./-p
16174 if test -x / >/dev/null 2>&1; then
16175 as_test_x='test -x'
16177 if ls -dL / >/dev/null 2>&1; then
16184 if test -d "$1"; then
16190 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16191 ???[sx]*):;;*)false;;esac;fi
16195 as_executable_p=$as_test_x
16197 # Sed expression to map a string onto a valid CPP name.
16198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16200 # Sed expression to map a string onto a valid variable name.
16201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16205 ## ----------------------------------- ##
16206 ## Main body of $CONFIG_STATUS script. ##
16207 ## ----------------------------------- ##
16209 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16212 # Save the log message, to keep $0 and so on meaningful, and to
16213 # report actual input values of CONFIG_FILES etc. instead of their
16214 # values after options handling.
16216 This file was extended by $as_me, which was
16217 generated by GNU Autoconf 2.64. Invocation command line was
16219 CONFIG_FILES = $CONFIG_FILES
16220 CONFIG_HEADERS = $CONFIG_HEADERS
16221 CONFIG_LINKS = $CONFIG_LINKS
16222 CONFIG_COMMANDS = $CONFIG_COMMANDS
16225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16230 case $ac_config_files in *"
16231 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16234 case $ac_config_headers in *"
16235 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 # Files that config.status was made for.
16241 config_files="$ac_config_files"
16242 config_headers="$ac_config_headers"
16243 config_commands="$ac_config_commands"
16247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16249 \`$as_me' instantiates files and other configuration actions
16250 from templates according to the current configuration. Unless the files
16251 and actions are specified as TAGs, all are instantiated by default.
16253 Usage: $0 [OPTION]... [TAG]...
16255 -h, --help print this help, then exit
16256 -V, --version print version number and configuration settings, then exit
16257 -q, --quiet, --silent
16258 do not print progress messages
16259 -d, --debug don't remove temporary files
16260 --recheck update $as_me by reconfiguring in the same conditions
16261 --file=FILE[:TEMPLATE]
16262 instantiate the configuration file FILE
16263 --header=FILE[:TEMPLATE]
16264 instantiate the configuration header FILE
16266 Configuration files:
16269 Configuration headers:
16272 Configuration commands:
16275 Report bugs to the package provider."
16278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281 configured by $0, generated by GNU Autoconf 2.64,
16282 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16284 Copyright (C) 2009 Free Software Foundation, Inc.
16285 This config.status script is free software; the Free Software Foundation
16286 gives unlimited permission to copy, distribute and modify it."
16293 test -n "\$AWK" || AWK=awk
16296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16297 # The default lists apply if the user does not specify any file.
16303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16315 # Handling of the options.
16316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16319 $as_echo "$ac_cs_version"; exit ;;
16320 --debug | --debu | --deb | --de | --d | -d )
16322 --file | --fil | --fi | --f )
16325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16327 as_fn_append CONFIG_FILES " '$ac_optarg'"
16328 ac_need_defaults=false;;
16329 --header | --heade | --head | --hea )
16332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16335 ac_need_defaults=false;;
16337 # Conflict between --help and --header
16338 as_fn_error "ambiguous option: \`$1'
16339 Try \`$0 --help' for more information.";;
16340 --help | --hel | -h )
16341 $as_echo "$ac_cs_usage"; exit ;;
16342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16346 # This is an error.
16347 -*) as_fn_error "unrecognized option: \`$1'
16348 Try \`$0 --help' for more information." ;;
16350 *) as_fn_append ac_config_targets " $1"
16351 ac_need_defaults=false ;;
16357 ac_configure_extra_args=
16359 if $ac_cs_silent; then
16361 ac_configure_extra_args="$ac_configure_extra_args --silent"
16365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366 if \$ac_cs_recheck; then
16367 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16370 CONFIG_SHELL='$SHELL'
16371 export CONFIG_SHELL
16376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16381 ## Running $as_me. ##
16387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16391 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16397 # Handling of arguments.
16398 for ac_config_target in $ac_config_targets
16400 case $ac_config_target in
16401 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16402 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16403 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16404 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16405 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16407 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16412 # If the user did not use the arguments to specify the items to instantiate,
16413 # then the envvar interface is used. Set only those that are not.
16414 # We use the long form for the default assignment because of an extremely
16415 # bizarre bug on SunOS 4.1.3.
16416 if $ac_need_defaults; then
16417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16422 # Have a temporary directory for convenience. Make it in the build tree
16423 # simply because there is no reason against having it here, and in addition,
16424 # creating and moving files from /tmp can sometimes cause problems.
16425 # Hook for its removal unless debugging.
16426 # Note that there is a small window in which the directory will not be cleaned:
16427 # after its creation but before its name has been assigned to `$tmp'.
16431 trap 'exit_status=$?
16432 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16434 trap 'as_fn_exit 1' 1 2 13 15
16436 # Create a (secure) tmp directory for tmp files.
16439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16440 test -n "$tmp" && test -d "$tmp"
16443 tmp=./conf$$-$RANDOM
16444 (umask 077 && mkdir "$tmp")
16445 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16447 # Set up the scripts for CONFIG_FILES section.
16448 # No need to generate them if there are no CONFIG_FILES.
16449 # This happens for instance with `./config.status config.h'.
16450 if test -n "$CONFIG_FILES"; then
16453 ac_cr=`echo X | tr X '\015'`
16454 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16455 # But we know of no other shell where ac_cr would be empty at this
16456 # point, so we can use a bashism as a fallback.
16457 if test "x$ac_cr" = x; then
16458 eval ac_cr=\$\'\\r\'
16460 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16461 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16464 ac_cs_awk_cr=$ac_cr
16467 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16472 echo "cat >conf$$subs.awk <<_ACEOF" &&
16473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16475 } >conf$$subs.sh ||
16476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16479 for ac_last_try in false false false false false :; do
16480 . ./conf$$subs.sh ||
16481 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16484 if test $ac_delim_n = $ac_delim_num; then
16486 elif $ac_last_try; then
16487 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16492 rm -f conf$$subs.sh
16494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16495 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16499 s/^/S["/; s/!.*/"]=/
16509 s/\(.\{148\}\).*/\1/
16511 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16523 s/\(.\{148\}\).*/\1/
16525 s/["\\]/\\&/g; s/^/"/; s/$/"/
16529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16534 ' <conf$$subs.awk | sed '
16539 ' >>$CONFIG_STATUS || ac_write_fail=1
16540 rm -f conf$$subs.awk
16541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16543 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16544 for (key in S) S_is_set[key] = 1
16550 nfields = split(line, field, "@")
16552 len = length(field[1])
16553 for (i = 2; i < nfields; i++) {
16555 keylen = length(key)
16556 if (S_is_set[key]) {
16558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16559 len += length(value) + length(field[++i])
16570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16571 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16575 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16576 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16579 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16580 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16581 # trailing colons and then remove the whole line if VPATH becomes empty
16582 # (actually we leave an empty line to preserve line numbers).
16583 if test "x$srcdir" = x.; then
16584 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16585 s/:*\$(srcdir):*/:/
16586 s/:*\${srcdir}:*/:/
16588 s/^\([^=]*=[ ]*\):*/\1/
16594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595 fi # test -n "$CONFIG_FILES"
16597 # Set up the scripts for CONFIG_HEADERS section.
16598 # No need to generate them if there are no CONFIG_HEADERS.
16599 # This happens for instance with `./config.status Makefile'.
16600 if test -n "$CONFIG_HEADERS"; then
16601 cat >"$tmp/defines.awk" <<\_ACAWK ||
16605 # Transform confdefs.h into an awk script `defines.awk', embedded as
16606 # here-document in config.status, that substitutes the proper values into
16607 # config.h.in to produce config.h.
16609 # Create a delimiter string that does not exist in confdefs.h, to ease
16610 # handling of long lines.
16612 for ac_last_try in false false :; do
16613 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16614 if test -z "$ac_t"; then
16616 elif $ac_last_try; then
16617 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16623 # For the awk script, D is an array of macro values keyed by name,
16624 # likewise P contains macro parameters if any. Preserve backslash
16625 # newline sequences.
16627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16629 s/.\{148\}/&'"$ac_delim"'/g
16632 s/^[ ]*#[ ]*define[ ][ ]*/ /
16639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16646 D["\1"]=" \3\\\\\\n"\\/p
16648 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16653 s/.\{148\}/&'"$ac_delim"'/g
16658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16663 ' <confdefs.h | sed '
16664 s/'"$ac_delim"'/"\\\
16665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16668 for (key in D) D_is_set[key] = 1
16671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16673 split(line, arg, " ")
16674 if (arg[1] == "#") {
16678 defundef = substr(arg[1], 2)
16681 split(mac1, mac2, "(") #)
16683 prefix = substr(line, 1, index(line, defundef) - 1)
16684 if (D_is_set[macro]) {
16685 # Preserve the white space surrounding the "#".
16686 print prefix "define", macro P[macro] D[macro]
16689 # Replace #undef with comments. This is necessary, for example,
16690 # in the case of _POSIX_SOURCE, which is predefined and required
16691 # on some systems where configure will not decide to define it.
16692 if (defundef == "undef") {
16693 print "/*", prefix defundef, macro, "*/"
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16703 fi # test -n "$CONFIG_HEADERS"
16706 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16711 :[FHLC]) ac_mode=$ac_tag; continue;;
16713 case $ac_mode$ac_tag in
16715 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16716 :[FH]-) ac_tag=-:-;;
16717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16734 -) ac_f="$tmp/stdin";;
16735 *) # Look for the file first in the build tree, then in the source tree
16736 # (if the path is not absolute). The absolute path cannot be DOS-style,
16737 # because $ac_f cannot contain `:'.
16741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16743 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16745 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16746 as_fn_append ac_file_inputs " '$ac_f'"
16749 # Let's still pretend it is `configure' which instantiates (i.e., don't
16750 # use $as_me), people would be surprised to read:
16751 # /* config.h. Generated by config.status. */
16752 configure_input='Generated from '`
16753 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16755 if test x"$ac_file" != x-; then
16756 configure_input="$ac_file. $configure_input"
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16758 $as_echo "$as_me: creating $ac_file" >&6;}
16760 # Neutralize special characters interpreted by sed in replacement strings.
16761 case $configure_input in #(
16762 *\&* | *\|* | *\\* )
16763 ac_sed_conf_input=`$as_echo "$configure_input" |
16764 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16765 *) ac_sed_conf_input=$configure_input;;
16769 *:-:* | *:-) cat >"$tmp/stdin" \
16770 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16775 ac_dir=`$as_dirname -- "$ac_file" ||
16776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777 X"$ac_file" : 'X\(//\)[^/]' \| \
16778 X"$ac_file" : 'X\(//\)$' \| \
16779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16780 $as_echo X"$ac_file" |
16781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16785 /^X\(\/\/\)[^/].*/{
16798 as_dir="$ac_dir"; as_fn_mkdir_p
16802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16805 # A ".." for each directory in $ac_dir_suffix.
16806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16807 case $ac_top_builddir_sub in
16808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16812 ac_abs_top_builddir=$ac_pwd
16813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16814 # for backward compatibility:
16815 ac_top_builddir=$ac_top_build_prefix
16818 .) # We are building in place.
16820 ac_top_srcdir=$ac_top_builddir_sub
16821 ac_abs_top_srcdir=$ac_pwd ;;
16822 [\\/]* | ?:[\\/]* ) # Absolute name.
16823 ac_srcdir=$srcdir$ac_dir_suffix;
16824 ac_top_srcdir=$srcdir
16825 ac_abs_top_srcdir=$srcdir ;;
16826 *) # Relative name.
16827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16828 ac_top_srcdir=$ac_top_build_prefix$srcdir
16829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16842 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16844 ac_MKDIR_P=$MKDIR_P
16846 [\\/$]* | ?:[\\/]* ) ;;
16847 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16852 # If the template does not know about datarootdir, expand it.
16853 # FIXME: This hack should be removed a few years after 2.60.
16854 ac_datarootdir_hack=; ac_datarootdir_seen=
16865 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16866 *datarootdir*) ac_datarootdir_seen=yes;;
16867 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16869 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 ac_datarootdir_hack='
16873 s&@datadir@&$datadir&g
16874 s&@docdir@&$docdir&g
16875 s&@infodir@&$infodir&g
16876 s&@localedir@&$localedir&g
16877 s&@mandir@&$mandir&g
16878 s&\\\${datarootdir}&$datarootdir&g' ;;
16882 # Neutralize VPATH when `$srcdir' = `.'.
16883 # Shell code in configure.ac might set extrasub.
16884 # FIXME: do we really want to maintain this feature?
16885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16886 ac_sed_extra="$ac_vpsub
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16892 s|@configure_input@|$ac_sed_conf_input|;t t
16893 s&@top_builddir@&$ac_top_builddir_sub&;t t
16894 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16895 s&@srcdir@&$ac_srcdir&;t t
16896 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16897 s&@top_srcdir@&$ac_top_srcdir&;t t
16898 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16899 s&@builddir@&$ac_builddir&;t t
16900 s&@abs_builddir@&$ac_abs_builddir&;t t
16901 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16902 s&@INSTALL@&$ac_INSTALL&;t t
16903 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16904 $ac_datarootdir_hack
16906 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16907 || as_fn_error "could not create $ac_file" "$LINENO" 5
16909 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16910 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16913 which seems to be undefined. Please make sure it is defined." >&5
16914 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16915 which seems to be undefined. Please make sure it is defined." >&2;}
16919 -) cat "$tmp/out" && rm -f "$tmp/out";;
16920 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16922 || as_fn_error "could not create $ac_file" "$LINENO" 5
16928 if test x"$ac_file" != x-; then
16930 $as_echo "/* $configure_input */" \
16931 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16932 } >"$tmp/config.h" \
16933 || as_fn_error "could not create $ac_file" "$LINENO" 5
16934 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16936 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16939 mv "$tmp/config.h" "$ac_file" \
16940 || as_fn_error "could not create $ac_file" "$LINENO" 5
16943 $as_echo "/* $configure_input */" \
16944 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16945 || as_fn_error "could not create -" "$LINENO" 5
16947 # Compute "$ac_file"'s index in $config_headers.
16950 for _am_header in $config_headers :; do
16951 case $_am_header in
16952 $_am_arg | $_am_arg:* )
16955 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16958 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16959 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$_am_arg" : 'X\(//\)[^/]' \| \
16961 X"$_am_arg" : 'X\(//\)$' \| \
16962 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16963 $as_echo X"$_am_arg" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16968 /^X\(\/\/\)[^/].*/{
16980 s/.*/./; q'`/stamp-h$_am_stamp_count
16983 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16984 $as_echo "$as_me: executing $ac_file commands" >&6;}
16989 case $ac_file$ac_mode in
16990 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16991 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16992 # are listed without --file. Let's play safe and only enable the eval
16993 # if we detect the quoting.
16994 case $CONFIG_FILES in
16995 *\'*) eval set x "$CONFIG_FILES" ;;
16996 *) set x $CONFIG_FILES ;;
17001 # Strip MF so we end up with the name of the file.
17002 mf=`echo "$mf" | sed -e 's/:.*$//'`
17003 # Check whether this is an Automake generated Makefile or not.
17004 # We used to match only the files named `Makefile.in', but
17005 # some people rename them; so instead we look at the file content.
17006 # Grep'ing the first line is not enough: some people post-process
17007 # each Makefile.in and add a new line on top of each file to say so.
17008 # Grep'ing the whole file is not good either: AIX grep has a line
17009 # limit of 2048, but all sed's we know have understand at least 4000.
17010 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17011 dirpart=`$as_dirname -- "$mf" ||
17012 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17013 X"$mf" : 'X\(//\)[^/]' \| \
17014 X"$mf" : 'X\(//\)$' \| \
17015 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17021 /^X\(\/\/\)[^/].*/{
17037 # Extract the definition of DEPDIR, am__include, and am__quote
17038 # from the Makefile without running `make'.
17039 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17040 test -z "$DEPDIR" && continue
17041 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17042 test -z "am__include" && continue
17043 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17044 # When using ansi2knr, U may be empty or an underscore; expand it
17045 U=`sed -n 's/^U = //p' < "$mf"`
17046 # Find all dependency output files, they are included files with
17047 # $(DEPDIR) in their names. We invoke sed twice because it is the
17048 # simplest approach to changing $(DEPDIR) to its actual value in the
17050 for file in `sed -n "
17051 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17052 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17053 # Make sure the directory exists.
17054 test -f "$dirpart/$file" && continue
17055 fdir=`$as_dirname -- "$file" ||
17056 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17057 X"$file" : 'X\(//\)[^/]' \| \
17058 X"$file" : 'X\(//\)$' \| \
17059 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17060 $as_echo X"$file" |
17061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17065 /^X\(\/\/\)[^/].*/{
17078 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17079 # echo "creating $dirpart/$file"
17080 echo '# dummy' > "$dirpart/$file"
17086 case x$CONFIG_HEADERS in
17087 xconfig.h:config.in)
17098 ac_clean_files=$ac_clean_files_save
17100 test $ac_write_fail = 0 ||
17101 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17104 # configure is writing to config.log, and then calls config.status.
17105 # config.status does its own redirection, appending to config.log.
17106 # Unfortunately, on DOS this fails, as config.log is still kept open
17107 # by configure, so config.status won't be able to write to it; its
17108 # output is simply discarded. So we exec the FD to /dev/null,
17109 # effectively closing config.log, so it can be properly (re)opened and
17110 # appended to by config.status. When coming back to configure, we
17111 # need to make the FD available again.
17112 if test "$no_create" != yes; then
17114 ac_config_status_args=
17115 test "$silent" = yes &&
17116 ac_config_status_args="$ac_config_status_args --quiet"
17118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17121 # would make configure fail if this is the last instruction.
17122 $ac_cs_success || as_fn_exit $?
17124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}