2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 ac_unique_file="lib/unistring/version.in.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 gl_use_threads_default=
746 ac_subst_vars='gltests_LTLIBOBJS
758 HAVE_GLOBAL_SYMBOL_PIPE
766 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
779 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
785 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
788 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
790 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
791 UNISTD_H_HAVE_WINSOCK2_H
816 HAVE_DECL_GETUSERSHELL
817 HAVE_DECL_GETPAGESIZE
852 GNULIB_UNISTD_H_SIGPIPE
853 GNULIB_UNISTD_H_GETOPT
887 NEXT_AS_FIRST_DIRECTIVE_STRING_H
890 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
900 HAVE_SIGNED_SIG_ATOMIC_T
903 BITSIZEOF_SIG_ATOMIC_T
909 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
913 HAVE_UNSIGNED_LONG_LONG_INT
915 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
923 APPLE_UNIVERSAL_BUILD
1026 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1034 REPLACE_CANONICALIZE_FILE_NAME
1038 HAVE_STRUCT_RANDOM_DATA
1055 HAVE_DECL_GETLOADAVG
1056 HAVE_CANONICALIZE_FILE_NAME
1067 GNULIB_REALLOC_POSIX
1080 GNULIB_CANONICALIZE_FILE_NAME
1092 LOCALCHARSET_TESTS_ENVIRONMENT
1094 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1103 REPLACE_SIGNBIT_USING_GCC
1185 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1194 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1196 PRAGMA_SYSTEM_HEADER
1197 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1201 GL_COND_LIBTOOL_FALSE
1202 GL_COND_LIBTOOL_TRUE
1253 AM_DEFAULT_VERBOSITY
1262 INSTALL_STRIP_PROGRAM
1304 program_transform_name
1317 enable_option_checking
1319 enable_dependency_tracking
1328 with_libiconv_prefix
1333 ac_precious_vars='build_alias
1344 # Initialize some variables set by options.
1346 ac_init_version=false
1347 ac_unrecognized_opts=
1348 ac_unrecognized_sep=
1349 # The variables have the same names as the options, with
1350 # dashes changed to underlines.
1351 cache_file=/dev/null
1358 program_transform_name=s,x,x,
1366 # Installation directory options.
1367 # These are left unexpanded so users can "make install exec_prefix=/foo"
1368 # and all the variables that are supposed to be based on exec_prefix
1369 # by default will actually change.
1370 # Use braces instead of parens because sh, perl, etc. also accept them.
1371 # (The list follows the same order as the GNU Coding Standards.)
1372 bindir='${exec_prefix}/bin'
1373 sbindir='${exec_prefix}/sbin'
1374 libexecdir='${exec_prefix}/libexec'
1375 datarootdir='${prefix}/share'
1376 datadir='${datarootdir}'
1377 sysconfdir='${prefix}/etc'
1378 sharedstatedir='${prefix}/com'
1379 localstatedir='${prefix}/var'
1380 includedir='${prefix}/include'
1381 oldincludedir='/usr/include'
1382 docdir='${datarootdir}/doc/${PACKAGE}'
1383 infodir='${datarootdir}/info'
1388 libdir='${exec_prefix}/lib'
1389 localedir='${datarootdir}/locale'
1390 mandir='${datarootdir}/man'
1396 # If the previous option needs an argument, assign it.
1397 if test -n "$ac_prev"; then
1398 eval $ac_prev=\$ac_option
1404 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1408 # Accept the important Cygnus configure options, so we can diagnose typos.
1410 case $ac_dashdash$ac_option in
1414 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1416 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1417 bindir=$ac_optarg ;;
1419 -build | --build | --buil | --bui | --bu)
1420 ac_prev=build_alias ;;
1421 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1422 build_alias=$ac_optarg ;;
1424 -cache-file | --cache-file | --cache-fil | --cache-fi \
1425 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1426 ac_prev=cache_file ;;
1427 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1428 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1429 cache_file=$ac_optarg ;;
1431 --config-cache | -C)
1432 cache_file=config.cache ;;
1434 -datadir | --datadir | --datadi | --datad)
1436 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1437 datadir=$ac_optarg ;;
1439 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1440 | --dataroo | --dataro | --datar)
1441 ac_prev=datarootdir ;;
1442 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1443 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1444 datarootdir=$ac_optarg ;;
1446 -disable-* | --disable-*)
1447 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1448 # Reject names that are not valid shell variable names.
1449 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1450 as_fn_error "invalid feature name: $ac_useropt"
1451 ac_useropt_orig=$ac_useropt
1452 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1453 case $ac_user_opts in
1455 "enable_$ac_useropt"
1457 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1458 ac_unrecognized_sep=', ';;
1460 eval enable_$ac_useropt=no ;;
1462 -docdir | --docdir | --docdi | --doc | --do)
1464 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1465 docdir=$ac_optarg ;;
1467 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1469 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1470 dvidir=$ac_optarg ;;
1472 -enable-* | --enable-*)
1473 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1474 # Reject names that are not valid shell variable names.
1475 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1476 as_fn_error "invalid feature name: $ac_useropt"
1477 ac_useropt_orig=$ac_useropt
1478 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1479 case $ac_user_opts in
1481 "enable_$ac_useropt"
1483 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1484 ac_unrecognized_sep=', ';;
1486 eval enable_$ac_useropt=\$ac_optarg ;;
1488 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1489 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1490 | --exec | --exe | --ex)
1491 ac_prev=exec_prefix ;;
1492 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1493 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1494 | --exec=* | --exe=* | --ex=*)
1495 exec_prefix=$ac_optarg ;;
1497 -gas | --gas | --ga | --g)
1498 # Obsolete; use --with-gas.
1501 -help | --help | --hel | --he | -h)
1502 ac_init_help=long ;;
1503 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1504 ac_init_help=recursive ;;
1505 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1506 ac_init_help=short ;;
1508 -host | --host | --hos | --ho)
1509 ac_prev=host_alias ;;
1510 -host=* | --host=* | --hos=* | --ho=*)
1511 host_alias=$ac_optarg ;;
1513 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1515 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1517 htmldir=$ac_optarg ;;
1519 -includedir | --includedir | --includedi | --included | --include \
1520 | --includ | --inclu | --incl | --inc)
1521 ac_prev=includedir ;;
1522 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1523 | --includ=* | --inclu=* | --incl=* | --inc=*)
1524 includedir=$ac_optarg ;;
1526 -infodir | --infodir | --infodi | --infod | --info | --inf)
1528 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1529 infodir=$ac_optarg ;;
1531 -libdir | --libdir | --libdi | --libd)
1533 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1534 libdir=$ac_optarg ;;
1536 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1537 | --libexe | --libex | --libe)
1538 ac_prev=libexecdir ;;
1539 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1540 | --libexe=* | --libex=* | --libe=*)
1541 libexecdir=$ac_optarg ;;
1543 -localedir | --localedir | --localedi | --localed | --locale)
1544 ac_prev=localedir ;;
1545 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1546 localedir=$ac_optarg ;;
1548 -localstatedir | --localstatedir | --localstatedi | --localstated \
1549 | --localstate | --localstat | --localsta | --localst | --locals)
1550 ac_prev=localstatedir ;;
1551 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1552 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1553 localstatedir=$ac_optarg ;;
1555 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1557 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1558 mandir=$ac_optarg ;;
1560 -nfp | --nfp | --nf)
1561 # Obsolete; use --without-fp.
1564 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1565 | --no-cr | --no-c | -n)
1568 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1569 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1572 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1573 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1574 | --oldin | --oldi | --old | --ol | --o)
1575 ac_prev=oldincludedir ;;
1576 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1577 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1578 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1579 oldincludedir=$ac_optarg ;;
1581 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1583 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1584 prefix=$ac_optarg ;;
1586 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1587 | --program-pre | --program-pr | --program-p)
1588 ac_prev=program_prefix ;;
1589 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1590 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1591 program_prefix=$ac_optarg ;;
1593 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1594 | --program-suf | --program-su | --program-s)
1595 ac_prev=program_suffix ;;
1596 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1597 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1598 program_suffix=$ac_optarg ;;
1600 -program-transform-name | --program-transform-name \
1601 | --program-transform-nam | --program-transform-na \
1602 | --program-transform-n | --program-transform- \
1603 | --program-transform | --program-transfor \
1604 | --program-transfo | --program-transf \
1605 | --program-trans | --program-tran \
1606 | --progr-tra | --program-tr | --program-t)
1607 ac_prev=program_transform_name ;;
1608 -program-transform-name=* | --program-transform-name=* \
1609 | --program-transform-nam=* | --program-transform-na=* \
1610 | --program-transform-n=* | --program-transform-=* \
1611 | --program-transform=* | --program-transfor=* \
1612 | --program-transfo=* | --program-transf=* \
1613 | --program-trans=* | --program-tran=* \
1614 | --progr-tra=* | --program-tr=* | --program-t=*)
1615 program_transform_name=$ac_optarg ;;
1617 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1619 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1620 pdfdir=$ac_optarg ;;
1622 -psdir | --psdir | --psdi | --psd | --ps)
1624 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1628 | -silent | --silent | --silen | --sile | --sil)
1631 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1633 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1635 sbindir=$ac_optarg ;;
1637 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1638 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1639 | --sharedst | --shareds | --shared | --share | --shar \
1641 ac_prev=sharedstatedir ;;
1642 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1643 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1644 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1646 sharedstatedir=$ac_optarg ;;
1648 -site | --site | --sit)
1650 -site=* | --site=* | --sit=*)
1653 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1655 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1656 srcdir=$ac_optarg ;;
1658 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1659 | --syscon | --sysco | --sysc | --sys | --sy)
1660 ac_prev=sysconfdir ;;
1661 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1662 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1663 sysconfdir=$ac_optarg ;;
1665 -target | --target | --targe | --targ | --tar | --ta | --t)
1666 ac_prev=target_alias ;;
1667 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1668 target_alias=$ac_optarg ;;
1670 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1673 -version | --version | --versio | --versi | --vers | -V)
1674 ac_init_version=: ;;
1677 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1678 # Reject names that are not valid shell variable names.
1679 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1680 as_fn_error "invalid package name: $ac_useropt"
1681 ac_useropt_orig=$ac_useropt
1682 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1683 case $ac_user_opts in
1687 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1688 ac_unrecognized_sep=', ';;
1690 eval with_$ac_useropt=\$ac_optarg ;;
1692 -without-* | --without-*)
1693 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1694 # Reject names that are not valid shell variable names.
1695 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1696 as_fn_error "invalid package name: $ac_useropt"
1697 ac_useropt_orig=$ac_useropt
1698 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1699 case $ac_user_opts in
1703 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1704 ac_unrecognized_sep=', ';;
1706 eval with_$ac_useropt=no ;;
1709 # Obsolete; use --with-x.
1712 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1713 | --x-incl | --x-inc | --x-in | --x-i)
1714 ac_prev=x_includes ;;
1715 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1716 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1717 x_includes=$ac_optarg ;;
1719 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1720 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1721 ac_prev=x_libraries ;;
1722 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1723 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1724 x_libraries=$ac_optarg ;;
1726 -*) as_fn_error "unrecognized option: \`$ac_option'
1727 Try \`$0 --help' for more information."
1731 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1732 # Reject names that are not valid shell variable names.
1733 case $ac_envvar in #(
1734 '' | [0-9]* | *[!_$as_cr_alnum]* )
1735 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1737 eval $ac_envvar=\$ac_optarg
1738 export $ac_envvar ;;
1741 # FIXME: should be removed in autoconf 3.0.
1742 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1743 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1744 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1745 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1751 if test -n "$ac_prev"; then
1752 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1753 as_fn_error "missing argument to $ac_option"
1756 if test -n "$ac_unrecognized_opts"; then
1757 case $enable_option_checking in
1759 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1760 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1764 # Check all directory arguments for consistency.
1765 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1766 datadir sysconfdir sharedstatedir localstatedir includedir \
1767 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1768 libdir localedir mandir
1770 eval ac_val=\$$ac_var
1771 # Remove trailing slashes.
1774 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1775 eval $ac_var=\$ac_val;;
1777 # Be sure to have absolute directory names.
1779 [\\/$]* | ?:[\\/]* ) continue;;
1780 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1782 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1785 # There might be people who depend on the old broken behavior: `$host'
1786 # used to hold the argument of --host etc.
1787 # FIXME: To remove some day.
1790 target=$target_alias
1792 # FIXME: To remove some day.
1793 if test "x$host_alias" != x; then
1794 if test "x$build_alias" = x; then
1795 cross_compiling=maybe
1796 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1797 If a cross compiler is detected then cross compile mode will be used." >&2
1798 elif test "x$build_alias" != "x$host_alias"; then
1804 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1806 test "$silent" = yes && exec 6>/dev/null
1809 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1810 ac_ls_di=`ls -di .` &&
1811 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1812 as_fn_error "working directory cannot be determined"
1813 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1814 as_fn_error "pwd does not report name of working directory"
1817 # Find the source files, if location was not specified.
1818 if test -z "$srcdir"; then
1819 ac_srcdir_defaulted=yes
1820 # Try the directory containing this script, then the parent directory.
1821 ac_confdir=`$as_dirname -- "$as_myself" ||
1822 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1823 X"$as_myself" : 'X\(//\)[^/]' \| \
1824 X"$as_myself" : 'X\(//\)$' \| \
1825 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1826 $as_echo X"$as_myself" |
1827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1845 if test ! -r "$srcdir/$ac_unique_file"; then
1849 ac_srcdir_defaulted=no
1851 if test ! -r "$srcdir/$ac_unique_file"; then
1852 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1853 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1855 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1857 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1859 # When building in place, set srcdir=.
1860 if test "$ac_abs_confdir" = "$ac_pwd"; then
1863 # Remove unnecessary trailing slashes from srcdir.
1864 # Double slashes in file names in object file debugging info
1865 # mess up M-x gdb in Emacs.
1867 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1871 eval ac_env_${ac_var}_value=\$${ac_var}
1872 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1873 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1877 # Report the --help message.
1879 if test "$ac_init_help" = "long"; then
1880 # Omit some internal or obsolete options to make the list less imposing.
1881 # This message is too long to be a string in the A/UX 3.1 sh.
1883 \`configure' configures this package to adapt to many kinds of systems.
1885 Usage: $0 [OPTION]... [VAR=VALUE]...
1887 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1888 VAR=VALUE. See below for descriptions of some of the useful variables.
1890 Defaults for the options are specified in brackets.
1893 -h, --help display this help and exit
1894 --help=short display options specific to this package
1895 --help=recursive display the short help of all the included packages
1896 -V, --version display version information and exit
1897 -q, --quiet, --silent do not print \`checking...' messages
1898 --cache-file=FILE cache test results in FILE [disabled]
1899 -C, --config-cache alias for \`--cache-file=config.cache'
1900 -n, --no-create do not create output files
1901 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1903 Installation directories:
1904 --prefix=PREFIX install architecture-independent files in PREFIX
1905 [$ac_default_prefix]
1906 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1909 By default, \`make install' will install all the files in
1910 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1911 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1912 for instance \`--prefix=\$HOME'.
1914 For better control, use the options below.
1916 Fine tuning of the installation directories:
1917 --bindir=DIR user executables [EPREFIX/bin]
1918 --sbindir=DIR system admin executables [EPREFIX/sbin]
1919 --libexecdir=DIR program executables [EPREFIX/libexec]
1920 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1921 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1922 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1923 --libdir=DIR object code libraries [EPREFIX/lib]
1924 --includedir=DIR C header files [PREFIX/include]
1925 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1926 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1927 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1928 --infodir=DIR info documentation [DATAROOTDIR/info]
1929 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1930 --mandir=DIR man documentation [DATAROOTDIR/man]
1931 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1932 --htmldir=DIR html documentation [DOCDIR]
1933 --dvidir=DIR dvi documentation [DOCDIR]
1934 --pdfdir=DIR pdf documentation [DOCDIR]
1935 --psdir=DIR ps documentation [DOCDIR]
1941 --program-prefix=PREFIX prepend PREFIX to installed program names
1942 --program-suffix=SUFFIX append SUFFIX to installed program names
1943 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1946 --build=BUILD configure for building on BUILD [guessed]
1947 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1951 if test -n "$ac_init_help"; then
1956 --disable-option-checking ignore unrecognized --enable/--with options
1957 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1958 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1959 --enable-silent-rules less verbose build output (undo: `make V=1')
1960 --disable-silent-rules verbose build output (undo: `make V=0')
1961 --disable-dependency-tracking speeds up one-time build
1962 --enable-dependency-tracking do not reject slow dependency extractors
1963 --enable-threads={posix|solaris|pth|win32}
1964 specify multithreading API
1965 --disable-threads build without multithread safety
1966 --enable-shared[=PKGS] build shared libraries [default=yes]
1967 --enable-static[=PKGS] build static libraries [default=yes]
1968 --enable-fast-install[=PKGS]
1969 optimize for fast installation [default=yes]
1970 --disable-libtool-lock avoid locking (might break parallel builds)
1971 --disable-rpath do not hardcode runtime library paths
1972 --enable-relocatable install a package that can be moved in the file
1974 --disable-namespacing build a library that exports undesired symbols
1977 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1978 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1979 --with-pic try to use only PIC/non-PIC objects [default=use
1981 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1982 --with-gnu-ld assume the C compiler uses GNU ld default=no
1983 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1984 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1985 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1986 --without-libpth-prefix don't search for libpth in includedir and libdir
1988 Some influential environment variables:
1989 CC C compiler command
1990 CFLAGS C compiler flags
1991 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1992 nonstandard directory <lib dir>
1993 LIBS libraries to pass to the linker, e.g. -l<library>
1994 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1995 you have headers in a nonstandard directory <include dir>
1998 Use these variables to override the choices made by `configure' or to help
1999 it to find libraries and programs with nonstandard names/locations.
2001 Report bugs to the package provider.
2006 if test "$ac_init_help" = "recursive"; then
2007 # If there are subdirs, report their specific --help.
2008 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2009 test -d "$ac_dir" ||
2010 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2015 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2017 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2018 # A ".." for each directory in $ac_dir_suffix.
2019 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2020 case $ac_top_builddir_sub in
2021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2025 ac_abs_top_builddir=$ac_pwd
2026 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2027 # for backward compatibility:
2028 ac_top_builddir=$ac_top_build_prefix
2031 .) # We are building in place.
2033 ac_top_srcdir=$ac_top_builddir_sub
2034 ac_abs_top_srcdir=$ac_pwd ;;
2035 [\\/]* | ?:[\\/]* ) # Absolute name.
2036 ac_srcdir=$srcdir$ac_dir_suffix;
2037 ac_top_srcdir=$srcdir
2038 ac_abs_top_srcdir=$srcdir ;;
2040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2041 ac_top_srcdir=$ac_top_build_prefix$srcdir
2042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2044 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2046 cd "$ac_dir" || { ac_status=$?; continue; }
2047 # Check for guested configure.
2048 if test -f "$ac_srcdir/configure.gnu"; then
2050 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2051 elif test -f "$ac_srcdir/configure"; then
2053 $SHELL "$ac_srcdir/configure" --help=recursive
2055 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2057 cd "$ac_pwd" || { ac_status=$?; break; }
2061 test -n "$ac_init_help" && exit $ac_status
2062 if $ac_init_version; then
2065 generated by GNU Autoconf 2.65
2067 Copyright (C) 2009 Free Software Foundation, Inc.
2068 This configure script is free software; the Free Software Foundation
2069 gives unlimited permission to copy, distribute and modify it.
2074 ## ------------------------ ##
2075 ## Autoconf initialization. ##
2076 ## ------------------------ ##
2078 # ac_fn_c_try_compile LINENO
2079 # --------------------------
2080 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_c_try_compile ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext
2085 if { { ac_try="$ac_compile"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_compile") 2>conftest.err
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest.$ac_objext; then :
2106 $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 as_fn_set_status $ac_retval
2114 } # ac_fn_c_try_compile
2116 # ac_fn_c_try_cpp LINENO
2117 # ----------------------
2118 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if { { ac_try="$ac_cpp conftest.$ac_ext"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128 $as_echo "$ac_try_echo"; } >&5
2129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2131 if test -s conftest.err; then
2132 grep -v '^ *+' conftest.err >conftest.er1
2133 cat conftest.er1 >&5
2134 mv -f conftest.er1 conftest.err
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } >/dev/null && {
2138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2139 test ! -s conftest.err
2143 $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149 as_fn_set_status $ac_retval
2153 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2154 # -------------------------------------------------------
2155 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2156 # the include files in INCLUDES and setting the cache variable VAR
2158 ac_fn_c_check_header_mongrel ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165 $as_echo_n "(cached) " >&6
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2171 # Is the header compilable?
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2173 $as_echo_n "checking $2 usability... " >&6; }
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 ac_header_compiler=yes
2182 ac_header_compiler=no
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2186 $as_echo "$ac_header_compiler" >&6; }
2188 # Is the header present?
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2190 $as_echo_n "checking $2 presence... " >&6; }
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2195 if ac_fn_c_try_cpp "$LINENO"; then :
2196 ac_header_preproc=yes
2198 ac_header_preproc=no
2200 rm -f conftest.err conftest.$ac_ext
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2202 $as_echo "$ac_header_preproc" >&6; }
2204 # So? What about this header?
2205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2208 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2210 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2214 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2216 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2218 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2220 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228 $as_echo_n "(cached) " >&6
2230 eval "$3=\$ac_header_compiler"
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238 } # ac_fn_c_check_header_mongrel
2240 # ac_fn_c_try_run LINENO
2241 # ----------------------
2242 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2243 # that executables *can* be run.
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 if { { ac_try="$ac_link"
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253 $as_echo "$ac_try_echo"; } >&5
2254 (eval "$ac_link") 2>&5
2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2258 { { case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263 $as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_try") 2>&5
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; }; }; then :
2270 $as_echo "$as_me: program exited with status $ac_status" >&5
2271 $as_echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2274 ac_retval=$ac_status
2276 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278 as_fn_set_status $ac_retval
2282 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2283 # -------------------------------------------------------
2284 # Tests whether HEADER exists and can be compiled using the include files in
2285 # INCLUDES, setting the cache variable VAR accordingly.
2286 ac_fn_c_check_header_compile ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290 $as_echo_n "checking for $2... " >&6; }
2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292 $as_echo_n "(cached) " >&6
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2299 if ac_fn_c_try_compile "$LINENO"; then :
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308 $as_echo "$ac_res" >&6; }
2309 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2311 } # ac_fn_c_check_header_compile
2313 # ac_fn_c_try_link LINENO
2314 # -----------------------
2315 # Try to link conftest.$ac_ext, and return whether this succeeded.
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 rm -f conftest.$ac_objext conftest$ac_exeext
2320 if { { ac_try="$ac_link"
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326 $as_echo "$ac_try_echo"; } >&5
2327 (eval "$ac_link") 2>conftest.err
2329 if test -s conftest.err; then
2330 grep -v '^ *+' conftest.err >conftest.er1
2331 cat conftest.er1 >&5
2332 mv -f conftest.er1 conftest.err
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; } && {
2336 test -z "$ac_c_werror_flag" ||
2337 test ! -s conftest.err
2338 } && test -s conftest$ac_exeext && {
2339 test "$cross_compiling" = yes ||
2340 $as_test_x conftest$ac_exeext
2344 $as_echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2349 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2350 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2351 # interfere with the next link command; also delete a directory that is
2352 # left behind by Apple's compiler. We do this before executing the actions.
2353 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 as_fn_set_status $ac_retval
2357 } # ac_fn_c_try_link
2359 # ac_fn_c_check_func LINENO FUNC VAR
2360 # ----------------------------------
2361 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2362 ac_fn_c_check_func ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2366 $as_echo_n "checking for $2... " >&6; }
2367 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2368 $as_echo_n "(cached) " >&6
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2372 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2374 #define $2 innocuous_$2
2376 /* System header to define __stub macros and hopefully few prototypes,
2377 which can conflict with char $2 (); below.
2378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2379 <limits.h> exists even on freestanding compilers. */
2382 # include <limits.h>
2384 # include <assert.h>
2389 /* Override any GCC internal prototype to avoid an error.
2390 Use char because int might match the return type of a GCC
2391 builtin and then its argument prototype would still apply. */
2396 /* The GNU C library defines this for functions which it implements
2397 to always fail with ENOSYS. Some functions are actually named
2398 something starting with __ and the normal name is an alias. */
2399 #if defined __stub_$2 || defined __stub___$2
2411 if ac_fn_c_try_link "$LINENO"; then :
2416 rm -f core conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2424 } # ac_fn_c_check_func
2426 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2427 # --------------------------------------------
2428 # Tries to find the compile-time value of EXPR in a program that includes
2429 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2431 ac_fn_c_compute_int ()
2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434 if test "$cross_compiling" = yes; then
2435 # Depending upon the size, compute the lo and hi bounds.
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2442 static int test_array [1 - 2 * !(($2) >= 0)];
2449 if ac_fn_c_try_compile "$LINENO"; then :
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2458 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 ac_hi=$ac_mid; break
2468 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2469 if test $ac_lo -le $ac_mid; then
2473 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2484 static int test_array [1 - 2 * !(($2) < 0)];
2491 if ac_fn_c_try_compile "$LINENO"; then :
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2500 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2507 if ac_fn_c_try_compile "$LINENO"; then :
2508 ac_lo=$ac_mid; break
2510 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2511 if test $ac_mid -le $ac_hi; then
2515 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 # Binary search between lo and hi bounds.
2526 while test "x$ac_lo" != "x$ac_hi"; do
2527 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2534 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2541 if ac_fn_c_try_compile "$LINENO"; then :
2544 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2556 static long int longval () { return $2; }
2557 static unsigned long int ulongval () { return $2; }
2564 FILE *f = fopen ("conftest.val", "w");
2569 long int i = longval ();
2572 fprintf (f, "%ld", i);
2576 unsigned long int i = ulongval ();
2579 fprintf (f, "%lu", i);
2581 /* Do not output a trailing newline, as this causes \r\n confusion
2582 on some platforms. */
2583 return ferror (f) || fclose (f) != 0;
2589 if ac_fn_c_try_run "$LINENO"; then :
2590 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2595 conftest.$ac_objext conftest.beam conftest.$ac_ext
2599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2600 as_fn_set_status $ac_retval
2602 } # ac_fn_c_compute_int
2604 # ac_fn_c_check_decl LINENO SYMBOL VAR
2605 # ------------------------------------
2606 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2607 ac_fn_c_check_decl ()
2609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2611 $as_echo_n "checking whether $2 is declared... " >&6; }
2612 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2613 $as_echo_n "(cached) " >&6
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h. */
2629 if ac_fn_c_try_compile "$LINENO"; then :
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641 } # ac_fn_c_check_decl
2643 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2644 # -------------------------------------------
2645 # Tests whether TYPE exists after having included INCLUDES, setting cache
2646 # variable VAR accordingly.
2647 ac_fn_c_check_type ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2651 $as_echo_n "checking for $2... " >&6; }
2652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2653 $as_echo_n "(cached) " >&6
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2668 if ac_fn_c_try_compile "$LINENO"; then :
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2681 if ac_fn_c_try_compile "$LINENO"; then :
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2695 } # ac_fn_c_check_type
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.65. Invocation command line was
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 $as_echo "PATH: $as_dir"
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2761 ac_must_keep_next=false
2767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2769 | -silent | --silent | --silen | --sile | --sil)
2772 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2777 as_fn_append ac_configure_args1 " '$ac_arg'"
2778 if test $ac_must_keep_next = true; then
2779 ac_must_keep_next=false # Got value, back to normal.
2782 *=* | --config-cache | -C | -disable-* | --disable-* \
2783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2785 | -with-* | --with-* | -without-* | --without-* | --x)
2786 case "$ac_configure_args0 " in
2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2790 -* ) ac_must_keep_next=true ;;
2793 as_fn_append ac_configure_args " '$ac_arg'"
2798 { ac_configure_args0=; unset ac_configure_args0;}
2799 { ac_configure_args1=; unset ac_configure_args1;}
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log. We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807 # Save into config.log some information that might help in debugging.
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2817 # The following way of writing the cache mishandles newlines in values,
2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820 eval ac_val=\$$ac_var
2824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2828 _ | IFS | as_nl) ;; #(
2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830 *) { eval $ac_var=; unset $ac_var;} ;;
2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836 *${as_nl}ac_space=\ *)
2838 "s/'\''/'\''\\\\'\'''\''/g;
2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2855 for ac_var in $ac_subst_vars
2857 eval ac_val=\$$ac_var
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 $as_echo "$ac_var='\''$ac_val'\''"
2865 if test -n "$ac_subst_files"; then
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2872 for ac_var in $ac_subst_files
2874 eval ac_val=\$$ac_var
2876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2878 $as_echo "$ac_var='\''$ac_val'\''"
2883 if test -s confdefs.h; then
2893 test "$ac_signal" != 0 &&
2894 $as_echo "$as_me: caught signal $ac_signal"
2895 $as_echo "$as_me: exit $exit_status"
2897 rm -f core *.core core.conftest.* &&
2898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2901 for ac_signal in 1 2 13 15; do
2902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest* confdefs.h
2909 $as_echo "/* confdefs.h */" > confdefs.h
2911 # Predefined preprocessor variables.
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2942 if test -n "$CONFIG_SITE"; then
2943 ac_site_file1=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE; then
2945 ac_site_file1=$prefix/share/config.site
2946 ac_site_file2=$prefix/etc/config.site
2948 ac_site_file1=$ac_default_prefix/share/config.site
2949 ac_site_file2=$ac_default_prefix/etc/config.site
2951 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2953 test "x$ac_site_file" = xNONE && continue
2954 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957 sed 's/^/| /' "$ac_site_file" >&5
2962 if test -r "$cache_file"; then
2963 # Some versions of bash will fail to source /dev/null (special files
2964 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2965 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2970 *) . "./$cache_file";;
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2979 as_fn_append ac_header_list " errno.h"
2980 as_fn_append ac_header_list " float.h"
2981 as_fn_append ac_header_list " iconv.h"
2982 as_fn_append ac_header_list " math.h"
2983 as_fn_append ac_func_list " mbsinit"
2984 as_fn_append ac_func_list " mbrtowc"
2985 as_fn_append ac_header_list " sys/mman.h"
2986 as_fn_append ac_func_list " mprotect"
2987 as_fn_append ac_func_list " memchr"
2989 as_fn_append ac_header_list " stddef.h"
2990 as_fn_append ac_header_list " stdint.h"
2991 as_fn_append ac_header_list " wchar.h"
2992 as_fn_append ac_header_list " stdlib.h"
2993 as_fn_append ac_header_list " string.h"
2994 as_fn_append ac_header_list " unistd.h"
2995 as_fn_append ac_func_list " stpcpy"
2996 as_fn_append ac_func_list " strdup"
2997 as_fn_append ac_func_list " iswcntrl"
2998 as_fn_append ac_func_list " iswblank"
2999 as_fn_append ac_header_list " wctype.h"
3000 as_fn_append ac_func_list " wcwidth"
3001 as_fn_append ac_header_list " xlocale.h"
3002 as_fn_append ac_header_list " locale.h"
3003 as_fn_append ac_func_list " newlocale"
3004 as_fn_append ac_func_list " setenv"
3005 as_fn_append ac_header_list " sys/socket.h"
3006 as_fn_append ac_func_list " wctob"
3007 # Check that the precious variables saved in the cache have kept the same
3009 ac_cache_corrupted=false
3010 for ac_var in $ac_precious_vars; do
3011 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3012 eval ac_new_set=\$ac_env_${ac_var}_set
3013 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3014 eval ac_new_val=\$ac_env_${ac_var}_value
3015 case $ac_old_set,$ac_new_set in
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3018 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3019 ac_cache_corrupted=: ;;
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3022 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3023 ac_cache_corrupted=: ;;
3026 if test "x$ac_old_val" != "x$ac_new_val"; then
3027 # differences in whitespace do not lead to failure.
3028 ac_old_val_w=`echo x $ac_old_val`
3029 ac_new_val_w=`echo x $ac_new_val`
3030 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3032 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3033 ac_cache_corrupted=:
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3036 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3037 eval $ac_var=\$ac_old_val
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3040 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3042 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3045 # Pass precious variables to config.status.
3046 if test "$ac_new_set" = set; then
3048 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3049 *) ac_arg=$ac_var=$ac_new_val ;;
3051 case " $ac_configure_args " in
3052 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3053 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3057 if $ac_cache_corrupted; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3061 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3062 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3064 ## -------------------- ##
3065 ## Main body of script. ##
3066 ## -------------------- ##
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 for ac_dir in build-aux "$srcdir"/build-aux; do
3078 for ac_t in install-sh install.sh shtool; do
3079 if test -f "$ac_dir/$ac_t"; then
3081 ac_install_sh="$ac_aux_dir/$ac_t -c"
3086 if test -z "$ac_aux_dir"; then
3087 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3090 # These three variables are undocumented and unsupported,
3091 # and are intended to be withdrawn in a future Autoconf release.
3092 # They can cause serious problems if a builder's source tree is in a directory
3093 # whose full name contains unusual characters.
3094 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3095 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3096 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3099 . $srcdir/version.sh
3105 am__api_version='1.11'
3107 # Find a good install program. We prefer a C program (faster),
3108 # so one script is as good as another. But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3114 # AmigaOS /C/install, which installs bootblocks on floppy discs
3115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3118 # OS/2's system install, which has a completely different semantic
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 # Reject install programs that cannot install multiple files.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3122 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3123 if test -z "$INSTALL"; then
3124 if test "${ac_cv_path_install+set}" = set; then :
3125 $as_echo_n "(cached) " >&6
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 # Account for people who put trailing slashes in PATH elements.
3133 case $as_dir/ in #((
3134 ./ | .// | /[cC]/* | \
3135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3136 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3139 # OSF1 and SCO ODT 3.0 have their own names for install.
3140 # Don't use installbsd from OSF since it installs stuff as root
3142 for ac_prog in ginstall scoinst install; do
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3145 if test $ac_prog = install &&
3146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3147 # AIX install. It has an incompatible calling convention.
3149 elif test $ac_prog = install &&
3150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3151 # program-specific install script used by HP pwplus--don't use.
3154 rm -rf conftest.one conftest.two conftest.dir
3155 echo one > conftest.one
3156 echo two > conftest.two
3158 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3159 test -s conftest.one && test -s conftest.two &&
3160 test -s conftest.dir/conftest.one &&
3161 test -s conftest.dir/conftest.two
3163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3176 rm -rf conftest.one conftest.two conftest.dir
3179 if test "${ac_cv_path_install+set}" = set; then
3180 INSTALL=$ac_cv_path_install
3182 # As a last resort, use the slow shell script. Don't cache a
3183 # value for INSTALL within a source directory, because that will
3184 # break other packages using the cache if that directory is
3185 # removed, or if the value is a relative name.
3186 INSTALL=$ac_install_sh
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3190 $as_echo "$INSTALL" >&6; }
3192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3193 # It thinks the first close brace ends the variable substitution.
3194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3201 $as_echo_n "checking whether build environment is sane... " >&6; }
3204 echo timestamp > conftest.file
3205 # Reject unsafe characters in $srcdir or the absolute working directory
3206 # name. Accept space and tab only in the latter.
3210 *[\\\"\#\$\&\'\`$am_lf]*)
3211 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3214 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3215 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3218 # Do `set' in a subshell so we don't clobber the current shell's
3219 # arguments. Must try -L first in case configure is actually a
3220 # symlink; some systems play weird games with the mod time of symlinks
3221 # (eg FreeBSD returns the mod time of the symlink's containing
3224 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3225 if test "$*" = "X"; then
3227 set X `ls -t "$srcdir/configure" conftest.file`
3230 if test "$*" != "X $srcdir/configure conftest.file" \
3231 && test "$*" != "X conftest.file $srcdir/configure"; then
3233 # If neither matched, then we have a broken ls. This can happen
3234 # if, for instance, CONFIG_SHELL is bash and it inherits a
3235 # broken ls alias from the environment. This has actually
3236 # happened. Such a system could not be considered "sane".
3237 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3238 alias in your environment" "$LINENO" 5
3241 test "$2" = conftest.file
3247 as_fn_error "newly created file is older than distributed files!
3248 Check your system clock" "$LINENO" 5
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3252 test "$program_prefix" != NONE &&
3253 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3254 # Use a double $ so make ignores it.
3255 test "$program_suffix" != NONE &&
3256 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3257 # Double any \ or $.
3258 # By default was `s,x,x', remove it if useless.
3259 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3260 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3262 # expand $ac_aux_dir to an absolute path
3263 am_aux_dir=`cd $ac_aux_dir && pwd`
3265 if test x"${MISSING+set}" != xset; then
3268 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3270 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3273 # Use eval to expand $SHELL
3274 if eval "$MISSING --run true"; then
3275 am_missing_run="$MISSING --run "
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3279 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3282 if test x"${install_sh}" != xset; then
3285 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3287 install_sh="\${SHELL} $am_aux_dir/install-sh"
3291 # Installed binaries are usually stripped using `strip' when the user
3292 # run `make install-strip'. However `strip' might not be the right
3293 # tool to use in cross-compilation environments, therefore Automake
3294 # will honor the `STRIP' environment variable to overrule this program.
3295 if test "$cross_compiling" != no; then
3296 if test -n "$ac_tool_prefix"; then
3297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3298 set dummy ${ac_tool_prefix}strip; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if test "${ac_cv_prog_STRIP+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3304 if test -n "$STRIP"; then
3305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 STRIP=$ac_cv_prog_STRIP
3325 if test -n "$STRIP"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3327 $as_echo "$STRIP" >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3335 if test -z "$ac_cv_prog_STRIP"; then
3337 # Extract the first word of "strip", so it can be a program name with args.
3338 set dummy strip; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3344 if test -n "$ac_ct_STRIP"; then
3345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_prog_ac_ct_STRIP="strip"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3365 if test -n "$ac_ct_STRIP"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3367 $as_echo "$ac_ct_STRIP" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3373 if test "x$ac_ct_STRIP" = x; then
3376 case $cross_compiling:$ac_tool_warned in
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380 ac_tool_warned=yes ;;
3385 STRIP="$ac_cv_prog_STRIP"
3389 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3392 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3393 if test -z "$MKDIR_P"; then
3394 if test "${ac_cv_path_mkdir+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3401 test -z "$as_dir" && as_dir=.
3402 for ac_prog in mkdir gmkdir; do
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3405 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3406 'mkdir (GNU coreutils) '* | \
3407 'mkdir (coreutils) '* | \
3408 'mkdir (fileutils) '4.1*)
3409 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3419 test -d ./--version && rmdir ./--version
3420 if test "${ac_cv_path_mkdir+set}" = set; then
3421 MKDIR_P="$ac_cv_path_mkdir -p"
3423 # As a last resort, use the slow shell script. Don't cache a
3424 # value for MKDIR_P within a source directory, because that will
3425 # break other packages using the cache if that directory is
3426 # removed, or if the value is a relative name.
3427 MKDIR_P="$ac_install_sh -d"
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3431 $as_echo "$MKDIR_P" >&6; }
3436 [\\/$]* | ?:[\\/]*) ;;
3437 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3440 for ac_prog in gawk mawk nawk awk
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if test "${ac_cv_prog_AWK+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$AWK"; then
3450 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459 ac_cv_prog_AWK="$ac_prog"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 if test -n "$AWK"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3472 $as_echo "$AWK" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3479 test -n "$AWK" && break
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3483 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3485 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3486 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3487 $as_echo_n "(cached) " >&6
3489 cat >conftest.make <<\_ACEOF
3492 @echo '@@@%%%=$(MAKE)=@@@%%%'
3494 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3495 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3497 eval ac_cv_prog_make_${ac_make}_set=yes;;
3499 eval ac_cv_prog_make_${ac_make}_set=no;;
3503 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3505 $as_echo "yes" >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 SET_MAKE="MAKE=${MAKE-make}"
3513 rm -rf .tst 2>/dev/null
3514 mkdir .tst 2>/dev/null
3515 if test -d .tst; then
3520 rmdir .tst 2>/dev/null
3522 # Check whether --enable-silent-rules was given.
3523 if test "${enable_silent_rules+set}" = set; then :
3524 enableval=$enable_silent_rules;
3527 case $enable_silent_rules in
3528 yes) AM_DEFAULT_VERBOSITY=0;;
3529 no) AM_DEFAULT_VERBOSITY=1;;
3530 *) AM_DEFAULT_VERBOSITY=1;;
3536 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3537 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3538 # is not polluted with repeated "-I."
3539 am__isrc=' -I$(srcdir)'
3540 # test to see if srcdir already configured
3541 if test -f $srcdir/config.status; then
3542 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3546 # test whether we have cygpath
3547 if test -z "$CYGPATH_W"; then
3548 if (cygpath --version) >/dev/null 2>/dev/null; then
3549 CYGPATH_W='cygpath -w'
3556 # Define the identity of the package.
3561 # Some tools Automake needs.
3563 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3566 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3569 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3572 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3575 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3577 # We need awk for the "check" target. The system "awk" is bad on
3579 # Always define AMTAR for backward compatibility.
3581 AMTAR=${AMTAR-"${am_missing_run}tar"}
3583 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3589 PACKAGE=libunistring
3591 VERSION=$VERSION_NUMBER
3595 cat >>confdefs.h <<_ACEOF
3596 #define PACKAGE "$PACKAGE"
3600 cat >>confdefs.h <<_ACEOF
3601 #define VERSION "$VERSION"
3606 ac_config_headers="$ac_config_headers config.h"
3609 am__tar='${AMTAR} chof - --owner=root --group=root "$$tardir"'
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 if test -n "$ac_tool_prefix"; then
3618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if test "${ac_cv_prog_CC+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC="$CC" # Let the user override the test.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3656 if test -z "$ac_cv_prog_CC"; then
3658 # Extract the first word of "gcc", so it can be a program name with args.
3659 set dummy gcc; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3665 if test -n "$ac_ct_CC"; then
3666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_ac_ct_CC="gcc"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686 if test -n "$ac_ct_CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3688 $as_echo "$ac_ct_CC" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3694 if test "x$ac_ct_CC" = x; then
3697 case $cross_compiling:$ac_tool_warned in
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701 ac_tool_warned=yes ;;
3709 if test -z "$CC"; then
3710 if test -n "$ac_tool_prefix"; then
3711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3712 set dummy ${ac_tool_prefix}cc; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if test "${ac_cv_prog_CC+set}" = set; then :
3716 $as_echo_n "(cached) " >&6
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_CC="${ac_tool_prefix}cc"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 if test -n "$CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3750 if test -z "$CC"; then
3751 # Extract the first word of "cc", so it can be a program name with args.
3752 set dummy cc; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_CC+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3770 ac_prog_rejected=yes
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 if test $ac_prog_rejected = yes; then
3782 # We found a bogon in the path, so make sure we never use it.
3783 set dummy $ac_cv_prog_CC
3785 if test $# != 0; then
3786 # We chose a different compiler from the bogus one.
3787 # However, it has the same basename, so the bogon will be chosen
3788 # first if we set CC to just the basename; use the full file name.
3790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3796 if test -n "$CC"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 $as_echo "$CC" >&6; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3806 if test -z "$CC"; then
3807 if test -n "$ac_tool_prefix"; then
3808 for ac_prog in cl.exe
3810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_CC+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test -n "$CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3847 test -n "$CC" && break
3850 if test -z "$CC"; then
3852 for ac_prog in cl.exe
3854 # Extract the first word of "$ac_prog", so it can be a program name with args.
3855 set dummy $ac_prog; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3861 if test -n "$ac_ct_CC"; then
3862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_ac_ct_CC="$ac_prog"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3882 if test -n "$ac_ct_CC"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3884 $as_echo "$ac_ct_CC" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3891 test -n "$ac_ct_CC" && break
3894 if test "x$ac_ct_CC" = x; then
3897 case $cross_compiling:$ac_tool_warned in
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901 ac_tool_warned=yes ;;
3910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error "no acceptable C compiler found in \$PATH
3913 See \`config.log' for more details." "$LINENO" 5; }
3915 # Provide some information about the compiler.
3916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3919 for ac_option in --version -v -V -qversion; do
3920 { { ac_try="$ac_compiler $ac_option >&5"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3929 if test -s conftest.err; then
3931 ... rest of stderr output deleted ...
3932 10q' conftest.err >conftest.er1
3933 cat conftest.er1 >&5
3935 rm -f conftest.er1 conftest.err
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3951 ac_clean_files_save=$ac_clean_files
3952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3953 # Try to create an executable without -o first, disregard a.out.
3954 # It will help us diagnose broken compilers, and finding out an intuition
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3957 $as_echo_n "checking whether the C compiler works... " >&6; }
3958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3960 # The possible output files:
3961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3964 for ac_file in $ac_files
3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3973 if { { ac_try="$ac_link_default"
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link_default") 2>&5
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3987 # so that the user can short-circuit this test for compilers unknown to
3989 for ac_file in $ac_files ''
3991 test -f "$ac_file" || continue
3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3996 # We found the default executable, but exeext='' is most
4000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4004 # We set ac_cv_exeext here because the later test for it is not
4005 # safe: cross compilers may not add the suffix if given an `-o'
4006 # argument, so we may need to know it at that point already.
4007 # Even if this section looks crufty: it has the advantage of
4014 test "$ac_cv_exeext" = no && ac_cv_exeext=
4019 if test -z "$ac_file"; then :
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 { as_fn_set_status 77
4028 as_fn_error "C compiler cannot create executables
4029 See \`config.log' for more details." "$LINENO" 5; }; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4032 $as_echo "yes" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4035 $as_echo_n "checking for C compiler default output file name... " >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4037 $as_echo "$ac_file" >&6; }
4038 ac_exeext=$ac_cv_exeext
4040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4041 ac_clean_files=$ac_clean_files_save
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 $as_echo_n "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_link") 2>&5
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
4055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4059 for ac_file in conftest.exe conftest conftest.*; do
4060 test -f "$ac_file" || continue
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest conftest$ac_cv_exeext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 $as_echo "$ac_cv_exeext" >&6; }
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4087 FILE *f = fopen ("conftest.out", "w");
4088 return ferror (f) || fclose (f) != 0;
4094 ac_clean_files="$ac_clean_files conftest.out"
4095 # Check that the compiler produces executables we can run. If not, either
4096 # the compiler is broken, or we cross compile.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4098 $as_echo_n "checking whether we are cross compiling... " >&6; }
4099 if test "$cross_compiling" != yes; then
4100 { { ac_try="$ac_link"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_link") 2>&5
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }
4111 if { ac_try='./conftest$ac_cv_exeext'
4112 { { case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_try") 2>&5
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; }; then
4124 if test "$cross_compiling" = maybe; then
4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error "cannot run C compiled programs.
4130 If you meant to cross compile, use \`--host'.
4131 See \`config.log' for more details." "$LINENO" 5; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4136 $as_echo "$cross_compiling" >&6; }
4138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4139 ac_clean_files=$ac_clean_files_save
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4141 $as_echo_n "checking for suffix of object files... " >&6; }
4142 if test "${ac_cv_objext+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4156 rm -f conftest.o conftest.obj
4157 if { { ac_try="$ac_compile"
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164 (eval "$ac_compile") 2>&5
4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }; then :
4168 for ac_file in conftest.o conftest.obj conftest.*; do
4169 test -f "$ac_file" || continue;
4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4177 $as_echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "cannot compute suffix of object files: cannot compile
4183 See \`config.log' for more details." "$LINENO" 5; }
4185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4188 $as_echo "$ac_cv_objext" >&6; }
4189 OBJEXT=$ac_cv_objext
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4210 if ac_fn_c_try_compile "$LINENO"; then :
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4221 if test $ac_compiler_gnu = yes; then
4226 ac_test_CFLAGS=${CFLAGS+set}
4227 ac_save_CFLAGS=$CFLAGS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4230 if test "${ac_cv_prog_cc_g+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4233 ac_save_c_werror_flag=$ac_c_werror_flag
4234 ac_c_werror_flag=yes
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4248 if ac_fn_c_try_compile "$LINENO"; then :
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4263 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_c_werror_flag=$ac_save_c_werror_flag
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4279 if ac_fn_c_try_compile "$LINENO"; then :
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_c_werror_flag=$ac_save_c_werror_flag
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4290 $as_echo "$ac_cv_prog_cc_g" >&6; }
4291 if test "$ac_test_CFLAGS" = set; then
4292 CFLAGS=$ac_save_CFLAGS
4293 elif test $ac_cv_prog_cc_g = yes; then
4294 if test "$GCC" = yes; then
4300 if test "$GCC" = yes; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 ac_cv_prog_cc_c89=no
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4317 #include <sys/types.h>
4318 #include <sys/stat.h>
4319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4320 struct buf { int x; };
4321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4322 static char *e (p, i)
4328 static char *f (char * (*g) (char **, int), char **p, ...)
4333 s = g (p, va_arg (v,int));
4338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4339 function prototypes and stuff, but not '\xHH' hex character constants.
4340 These don't provoke an error unfortunately, instead are silently treated
4341 as 'x'. The following induces an error, until -std is added to get
4342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4343 array size at least. It's necessary to write '\x00'==0 to get something
4344 that's true only with -std. */
4345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4348 inside strings and character constants. */
4350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4352 int test (int i, double x);
4353 struct s1 {int (*f) (int a);};
4354 struct s2 {int (*f) (double a);};
4355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4369 CC="$ac_save_CC $ac_arg"
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_cv_prog_cc_c89=$ac_arg
4373 rm -f core conftest.err conftest.$ac_objext
4374 test "x$ac_cv_prog_cc_c89" != "xno" && break
4376 rm -f conftest.$ac_ext
4381 case "x$ac_cv_prog_cc_c89" in
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4384 $as_echo "none needed" >&6; } ;;
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4387 $as_echo "unsupported" >&6; } ;;
4389 CC="$CC $ac_cv_prog_cc_c89"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4393 if test "x$ac_cv_prog_cc_c89" != xno; then :
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 DEPDIR="${am__leading_dot}deps"
4404 ac_config_commands="$ac_config_commands depfiles"
4407 am_make=${MAKE-make}
4408 cat > confinc << 'END'
4410 @echo this is the am__doit target
4413 # If we don't find an include directive, just comment out the code.
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4419 # First try GNU make style include.
4420 echo "include confinc" > confmf
4421 # Ignore all kinds of additional output from `make'.
4422 case `$am_make -s -f confmf 2> /dev/null` in #(
4423 *the\ am__doit\ target*)
4429 # Now try BSD make style include.
4430 if test "$am__include" = "#"; then
4431 echo '.include "confinc"' > confmf
4432 case `$am_make -s -f confmf 2> /dev/null` in #(
4433 *the\ am__doit\ target*)
4434 am__include=.include
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4443 $as_echo "$_am_result" >&6; }
4444 rm -f confinc confmf
4446 # Check whether --enable-dependency-tracking was given.
4447 if test "${enable_dependency_tracking+set}" = set; then :
4448 enableval=$enable_dependency_tracking;
4451 if test "x$enable_dependency_tracking" != xno; then
4452 am_depcomp="$ac_aux_dir/depcomp"
4455 if test "x$enable_dependency_tracking" != xno; then
4465 depcc="$CC" am_compiler_list=
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4468 $as_echo_n "checking dependency style of $depcc... " >&6; }
4469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4473 # We make a subdir and do the tests there. Otherwise we can end up
4474 # making bogus files that we don't know about and never remove. For
4475 # instance it was reported that on HP-UX the gcc test will end up
4476 # making a dummy file named `D' -- because `-MD' means `put the output
4479 # Copy depcomp to subdir because otherwise we won't find it if we're
4480 # using a relative directory.
4481 cp "$am_depcomp" conftest.dir
4483 # We will build objects and dependencies in a subdirectory because
4484 # it helps to detect inapplicable dependency modes. For instance
4485 # both Tru64's cc and ICC support -MD to output dependencies as a
4486 # side effect of compilation, but ICC will put the dependencies in
4487 # the current directory while Tru64 will put them in the object
4491 am_cv_CC_dependencies_compiler_type=none
4492 if test "$am_compiler_list" = ""; then
4493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4496 case " $depcc " in #(
4497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4500 for depmode in $am_compiler_list; do
4501 # Setup a source with many dependencies, because some compilers
4502 # like to wrap large dependency lists on column 80 (with \), and
4503 # we should not choose a depcomp mode which is confused by this.
4505 # We need to recreate these files for each test, as the compiler may
4506 # overwrite some of them when testing with obscure command lines.
4507 # This happens at least with the AIX C compiler.
4509 for i in 1 2 3 4 5 6; do
4510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4512 # Solaris 8's {/usr,}/bin/sh.
4513 touch sub/conftst$i.h
4515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4518 # mode. It turns out that the SunPro C++ compiler does not properly
4519 # handle `-M -o', and we need to detect this. Also, some Intel
4520 # versions had trouble with output in subdirs
4521 am__obj=sub/conftest.${OBJEXT-o}
4522 am__minus_obj="-o $am__obj"
4525 # This depmode causes a compiler race in universal mode.
4526 test "$am__universal" = false || continue
4529 # after this tag, mechanisms are not by side-effect, so they'll
4530 # only be used when explicitly requested
4531 if test "x$enable_dependency_tracking" = xyes; then
4537 msvisualcpp | msvcmsys)
4538 # This compiler won't grok `-c -o', but also, the minuso test has
4539 # not run yet. These depmodes are late enough in the game, and
4540 # so weak that their functioning should not be impacted.
4541 am__obj=conftest.${OBJEXT-o}
4546 if depmode=$depmode \
4547 source=sub/conftest.c object=$am__obj \
4548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550 >/dev/null 2>conftest.err &&
4551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555 # icc doesn't choke on unknown options, it will just issue warnings
4556 # or remarks (even with -Werror). So we grep stderr for any message
4557 # that says an option was ignored or not supported.
4558 # When given -MP, icc 7.0 and 7.1 complain thusly:
4559 # icc: Command line warning: ignoring option '-M'; no argument required
4560 # The diagnosis changed in icc 8.0:
4561 # icc: Command line remark: option '-MP' not supported
4562 if (grep 'ignoring option' conftest.err ||
4563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564 am_cv_CC_dependencies_compiler_type=$depmode
4573 am_cv_CC_dependencies_compiler_type=none
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4582 test "x$enable_dependency_tracking" != xno \
4583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4585 am__fastdepCC_FALSE='#'
4587 am__fastdepCC_TRUE='#'
4588 am__fastdepCC_FALSE=
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4598 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4599 # On Suns, sometimes $CPP names a directory.
4600 if test -n "$CPP" && test -d "$CPP"; then
4603 if test -z "$CPP"; then
4604 if test "${ac_cv_prog_CPP+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 # Double quotes because CPP needs to be expanded
4608 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4611 for ac_c_preproc_warn_flag in '' yes
4613 # Use a header file that comes with gcc, so configuring glibc
4614 # with a fresh cross-compiler works.
4615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616 # <limits.h> exists even on freestanding compilers.
4617 # On the NeXT, cc -E runs the code through the compiler's parser,
4618 # not just through cpp. "Syntax error" is here to catch this case.
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 # include <limits.h>
4624 # include <assert.h>
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4631 # Broken: fails on valid input.
4634 rm -f conftest.err conftest.$ac_ext
4636 # OK, works on sane cases. Now check whether nonexistent headers
4637 # can be detected and how.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <ac_nonexistent.h>
4642 if ac_fn_c_try_cpp "$LINENO"; then :
4643 # Broken: success on invalid input.
4646 # Passes both tests.
4650 rm -f conftest.err conftest.$ac_ext
4653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4654 rm -f conftest.err conftest.$ac_ext
4655 if $ac_preproc_ok; then :
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4668 $as_echo "$CPP" >&6; }
4670 for ac_c_preproc_warn_flag in '' yes
4672 # Use a header file that comes with gcc, so configuring glibc
4673 # with a fresh cross-compiler works.
4674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675 # <limits.h> exists even on freestanding compilers.
4676 # On the NeXT, cc -E runs the code through the compiler's parser,
4677 # not just through cpp. "Syntax error" is here to catch this case.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4681 # include <limits.h>
4683 # include <assert.h>
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4690 # Broken: fails on valid input.
4693 rm -f conftest.err conftest.$ac_ext
4695 # OK, works on sane cases. Now check whether nonexistent headers
4696 # can be detected and how.
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <ac_nonexistent.h>
4701 if ac_fn_c_try_cpp "$LINENO"; then :
4702 # Broken: success on invalid input.
4705 # Passes both tests.
4709 rm -f conftest.err conftest.$ac_ext
4712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713 rm -f conftest.err conftest.$ac_ext
4714 if $ac_preproc_ok; then :
4717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4719 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4720 See \`config.log' for more details." "$LINENO" 5; }
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 # Make sure we can run config.sub.
4734 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4735 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4738 $as_echo_n "checking build system type... " >&6; }
4739 if test "${ac_cv_build+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 ac_build_alias=$build_alias
4743 test "x$ac_build_alias" = x &&
4744 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4745 test "x$ac_build_alias" = x &&
4746 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4747 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4748 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4752 $as_echo "$ac_cv_build" >&6; }
4753 case $ac_cv_build in
4755 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4758 ac_save_IFS=$IFS; IFS='-'
4764 # Remember, the first character of IFS is used to create $*,
4765 # except with old shells:
4768 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4772 $as_echo_n "checking host system type... " >&6; }
4773 if test "${ac_cv_host+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4776 if test "x$host_alias" = x; then
4777 ac_cv_host=$ac_cv_build
4779 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4780 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4785 $as_echo "$ac_cv_host" >&6; }
4788 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4791 ac_save_IFS=$IFS; IFS='-'
4797 # Remember, the first character of IFS is used to create $*,
4798 # except with old shells:
4801 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4806 if test -n "$ac_tool_prefix"; then
4807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4814 if test -n "$RANLIB"; then
4815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 RANLIB=$ac_cv_prog_RANLIB
4835 if test -n "$RANLIB"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4837 $as_echo "$RANLIB" >&6; }
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4845 if test -z "$ac_cv_prog_RANLIB"; then
4846 ac_ct_RANLIB=$RANLIB
4847 # Extract the first word of "ranlib", so it can be a program name with args.
4848 set dummy ranlib; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4854 if test -n "$ac_ct_RANLIB"; then
4855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_ac_ct_RANLIB="ranlib"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4875 if test -n "$ac_ct_RANLIB"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4877 $as_echo "$ac_ct_RANLIB" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4883 if test "x$ac_ct_RANLIB" = x; then
4886 case $cross_compiling:$ac_tool_warned in
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4890 ac_tool_warned=yes ;;
4892 RANLIB=$ac_ct_RANLIB
4895 RANLIB="$ac_cv_prog_RANLIB"
4898 if test "x$CC" != xcc; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4900 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4903 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4905 set dummy $CC; ac_cc=`$as_echo "$2" |
4906 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4907 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4908 $as_echo_n "(cached) " >&6
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4921 # Make sure it works both with $CC and with simple cc.
4922 # We do the test twice because some compilers refuse to overwrite an
4923 # existing .o file with -o, though they will create one.
4924 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4926 if { { case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931 $as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_try") 2>&5
4934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935 test $ac_status = 0; } &&
4936 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941 $as_echo "$ac_try_echo"; } >&5
4942 (eval "$ac_try") 2>&5
4944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; };
4947 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4948 if test "x$CC" != xcc; then
4949 # Test first that cc exists at all.
4950 if { ac_try='cc -c conftest.$ac_ext >&5'
4951 { { case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956 $as_echo "$ac_try_echo"; } >&5
4957 (eval "$ac_try") 2>&5
4959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960 test $ac_status = 0; }; }; then
4961 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4963 if { { case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968 $as_echo "$ac_try_echo"; } >&5
4969 (eval "$ac_try") 2>&5
4971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4972 test $ac_status = 0; } &&
4973 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978 $as_echo "$ac_try_echo"; } >&5
4979 (eval "$ac_try") 2>&5
4981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 test $ac_status = 0; };
4987 # cc exists but doesn't like -o.
4988 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4993 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4995 rm -f core conftest*
4998 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5000 $as_echo "yes" >&6; }
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5005 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5009 # FIXME: we rely on the cache variable name because
5010 # there is no other way.
5012 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5013 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5014 if test "$am_t" != yes; then
5015 # Losing compiler, so override with the script.
5016 # FIXME: It is wrong to rewrite CC.
5017 # But if we don't then we get into trouble of one sort or another.
5018 # A longer-term fix would be to have automake use am__CC in this case,
5019 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5020 CC="$am_aux_dir/compile $CC"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5027 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5028 if test "${ac_cv_path_GREP+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5031 if test -z "$GREP"; then
5032 ac_path_GREP_found=false
5033 # Loop through the user's path and test for each of PROGNAME-LIST
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5038 test -z "$as_dir" && as_dir=.
5039 for ac_prog in grep ggrep; do
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5042 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5043 # Check for GNU ac_path_GREP and select it if it is found.
5044 # Check for GNU $ac_path_GREP
5045 case `"$ac_path_GREP" --version 2>&1` in
5047 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5050 $as_echo_n 0123456789 >"conftest.in"
5053 cat "conftest.in" "conftest.in" >"conftest.tmp"
5054 mv "conftest.tmp" "conftest.in"
5055 cp "conftest.in" "conftest.nl"
5056 $as_echo 'GREP' >> "conftest.nl"
5057 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
5060 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5061 # Best one so far, save it but keep looking for a better one
5062 ac_cv_path_GREP="$ac_path_GREP"
5063 ac_path_GREP_max=$ac_count
5065 # 10*(2^10) chars as input seems more than enough
5066 test $ac_count -gt 10 && break
5068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5071 $ac_path_GREP_found && break 3
5076 if test -z "$ac_cv_path_GREP"; then
5077 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5080 ac_cv_path_GREP=$GREP
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5085 $as_echo "$ac_cv_path_GREP" >&6; }
5086 GREP="$ac_cv_path_GREP"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5090 $as_echo_n "checking for egrep... " >&6; }
5091 if test "${ac_cv_path_EGREP+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5094 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5095 then ac_cv_path_EGREP="$GREP -E"
5097 if test -z "$EGREP"; then
5098 ac_path_EGREP_found=false
5099 # Loop through the user's path and test for each of PROGNAME-LIST
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 test -z "$as_dir" && as_dir=.
5105 for ac_prog in egrep; do
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5108 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5109 # Check for GNU ac_path_EGREP and select it if it is found.
5110 # Check for GNU $ac_path_EGREP
5111 case `"$ac_path_EGREP" --version 2>&1` in
5113 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5116 $as_echo_n 0123456789 >"conftest.in"
5119 cat "conftest.in" "conftest.in" >"conftest.tmp"
5120 mv "conftest.tmp" "conftest.in"
5121 cp "conftest.in" "conftest.nl"
5122 $as_echo 'EGREP' >> "conftest.nl"
5123 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5125 as_fn_arith $ac_count + 1 && ac_count=$as_val
5126 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5127 # Best one so far, save it but keep looking for a better one
5128 ac_cv_path_EGREP="$ac_path_EGREP"
5129 ac_path_EGREP_max=$ac_count
5131 # 10*(2^10) chars as input seems more than enough
5132 test $ac_count -gt 10 && break
5134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 $ac_path_EGREP_found && break 3
5142 if test -z "$ac_cv_path_EGREP"; then
5143 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 ac_cv_path_EGREP=$EGREP
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5152 $as_echo "$ac_cv_path_EGREP" >&6; }
5153 EGREP="$ac_cv_path_EGREP"
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5157 $as_echo_n "checking for ANSI C header files... " >&6; }
5158 if test "${ac_cv_header_stdc+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177 ac_cv_header_stdc=yes
5179 ac_cv_header_stdc=no
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 if test $ac_cv_header_stdc = yes; then
5184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 $EGREP "memchr" >/dev/null 2>&1; then :
5194 ac_cv_header_stdc=no
5200 if test $ac_cv_header_stdc = yes; then
5201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "free" >/dev/null 2>&1; then :
5211 ac_cv_header_stdc=no
5217 if test $ac_cv_header_stdc = yes; then
5218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5219 if test "$cross_compiling" = yes; then :
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5226 #if ((' ' & 0x0FF) == 0x020)
5227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5230 # define ISLOWER(c) \
5231 (('a' <= (c) && (c) <= 'i') \
5232 || ('j' <= (c) && (c) <= 'r') \
5233 || ('s' <= (c) && (c) <= 'z'))
5234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5242 for (i = 0; i < 256; i++)
5243 if (XOR (islower (i), ISLOWER (i))
5244 || toupper (i) != TOUPPER (i))
5249 if ac_fn_c_try_run "$LINENO"; then :
5252 ac_cv_header_stdc=no
5254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5255 conftest.$ac_objext conftest.beam conftest.$ac_ext
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5261 $as_echo "$ac_cv_header_stdc" >&6; }
5262 if test $ac_cv_header_stdc = yes; then
5264 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5270 inttypes.h stdint.h unistd.h
5272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5273 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5275 eval as_val=\$$as_ac_Header
5276 if test "x$as_val" = x""yes; then :
5277 cat >>confdefs.h <<_ACEOF
5278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5289 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5290 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5297 if test "$MINIX" = yes; then
5299 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5302 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5305 $as_echo "#define _MINIX 1" >>confdefs.h
5312 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5319 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5320 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5326 # define __EXTENSIONS__ 1
5327 $ac_includes_default
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337 ac_cv_safe_to_define___extensions__=yes
5339 ac_cv_safe_to_define___extensions__=no
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5344 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5345 test $ac_cv_safe_to_define___extensions__ = yes &&
5346 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5348 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5350 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5352 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5354 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5366 # IEEE behaviour is the default on all CPUs except Alpha and SH
5367 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5368 # and the GCC 4.1.2 manual).
5371 # On Alpha systems, a compiler option provides the behaviour.
5372 # See the ieee(3) manual page, also available at
5373 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5374 if test -n "$GCC"; then
5375 # GCC has the option -mieee.
5376 CPPFLAGS="$CPPFLAGS -mieee"
5378 # Compaq (ex-DEC) C has the option -ieee.
5379 CPPFLAGS="$CPPFLAGS -ieee"
5383 if test -n "$GCC"; then
5384 # GCC has the option -mieee.
5385 CPPFLAGS="$CPPFLAGS -mieee"
5395 # Check whether --enable-threads was given.
5396 if test "${enable_threads+set}" = set; then :
5397 enableval=$enable_threads; gl_use_threads=$enableval
5399 if test -n "$gl_use_threads_default"; then
5400 gl_use_threads="$gl_use_threads_default"
5403 osf*) gl_use_threads=no ;;
5406 1.[0-5].*) gl_use_threads=no ;;
5407 *) gl_use_threads=yes ;;
5410 *) gl_use_threads=yes ;;
5416 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5417 # For using <pthread.h>:
5420 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5421 # groks <pthread.h>. cc also understands the flag -pthread, but
5422 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5423 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5424 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5425 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5426 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5429 # Some systems optimize for single-threaded programs by default, and
5430 # need special flags to disable these optimizations. For example, the
5431 # definition of 'errno' in <errno.h>.
5433 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5434 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5441 # Code from module alloca-opt:
5442 # Code from module alloca-opt-tests:
5443 # Code from module arg-nonnull:
5444 # Code from module array-mergesort:
5445 # Code from module array-mergesort-tests:
5446 # Code from module c++defs:
5447 # Code from module c-ctype:
5448 # Code from module c-ctype-tests:
5449 # Code from module c-strcase:
5450 # Code from module c-strcase-tests:
5451 # Code from module c-strcaseeq:
5452 # Code from module configmake:
5453 # Code from module environ:
5454 # Code from module environ-tests:
5455 # Code from module errno:
5456 # Code from module errno-tests:
5457 # Code from module error:
5458 # Code from module exitfail:
5459 # Code from module extensions:
5461 # Code from module float:
5462 # Code from module fpieee:
5464 # Code from module fpucw:
5465 # Code from module frexpl-nolibm:
5466 # Code from module frexpl-nolibm-tests:
5467 # Code from module fseterr:
5468 # Code from module fseterr-tests:
5469 # Code from module getpagesize:
5470 # Code from module gettext-h:
5471 # Code from module gperf:
5472 # Code from module havelib:
5473 # Code from module iconv:
5474 # Code from module iconv-h:
5475 # Code from module iconv-h-tests:
5476 # Code from module iconv-tests:
5477 # Code from module iconv_open:
5478 # Code from module include_next:
5479 # Code from module inline:
5480 # Code from module intprops:
5481 # Code from module isnand-nolibm:
5482 # Code from module isnand-nolibm-tests:
5483 # Code from module isnanf-nolibm:
5484 # Code from module isnanf-nolibm-tests:
5485 # Code from module isnanl-nolibm:
5486 # Code from module isnanl-nolibm-tests:
5487 # Code from module localcharset:
5488 # Code from module locale:
5489 # Code from module locale-tests:
5490 # Code from module localename:
5491 # Code from module localename-tests:
5492 # Code from module lock:
5493 # Code from module lock-tests:
5494 # Code from module malloc-posix:
5495 # Code from module malloca:
5496 # Code from module malloca-tests:
5497 # Code from module math:
5498 # Code from module math-tests:
5499 # Code from module mbchar:
5500 # Code from module mbiter:
5501 # Code from module mbrtowc:
5502 # Code from module mbrtowc-tests:
5503 # Code from module mbsinit:
5504 # Code from module mbsinit-tests:
5505 # Code from module mbsnlen:
5506 # Code from module memchr:
5507 # Code from module memchr-tests:
5508 # Code from module memcmp2:
5509 # Code from module memxfrm:
5510 # Code from module minmax:
5511 # Code from module multiarch:
5512 # Code from module nocrash:
5513 # Code from module printf-frexp:
5514 # Code from module printf-frexp-tests:
5515 # Code from module printf-frexpl:
5516 # Code from module printf-frexpl-tests:
5517 # Code from module printf-safe:
5518 # Code from module progname:
5519 # Code from module putenv:
5520 # Code from module relocatable-lib-lgpl:
5521 # Code from module setenv:
5522 # Code from module setenv-tests:
5523 # Code from module signbit:
5524 # Code from module signbit-tests:
5525 # Code from module size_max:
5526 # Code from module stdbool:
5527 # Code from module stdbool-tests:
5528 # Code from module stddef:
5529 # Code from module stddef-tests:
5530 # Code from module stdint:
5531 # Code from module stdint-tests:
5532 # Code from module stdlib:
5533 # Code from module stdlib-tests:
5534 # Code from module streq:
5535 # Code from module strerror:
5536 # Code from module strerror-tests:
5537 # Code from module striconveh:
5538 # Code from module striconveh-tests:
5539 # Code from module striconveha:
5540 # Code from module striconveha-tests:
5541 # Code from module string:
5542 # Code from module string-tests:
5543 # Code from module strncat:
5544 # Code from module strncat-tests:
5545 # Code from module thread:
5546 # Code from module threadlib:
5550 # Code from module unicase/base:
5551 # Code from module unicase/cased:
5552 # Code from module unicase/cased-tests:
5553 # Code from module unicase/empty-prefix-context:
5554 # Code from module unicase/empty-suffix-context:
5555 # Code from module unicase/ignorable:
5556 # Code from module unicase/ignorable-tests:
5557 # Code from module unicase/locale-language:
5558 # Code from module unicase/locale-language-tests:
5559 # Code from module unicase/special-casing:
5560 # Code from module unicase/tocasefold:
5561 # Code from module unicase/tolower:
5562 # Code from module unicase/tolower-tests:
5563 # Code from module unicase/totitle:
5564 # Code from module unicase/totitle-tests:
5565 # Code from module unicase/toupper:
5566 # Code from module unicase/toupper-tests:
5567 # Code from module unicase/u16-casecmp:
5568 # Code from module unicase/u16-casecmp-tests:
5569 # Code from module unicase/u16-casecoll:
5570 # Code from module unicase/u16-casecoll-tests:
5571 # Code from module unicase/u16-casefold:
5572 # Code from module unicase/u16-casefold-tests:
5573 # Code from module unicase/u16-casemap:
5574 # Code from module unicase/u16-casexfrm:
5575 # Code from module unicase/u16-ct-casefold:
5576 # Code from module unicase/u16-ct-tolower:
5577 # Code from module unicase/u16-ct-totitle:
5578 # Code from module unicase/u16-ct-toupper:
5579 # Code from module unicase/u16-is-cased:
5580 # Code from module unicase/u16-is-cased-tests:
5581 # Code from module unicase/u16-is-casefolded:
5582 # Code from module unicase/u16-is-casefolded-tests:
5583 # Code from module unicase/u16-is-invariant:
5584 # Code from module unicase/u16-is-lowercase:
5585 # Code from module unicase/u16-is-lowercase-tests:
5586 # Code from module unicase/u16-is-titlecase:
5587 # Code from module unicase/u16-is-titlecase-tests:
5588 # Code from module unicase/u16-is-uppercase:
5589 # Code from module unicase/u16-is-uppercase-tests:
5590 # Code from module unicase/u16-tolower:
5591 # Code from module unicase/u16-tolower-tests:
5592 # Code from module unicase/u16-totitle:
5593 # Code from module unicase/u16-totitle-tests:
5594 # Code from module unicase/u16-toupper:
5595 # Code from module unicase/u16-toupper-tests:
5596 # Code from module unicase/u32-casecmp:
5597 # Code from module unicase/u32-casecmp-tests:
5598 # Code from module unicase/u32-casecoll:
5599 # Code from module unicase/u32-casecoll-tests:
5600 # Code from module unicase/u32-casefold:
5601 # Code from module unicase/u32-casefold-tests:
5602 # Code from module unicase/u32-casemap:
5603 # Code from module unicase/u32-casexfrm:
5604 # Code from module unicase/u32-ct-casefold:
5605 # Code from module unicase/u32-ct-tolower:
5606 # Code from module unicase/u32-ct-totitle:
5607 # Code from module unicase/u32-ct-toupper:
5608 # Code from module unicase/u32-is-cased:
5609 # Code from module unicase/u32-is-cased-tests:
5610 # Code from module unicase/u32-is-casefolded:
5611 # Code from module unicase/u32-is-casefolded-tests:
5612 # Code from module unicase/u32-is-invariant:
5613 # Code from module unicase/u32-is-lowercase:
5614 # Code from module unicase/u32-is-lowercase-tests:
5615 # Code from module unicase/u32-is-titlecase:
5616 # Code from module unicase/u32-is-titlecase-tests:
5617 # Code from module unicase/u32-is-uppercase:
5618 # Code from module unicase/u32-is-uppercase-tests:
5619 # Code from module unicase/u32-tolower:
5620 # Code from module unicase/u32-tolower-tests:
5621 # Code from module unicase/u32-totitle:
5622 # Code from module unicase/u32-totitle-tests:
5623 # Code from module unicase/u32-toupper:
5624 # Code from module unicase/u32-toupper-tests:
5625 # Code from module unicase/u8-casecmp:
5626 # Code from module unicase/u8-casecmp-tests:
5627 # Code from module unicase/u8-casecoll:
5628 # Code from module unicase/u8-casecoll-tests:
5629 # Code from module unicase/u8-casefold:
5630 # Code from module unicase/u8-casefold-tests:
5631 # Code from module unicase/u8-casemap:
5632 # Code from module unicase/u8-casexfrm:
5633 # Code from module unicase/u8-ct-casefold:
5634 # Code from module unicase/u8-ct-tolower:
5635 # Code from module unicase/u8-ct-totitle:
5636 # Code from module unicase/u8-ct-toupper:
5637 # Code from module unicase/u8-is-cased:
5638 # Code from module unicase/u8-is-cased-tests:
5639 # Code from module unicase/u8-is-casefolded:
5640 # Code from module unicase/u8-is-casefolded-tests:
5641 # Code from module unicase/u8-is-invariant:
5642 # Code from module unicase/u8-is-lowercase:
5643 # Code from module unicase/u8-is-lowercase-tests:
5644 # Code from module unicase/u8-is-titlecase:
5645 # Code from module unicase/u8-is-titlecase-tests:
5646 # Code from module unicase/u8-is-uppercase:
5647 # Code from module unicase/u8-is-uppercase-tests:
5648 # Code from module unicase/u8-tolower:
5649 # Code from module unicase/u8-tolower-tests:
5650 # Code from module unicase/u8-totitle:
5651 # Code from module unicase/u8-totitle-tests:
5652 # Code from module unicase/u8-toupper:
5653 # Code from module unicase/u8-toupper-tests:
5654 # Code from module unicase/ulc-casecmp:
5655 # Code from module unicase/ulc-casecmp-tests:
5656 # Code from module unicase/ulc-casecoll:
5657 # Code from module unicase/ulc-casecoll-tests:
5658 # Code from module unicase/ulc-casexfrm:
5659 # Code from module uniconv/base:
5660 # Code from module uniconv/u16-conv-from-enc:
5661 # Code from module uniconv/u16-conv-from-enc-tests:
5662 # Code from module uniconv/u16-conv-to-enc:
5663 # Code from module uniconv/u16-conv-to-enc-tests:
5664 # Code from module uniconv/u16-strconv-from-enc:
5665 # Code from module uniconv/u16-strconv-from-enc-tests:
5666 # Code from module uniconv/u16-strconv-from-locale:
5667 # Code from module uniconv/u16-strconv-to-enc:
5668 # Code from module uniconv/u16-strconv-to-enc-tests:
5669 # Code from module uniconv/u16-strconv-to-locale:
5670 # Code from module uniconv/u32-conv-from-enc:
5671 # Code from module uniconv/u32-conv-from-enc-tests:
5672 # Code from module uniconv/u32-conv-to-enc:
5673 # Code from module uniconv/u32-conv-to-enc-tests:
5674 # Code from module uniconv/u32-strconv-from-enc:
5675 # Code from module uniconv/u32-strconv-from-enc-tests:
5676 # Code from module uniconv/u32-strconv-from-locale:
5677 # Code from module uniconv/u32-strconv-to-enc:
5678 # Code from module uniconv/u32-strconv-to-enc-tests:
5679 # Code from module uniconv/u32-strconv-to-locale:
5680 # Code from module uniconv/u8-conv-from-enc:
5681 # Code from module uniconv/u8-conv-from-enc-tests:
5682 # Code from module uniconv/u8-conv-to-enc:
5683 # Code from module uniconv/u8-conv-to-enc-tests:
5684 # Code from module uniconv/u8-strconv-from-enc:
5685 # Code from module uniconv/u8-strconv-from-enc-tests:
5686 # Code from module uniconv/u8-strconv-from-locale:
5687 # Code from module uniconv/u8-strconv-to-enc:
5688 # Code from module uniconv/u8-strconv-to-enc-tests:
5689 # Code from module uniconv/u8-strconv-to-locale:
5690 # Code from module unictype/base:
5691 # Code from module unictype/bidicategory-all:
5692 # Code from module unictype/bidicategory-byname:
5693 # Code from module unictype/bidicategory-byname-tests:
5694 # Code from module unictype/bidicategory-name:
5695 # Code from module unictype/bidicategory-name-tests:
5696 # Code from module unictype/bidicategory-of:
5697 # Code from module unictype/bidicategory-of-tests:
5698 # Code from module unictype/bidicategory-test:
5699 # Code from module unictype/bidicategory-test-tests:
5700 # Code from module unictype/block-all:
5701 # Code from module unictype/block-list:
5702 # Code from module unictype/block-list-tests:
5703 # Code from module unictype/block-of:
5704 # Code from module unictype/block-of-tests:
5705 # Code from module unictype/block-test:
5706 # Code from module unictype/block-test-tests:
5707 # Code from module unictype/category-C:
5708 # Code from module unictype/category-C-tests:
5709 # Code from module unictype/category-Cc:
5710 # Code from module unictype/category-Cc-tests:
5711 # Code from module unictype/category-Cf:
5712 # Code from module unictype/category-Cf-tests:
5713 # Code from module unictype/category-Cn:
5714 # Code from module unictype/category-Cn-tests:
5715 # Code from module unictype/category-Co:
5716 # Code from module unictype/category-Co-tests:
5717 # Code from module unictype/category-Cs:
5718 # Code from module unictype/category-Cs-tests:
5719 # Code from module unictype/category-L:
5720 # Code from module unictype/category-L-tests:
5721 # Code from module unictype/category-Ll:
5722 # Code from module unictype/category-Ll-tests:
5723 # Code from module unictype/category-Lm:
5724 # Code from module unictype/category-Lm-tests:
5725 # Code from module unictype/category-Lo:
5726 # Code from module unictype/category-Lo-tests:
5727 # Code from module unictype/category-Lt:
5728 # Code from module unictype/category-Lt-tests:
5729 # Code from module unictype/category-Lu:
5730 # Code from module unictype/category-Lu-tests:
5731 # Code from module unictype/category-M:
5732 # Code from module unictype/category-M-tests:
5733 # Code from module unictype/category-Mc:
5734 # Code from module unictype/category-Mc-tests:
5735 # Code from module unictype/category-Me:
5736 # Code from module unictype/category-Me-tests:
5737 # Code from module unictype/category-Mn:
5738 # Code from module unictype/category-Mn-tests:
5739 # Code from module unictype/category-N:
5740 # Code from module unictype/category-N-tests:
5741 # Code from module unictype/category-Nd:
5742 # Code from module unictype/category-Nd-tests:
5743 # Code from module unictype/category-Nl:
5744 # Code from module unictype/category-Nl-tests:
5745 # Code from module unictype/category-No:
5746 # Code from module unictype/category-No-tests:
5747 # Code from module unictype/category-P:
5748 # Code from module unictype/category-P-tests:
5749 # Code from module unictype/category-Pc:
5750 # Code from module unictype/category-Pc-tests:
5751 # Code from module unictype/category-Pd:
5752 # Code from module unictype/category-Pd-tests:
5753 # Code from module unictype/category-Pe:
5754 # Code from module unictype/category-Pe-tests:
5755 # Code from module unictype/category-Pf:
5756 # Code from module unictype/category-Pf-tests:
5757 # Code from module unictype/category-Pi:
5758 # Code from module unictype/category-Pi-tests:
5759 # Code from module unictype/category-Po:
5760 # Code from module unictype/category-Po-tests:
5761 # Code from module unictype/category-Ps:
5762 # Code from module unictype/category-Ps-tests:
5763 # Code from module unictype/category-S:
5764 # Code from module unictype/category-S-tests:
5765 # Code from module unictype/category-Sc:
5766 # Code from module unictype/category-Sc-tests:
5767 # Code from module unictype/category-Sk:
5768 # Code from module unictype/category-Sk-tests:
5769 # Code from module unictype/category-Sm:
5770 # Code from module unictype/category-Sm-tests:
5771 # Code from module unictype/category-So:
5772 # Code from module unictype/category-So-tests:
5773 # Code from module unictype/category-Z:
5774 # Code from module unictype/category-Z-tests:
5775 # Code from module unictype/category-Zl:
5776 # Code from module unictype/category-Zl-tests:
5777 # Code from module unictype/category-Zp:
5778 # Code from module unictype/category-Zp-tests:
5779 # Code from module unictype/category-Zs:
5780 # Code from module unictype/category-Zs-tests:
5781 # Code from module unictype/category-all:
5782 # Code from module unictype/category-and:
5783 # Code from module unictype/category-and-not:
5784 # Code from module unictype/category-and-not-tests:
5785 # Code from module unictype/category-and-tests:
5786 # Code from module unictype/category-byname:
5787 # Code from module unictype/category-byname-tests:
5788 # Code from module unictype/category-name:
5789 # Code from module unictype/category-name-tests:
5790 # Code from module unictype/category-none:
5791 # Code from module unictype/category-none-tests:
5792 # Code from module unictype/category-of:
5793 # Code from module unictype/category-of-tests:
5794 # Code from module unictype/category-or:
5795 # Code from module unictype/category-or-tests:
5796 # Code from module unictype/category-test:
5797 # Code from module unictype/category-test-withtable:
5798 # Code from module unictype/category-test-withtable-tests:
5799 # Code from module unictype/combining-class:
5800 # Code from module unictype/combining-class-tests:
5801 # Code from module unictype/ctype-alnum:
5802 # Code from module unictype/ctype-alnum-tests:
5803 # Code from module unictype/ctype-alpha:
5804 # Code from module unictype/ctype-alpha-tests:
5805 # Code from module unictype/ctype-blank:
5806 # Code from module unictype/ctype-blank-tests:
5807 # Code from module unictype/ctype-cntrl:
5808 # Code from module unictype/ctype-cntrl-tests:
5809 # Code from module unictype/ctype-digit:
5810 # Code from module unictype/ctype-digit-tests:
5811 # Code from module unictype/ctype-graph:
5812 # Code from module unictype/ctype-graph-tests:
5813 # Code from module unictype/ctype-lower:
5814 # Code from module unictype/ctype-lower-tests:
5815 # Code from module unictype/ctype-print:
5816 # Code from module unictype/ctype-print-tests:
5817 # Code from module unictype/ctype-punct:
5818 # Code from module unictype/ctype-punct-tests:
5819 # Code from module unictype/ctype-space:
5820 # Code from module unictype/ctype-space-tests:
5821 # Code from module unictype/ctype-upper:
5822 # Code from module unictype/ctype-upper-tests:
5823 # Code from module unictype/ctype-xdigit:
5824 # Code from module unictype/ctype-xdigit-tests:
5825 # Code from module unictype/decimal-digit:
5826 # Code from module unictype/decimal-digit-tests:
5827 # Code from module unictype/digit:
5828 # Code from module unictype/digit-tests:
5829 # Code from module unictype/mirror:
5830 # Code from module unictype/mirror-tests:
5831 # Code from module unictype/numeric:
5832 # Code from module unictype/numeric-tests:
5833 # Code from module unictype/property-all:
5834 # Code from module unictype/property-alphabetic:
5835 # Code from module unictype/property-alphabetic-tests:
5836 # Code from module unictype/property-ascii-hex-digit:
5837 # Code from module unictype/property-ascii-hex-digit-tests:
5838 # Code from module unictype/property-bidi-arabic-digit:
5839 # Code from module unictype/property-bidi-arabic-digit-tests:
5840 # Code from module unictype/property-bidi-arabic-right-to-left:
5841 # Code from module unictype/property-bidi-arabic-right-to-left-tests:
5842 # Code from module unictype/property-bidi-block-separator:
5843 # Code from module unictype/property-bidi-block-separator-tests:
5844 # Code from module unictype/property-bidi-boundary-neutral:
5845 # Code from module unictype/property-bidi-boundary-neutral-tests:
5846 # Code from module unictype/property-bidi-common-separator:
5847 # Code from module unictype/property-bidi-common-separator-tests:
5848 # Code from module unictype/property-bidi-control:
5849 # Code from module unictype/property-bidi-control-tests:
5850 # Code from module unictype/property-bidi-embedding-or-override:
5851 # Code from module unictype/property-bidi-embedding-or-override-tests:
5852 # Code from module unictype/property-bidi-eur-num-separator:
5853 # Code from module unictype/property-bidi-eur-num-separator-tests:
5854 # Code from module unictype/property-bidi-eur-num-terminator:
5855 # Code from module unictype/property-bidi-eur-num-terminator-tests:
5856 # Code from module unictype/property-bidi-european-digit:
5857 # Code from module unictype/property-bidi-european-digit-tests:
5858 # Code from module unictype/property-bidi-hebrew-right-to-left:
5859 # Code from module unictype/property-bidi-hebrew-right-to-left-tests:
5860 # Code from module unictype/property-bidi-left-to-right:
5861 # Code from module unictype/property-bidi-left-to-right-tests:
5862 # Code from module unictype/property-bidi-non-spacing-mark:
5863 # Code from module unictype/property-bidi-non-spacing-mark-tests:
5864 # Code from module unictype/property-bidi-other-neutral:
5865 # Code from module unictype/property-bidi-other-neutral-tests:
5866 # Code from module unictype/property-bidi-pdf:
5867 # Code from module unictype/property-bidi-pdf-tests:
5868 # Code from module unictype/property-bidi-segment-separator:
5869 # Code from module unictype/property-bidi-segment-separator-tests:
5870 # Code from module unictype/property-bidi-whitespace:
5871 # Code from module unictype/property-bidi-whitespace-tests:
5872 # Code from module unictype/property-byname:
5873 # Code from module unictype/property-byname-tests:
5874 # Code from module unictype/property-combining:
5875 # Code from module unictype/property-combining-tests:
5876 # Code from module unictype/property-composite:
5877 # Code from module unictype/property-composite-tests:
5878 # Code from module unictype/property-currency-symbol:
5879 # Code from module unictype/property-currency-symbol-tests:
5880 # Code from module unictype/property-dash:
5881 # Code from module unictype/property-dash-tests:
5882 # Code from module unictype/property-decimal-digit:
5883 # Code from module unictype/property-decimal-digit-tests:
5884 # Code from module unictype/property-default-ignorable-code-point:
5885 # Code from module unictype/property-default-ignorable-code-point-tests:
5886 # Code from module unictype/property-deprecated:
5887 # Code from module unictype/property-deprecated-tests:
5888 # Code from module unictype/property-diacritic:
5889 # Code from module unictype/property-diacritic-tests:
5890 # Code from module unictype/property-extender:
5891 # Code from module unictype/property-extender-tests:
5892 # Code from module unictype/property-format-control:
5893 # Code from module unictype/property-format-control-tests:
5894 # Code from module unictype/property-grapheme-base:
5895 # Code from module unictype/property-grapheme-base-tests:
5896 # Code from module unictype/property-grapheme-extend:
5897 # Code from module unictype/property-grapheme-extend-tests:
5898 # Code from module unictype/property-grapheme-link:
5899 # Code from module unictype/property-grapheme-link-tests:
5900 # Code from module unictype/property-hex-digit:
5901 # Code from module unictype/property-hex-digit-tests:
5902 # Code from module unictype/property-hyphen:
5903 # Code from module unictype/property-hyphen-tests:
5904 # Code from module unictype/property-id-continue:
5905 # Code from module unictype/property-id-continue-tests:
5906 # Code from module unictype/property-id-start:
5907 # Code from module unictype/property-id-start-tests:
5908 # Code from module unictype/property-ideographic:
5909 # Code from module unictype/property-ideographic-tests:
5910 # Code from module unictype/property-ids-binary-operator:
5911 # Code from module unictype/property-ids-binary-operator-tests:
5912 # Code from module unictype/property-ids-trinary-operator:
5913 # Code from module unictype/property-ids-trinary-operator-tests:
5914 # Code from module unictype/property-ignorable-control:
5915 # Code from module unictype/property-ignorable-control-tests:
5916 # Code from module unictype/property-iso-control:
5917 # Code from module unictype/property-iso-control-tests:
5918 # Code from module unictype/property-join-control:
5919 # Code from module unictype/property-join-control-tests:
5920 # Code from module unictype/property-left-of-pair:
5921 # Code from module unictype/property-left-of-pair-tests:
5922 # Code from module unictype/property-line-separator:
5923 # Code from module unictype/property-line-separator-tests:
5924 # Code from module unictype/property-logical-order-exception:
5925 # Code from module unictype/property-logical-order-exception-tests:
5926 # Code from module unictype/property-lowercase:
5927 # Code from module unictype/property-lowercase-tests:
5928 # Code from module unictype/property-math:
5929 # Code from module unictype/property-math-tests:
5930 # Code from module unictype/property-non-break:
5931 # Code from module unictype/property-non-break-tests:
5932 # Code from module unictype/property-not-a-character:
5933 # Code from module unictype/property-not-a-character-tests:
5934 # Code from module unictype/property-numeric:
5935 # Code from module unictype/property-numeric-tests:
5936 # Code from module unictype/property-other-alphabetic:
5937 # Code from module unictype/property-other-alphabetic-tests:
5938 # Code from module unictype/property-other-default-ignorable-code-point:
5939 # Code from module unictype/property-other-default-ignorable-code-point-tests:
5940 # Code from module unictype/property-other-grapheme-extend:
5941 # Code from module unictype/property-other-grapheme-extend-tests:
5942 # Code from module unictype/property-other-id-continue:
5943 # Code from module unictype/property-other-id-continue-tests:
5944 # Code from module unictype/property-other-id-start:
5945 # Code from module unictype/property-other-id-start-tests:
5946 # Code from module unictype/property-other-lowercase:
5947 # Code from module unictype/property-other-lowercase-tests:
5948 # Code from module unictype/property-other-math:
5949 # Code from module unictype/property-other-math-tests:
5950 # Code from module unictype/property-other-uppercase:
5951 # Code from module unictype/property-other-uppercase-tests:
5952 # Code from module unictype/property-paired-punctuation:
5953 # Code from module unictype/property-paired-punctuation-tests:
5954 # Code from module unictype/property-paragraph-separator:
5955 # Code from module unictype/property-paragraph-separator-tests:
5956 # Code from module unictype/property-pattern-syntax:
5957 # Code from module unictype/property-pattern-syntax-tests:
5958 # Code from module unictype/property-pattern-white-space:
5959 # Code from module unictype/property-pattern-white-space-tests:
5960 # Code from module unictype/property-private-use:
5961 # Code from module unictype/property-private-use-tests:
5962 # Code from module unictype/property-punctuation:
5963 # Code from module unictype/property-punctuation-tests:
5964 # Code from module unictype/property-quotation-mark:
5965 # Code from module unictype/property-quotation-mark-tests:
5966 # Code from module unictype/property-radical:
5967 # Code from module unictype/property-radical-tests:
5968 # Code from module unictype/property-sentence-terminal:
5969 # Code from module unictype/property-sentence-terminal-tests:
5970 # Code from module unictype/property-soft-dotted:
5971 # Code from module unictype/property-soft-dotted-tests:
5972 # Code from module unictype/property-space:
5973 # Code from module unictype/property-space-tests:
5974 # Code from module unictype/property-terminal-punctuation:
5975 # Code from module unictype/property-terminal-punctuation-tests:
5976 # Code from module unictype/property-test:
5977 # Code from module unictype/property-test-tests:
5978 # Code from module unictype/property-titlecase:
5979 # Code from module unictype/property-titlecase-tests:
5980 # Code from module unictype/property-unassigned-code-value:
5981 # Code from module unictype/property-unassigned-code-value-tests:
5982 # Code from module unictype/property-unified-ideograph:
5983 # Code from module unictype/property-unified-ideograph-tests:
5984 # Code from module unictype/property-uppercase:
5985 # Code from module unictype/property-uppercase-tests:
5986 # Code from module unictype/property-variation-selector:
5987 # Code from module unictype/property-variation-selector-tests:
5988 # Code from module unictype/property-white-space:
5989 # Code from module unictype/property-white-space-tests:
5990 # Code from module unictype/property-xid-continue:
5991 # Code from module unictype/property-xid-continue-tests:
5992 # Code from module unictype/property-xid-start:
5993 # Code from module unictype/property-xid-start-tests:
5994 # Code from module unictype/property-zero-width:
5995 # Code from module unictype/property-zero-width-tests:
5996 # Code from module unictype/scripts:
5997 # Code from module unictype/scripts-all:
5998 # Code from module unictype/scripts-tests:
5999 # Code from module unictype/syntax-c-ident:
6000 # Code from module unictype/syntax-c-ident-tests:
6001 # Code from module unictype/syntax-c-whitespace:
6002 # Code from module unictype/syntax-c-whitespace-tests:
6003 # Code from module unictype/syntax-java-ident:
6004 # Code from module unictype/syntax-java-ident-tests:
6005 # Code from module unictype/syntax-java-whitespace:
6006 # Code from module unictype/syntax-java-whitespace-tests:
6007 # Code from module unilbrk/base:
6008 # Code from module unilbrk/tables:
6009 # Code from module unilbrk/u16-possible-linebreaks:
6010 # Code from module unilbrk/u16-possible-linebreaks-tests:
6011 # Code from module unilbrk/u16-width-linebreaks:
6012 # Code from module unilbrk/u16-width-linebreaks-tests:
6013 # Code from module unilbrk/u32-possible-linebreaks:
6014 # Code from module unilbrk/u32-possible-linebreaks-tests:
6015 # Code from module unilbrk/u32-width-linebreaks:
6016 # Code from module unilbrk/u32-width-linebreaks-tests:
6017 # Code from module unilbrk/u8-possible-linebreaks:
6018 # Code from module unilbrk/u8-possible-linebreaks-tests:
6019 # Code from module unilbrk/u8-width-linebreaks:
6020 # Code from module unilbrk/u8-width-linebreaks-tests:
6021 # Code from module unilbrk/ulc-common:
6022 # Code from module unilbrk/ulc-possible-linebreaks:
6023 # Code from module unilbrk/ulc-possible-linebreaks-tests:
6024 # Code from module unilbrk/ulc-width-linebreaks:
6025 # Code from module unilbrk/ulc-width-linebreaks-tests:
6026 # Code from module uniname/base:
6027 # Code from module uniname/uniname:
6028 # Code from module uniname/uniname-tests:
6029 # Code from module uninorm/base:
6030 # Code from module uninorm/canonical-decomposition:
6031 # Code from module uninorm/canonical-decomposition-tests:
6032 # Code from module uninorm/compat-decomposition:
6033 # Code from module uninorm/compat-decomposition-tests:
6034 # Code from module uninorm/composition:
6035 # Code from module uninorm/composition-tests:
6036 # Code from module uninorm/decompose-internal:
6037 # Code from module uninorm/decomposing-form:
6038 # Code from module uninorm/decomposing-form-tests:
6039 # Code from module uninorm/decomposition:
6040 # Code from module uninorm/decomposition-table:
6041 # Code from module uninorm/decomposition-tests:
6042 # Code from module uninorm/filter:
6043 # Code from module uninorm/filter-tests:
6044 # Code from module uninorm/nfc:
6045 # Code from module uninorm/nfc-tests:
6046 # Code from module uninorm/nfd:
6047 # Code from module uninorm/nfd-tests:
6048 # Code from module uninorm/nfkc:
6049 # Code from module uninorm/nfkc-tests:
6050 # Code from module uninorm/nfkd:
6051 # Code from module uninorm/nfkd-tests:
6052 # Code from module uninorm/u16-normalize:
6053 # Code from module uninorm/u16-normcmp:
6054 # Code from module uninorm/u16-normcmp-tests:
6055 # Code from module uninorm/u16-normcoll:
6056 # Code from module uninorm/u16-normcoll-tests:
6057 # Code from module uninorm/u16-normxfrm:
6058 # Code from module uninorm/u32-normalize:
6059 # Code from module uninorm/u32-normcmp:
6060 # Code from module uninorm/u32-normcmp-tests:
6061 # Code from module uninorm/u32-normcoll:
6062 # Code from module uninorm/u32-normcoll-tests:
6063 # Code from module uninorm/u32-normxfrm:
6064 # Code from module uninorm/u8-normalize:
6065 # Code from module uninorm/u8-normcmp:
6066 # Code from module uninorm/u8-normcmp-tests:
6067 # Code from module uninorm/u8-normcoll:
6068 # Code from module uninorm/u8-normcoll-tests:
6069 # Code from module uninorm/u8-normxfrm:
6070 # Code from module unistd:
6071 # Code from module unistd-tests:
6072 # Code from module unistdio/base:
6073 # Code from module unistdio/u-printf-args:
6074 # Code from module unistdio/u16-asnprintf:
6075 # Code from module unistdio/u16-asnprintf-tests:
6076 # Code from module unistdio/u16-asprintf:
6077 # Code from module unistdio/u16-printf-parse:
6078 # Code from module unistdio/u16-snprintf:
6079 # Code from module unistdio/u16-sprintf:
6080 # Code from module unistdio/u16-u16-asnprintf:
6081 # Code from module unistdio/u16-u16-asprintf:
6082 # Code from module unistdio/u16-u16-snprintf:
6083 # Code from module unistdio/u16-u16-sprintf:
6084 # Code from module unistdio/u16-u16-vasnprintf:
6085 # Code from module unistdio/u16-u16-vasprintf:
6086 # Code from module unistdio/u16-u16-vsnprintf:
6087 # Code from module unistdio/u16-u16-vsprintf:
6088 # Code from module unistdio/u16-vasnprintf:
6089 # Code from module unistdio/u16-vasnprintf-tests:
6090 # Code from module unistdio/u16-vasprintf:
6091 # Code from module unistdio/u16-vasprintf-tests:
6092 # Code from module unistdio/u16-vsnprintf:
6093 # Code from module unistdio/u16-vsnprintf-tests:
6094 # Code from module unistdio/u16-vsprintf:
6095 # Code from module unistdio/u16-vsprintf-tests:
6096 # Code from module unistdio/u32-asnprintf:
6097 # Code from module unistdio/u32-asnprintf-tests:
6098 # Code from module unistdio/u32-asprintf:
6099 # Code from module unistdio/u32-printf-parse:
6100 # Code from module unistdio/u32-snprintf:
6101 # Code from module unistdio/u32-sprintf:
6102 # Code from module unistdio/u32-u32-asnprintf:
6103 # Code from module unistdio/u32-u32-asprintf:
6104 # Code from module unistdio/u32-u32-snprintf:
6105 # Code from module unistdio/u32-u32-sprintf:
6106 # Code from module unistdio/u32-u32-vasnprintf:
6107 # Code from module unistdio/u32-u32-vasprintf:
6108 # Code from module unistdio/u32-u32-vsnprintf:
6109 # Code from module unistdio/u32-u32-vsprintf:
6110 # Code from module unistdio/u32-vasnprintf:
6111 # Code from module unistdio/u32-vasnprintf-tests:
6112 # Code from module unistdio/u32-vasprintf:
6113 # Code from module unistdio/u32-vasprintf-tests:
6114 # Code from module unistdio/u32-vsnprintf:
6115 # Code from module unistdio/u32-vsnprintf-tests:
6116 # Code from module unistdio/u32-vsprintf:
6117 # Code from module unistdio/u32-vsprintf-tests:
6118 # Code from module unistdio/u8-asnprintf:
6119 # Code from module unistdio/u8-asnprintf-tests:
6120 # Code from module unistdio/u8-asprintf:
6121 # Code from module unistdio/u8-printf-parse:
6122 # Code from module unistdio/u8-snprintf:
6123 # Code from module unistdio/u8-sprintf:
6124 # Code from module unistdio/u8-u8-asnprintf:
6125 # Code from module unistdio/u8-u8-asprintf:
6126 # Code from module unistdio/u8-u8-snprintf:
6127 # Code from module unistdio/u8-u8-sprintf:
6128 # Code from module unistdio/u8-u8-vasnprintf:
6129 # Code from module unistdio/u8-u8-vasprintf:
6130 # Code from module unistdio/u8-u8-vsnprintf:
6131 # Code from module unistdio/u8-u8-vsprintf:
6132 # Code from module unistdio/u8-vasnprintf:
6133 # Code from module unistdio/u8-vasnprintf-tests:
6134 # Code from module unistdio/u8-vasprintf:
6135 # Code from module unistdio/u8-vasprintf-tests:
6136 # Code from module unistdio/u8-vsnprintf:
6137 # Code from module unistdio/u8-vsnprintf-tests:
6138 # Code from module unistdio/u8-vsprintf:
6139 # Code from module unistdio/u8-vsprintf-tests:
6140 # Code from module unistdio/ulc-asnprintf:
6141 # Code from module unistdio/ulc-asnprintf-tests:
6142 # Code from module unistdio/ulc-asprintf:
6143 # Code from module unistdio/ulc-fprintf:
6144 # Code from module unistdio/ulc-printf-parse:
6145 # Code from module unistdio/ulc-snprintf:
6146 # Code from module unistdio/ulc-sprintf:
6147 # Code from module unistdio/ulc-vasnprintf:
6148 # Code from module unistdio/ulc-vasnprintf-tests:
6149 # Code from module unistdio/ulc-vasprintf:
6150 # Code from module unistdio/ulc-vasprintf-tests:
6151 # Code from module unistdio/ulc-vfprintf:
6152 # Code from module unistdio/ulc-vsnprintf:
6153 # Code from module unistdio/ulc-vsnprintf-tests:
6154 # Code from module unistdio/ulc-vsprintf:
6155 # Code from module unistdio/ulc-vsprintf-tests:
6156 # Code from module unistr/base:
6157 # Code from module unistr/u16-check:
6158 # Code from module unistr/u16-check-tests:
6159 # Code from module unistr/u16-chr:
6160 # Code from module unistr/u16-chr-tests:
6161 # Code from module unistr/u16-cmp:
6162 # Code from module unistr/u16-cmp-tests:
6163 # Code from module unistr/u16-cmp2:
6164 # Code from module unistr/u16-cmp2-tests:
6165 # Code from module unistr/u16-cpy:
6166 # Code from module unistr/u16-cpy-alloc:
6167 # Code from module unistr/u16-cpy-alloc-tests:
6168 # Code from module unistr/u16-cpy-tests:
6169 # Code from module unistr/u16-endswith:
6170 # Code from module unistr/u16-mblen:
6171 # Code from module unistr/u16-mblen-tests:
6172 # Code from module unistr/u16-mbsnlen:
6173 # Code from module unistr/u16-mbsnlen-tests:
6174 # Code from module unistr/u16-mbtouc:
6175 # Code from module unistr/u16-mbtouc-tests:
6176 # Code from module unistr/u16-mbtouc-unsafe:
6177 # Code from module unistr/u16-mbtouc-unsafe-tests:
6178 # Code from module unistr/u16-mbtoucr:
6179 # Code from module unistr/u16-mbtoucr-tests:
6180 # Code from module unistr/u16-move:
6181 # Code from module unistr/u16-move-tests:
6182 # Code from module unistr/u16-next:
6183 # Code from module unistr/u16-next-tests:
6184 # Code from module unistr/u16-prev:
6185 # Code from module unistr/u16-prev-tests:
6186 # Code from module unistr/u16-set:
6187 # Code from module unistr/u16-set-tests:
6188 # Code from module unistr/u16-startswith:
6189 # Code from module unistr/u16-stpcpy:
6190 # Code from module unistr/u16-stpcpy-tests:
6191 # Code from module unistr/u16-stpncpy:
6192 # Code from module unistr/u16-stpncpy-tests:
6193 # Code from module unistr/u16-strcat:
6194 # Code from module unistr/u16-strcat-tests:
6195 # Code from module unistr/u16-strchr:
6196 # Code from module unistr/u16-strcmp:
6197 # Code from module unistr/u16-strcmp-tests:
6198 # Code from module unistr/u16-strcoll:
6199 # Code from module unistr/u16-strcoll-tests:
6200 # Code from module unistr/u16-strcpy:
6201 # Code from module unistr/u16-strcpy-tests:
6202 # Code from module unistr/u16-strcspn:
6203 # Code from module unistr/u16-strdup:
6204 # Code from module unistr/u16-strdup-tests:
6205 # Code from module unistr/u16-strlen:
6206 # Code from module unistr/u16-strlen-tests:
6207 # Code from module unistr/u16-strmblen:
6208 # Code from module unistr/u16-strmblen-tests:
6209 # Code from module unistr/u16-strmbtouc:
6210 # Code from module unistr/u16-strmbtouc-tests:
6211 # Code from module unistr/u16-strncat:
6212 # Code from module unistr/u16-strncat-tests:
6213 # Code from module unistr/u16-strncmp:
6214 # Code from module unistr/u16-strncmp-tests:
6215 # Code from module unistr/u16-strncpy:
6216 # Code from module unistr/u16-strncpy-tests:
6217 # Code from module unistr/u16-strnlen:
6218 # Code from module unistr/u16-strnlen-tests:
6219 # Code from module unistr/u16-strpbrk:
6220 # Code from module unistr/u16-strrchr:
6221 # Code from module unistr/u16-strspn:
6222 # Code from module unistr/u16-strstr:
6223 # Code from module unistr/u16-strtok:
6224 # Code from module unistr/u16-to-u32:
6225 # Code from module unistr/u16-to-u32-tests:
6226 # Code from module unistr/u16-to-u8:
6227 # Code from module unistr/u16-to-u8-tests:
6228 # Code from module unistr/u16-uctomb:
6229 # Code from module unistr/u16-uctomb-tests:
6230 # Code from module unistr/u32-check:
6231 # Code from module unistr/u32-check-tests:
6232 # Code from module unistr/u32-chr:
6233 # Code from module unistr/u32-chr-tests:
6234 # Code from module unistr/u32-cmp:
6235 # Code from module unistr/u32-cmp-tests:
6236 # Code from module unistr/u32-cmp2:
6237 # Code from module unistr/u32-cmp2-tests:
6238 # Code from module unistr/u32-cpy:
6239 # Code from module unistr/u32-cpy-alloc:
6240 # Code from module unistr/u32-cpy-alloc-tests:
6241 # Code from module unistr/u32-cpy-tests:
6242 # Code from module unistr/u32-endswith:
6243 # Code from module unistr/u32-mblen:
6244 # Code from module unistr/u32-mblen-tests:
6245 # Code from module unistr/u32-mbsnlen:
6246 # Code from module unistr/u32-mbsnlen-tests:
6247 # Code from module unistr/u32-mbtouc:
6248 # Code from module unistr/u32-mbtouc-tests:
6249 # Code from module unistr/u32-mbtouc-unsafe:
6250 # Code from module unistr/u32-mbtouc-unsafe-tests:
6251 # Code from module unistr/u32-mbtoucr:
6252 # Code from module unistr/u32-mbtoucr-tests:
6253 # Code from module unistr/u32-move:
6254 # Code from module unistr/u32-move-tests:
6255 # Code from module unistr/u32-next:
6256 # Code from module unistr/u32-next-tests:
6257 # Code from module unistr/u32-prev:
6258 # Code from module unistr/u32-prev-tests:
6259 # Code from module unistr/u32-set:
6260 # Code from module unistr/u32-set-tests:
6261 # Code from module unistr/u32-startswith:
6262 # Code from module unistr/u32-stpcpy:
6263 # Code from module unistr/u32-stpcpy-tests:
6264 # Code from module unistr/u32-stpncpy:
6265 # Code from module unistr/u32-stpncpy-tests:
6266 # Code from module unistr/u32-strcat:
6267 # Code from module unistr/u32-strcat-tests:
6268 # Code from module unistr/u32-strchr:
6269 # Code from module unistr/u32-strcmp:
6270 # Code from module unistr/u32-strcmp-tests:
6271 # Code from module unistr/u32-strcoll:
6272 # Code from module unistr/u32-strcoll-tests:
6273 # Code from module unistr/u32-strcpy:
6274 # Code from module unistr/u32-strcpy-tests:
6275 # Code from module unistr/u32-strcspn:
6276 # Code from module unistr/u32-strdup:
6277 # Code from module unistr/u32-strdup-tests:
6278 # Code from module unistr/u32-strlen:
6279 # Code from module unistr/u32-strlen-tests:
6280 # Code from module unistr/u32-strmblen:
6281 # Code from module unistr/u32-strmblen-tests:
6282 # Code from module unistr/u32-strmbtouc:
6283 # Code from module unistr/u32-strmbtouc-tests:
6284 # Code from module unistr/u32-strncat:
6285 # Code from module unistr/u32-strncat-tests:
6286 # Code from module unistr/u32-strncmp:
6287 # Code from module unistr/u32-strncmp-tests:
6288 # Code from module unistr/u32-strncpy:
6289 # Code from module unistr/u32-strncpy-tests:
6290 # Code from module unistr/u32-strnlen:
6291 # Code from module unistr/u32-strnlen-tests:
6292 # Code from module unistr/u32-strpbrk:
6293 # Code from module unistr/u32-strrchr:
6294 # Code from module unistr/u32-strspn:
6295 # Code from module unistr/u32-strstr:
6296 # Code from module unistr/u32-strtok:
6297 # Code from module unistr/u32-to-u16:
6298 # Code from module unistr/u32-to-u16-tests:
6299 # Code from module unistr/u32-to-u8:
6300 # Code from module unistr/u32-to-u8-tests:
6301 # Code from module unistr/u32-uctomb:
6302 # Code from module unistr/u32-uctomb-tests:
6303 # Code from module unistr/u8-check:
6304 # Code from module unistr/u8-check-tests:
6305 # Code from module unistr/u8-chr:
6306 # Code from module unistr/u8-chr-tests:
6307 # Code from module unistr/u8-cmp:
6308 # Code from module unistr/u8-cmp-tests:
6309 # Code from module unistr/u8-cmp2:
6310 # Code from module unistr/u8-cmp2-tests:
6311 # Code from module unistr/u8-cpy:
6312 # Code from module unistr/u8-cpy-alloc:
6313 # Code from module unistr/u8-cpy-alloc-tests:
6314 # Code from module unistr/u8-cpy-tests:
6315 # Code from module unistr/u8-endswith:
6316 # Code from module unistr/u8-mblen:
6317 # Code from module unistr/u8-mblen-tests:
6318 # Code from module unistr/u8-mbsnlen:
6319 # Code from module unistr/u8-mbsnlen-tests:
6320 # Code from module unistr/u8-mbtouc:
6321 # Code from module unistr/u8-mbtouc-tests:
6322 # Code from module unistr/u8-mbtouc-unsafe:
6323 # Code from module unistr/u8-mbtouc-unsafe-tests:
6324 # Code from module unistr/u8-mbtoucr:
6325 # Code from module unistr/u8-mbtoucr-tests:
6326 # Code from module unistr/u8-move:
6327 # Code from module unistr/u8-move-tests:
6328 # Code from module unistr/u8-next:
6329 # Code from module unistr/u8-next-tests:
6330 # Code from module unistr/u8-prev:
6331 # Code from module unistr/u8-prev-tests:
6332 # Code from module unistr/u8-set:
6333 # Code from module unistr/u8-set-tests:
6334 # Code from module unistr/u8-startswith:
6335 # Code from module unistr/u8-stpcpy:
6336 # Code from module unistr/u8-stpcpy-tests:
6337 # Code from module unistr/u8-stpncpy:
6338 # Code from module unistr/u8-stpncpy-tests:
6339 # Code from module unistr/u8-strcat:
6340 # Code from module unistr/u8-strcat-tests:
6341 # Code from module unistr/u8-strchr:
6342 # Code from module unistr/u8-strcmp:
6343 # Code from module unistr/u8-strcmp-tests:
6344 # Code from module unistr/u8-strcoll:
6345 # Code from module unistr/u8-strcoll-tests:
6346 # Code from module unistr/u8-strcpy:
6347 # Code from module unistr/u8-strcpy-tests:
6348 # Code from module unistr/u8-strcspn:
6349 # Code from module unistr/u8-strdup:
6350 # Code from module unistr/u8-strdup-tests:
6351 # Code from module unistr/u8-strlen:
6352 # Code from module unistr/u8-strlen-tests:
6353 # Code from module unistr/u8-strmblen:
6354 # Code from module unistr/u8-strmblen-tests:
6355 # Code from module unistr/u8-strmbtouc:
6356 # Code from module unistr/u8-strmbtouc-tests:
6357 # Code from module unistr/u8-strncat:
6358 # Code from module unistr/u8-strncat-tests:
6359 # Code from module unistr/u8-strncmp:
6360 # Code from module unistr/u8-strncmp-tests:
6361 # Code from module unistr/u8-strncpy:
6362 # Code from module unistr/u8-strncpy-tests:
6363 # Code from module unistr/u8-strnlen:
6364 # Code from module unistr/u8-strnlen-tests:
6365 # Code from module unistr/u8-strpbrk:
6366 # Code from module unistr/u8-strrchr:
6367 # Code from module unistr/u8-strspn:
6368 # Code from module unistr/u8-strstr:
6369 # Code from module unistr/u8-strtok:
6370 # Code from module unistr/u8-to-u16:
6371 # Code from module unistr/u8-to-u16-tests:
6372 # Code from module unistr/u8-to-u32:
6373 # Code from module unistr/u8-to-u32-tests:
6374 # Code from module unistr/u8-uctomb:
6375 # Code from module unistr/u8-uctomb-tests:
6376 # Code from module unitypes:
6377 # Code from module uniwbrk/base:
6378 # Code from module uniwbrk/table:
6379 # Code from module uniwbrk/u16-wordbreaks:
6380 # Code from module uniwbrk/u16-wordbreaks-tests:
6381 # Code from module uniwbrk/u32-wordbreaks:
6382 # Code from module uniwbrk/u32-wordbreaks-tests:
6383 # Code from module uniwbrk/u8-wordbreaks:
6384 # Code from module uniwbrk/u8-wordbreaks-tests:
6385 # Code from module uniwbrk/ulc-wordbreaks:
6386 # Code from module uniwbrk/ulc-wordbreaks-tests:
6387 # Code from module uniwbrk/wordbreak-property:
6388 # Code from module uniwidth/base:
6389 # Code from module uniwidth/u16-strwidth:
6390 # Code from module uniwidth/u16-strwidth-tests:
6391 # Code from module uniwidth/u16-width:
6392 # Code from module uniwidth/u16-width-tests:
6393 # Code from module uniwidth/u32-strwidth:
6394 # Code from module uniwidth/u32-strwidth-tests:
6395 # Code from module uniwidth/u32-width:
6396 # Code from module uniwidth/u32-width-tests:
6397 # Code from module uniwidth/u8-strwidth:
6398 # Code from module uniwidth/u8-strwidth-tests:
6399 # Code from module uniwidth/u8-width:
6400 # Code from module uniwidth/u8-width-tests:
6401 # Code from module uniwidth/width:
6402 # Code from module uniwidth/width-tests:
6403 # Code from module unsetenv:
6404 # Code from module unsetenv-tests:
6405 # Code from module unused-parameter:
6406 # Code from module verify:
6407 # Code from module warn-on-use:
6408 # Code from module wchar:
6409 # Code from module wchar-tests:
6410 # Code from module wctob:
6411 # Code from module wctype:
6412 # Code from module wctype-tests:
6413 # Code from module wcwidth:
6414 # Code from module wcwidth-tests:
6415 # Code from module xalloc:
6416 # Code from module xalloc-die:
6417 # Code from module xalloc-die-tests:
6418 # Code from module xsize:
6419 # Code from module yield:
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
6432 $as_echo_n "checking for auto-import of symbols... " >&6; }
6433 if test "${gl_cv_ld_autoimport+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6437 gl_save_LDFLAGS="$LDFLAGS"
6438 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6450 if ac_fn_c_try_link "$LINENO"; then :
6451 gl_cv_ld_autoimport=yes
6453 gl_cv_ld_autoimport=no
6455 rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457 LDFLAGS="$gl_save_LDFLAGS"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
6461 $as_echo "$gl_cv_ld_autoimport" >&6; }
6462 if test $gl_cv_ld_autoimport = yes; then
6463 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6472 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6477 macro_version='2.2.6'
6478 macro_revision='1.3012'
6492 ltmain="$ac_aux_dir/ltmain.sh"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6495 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6496 if test "${ac_cv_path_SED+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6499 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6500 for ac_i in 1 2 3 4 5 6 7; do
6501 ac_script="$ac_script$as_nl$ac_script"
6503 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6504 { ac_script=; unset ac_script;}
6505 if test -z "$SED"; then
6506 ac_path_SED_found=false
6507 # Loop through the user's path and test for each of PROGNAME-LIST
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_prog in sed gsed; do
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6516 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6517 # Check for GNU ac_path_SED and select it if it is found.
6518 # Check for GNU $ac_path_SED
6519 case `"$ac_path_SED" --version 2>&1` in
6521 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6524 $as_echo_n 0123456789 >"conftest.in"
6527 cat "conftest.in" "conftest.in" >"conftest.tmp"
6528 mv "conftest.tmp" "conftest.in"
6529 cp "conftest.in" "conftest.nl"
6530 $as_echo '' >> "conftest.nl"
6531 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6533 as_fn_arith $ac_count + 1 && ac_count=$as_val
6534 if test $ac_count -gt ${ac_path_SED_max-0}; then
6535 # Best one so far, save it but keep looking for a better one
6536 ac_cv_path_SED="$ac_path_SED"
6537 ac_path_SED_max=$ac_count
6539 # 10*(2^10) chars as input seems more than enough
6540 test $ac_count -gt 10 && break
6542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6545 $ac_path_SED_found && break 3
6550 if test -z "$ac_cv_path_SED"; then
6551 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6559 $as_echo "$ac_cv_path_SED" >&6; }
6560 SED="$ac_cv_path_SED"
6563 test -z "$SED" && SED=sed
6564 Xsed="$SED -e 1s/^X//"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6577 $as_echo_n "checking for fgrep... " >&6; }
6578 if test "${ac_cv_path_FGREP+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6581 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6582 then ac_cv_path_FGREP="$GREP -F"
6584 if test -z "$FGREP"; then
6585 ac_path_FGREP_found=false
6586 # Loop through the user's path and test for each of PROGNAME-LIST
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6591 test -z "$as_dir" && as_dir=.
6592 for ac_prog in fgrep; do
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6595 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6596 # Check for GNU ac_path_FGREP and select it if it is found.
6597 # Check for GNU $ac_path_FGREP
6598 case `"$ac_path_FGREP" --version 2>&1` in
6600 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6603 $as_echo_n 0123456789 >"conftest.in"
6606 cat "conftest.in" "conftest.in" >"conftest.tmp"
6607 mv "conftest.tmp" "conftest.in"
6608 cp "conftest.in" "conftest.nl"
6609 $as_echo 'FGREP' >> "conftest.nl"
6610 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6612 as_fn_arith $ac_count + 1 && ac_count=$as_val
6613 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6614 # Best one so far, save it but keep looking for a better one
6615 ac_cv_path_FGREP="$ac_path_FGREP"
6616 ac_path_FGREP_max=$ac_count
6618 # 10*(2^10) chars as input seems more than enough
6619 test $ac_count -gt 10 && break
6621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6624 $ac_path_FGREP_found && break 3
6629 if test -z "$ac_cv_path_FGREP"; then
6630 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6633 ac_cv_path_FGREP=$FGREP
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6639 $as_echo "$ac_cv_path_FGREP" >&6; }
6640 FGREP="$ac_cv_path_FGREP"
6643 test -z "$GREP" && GREP=grep
6663 # Check whether --with-gnu-ld was given.
6664 if test "${with_gnu_ld+set}" = set; then :
6665 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6671 if test "$GCC" = yes; then
6672 # Check if gcc -print-prog-name=ld gives a path.
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6674 $as_echo_n "checking for ld used by $CC... " >&6; }
6677 # gcc leaves a trailing carriage return which upsets mingw
6678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6683 # Accept absolute paths.
6685 re_direlt='/[^/][^/]*/\.\./'
6686 # Canonicalize the pathname of ld
6687 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6688 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6689 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6691 test -z "$LD" && LD="$ac_prog"
6694 # If it fails, then pretend we aren't using GCC.
6698 # If it is relative, then search for the first ld in PATH.
6702 elif test "$with_gnu_ld" = yes; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6704 $as_echo_n "checking for GNU ld... " >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6707 $as_echo_n "checking for non-GNU ld... " >&6; }
6709 if test "${lt_cv_path_LD+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -z "$LD"; then
6713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6714 for ac_dir in $PATH; do
6716 test -z "$ac_dir" && ac_dir=.
6717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6718 lt_cv_path_LD="$ac_dir/$ac_prog"
6719 # Check to see if the program is GNU ld. I'd rather use --version,
6720 # but apparently some variants of GNU ld only accept -v.
6721 # Break only if it was the GNU/non-GNU ld that we prefer.
6722 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6723 *GNU* | *'with BFD'*)
6724 test "$with_gnu_ld" != no && break
6727 test "$with_gnu_ld" != yes && break
6734 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6739 if test -n "$LD"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6741 $as_echo "$LD" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6746 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6748 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6749 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6753 case `$LD -v 2>&1 </dev/null` in
6754 *GNU* | *'with BFD'*)
6755 lt_cv_prog_gnu_ld=yes
6758 lt_cv_prog_gnu_ld=no
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6763 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6764 with_gnu_ld=$lt_cv_prog_gnu_ld
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6775 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6776 if test "${lt_cv_path_NM+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6779 if test -n "$NM"; then
6780 # Let the user override the test.
6783 lt_nm_to_check="${ac_tool_prefix}nm"
6784 if test -n "$ac_tool_prefix" \
6785 && { test "$build" = "$host" \
6786 || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
6788 lt_nm_to_check="$lt_nm_to_check nm"
6790 for lt_tmp_nm in $lt_nm_to_check; do
6791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6792 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6794 test -z "$ac_dir" && ac_dir=.
6795 tmp_nm="$ac_dir/$lt_tmp_nm"
6796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6797 # Check to see if the nm accepts a BSD-compat flag.
6798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6799 # nm: unknown option "B" ignored
6800 # Tru64's nm complains that /dev/null is an invalid object file
6801 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6802 */dev/null* | *'Invalid file or object type'*)
6803 lt_cv_path_NM="$tmp_nm -B"
6807 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6809 lt_cv_path_NM="$tmp_nm -p"
6813 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6814 continue # so that we can try to find one that supports BSD flags
6823 : ${lt_cv_path_NM=no}
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6827 $as_echo "$lt_cv_path_NM" >&6; }
6828 if test "$lt_cv_path_NM" != "no"; then
6831 # Didn't find any BSD compatible name lister, look for dumpbin.
6832 if test -n "$DUMPBIN"; then :
6833 # Let the user override the test.
6835 if test -n "$ac_tool_prefix"; then
6836 for ac_prog in dumpbin "link -dump"
6838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6845 if test -n "$DUMPBIN"; then
6846 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 DUMPBIN=$ac_cv_prog_DUMPBIN
6866 if test -n "$DUMPBIN"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6868 $as_echo "$DUMPBIN" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6875 test -n "$DUMPBIN" && break
6878 if test -z "$DUMPBIN"; then
6879 ac_ct_DUMPBIN=$DUMPBIN
6880 for ac_prog in dumpbin "link -dump"
6882 # Extract the first word of "$ac_prog", so it can be a program name with args.
6883 set dummy $ac_prog; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6889 if test -n "$ac_ct_DUMPBIN"; then
6890 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6910 if test -n "$ac_ct_DUMPBIN"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6912 $as_echo "$ac_ct_DUMPBIN" >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6919 test -n "$ac_ct_DUMPBIN" && break
6922 if test "x$ac_ct_DUMPBIN" = x; then
6925 case $cross_compiling:$ac_tool_warned in
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6931 DUMPBIN=$ac_ct_DUMPBIN
6935 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6937 DUMPBIN="$DUMPBIN -symbols"
6945 if test "$DUMPBIN" != ":"; then
6949 test -z "$NM" && NM=nm
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6957 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6958 if test "${lt_cv_nm_interface+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6961 lt_cv_nm_interface="BSD nm"
6962 echo "int some_variable = 0;" > conftest.$ac_ext
6963 (eval echo "\"\$as_me:6963: $ac_compile\"" >&5)
6964 (eval "$ac_compile" 2>conftest.err)
6965 cat conftest.err >&5
6966 (eval echo "\"\$as_me:6966: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6967 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6968 cat conftest.err >&5
6969 (eval echo "\"\$as_me:6969: output\"" >&5)
6970 cat conftest.out >&5
6971 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6972 lt_cv_nm_interface="MS dumpbin"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6977 $as_echo "$lt_cv_nm_interface" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6980 $as_echo_n "checking whether ln -s works... " >&6; }
6982 if test "$LN_S" = "ln -s"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984 $as_echo "yes" >&6; }
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6987 $as_echo "no, using $LN_S" >&6; }
6990 # find the maximum length of command line arguments
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6992 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6993 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
7001 # On DJGPP, this test can blow up pretty badly due to problems in libc
7002 # (any single argument exceeding 2000 bytes causes a buffer overrun
7003 # during glob expansion). Even if it were fixed, the result of this
7004 # check would be larger than it should be.
7005 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7009 # Under GNU Hurd, this test is not required because there is
7010 # no limit to the length of command line arguments.
7011 # Libtool will interpret -1 as no limit whatsoever
7012 lt_cv_sys_max_cmd_len=-1;
7015 cygwin* | mingw* | cegcc*)
7016 # On Win9x/ME, this test blows up -- it succeeds, but takes
7017 # about 5 minutes as the teststring grows exponentially.
7018 # Worse, since 9x/ME are not pre-emptively multitasking,
7019 # you end up with a "frozen" computer, even though with patience
7020 # the test eventually succeeds (with a max line length of 256k).
7021 # Instead, let's just punt: use the minimum linelength reported by
7022 # all of the supported platforms: 8192 (on NT/2K/XP).
7023 lt_cv_sys_max_cmd_len=8192;
7027 # On AmigaOS with pdksh, this test takes hours, literally.
7028 # So we just punt and use a minimum line length of 8192.
7029 lt_cv_sys_max_cmd_len=8192;
7032 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7033 # This has been around since 386BSD, at least. Likely further.
7034 if test -x /sbin/sysctl; then
7035 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7036 elif test -x /usr/sbin/sysctl; then
7037 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7039 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7041 # And add a safety zone
7042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7047 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7048 lt_cv_sys_max_cmd_len=196608
7052 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7053 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7054 # nice to cause kernel panics so lets avoid the loop below.
7055 # First set a reasonable default.
7056 lt_cv_sys_max_cmd_len=16384
7058 if test -x /sbin/sysconfig; then
7059 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7060 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7065 lt_cv_sys_max_cmd_len=102400
7067 sysv5* | sco5v6* | sysv4.2uw2*)
7068 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7069 if test -n "$kargmax"; then
7070 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7072 lt_cv_sys_max_cmd_len=32768
7076 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7077 if test -n "$lt_cv_sys_max_cmd_len"; then
7078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7081 # Make teststring a little bigger before we do anything with it.
7082 # a 1K string should be a reasonable start.
7083 for i in 1 2 3 4 5 6 7 8 ; do
7084 teststring=$teststring$teststring
7086 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7087 # If test is not a shell built-in, we'll probably end up computing a
7088 # maximum length that is only half of the actual maximum length, but
7090 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7091 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7092 test $i != 17 # 1/2 MB should be enough
7095 teststring=$teststring$teststring
7097 # Only check the string length outside the loop.
7098 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7100 # Add a significant safety factor because C++ compilers can tack on
7101 # massive amounts of additional arguments before passing them to the
7102 # linker. It appears as though 1/2 is a usable value.
7103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7110 if test -n $lt_cv_sys_max_cmd_len ; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7112 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7115 $as_echo "none" >&6; }
7117 max_cmd_len=$lt_cv_sys_max_cmd_len
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7129 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7130 # Try some XSI features
7133 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7135 && eval 'test $(( 1 + 1 )) -eq 2 \
7136 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7139 $as_echo "$xsi_shell" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7143 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7145 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7147 && lt_shell_append=yes
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7149 $as_echo "$lt_shell_append" >&6; }
7152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7162 # test EBCDIC or ASCII
7163 case `echo X|tr X '\101'` in
7164 A) # ASCII based system
7165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7166 lt_SP2NL='tr \040 \012'
7167 lt_NL2SP='tr \015\012 \040\040'
7169 *) # EBCDIC based system
7170 lt_SP2NL='tr \100 \n'
7171 lt_NL2SP='tr \r\n \100\100'
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7184 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7185 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7186 $as_echo_n "(cached) " >&6
7188 lt_cv_ld_reload_flag='-r'
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7192 reload_flag=$lt_cv_ld_reload_flag
7193 case $reload_flag in
7195 *) reload_flag=" $reload_flag" ;;
7197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7200 if test "$GCC" = yes; then
7201 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
7224 if test -n "$OBJDUMP"; then
7225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 OBJDUMP=$ac_cv_prog_OBJDUMP
7245 if test -n "$OBJDUMP"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7247 $as_echo "$OBJDUMP" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7255 if test -z "$ac_cv_prog_OBJDUMP"; then
7256 ac_ct_OBJDUMP=$OBJDUMP
7257 # Extract the first word of "objdump", so it can be a program name with args.
7258 set dummy objdump; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$ac_ct_OBJDUMP"; then
7265 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7285 if test -n "$ac_ct_OBJDUMP"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7287 $as_echo "$ac_ct_OBJDUMP" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7293 if test "x$ac_ct_OBJDUMP" = x; then
7296 case $cross_compiling:$ac_tool_warned in
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7302 OBJDUMP=$ac_ct_OBJDUMP
7305 OBJDUMP="$ac_cv_prog_OBJDUMP"
7308 test -z "$OBJDUMP" && OBJDUMP=objdump
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7316 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7317 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7320 lt_cv_file_magic_cmd='$MAGIC_CMD'
7321 lt_cv_file_magic_test_file=
7322 lt_cv_deplibs_check_method='unknown'
7323 # Need to set the preceding variable on all platforms that support
7324 # interlibrary dependencies.
7325 # 'none' -- dependencies not supported.
7326 # `unknown' -- same as none, but documents that we really don't know.
7327 # 'pass_all' -- all dependencies passed with no checks.
7328 # 'test_compile' -- check by making test program.
7329 # 'file_magic [[regex]]' -- check by looking for files in library path
7330 # which responds to the $file_magic_cmd with a given extended regex.
7331 # If you have `file' or equivalent on your system and you're not sure
7332 # whether `pass_all' will *always* work, you probably want this one.
7336 lt_cv_deplibs_check_method=pass_all
7340 lt_cv_deplibs_check_method=pass_all
7344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7345 lt_cv_file_magic_cmd='/usr/bin/file -L'
7346 lt_cv_file_magic_test_file=/shlib/libc.so
7350 # func_win32_libid is a shell function defined in ltmain.sh
7351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7352 lt_cv_file_magic_cmd='func_win32_libid'
7356 # Base MSYS/MinGW do not provide the 'file' command needed by
7357 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7358 # unless we find 'file', for example because we are cross-compiling.
7359 if ( file / ) >/dev/null 2>&1; then
7360 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7361 lt_cv_file_magic_cmd='func_win32_libid'
7363 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7364 lt_cv_file_magic_cmd='$OBJDUMP -f'
7369 # use the weaker test based on 'objdump'. See mingw*.
7370 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7371 lt_cv_file_magic_cmd='$OBJDUMP -f'
7374 darwin* | rhapsody*)
7375 lt_cv_deplibs_check_method=pass_all
7378 freebsd* | dragonfly*)
7379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7382 # Not sure whether the presence of OpenBSD here was a mistake.
7383 # Let's accept both of them until this is cleared up.
7384 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7385 lt_cv_file_magic_cmd=/usr/bin/file
7386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7390 lt_cv_deplibs_check_method=pass_all
7395 lt_cv_deplibs_check_method=pass_all
7398 hpux10.20* | hpux11*)
7399 lt_cv_file_magic_cmd=/usr/bin/file
7402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7406 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7421 irix5* | irix6* | nonstopux*)
7423 *-32|*"-32 ") libmagic=32-bit;;
7424 *-n32|*"-n32 ") libmagic=N32;;
7425 *-64|*"-64 ") libmagic=64-bit;;
7426 *) libmagic=never-match;;
7428 lt_cv_deplibs_check_method=pass_all
7431 # This must be Linux ELF.
7432 linux* | k*bsd*-gnu)
7433 lt_cv_deplibs_check_method=pass_all
7437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7446 lt_cv_file_magic_cmd=/usr/bin/file
7447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7451 lt_cv_deplibs_check_method=pass_all
7455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7462 osf3* | osf4* | osf5*)
7463 lt_cv_deplibs_check_method=pass_all
7467 lt_cv_deplibs_check_method=pass_all
7471 lt_cv_deplibs_check_method=pass_all
7474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7475 lt_cv_deplibs_check_method=pass_all
7479 case $host_vendor in
7481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7485 lt_cv_deplibs_check_method=pass_all
7488 lt_cv_file_magic_cmd='/bin/file'
7489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7492 lt_cv_file_magic_cmd='/bin/file'
7493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7494 lt_cv_file_magic_test_file=/lib/libc.so
7497 lt_cv_deplibs_check_method=pass_all
7500 lt_cv_deplibs_check_method=pass_all
7506 lt_cv_deplibs_check_method=pass_all
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7513 file_magic_cmd=$lt_cv_file_magic_cmd
7514 deplibs_check_method=$lt_cv_deplibs_check_method
7515 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7528 if test -n "$ac_tool_prefix"; then
7529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}ar; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if test "${ac_cv_prog_AR+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7536 if test -n "$AR"; then
7537 ac_cv_prog_AR="$AR" # Let the user override the test.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_prog_AR="${ac_tool_prefix}ar"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 if test -n "$AR"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7559 $as_echo "$AR" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7567 if test -z "$ac_cv_prog_AR"; then
7569 # Extract the first word of "ar", so it can be a program name with args.
7570 set dummy ar; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7576 if test -n "$ac_ct_AR"; then
7577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_prog_ac_ct_AR="ar"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7597 if test -n "$ac_ct_AR"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7599 $as_echo "$ac_ct_AR" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7605 if test "x$ac_ct_AR" = x; then
7608 case $cross_compiling:$ac_tool_warned in
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612 ac_tool_warned=yes ;;
7620 test -z "$AR" && AR=ar
7621 test -z "$AR_FLAGS" && AR_FLAGS=cru
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}strip; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if test "${ac_cv_prog_STRIP+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$STRIP"; then
7642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 STRIP=$ac_cv_prog_STRIP
7662 if test -n "$STRIP"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7664 $as_echo "$STRIP" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7672 if test -z "$ac_cv_prog_STRIP"; then
7674 # Extract the first word of "strip", so it can be a program name with args.
7675 set dummy strip; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$ac_ct_STRIP"; then
7682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_ac_ct_STRIP="strip"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7702 if test -n "$ac_ct_STRIP"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7704 $as_echo "$ac_ct_STRIP" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7710 if test "x$ac_ct_STRIP" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7722 STRIP="$ac_cv_prog_STRIP"
7725 test -z "$STRIP" && STRIP=:
7732 if test -n "$ac_tool_prefix"; then
7733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7740 if test -n "$RANLIB"; then
7741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 RANLIB=$ac_cv_prog_RANLIB
7761 if test -n "$RANLIB"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7763 $as_echo "$RANLIB" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7771 if test -z "$ac_cv_prog_RANLIB"; then
7772 ac_ct_RANLIB=$RANLIB
7773 # Extract the first word of "ranlib", so it can be a program name with args.
7774 set dummy ranlib; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7780 if test -n "$ac_ct_RANLIB"; then
7781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790 ac_cv_prog_ac_ct_RANLIB="ranlib"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7801 if test -n "$ac_ct_RANLIB"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7803 $as_echo "$ac_ct_RANLIB" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7809 if test "x$ac_ct_RANLIB" = x; then
7812 case $cross_compiling:$ac_tool_warned in
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816 ac_tool_warned=yes ;;
7818 RANLIB=$ac_ct_RANLIB
7821 RANLIB="$ac_cv_prog_RANLIB"
7824 test -z "$RANLIB" && RANLIB=:
7831 # Determine commands to create old-style static archives.
7832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7833 old_postinstall_cmds='chmod 644 $oldlib'
7834 old_postuninstall_cmds=
7836 if test -n "$RANLIB"; then
7839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7881 # If no C compiler was specified, use CC.
7884 # If no C compiler flags were specified, use CFLAGS.
7885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7887 # Allow CC to be a program name with arguments.
7891 # Check for command to grab the raw symbol name followed by C symbol from nm.
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7893 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7894 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7898 # These are sane defaults that work on at least a few old systems.
7899 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7901 # Character class describing NM global symbol codes.
7902 symcode='[BCDEGRST]'
7904 # Regexp to match symbols that can be accessed directly from C.
7905 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7907 # Define system-specific variables.
7912 cygwin* | mingw* | pw32* | cegcc*)
7913 symcode='[ABCDGISTW]'
7916 if test "$host_cpu" = ia64; then
7917 symcode='[ABCDEGRST]'
7921 symcode='[BCDEGRST]'
7924 symcode='[BCDEGQRST]'
7935 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7943 # If we're using GNU nm, then use its standard symbol codes.
7944 case `$NM -V 2>&1` in
7945 *GNU* | *'with BFD'*)
7946 symcode='[ABCDGIRSTW]' ;;
7949 # Transform an extracted symbol line into a proper C declaration.
7950 # Some systems (esp. on ia64) link data and code symbols differently,
7951 # so use this general approach.
7952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7954 # Transform an extracted symbol line into symbol name and symbol address
7955 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7956 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7958 # Handle CRLF in mingw tool chain
7962 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7966 # Try without a prefix underscore, then with it.
7967 for ac_symprfx in "" "_"; do
7969 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7970 symxfrm="\\1 $ac_symprfx\\2 \\2"
7972 # Write the raw and C identifiers.
7973 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7974 # Fake it for dumpbin and say T for any non-static function
7975 # and D for any global variable.
7976 # Also find C++ and __fastcall symbols from MSVC++,
7977 # which start with @ or ?.
7978 lt_cv_sys_global_symbol_pipe="$AWK '"\
7979 " {last_section=section; section=\$ 3};"\
7980 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7981 " \$ 0!~/External *\|/{next};"\
7982 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7983 " {if(hide[section]) next};"\
7984 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7985 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7986 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7987 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7988 " ' prfx=^$ac_symprfx"
7990 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7993 # Check to see that the pipe works correctly.
7997 cat > conftest.$ac_ext <<_LT_EOF
8002 void nm_test_func(void);
8003 void nm_test_func(void){}
8007 int main(){nm_test_var='a';nm_test_func();return(0);}
8010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8011 (eval $ac_compile) 2>&5
8013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8014 test $ac_status = 0; }; then
8015 # Now try to grab the symbols.
8017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8018 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021 test $ac_status = 0; } && test -s "$nlist"; then
8022 # Try sorting and uniquifying the output.
8023 if sort "$nlist" | uniq > "$nlist"T; then
8024 mv -f "$nlist"T "$nlist"
8029 # Make sure that we snagged all the symbols we need.
8030 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8031 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8032 cat <<_LT_EOF > conftest.$ac_ext
8038 # Now generate the symbol file.
8039 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8041 cat <<_LT_EOF >> conftest.$ac_ext
8043 /* The mapping between symbol names and symbols. */
8048 lt__PROGRAM__LTX_preloaded_symbols[] =
8050 { "@PROGRAM@", (void *) 0 },
8052 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8053 cat <<\_LT_EOF >> conftest.$ac_ext
8057 /* This works around a problem in FreeBSD linker */
8058 #ifdef FREEBSD_WORKAROUND
8059 static const void *lt_preloaded_setup() {
8060 return lt__PROGRAM__LTX_preloaded_symbols;
8068 # Now try linking the two files.
8069 mv conftest.$ac_objext conftstm.$ac_objext
8070 lt_save_LIBS="$LIBS"
8071 lt_save_CFLAGS="$CFLAGS"
8072 LIBS="conftstm.$ac_objext"
8073 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8075 (eval $ac_link) 2>&5
8077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8081 LIBS="$lt_save_LIBS"
8082 CFLAGS="$lt_save_CFLAGS"
8084 echo "cannot find nm_test_func in $nlist" >&5
8087 echo "cannot find nm_test_var in $nlist" >&5
8090 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8093 echo "$progname: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 rm -rf conftest* conftst*
8098 # Do not use the global_symbol_pipe unless it works.
8099 if test "$pipe_works" = yes; then
8102 lt_cv_sys_global_symbol_pipe=
8108 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8109 lt_cv_sys_global_symbol_to_cdecl=
8111 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8113 $as_echo "failed" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8116 $as_echo "ok" >&6; }
8140 # Check whether --enable-libtool-lock was given.
8141 if test "${enable_libtool_lock+set}" = set; then :
8142 enableval=$enable_libtool_lock;
8145 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8147 # Some flags need to be propagated to the compiler or linker for good
8151 # Find out which ABI we are using.
8152 echo 'int i;' > conftest.$ac_ext
8153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154 (eval $ac_compile) 2>&5
8156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157 test $ac_status = 0; }; then
8158 case `/usr/bin/file conftest.$ac_objext` in
8170 # Find out which ABI we are using.
8171 echo '#line 8171 "configure"' > conftest.$ac_ext
8172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8173 (eval $ac_compile) 2>&5
8175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176 test $ac_status = 0; }; then
8177 if test "$lt_cv_prog_gnu_ld" = yes; then
8178 case `/usr/bin/file conftest.$ac_objext` in
8180 LD="${LD-ld} -melf32bsmip"
8183 LD="${LD-ld} -melf32bmipn32"
8186 LD="${LD-ld} -melf64bmip"
8190 case `/usr/bin/file conftest.$ac_objext` in
8206 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8207 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8208 # Find out which ABI we are using.
8209 echo 'int i;' > conftest.$ac_ext
8210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8211 (eval $ac_compile) 2>&5
8213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8214 test $ac_status = 0; }; then
8215 case `/usr/bin/file conftest.o` in
8218 x86_64-*kfreebsd*-gnu)
8219 LD="${LD-ld} -m elf_i386_fbsd"
8222 LD="${LD-ld} -m elf_i386"
8224 ppc64-*linux*|powerpc64-*linux*)
8225 LD="${LD-ld} -m elf32ppclinux"
8228 LD="${LD-ld} -m elf_s390"
8231 LD="${LD-ld} -m elf32_sparc"
8237 x86_64-*kfreebsd*-gnu)
8238 LD="${LD-ld} -m elf_x86_64_fbsd"
8241 LD="${LD-ld} -m elf_x86_64"
8243 ppc*-*linux*|powerpc*-*linux*)
8244 LD="${LD-ld} -m elf64ppc"
8246 s390*-*linux*|s390*-*tpf*)
8247 LD="${LD-ld} -m elf64_s390"
8250 LD="${LD-ld} -m elf64_sparc"
8260 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8261 SAVE_CFLAGS="$CFLAGS"
8262 CFLAGS="$CFLAGS -belf"
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8264 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8265 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8285 if ac_fn_c_try_link "$LINENO"; then :
8286 lt_cv_cc_needs_belf=yes
8288 lt_cv_cc_needs_belf=no
8290 rm -f core conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8293 ac_cpp='$CPP $CPPFLAGS'
8294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8300 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8301 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8302 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8303 CFLAGS="$SAVE_CFLAGS"
8307 # Find out which ABI we are using.
8308 echo 'int i;' > conftest.$ac_ext
8309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8310 (eval $ac_compile) 2>&5
8312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8313 test $ac_status = 0; }; then
8314 case `/usr/bin/file conftest.o` in
8316 case $lt_cv_prog_gnu_ld in
8317 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8319 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8331 need_locks="$enable_libtool_lock"
8335 rhapsody* | darwin*)
8336 if test -n "$ac_tool_prefix"; then
8337 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8344 if test -n "$DSYMUTIL"; then
8345 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8365 if test -n "$DSYMUTIL"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8367 $as_echo "$DSYMUTIL" >&6; }
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8375 if test -z "$ac_cv_prog_DSYMUTIL"; then
8376 ac_ct_DSYMUTIL=$DSYMUTIL
8377 # Extract the first word of "dsymutil", so it can be a program name with args.
8378 set dummy dsymutil; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$ac_ct_DSYMUTIL"; then
8385 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8405 if test -n "$ac_ct_DSYMUTIL"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8407 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8413 if test "x$ac_ct_DSYMUTIL" = x; then
8416 case $cross_compiling:$ac_tool_warned in
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8422 DSYMUTIL=$ac_ct_DSYMUTIL
8425 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8428 if test -n "$ac_tool_prefix"; then
8429 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8430 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8436 if test -n "$NMEDIT"; then
8437 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 NMEDIT=$ac_cv_prog_NMEDIT
8457 if test -n "$NMEDIT"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8459 $as_echo "$NMEDIT" >&6; }
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8467 if test -z "$ac_cv_prog_NMEDIT"; then
8468 ac_ct_NMEDIT=$NMEDIT
8469 # Extract the first word of "nmedit", so it can be a program name with args.
8470 set dummy nmedit; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -n "$ac_ct_NMEDIT"; then
8477 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8497 if test -n "$ac_ct_NMEDIT"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8499 $as_echo "$ac_ct_NMEDIT" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8505 if test "x$ac_ct_NMEDIT" = x; then
8508 case $cross_compiling:$ac_tool_warned in
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8514 NMEDIT=$ac_ct_NMEDIT
8517 NMEDIT="$ac_cv_prog_NMEDIT"
8520 if test -n "$ac_tool_prefix"; then
8521 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if test "${ac_cv_prog_LIPO+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8528 if test -n "$LIPO"; then
8529 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 LIPO=$ac_cv_prog_LIPO
8549 if test -n "$LIPO"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8551 $as_echo "$LIPO" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8559 if test -z "$ac_cv_prog_LIPO"; then
8561 # Extract the first word of "lipo", so it can be a program name with args.
8562 set dummy lipo; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8568 if test -n "$ac_ct_LIPO"; then
8569 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578 ac_cv_prog_ac_ct_LIPO="lipo"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8589 if test -n "$ac_ct_LIPO"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8591 $as_echo "$ac_ct_LIPO" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8597 if test "x$ac_ct_LIPO" = x; then
8600 case $cross_compiling:$ac_tool_warned in
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604 ac_tool_warned=yes ;;
8609 LIPO="$ac_cv_prog_LIPO"
8612 if test -n "$ac_tool_prefix"; then
8613 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8614 set dummy ${ac_tool_prefix}otool; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8620 if test -n "$OTOOL"; then
8621 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 OTOOL=$ac_cv_prog_OTOOL
8641 if test -n "$OTOOL"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8643 $as_echo "$OTOOL" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8651 if test -z "$ac_cv_prog_OTOOL"; then
8653 # Extract the first word of "otool", so it can be a program name with args.
8654 set dummy otool; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8660 if test -n "$ac_ct_OTOOL"; then
8661 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_prog_ac_ct_OTOOL="otool"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8681 if test -n "$ac_ct_OTOOL"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8683 $as_echo "$ac_ct_OTOOL" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8689 if test "x$ac_ct_OTOOL" = x; then
8692 case $cross_compiling:$ac_tool_warned in
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8696 ac_tool_warned=yes ;;
8701 OTOOL="$ac_cv_prog_OTOOL"
8704 if test -n "$ac_tool_prefix"; then
8705 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8706 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8712 if test -n "$OTOOL64"; then
8713 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 OTOOL64=$ac_cv_prog_OTOOL64
8733 if test -n "$OTOOL64"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8735 $as_echo "$OTOOL64" >&6; }
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8743 if test -z "$ac_cv_prog_OTOOL64"; then
8744 ac_ct_OTOOL64=$OTOOL64
8745 # Extract the first word of "otool64", so it can be a program name with args.
8746 set dummy otool64; ac_word=$2
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748 $as_echo_n "checking for $ac_word... " >&6; }
8749 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8752 if test -n "$ac_ct_OTOOL64"; then
8753 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8762 ac_cv_prog_ac_ct_OTOOL64="otool64"
8763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8773 if test -n "$ac_ct_OTOOL64"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8775 $as_echo "$ac_ct_OTOOL64" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8781 if test "x$ac_ct_OTOOL64" = x; then
8784 case $cross_compiling:$ac_tool_warned in
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8788 ac_tool_warned=yes ;;
8790 OTOOL64=$ac_ct_OTOOL64
8793 OTOOL64="$ac_cv_prog_OTOOL64"
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8823 $as_echo_n "checking for -single_module linker flag... " >&6; }
8824 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8827 lt_cv_apple_cc_single_mod=no
8828 if test -z "${LT_MULTI_MODULE}"; then
8829 # By default we will add the -single_module flag. You can override
8830 # by either setting the environment variable LT_MULTI_MODULE
8831 # non-empty at configure time, or by adding -multi_module to the
8833 rm -rf libconftest.dylib*
8834 echo "int foo(void){return 1;}" > conftest.c
8835 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8836 -dynamiclib -Wl,-single_module conftest.c" >&5
8837 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8838 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8840 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8841 lt_cv_apple_cc_single_mod=yes
8843 cat conftest.err >&5
8845 rm -rf libconftest.dylib*
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8850 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8852 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8853 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8856 lt_cv_ld_exported_symbols_list=no
8857 save_LDFLAGS=$LDFLAGS
8858 echo "_main" > conftest.sym
8859 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 lt_cv_ld_exported_symbols_list=yes
8874 lt_cv_ld_exported_symbols_list=no
8876 rm -f core conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext conftest.$ac_ext
8878 LDFLAGS="$save_LDFLAGS"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8882 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8884 rhapsody* | darwin1.[012])
8885 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8887 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8888 darwin*) # darwin 5.x on
8889 # if running on 10.5 or later, the deployment target defaults
8890 # to the OS version, if on x86, and 10.4, the deployment
8891 # target defaults to 10.4. Don't you love it?
8892 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8893 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8894 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8896 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8898 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8902 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8903 _lt_dar_single_mod='$single_module'
8905 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8906 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8908 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8910 if test "$DSYMUTIL" != ":"; then
8911 _lt_dsymutil='~$DSYMUTIL $lib || :'
8918 for ac_header in dlfcn.h
8920 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8922 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8923 cat >>confdefs.h <<_ACEOF
8924 #define HAVE_DLFCN_H 1
8934 enable_win32_dll=yes
8937 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8938 if test -n "$ac_tool_prefix"; then
8939 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8940 set dummy ${ac_tool_prefix}as; ac_word=$2
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942 $as_echo_n "checking for $ac_word... " >&6; }
8943 if test "${ac_cv_prog_AS+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
8946 if test -n "$AS"; then
8947 ac_cv_prog_AS="$AS" # Let the user override the test.
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8956 ac_cv_prog_AS="${ac_tool_prefix}as"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 if test -n "$AS"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8969 $as_echo "$AS" >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8977 if test -z "$ac_cv_prog_AS"; then
8979 # Extract the first word of "as", so it can be a program name with args.
8980 set dummy as; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8986 if test -n "$ac_ct_AS"; then
8987 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8996 ac_cv_prog_ac_ct_AS="as"
8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9007 if test -n "$ac_ct_AS"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9009 $as_echo "$ac_ct_AS" >&6; }
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9015 if test "x$ac_ct_AS" = x; then
9018 case $cross_compiling:$ac_tool_warned in
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9022 ac_tool_warned=yes ;;
9030 if test -n "$ac_tool_prefix"; then
9031 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9032 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034 $as_echo_n "checking for $ac_word... " >&6; }
9035 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9038 if test -n "$DLLTOOL"; then
9039 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 test -z "$as_dir" && as_dir=.
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 DLLTOOL=$ac_cv_prog_DLLTOOL
9059 if test -n "$DLLTOOL"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9061 $as_echo "$DLLTOOL" >&6; }
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9069 if test -z "$ac_cv_prog_DLLTOOL"; then
9070 ac_ct_DLLTOOL=$DLLTOOL
9071 # Extract the first word of "dlltool", so it can be a program name with args.
9072 set dummy dlltool; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9078 if test -n "$ac_ct_DLLTOOL"; then
9079 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9099 if test -n "$ac_ct_DLLTOOL"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9101 $as_echo "$ac_ct_DLLTOOL" >&6; }
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9107 if test "x$ac_ct_DLLTOOL" = x; then
9110 case $cross_compiling:$ac_tool_warned in
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9114 ac_tool_warned=yes ;;
9116 DLLTOOL=$ac_ct_DLLTOOL
9119 DLLTOOL="$ac_cv_prog_DLLTOOL"
9122 if test -n "$ac_tool_prefix"; then
9123 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9124 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9128 $as_echo_n "(cached) " >&6
9130 if test -n "$OBJDUMP"; then
9131 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 test -z "$as_dir" && as_dir=.
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150 OBJDUMP=$ac_cv_prog_OBJDUMP
9151 if test -n "$OBJDUMP"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9153 $as_echo "$OBJDUMP" >&6; }
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9161 if test -z "$ac_cv_prog_OBJDUMP"; then
9162 ac_ct_OBJDUMP=$OBJDUMP
9163 # Extract the first word of "objdump", so it can be a program name with args.
9164 set dummy objdump; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9170 if test -n "$ac_ct_OBJDUMP"; then
9171 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9180 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9191 if test -n "$ac_ct_OBJDUMP"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9193 $as_echo "$ac_ct_OBJDUMP" >&6; }
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9199 if test "x$ac_ct_OBJDUMP" = x; then
9202 case $cross_compiling:$ac_tool_warned in
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9206 ac_tool_warned=yes ;;
9208 OBJDUMP=$ac_ct_OBJDUMP
9211 OBJDUMP="$ac_cv_prog_OBJDUMP"
9217 test -z "$AS" && AS=as
9223 test -z "$DLLTOOL" && DLLTOOL=dlltool
9229 test -z "$OBJDUMP" && OBJDUMP=objdump
9241 # Check whether --enable-shared was given.
9242 if test "${enable_shared+set}" = set; then :
9243 enableval=$enable_shared; p=${PACKAGE-default}
9245 yes) enable_shared=yes ;;
9246 no) enable_shared=no ;;
9249 # Look at the argument we got. We use all the common list separators.
9250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9251 for pkg in $enableval; do
9253 if test "X$pkg" = "X$p"; then
9272 # Check whether --enable-static was given.
9273 if test "${enable_static+set}" = set; then :
9274 enableval=$enable_static; p=${PACKAGE-default}
9276 yes) enable_static=yes ;;
9277 no) enable_static=no ;;
9280 # Look at the argument we got. We use all the common list separators.
9281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9282 for pkg in $enableval; do
9284 if test "X$pkg" = "X$p"; then
9304 # Check whether --with-pic was given.
9305 if test "${with_pic+set}" = set; then :
9306 withval=$with_pic; pic_mode="$withval"
9312 test -z "$pic_mode" && pic_mode=default
9320 # Check whether --enable-fast-install was given.
9321 if test "${enable_fast_install+set}" = set; then :
9322 enableval=$enable_fast_install; p=${PACKAGE-default}
9324 yes) enable_fast_install=yes ;;
9325 no) enable_fast_install=no ;;
9327 enable_fast_install=no
9328 # Look at the argument we got. We use all the common list separators.
9329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9330 for pkg in $enableval; do
9332 if test "X$pkg" = "X$p"; then
9333 enable_fast_install=yes
9340 enable_fast_install=yes
9353 # This can be used to rebuild libtool when needed
9354 LIBTOOL_DEPS="$ltmain"
9356 # Always use our own libtool.
9357 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9383 test -z "$LN_S" && LN_S="ln -s"
9398 if test -n "${ZSH_VERSION+set}" ; then
9399 setopt NO_GLOB_SUBST
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9403 $as_echo_n "checking for objdir... " >&6; }
9404 if test "${lt_cv_objdir+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9407 rm -f .libs 2>/dev/null
9408 mkdir .libs 2>/dev/null
9409 if test -d .libs; then
9412 # MS-DOS does not allow filenames that begin with a dot.
9415 rmdir .libs 2>/dev/null
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9418 $as_echo "$lt_cv_objdir" >&6; }
9419 objdir=$lt_cv_objdir
9425 cat >>confdefs.h <<_ACEOF
9426 #define LT_OBJDIR "$lt_cv_objdir/"
9447 # AIX sometimes has problems with the GCC collect2 program. For some
9448 # reason, if we set the COLLECT_NAMES environment variable, the problems
9449 # vanish in a puff of smoke.
9450 if test "X${COLLECT_NAMES+set}" != Xset; then
9452 export COLLECT_NAMES
9457 # Sed substitution that helps us do robust quoting. It backslashifies
9458 # metacharacters that are still active within double-quoted strings.
9459 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9461 # Same as above, but do not quote variable references.
9462 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9464 # Sed substitution to delay expansion of an escaped shell variable in a
9465 # double_quote_subst'ed string.
9466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9468 # Sed substitution to delay expansion of an escaped single quote.
9469 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9471 # Sed substitution to avoid accidental globbing in evaled expressions
9472 no_glob_subst='s/\*/\\\*/g'
9476 can_build_shared=yes
9478 # All known linkers require a `.a' archive for static linking (except MSVC,
9479 # which needs '.lib').
9482 with_gnu_ld="$lt_cv_prog_gnu_ld"
9485 old_CFLAGS="$CFLAGS"
9487 # Set sane defaults for various variables
9488 test -z "$CC" && CC=cc
9489 test -z "$LTCC" && LTCC=$CC
9490 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9491 test -z "$LD" && LD=ld
9492 test -z "$ac_objext" && ac_objext=o
9494 for cc_temp in $compiler""; do
9496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9502 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9505 # Only perform the check for file, if the check method requires it
9506 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9507 case $deplibs_check_method in
9509 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9511 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9512 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9513 $as_echo_n "(cached) " >&6
9517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9520 lt_save_MAGIC_CMD="$MAGIC_CMD"
9521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523 for ac_dir in $ac_dummy; do
9525 test -z "$ac_dir" && ac_dir=.
9526 if test -f $ac_dir/${ac_tool_prefix}file; then
9527 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9528 if test -n "$file_magic_test_file"; then
9529 case $deplibs_check_method in
9531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534 $EGREP "$file_magic_regex" > /dev/null; then
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such. This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem. Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9556 MAGIC_CMD="$lt_save_MAGIC_CMD"
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9574 if test -z "$lt_cv_path_MAGIC_CMD"; then
9575 if test -n "$ac_tool_prefix"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9577 $as_echo_n "checking for file... " >&6; }
9578 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9586 lt_save_MAGIC_CMD="$MAGIC_CMD"
9587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9589 for ac_dir in $ac_dummy; do
9591 test -z "$ac_dir" && ac_dir=.
9592 if test -f $ac_dir/file; then
9593 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9594 if test -n "$file_magic_test_file"; then
9595 case $deplibs_check_method in
9597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9600 $EGREP "$file_magic_regex" > /dev/null; then
9605 *** Warning: the command libtool uses to detect shared libraries,
9606 *** $file_magic_cmd, produces output that libtool cannot recognize.
9607 *** The result is that libtool may fail to recognize shared libraries
9608 *** as such. This will affect the creation of libtool libraries that
9609 *** depend on shared libraries, but programs linked with such libtool
9610 *** libraries will work regardless of this problem. Nevertheless, you
9611 *** may want to report the problem to your system manager and/or to
9612 *** bug-libtool@gnu.org
9622 MAGIC_CMD="$lt_save_MAGIC_CMD"
9627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9628 if test -n "$MAGIC_CMD"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9630 $as_echo "$MAGIC_CMD" >&6; }
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9646 # Use C for the default configuration in the libtool script
9650 ac_cpp='$CPP $CPPFLAGS'
9651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9656 # Source file extension for C test sources.
9659 # Object file extension for compiled C test sources.
9663 # Code to be used in simple compile tests
9664 lt_simple_compile_test_code="int some_variable = 0;"
9666 # Code to be used in simple link tests
9667 lt_simple_link_test_code='int main(){return(0);}'
9675 # If no C compiler was specified, use CC.
9678 # If no C compiler flags were specified, use CFLAGS.
9679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9681 # Allow CC to be a program name with arguments.
9684 # Save the default compiler, since it gets overwritten when the other
9685 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9686 compiler_DEFAULT=$CC
9688 # save warnings/boilerplate of simple test code
9689 ac_outfile=conftest.$ac_objext
9690 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9692 _lt_compiler_boilerplate=`cat conftest.err`
9695 ac_outfile=conftest.$ac_objext
9696 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9698 _lt_linker_boilerplate=`cat conftest.err`
9703 ## There is no encapsulation within the following macros, do not change
9704 ## the running order or otherwise move them around unless you know exactly
9705 ## what you are doing...
9706 if test -n "$compiler"; then
9708 lt_prog_compiler_no_builtin_flag=
9710 if test "$GCC" = yes; then
9711 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9714 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9718 lt_cv_prog_compiler_rtti_exceptions=no
9719 ac_outfile=conftest.$ac_objext
9720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9721 lt_compiler_flag="-fno-rtti -fno-exceptions"
9722 # Insert the option either (1) after the last *FLAGS variable, or
9723 # (2) before a word containing "conftest.", or (3) at the end.
9724 # Note that $ac_compile itself does not contain backslashes and begins
9725 # with a dollar sign (not a hyphen), so the echo should work correctly.
9726 # The option is referenced via a variable to avoid confusing sed.
9727 lt_compile=`echo "$ac_compile" | $SED \
9728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9730 -e 's:$: $lt_compiler_flag:'`
9731 (eval echo "\"\$as_me:9731: $lt_compile\"" >&5)
9732 (eval "$lt_compile" 2>conftest.err)
9734 cat conftest.err >&5
9735 echo "$as_me:9735: \$? = $ac_status" >&5
9736 if (exit $ac_status) && test -s "$ac_outfile"; then
9737 # The compiler can only warn and ignore the option if not recognized
9738 # So say no if there are warnings other than the usual output.
9739 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9742 lt_cv_prog_compiler_rtti_exceptions=yes
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9749 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9751 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9752 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9764 lt_prog_compiler_wl=
9765 lt_prog_compiler_pic=
9766 lt_prog_compiler_static=
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9769 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9771 if test "$GCC" = yes; then
9772 lt_prog_compiler_wl='-Wl,'
9773 lt_prog_compiler_static='-static'
9777 # All AIX code is PIC.
9778 if test "$host_cpu" = ia64; then
9779 # AIX 5 now supports IA64 processor
9780 lt_prog_compiler_static='-Bstatic'
9787 # see comment about AmigaOS4 .so support
9788 lt_prog_compiler_pic='-fPIC'
9791 # FIXME: we need at least 68020 code to build shared libraries, but
9792 # adding the `-m68020' flag to GCC prevents building anything better,
9794 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9799 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9800 # PIC is the default for these OSes.
9803 mingw* | cygwin* | pw32* | os2* | cegcc*)
9804 # This hack is so that the source file can tell whether it is being
9805 # built for inclusion in a dll (and should export symbols for example).
9806 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9807 # (--disable-auto-import) libraries
9808 lt_prog_compiler_pic='-DDLL_EXPORT'
9811 darwin* | rhapsody*)
9812 # PIC is the default on this platform
9813 # Common symbols not allowed in MH_DYLIB files
9814 lt_prog_compiler_pic='-fno-common'
9818 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9819 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9820 # sets the default TLS model and affects inlining.
9826 lt_prog_compiler_pic='-fPIC'
9832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9833 # Instead, we relocate shared libraries at runtime.
9837 # Just because we use GCC doesn't mean we suddenly get shared libraries
9838 # on systems that don't support them.
9839 lt_prog_compiler_can_build_shared=no
9844 # QNX uses GNU C++, but need to define -shared option too, otherwise
9846 lt_prog_compiler_pic='-fPIC -shared'
9850 if test -d /usr/nec; then
9851 lt_prog_compiler_pic=-Kconform_pic
9856 lt_prog_compiler_pic='-fPIC'
9860 # PORTME Check for flag to pass linker flags through the system compiler.
9863 lt_prog_compiler_wl='-Wl,'
9864 if test "$host_cpu" = ia64; then
9865 # AIX 5 now supports IA64 processor
9866 lt_prog_compiler_static='-Bstatic'
9868 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9872 mingw* | cygwin* | pw32* | os2* | cegcc*)
9873 # This hack is so that the source file can tell whether it is being
9874 # built for inclusion in a dll (and should export symbols for example).
9875 lt_prog_compiler_pic='-DDLL_EXPORT'
9878 hpux9* | hpux10* | hpux11*)
9879 lt_prog_compiler_wl='-Wl,'
9880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9887 lt_prog_compiler_pic='+Z'
9890 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9891 lt_prog_compiler_static='${wl}-a ${wl}archive'
9894 irix5* | irix6* | nonstopux*)
9895 lt_prog_compiler_wl='-Wl,'
9896 # PIC (with -KPIC) is the default.
9897 lt_prog_compiler_static='-non_shared'
9900 linux* | k*bsd*-gnu)
9901 case $cc_basename in
9902 # old Intel for x86_64 which still supported -KPIC.
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-static'
9908 # icc used to be incompatible with GCC.
9909 # ICC 10 doesn't accept -KPIC any more.
9911 lt_prog_compiler_wl='-Wl,'
9912 lt_prog_compiler_pic='-fPIC'
9913 lt_prog_compiler_static='-static'
9915 # Lahey Fortran 8.1.
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='--shared'
9919 lt_prog_compiler_static='--static'
9921 pgcc* | pgf77* | pgf90* | pgf95*)
9922 # Portland Group compilers (*not* the Pentium gcc compiler,
9923 # which looks to be a dead project)
9924 lt_prog_compiler_wl='-Wl,'
9925 lt_prog_compiler_pic='-fpic'
9926 lt_prog_compiler_static='-Bstatic'
9929 lt_prog_compiler_wl='-Wl,'
9930 # All Alpha code is PIC.
9931 lt_prog_compiler_static='-non_shared'
9934 # IBM XL C 8.0/Fortran 10.1 on PPC
9935 lt_prog_compiler_wl='-Wl,'
9936 lt_prog_compiler_pic='-qpic'
9937 lt_prog_compiler_static='-qstaticlink'
9940 case `$CC -V 2>&1 | sed 5q` in
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9945 lt_prog_compiler_wl='-Wl,'
9948 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9949 lt_prog_compiler_pic='-KPIC'
9950 lt_prog_compiler_static='-Bstatic'
9951 lt_prog_compiler_wl=''
9959 lt_prog_compiler_pic='-KPIC'
9960 lt_prog_compiler_static='-Bstatic'
9964 # QNX uses GNU C++, but need to define -shared option too, otherwise
9966 lt_prog_compiler_pic='-fPIC -shared'
9969 osf3* | osf4* | osf5*)
9970 lt_prog_compiler_wl='-Wl,'
9971 # All OSF/1 code is PIC.
9972 lt_prog_compiler_static='-non_shared'
9976 lt_prog_compiler_static='-non_shared'
9980 lt_prog_compiler_pic='-KPIC'
9981 lt_prog_compiler_static='-Bstatic'
9982 case $cc_basename in
9984 lt_prog_compiler_wl='-Qoption ld ';;
9986 lt_prog_compiler_wl='-Wl,';;
9991 lt_prog_compiler_wl='-Qoption ld '
9992 lt_prog_compiler_pic='-PIC'
9993 lt_prog_compiler_static='-Bstatic'
9996 sysv4 | sysv4.2uw2* | sysv4.3*)
9997 lt_prog_compiler_wl='-Wl,'
9998 lt_prog_compiler_pic='-KPIC'
9999 lt_prog_compiler_static='-Bstatic'
10003 if test -d /usr/nec ;then
10004 lt_prog_compiler_pic='-Kconform_pic'
10005 lt_prog_compiler_static='-Bstatic'
10009 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10010 lt_prog_compiler_wl='-Wl,'
10011 lt_prog_compiler_pic='-KPIC'
10012 lt_prog_compiler_static='-Bstatic'
10016 lt_prog_compiler_wl='-Wl,'
10017 lt_prog_compiler_can_build_shared=no
10021 lt_prog_compiler_pic='-pic'
10022 lt_prog_compiler_static='-Bstatic'
10026 lt_prog_compiler_can_build_shared=no
10032 # For platforms which do not support PIC, -DPIC is meaningless:
10034 lt_prog_compiler_pic=
10037 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10041 $as_echo "$lt_prog_compiler_pic" >&6; }
10049 # Check to make sure the PIC flag actually works.
10051 if test -n "$lt_prog_compiler_pic"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10054 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10057 lt_cv_prog_compiler_pic_works=no
10058 ac_outfile=conftest.$ac_objext
10059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10060 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10061 # Insert the option either (1) after the last *FLAGS variable, or
10062 # (2) before a word containing "conftest.", or (3) at the end.
10063 # Note that $ac_compile itself does not contain backslashes and begins
10064 # with a dollar sign (not a hyphen), so the echo should work correctly.
10065 # The option is referenced via a variable to avoid confusing sed.
10066 lt_compile=`echo "$ac_compile" | $SED \
10067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10069 -e 's:$: $lt_compiler_flag:'`
10070 (eval echo "\"\$as_me:10070: $lt_compile\"" >&5)
10071 (eval "$lt_compile" 2>conftest.err)
10073 cat conftest.err >&5
10074 echo "$as_me:10074: \$? = $ac_status" >&5
10075 if (exit $ac_status) && test -s "$ac_outfile"; then
10076 # The compiler can only warn and ignore the option if not recognized
10077 # So say no if there are warnings other than the usual output.
10078 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10081 lt_cv_prog_compiler_pic_works=yes
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10090 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10091 case $lt_prog_compiler_pic in
10093 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10096 lt_prog_compiler_pic=
10097 lt_prog_compiler_can_build_shared=no
10108 # Check to make sure the static flag actually works.
10110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10113 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10116 lt_cv_prog_compiler_static_works=no
10117 save_LDFLAGS="$LDFLAGS"
10118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10121 # The linker can only warn and ignore the option if not recognized
10122 # So say no if there are warnings
10123 if test -s conftest.err; then
10124 # Append any errors to the config.log.
10125 cat conftest.err 1>&5
10126 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10128 if diff conftest.exp conftest.er2 >/dev/null; then
10129 lt_cv_prog_compiler_static_works=yes
10132 lt_cv_prog_compiler_static_works=yes
10136 LDFLAGS="$save_LDFLAGS"
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10145 lt_prog_compiler_static=
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
10159 lt_cv_prog_compiler_c_o=no
10160 $RM -r conftest 2>/dev/null
10164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10166 lt_compiler_flag="-o out/conftest2.$ac_objext"
10167 # Insert the option either (1) after the last *FLAGS variable, or
10168 # (2) before a word containing "conftest.", or (3) at the end.
10169 # Note that $ac_compile itself does not contain backslashes and begins
10170 # with a dollar sign (not a hyphen), so the echo should work correctly.
10171 lt_compile=`echo "$ac_compile" | $SED \
10172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10174 -e 's:$: $lt_compiler_flag:'`
10175 (eval echo "\"\$as_me:10175: $lt_compile\"" >&5)
10176 (eval "$lt_compile" 2>out/conftest.err)
10178 cat out/conftest.err >&5
10179 echo "$as_me:10179: \$? = $ac_status" >&5
10180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10182 # The compiler can only warn and ignore the option if not recognized
10183 # So say no if there are warnings
10184 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10187 lt_cv_prog_compiler_c_o=yes
10192 # SGI C++ compiler will create directory out/ii_files/ for
10193 # template instantiation
10194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10195 $RM out/* && rmdir out
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10211 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10214 lt_cv_prog_compiler_c_o=no
10215 $RM -r conftest 2>/dev/null
10219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10221 lt_compiler_flag="-o out/conftest2.$ac_objext"
10222 # Insert the option either (1) after the last *FLAGS variable, or
10223 # (2) before a word containing "conftest.", or (3) at the end.
10224 # Note that $ac_compile itself does not contain backslashes and begins
10225 # with a dollar sign (not a hyphen), so the echo should work correctly.
10226 lt_compile=`echo "$ac_compile" | $SED \
10227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10229 -e 's:$: $lt_compiler_flag:'`
10230 (eval echo "\"\$as_me:10230: $lt_compile\"" >&5)
10231 (eval "$lt_compile" 2>out/conftest.err)
10233 cat out/conftest.err >&5
10234 echo "$as_me:10234: \$? = $ac_status" >&5
10235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10237 # The compiler can only warn and ignore the option if not recognized
10238 # So say no if there are warnings
10239 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10242 lt_cv_prog_compiler_c_o=yes
10247 # SGI C++ compiler will create directory out/ii_files/ for
10248 # template instantiation
10249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10250 $RM out/* && rmdir out
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10262 hard_links="nottested"
10263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10264 # do not overwrite the value of need_locks provided by the user
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10266 $as_echo_n "checking if we can lock with hard links... " >&6; }
10269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10271 ln conftest.a conftest.b 2>&5 || hard_links=no
10272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10274 $as_echo "$hard_links" >&6; }
10275 if test "$hard_links" = no; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10293 allow_undefined_flag=
10294 always_export_symbols=no
10296 archive_expsym_cmds=
10297 compiler_needs_object=no
10298 enable_shared_with_static_runtimes=no
10299 export_dynamic_flag_spec=
10300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10301 hardcode_automatic=no
10303 hardcode_direct_absolute=no
10304 hardcode_libdir_flag_spec=
10305 hardcode_libdir_flag_spec_ld=
10306 hardcode_libdir_separator=
10307 hardcode_minus_L=no
10308 hardcode_shlibpath_var=unsupported
10310 link_all_deplibs=unknown
10312 module_expsym_cmds=
10313 old_archive_from_new_cmds=
10314 old_archive_from_expsyms_cmds=
10315 thread_safe_flag_spec=
10316 whole_archive_flag_spec=
10317 # include_expsyms should be a list of space-separated symbols to be *always*
10318 # included in the symbol list
10320 # exclude_expsyms can be an extended regexp of symbols to exclude
10321 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10322 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10323 # as well as any symbol that contains `d'.
10324 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10325 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10326 # platforms (ab)use it in PIC code, but their linkers get confused if
10327 # the symbol is explicitly referenced. Since portable code cannot
10328 # rely on this symbol name, it's probably fine to never include it in
10329 # preloaded symbol tables.
10330 # Exclude shared library initialization/finalization symbols.
10331 extract_expsyms_cmds=
10334 cygwin* | mingw* | pw32* | cegcc*)
10335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10336 # When not using gcc, we currently assume that we are using
10337 # Microsoft Visual C++.
10338 if test "$GCC" != yes; then
10343 # we just hope/assume this is gcc and not c89 (= MSVC++)
10352 if test "$with_gnu_ld" = yes; then
10353 # If archive_cmds runs LD, not CC, wlarc should be empty
10356 # Set some defaults for GNU ld with shared library support. These
10357 # are reset later if shared libraries are not supported. Putting them
10358 # here allows them to be overridden if necessary.
10359 runpath_var=LD_RUN_PATH
10360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10361 export_dynamic_flag_spec='${wl}--export-dynamic'
10362 # ancient GNU ld didn't support --whole-archive et. al.
10363 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10364 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10366 whole_archive_flag_spec=
10368 supports_anon_versioning=no
10369 case `$LD -v 2>&1` in
10370 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10373 *\ 2.11.*) ;; # other 2.11 versions
10374 *) supports_anon_versioning=yes ;;
10377 # See if GNU ld supports shared libraries.
10380 # On AIX/PPC, the GNU linker is very broken
10381 if test "$host_cpu" != ia64; then
10385 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10386 *** to be unable to reliably create shared libraries on AIX.
10387 *** Therefore, libtool is disabling shared libraries support. If you
10388 *** really care for shared libraries, you may want to modify your PATH
10389 *** so that a non-GNU linker is found, and then restart.
10398 # see comment about AmigaOS4 .so support
10399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10400 archive_expsym_cmds=''
10403 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_minus_L=yes
10411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10412 allow_undefined_flag=unsupported
10413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10414 # support --undefined. This deserves some investigation. FIXME
10415 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421 cygwin* | mingw* | pw32* | cegcc*)
10422 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10423 # as there is no search path for DLLs.
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 allow_undefined_flag=unsupported
10426 always_export_symbols=no
10427 enable_shared_with_static_runtimes=yes
10428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10430 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10432 # If the export-symbols file already is a .def file (1st line
10433 # is EXPORTS), use it as is; otherwise, prepend...
10434 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10435 cp $export_symbols $output_objdir/$soname.def;
10437 echo EXPORTS > $output_objdir/$soname.def;
10438 cat $export_symbols >> $output_objdir/$soname.def;
10440 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10448 hardcode_shlibpath_var=no
10449 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10450 export_dynamic_flag_spec='${wl}-E'
10451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10452 # Instead, shared libraries are loaded at an image base (0x10000000 by
10453 # default) and relocated if they conflict, which is a slow very memory
10454 # consuming and fragmenting process. To avoid this, we pick a random,
10455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10456 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10457 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10458 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10461 gnu* | linux* | tpf* | k*bsd*-gnu)
10463 if test "$host_os" = linux-dietlibc; then
10464 case $cc_basename in
10465 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10468 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10469 && test "$tmp_diet" = no
10472 tmp_sharedflag='-shared'
10473 case $cc_basename,$host_cpu in
10474 pgcc*) # Portland Group C compiler
10475 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10476 tmp_addflag=' $pic_flag'
10478 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10479 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10480 tmp_addflag=' $pic_flag -Mnomain' ;;
10481 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10482 tmp_addflag=' -i_dynamic' ;;
10483 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10484 tmp_addflag=' -i_dynamic -nofor_main' ;;
10485 ifc* | ifort*) # Intel Fortran compiler
10486 tmp_addflag=' -nofor_main' ;;
10487 lf95*) # Lahey Fortran 8.1
10488 whole_archive_flag_spec=
10489 tmp_sharedflag='--shared' ;;
10490 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10491 tmp_sharedflag='-qmkshrobj'
10494 case `$CC -V 2>&1 | sed 5q` in
10495 *Sun\ C*) # Sun C 5.9
10496 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10497 compiler_needs_object=yes
10498 tmp_sharedflag='-G' ;;
10499 *Sun\ F*) # Sun Fortran 8.3
10500 tmp_sharedflag='-G' ;;
10502 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10504 if test "x$supports_anon_versioning" = xyes; then
10505 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10507 echo "local: *; };" >> $output_objdir/$libname.ver~
10508 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10511 case $cc_basename in
10513 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10514 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10515 hardcode_libdir_flag_spec=
10516 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10517 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10518 if test "x$supports_anon_versioning" = xyes; then
10519 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10521 echo "local: *; };" >> $output_objdir/$libname.ver~
10522 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10533 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10542 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10547 *** create shared libraries on Solaris systems. Therefore, libtool
10548 *** is disabling shared libraries support. We urge you to upgrade GNU
10549 *** binutils to release 2.9.1 or newer. Another option is to modify
10550 *** your PATH or compiler configuration so that the native linker is
10551 *** used, and then restart.
10554 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10563 case `$LD -v 2>&1` in
10564 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10568 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10569 *** reliably create shared libraries on SCO systems. Therefore, libtool
10570 *** is disabling shared libraries support. We urge you to upgrade GNU
10571 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10572 *** your PATH or compiler configuration so that the native linker is
10573 *** used, and then restart.
10578 # For security reasons, it is highly recommended that you always
10579 # use absolute paths for naming shared libraries, and exclude the
10580 # DT_RUNPATH tag from executables and libraries. But doing so
10581 # requires that you compile everything twice, which is a pain.
10582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10594 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10596 hardcode_direct=yes
10597 hardcode_shlibpath_var=no
10601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10610 if test "$ld_shlibs" = no; then
10612 hardcode_libdir_flag_spec=
10613 export_dynamic_flag_spec=
10614 whole_archive_flag_spec=
10617 # PORTME fill in a description of your system's linker (not GNU ld)
10620 allow_undefined_flag=unsupported
10621 always_export_symbols=yes
10622 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10623 # Note: this linker hardcodes the directories in LIBPATH if there
10624 # are no directories specified by -L.
10625 hardcode_minus_L=yes
10626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10627 # Neither direct hardcoding nor static linking is supported with a
10629 hardcode_direct=unsupported
10634 if test "$host_cpu" = ia64; then
10635 # On IA64, the linker does run time linking by default, so we don't
10636 # have to do anything special.
10637 aix_use_runtimelinking=no
10638 exp_sym_flag='-Bexport'
10641 # If we're using GNU nm, then we don't want the "-C" option.
10642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10644 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10646 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10648 aix_use_runtimelinking=no
10650 # Test if we are trying to use run time linking or normal
10651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10652 # need to do runtime linking.
10653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10654 for ld_flag in $LDFLAGS; do
10655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10656 aix_use_runtimelinking=yes
10663 exp_sym_flag='-bexport'
10664 no_entry_flag='-bnoentry'
10667 # When large executables or shared objects are built, AIX ld can
10668 # have problems creating the table of contents. If linking a library
10669 # or program results in "error TOC overflow" add -mminimal-toc to
10670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10674 hardcode_direct=yes
10675 hardcode_direct_absolute=yes
10676 hardcode_libdir_separator=':'
10677 link_all_deplibs=yes
10678 file_list_spec='${wl}-f,'
10680 if test "$GCC" = yes; then
10681 case $host_os in aix4.[012]|aix4.[012].*)
10682 # We only want to do this on AIX 4.2 and lower, the check
10683 # below for broken collect2 doesn't work under 4.3+
10684 collect2name=`${CC} -print-prog-name=collect2`
10685 if test -f "$collect2name" &&
10686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10688 # We have reworked collect2
10691 # We have old collect2
10692 hardcode_direct=unsupported
10693 # It fails to find uninstalled libraries when the uninstalled
10694 # path is not listed in the libpath. Setting hardcode_minus_L
10695 # to unsupported forces relinking
10696 hardcode_minus_L=yes
10697 hardcode_libdir_flag_spec='-L$libdir'
10698 hardcode_libdir_separator=
10702 shared_flag='-shared'
10703 if test "$aix_use_runtimelinking" = yes; then
10704 shared_flag="$shared_flag "'${wl}-G'
10708 if test "$host_cpu" = ia64; then
10709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10710 # chokes on -Wl,-G. The following line is correct:
10713 if test "$aix_use_runtimelinking" = yes; then
10714 shared_flag='${wl}-G'
10716 shared_flag='${wl}-bM:SRE'
10721 export_dynamic_flag_spec='${wl}-bexpall'
10722 # It seems that -bexpall does not export symbols beginning with
10723 # underscore (_), so it is better to generate a list of symbols to export.
10724 always_export_symbols=yes
10725 if test "$aix_use_runtimelinking" = yes; then
10726 # Warning - without using the other runtime loading flags (-brtl),
10727 # -berok will link without error, but may produce a broken library.
10728 allow_undefined_flag='-berok'
10729 # Determine the default libpath from the value encoded in an
10730 # empty executable.
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10742 if ac_fn_c_try_link "$LINENO"; then :
10744 lt_aix_libpath_sed='
10745 /Import File Strings/,/^$/ {
10751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10752 # Check for a 64-bit object if we didn't find anything.
10753 if test -z "$aix_libpath"; then
10754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10757 rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
10759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10761 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10762 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10764 if test "$host_cpu" = ia64; then
10765 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10766 allow_undefined_flag="-z nodefs"
10767 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10769 # Determine the default libpath from the value encoded in an
10770 # empty executable.
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10782 if ac_fn_c_try_link "$LINENO"; then :
10784 lt_aix_libpath_sed='
10785 /Import File Strings/,/^$/ {
10791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 # Check for a 64-bit object if we didn't find anything.
10793 if test -z "$aix_libpath"; then
10794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10802 # Warning - without using the other run time loading flags,
10803 # -berok will link without error, but may produce a broken library.
10804 no_undefined_flag=' ${wl}-bernotok'
10805 allow_undefined_flag=' ${wl}-berok'
10806 # Exported symbols can be pulled into shared objects from archives
10807 whole_archive_flag_spec='$convenience'
10808 archive_cmds_need_lc=yes
10809 # This is similar to how AIX traditionally builds its shared libraries.
10810 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10818 # see comment about AmigaOS4 .so support
10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820 archive_expsym_cmds=''
10823 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 hardcode_minus_L=yes
10831 export_dynamic_flag_spec=-rdynamic
10834 cygwin* | mingw* | pw32* | cegcc*)
10835 # When not using gcc, we currently assume that we are using
10836 # Microsoft Visual C++.
10837 # hardcode_libdir_flag_spec is actually meaningless, as there is
10838 # no search path for DLLs.
10839 hardcode_libdir_flag_spec=' '
10840 allow_undefined_flag=unsupported
10841 # Tell ltmain to make .lib files, not .a files.
10843 # Tell ltmain to make .dll files, not .so files.
10845 # FIXME: Setting linknames here is a bad hack.
10846 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10847 # The linker will automatically build a .lib file if we build a DLL.
10848 old_archive_from_new_cmds='true'
10849 # FIXME: Should let the user specify the lib program.
10850 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10851 fix_srcfile_path='`cygpath -w "$srcfile"`'
10852 enable_shared_with_static_runtimes=yes
10855 darwin* | rhapsody*)
10858 archive_cmds_need_lc=no
10860 hardcode_automatic=yes
10861 hardcode_shlibpath_var=unsupported
10862 whole_archive_flag_spec=''
10863 link_all_deplibs=yes
10864 allow_undefined_flag="$_lt_dar_allow_undefined"
10865 case $cc_basename in
10866 ifort*) _lt_dar_can_shared=yes ;;
10867 *) _lt_dar_can_shared=$GCC ;;
10869 if test "$_lt_dar_can_shared" = "yes"; then
10870 output_verbose_link_cmd=echo
10871 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10872 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10873 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10874 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_libdir_flag_spec='-L$libdir'
10885 hardcode_shlibpath_var=no
10892 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10893 # support. Future versions do this automatically, but an explicit c++rt0.o
10894 # does not break anything, and helps significantly (at the cost of a little
10897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10898 hardcode_libdir_flag_spec='-R$libdir'
10899 hardcode_direct=yes
10900 hardcode_shlibpath_var=no
10903 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_direct=yes
10907 hardcode_minus_L=yes
10908 hardcode_shlibpath_var=no
10911 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10912 freebsd* | dragonfly*)
10913 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10914 hardcode_libdir_flag_spec='-R$libdir'
10915 hardcode_direct=yes
10916 hardcode_shlibpath_var=no
10920 if test "$GCC" = yes; then
10921 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10923 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10926 hardcode_libdir_separator=:
10927 hardcode_direct=yes
10929 # hardcode_minus_L: Not really in the search PATH,
10930 # but as the default location of the library.
10931 hardcode_minus_L=yes
10932 export_dynamic_flag_spec='${wl}-E'
10936 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10937 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10939 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10941 if test "$with_gnu_ld" = no; then
10942 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10943 hardcode_libdir_flag_spec_ld='+b $libdir'
10944 hardcode_libdir_separator=:
10945 hardcode_direct=yes
10946 hardcode_direct_absolute=yes
10947 export_dynamic_flag_spec='${wl}-E'
10948 # hardcode_minus_L: Not really in the search PATH,
10949 # but as the default location of the library.
10950 hardcode_minus_L=yes
10955 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10958 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10970 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10980 if test "$with_gnu_ld" = no; then
10981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10982 hardcode_libdir_separator=:
10987 hardcode_shlibpath_var=no
10990 hardcode_direct=yes
10991 hardcode_direct_absolute=yes
10992 export_dynamic_flag_spec='${wl}-E'
10994 # hardcode_minus_L: Not really in the search PATH,
10995 # but as the default location of the library.
10996 hardcode_minus_L=yes
11002 irix5* | irix6* | nonstopux*)
11003 if test "$GCC" = yes; then
11004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11005 # Try to use the -exported_symbol ld option, if it does not
11006 # work, assume that -exports_file does not work either and
11007 # implicitly export all symbols.
11008 save_LDFLAGS="$LDFLAGS"
11009 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011 /* end confdefs.h. */
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LDFLAGS="$save_LDFLAGS"
11022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11025 archive_cmds_need_lc='no'
11026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11027 hardcode_libdir_separator=:
11029 link_all_deplibs=yes
11033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11036 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11038 hardcode_libdir_flag_spec='-R$libdir'
11039 hardcode_direct=yes
11040 hardcode_shlibpath_var=no
11044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045 hardcode_direct=yes
11046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11047 hardcode_libdir_separator=:
11048 hardcode_shlibpath_var=no
11055 if test -f /usr/libexec/ld.so; then
11056 hardcode_direct=yes
11057 hardcode_shlibpath_var=no
11058 hardcode_direct_absolute=yes
11059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11063 export_dynamic_flag_spec='${wl}-E'
11066 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_libdir_flag_spec='-R$libdir'
11071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11082 hardcode_libdir_flag_spec='-L$libdir'
11083 hardcode_minus_L=yes
11084 allow_undefined_flag=unsupported
11085 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11086 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11090 if test "$GCC" = yes; then
11091 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11092 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11094 allow_undefined_flag=' -expect_unresolved \*'
11095 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11097 archive_cmds_need_lc='no'
11098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11099 hardcode_libdir_separator=:
11102 osf4* | osf5*) # as osf3* with the addition of -msym flag
11103 if test "$GCC" = yes; then
11104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11105 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11108 allow_undefined_flag=' -expect_unresolved \*'
11109 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11110 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11111 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11113 # Both c and cxx compiler support -rpath directly
11114 hardcode_libdir_flag_spec='-rpath $libdir'
11116 archive_cmds_need_lc='no'
11117 hardcode_libdir_separator=:
11121 no_undefined_flag=' -z defs'
11122 if test "$GCC" = yes; then
11124 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11126 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11128 case `$CC -V 2>&1` in
11131 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11133 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11137 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11139 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11143 hardcode_libdir_flag_spec='-R$libdir'
11144 hardcode_shlibpath_var=no
11146 solaris2.[0-5] | solaris2.[0-5].*) ;;
11148 # The compiler driver will combine and reorder linker options,
11149 # but understands `-z linker_flag'. GCC discards it without `$wl',
11150 # but is careful enough not to reorder.
11151 # Supported since Solaris 2.6 (maybe 2.5.1?)
11152 if test "$GCC" = yes; then
11153 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11155 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11159 link_all_deplibs=yes
11163 if test "x$host_vendor" = xsequent; then
11164 # Use $CC to link under sequent, because it throws in some extra .o
11165 # files that make .init and .fini sections work.
11166 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11168 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11170 hardcode_libdir_flag_spec='-L$libdir'
11171 hardcode_direct=yes
11172 hardcode_minus_L=yes
11173 hardcode_shlibpath_var=no
11177 case $host_vendor in
11179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11180 hardcode_direct=yes # is this really true???
11183 ## LD is ld it makes a PLAMLIB
11184 ## CC just makes a GrossModule.
11185 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11186 reload_cmds='$CC -r -o $output$reload_objs'
11190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11191 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11194 runpath_var='LD_RUN_PATH'
11195 hardcode_shlibpath_var=no
11199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11200 hardcode_shlibpath_var=no
11201 export_dynamic_flag_spec='-Bexport'
11205 if test -d /usr/nec; then
11206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207 hardcode_shlibpath_var=no
11208 runpath_var=LD_RUN_PATH
11209 hardcode_runpath_var=yes
11214 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11215 no_undefined_flag='${wl}-z,text'
11216 archive_cmds_need_lc=no
11217 hardcode_shlibpath_var=no
11218 runpath_var='LD_RUN_PATH'
11220 if test "$GCC" = yes; then
11221 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11222 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11224 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11225 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11229 sysv5* | sco3.2v5* | sco5v6*)
11230 # Note: We can NOT use -z defs as we might desire, because we do not
11231 # link with -lc, and that would cause any symbols used from libc to
11232 # always be unresolved, which means just about no library would
11233 # ever link correctly. If we're not using GNU ld we use -z text
11234 # though, which does catch some bad symbols but isn't as heavy-handed
11236 no_undefined_flag='${wl}-z,text'
11237 allow_undefined_flag='${wl}-z,nodefs'
11238 archive_cmds_need_lc=no
11239 hardcode_shlibpath_var=no
11240 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11241 hardcode_libdir_separator=':'
11242 link_all_deplibs=yes
11243 export_dynamic_flag_spec='${wl}-Bexport'
11244 runpath_var='LD_RUN_PATH'
11246 if test "$GCC" = yes; then
11247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11257 hardcode_libdir_flag_spec='-L$libdir'
11258 hardcode_shlibpath_var=no
11266 if test x$host_vendor = xsni; then
11268 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11269 export_dynamic_flag_spec='${wl}-Blargedynsym'
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11276 $as_echo "$ld_shlibs" >&6; }
11277 test "$ld_shlibs" = no && can_build_shared=no
11279 with_gnu_ld=$with_gnu_ld
11296 # Do we need to explicitly link libc?
11298 case "x$archive_cmds_need_lc" in
11300 # Assume -lc should be added
11301 archive_cmds_need_lc=yes
11303 if test "$enable_shared" = yes && test "$GCC" = yes; then
11304 case $archive_cmds in
11306 # FIXME: we may have to deal with multi-command sequences.
11309 # Test whether the compiler implicitly links with -lc since on some
11310 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11311 # to ld, don't add -lc before -lgcc.
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11313 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11318 (eval $ac_compile) 2>&5
11320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321 test $ac_status = 0; } 2>conftest.err; then
11324 libobjs=conftest.$ac_objext
11326 wl=$lt_prog_compiler_wl
11327 pic_flag=$lt_prog_compiler_pic
11333 lt_save_allow_undefined_flag=$allow_undefined_flag
11334 allow_undefined_flag=
11335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11336 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; }
11341 archive_cmds_need_lc=no
11343 archive_cmds_need_lc=yes
11345 allow_undefined_flag=$lt_save_allow_undefined_flag
11347 cat conftest.err 1>&5
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11351 $as_echo "$archive_cmds_need_lc" >&6; }
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11515 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11517 if test "$GCC" = yes; then
11519 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11520 *) lt_awk_arg="/^libraries:/" ;;
11522 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11523 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11524 # if the path contains ";" then we assume it to be the separator
11525 # otherwise default to the standard path separator (i.e. ":") - it is
11526 # assumed that no part of a normal pathname contains ";" but that should
11527 # okay in the real world where ";" in dirpaths is itself problematic.
11528 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11530 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11532 # Ok, now we have the path, separated by spaces, we can step through it
11533 # and add multilib dir if necessary.
11534 lt_tmp_lt_search_path_spec=
11535 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11536 for lt_sys_path in $lt_search_path_spec; do
11537 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11538 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11540 test -d "$lt_sys_path" && \
11541 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11544 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11545 BEGIN {RS=" "; FS="/|\n";} {
11548 for (lt_i = NF; lt_i > 0; lt_i--) {
11549 if ($lt_i != "" && $lt_i != ".") {
11550 if ($lt_i == "..") {
11553 if (lt_count == 0) {
11554 lt_foo="/" $lt_i lt_foo;
11561 if (lt_foo != "") { lt_freq[lt_foo]++; }
11562 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11564 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11566 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11568 library_names_spec=
11569 libname_spec='lib$name'
11573 postuninstall_cmds=
11577 shlibpath_overrides_runpath=unknown
11579 dynamic_linker="$host_os ld.so"
11580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11581 need_lib_prefix=unknown
11582 hardcode_into_libs=no
11584 # when you set need_version to no, make sure it does not cause -set_version
11585 # flags to be left without arguments
11586 need_version=unknown
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11592 shlibpath_var=LIBPATH
11594 # AIX 3 has no versioning support, so we append a major version to the name.
11595 soname_spec='${libname}${release}${shared_ext}$major'
11602 hardcode_into_libs=yes
11603 if test "$host_cpu" = ia64; then
11604 # AIX 5 supports IA64
11605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11606 shlibpath_var=LD_LIBRARY_PATH
11608 # With GCC up to 2.95.x, collect2 would create an import file
11609 # for dependence libraries. The import file would start with
11610 # the line `#! .'. This would cause the generated library to
11611 # depend on `.', always an invalid library. This was fixed in
11612 # development snapshots of GCC prior to 3.0.
11614 aix4 | aix4.[01] | aix4.[01].*)
11615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11617 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11620 can_build_shared=no
11624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11625 # soname into executable. Probably we can add versioning support to
11626 # collect2, so additional links can be useful in future.
11627 if test "$aix_use_runtimelinking" = yes; then
11628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11629 # instead of lib<name>.a to let people know that these are not
11630 # typical AIX shared libraries.
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 # We preserve .a as extension for shared libraries through AIX4.2
11634 # and later when we are not doing run time linking.
11635 library_names_spec='${libname}${release}.a $libname.a'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11638 shlibpath_var=LIBPATH
11645 # Since July 2007 AmigaOS4 officially supports .so libraries.
11646 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 library_names_spec='$libname.ixlibrary $libname.a'
11651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11652 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11658 library_names_spec='${libname}${shared_ext}'
11659 dynamic_linker="$host_os ld.so"
11660 shlibpath_var=LIBRARY_PATH
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11672 # the default ld.so.conf also contains /usr/contrib/lib and
11673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11674 # libtool to hard-code these into programs
11677 cygwin* | mingw* | pw32* | cegcc*)
11678 version_type=windows
11683 case $GCC,$host_os in
11684 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11685 library_names_spec='$libname.dll.a'
11686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11687 postinstall_cmds='base_file=`basename \${file}`~
11688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11689 dldir=$destdir/`dirname \$dlpath`~
11690 test -d \$dldir || mkdir -p \$dldir~
11691 $install_prog $dir/$dlname \$dldir/$dlname~
11692 chmod a+x \$dldir/$dlname~
11693 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11694 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11697 dlpath=$dir/\$dldll~
11699 shlibpath_overrides_runpath=yes
11703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11708 # MinGW DLLs use traditional 'lib' prefix
11709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11710 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11711 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11712 # It is most probably a Windows format PATH printed by
11713 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11714 # path with ; separators, and with drive letters. We can handle the
11715 # drive letters (cygwin fileutils understands them), so leave them,
11716 # especially as we might pass files found there to a mingw objdump,
11717 # which wouldn't understand a cygwinified path. Ahh.
11718 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11720 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11724 # pw32 DLLs use 'pw' prefix rather than 'lib'
11725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11734 dynamic_linker='Win32 ld.exe'
11735 # FIXME: first we should search . and the directory the executable is in
11739 darwin* | rhapsody*)
11740 dynamic_linker="$host_os dyld"
11741 version_type=darwin
11744 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11745 soname_spec='${libname}${release}${major}$shared_ext'
11746 shlibpath_overrides_runpath=yes
11747 shlibpath_var=DYLD_LIBRARY_PATH
11748 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11767 freebsd* | dragonfly*)
11768 # DragonFly does not have aout. When/if they implement a new
11769 # versioning mechanism, adjust this.
11770 if test -x /usr/bin/objformat; then
11771 objformat=`/usr/bin/objformat`
11774 freebsd[123]*) objformat=aout ;;
11775 *) objformat=elf ;;
11778 version_type=freebsd-$objformat
11779 case $version_type in
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11790 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=yes
11795 freebsd3.[01]* | freebsdelf3.[01]*)
11796 shlibpath_overrides_runpath=yes
11797 hardcode_into_libs=yes
11799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11801 shlibpath_overrides_runpath=no
11802 hardcode_into_libs=yes
11804 *) # from 4.6 on, and DragonFly
11805 shlibpath_overrides_runpath=yes
11806 hardcode_into_libs=yes
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 hardcode_into_libs=yes
11821 hpux9* | hpux10* | hpux11*)
11822 # Give a soname corresponding to the major version so that dld.sl refuses to
11823 # link against other versions.
11830 hardcode_into_libs=yes
11831 dynamic_linker="$host_os dld.so"
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835 soname_spec='${libname}${release}${shared_ext}$major'
11836 if test "X$HPUX_IA64_MODE" = X32; then
11837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11845 hardcode_into_libs=yes
11846 dynamic_linker="$host_os dld.sl"
11847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 soname_spec='${libname}${release}${shared_ext}$major'
11851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11856 dynamic_linker="$host_os dld.sl"
11857 shlibpath_var=SHLIB_PATH
11858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 soname_spec='${libname}${release}${shared_ext}$major'
11863 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11864 postinstall_cmds='chmod 555 $lib'
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=no
11876 hardcode_into_libs=yes
11879 irix5* | irix6* | nonstopux*)
11881 nonstopux*) version_type=nonstopux ;;
11883 if test "$lt_cv_prog_gnu_ld" = yes; then
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11894 irix5* | nonstopux*)
11895 libsuff= shlibsuff=
11898 case $LD in # libtool.m4 will add one of these switches to LD
11899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11900 libsuff= shlibsuff= libmagic=32-bit;;
11901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11902 libsuff=32 shlibsuff=N32 libmagic=N32;;
11903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11905 *) libsuff= shlibsuff= libmagic=never-match;;
11909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11910 shlibpath_overrides_runpath=no
11911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11913 hardcode_into_libs=yes
11916 # No shared lib support for Linux oldld, aout, or coff.
11917 linux*oldld* | linux*aout* | linux*coff*)
11921 # This must be Linux ELF.
11922 linux* | k*bsd*-gnu)
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 shlibpath_overrides_runpath=no
11931 # Some binutils ld are patched to set DT_RUNPATH
11932 save_LDFLAGS=$LDFLAGS
11933 save_libdir=$libdir
11934 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11935 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11947 if ac_fn_c_try_link "$LINENO"; then :
11948 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11949 shlibpath_overrides_runpath=yes
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LDFLAGS=$save_LDFLAGS
11955 libdir=$save_libdir
11957 # This implies no fast_install, which is unacceptable.
11958 # Some rework will be needed to allow for fast_install
11959 # before this can be enabled.
11960 hardcode_into_libs=yes
11962 # Append ld.so.conf contents to the search path
11963 if test -f /etc/ld.so.conf; then
11964 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11968 # We used to test for /lib/ld.so.1 and disable shared libraries on
11969 # powerpc, because MkLinux only supported shared libraries with the
11970 # GNU dynamic linker. Since this was broken with cross compilers,
11971 # most powerpc-linux boxes support dynamic linking these days and
11972 # people can always --disable-shared, the test was removed, and we
11973 # assume the GNU/Linux dynamic linker is in use.
11974 dynamic_linker='GNU/Linux ld.so'
11981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11984 dynamic_linker='NetBSD (a.out) ld.so'
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 dynamic_linker='NetBSD ld.elf_so'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath=yes
11992 hardcode_into_libs=yes
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 shlibpath_overrides_runpath=yes
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 shlibpath_overrides_runpath=no
12010 hardcode_into_libs=yes
12011 dynamic_linker='ldqnx.so'
12016 sys_lib_dlsearch_path_spec="/usr/lib"
12018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12021 *) need_version=no ;;
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12028 openbsd2.[89] | openbsd2.[89].*)
12029 shlibpath_overrides_runpath=no
12032 shlibpath_overrides_runpath=yes
12036 shlibpath_overrides_runpath=yes
12041 libname_spec='$name'
12044 library_names_spec='$libname${shared_ext} $libname.a'
12045 dynamic_linker='OS/2 ld.exe'
12046 shlibpath_var=LIBPATH
12049 osf3* | osf4* | osf5*)
12053 soname_spec='${libname}${release}${shared_ext}$major'
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055 shlibpath_var=LD_LIBRARY_PATH
12056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=yes
12072 hardcode_into_libs=yes
12073 # ldd complains unless libraries are executable
12074 postinstall_cmds='chmod +x $lib'
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12081 shlibpath_var=LD_LIBRARY_PATH
12082 shlibpath_overrides_runpath=yes
12083 if test "$with_gnu_ld" = yes; then
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 shlibpath_var=LD_LIBRARY_PATH
12094 case $host_vendor in
12096 shlibpath_overrides_runpath=no
12098 runpath_var=LD_RUN_PATH
12106 shlibpath_overrides_runpath=no
12107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12113 if test -d /usr/nec ;then
12115 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12116 soname_spec='$libname${shared_ext}.$major'
12117 shlibpath_var=LD_LIBRARY_PATH
12121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12122 version_type=freebsd-elf
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12126 soname_spec='${libname}${release}${shared_ext}$major'
12127 shlibpath_var=LD_LIBRARY_PATH
12128 shlibpath_overrides_runpath=yes
12129 hardcode_into_libs=yes
12130 if test "$with_gnu_ld" = yes; then
12131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12133 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12136 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12140 sys_lib_dlsearch_path_spec='/usr/lib'
12144 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 shlibpath_var=LD_LIBRARY_PATH
12150 shlibpath_overrides_runpath=no
12151 hardcode_into_libs=yes
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 soname_spec='${libname}${release}${shared_ext}$major'
12158 shlibpath_var=LD_LIBRARY_PATH
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12166 $as_echo "$dynamic_linker" >&6; }
12167 test "$dynamic_linker" = no && can_build_shared=no
12169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12170 if test "$GCC" = yes; then
12171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12174 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12177 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12178 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12270 if test -n "$hardcode_libdir_flag_spec" ||
12271 test -n "$runpath_var" ||
12272 test "X$hardcode_automatic" = "Xyes" ; then
12274 # We can hardcode non-existent directories.
12275 if test "$hardcode_direct" != no &&
12276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12277 # have to relink, otherwise we might link with an installed library
12278 # when we should be linking with a yet-to-be-installed one
12279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12280 test "$hardcode_minus_L" != no; then
12281 # Linking always hardcodes the temporary library directory.
12282 hardcode_action=relink
12284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12285 hardcode_action=immediate
12288 # We cannot hardcode anything, or else we can only hardcode existing
12290 hardcode_action=unsupported
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12293 $as_echo "$hardcode_action" >&6; }
12295 if test "$hardcode_action" = relink ||
12296 test "$inherit_rpath" = yes; then
12297 # Fast installation is not supported
12298 enable_fast_install=no
12299 elif test "$shlibpath_overrides_runpath" = yes ||
12300 test "$enable_shared" = no; then
12301 # Fast installation is not necessary
12302 enable_fast_install=needless
12310 if test "x$enable_dlopen" != xyes; then
12311 enable_dlopen=unknown
12312 enable_dlopen_self=unknown
12313 enable_dlopen_self_static=unknown
12320 lt_cv_dlopen="load_add_on"
12322 lt_cv_dlopen_self=yes
12325 mingw* | pw32* | cegcc*)
12326 lt_cv_dlopen="LoadLibrary"
12331 lt_cv_dlopen="dlopen"
12336 # if libdl is installed we need to link against it
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 ac_check_lib_save_LIBS=$LIBS
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12362 if ac_fn_c_try_link "$LINENO"; then :
12363 ac_cv_lib_dl_dlopen=yes
12365 ac_cv_lib_dl_dlopen=no
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12373 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12377 lt_cv_dlopen="dyld"
12379 lt_cv_dlopen_self=yes
12386 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12387 if test "x$ac_cv_func_shl_load" = x""yes; then :
12388 lt_cv_dlopen="shl_load"
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12391 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12392 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12395 ac_check_lib_save_LIBS=$LIBS
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12410 return shl_load ();
12415 if ac_fn_c_try_link "$LINENO"; then :
12416 ac_cv_lib_dld_shl_load=yes
12418 ac_cv_lib_dld_shl_load=no
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12425 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12426 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12429 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12430 if test "x$ac_cv_func_dlopen" = x""yes; then :
12431 lt_cv_dlopen="dlopen"
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12434 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12435 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12438 ac_check_lib_save_LIBS=$LIBS
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 ac_cv_lib_dl_dlopen=yes
12461 ac_cv_lib_dl_dlopen=no
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12468 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12469 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12473 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12474 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12477 ac_check_lib_save_LIBS=$LIBS
12478 LIBS="-lsvld $LIBS"
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12497 if ac_fn_c_try_link "$LINENO"; then :
12498 ac_cv_lib_svld_dlopen=yes
12500 ac_cv_lib_svld_dlopen=no
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12507 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12508 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12509 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12512 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12513 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12516 ac_check_lib_save_LIBS=$LIBS
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 /* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
12531 return dld_link ();
12536 if ac_fn_c_try_link "$LINENO"; then :
12537 ac_cv_lib_dld_dld_link=yes
12539 ac_cv_lib_dld_dld_link=no
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12546 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12547 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12569 if test "x$lt_cv_dlopen" != xno; then
12575 case $lt_cv_dlopen in
12577 save_CPPFLAGS="$CPPFLAGS"
12578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12580 save_LDFLAGS="$LDFLAGS"
12581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12584 LIBS="$lt_cv_dlopen_libs $LIBS"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12587 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12588 if test "${lt_cv_dlopen_self+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12591 if test "$cross_compiling" = yes; then :
12592 lt_cv_dlopen_self=cross
12594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12595 lt_status=$lt_dlunknown
12596 cat > conftest.$ac_ext <<_LT_EOF
12597 #line 12597 "configure"
12598 #include "confdefs.h"
12607 # define LT_DLGLOBAL RTLD_GLOBAL
12610 # define LT_DLGLOBAL DL_GLOBAL
12612 # define LT_DLGLOBAL 0
12616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12617 find out it does not work in some platform. */
12618 #ifndef LT_DLLAZY_OR_NOW
12620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12623 # define LT_DLLAZY_OR_NOW DL_LAZY
12626 # define LT_DLLAZY_OR_NOW RTLD_NOW
12629 # define LT_DLLAZY_OR_NOW DL_NOW
12631 # define LT_DLLAZY_OR_NOW 0
12638 void fnord() { int i=42;}
12641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12642 int status = $lt_dlunknown;
12646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12648 /* dlclose (self); */
12656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12657 (eval $ac_link) 2>&5
12659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12660 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12661 (./conftest; exit; ) >&5 2>/dev/null
12663 case x$lt_status in
12664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12666 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12669 # compilation failed
12670 lt_cv_dlopen_self=no
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12678 $as_echo "$lt_cv_dlopen_self" >&6; }
12680 if test "x$lt_cv_dlopen_self" = xyes; then
12681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12683 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12684 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12685 $as_echo_n "(cached) " >&6
12687 if test "$cross_compiling" = yes; then :
12688 lt_cv_dlopen_self_static=cross
12690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12691 lt_status=$lt_dlunknown
12692 cat > conftest.$ac_ext <<_LT_EOF
12693 #line 12693 "configure"
12694 #include "confdefs.h"
12703 # define LT_DLGLOBAL RTLD_GLOBAL
12706 # define LT_DLGLOBAL DL_GLOBAL
12708 # define LT_DLGLOBAL 0
12712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12713 find out it does not work in some platform. */
12714 #ifndef LT_DLLAZY_OR_NOW
12716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12719 # define LT_DLLAZY_OR_NOW DL_LAZY
12722 # define LT_DLLAZY_OR_NOW RTLD_NOW
12725 # define LT_DLLAZY_OR_NOW DL_NOW
12727 # define LT_DLLAZY_OR_NOW 0
12734 void fnord() { int i=42;}
12737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12738 int status = $lt_dlunknown;
12742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12744 /* dlclose (self); */
12752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12753 (eval $ac_link) 2>&5
12755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12756 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12757 (./conftest; exit; ) >&5 2>/dev/null
12759 case x$lt_status in
12760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12762 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12765 # compilation failed
12766 lt_cv_dlopen_self_static=no
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12774 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12777 CPPFLAGS="$save_CPPFLAGS"
12778 LDFLAGS="$save_LDFLAGS"
12783 case $lt_cv_dlopen_self in
12784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12785 *) enable_dlopen_self=unknown ;;
12788 case $lt_cv_dlopen_self_static in
12789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12790 *) enable_dlopen_self_static=unknown ;;
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12813 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12814 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12816 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818 $as_echo "yes" >&6; }
12820 # FIXME - insert some real tests, host_os isn't really good enough
12823 if test -n "$STRIP" ; then
12824 striplib="$STRIP -x"
12825 old_striplib="$STRIP -S"
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827 $as_echo "yes" >&6; }
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12851 # Report which library types will actually be built
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12853 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12855 $as_echo "$can_build_shared" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12858 $as_echo_n "checking whether to build shared libraries... " >&6; }
12859 test "$can_build_shared" = "no" && enable_shared=no
12861 # On AIX, shared libraries and static libraries use the same namespace, and
12862 # are all built from PIC.
12865 test "$enable_shared" = yes && enable_static=no
12866 if test -n "$RANLIB"; then
12867 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12868 postinstall_cmds='$RANLIB $lib'
12873 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12874 test "$enable_shared" = yes && enable_static=no
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12879 $as_echo "$enable_shared" >&6; }
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12882 $as_echo_n "checking whether to build static libraries... " >&6; }
12883 # Make sure either enable_shared or enable_static is yes.
12884 test "$enable_shared" = yes || enable_static=yes
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12886 $as_echo "$enable_static" >&6; }
12893 ac_cpp='$CPP $CPPFLAGS'
12894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12912 ac_config_commands="$ac_config_commands libtool"
12917 # Only expand once:
12921 if test -n "$ac_tool_prefix"; then
12922 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12923 set dummy ${ac_tool_prefix}windres; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if test "${ac_cv_prog_RC+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12929 if test -n "$RC"; then
12930 ac_cv_prog_RC="$RC" # Let the user override the test.
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12936 test -z "$as_dir" && as_dir=.
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12939 ac_cv_prog_RC="${ac_tool_prefix}windres"
12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 if test -n "$RC"; then
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12952 $as_echo "$RC" >&6; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12960 if test -z "$ac_cv_prog_RC"; then
12962 # Extract the first word of "windres", so it can be a program name with args.
12963 set dummy windres; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12969 if test -n "$ac_ct_RC"; then
12970 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
12978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12979 ac_cv_prog_ac_ct_RC="windres"
12980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12990 if test -n "$ac_ct_RC"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12992 $as_echo "$ac_ct_RC" >&6; }
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995 $as_echo "no" >&6; }
12998 if test "x$ac_ct_RC" = x; then
13001 case $cross_compiling:$ac_tool_warned in
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13005 ac_tool_warned=yes ;;
13010 RC="$ac_cv_prog_RC"
13016 # Source file extension for RC test sources.
13019 # Object file extension for compiled RC test sources.
13023 # Code to be used in simple compile tests
13024 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13026 # Code to be used in simple link tests
13027 lt_simple_link_test_code="$lt_simple_compile_test_code"
13029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13036 # If no C compiler was specified, use CC.
13039 # If no C compiler flags were specified, use CFLAGS.
13040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13042 # Allow CC to be a program name with arguments.
13046 # save warnings/boilerplate of simple test code
13047 ac_outfile=conftest.$ac_objext
13048 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13050 _lt_compiler_boilerplate=`cat conftest.err`
13053 ac_outfile=conftest.$ac_objext
13054 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13056 _lt_linker_boilerplate=`cat conftest.err`
13060 # Allow CC to be a program name with arguments.
13067 for cc_temp in $compiler""; do
13069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13075 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13077 lt_cv_prog_compiler_c_o_RC=yes
13079 if test -n "$compiler"; then
13088 ac_cpp='$CPP $CPPFLAGS'
13089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13097 mingw* | cygwin*) is_woe32=yes ;;
13100 if test $is_woe32 = yes; then
13114 LIBC_FATAL_STDERR_=1
13115 export LIBC_FATAL_STDERR_
13117 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13118 # for constant arguments. Useless!
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13120 $as_echo_n "checking for working alloca.h... " >&6; }
13121 if test "${ac_cv_working_alloca_h+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13126 #include <alloca.h>
13130 char *p = (char *) alloca (2 * sizeof (int));
13136 if ac_fn_c_try_link "$LINENO"; then :
13137 ac_cv_working_alloca_h=yes
13139 ac_cv_working_alloca_h=no
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13145 $as_echo "$ac_cv_working_alloca_h" >&6; }
13146 if test $ac_cv_working_alloca_h = yes; then
13148 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13153 $as_echo_n "checking for alloca... " >&6; }
13154 if test "${ac_cv_func_alloca_works+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13160 # define alloca __builtin_alloca
13163 # include <malloc.h>
13164 # define alloca _alloca
13166 # ifdef HAVE_ALLOCA_H
13167 # include <alloca.h>
13172 # ifndef alloca /* predefined by HP cc +Olibcalls */
13183 char *p = (char *) alloca (1);
13189 if ac_fn_c_try_link "$LINENO"; then :
13190 ac_cv_func_alloca_works=yes
13192 ac_cv_func_alloca_works=no
13194 rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13198 $as_echo "$ac_cv_func_alloca_works" >&6; }
13200 if test $ac_cv_func_alloca_works = yes; then
13202 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13205 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13206 # that cause trouble. Some versions do not even contain alloca or
13207 # contain a buggy version. If you still want to use their alloca,
13208 # use ar to extract alloca.o from them instead of compiling alloca.c.
13214 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13216 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13220 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13221 if test "${ac_cv_os_cray+set}" = set; then :
13222 $as_echo_n "(cached) " >&6
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226 #if defined CRAY && ! defined CRAY2
13233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13234 $EGREP "webecray" >/dev/null 2>&1; then :
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13243 $as_echo "$ac_cv_os_cray" >&6; }
13244 if test $ac_cv_os_cray = yes; then
13245 for ac_func in _getb67 GETB67 getb67; do
13246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13248 eval as_val=\$$as_ac_var
13249 if test "x$as_val" = x""yes; then :
13251 cat >>confdefs.h <<_ACEOF
13252 #define CRAY_STACKSEG_END $ac_func
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13262 $as_echo_n "checking stack direction for C alloca... " >&6; }
13263 if test "${ac_cv_c_stack_direction+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13266 if test "$cross_compiling" = yes; then :
13267 ac_cv_c_stack_direction=0
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271 $ac_includes_default
13273 find_stack_direction ()
13275 static char *addr = 0;
13280 return find_stack_direction ();
13283 return (&dummy > addr) ? 1 : -1;
13289 return find_stack_direction () < 0;
13292 if ac_fn_c_try_run "$LINENO"; then :
13293 ac_cv_c_stack_direction=1
13295 ac_cv_c_stack_direction=-1
13297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13298 conftest.$ac_objext conftest.beam conftest.$ac_ext
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13303 $as_echo "$ac_cv_c_stack_direction" >&6; }
13304 cat >>confdefs.h <<_ACEOF
13305 #define STACK_DIRECTION $ac_cv_c_stack_direction
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13314 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13315 if test "${gl_cv_have_include_next+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13318 rm -rf conftestd1a conftestd1b conftestd2
13319 mkdir conftestd1a conftestd1b conftestd2
13320 cat <<EOF > conftestd1a/conftest.h
13321 #define DEFINED_IN_CONFTESTD1
13322 #include_next <conftest.h>
13323 #ifdef DEFINED_IN_CONFTESTD2
13326 #error "include_next doesn't work"
13329 cat <<EOF > conftestd1b/conftest.h
13330 #define DEFINED_IN_CONFTESTD1
13332 #include_next <conftest.h>
13333 #ifdef DEFINED_IN_CONFTESTD2
13336 #error "include_next doesn't work"
13339 cat <<EOF > conftestd2/conftest.h
13340 #ifndef DEFINED_IN_CONFTESTD1
13341 #error "include_next test doesn't work"
13343 #define DEFINED_IN_CONFTESTD2
13345 gl_save_CPPFLAGS="$CPPFLAGS"
13346 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 #include <conftest.h>
13351 if ac_fn_c_try_compile "$LINENO"; then :
13352 gl_cv_have_include_next=yes
13354 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 #include <conftest.h>
13359 if ac_fn_c_try_compile "$LINENO"; then :
13360 gl_cv_have_include_next=buggy
13362 gl_cv_have_include_next=no
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 CPPFLAGS="$gl_save_CPPFLAGS"
13369 rm -rf conftestd1a conftestd1b conftestd2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13373 $as_echo "$gl_cv_have_include_next" >&6; }
13374 PRAGMA_SYSTEM_HEADER=
13375 if test $gl_cv_have_include_next = yes; then
13376 INCLUDE_NEXT=include_next
13377 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13378 if test -n "$GCC"; then
13379 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13382 if test $gl_cv_have_include_next = buggy; then
13383 INCLUDE_NEXT=include
13384 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13386 INCLUDE_NEXT=include
13387 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13397 for ac_header in $ac_header_list
13399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13402 eval as_val=\$$as_ac_Header
13403 if test "x$as_val" = x""yes; then :
13404 cat >>confdefs.h <<_ACEOF
13405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
13417 $as_echo_n "checking for complete errno.h... " >&6; }
13418 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13426 #if !defined ENOMSG
13432 #if !defined ENOLINK
13435 #if !defined EPROTO
13438 #if !defined EMULTIHOP
13441 #if !defined EBADMSG
13444 #if !defined EOVERFLOW
13447 #if !defined ENOTSUP
13450 #if !defined ESTALE
13453 #if !defined ECANCELED
13458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13459 $EGREP "booboo" >/dev/null 2>&1; then :
13460 gl_cv_header_errno_h_complete=no
13462 gl_cv_header_errno_h_complete=yes
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
13469 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
13470 if test $gl_cv_header_errno_h_complete = yes; then
13479 if test $gl_cv_have_include_next = yes; then
13480 gl_cv_next_errno_h='<'errno.h'>'
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
13483 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
13484 if test "${gl_cv_next_errno_h+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13488 if test $ac_cv_header_errno_h = yes; then
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13495 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13496 *) gl_absname_cpp="$ac_cpp" ;;
13498 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13499 sed -n '\#/errno.h#{
13500 s#.*"\(.*/errno.h\)".*#\1#
13506 gl_cv_next_errno_h='<'errno.h'>'
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
13511 $as_echo "$gl_cv_next_errno_h" >&6; }
13513 NEXT_ERRNO_H=$gl_cv_next_errno_h
13515 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13516 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13517 gl_next_as_first_directive='<'errno.h'>'
13519 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13520 gl_next_as_first_directive=$gl_cv_next_errno_h
13522 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
13530 if test -n "$ERRNO_H"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
13532 $as_echo_n "checking for EMULTIHOP value... " >&6; }
13533 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547 $EGREP "yes" >/dev/null 2>&1; then :
13548 gl_cv_header_errno_h_EMULTIHOP=yes
13550 gl_cv_header_errno_h_EMULTIHOP=no
13554 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13558 #define _XOPEN_SOURCE_EXTENDED 1
13565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13566 $EGREP "yes" >/dev/null 2>&1; then :
13567 gl_cv_header_errno_h_EMULTIHOP=hidden
13571 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
13572 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
13573 #define _XOPEN_SOURCE_EXTENDED 1
13575 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13577 #include <stdlib.h>
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
13587 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
13588 case $gl_cv_header_errno_h_EMULTIHOP in
13590 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
13593 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
13601 if test -n "$ERRNO_H"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
13603 $as_echo_n "checking for ENOLINK value... " >&6; }
13604 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
13605 $as_echo_n "(cached) " >&6
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13618 $EGREP "yes" >/dev/null 2>&1; then :
13619 gl_cv_header_errno_h_ENOLINK=yes
13621 gl_cv_header_errno_h_ENOLINK=no
13625 if test $gl_cv_header_errno_h_ENOLINK = no; then
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13629 #define _XOPEN_SOURCE_EXTENDED 1
13636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13637 $EGREP "yes" >/dev/null 2>&1; then :
13638 gl_cv_header_errno_h_ENOLINK=hidden
13642 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13643 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
13644 #define _XOPEN_SOURCE_EXTENDED 1
13646 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13648 #include <stdlib.h>
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
13658 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13659 case $gl_cv_header_errno_h_ENOLINK in
13661 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13664 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13672 if test -n "$ERRNO_H"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
13674 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13675 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "yes" >/dev/null 2>&1; then :
13690 gl_cv_header_errno_h_EOVERFLOW=yes
13692 gl_cv_header_errno_h_EOVERFLOW=no
13696 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 #define _XOPEN_SOURCE_EXTENDED 1
13707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13708 $EGREP "yes" >/dev/null 2>&1; then :
13709 gl_cv_header_errno_h_EOVERFLOW=hidden
13713 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13714 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
13715 #define _XOPEN_SOURCE_EXTENDED 1
13717 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13719 #include <stdlib.h>
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13729 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13730 case $gl_cv_header_errno_h_EOVERFLOW in
13732 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13735 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13795 HAVE_DECL_FLOORF=1;
13796 HAVE_DECL_FLOORL=1;
13797 HAVE_DECL_FREXPL=1;
13798 HAVE_DECL_LDEXPL=1;
13802 HAVE_DECL_ROUNDF=1;
13803 HAVE_DECL_ROUNDL=1;
13808 HAVE_DECL_TRUNCF=1;
13809 HAVE_DECL_TRUNCL=1;
13816 REPLACE_HUGE_VAL=0;
13817 REPLACE_ISFINITE=0;
13826 REPLACE_SIGNBIT_USING_GCC=0;
13830 if test "X$prefix" = "XNONE"; then
13831 acl_final_prefix="$ac_default_prefix"
13833 acl_final_prefix="$prefix"
13835 if test "X$exec_prefix" = "XNONE"; then
13836 acl_final_exec_prefix='${prefix}'
13838 acl_final_exec_prefix="$exec_prefix"
13840 acl_save_prefix="$prefix"
13841 prefix="$acl_final_prefix"
13842 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13843 prefix="$acl_save_prefix"
13846 # Check whether --with-gnu-ld was given.
13847 if test "${with_gnu_ld+set}" = set; then :
13848 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13853 # Prepare PATH_SEPARATOR.
13854 # The user is always right.
13855 if test "${PATH_SEPARATOR+set}" != set; then
13856 echo "#! /bin/sh" >conf$$.sh
13857 echo "exit 0" >>conf$$.sh
13859 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13867 if test "$GCC" = yes; then
13868 # Check if gcc -print-prog-name=ld gives a path.
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13870 $as_echo_n "checking for ld used by GCC... " >&6; }
13873 # gcc leaves a trailing carriage return which upsets mingw
13874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13879 # Accept absolute paths.
13880 [\\/]* | [A-Za-z]:[\\/]*)
13881 re_direlt='/[^/][^/]*/\.\./'
13882 # Canonicalize the path of ld
13883 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13884 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13885 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13887 test -z "$LD" && LD="$ac_prog"
13890 # If it fails, then pretend we aren't using GCC.
13894 # If it is relative, then search for the first ld in PATH.
13895 with_gnu_ld=unknown
13898 elif test "$with_gnu_ld" = yes; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13900 $as_echo_n "checking for GNU ld... " >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13903 $as_echo_n "checking for non-GNU ld... " >&6; }
13905 if test "${acl_cv_path_LD+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13908 if test -z "$LD"; then
13909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13910 for ac_dir in $PATH; do
13911 test -z "$ac_dir" && ac_dir=.
13912 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13913 acl_cv_path_LD="$ac_dir/$ac_prog"
13914 # Check to see if the program is GNU ld. I'd rather use --version,
13915 # but apparently some GNU ld's only accept -v.
13916 # Break only if it was the GNU/non-GNU ld that we prefer.
13917 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13918 *GNU* | *'with BFD'*)
13919 test "$with_gnu_ld" != no && break ;;
13921 test "$with_gnu_ld" != yes && break ;;
13927 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13931 LD="$acl_cv_path_LD"
13932 if test -n "$LD"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13934 $as_echo "$LD" >&6; }
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13939 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13942 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13945 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13946 case `$LD -v 2>&1 </dev/null` in
13947 *GNU* | *'with BFD'*)
13948 acl_cv_prog_gnu_ld=yes ;;
13950 acl_cv_prog_gnu_ld=no ;;
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13954 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13955 with_gnu_ld=$acl_cv_prog_gnu_ld
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13961 $as_echo_n "checking for shared library run path origin... " >&6; }
13962 if test "${acl_cv_rpath+set}" = set; then :
13963 $as_echo_n "(cached) " >&6
13966 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13967 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13969 rm -f ./conftest.sh
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13974 $as_echo "$acl_cv_rpath" >&6; }
13976 acl_libext="$acl_cv_libext"
13977 acl_shlibext="$acl_cv_shlibext"
13978 acl_libname_spec="$acl_cv_libname_spec"
13979 acl_library_names_spec="$acl_cv_library_names_spec"
13980 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13981 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13982 acl_hardcode_direct="$acl_cv_hardcode_direct"
13983 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13984 # Check whether --enable-rpath was given.
13985 if test "${enable_rpath+set}" = set; then :
13986 enableval=$enable_rpath; :
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13999 $as_echo_n "checking for 64-bit host... " >&6; }
14000 if test "${gl_cv_solaris_64bit+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14012 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14013 gl_cv_solaris_64bit=yes
14015 gl_cv_solaris_64bit=no
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14022 $as_echo "$gl_cv_solaris_64bit" >&6; }
14023 if test $gl_cv_solaris_64bit = yes; then
14024 acl_libdirstem=lib/64
14025 case "$host_cpu" in
14026 sparc*) acl_libdirstem2=lib/sparcv9 ;;
14027 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14032 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14033 if test -n "$searchpath"; then
14034 acl_save_IFS="${IFS= }"; IFS=":"
14035 for searchdir in $searchpath; do
14036 if test -d "$searchdir"; then
14037 case "$searchdir" in
14038 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14040 # Better ignore directories of this form. They are misleading.
14042 *) searchdir=`cd "$searchdir" && pwd`
14043 case "$searchdir" in
14044 */lib64 ) acl_libdirstem=lib64 ;;
14049 IFS="$acl_save_IFS"
14053 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14068 acl_save_prefix="$prefix"
14069 prefix="$acl_final_prefix"
14070 acl_save_exec_prefix="$exec_prefix"
14071 exec_prefix="$acl_final_exec_prefix"
14073 eval additional_includedir=\"$includedir\"
14074 eval additional_libdir=\"$libdir\"
14076 exec_prefix="$acl_save_exec_prefix"
14077 prefix="$acl_save_prefix"
14080 # Check whether --with-libiconv-prefix was given.
14081 if test "${with_libiconv_prefix+set}" = set; then :
14082 withval=$with_libiconv_prefix;
14083 if test "X$withval" = "Xno"; then
14086 if test "X$withval" = "X"; then
14088 acl_save_prefix="$prefix"
14089 prefix="$acl_final_prefix"
14090 acl_save_exec_prefix="$exec_prefix"
14091 exec_prefix="$acl_final_exec_prefix"
14093 eval additional_includedir=\"$includedir\"
14094 eval additional_libdir=\"$libdir\"
14096 exec_prefix="$acl_save_exec_prefix"
14097 prefix="$acl_save_prefix"
14100 additional_includedir="$withval/include"
14101 additional_libdir="$withval/$acl_libdirstem"
14102 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14103 && ! test -d "$withval/$acl_libdirstem"; then
14104 additional_libdir="$withval/$acl_libdirstem2"
14118 names_already_handled=
14119 names_next_round='iconv '
14120 while test -n "$names_next_round"; do
14121 names_this_round="$names_next_round"
14123 for name in $names_this_round; do
14125 for n in $names_already_handled; do
14126 if test "$n" = "$name"; then
14127 already_handled=yes
14131 if test -z "$already_handled"; then
14132 names_already_handled="$names_already_handled $name"
14133 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14134 eval value=\"\$HAVE_LIB$uppername\"
14135 if test -n "$value"; then
14136 if test "$value" = yes; then
14137 eval value=\"\$LIB$uppername\"
14138 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14139 eval value=\"\$LTLIB$uppername\"
14140 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14149 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14150 if test -n "$acl_shlibext"; then
14151 shrext=".$acl_shlibext" # typically: shrext=.so
14155 if test $use_additional = yes; then
14156 dir="$additional_libdir"
14157 if test -n "$acl_shlibext"; then
14158 if test -f "$dir/$libname$shrext"; then
14160 found_so="$dir/$libname$shrext"
14162 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14163 ver=`(cd "$dir" && \
14164 for f in "$libname$shrext".*; do echo "$f"; done \
14165 | sed -e "s,^$libname$shrext\\\\.,," \
14166 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14167 | sed 1q ) 2>/dev/null`
14168 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14170 found_so="$dir/$libname$shrext.$ver"
14173 eval library_names=\"$acl_library_names_spec\"
14174 for f in $library_names; do
14175 if test -f "$dir/$f"; then
14184 if test "X$found_dir" = "X"; then
14185 if test -f "$dir/$libname.$acl_libext"; then
14187 found_a="$dir/$libname.$acl_libext"
14190 if test "X$found_dir" != "X"; then
14191 if test -f "$dir/$libname.la"; then
14192 found_la="$dir/$libname.la"
14196 if test "X$found_dir" = "X"; then
14197 for x in $LDFLAGS $LTLIBICONV; do
14199 acl_save_prefix="$prefix"
14200 prefix="$acl_final_prefix"
14201 acl_save_exec_prefix="$exec_prefix"
14202 exec_prefix="$acl_final_exec_prefix"
14204 exec_prefix="$acl_save_exec_prefix"
14205 prefix="$acl_save_prefix"
14209 dir=`echo "X$x" | sed -e 's/^X-L//'`
14210 if test -n "$acl_shlibext"; then
14211 if test -f "$dir/$libname$shrext"; then
14213 found_so="$dir/$libname$shrext"
14215 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14216 ver=`(cd "$dir" && \
14217 for f in "$libname$shrext".*; do echo "$f"; done \
14218 | sed -e "s,^$libname$shrext\\\\.,," \
14219 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14220 | sed 1q ) 2>/dev/null`
14221 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14223 found_so="$dir/$libname$shrext.$ver"
14226 eval library_names=\"$acl_library_names_spec\"
14227 for f in $library_names; do
14228 if test -f "$dir/$f"; then
14237 if test "X$found_dir" = "X"; then
14238 if test -f "$dir/$libname.$acl_libext"; then
14240 found_a="$dir/$libname.$acl_libext"
14243 if test "X$found_dir" != "X"; then
14244 if test -f "$dir/$libname.la"; then
14245 found_la="$dir/$libname.la"
14250 if test "X$found_dir" != "X"; then
14255 if test "X$found_dir" != "X"; then
14256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14257 if test "X$found_so" != "X"; then
14258 if test "$enable_rpath" = no \
14259 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14260 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14264 for x in $ltrpathdirs; do
14265 if test "X$x" = "X$found_dir"; then
14270 if test -z "$haveit"; then
14271 ltrpathdirs="$ltrpathdirs $found_dir"
14273 if test "$acl_hardcode_direct" = yes; then
14274 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14276 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14277 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14279 for x in $rpathdirs; do
14280 if test "X$x" = "X$found_dir"; then
14285 if test -z "$haveit"; then
14286 rpathdirs="$rpathdirs $found_dir"
14290 for x in $LDFLAGS $LIBICONV; do
14292 acl_save_prefix="$prefix"
14293 prefix="$acl_final_prefix"
14294 acl_save_exec_prefix="$exec_prefix"
14295 exec_prefix="$acl_final_exec_prefix"
14297 exec_prefix="$acl_save_exec_prefix"
14298 prefix="$acl_save_prefix"
14300 if test "X$x" = "X-L$found_dir"; then
14305 if test -z "$haveit"; then
14306 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14308 if test "$acl_hardcode_minus_L" != no; then
14309 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14311 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14317 if test "X$found_a" != "X"; then
14318 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14320 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14323 additional_includedir=
14324 case "$found_dir" in
14325 */$acl_libdirstem | */$acl_libdirstem/)
14326 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14327 if test "$name" = 'iconv'; then
14328 LIBICONV_PREFIX="$basedir"
14330 additional_includedir="$basedir/include"
14332 */$acl_libdirstem2 | */$acl_libdirstem2/)
14333 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14334 if test "$name" = 'iconv'; then
14335 LIBICONV_PREFIX="$basedir"
14337 additional_includedir="$basedir/include"
14340 if test "X$additional_includedir" != "X"; then
14341 if test "X$additional_includedir" != "X/usr/include"; then
14343 if test "X$additional_includedir" = "X/usr/local/include"; then
14344 if test -n "$GCC"; then
14346 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14350 if test -z "$haveit"; then
14351 for x in $CPPFLAGS $INCICONV; do
14353 acl_save_prefix="$prefix"
14354 prefix="$acl_final_prefix"
14355 acl_save_exec_prefix="$exec_prefix"
14356 exec_prefix="$acl_final_exec_prefix"
14358 exec_prefix="$acl_save_exec_prefix"
14359 prefix="$acl_save_prefix"
14361 if test "X$x" = "X-I$additional_includedir"; then
14366 if test -z "$haveit"; then
14367 if test -d "$additional_includedir"; then
14368 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14374 if test -n "$found_la"; then
14375 save_libdir="$libdir"
14376 case "$found_la" in
14377 */* | *\\*) . "$found_la" ;;
14378 *) . "./$found_la" ;;
14380 libdir="$save_libdir"
14381 for dep in $dependency_libs; do
14384 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14385 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14386 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14388 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14389 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14390 if test -n "$GCC"; then
14392 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14396 if test -z "$haveit"; then
14398 for x in $LDFLAGS $LIBICONV; do
14400 acl_save_prefix="$prefix"
14401 prefix="$acl_final_prefix"
14402 acl_save_exec_prefix="$exec_prefix"
14403 exec_prefix="$acl_final_exec_prefix"
14405 exec_prefix="$acl_save_exec_prefix"
14406 prefix="$acl_save_prefix"
14408 if test "X$x" = "X-L$additional_libdir"; then
14413 if test -z "$haveit"; then
14414 if test -d "$additional_libdir"; then
14415 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14419 for x in $LDFLAGS $LTLIBICONV; do
14421 acl_save_prefix="$prefix"
14422 prefix="$acl_final_prefix"
14423 acl_save_exec_prefix="$exec_prefix"
14424 exec_prefix="$acl_final_exec_prefix"
14426 exec_prefix="$acl_save_exec_prefix"
14427 prefix="$acl_save_prefix"
14429 if test "X$x" = "X-L$additional_libdir"; then
14434 if test -z "$haveit"; then
14435 if test -d "$additional_libdir"; then
14436 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14443 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14444 if test "$enable_rpath" != no; then
14446 for x in $rpathdirs; do
14447 if test "X$x" = "X$dir"; then
14452 if test -z "$haveit"; then
14453 rpathdirs="$rpathdirs $dir"
14456 for x in $ltrpathdirs; do
14457 if test "X$x" = "X$dir"; then
14462 if test -z "$haveit"; then
14463 ltrpathdirs="$ltrpathdirs $dir"
14468 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14471 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14474 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14475 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14481 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14482 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14488 if test "X$rpathdirs" != "X"; then
14489 if test -n "$acl_hardcode_libdir_separator"; then
14491 for found_dir in $rpathdirs; do
14492 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14494 acl_save_libdir="$libdir"
14496 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14497 libdir="$acl_save_libdir"
14498 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14500 for found_dir in $rpathdirs; do
14501 acl_save_libdir="$libdir"
14502 libdir="$found_dir"
14503 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14504 libdir="$acl_save_libdir"
14505 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14509 if test "X$ltrpathdirs" != "X"; then
14510 for found_dir in $ltrpathdirs; do
14511 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14523 REPLACE_ICONV_OPEN=0;
14524 REPLACE_ICONV_UTF=0;
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14530 $as_echo_n "checking for inline... " >&6; }
14531 if test "${ac_cv_c_inline+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14535 for ac_kw in inline __inline__ __inline; do
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 #ifndef __cplusplus
14540 static $ac_kw foo_t static_foo () {return 0; }
14541 $ac_kw foo_t foo () {return 0; }
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546 ac_cv_c_inline=$ac_kw
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 test "$ac_cv_c_inline" != no && break
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14554 $as_echo "$ac_cv_c_inline" >&6; }
14556 case $ac_cv_c_inline in
14559 case $ac_cv_c_inline in
14561 *) ac_val=$ac_cv_c_inline;;
14563 cat >>confdefs.h <<_ACEOF
14564 #ifndef __cplusplus
14565 #define inline $ac_val
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
14573 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
14574 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14578 if test "$cross_compiling" = yes; then :
14579 gl_cv_cc_float_expbit0="word 0 bit 23"
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14585 #include <stddef.h>
14587 #include <string.h>
14589 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14590 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
14591 static unsigned int ored_words[NWORDS];
14592 static unsigned int anded_words[NWORDS];
14593 static void add_to_ored_words (float x)
14597 /* Clear it first, in case
14598 sizeof (float) < sizeof (memory_float). */
14599 memset (&m, 0, sizeof (memory_float));
14601 for (i = 0; i < NWORDS; i++)
14603 ored_words[i] |= m.word[i];
14604 anded_words[i] &= m.word[i];
14610 FILE *fp = fopen ("conftest.out", "w");
14613 for (j = 0; j < NWORDS; j++)
14614 anded_words[j] = ~ (unsigned int) 0;
14615 add_to_ored_words (0.25f);
14616 add_to_ored_words (0.5f);
14617 add_to_ored_words (1.0f);
14618 add_to_ored_words (2.0f);
14619 add_to_ored_words (4.0f);
14620 /* Remove bits that are common (e.g. if representation of the first mantissa
14621 bit is explicit). */
14622 for (j = 0; j < NWORDS; j++)
14623 ored_words[j] &= ~anded_words[j];
14624 /* Now find the nonzero word. */
14625 for (j = 0; j < NWORDS; j++)
14626 if (ored_words[j] != 0)
14631 for (i = j + 1; i < NWORDS; i++)
14632 if (ored_words[i] != 0)
14634 fprintf (fp, "unknown");
14635 return (fclose (fp) != 0);
14638 if ((ored_words[j] >> i) & 1)
14640 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14641 return (fclose (fp) != 0);
14644 fprintf (fp, "unknown");
14645 return (fclose (fp) != 0);
14649 if ac_fn_c_try_run "$LINENO"; then :
14650 gl_cv_cc_float_expbit0=`cat conftest.out`
14652 gl_cv_cc_float_expbit0="unknown"
14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14655 conftest.$ac_objext conftest.beam conftest.$ac_ext
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
14662 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
14663 case "$gl_cv_cc_float_expbit0" in
14665 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14666 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
14668 cat >>confdefs.h <<_ACEOF
14669 #define FLT_EXPBIT0_WORD $word
14673 cat >>confdefs.h <<_ACEOF
14674 #define FLT_EXPBIT0_BIT $bit
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14682 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14683 if test "${ac_cv_c_bigendian+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14686 ac_cv_c_bigendian=unknown
14687 # See if we're dealing with a universal compiler.
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 #ifndef __APPLE_CC__
14691 not a universal capable compiler
14696 if ac_fn_c_try_compile "$LINENO"; then :
14698 # Check for potential -arch flags. It is not universal unless
14699 # there are at least two -arch flags with different values.
14702 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14703 if test -n "$ac_prev"; then
14705 i?86 | x86_64 | ppc | ppc64)
14706 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14709 ac_cv_c_bigendian=universal
14715 elif test "x$ac_word" = "x-arch"; then
14720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 if test $ac_cv_c_bigendian = unknown; then
14722 # See if sys/param.h defines the BYTE_ORDER macro.
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14725 #include <sys/types.h>
14726 #include <sys/param.h>
14731 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14732 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14734 bogus endian macros
14741 if ac_fn_c_try_compile "$LINENO"; then :
14742 # It does; now see whether it defined to BIG_ENDIAN or not.
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 #include <sys/types.h>
14746 #include <sys/param.h>
14751 #if BYTE_ORDER != BIG_ENDIAN
14759 if ac_fn_c_try_compile "$LINENO"; then :
14760 ac_cv_c_bigendian=yes
14762 ac_cv_c_bigendian=no
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768 if test $ac_cv_c_bigendian = unknown; then
14769 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 #include <limits.h>
14777 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14778 bogus endian macros
14785 if ac_fn_c_try_compile "$LINENO"; then :
14786 # It does; now see whether it defined to _BIG_ENDIAN or not.
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 #include <limits.h>
14794 #ifndef _BIG_ENDIAN
14802 if ac_fn_c_try_compile "$LINENO"; then :
14803 ac_cv_c_bigendian=yes
14805 ac_cv_c_bigendian=no
14807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 if test $ac_cv_c_bigendian = unknown; then
14812 # Compile a test program.
14813 if test "$cross_compiling" = yes; then :
14814 # Try to guess by grepping values from an object file.
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817 short int ascii_mm[] =
14818 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14819 short int ascii_ii[] =
14820 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14821 int use_ascii (int i) {
14822 return ascii_mm[i] + ascii_ii[i];
14824 short int ebcdic_ii[] =
14825 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14826 short int ebcdic_mm[] =
14827 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14828 int use_ebcdic (int i) {
14829 return ebcdic_mm[i] + ebcdic_ii[i];
14836 return use_ascii (foo) == use_ebcdic (foo);
14841 if ac_fn_c_try_compile "$LINENO"; then :
14842 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14843 ac_cv_c_bigendian=yes
14845 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14846 if test "$ac_cv_c_bigendian" = unknown; then
14847 ac_cv_c_bigendian=no
14849 # finding both strings is unlikely to happen, but who knows?
14850 ac_cv_c_bigendian=unknown
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14858 $ac_includes_default
14863 /* Are we little or big endian? From Harbison&Steele. */
14867 char c[sizeof (long int)];
14870 return u.c[sizeof (long int) - 1] == 1;
14876 if ac_fn_c_try_run "$LINENO"; then :
14877 ac_cv_c_bigendian=no
14879 ac_cv_c_bigendian=yes
14881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14882 conftest.$ac_objext conftest.beam conftest.$ac_ext
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14888 $as_echo "$ac_cv_c_bigendian" >&6; }
14889 case $ac_cv_c_bigendian in #(
14891 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14897 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14901 as_fn_error "unknown endianness
14902 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14908 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14909 if test "${am_cv_langinfo_codeset+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 #include <langinfo.h>
14918 char* cs = nl_langinfo(CODESET); return !cs;
14923 if ac_fn_c_try_link "$LINENO"; then :
14924 am_cv_langinfo_codeset=yes
14926 am_cv_langinfo_codeset=no
14928 rm -f core conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14933 $as_echo "$am_cv_langinfo_codeset" >&6; }
14934 if test $am_cv_langinfo_codeset = yes; then
14936 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
14943 $as_echo_n "checking for working fcntl.h... " >&6; }
14944 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
14945 $as_echo_n "(cached) " >&6
14947 if test "$cross_compiling" = yes; then :
14948 gl_cv_header_working_fcntl_h=cross-compiling
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #include <sys/types.h>
14953 #include <sys/stat.h>
14954 #include <unistd.h>
14957 #define O_NOATIME 0
14960 #define O_NOFOLLOW 0
14962 static int const constants[] =
14964 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
14965 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
14972 int status = !constants;
14974 static char const sym[] = "conftest.sym";
14975 if (symlink (".", sym) != 0
14976 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
14981 static char const file[] = "confdefs.h";
14982 int fd = open (file, O_RDONLY | O_NOATIME);
14984 struct stat st0, st1;
14986 || fstat (fd, &st0) != 0
14988 || read (fd, &c, 1) != 1
14990 || stat (file, &st1) != 0
14991 || st0.st_atime != st1.st_atime)
14999 if ac_fn_c_try_run "$LINENO"; then :
15000 gl_cv_header_working_fcntl_h=yes
15003 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
15004 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
15005 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
15006 *) gl_cv_header_working_fcntl_h='no';;
15009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15010 conftest.$ac_objext conftest.beam conftest.$ac_ext
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
15015 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
15017 case $gl_cv_header_working_fcntl_h in #(
15018 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_WORKING_O_NOATIME $ac_val
15027 case $gl_cv_header_working_fcntl_h in #(
15028 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
15032 cat >>confdefs.h <<_ACEOF
15033 #define HAVE_WORKING_O_NOFOLLOW $ac_val
15037 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
15038 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
15044 cat >>confdefs.h <<_ACEOF
15045 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
15050 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
15051 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
15052 $as_echo_n "(cached) " >&6
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15057 #include <features.h>
15058 #ifdef __GNU_LIBRARY__
15059 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15066 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15067 ac_cv_gnu_library_2_1=yes
15069 ac_cv_gnu_library_2_1=no
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
15077 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
15079 GLIBC21="$ac_cv_gnu_library_2_1"
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15084 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15085 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
15086 $as_echo_n "(cached) " >&6
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #include <locale.h>
15099 if ac_fn_c_try_link "$LINENO"; then :
15100 gt_cv_val_LC_MESSAGES=yes
15102 gt_cv_val_LC_MESSAGES=no
15104 rm -f core conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
15108 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
15109 if test $gt_cv_val_LC_MESSAGES = yes; then
15111 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15117 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15118 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
15119 $as_echo_n "(cached) " >&6
15121 gt_save_LIBS="$LIBS"
15122 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15125 #include <CoreFoundation/CFPreferences.h>
15129 CFPreferencesCopyAppValue(NULL, NULL)
15134 if ac_fn_c_try_link "$LINENO"; then :
15135 gt_cv_func_CFPreferencesCopyAppValue=yes
15137 gt_cv_func_CFPreferencesCopyAppValue=no
15139 rm -f core conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
15141 LIBS="$gt_save_LIBS"
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15144 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15145 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15147 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15151 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15152 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
15153 $as_echo_n "(cached) " >&6
15155 gt_save_LIBS="$LIBS"
15156 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 #include <CoreFoundation/CFLocale.h>
15163 CFLocaleCopyCurrent();
15168 if ac_fn_c_try_link "$LINENO"; then :
15169 gt_cv_func_CFLocaleCopyCurrent=yes
15171 gt_cv_func_CFLocaleCopyCurrent=no
15173 rm -f core conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS="$gt_save_LIBS"
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15178 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15179 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15181 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15185 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15186 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15192 gl_threads_api=none
15197 if test "$gl_use_threads" != no; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
15199 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
15200 if test "${gl_cv_have_weak+set}" = set; then :
15201 $as_echo_n "(cached) " >&6
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206 extern void xyzzy ();
15216 if ac_fn_c_try_link "$LINENO"; then :
15217 gl_cv_have_weak=maybe
15219 rm -f core conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15221 if test $gl_cv_have_weak = maybe; then
15222 if test "$cross_compiling" = yes; then :
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15226 Extensible Linking Format
15230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15231 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
15232 gl_cv_have_weak="guessing yes"
15234 gl_cv_have_weak="guessing no"
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15247 return (fputs == NULL);
15250 if ac_fn_c_try_run "$LINENO"; then :
15251 gl_cv_have_weak=yes
15255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15256 conftest.$ac_objext conftest.beam conftest.$ac_ext
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
15263 $as_echo "$gl_cv_have_weak" >&6; }
15264 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
15265 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
15266 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
15267 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15268 if test "x$ac_cv_header_pthread_h" = x""yes; then :
15269 gl_have_pthread_h=yes
15271 gl_have_pthread_h=no
15275 if test "$gl_have_pthread_h" = yes; then
15276 # Other possible tests:
15277 # -lpthreads (FSU threads, PCthreads)
15280 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
15281 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
15282 # the second one only in libpthread, and lock.c needs it.
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15285 #include <pthread.h>
15289 pthread_mutex_lock((pthread_mutex_t*)0);
15290 pthread_mutexattr_init((pthread_mutexattr_t*)0);
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 gl_have_pthread=yes
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15300 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
15301 # since it is defined as a macro on OSF/1.)
15302 if test -n "$gl_have_pthread"; then
15303 # The program links fine without libpthread. But it may actually
15304 # need to link with libpthread in order to create multiple threads.
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15306 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15307 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
15308 $as_echo_n "(cached) " >&6
15310 ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-lpthread $LIBS"
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15315 /* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15321 char pthread_kill ();
15325 return pthread_kill ();
15330 if ac_fn_c_try_link "$LINENO"; then :
15331 ac_cv_lib_pthread_pthread_kill=yes
15333 ac_cv_lib_pthread_pthread_kill=no
15335 rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
15337 LIBS=$ac_check_lib_save_LIBS
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15340 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15341 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
15342 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15343 # On Solaris and HP-UX, most pthread functions exist also in libc.
15344 # Therefore pthread_in_use() needs to actually try to create a
15345 # thread: pthread_create from libc will fail, whereas
15346 # pthread_create will actually create a thread.
15350 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
15357 # Some library is needed. Try libpthread and libc_r.
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15359 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15360 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15363 ac_check_lib_save_LIBS=$LIBS
15364 LIBS="-lpthread $LIBS"
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15368 /* Override any GCC internal prototype to avoid an error.
15369 Use char because int might match the return type of a GCC
15370 builtin and then its argument prototype would still apply. */
15374 char pthread_kill ();
15378 return pthread_kill ();
15383 if ac_fn_c_try_link "$LINENO"; then :
15384 ac_cv_lib_pthread_pthread_kill=yes
15386 ac_cv_lib_pthread_pthread_kill=no
15388 rm -f core conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390 LIBS=$ac_check_lib_save_LIBS
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15393 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15394 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
15395 gl_have_pthread=yes
15396 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
15397 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15400 if test -z "$gl_have_pthread"; then
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
15403 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
15404 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
15405 $as_echo_n "(cached) " >&6
15407 ac_check_lib_save_LIBS=$LIBS
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15412 /* Override any GCC internal prototype to avoid an error.
15413 Use char because int might match the return type of a GCC
15414 builtin and then its argument prototype would still apply. */
15418 char pthread_kill ();
15422 return pthread_kill ();
15427 if ac_fn_c_try_link "$LINENO"; then :
15428 ac_cv_lib_c_r_pthread_kill=yes
15430 ac_cv_lib_c_r_pthread_kill=no
15432 rm -f core conftest.err conftest.$ac_objext \
15433 conftest$ac_exeext conftest.$ac_ext
15434 LIBS=$ac_check_lib_save_LIBS
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
15437 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
15438 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
15439 gl_have_pthread=yes
15440 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
15441 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
15446 if test -n "$gl_have_pthread"; then
15447 gl_threads_api=posix
15449 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
15451 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
15452 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15454 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
15463 if test -z "$gl_have_pthread"; then
15464 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
15465 gl_have_solaristhread=
15466 gl_save_LIBS="$LIBS"
15467 LIBS="$LIBS -lthread"
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470 #include <thread.h>
15480 if ac_fn_c_try_link "$LINENO"; then :
15481 gl_have_solaristhread=yes
15483 rm -f core conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS="$gl_save_LIBS"
15486 if test -n "$gl_have_solaristhread"; then
15487 gl_threads_api=solaris
15489 LTLIBTHREAD=-lthread
15490 LIBMULTITHREAD="$LIBTHREAD"
15491 LTLIBMULTITHREAD="$LTLIBTHREAD"
15493 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
15495 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15497 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
15505 if test "$gl_use_threads" = pth; then
15506 gl_save_CPPFLAGS="$CPPFLAGS"
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
15513 $as_echo_n "checking how to link with libpth... " >&6; }
15514 if test "${ac_cv_libpth_libs+set}" = set; then :
15515 $as_echo_n "(cached) " >&6
15527 acl_save_prefix="$prefix"
15528 prefix="$acl_final_prefix"
15529 acl_save_exec_prefix="$exec_prefix"
15530 exec_prefix="$acl_final_exec_prefix"
15532 eval additional_includedir=\"$includedir\"
15533 eval additional_libdir=\"$libdir\"
15535 exec_prefix="$acl_save_exec_prefix"
15536 prefix="$acl_save_prefix"
15539 # Check whether --with-libpth-prefix was given.
15540 if test "${with_libpth_prefix+set}" = set; then :
15541 withval=$with_libpth_prefix;
15542 if test "X$withval" = "Xno"; then
15545 if test "X$withval" = "X"; then
15547 acl_save_prefix="$prefix"
15548 prefix="$acl_final_prefix"
15549 acl_save_exec_prefix="$exec_prefix"
15550 exec_prefix="$acl_final_exec_prefix"
15552 eval additional_includedir=\"$includedir\"
15553 eval additional_libdir=\"$libdir\"
15555 exec_prefix="$acl_save_exec_prefix"
15556 prefix="$acl_save_prefix"
15559 additional_includedir="$withval/include"
15560 additional_libdir="$withval/$acl_libdirstem"
15561 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15562 && ! test -d "$withval/$acl_libdirstem"; then
15563 additional_libdir="$withval/$acl_libdirstem2"
15577 names_already_handled=
15578 names_next_round='pth '
15579 while test -n "$names_next_round"; do
15580 names_this_round="$names_next_round"
15582 for name in $names_this_round; do
15584 for n in $names_already_handled; do
15585 if test "$n" = "$name"; then
15586 already_handled=yes
15590 if test -z "$already_handled"; then
15591 names_already_handled="$names_already_handled $name"
15592 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15593 eval value=\"\$HAVE_LIB$uppername\"
15594 if test -n "$value"; then
15595 if test "$value" = yes; then
15596 eval value=\"\$LIB$uppername\"
15597 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
15598 eval value=\"\$LTLIB$uppername\"
15599 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
15608 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15609 if test -n "$acl_shlibext"; then
15610 shrext=".$acl_shlibext" # typically: shrext=.so
15614 if test $use_additional = yes; then
15615 dir="$additional_libdir"
15616 if test -n "$acl_shlibext"; then
15617 if test -f "$dir/$libname$shrext"; then
15619 found_so="$dir/$libname$shrext"
15621 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15622 ver=`(cd "$dir" && \
15623 for f in "$libname$shrext".*; do echo "$f"; done \
15624 | sed -e "s,^$libname$shrext\\\\.,," \
15625 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15626 | sed 1q ) 2>/dev/null`
15627 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15629 found_so="$dir/$libname$shrext.$ver"
15632 eval library_names=\"$acl_library_names_spec\"
15633 for f in $library_names; do
15634 if test -f "$dir/$f"; then
15643 if test "X$found_dir" = "X"; then
15644 if test -f "$dir/$libname.$acl_libext"; then
15646 found_a="$dir/$libname.$acl_libext"
15649 if test "X$found_dir" != "X"; then
15650 if test -f "$dir/$libname.la"; then
15651 found_la="$dir/$libname.la"
15655 if test "X$found_dir" = "X"; then
15656 for x in $LDFLAGS $LTLIBPTH; do
15658 acl_save_prefix="$prefix"
15659 prefix="$acl_final_prefix"
15660 acl_save_exec_prefix="$exec_prefix"
15661 exec_prefix="$acl_final_exec_prefix"
15663 exec_prefix="$acl_save_exec_prefix"
15664 prefix="$acl_save_prefix"
15668 dir=`echo "X$x" | sed -e 's/^X-L//'`
15669 if test -n "$acl_shlibext"; then
15670 if test -f "$dir/$libname$shrext"; then
15672 found_so="$dir/$libname$shrext"
15674 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15675 ver=`(cd "$dir" && \
15676 for f in "$libname$shrext".*; do echo "$f"; done \
15677 | sed -e "s,^$libname$shrext\\\\.,," \
15678 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15679 | sed 1q ) 2>/dev/null`
15680 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15682 found_so="$dir/$libname$shrext.$ver"
15685 eval library_names=\"$acl_library_names_spec\"
15686 for f in $library_names; do
15687 if test -f "$dir/$f"; then
15696 if test "X$found_dir" = "X"; then
15697 if test -f "$dir/$libname.$acl_libext"; then
15699 found_a="$dir/$libname.$acl_libext"
15702 if test "X$found_dir" != "X"; then
15703 if test -f "$dir/$libname.la"; then
15704 found_la="$dir/$libname.la"
15709 if test "X$found_dir" != "X"; then
15714 if test "X$found_dir" != "X"; then
15715 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
15716 if test "X$found_so" != "X"; then
15717 if test "$enable_rpath" = no \
15718 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15719 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15720 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15723 for x in $ltrpathdirs; do
15724 if test "X$x" = "X$found_dir"; then
15729 if test -z "$haveit"; then
15730 ltrpathdirs="$ltrpathdirs $found_dir"
15732 if test "$acl_hardcode_direct" = yes; then
15733 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15735 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15736 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15738 for x in $rpathdirs; do
15739 if test "X$x" = "X$found_dir"; then
15744 if test -z "$haveit"; then
15745 rpathdirs="$rpathdirs $found_dir"
15749 for x in $LDFLAGS $LIBPTH; do
15751 acl_save_prefix="$prefix"
15752 prefix="$acl_final_prefix"
15753 acl_save_exec_prefix="$exec_prefix"
15754 exec_prefix="$acl_final_exec_prefix"
15756 exec_prefix="$acl_save_exec_prefix"
15757 prefix="$acl_save_prefix"
15759 if test "X$x" = "X-L$found_dir"; then
15764 if test -z "$haveit"; then
15765 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
15767 if test "$acl_hardcode_minus_L" != no; then
15768 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15770 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
15776 if test "X$found_a" != "X"; then
15777 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
15779 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
15782 additional_includedir=
15783 case "$found_dir" in
15784 */$acl_libdirstem | */$acl_libdirstem/)
15785 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15786 if test "$name" = 'pth'; then
15787 LIBPTH_PREFIX="$basedir"
15789 additional_includedir="$basedir/include"
15791 */$acl_libdirstem2 | */$acl_libdirstem2/)
15792 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15793 if test "$name" = 'pth'; then
15794 LIBPTH_PREFIX="$basedir"
15796 additional_includedir="$basedir/include"
15799 if test "X$additional_includedir" != "X"; then
15800 if test "X$additional_includedir" != "X/usr/include"; then
15802 if test "X$additional_includedir" = "X/usr/local/include"; then
15803 if test -n "$GCC"; then
15805 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15809 if test -z "$haveit"; then
15810 for x in $CPPFLAGS $INCPTH; do
15812 acl_save_prefix="$prefix"
15813 prefix="$acl_final_prefix"
15814 acl_save_exec_prefix="$exec_prefix"
15815 exec_prefix="$acl_final_exec_prefix"
15817 exec_prefix="$acl_save_exec_prefix"
15818 prefix="$acl_save_prefix"
15820 if test "X$x" = "X-I$additional_includedir"; then
15825 if test -z "$haveit"; then
15826 if test -d "$additional_includedir"; then
15827 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
15833 if test -n "$found_la"; then
15834 save_libdir="$libdir"
15835 case "$found_la" in
15836 */* | *\\*) . "$found_la" ;;
15837 *) . "./$found_la" ;;
15839 libdir="$save_libdir"
15840 for dep in $dependency_libs; do
15843 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15844 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15845 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15847 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15848 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15849 if test -n "$GCC"; then
15851 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15855 if test -z "$haveit"; then
15857 for x in $LDFLAGS $LIBPTH; do
15859 acl_save_prefix="$prefix"
15860 prefix="$acl_final_prefix"
15861 acl_save_exec_prefix="$exec_prefix"
15862 exec_prefix="$acl_final_exec_prefix"
15864 exec_prefix="$acl_save_exec_prefix"
15865 prefix="$acl_save_prefix"
15867 if test "X$x" = "X-L$additional_libdir"; then
15872 if test -z "$haveit"; then
15873 if test -d "$additional_libdir"; then
15874 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
15878 for x in $LDFLAGS $LTLIBPTH; do
15880 acl_save_prefix="$prefix"
15881 prefix="$acl_final_prefix"
15882 acl_save_exec_prefix="$exec_prefix"
15883 exec_prefix="$acl_final_exec_prefix"
15885 exec_prefix="$acl_save_exec_prefix"
15886 prefix="$acl_save_prefix"
15888 if test "X$x" = "X-L$additional_libdir"; then
15893 if test -z "$haveit"; then
15894 if test -d "$additional_libdir"; then
15895 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
15902 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15903 if test "$enable_rpath" != no; then
15905 for x in $rpathdirs; do
15906 if test "X$x" = "X$dir"; then
15911 if test -z "$haveit"; then
15912 rpathdirs="$rpathdirs $dir"
15915 for x in $ltrpathdirs; do
15916 if test "X$x" = "X$dir"; then
15921 if test -z "$haveit"; then
15922 ltrpathdirs="$ltrpathdirs $dir"
15927 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15933 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
15934 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
15940 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
15941 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
15947 if test "X$rpathdirs" != "X"; then
15948 if test -n "$acl_hardcode_libdir_separator"; then
15950 for found_dir in $rpathdirs; do
15951 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15953 acl_save_libdir="$libdir"
15955 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15956 libdir="$acl_save_libdir"
15957 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
15959 for found_dir in $rpathdirs; do
15960 acl_save_libdir="$libdir"
15961 libdir="$found_dir"
15962 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15963 libdir="$acl_save_libdir"
15964 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
15968 if test "X$ltrpathdirs" != "X"; then
15969 for found_dir in $ltrpathdirs; do
15970 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
15979 ac_cv_libpth_libs="$LIBPTH"
15980 ac_cv_libpth_ltlibs="$LTLIBPTH"
15981 ac_cv_libpth_cppflags="$INCPTH"
15982 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
15986 $as_echo "$ac_cv_libpth_libs" >&6; }
15987 LIBPTH="$ac_cv_libpth_libs"
15988 LTLIBPTH="$ac_cv_libpth_ltlibs"
15989 INCPTH="$ac_cv_libpth_cppflags"
15990 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
15992 for element in $INCPTH; do
15994 for x in $CPPFLAGS; do
15996 acl_save_prefix="$prefix"
15997 prefix="$acl_final_prefix"
15998 acl_save_exec_prefix="$exec_prefix"
15999 exec_prefix="$acl_final_exec_prefix"
16001 exec_prefix="$acl_save_exec_prefix"
16002 prefix="$acl_save_prefix"
16004 if test "X$x" = "X$element"; then
16009 if test -z "$haveit"; then
16010 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16022 gl_save_LIBS="$LIBS"
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16035 if ac_fn_c_try_link "$LINENO"; then :
16038 rm -f core conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16040 LIBS="$gl_save_LIBS"
16041 if test -n "$gl_have_pth"; then
16043 LIBTHREAD="$LIBPTH"
16044 LTLIBTHREAD="$LTLIBPTH"
16045 LIBMULTITHREAD="$LIBTHREAD"
16046 LTLIBMULTITHREAD="$LTLIBTHREAD"
16048 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
16050 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16051 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16053 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
16060 CPPFLAGS="$gl_save_CPPFLAGS"
16063 if test -z "$gl_have_pthread"; then
16064 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
16065 if { case "$host_os" in
16070 gl_threads_api=win32
16072 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
16079 $as_echo_n "checking for multithread API to use... " >&6; }
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
16081 $as_echo "$gl_threads_api" >&6; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
16093 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
16094 if test "${gl_cv_func_malloc_posix+set}" = set; then :
16095 $as_echo_n "(cached) " >&6
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16104 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16112 if ac_fn_c_try_compile "$LINENO"; then :
16113 gl_cv_func_malloc_posix=yes
16115 gl_cv_func_malloc_posix=no
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
16121 $as_echo "$gl_cv_func_malloc_posix" >&6; }
16125 GNULIB_CALLOC_POSIX=0;
16126 GNULIB_CANONICALIZE_FILE_NAME=0;
16127 GNULIB_GETLOADAVG=0;
16128 GNULIB_GETSUBOPT=0;
16130 GNULIB_MALLOC_POSIX=0;
16133 GNULIB_MKOSTEMPS=0;
16139 GNULIB_REALLOC_POSIX=0;
16149 HAVE_CALLOC_POSIX=1;
16150 HAVE_CANONICALIZE_FILE_NAME=1;
16151 HAVE_DECL_GETLOADAVG=1;
16154 HAVE_MALLOC_POSIX=1;
16162 HAVE_REALLOC_POSIX=1;
16169 HAVE_STRUCT_RANDOM_DATA=1;
16170 HAVE_SYS_LOADAVG_H=0;
16173 REPLACE_CANONICALIZE_FILE_NAME=0;
16176 REPLACE_REALPATH=0;
16179 REPLACE_UNSETENV=0;
16182 for ac_header in stdlib.h
16184 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16185 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16186 cat >>confdefs.h <<_ACEOF
16187 #define HAVE_STDLIB_H 1
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16195 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16196 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
16197 $as_echo_n "(cached) " >&6
16199 if test "$cross_compiling" = yes; then :
16200 ac_cv_func_malloc_0_nonnull=no
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16205 # include <stdlib.h>
16213 return ! malloc (0);
16218 if ac_fn_c_try_run "$LINENO"; then :
16219 ac_cv_func_malloc_0_nonnull=yes
16221 ac_cv_func_malloc_0_nonnull=no
16223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16224 conftest.$ac_objext conftest.beam conftest.$ac_ext
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16229 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16230 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16231 gl_cv_func_malloc_0_nonnull=1
16233 gl_cv_func_malloc_0_nonnull=0
16237 cat >>confdefs.h <<_ACEOF
16238 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16244 $as_echo_n "checking for long long int... " >&6; }
16245 if test "${ac_cv_type_long_long_int+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16251 /* For now, do not test the preprocessor; as of 2007 there are too many
16252 implementations with broken preprocessors. Perhaps this can
16253 be revisited in 2012. In the meantime, code should not expect
16254 #if to work with literals wider than 32 bits. */
16255 /* Test literals. */
16256 long long int ll = 9223372036854775807ll;
16257 long long int nll = -9223372036854775807LL;
16258 unsigned long long int ull = 18446744073709551615ULL;
16259 /* Test constant expressions. */
16260 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16262 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16268 /* Test availability of runtime routines for shift and division. */
16269 long long int llmax = 9223372036854775807ll;
16270 unsigned long long int ullmax = 18446744073709551615ull;
16271 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16272 | (llmax / ll) | (llmax % ll)
16273 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16274 | (ullmax / ull) | (ullmax % ull));
16280 if ac_fn_c_try_link "$LINENO"; then :
16281 if test "$cross_compiling" = yes; then :
16282 ac_cv_type_long_long_int=yes
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286 #include <limits.h>
16289 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16290 # define LLONG_MAX (HALF - 1 + HALF)
16295 long long int n = 1;
16299 long long int m = n << i;
16302 if (LLONG_MAX / 2 < m)
16310 if ac_fn_c_try_run "$LINENO"; then :
16311 ac_cv_type_long_long_int=yes
16313 ac_cv_type_long_long_int=no
16315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16316 conftest.$ac_objext conftest.beam conftest.$ac_ext
16320 ac_cv_type_long_long_int=no
16322 rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16326 $as_echo "$ac_cv_type_long_long_int" >&6; }
16327 if test $ac_cv_type_long_long_int = yes; then
16329 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16338 $as_echo_n "checking for mbstate_t... " >&6; }
16339 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16340 $as_echo_n "(cached) " >&6
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16344 $ac_includes_default
16345 # include <wchar.h>
16349 mbstate_t x; return sizeof x;
16354 if ac_fn_c_try_compile "$LINENO"; then :
16355 ac_cv_type_mbstate_t=yes
16357 ac_cv_type_mbstate_t=no
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16362 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16363 if test $ac_cv_type_mbstate_t = yes; then
16365 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16369 $as_echo "#define mbstate_t int" >>confdefs.h
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
16375 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
16376 if test "${ac_cv_func_mbrtowc+set}" = set; then :
16377 $as_echo_n "(cached) " >&6
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16386 char const s[] = "";
16389 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
16394 if ac_fn_c_try_link "$LINENO"; then :
16395 ac_cv_func_mbrtowc=yes
16397 ac_cv_func_mbrtowc=no
16399 rm -f core conftest.err conftest.$ac_objext \
16400 conftest$ac_exeext conftest.$ac_ext
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
16403 $as_echo "$ac_cv_func_mbrtowc" >&6; }
16404 if test $ac_cv_func_mbrtowc = yes; then
16406 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
16416 GNULIB_MBSRTOWCS=0;
16417 GNULIB_MBSNRTOWCS=0;
16419 GNULIB_WCSRTOMBS=0;
16420 GNULIB_WCSNRTOMBS=0;
16432 HAVE_DECL_WCWIDTH=1;
16433 REPLACE_MBSTATE_T=0;
16439 REPLACE_MBSRTOWCS=0;
16440 REPLACE_MBSNRTOWCS=0;
16442 REPLACE_WCSRTOMBS=0;
16443 REPLACE_WCSNRTOMBS=0;
16449 for ac_func in $ac_func_list
16451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16453 eval as_val=\$$as_ac_var
16454 if test "x$as_val" = x""yes; then :
16455 cat >>confdefs.h <<_ACEOF
16456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
16470 $as_echo_n "checking for a traditional japanese locale... " >&6; }
16471 if test "${gt_cv_locale_ja+set}" = set; then :
16472 $as_echo_n "(cached) " >&6
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16478 #include <locale.h>
16480 #if HAVE_LANGINFO_CODESET
16481 # include <langinfo.h>
16483 #include <stdlib.h>
16484 #include <string.h>
16490 /* Check whether the given locale name is recognized by the system. */
16491 if (setlocale (LC_ALL, "") == NULL) return 1;
16492 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16493 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16494 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16495 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16496 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16497 some unit tests fail. */
16498 #if HAVE_LANGINFO_CODESET
16500 const char *cs = nl_langinfo (CODESET);
16501 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16506 /* On Cygwin, avoid locale names without encoding suffix, because the
16507 locale_charset() function relies on the encoding suffix. Note that
16508 LC_ALL is set on the command line. */
16509 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16511 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
16512 on Cygwin 1.5.x. */
16513 if (MB_CUR_MAX == 1)
16515 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16516 This excludes the UTF-8 encoding. */
16517 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16518 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16519 for (p = buf; *p != '\0'; p++)
16520 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16527 (eval $ac_link) 2>&5
16529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 test $ac_status = 0; } && test -s conftest$ac_exeext; then
16531 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16532 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16533 # configure script would override the LC_ALL setting. Likewise for
16534 # LC_CTYPE, which is also set at the beginning of the configure script.
16535 # Test for the AIX locale name.
16536 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16537 gt_cv_locale_ja=ja_JP
16539 # Test for the locale name with explicit encoding suffix.
16540 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16541 gt_cv_locale_ja=ja_JP.EUC-JP
16543 # Test for the HP-UX, OSF/1, NetBSD locale name.
16544 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16545 gt_cv_locale_ja=ja_JP.eucJP
16547 # Test for the IRIX, FreeBSD locale name.
16548 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16549 gt_cv_locale_ja=ja_JP.EUC
16551 # Test for the Solaris 7 locale name.
16552 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16555 # Special test for NetBSD 1.6.
16556 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16557 gt_cv_locale_ja=ja_JP.eucJP
16560 gt_cv_locale_ja=none
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
16572 $as_echo "$gt_cv_locale_ja" >&6; }
16573 LOCALE_JA=$gt_cv_locale_ja
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
16580 $as_echo_n "checking for a transitional chinese locale... " >&6; }
16581 if test "${gt_cv_locale_zh_CN+set}" = set; then :
16582 $as_echo_n "(cached) " >&6
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16588 #include <locale.h>
16589 #include <stdlib.h>
16591 #if HAVE_LANGINFO_CODESET
16592 # include <langinfo.h>
16594 #include <stdlib.h>
16595 #include <string.h>
16601 /* Check whether the given locale name is recognized by the system. */
16602 if (setlocale (LC_ALL, "") == NULL) return 1;
16603 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16604 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16605 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16606 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16607 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16608 some unit tests fail. */
16609 #if HAVE_LANGINFO_CODESET
16611 const char *cs = nl_langinfo (CODESET);
16612 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16617 /* On Cygwin, avoid locale names without encoding suffix, because the
16618 locale_charset() function relies on the encoding suffix. Note that
16619 LC_ALL is set on the command line. */
16620 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16622 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16623 This excludes the UTF-8 encoding. */
16624 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16625 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16626 for (p = buf; *p != '\0'; p++)
16627 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16629 /* Check whether a typical GB18030 multibyte sequence is recognized as a
16630 single wide character. This excludes the GB2312 and GBK encodings. */
16631 if (mblen ("\203\062\332\066", 5) != 4)
16637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16638 (eval $ac_link) 2>&5
16640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16641 test $ac_status = 0; } && test -s conftest$ac_exeext; then
16642 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16643 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16644 # configure script would override the LC_ALL setting. Likewise for
16645 # LC_CTYPE, which is also set at the beginning of the configure script.
16646 # Test for the locale name without encoding suffix.
16647 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16648 gt_cv_locale_zh_CN=zh_CN
16650 # Test for the locale name with explicit encoding suffix.
16651 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16652 gt_cv_locale_zh_CN=zh_CN.GB18030
16655 gt_cv_locale_zh_CN=none
16659 # If there was a link error, due to mblen(), the system is so old that
16660 # it certainly doesn't have a chinese locale.
16661 gt_cv_locale_zh_CN=none
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
16667 $as_echo "$gt_cv_locale_zh_CN" >&6; }
16668 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
16674 $as_echo_n "checking for a french Unicode locale... " >&6; }
16675 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
16676 $as_echo_n "(cached) " >&6
16679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h. */
16682 #include <locale.h>
16684 #if HAVE_LANGINFO_CODESET
16685 # include <langinfo.h>
16687 #include <stdlib.h>
16688 #include <string.h>
16692 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
16693 imitates locale dependent behaviour by looking at the environment
16694 variables, and all locales use the UTF-8 encoding. */
16695 #if !(defined __BEOS__ || defined __HAIKU__)
16696 /* Check whether the given locale name is recognized by the system. */
16697 if (setlocale (LC_ALL, "") == NULL) return 1;
16698 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16699 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16700 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16701 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16702 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16703 some unit tests fail. */
16704 # if HAVE_LANGINFO_CODESET
16706 const char *cs = nl_langinfo (CODESET);
16707 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16712 /* On Cygwin, avoid locale names without encoding suffix, because the
16713 locale_charset() function relies on the encoding suffix. Note that
16714 LC_ALL is set on the command line. */
16715 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16717 /* Check whether in the abbreviation of the second month, the second
16718 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16719 two bytes long, with UTF-8 encoding. */
16720 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16721 if (strftime (buf, sizeof (buf), "%b", &t) < 4
16722 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16725 /* Check whether the decimal separator is a comma.
16726 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16727 are nl_langinfo(RADIXCHAR) are both ".". */
16728 if (localeconv () ->decimal_point[0] != ',') return 1;
16733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16734 (eval $ac_link) 2>&5
16736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16737 test $ac_status = 0; } && test -s conftest$ac_exeext; then
16738 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16739 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16740 # configure script would override the LC_ALL setting. Likewise for
16741 # LC_CTYPE, which is also set at the beginning of the configure script.
16742 # Test for the usual locale name.
16743 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16744 gt_cv_locale_fr_utf8=fr_FR
16746 # Test for the locale name with explicit encoding suffix.
16747 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16748 gt_cv_locale_fr_utf8=fr_FR.UTF-8
16750 # Test for the Solaris 7 locale name.
16751 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16752 gt_cv_locale_fr_utf8=fr.UTF-8
16755 gt_cv_locale_fr_utf8=none
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
16764 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
16765 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16773 GNULIB_RAWMEMCHR=0;
16776 GNULIB_STRCHRNUL=0;
16784 GNULIB_STRCASESTR=0;
16791 GNULIB_MBSCASECMP=0;
16792 GNULIB_MBSNCASECMP=0;
16793 GNULIB_MBSPCASECMP=0;
16794 GNULIB_MBSCASESTR=0;
16801 GNULIB_STRSIGNAL=0;
16802 GNULIB_STRVERSCMP=0;
16805 HAVE_DECL_MEMMEM=1;
16807 HAVE_DECL_MEMRCHR=1;
16812 HAVE_DECL_STRDUP=1;
16813 HAVE_DECL_STRNDUP=1;
16814 HAVE_DECL_STRNLEN=1;
16818 HAVE_DECL_STRTOK_R=1;
16819 HAVE_DECL_STRSIGNAL=1;
16826 REPLACE_STRCASESTR=0;
16827 REPLACE_STRERROR=0;
16831 REPLACE_STRSIGNAL=0;
16832 REPLACE_STRTOK_R=0;
16833 UNDEFINE_STRTOK_R=0;
16848 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16849 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16850 # irrelevant for anonymous mappings.
16851 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16852 if test "x$ac_cv_func_mmap" = x""yes; then :
16859 # Try to allow MAP_ANONYMOUS.
16860 gl_have_mmap_anonymous=no
16861 if test $gl_have_mmap = yes; then
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
16863 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16867 #include <sys/mman.h>
16868 #ifdef MAP_ANONYMOUS
16869 I cant identify this map.
16873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16874 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
16875 gl_have_mmap_anonymous=yes
16879 if test $gl_have_mmap_anonymous != yes; then
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16883 #include <sys/mman.h>
16885 I cant identify this map.
16889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16890 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
16892 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
16894 gl_have_mmap_anonymous=yes
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
16900 $as_echo "$gl_have_mmap_anonymous" >&6; }
16901 if test $gl_have_mmap_anonymous = yes; then
16903 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
16913 if test $ac_cv_func_memchr = yes; then
16914 # Detect platform-specific bugs in some versions of glibc:
16915 # memchr should not dereference anything with length 0
16916 # http://bugzilla.redhat.com/499689
16917 # memchr should not dereference overestimated length after a match
16918 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
16919 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
16920 # Assume that memchr works on platforms that lack mprotect.
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
16922 $as_echo_n "checking whether memchr works... " >&6; }
16923 if test "${gl_cv_func_memchr_works+set}" = set; then :
16924 $as_echo_n "(cached) " >&6
16926 if test "$cross_compiling" = yes; then :
16927 gl_cv_func_memchr_works="guessing no"
16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16932 #include <string.h>
16933 #if HAVE_SYS_MMAN_H
16934 # include <fcntl.h>
16935 # include <unistd.h>
16936 # include <sys/types.h>
16937 # include <sys/mman.h>
16939 # define MAP_FILE 0
16947 char *fence = NULL;
16948 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
16949 # if HAVE_MAP_ANONYMOUS
16950 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
16952 # else /* !HAVE_MAP_ANONYMOUS */
16953 const int flags = MAP_FILE | MAP_PRIVATE;
16954 int fd = open ("/dev/zero", O_RDONLY, 0666);
16958 int pagesize = getpagesize ();
16960 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
16962 if (two_pages != (char *)(-1)
16963 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
16964 fence = two_pages + pagesize;
16969 if (memchr (fence, 0, 0))
16971 strcpy (fence - 9, "12345678");
16972 if (memchr (fence - 9, 0, 79) != fence - 1)
16981 if ac_fn_c_try_run "$LINENO"; then :
16982 gl_cv_func_memchr_works=yes
16984 gl_cv_func_memchr_works=no
16986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16987 conftest.$ac_objext conftest.beam conftest.$ac_ext
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
16992 $as_echo "$gl_cv_func_memchr_works" >&6; }
16993 if test "$gl_cv_func_memchr_works" != yes; then
16999 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
17008 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
17011 for ac_header in bp-sym.h
17013 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
17014 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
17015 cat >>confdefs.h <<_ACEOF
17016 #define HAVE_BP_SYM_H 1
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
17031 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
17032 if test "${gl_cv_minmax_in_limits_h+set}" = set; then :
17033 $as_echo_n "(cached) " >&6
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 #include <limits.h>
17038 int x = MIN (42, 17);
17047 if ac_fn_c_try_compile "$LINENO"; then :
17048 gl_cv_minmax_in_limits_h=yes
17050 gl_cv_minmax_in_limits_h=no
17052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
17055 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
17056 if test $gl_cv_minmax_in_limits_h = yes; then
17058 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
17068 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
17069 if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then :
17070 $as_echo_n "(cached) " >&6
17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 #include <sys/param.h>
17075 int x = MIN (42, 17);
17084 if ac_fn_c_try_compile "$LINENO"; then :
17085 gl_cv_minmax_in_sys_param_h=yes
17087 gl_cv_minmax_in_sys_param_h=no
17089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
17092 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
17093 if test $gl_cv_minmax_in_sys_param_h = yes; then
17095 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
17103 gl_cv_c_multiarch=no
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106 #ifndef __APPLE_CC__
17107 not a universal capable compiler
17112 if ac_fn_c_try_compile "$LINENO"; then :
17116 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17117 if test -n "$prev"; then
17119 i?86 | x86_64 | ppc | ppc64)
17120 if test -z "$arch" || test "$arch" = "$word"; then
17123 gl_cv_c_multiarch=yes
17129 if test "x$word" = "x-arch"; then
17136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 if test $gl_cv_c_multiarch = yes; then
17139 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17141 APPLE_UNIVERSAL_BUILD=1
17143 APPLE_UNIVERSAL_BUILD=0
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
17149 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
17150 # Check whether --enable-relocatable was given.
17151 if test "${enable_relocatable+set}" = set; then :
17152 enableval=$enable_relocatable; if test "$enableval" != no; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
17164 $as_echo "$RELOCATABLE" >&6; }
17168 if test "X$prefix" = "XNONE"; then
17169 reloc_final_prefix="$ac_default_prefix"
17171 reloc_final_prefix="$prefix"
17174 cat >>confdefs.h <<_ACEOF
17175 #define INSTALLPREFIX "${reloc_final_prefix}"
17178 if test $RELOCATABLE = yes; then
17180 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17185 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17186 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17187 $as_echo_n "(cached) " >&6
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17192 #include <stdbool.h>
17194 "error: bool is not defined"
17197 "error: false is not defined"
17200 "error: false is not 0"
17203 "error: true is not defined"
17206 "error: true is not 1"
17208 #ifndef __bool_true_false_are_defined
17209 "error: __bool_true_false_are_defined is not defined"
17212 struct s { _Bool s: 1; _Bool t; } s;
17214 char a[true == 1 ? 1 : -1];
17215 char b[false == 0 ? 1 : -1];
17216 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17217 char d[(bool) 0.5 == true ? 1 : -1];
17219 char f[(_Bool) 0.0 == false ? 1 : -1];
17221 char h[sizeof (_Bool)];
17222 char i[sizeof s.t];
17223 enum { j = false, k = true, l = false * true, m = true * 256 };
17225 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17226 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17227 #if defined __xlc__ || defined __GNUC__
17228 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
17229 reported by James Lemley on 2005-10-05; see
17230 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
17231 This test is not quite right, since xlc is allowed to
17232 reject this program, as the initializer for xlcbug is
17233 not one of the forms that C requires support for.
17234 However, doing the test right would require a run-time
17235 test, and that would make cross-compilation harder.
17236 Let us hope that IBM fixes the xlc bug, and also adds
17237 support for this kind of constant expression. In the
17238 meantime, this test will reject xlc, which is OK, since
17239 our stdbool.h substitute should suffice. We also test
17240 this with GCC, where it should work, to detect more
17241 quickly whether someone messes up the test in the
17243 char digs[] = "0123456789";
17244 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
17246 /* Catch a bug in an HP-UX C compiler. See
17247 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17248 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17259 /* Refer to every declared value, to avoid compiler optimizations. */
17260 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17261 + !m + !n + !o + !p + !q + !pq);
17267 if ac_fn_c_try_compile "$LINENO"; then :
17268 ac_cv_header_stdbool_h=yes
17270 ac_cv_header_stdbool_h=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17275 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17276 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17277 if test "x$ac_cv_type__Bool" = x""yes; then :
17279 cat >>confdefs.h <<_ACEOF
17280 #define HAVE__BOOL 1
17286 if test $ac_cv_header_stdbool_h = yes; then
17288 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17298 $as_echo_n "checking for wchar_t... " >&6; }
17299 if test "${gt_cv_c_wchar_t+set}" = set; then :
17300 $as_echo_n "(cached) " >&6
17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17304 #include <stddef.h>
17305 wchar_t foo = (wchar_t)'\0';
17314 if ac_fn_c_try_compile "$LINENO"; then :
17315 gt_cv_c_wchar_t=yes
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17322 $as_echo "$gt_cv_c_wchar_t" >&6; }
17323 if test $gt_cv_c_wchar_t = yes; then
17325 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17333 $as_echo_n "checking for unsigned long long int... " >&6; }
17334 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17335 $as_echo_n "(cached) " >&6
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17340 /* For now, do not test the preprocessor; as of 2007 there are too many
17341 implementations with broken preprocessors. Perhaps this can
17342 be revisited in 2012. In the meantime, code should not expect
17343 #if to work with literals wider than 32 bits. */
17344 /* Test literals. */
17345 long long int ll = 9223372036854775807ll;
17346 long long int nll = -9223372036854775807LL;
17347 unsigned long long int ull = 18446744073709551615ULL;
17348 /* Test constant expressions. */
17349 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17351 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17357 /* Test availability of runtime routines for shift and division. */
17358 long long int llmax = 9223372036854775807ll;
17359 unsigned long long int ullmax = 18446744073709551615ull;
17360 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17361 | (llmax / ll) | (llmax % ll)
17362 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17363 | (ullmax / ull) | (ullmax % ull));
17369 if ac_fn_c_try_link "$LINENO"; then :
17370 ac_cv_type_unsigned_long_long_int=yes
17372 ac_cv_type_unsigned_long_long_int=no
17374 rm -f core conftest.err conftest.$ac_objext \
17375 conftest$ac_exeext conftest.$ac_ext
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17378 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17379 if test $ac_cv_type_unsigned_long_long_int = yes; then
17381 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17392 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17393 if test "${ac_cv_c_restrict+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17396 ac_cv_c_restrict=no
17397 # The order here caters to the fact that C++ does not require restrict.
17398 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401 typedef int * int_ptr;
17402 int foo (int_ptr $ac_kw ip) {
17409 int * $ac_kw t = s;
17416 if ac_fn_c_try_compile "$LINENO"; then :
17417 ac_cv_c_restrict=$ac_kw
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420 test "$ac_cv_c_restrict" != no && break
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17425 $as_echo "$ac_cv_c_restrict" >&6; }
17427 case $ac_cv_c_restrict in
17429 no) $as_echo "#define restrict /**/" >>confdefs.h
17431 *) cat >>confdefs.h <<_ACEOF
17432 #define restrict $ac_cv_c_restrict
17448 if test $gl_cv_have_include_next = yes; then
17449 gl_cv_next_string_h='<'string.h'>'
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
17452 $as_echo_n "checking absolute name of <string.h>... " >&6; }
17453 if test "${gl_cv_next_string_h+set}" = set; then :
17454 $as_echo_n "(cached) " >&6
17457 if test $ac_cv_header_string_h = yes; then
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17460 #include <string.h>
17464 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17465 *) gl_absname_cpp="$ac_cpp" ;;
17467 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17468 sed -n '\#/string.h#{
17469 s#.*"\(.*/string.h\)".*#\1#
17475 gl_cv_next_string_h='<'string.h'>'
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
17480 $as_echo "$gl_cv_next_string_h" >&6; }
17482 NEXT_STRING_H=$gl_cv_next_string_h
17484 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17486 gl_next_as_first_directive='<'string.h'>'
17488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17489 gl_next_as_first_directive=$gl_cv_next_string_h
17491 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
17497 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
17498 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17500 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17501 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17502 $as_echo_n "(cached) " >&6
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17506 #include <string.h>
17517 if ac_fn_c_try_compile "$LINENO"; then :
17518 eval "$as_gl_Symbol=yes"
17520 eval "$as_gl_Symbol=no"
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 eval ac_res=\$$as_gl_Symbol
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17526 $as_echo "$ac_res" >&6; }
17527 eval as_val=\$$as_gl_Symbol
17528 if test "x$as_val" = x""yes; then :
17529 cat >>confdefs.h <<_ACEOF
17530 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17533 eval ac_cv_have_decl_$gl_func=yes
17548 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17549 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17550 # irrelevant for anonymous mappings.
17551 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17552 if test "x$ac_cv_func_mmap" = x""yes; then :
17559 # Try to allow MAP_ANONYMOUS.
17560 gl_have_mmap_anonymous=no
17561 if test $gl_have_mmap = yes; then
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17563 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17567 #include <sys/mman.h>
17568 #ifdef MAP_ANONYMOUS
17569 I cant identify this map.
17573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17574 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
17575 gl_have_mmap_anonymous=yes
17579 if test $gl_have_mmap_anonymous != yes; then
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17583 #include <sys/mman.h>
17585 I cant identify this map.
17589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17590 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
17592 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17594 gl_have_mmap_anonymous=yes
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17600 $as_echo "$gl_have_mmap_anonymous" >&6; }
17601 if test $gl_have_mmap_anonymous = yes; then
17603 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strncat works" >&5
17612 $as_echo_n "checking whether strncat works... " >&6; }
17613 if test "${gl_cv_func_strncat_works+set}" = set; then :
17614 $as_echo_n "(cached) " >&6
17616 if test "$cross_compiling" = yes; then :
17619 # Guess no on Solaris.
17620 solaris*) gl_cv_func_strncat_works="guessing no";;
17621 # Guess yes otherwise.
17622 *) gl_cv_func_strncat_works="guessing yes";;
17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17629 #include <string.h>
17630 #if HAVE_SYS_MMAN_H
17631 # include <fcntl.h>
17632 # include <unistd.h>
17633 # include <sys/types.h>
17634 # include <sys/mman.h>
17636 # define MAP_FILE 0
17644 char *fence = NULL;
17645 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17646 # if HAVE_MAP_ANONYMOUS
17647 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17649 # else /* !HAVE_MAP_ANONYMOUS */
17650 const int flags = MAP_FILE | MAP_PRIVATE;
17651 int fd = open ("/dev/zero", O_RDONLY, 0666);
17655 int pagesize = getpagesize ();
17657 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17659 if (two_pages != (char *)(-1)
17660 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17661 fence = two_pages + pagesize;
17676 *(fence - 3) = '7';
17677 *(fence - 2) = '2';
17678 *(fence - 1) = '9';
17680 if (strncat (dest + 1, fence - 3, 3) != dest + 1)
17682 if (dest[0] != '*')
17685 || dest[2] != '7' || dest[3] != '2' || dest[4] != '9'
17686 || dest[5] != '\0')
17688 if (dest[6] != 'z')
17697 if ac_fn_c_try_run "$LINENO"; then :
17698 gl_cv_func_strncat_works=yes
17700 gl_cv_func_strncat_works=no
17702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17703 conftest.$ac_objext conftest.beam conftest.$ac_ext
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strncat_works" >&5
17709 $as_echo "$gl_cv_func_strncat_works" >&6; }
17710 case "$gl_cv_func_strncat_works" in
17722 gl_LIBOBJS="$gl_LIBOBJS strncat.$ac_objext"
17736 GNULIB_EUIDACCESS=0;
17737 GNULIB_FACCESSAT=0;
17741 GNULIB_FTRUNCATE=0;
17743 GNULIB_GETDOMAINNAME=0;
17744 GNULIB_GETDTABLESIZE=0;
17745 GNULIB_GETGROUPS=0;
17746 GNULIB_GETHOSTNAME=0;
17748 GNULIB_GETLOGIN_R=0;
17749 GNULIB_GETPAGESIZE=0;
17750 GNULIB_GETUSERSHELL=0;
17758 GNULIB_READLINKAT=0;
17762 GNULIB_SYMLINKAT=0;
17763 GNULIB_TTYNAME_R=0;
17764 GNULIB_UNISTD_H_GETOPT=0;
17765 GNULIB_UNISTD_H_SIGPIPE=0;
17779 HAVE_GETDOMAINNAME=1;
17780 HAVE_GETDTABLESIZE=1;
17782 HAVE_GETHOSTNAME=1;
17784 HAVE_GETPAGESIZE=1;
17798 HAVE_DECL_ENVIRON=1;
17799 HAVE_DECL_GETLOGIN_R=1;
17800 HAVE_DECL_GETPAGESIZE=1;
17801 HAVE_DECL_GETUSERSHELL=1;
17803 HAVE_SYS_PARAM_H=0;
17808 REPLACE_FCHOWNAT=0;
17810 REPLACE_GETGROUPS=0;
17811 REPLACE_GETPAGESIZE=0;
17817 REPLACE_READLINK=0;
17821 REPLACE_TTYNAME_R=0;
17823 REPLACE_UNLINKAT=0;
17826 UNISTD_H_HAVE_WINSOCK2_H=0;
17827 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17834 $as_echo_n "checking for wint_t... " >&6; }
17835 if test "${gt_cv_c_wint_t+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17841 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17843 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17844 before <wchar.h>. */
17845 #include <stddef.h>
17849 wint_t foo = (wchar_t)'\0';
17858 if ac_fn_c_try_compile "$LINENO"; then :
17863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17866 $as_echo "$gt_cv_c_wint_t" >&6; }
17867 if test $gt_cv_c_wint_t = yes; then
17869 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
17873 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17874 if test "x$ac_cv_type_size_t" = x""yes; then :
17878 cat >>confdefs.h <<_ACEOF
17879 #define size_t unsigned int
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
17886 $as_echo_n "checking for inttypes.h... " >&6; }
17887 if test "${gl_cv_header_inttypes_h+set}" = set; then :
17888 $as_echo_n "(cached) " >&6
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892 #include <sys/types.h>
17893 #include <inttypes.h>
17897 uintmax_t i = (uintmax_t) -1; return !i;
17902 if ac_fn_c_try_compile "$LINENO"; then :
17903 gl_cv_header_inttypes_h=yes
17905 gl_cv_header_inttypes_h=no
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
17910 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17911 if test $gl_cv_header_inttypes_h = yes; then
17913 cat >>confdefs.h <<_ACEOF
17914 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
17921 $as_echo_n "checking for stdint.h... " >&6; }
17922 if test "${gl_cv_header_stdint_h+set}" = set; then :
17923 $as_echo_n "(cached) " >&6
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17927 #include <sys/types.h>
17928 #include <stdint.h>
17932 uintmax_t i = (uintmax_t) -1; return !i;
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938 gl_cv_header_stdint_h=yes
17940 gl_cv_header_stdint_h=no
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
17945 $as_echo "$gl_cv_header_stdint_h" >&6; }
17946 if test $gl_cv_header_stdint_h = yes; then
17948 cat >>confdefs.h <<_ACEOF
17949 #define HAVE_STDINT_H_WITH_UINTMAX 1
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
17958 $as_echo_n "checking for intmax_t... " >&6; }
17959 if test "${gt_cv_c_intmax_t+set}" = set; then :
17960 $as_echo_n "(cached) " >&6
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17965 #include <stddef.h>
17966 #include <stdlib.h>
17967 #if HAVE_STDINT_H_WITH_UINTMAX
17968 #include <stdint.h>
17970 #if HAVE_INTTYPES_H_WITH_UINTMAX
17971 #include <inttypes.h>
17977 intmax_t x = -1; return !x;
17982 if ac_fn_c_try_compile "$LINENO"; then :
17983 gt_cv_c_intmax_t=yes
17985 gt_cv_c_intmax_t=no
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
17990 $as_echo "$gt_cv_c_intmax_t" >&6; }
17991 if test $gt_cv_c_intmax_t = yes; then
17993 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17997 test $ac_cv_type_long_long_int = yes \
17998 && ac_type='long long' \
18001 cat >>confdefs.h <<_ACEOF
18002 #define intmax_t $ac_type
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18010 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18011 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
18012 $as_echo_n "(cached) " >&6
18015 if test "$cross_compiling" = yes; then :
18018 # Guess yes on glibc systems.
18019 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18020 # Guess yes on FreeBSD >= 5.
18021 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18022 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18023 # Guess yes on MacOS X >= 10.3.
18024 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
18025 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18026 # Guess yes on OpenBSD >= 3.9.
18027 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18028 gl_cv_func_snprintf_retval_c99="guessing no";;
18029 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18030 # Guess yes on Solaris >= 2.6.
18031 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18032 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18033 # Guess yes on AIX >= 4.
18034 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18035 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18036 # Guess yes on NetBSD >= 3.
18037 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18038 gl_cv_func_snprintf_retval_c99="guessing no";;
18039 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18040 # Guess yes on BeOS.
18041 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18042 # If we don't know, assume the worst.
18043 *) gl_cv_func_snprintf_retval_c99="guessing no";;
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18051 #include <string.h>
18052 static char buf[100];
18055 strcpy (buf, "ABCDEF");
18056 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18061 if ac_fn_c_try_run "$LINENO"; then :
18062 gl_cv_func_snprintf_retval_c99=yes
18064 gl_cv_func_snprintf_retval_c99=no
18066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18067 conftest.$ac_objext conftest.beam conftest.$ac_ext
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18073 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18081 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18085 eval as_val=\$$as_ac_var
18086 if test "x$as_val" = x""yes; then :
18087 cat >>confdefs.h <<_ACEOF
18088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18094 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18096 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
18102 cat >>confdefs.h <<_ACEOF
18103 #define HAVE_DECL__SNPRINTF $ac_have_decl
18107 case "$gl_cv_func_snprintf_retval_c99" in
18110 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
18118 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
18119 if test "${gl_cv_func_printf_long_double+set}" = set; then :
18120 $as_echo_n "(cached) " >&6
18123 if test "$cross_compiling" = yes; then :
18126 beos*) gl_cv_func_printf_long_double="guessing no";;
18127 mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
18128 *) gl_cv_func_printf_long_double="guessing yes";;
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18136 #include <string.h>
18137 static char buf[10000];
18141 if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
18142 || strcmp (buf, "1.750000 33") != 0)
18145 if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
18146 || strcmp (buf, "1.750000e+00 33") != 0)
18149 if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
18150 || strcmp (buf, "1.75 33") != 0)
18155 if ac_fn_c_try_run "$LINENO"; then :
18156 gl_cv_func_printf_long_double=yes
18158 gl_cv_func_printf_long_double=no
18160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18161 conftest.$ac_objext conftest.beam conftest.$ac_ext
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
18167 $as_echo "$gl_cv_func_printf_long_double" >&6; }
18171 case "$gl_cv_func_printf_long_double" in
18176 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
18184 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
18185 if test "${gl_cv_func_printf_infinite+set}" = set; then :
18186 $as_echo_n "(cached) " >&6
18189 if test "$cross_compiling" = yes; then :
18192 # Guess yes on glibc systems.
18193 *-gnu*) gl_cv_func_printf_infinite="guessing yes";;
18194 # Guess yes on FreeBSD >= 6.
18195 freebsd[1-5]*) gl_cv_func_printf_infinite="guessing no";;
18196 freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
18197 # Guess yes on MacOS X >= 10.3.
18198 darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";;
18199 darwin*) gl_cv_func_printf_infinite="guessing yes";;
18200 # Guess yes on HP-UX >= 11.
18201 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
18202 hpux*) gl_cv_func_printf_infinite="guessing yes";;
18203 # Guess yes on NetBSD >= 3.
18204 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18205 gl_cv_func_printf_infinite="guessing no";;
18206 netbsd*) gl_cv_func_printf_infinite="guessing yes";;
18207 # Guess yes on BeOS.
18208 beos*) gl_cv_func_printf_infinite="guessing yes";;
18209 # If we don't know, assume the worst.
18210 *) gl_cv_func_printf_infinite="guessing no";;
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18218 #include <string.h>
18220 strisnan (const char *string, size_t start_index, size_t end_index)
18222 if (start_index < end_index)
18224 if (string[start_index] == '-')
18226 if (start_index + 3 <= end_index
18227 && memcmp (string + start_index, "nan", 3) == 0)
18230 if (start_index == end_index
18231 || (string[start_index] == '(' && string[end_index - 1] == ')'))
18240 static double plus_zero = 0.0;
18241 double minus_zero = - plus_zero;
18242 return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
18244 static char buf[10000];
18245 static double zero = 0.0;
18248 if (sprintf (buf, "%f", 1.0 / 0.0) < 0
18249 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18251 if (sprintf (buf, "%f", -1.0 / 0.0) < 0
18252 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18254 if (sprintf (buf, "%f", zero / zero) < 0
18255 || !strisnan (buf, 0, strlen (buf)))
18257 if (sprintf (buf, "%e", 1.0 / 0.0) < 0
18258 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18260 if (sprintf (buf, "%e", -1.0 / 0.0) < 0
18261 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18263 if (sprintf (buf, "%e", zero / zero) < 0
18264 || !strisnan (buf, 0, strlen (buf)))
18266 if (sprintf (buf, "%g", 1.0 / 0.0) < 0
18267 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18269 if (sprintf (buf, "%g", -1.0 / 0.0) < 0
18270 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18272 if (sprintf (buf, "%g", zero / zero) < 0
18273 || !strisnan (buf, 0, strlen (buf)))
18275 /* This test fails on HP-UX 10.20. */
18276 if (have_minus_zero ())
18277 if (sprintf (buf, "%g", - zero) < 0
18278 || strcmp (buf, "-0") != 0)
18283 if ac_fn_c_try_run "$LINENO"; then :
18284 gl_cv_func_printf_infinite=yes
18286 gl_cv_func_printf_infinite=no
18288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18289 conftest.$ac_objext conftest.beam conftest.$ac_ext
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
18295 $as_echo "$gl_cv_func_printf_infinite" >&6; }
18301 if test -n "$gl_printf_safe"; then
18303 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
18306 case "$gl_cv_func_printf_long_double" in
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
18309 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
18310 if test "${gl_cv_func_printf_infinite_long_double+set}" = set; then :
18311 $as_echo_n "(cached) " >&6
18314 if test "$cross_compiling" = yes; then :
18316 case "$host_cpu" in
18317 # Guess no on ia64, x86_64, i386.
18318 ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
18321 # Guess yes on glibc systems.
18322 *-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";;
18323 # Guess yes on FreeBSD >= 6.
18324 freebsd[1-5]*) gl_cv_func_printf_infinite_long_double="guessing no";;
18325 freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
18326 # Guess yes on MacOS X >= 10.3.
18327 darwin[1-6].*) gl_cv_func_printf_infinite_long_double="guessing no";;
18328 darwin*) gl_cv_func_printf_infinite_long_double="guessing yes";;
18329 # Guess yes on HP-UX >= 11.
18330 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
18331 hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";;
18332 # Guess yes on NetBSD >= 3.
18333 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18334 gl_cv_func_printf_infinite_long_double="guessing no";;
18335 netbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
18336 # If we don't know, assume the worst.
18337 *) gl_cv_func_printf_infinite_long_double="guessing no";;
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18347 #include <stdlib.h>
18348 #if defined __MACH__ && defined __APPLE__
18349 /* Avoid a crash on MacOS X. */
18350 #include <mach/mach.h>
18351 #include <mach/mach_error.h>
18352 #include <mach/thread_status.h>
18353 #include <mach/exception.h>
18354 #include <mach/task.h>
18355 #include <pthread.h>
18356 /* The exception port on which our thread listens. */
18357 static mach_port_t our_exception_port;
18358 /* The main function of the thread listening for exceptions of type
18361 mach_exception_thread (void *arg)
18363 /* Buffer for a message to be received. */
18365 mach_msg_header_t head;
18366 mach_msg_body_t msgh_body;
18369 mach_msg_return_t retval;
18370 /* Wait for a message on the exception port. */
18371 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
18372 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
18373 if (retval != MACH_MSG_SUCCESS)
18378 nocrash_init (void)
18380 mach_port_t self = mach_task_self ();
18381 /* Allocate a port on which the thread shall listen for exceptions. */
18382 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
18384 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
18385 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
18386 MACH_MSG_TYPE_MAKE_SEND)
18388 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
18390 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
18391 /* Create the thread listening on the exception port. */
18392 pthread_attr_t attr;
18394 if (pthread_attr_init (&attr) == 0
18395 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
18396 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
18397 pthread_attr_destroy (&attr);
18398 /* Replace the exception port info for these exceptions with our own.
18399 Note that we replace the exception port for the entire task, not only
18400 for a particular thread. This has the effect that when our exception
18401 port gets the message, the thread specific exception port has already
18402 been asked, and we don't need to bother about it.
18403 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
18404 task_set_exception_ports (self, mask, our_exception_port,
18405 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
18411 /* Avoid a crash on POSIX systems. */
18412 #include <signal.h>
18413 /* A POSIX signal handler. */
18415 exception_handler (int sig)
18420 nocrash_init (void)
18423 signal (SIGSEGV, exception_handler);
18426 signal (SIGBUS, exception_handler);
18433 #include <string.h>
18435 strisnan (const char *string, size_t start_index, size_t end_index)
18437 if (start_index < end_index)
18439 if (string[start_index] == '-')
18441 if (start_index + 3 <= end_index
18442 && memcmp (string + start_index, "nan", 3) == 0)
18445 if (start_index == end_index
18446 || (string[start_index] == '(' && string[end_index - 1] == ')'))
18452 static char buf[10000];
18453 static long double zeroL = 0.0L;
18457 if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0
18458 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18460 if (sprintf (buf, "%Lf", -1.0L / 0.0L) < 0
18461 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18463 if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
18464 || !strisnan (buf, 0, strlen (buf)))
18466 if (sprintf (buf, "%Le", 1.0L / 0.0L) < 0
18467 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18469 if (sprintf (buf, "%Le", -1.0L / 0.0L) < 0
18470 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18472 if (sprintf (buf, "%Le", zeroL / zeroL) < 0
18473 || !strisnan (buf, 0, strlen (buf)))
18475 if (sprintf (buf, "%Lg", 1.0L / 0.0L) < 0
18476 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
18478 if (sprintf (buf, "%Lg", -1.0L / 0.0L) < 0
18479 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
18481 if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
18482 || !strisnan (buf, 0, strlen (buf)))
18484 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
18485 /* Representation of an 80-bit 'long double' as an initializer for a sequence
18486 of 'unsigned int' words. */
18487 # ifdef WORDS_BIGENDIAN
18488 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18489 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
18490 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
18491 (unsigned int) (mantlo) << 16 \
18494 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18495 { mantlo, manthi, exponent }
18498 static union { unsigned int word[4]; long double value; } x =
18499 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
18500 if (sprintf (buf, "%Lf", x.value) < 0
18501 || !strisnan (buf, 0, strlen (buf)))
18503 if (sprintf (buf, "%Le", x.value) < 0
18504 || !strisnan (buf, 0, strlen (buf)))
18506 if (sprintf (buf, "%Lg", x.value) < 0
18507 || !strisnan (buf, 0, strlen (buf)))
18511 /* Signalling NaN. */
18512 static union { unsigned int word[4]; long double value; } x =
18513 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
18514 if (sprintf (buf, "%Lf", x.value) < 0
18515 || !strisnan (buf, 0, strlen (buf)))
18517 if (sprintf (buf, "%Le", x.value) < 0
18518 || !strisnan (buf, 0, strlen (buf)))
18520 if (sprintf (buf, "%Lg", x.value) < 0
18521 || !strisnan (buf, 0, strlen (buf)))
18524 { /* Pseudo-NaN. */
18525 static union { unsigned int word[4]; long double value; } x =
18526 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
18527 if (sprintf (buf, "%Lf", x.value) < 0
18528 || !strisnan (buf, 0, strlen (buf)))
18530 if (sprintf (buf, "%Le", x.value) < 0
18531 || !strisnan (buf, 0, strlen (buf)))
18533 if (sprintf (buf, "%Lg", x.value) < 0
18534 || !strisnan (buf, 0, strlen (buf)))
18537 { /* Pseudo-Infinity. */
18538 static union { unsigned int word[4]; long double value; } x =
18539 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
18540 if (sprintf (buf, "%Lf", x.value) < 0
18541 || !strisnan (buf, 0, strlen (buf)))
18543 if (sprintf (buf, "%Le", x.value) < 0
18544 || !strisnan (buf, 0, strlen (buf)))
18546 if (sprintf (buf, "%Lg", x.value) < 0
18547 || !strisnan (buf, 0, strlen (buf)))
18550 { /* Pseudo-Zero. */
18551 static union { unsigned int word[4]; long double value; } x =
18552 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
18553 if (sprintf (buf, "%Lf", x.value) < 0
18554 || !strisnan (buf, 0, strlen (buf)))
18556 if (sprintf (buf, "%Le", x.value) < 0
18557 || !strisnan (buf, 0, strlen (buf)))
18559 if (sprintf (buf, "%Lg", x.value) < 0
18560 || !strisnan (buf, 0, strlen (buf)))
18563 { /* Unnormalized number. */
18564 static union { unsigned int word[4]; long double value; } x =
18565 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
18566 if (sprintf (buf, "%Lf", x.value) < 0
18567 || !strisnan (buf, 0, strlen (buf)))
18569 if (sprintf (buf, "%Le", x.value) < 0
18570 || !strisnan (buf, 0, strlen (buf)))
18572 if (sprintf (buf, "%Lg", x.value) < 0
18573 || !strisnan (buf, 0, strlen (buf)))
18576 { /* Pseudo-Denormal. */
18577 static union { unsigned int word[4]; long double value; } x =
18578 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
18579 if (sprintf (buf, "%Lf", x.value) < 0
18580 || !strisnan (buf, 0, strlen (buf)))
18582 if (sprintf (buf, "%Le", x.value) < 0
18583 || !strisnan (buf, 0, strlen (buf)))
18585 if (sprintf (buf, "%Lg", x.value) < 0
18586 || !strisnan (buf, 0, strlen (buf)))
18593 if ac_fn_c_try_run "$LINENO"; then :
18594 gl_cv_func_printf_infinite_long_double=yes
18596 gl_cv_func_printf_infinite_long_double=no
18598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18599 conftest.$ac_objext conftest.beam conftest.$ac_ext
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
18605 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
18608 gl_cv_func_printf_infinite_long_double="irrelevant"
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
18615 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
18616 if test "${gl_cv_func_printf_directive_a+set}" = set; then :
18617 $as_echo_n "(cached) " >&6
18620 if test "$cross_compiling" = yes; then :
18623 # Guess yes on glibc >= 2.5 systems.
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h. */
18628 #include <features.h>
18629 #ifdef __GNU_LIBRARY__
18630 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)
18636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18637 $EGREP "BZ2908" >/dev/null 2>&1; then :
18638 gl_cv_func_printf_directive_a="guessing yes"
18640 gl_cv_func_printf_directive_a="guessing no"
18645 # If we don't know, assume the worst.
18646 *) gl_cv_func_printf_directive_a="guessing no";;
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18654 #include <string.h>
18655 static char buf[100];
18658 if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
18659 || (strcmp (buf, "0x1.922p+1 33") != 0
18660 && strcmp (buf, "0x3.244p+0 33") != 0
18661 && strcmp (buf, "0x6.488p-1 33") != 0
18662 && strcmp (buf, "0xc.91p-2 33") != 0))
18664 if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
18665 || (strcmp (buf, "-0X1.922P+1 33") != 0
18666 && strcmp (buf, "-0X3.244P+0 33") != 0
18667 && strcmp (buf, "-0X6.488P-1 33") != 0
18668 && strcmp (buf, "-0XC.91P-2 33") != 0))
18670 /* This catches a FreeBSD 6.1 bug: it doesn't round. */
18671 if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
18672 || (strcmp (buf, "0x1.83p+0 33") != 0
18673 && strcmp (buf, "0x3.05p-1 33") != 0
18674 && strcmp (buf, "0x6.0ap-2 33") != 0
18675 && strcmp (buf, "0xc.14p-3 33") != 0))
18677 /* This catches a FreeBSD 6.1 bug. See
18678 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
18679 if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0
18682 /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug. */
18683 if (sprintf (buf, "%.1a", 1.999) < 0
18684 || (strcmp (buf, "0x1.0p+1") != 0
18685 && strcmp (buf, "0x2.0p+0") != 0
18686 && strcmp (buf, "0x4.0p-1") != 0
18687 && strcmp (buf, "0x8.0p-2") != 0))
18689 /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a
18690 glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>. */
18691 if (sprintf (buf, "%.1La", 1.999L) < 0
18692 || (strcmp (buf, "0x1.0p+1") != 0
18693 && strcmp (buf, "0x2.0p+0") != 0
18694 && strcmp (buf, "0x4.0p-1") != 0
18695 && strcmp (buf, "0x8.0p-2") != 0))
18700 if ac_fn_c_try_run "$LINENO"; then :
18701 gl_cv_func_printf_directive_a=yes
18703 gl_cv_func_printf_directive_a=no
18705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18706 conftest.$ac_objext conftest.beam conftest.$ac_ext
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
18712 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
18717 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
18718 if test "${gl_cv_func_printf_directive_f+set}" = set; then :
18719 $as_echo_n "(cached) " >&6
18722 if test "$cross_compiling" = yes; then :
18725 # Guess yes on glibc systems.
18726 *-gnu*) gl_cv_func_printf_directive_f="guessing yes";;
18727 # Guess yes on FreeBSD >= 6.
18728 freebsd[1-5]*) gl_cv_func_printf_directive_f="guessing no";;
18729 freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
18730 # Guess yes on MacOS X >= 10.3.
18731 darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";;
18732 darwin*) gl_cv_func_printf_directive_f="guessing yes";;
18733 # Guess yes on Solaris >= 2.10.
18734 solaris2.[0-9]*) gl_cv_func_printf_directive_f="guessing no";;
18735 solaris*) gl_cv_func_printf_directive_f="guessing yes";;
18736 # If we don't know, assume the worst.
18737 *) gl_cv_func_printf_directive_f="guessing no";;
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18745 #include <string.h>
18746 static char buf[100];
18749 if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
18750 || strcmp (buf, "1234567.000000 33") != 0)
18752 if (sprintf (buf, "%F", 1.0 / 0.0) < 0
18753 || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
18755 /* This catches a Cygwin 1.5.x bug. */
18756 if (sprintf (buf, "%.F", 1234.0) < 0
18757 || strcmp (buf, "1234") != 0)
18762 if ac_fn_c_try_run "$LINENO"; then :
18763 gl_cv_func_printf_directive_f=yes
18765 gl_cv_func_printf_directive_f=no
18767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18768 conftest.$ac_objext conftest.beam conftest.$ac_ext
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
18774 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
18779 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
18780 if test "${gl_cv_func_printf_directive_ls+set}" = set; then :
18781 $as_echo_n "(cached) " >&6
18784 if test "$cross_compiling" = yes; then :
18787 openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
18788 irix*) gl_cv_func_printf_directive_ls="guessing no";;
18789 solaris*) gl_cv_func_printf_directive_ls="guessing no";;
18790 cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
18791 beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
18792 *) gl_cv_func_printf_directive_ls="guessing yes";;
18796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797 /* end confdefs.h. */
18799 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18801 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18802 included before <wchar.h>. */
18803 #include <stddef.h>
18807 #include <string.h>
18811 /* Test whether %ls works at all.
18812 This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
18815 static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
18817 if (sprintf (buf, "%ls", wstring) < 0
18818 || strcmp (buf, "abc") != 0)
18821 /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
18822 assertion failure inside libc), but not on OpenBSD 4.0. */
18824 static const wchar_t wstring[] = { 'a', 0 };
18826 if (sprintf (buf, "%ls", wstring) < 0
18827 || strcmp (buf, "a") != 0)
18830 /* Test whether precisions in %ls are supported as specified in ISO C 99
18832 "If a precision is specified, no more than that many bytes are written
18833 (including shift sequences, if any), and the array shall contain a
18834 null wide character if, to equal the multibyte character sequence
18835 length given by the precision, the function would need to access a
18836 wide character one past the end of the array."
18837 This test fails on Solaris 10. */
18839 static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
18841 if (sprintf (buf, "%.2ls", wstring) < 0
18842 || strcmp (buf, "ab") != 0)
18848 if ac_fn_c_try_run "$LINENO"; then :
18849 gl_cv_func_printf_directive_ls=yes
18851 gl_cv_func_printf_directive_ls=no
18853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18854 conftest.$ac_objext conftest.beam conftest.$ac_ext
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
18860 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
18865 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
18866 if test "${gl_cv_func_printf_flag_grouping+set}" = set; then :
18867 $as_echo_n "(cached) " >&6
18870 if test "$cross_compiling" = yes; then :
18873 cygwin*) gl_cv_func_printf_flag_grouping="guessing no";;
18874 netbsd*) gl_cv_func_printf_flag_grouping="guessing no";;
18875 mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
18876 *) gl_cv_func_printf_flag_grouping="guessing yes";;
18880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18884 #include <string.h>
18885 static char buf[100];
18888 if (sprintf (buf, "%'d %d", 1234567, 99) < 0
18889 || buf[strlen (buf) - 1] != '9')
18894 if ac_fn_c_try_run "$LINENO"; then :
18895 gl_cv_func_printf_flag_grouping=yes
18897 gl_cv_func_printf_flag_grouping=no
18899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18900 conftest.$ac_objext conftest.beam conftest.$ac_ext
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
18906 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
18911 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
18912 if test "${gl_cv_func_printf_flag_leftadjust+set}" = set; then :
18913 $as_echo_n "(cached) " >&6
18916 if test "$cross_compiling" = yes; then :
18919 # Guess yes on HP-UX 11.
18920 hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
18921 # Guess no on HP-UX 10 and older.
18922 hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";;
18923 # Guess yes otherwise.
18924 *) gl_cv_func_printf_flag_leftadjust="guessing yes";;
18928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929 /* end confdefs.h. */
18932 #include <string.h>
18933 static char buf[100];
18936 /* Check that a '-' flag is not annihilated by a negative width. */
18937 if (sprintf (buf, "a%-*sc", -3, "b") < 0
18938 || strcmp (buf, "ab c") != 0)
18943 if ac_fn_c_try_run "$LINENO"; then :
18944 gl_cv_func_printf_flag_leftadjust=yes
18946 gl_cv_func_printf_flag_leftadjust=no
18948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18949 conftest.$ac_objext conftest.beam conftest.$ac_ext
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
18955 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
18960 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
18961 if test "${gl_cv_func_printf_flag_zero+set}" = set; then :
18962 $as_echo_n "(cached) " >&6
18965 if test "$cross_compiling" = yes; then :
18968 # Guess yes on glibc systems.
18969 *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
18970 # Guess yes on BeOS.
18971 beos*) gl_cv_func_printf_flag_zero="guessing yes";;
18972 # If we don't know, assume the worst.
18973 *) gl_cv_func_printf_flag_zero="guessing no";;
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18981 #include <string.h>
18982 static char buf[100];
18985 if (sprintf (buf, "%010f", 1.0 / 0.0, 33, 44, 55) < 0
18986 || (strcmp (buf, " inf") != 0
18987 && strcmp (buf, " infinity") != 0))
18992 if ac_fn_c_try_run "$LINENO"; then :
18993 gl_cv_func_printf_flag_zero=yes
18995 gl_cv_func_printf_flag_zero=no
18997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18998 conftest.$ac_objext conftest.beam conftest.$ac_ext
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
19004 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
19009 $as_echo_n "checking whether printf supports large precisions... " >&6; }
19010 if test "${gl_cv_func_printf_precision+set}" = set; then :
19011 $as_echo_n "(cached) " >&6
19014 if test "$cross_compiling" = yes; then :
19017 # Guess no only on native Win32 and BeOS systems.
19018 mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
19019 beos*) gl_cv_func_printf_precision="guessing no" ;;
19020 *) gl_cv_func_printf_precision="guessing yes" ;;
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19028 #include <string.h>
19029 static char buf[5000];
19033 /* On BeOS, this would crash and show a dialog box. Avoid the crash. */
19036 if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
19041 if ac_fn_c_try_run "$LINENO"; then :
19042 gl_cv_func_printf_precision=yes
19044 gl_cv_func_printf_precision=no
19046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19047 conftest.$ac_objext conftest.beam conftest.$ac_ext
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
19053 $as_echo "$gl_cv_func_printf_precision" >&6; }
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
19059 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
19060 if test "${gl_cv_func_printf_enomem+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19064 gl_cv_func_printf_enomem="guessing no"
19065 if test "$cross_compiling" = no; then
19066 if test $APPLE_UNIVERSAL_BUILD = 0; then
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19071 #include <stdlib.h>
19072 #if defined __MACH__ && defined __APPLE__
19073 /* Avoid a crash on MacOS X. */
19074 #include <mach/mach.h>
19075 #include <mach/mach_error.h>
19076 #include <mach/thread_status.h>
19077 #include <mach/exception.h>
19078 #include <mach/task.h>
19079 #include <pthread.h>
19080 /* The exception port on which our thread listens. */
19081 static mach_port_t our_exception_port;
19082 /* The main function of the thread listening for exceptions of type
19085 mach_exception_thread (void *arg)
19087 /* Buffer for a message to be received. */
19089 mach_msg_header_t head;
19090 mach_msg_body_t msgh_body;
19093 mach_msg_return_t retval;
19094 /* Wait for a message on the exception port. */
19095 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19096 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19097 if (retval != MACH_MSG_SUCCESS)
19102 nocrash_init (void)
19104 mach_port_t self = mach_task_self ();
19105 /* Allocate a port on which the thread shall listen for exceptions. */
19106 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19108 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19109 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19110 MACH_MSG_TYPE_MAKE_SEND)
19112 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19114 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19115 /* Create the thread listening on the exception port. */
19116 pthread_attr_t attr;
19118 if (pthread_attr_init (&attr) == 0
19119 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19120 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19121 pthread_attr_destroy (&attr);
19122 /* Replace the exception port info for these exceptions with our own.
19123 Note that we replace the exception port for the entire task, not only
19124 for a particular thread. This has the effect that when our exception
19125 port gets the message, the thread specific exception port has already
19126 been asked, and we don't need to bother about it.
19127 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19128 task_set_exception_ports (self, mask, our_exception_port,
19129 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19135 /* Avoid a crash on POSIX systems. */
19136 #include <signal.h>
19137 /* A POSIX signal handler. */
19139 exception_handler (int sig)
19144 nocrash_init (void)
19147 signal (SIGSEGV, exception_handler);
19150 signal (SIGBUS, exception_handler);
19156 #include <sys/types.h>
19157 #include <sys/time.h>
19158 #include <sys/resource.h>
19162 struct rlimit limit;
19165 /* Some printf implementations allocate temporary space with malloc. */
19166 /* On BSD systems, malloc() is limited by RLIMIT_DATA. */
19168 if (getrlimit (RLIMIT_DATA, &limit) < 0)
19170 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
19171 limit.rlim_max = 5000000;
19172 limit.rlim_cur = limit.rlim_max;
19173 if (setrlimit (RLIMIT_DATA, &limit) < 0)
19176 /* On Linux systems, malloc() is limited by RLIMIT_AS. */
19178 if (getrlimit (RLIMIT_AS, &limit) < 0)
19180 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
19181 limit.rlim_max = 5000000;
19182 limit.rlim_cur = limit.rlim_max;
19183 if (setrlimit (RLIMIT_AS, &limit) < 0)
19186 /* Some printf implementations allocate temporary space on the stack. */
19187 #ifdef RLIMIT_STACK
19188 if (getrlimit (RLIMIT_STACK, &limit) < 0)
19190 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
19191 limit.rlim_max = 5000000;
19192 limit.rlim_cur = limit.rlim_max;
19193 if (setrlimit (RLIMIT_STACK, &limit) < 0)
19196 ret = printf ("%.5000000f", 1.0);
19197 return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
19201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19202 (eval $ac_link) 2>&5
19204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19205 test $ac_status = 0; } && test -s conftest$ac_exeext; then
19208 if test $result != 0 && test $result != 77; then result=1; fi
19210 ) >/dev/null 2>/dev/null
19212 0) gl_cv_func_printf_enomem="yes" ;;
19213 77) gl_cv_func_printf_enomem="guessing no" ;;
19214 *) gl_cv_func_printf_enomem="no" ;;
19217 gl_cv_func_printf_enomem="guessing no"
19221 gl_cv_func_printf_enomem="guessing no"
19224 if test "$gl_cv_func_printf_enomem" = "guessing no"; then
19226 # Guess yes on glibc systems.
19227 *-gnu*) gl_cv_func_printf_enomem="guessing yes";;
19228 # Guess yes on Solaris.
19229 solaris*) gl_cv_func_printf_enomem="guessing yes";;
19230 # Guess yes on AIX.
19231 aix*) gl_cv_func_printf_enomem="guessing yes";;
19232 # Guess yes on HP-UX/hppa.
19233 hpux*) case "$host_cpu" in
19234 hppa*) gl_cv_func_printf_enomem="guessing yes";;
19235 *) gl_cv_func_printf_enomem="guessing no";;
19238 # Guess yes on IRIX.
19239 irix*) gl_cv_func_printf_enomem="guessing yes";;
19240 # Guess yes on OSF/1.
19241 osf*) gl_cv_func_printf_enomem="guessing yes";;
19242 # Guess yes on BeOS.
19243 beos*) gl_cv_func_printf_enomem="guessing yes";;
19244 # Guess yes on Haiku.
19245 haiku*) gl_cv_func_printf_enomem="guessing yes";;
19246 # If we don't know, assume the worst.
19247 *) gl_cv_func_printf_enomem="guessing no";;
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
19253 $as_echo "$gl_cv_func_printf_enomem" >&6; }
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
19261 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
19262 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
19263 $as_echo_n "(cached) " >&6
19265 gl_cv_header_wchar_h_correct_inline=yes
19266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h. */
19269 #define wcstod renamed_wcstod
19271 extern int zero (void);
19272 int main () { return zero(); }
19275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19276 (eval $ac_compile) 2>&5
19278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19279 test $ac_status = 0; }; then
19280 mv conftest.$ac_objext conftest1.$ac_objext
19281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h. */
19284 #define wcstod renamed_wcstod
19286 int zero (void) { return 0; }
19289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19290 (eval $ac_compile) 2>&5
19292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19293 test $ac_status = 0; }; then
19294 mv conftest.$ac_objext conftest2.$ac_objext
19295 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
19298 gl_cv_header_wchar_h_correct_inline=no
19302 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
19306 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
19307 if test $gl_cv_header_wchar_h_correct_inline = no; then
19308 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
19309 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
19310 C99 mode. You have four options:
19311 - Add the flag -fgnu89-inline to CC and reconfigure, or
19312 - Fix your include files, using parts of
19313 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
19314 - Use a gcc version older than 4.3, or
19315 - Don't use the flags -std=c99 or -std=gnu99.
19316 Configuration aborted." "$LINENO" 5
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
19333 $as_echo_n "checking if environ is properly declared... " >&6; }
19334 if test "${gt_cv_var_environ_declaration+set}" = set; then :
19335 $as_echo_n "(cached) " >&6
19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h. */
19340 #include <unistd.h>
19341 extern struct { int foo; } environ;
19350 if ac_fn_c_try_compile "$LINENO"; then :
19351 gt_cv_var_environ_declaration=no
19353 gt_cv_var_environ_declaration=yes
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
19359 $as_echo "$gt_cv_var_environ_declaration" >&6; }
19360 if test $gt_cv_var_environ_declaration = yes; then
19362 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
19367 if test $gt_cv_var_environ_declaration != yes; then
19368 HAVE_DECL_ENVIRON=0
19371 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19372 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
19378 cat >>confdefs.h <<_ACEOF
19379 #define HAVE_DECL_STRERROR_R $ac_have_decl
19382 for ac_func in strerror_r
19384 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19385 if test "x$ac_cv_func_strerror_r" = x""yes; then :
19386 cat >>confdefs.h <<_ACEOF
19387 #define HAVE_STRERROR_R 1
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19394 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
19395 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
19396 $as_echo_n "(cached) " >&6
19399 ac_cv_func_strerror_r_char_p=no
19400 if test $ac_cv_have_decl_strerror_r = yes; then
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403 $ac_includes_default
19409 char x = *strerror_r (0, buf, sizeof buf);
19410 char *p = strerror_r (0, buf, sizeof buf);
19417 if ac_fn_c_try_compile "$LINENO"; then :
19418 ac_cv_func_strerror_r_char_p=yes
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422 # strerror_r is not declared. Choose between
19423 # systems that have relatively inaccessible declarations for the
19424 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
19425 # former has a strerror_r that returns char*, while the latter
19426 # has a strerror_r that returns `int'.
19427 # This test should segfault on the DEC system.
19428 if test "$cross_compiling" = yes; then :
19431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h. */
19433 $ac_includes_default
19434 extern char *strerror_r ();
19439 char x = *strerror_r (0, buf, sizeof buf);
19440 return ! isalpha (x);
19445 if ac_fn_c_try_run "$LINENO"; then :
19446 ac_cv_func_strerror_r_char_p=yes
19448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19449 conftest.$ac_objext conftest.beam conftest.$ac_ext
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19456 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19457 if test $ac_cv_func_strerror_r_char_p = yes; then
19459 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19464 XGETTEXT_EXTRA_OPTIONS=
19467 GNULIB_DUPLOCALE=0;
19469 REPLACE_DUPLOCALE=0;
19482 if test $ac_cv_func_setenv = no; then
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
19486 $as_echo_n "checking whether setenv validates arguments... " >&6; }
19487 if test "${gl_cv_func_setenv_works+set}" = set; then :
19488 $as_echo_n "(cached) " >&6
19490 if test "$cross_compiling" = yes; then :
19491 gl_cv_func_setenv_works="guessing no"
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19496 #include <stdlib.h>
19498 #include <string.h>
19504 if (setenv ("", "", 0) != -1) return 1;
19505 if (errno != EINVAL) return 2;
19506 if (setenv ("a", "=", 1) != 0) return 3;
19507 if (strcmp (getenv ("a"), "=") != 0) return 4;
19513 if ac_fn_c_try_run "$LINENO"; then :
19514 gl_cv_func_setenv_works=yes
19516 gl_cv_func_setenv_works=no
19518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19519 conftest.$ac_objext conftest.beam conftest.$ac_ext
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
19524 $as_echo "$gl_cv_func_setenv_works" >&6; }
19525 if test "$gl_cv_func_setenv_works" != yes; then
19535 gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext"
19543 for ac_header in search.h
19545 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
19546 if test "x$ac_cv_header_search_h" = x""yes; then :
19547 cat >>confdefs.h <<_ACEOF
19548 #define HAVE_SEARCH_H 1
19555 for ac_func in tsearch
19557 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
19558 if test "x$ac_cv_func_tsearch" = x""yes; then :
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_TSEARCH 1
19573 if test -z "$ERRNO_H"; then
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
19575 $as_echo_n "checking for working strerror function... " >&6; }
19576 if test "${gl_cv_func_working_strerror+set}" = set; then :
19577 $as_echo_n "(cached) " >&6
19579 if test "$cross_compiling" = yes; then :
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582 #include <string.h>
19587 return !*strerror (-2);
19592 if ac_fn_c_try_compile "$LINENO"; then :
19593 gl_cv_func_working_strerror=yes
19595 gl_cv_func_working_strerror=no
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19602 #include <string.h>
19607 return !*strerror (-2);
19612 if ac_fn_c_try_run "$LINENO"; then :
19613 gl_cv_func_working_strerror=yes
19615 gl_cv_func_working_strerror=no
19617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19618 conftest.$ac_objext conftest.beam conftest.$ac_ext
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
19624 $as_echo "$gl_cv_func_working_strerror" >&6; }
19625 if test $gl_cv_func_working_strerror = no; then
19631 if test $REPLACE_STRERROR = 1; then
19633 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
19634 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
19640 cat >>confdefs.h <<_ACEOF
19641 #define HAVE_DECL_STRERROR $ac_have_decl
19645 if test $ac_cv_header_sys_socket_h != yes; then
19646 for ac_header in winsock2.h
19648 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19649 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19650 cat >>confdefs.h <<_ACEOF
19651 #define HAVE_WINSOCK2_H 1
19662 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
19663 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_DECL_ALARM $ac_have_decl
19677 GL_COND_LIBTOOL_TRUE=
19678 GL_COND_LIBTOOL_FALSE='#'
19680 GL_COND_LIBTOOL_TRUE='#'
19681 GL_COND_LIBTOOL_FALSE=
19684 gl_cond_libtool=true
19685 gl_m4_base='gnulib-m4'
19695 gl_source_base='lib'
19696 # Code from module alloca-opt:
19702 if test $ac_cv_func_alloca_works = no; then
19706 # Define an additional variable used in the Makefile substitution.
19707 if test $ac_cv_working_alloca_h = yes; then
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19709 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19710 if test "${gl_cv_rpl_alloca+set}" = set; then :
19711 $as_echo_n "(cached) " >&6
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19717 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19723 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19724 gl_cv_rpl_alloca=yes
19726 gl_cv_rpl_alloca=no
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19733 $as_echo "$gl_cv_rpl_alloca" >&6; }
19734 if test $gl_cv_rpl_alloca = yes; then
19736 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19747 # Code from module arg-nonnull:
19748 # Code from module array-mergesort:
19749 # Code from module c++defs:
19750 # Code from module c-ctype:
19751 # Code from module c-strcase:
19752 # Code from module c-strcaseeq:
19753 # Code from module configmake:
19754 # Code from module errno:
19756 # Code from module extensions:
19757 # Code from module float:
19771 if test $gl_cv_have_include_next = yes; then
19772 gl_cv_next_float_h='<'float.h'>'
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19775 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19776 if test "${gl_cv_next_float_h+set}" = set; then :
19777 $as_echo_n "(cached) " >&6
19780 if test $ac_cv_header_float_h = yes; then
19781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782 /* end confdefs.h. */
19787 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19788 *) gl_absname_cpp="$ac_cpp" ;;
19790 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19791 sed -n '\#/float.h#{
19792 s#.*"\(.*/float.h\)".*#\1#
19798 gl_cv_next_float_h='<'float.h'>'
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19803 $as_echo "$gl_cv_next_float_h" >&6; }
19805 NEXT_FLOAT_H=$gl_cv_next_float_h
19807 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19808 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19809 gl_next_as_first_directive='<'float.h'>'
19811 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19812 gl_next_as_first_directive=$gl_cv_next_float_h
19814 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
19822 # Code from module fpieee:
19823 # Code from module fpucw:
19824 # Code from module frexpl-nolibm:
19827 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
19829 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
19835 if test $HAVE_DECL_FREXPL = 1; then
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
19837 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
19838 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
19839 $as_echo_n "(cached) " >&6
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19849 int e; return frexpl (x, &e) > 0;
19854 if ac_fn_c_try_link "$LINENO"; then :
19855 gl_cv_func_frexpl_no_libm=yes
19857 gl_cv_func_frexpl_no_libm=no
19859 rm -f core conftest.err conftest.$ac_objext \
19860 conftest$ac_exeext conftest.$ac_ext
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
19864 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
19865 if test $gl_cv_func_frexpl_no_libm = yes; then
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
19869 $as_echo_n "checking whether frexpl works... " >&6; }
19870 if test "${gl_cv_func_frexpl_works+set}" = set; then :
19871 $as_echo_n "(cached) " >&6
19874 if test "$cross_compiling" = yes; then :
19876 aix* | beos* | darwin* | irix* | mingw* | pw*)
19877 gl_cv_func_frexpl_works="guessing no";;
19878 *) gl_cv_func_frexpl_works="guessing yes";;
19882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883 /* end confdefs.h. */
19887 /* Override the values of <float.h>, like done in float.in.h. */
19888 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
19889 # undef LDBL_MIN_EXP
19890 # define LDBL_MIN_EXP (-16381)
19892 extern long double frexpl (long double, int *);
19895 volatile long double x;
19896 /* Test on finite numbers that fails on AIX 5.1. */
19904 /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
19905 function returns an invalid (incorrectly normalized) value: it returns
19906 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
19907 but the correct result is
19908 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
19912 long double y = frexpl (x, &exp);
19913 if (!(exp == 1 && y == 0.505L))
19916 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
19917 LDBL_MAX_EXP = 16384.
19918 In the loop end test, we test x against Infinity, rather than comparing
19919 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
19922 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
19930 /* Test on denormalized numbers. */
19933 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
19938 long double y = frexpl (x, &exp);
19939 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
19940 exp = -16382, y = 0.5. On MacOS X 10.5: exp = -16384, y = 0.5. */
19941 if (exp != LDBL_MIN_EXP - 1)
19945 /* Test on infinite numbers. */
19949 long double y = frexpl (x, &exp);
19956 if ac_fn_c_try_run "$LINENO"; then :
19957 gl_cv_func_frexpl_works=yes
19959 gl_cv_func_frexpl_works=no
19961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19962 conftest.$ac_objext conftest.beam conftest.$ac_ext
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
19968 $as_echo "$gl_cv_func_frexpl_works" >&6; }
19970 case "$gl_cv_func_frexpl_works" in
19971 *yes) gl_func_frexpl_no_libm=yes ;;
19972 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
19975 gl_func_frexpl_no_libm=no
19978 if test $gl_func_frexpl_no_libm = yes; then
19980 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
19984 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
19993 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
20004 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
20008 # Code from module fseterr:
20009 # Code from module gperf:
20010 # Code from module havelib:
20011 # Code from module iconv:
20017 am_save_CPPFLAGS="$CPPFLAGS"
20019 for element in $INCICONV; do
20021 for x in $CPPFLAGS; do
20023 acl_save_prefix="$prefix"
20024 prefix="$acl_final_prefix"
20025 acl_save_exec_prefix="$exec_prefix"
20026 exec_prefix="$acl_final_exec_prefix"
20028 exec_prefix="$acl_save_exec_prefix"
20029 prefix="$acl_save_prefix"
20031 if test "X$x" = "X$element"; then
20036 if test -z "$haveit"; then
20037 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20043 $as_echo_n "checking for iconv... " >&6; }
20044 if test "${am_cv_func_iconv+set}" = set; then :
20045 $as_echo_n "(cached) " >&6
20048 am_cv_func_iconv="no, consider installing GNU libiconv"
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20052 #include <stdlib.h>
20057 iconv_t cd = iconv_open("","");
20058 iconv(cd,NULL,NULL,NULL,NULL);
20064 if ac_fn_c_try_link "$LINENO"; then :
20065 am_cv_func_iconv=yes
20067 rm -f core conftest.err conftest.$ac_objext \
20068 conftest$ac_exeext conftest.$ac_ext
20069 if test "$am_cv_func_iconv" != yes; then
20070 am_save_LIBS="$LIBS"
20071 LIBS="$LIBS $LIBICONV"
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20074 #include <stdlib.h>
20079 iconv_t cd = iconv_open("","");
20080 iconv(cd,NULL,NULL,NULL,NULL);
20086 if ac_fn_c_try_link "$LINENO"; then :
20087 am_cv_lib_iconv=yes
20088 am_cv_func_iconv=yes
20090 rm -f core conftest.err conftest.$ac_objext \
20091 conftest$ac_exeext conftest.$ac_ext
20092 LIBS="$am_save_LIBS"
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20097 $as_echo "$am_cv_func_iconv" >&6; }
20098 if test "$am_cv_func_iconv" = yes; then
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20100 $as_echo_n "checking for working iconv... " >&6; }
20101 if test "${am_cv_func_iconv_works+set}" = set; then :
20102 $as_echo_n "(cached) " >&6
20105 am_save_LIBS="$LIBS"
20106 if test $am_cv_lib_iconv = yes; then
20107 LIBS="$LIBS $LIBICONV"
20109 if test "$cross_compiling" = yes; then :
20111 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20112 *) am_cv_func_iconv_works="guessing yes" ;;
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20119 #include <string.h>
20122 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20125 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20126 if (cd_utf8_to_88591 != (iconv_t)(-1))
20128 static const char input[] = "\342\202\254"; /* EURO SIGN */
20130 const char *inptr = input;
20131 size_t inbytesleft = strlen (input);
20132 char *outptr = buf;
20133 size_t outbytesleft = sizeof (buf);
20134 size_t res = iconv (cd_utf8_to_88591,
20135 (char **) &inptr, &inbytesleft,
20136 &outptr, &outbytesleft);
20141 /* Test against Solaris 10 bug: Failures are not distinguishable from
20142 successful returns. */
20144 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20145 if (cd_ascii_to_88591 != (iconv_t)(-1))
20147 static const char input[] = "\263";
20149 const char *inptr = input;
20150 size_t inbytesleft = strlen (input);
20151 char *outptr = buf;
20152 size_t outbytesleft = sizeof (buf);
20153 size_t res = iconv (cd_ascii_to_88591,
20154 (char **) &inptr, &inbytesleft,
20155 &outptr, &outbytesleft);
20160 #if 0 /* This bug could be worked around by the caller. */
20161 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20163 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20164 if (cd_88591_to_utf8 != (iconv_t)(-1))
20166 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20168 const char *inptr = input;
20169 size_t inbytesleft = strlen (input);
20170 char *outptr = buf;
20171 size_t outbytesleft = sizeof (buf);
20172 size_t res = iconv (cd_88591_to_utf8,
20173 (char **) &inptr, &inbytesleft,
20174 &outptr, &outbytesleft);
20180 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20182 if (/* Try standardized names. */
20183 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20184 /* Try IRIX, OSF/1 names. */
20185 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20186 /* Try AIX names. */
20187 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20188 /* Try HP-UX names. */
20189 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20194 if ac_fn_c_try_run "$LINENO"; then :
20195 am_cv_func_iconv_works=yes
20197 am_cv_func_iconv_works=no
20199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20200 conftest.$ac_objext conftest.beam conftest.$ac_ext
20203 LIBS="$am_save_LIBS"
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20207 $as_echo "$am_cv_func_iconv_works" >&6; }
20208 case "$am_cv_func_iconv_works" in
20209 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20210 *) am_func_iconv=yes ;;
20213 am_func_iconv=no am_cv_lib_iconv=no
20215 if test "$am_func_iconv" = yes; then
20217 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20220 if test "$am_cv_lib_iconv" = yes; then
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20222 $as_echo_n "checking how to link with libiconv... " >&6; }
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20224 $as_echo "$LIBICONV" >&6; }
20226 CPPFLAGS="$am_save_CPPFLAGS"
20233 if test "$am_cv_func_iconv" = yes; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20235 $as_echo_n "checking for iconv declaration... " >&6; }
20236 if test "${am_cv_proto_iconv+set}" = set; then :
20237 $as_echo_n "(cached) " >&6
20240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h. */
20243 #include <stdlib.h>
20249 #if defined(__STDC__) || defined(__cplusplus)
20250 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20263 if ac_fn_c_try_compile "$LINENO"; then :
20264 am_cv_proto_iconv_arg1=""
20266 am_cv_proto_iconv_arg1="const"
20268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20269 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20272 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20274 $am_cv_proto_iconv" >&5
20276 $am_cv_proto_iconv" >&6; }
20278 cat >>confdefs.h <<_ACEOF
20279 #define ICONV_CONST $am_cv_proto_iconv_arg1
20284 # Code from module iconv-h:
20294 if test $gl_cv_have_include_next = yes; then
20295 gl_cv_next_iconv_h='<'iconv.h'>'
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
20298 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
20299 if test "${gl_cv_next_iconv_h+set}" = set; then :
20300 $as_echo_n "(cached) " >&6
20303 if test $ac_cv_header_iconv_h = yes; then
20304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h. */
20310 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20311 *) gl_absname_cpp="$ac_cpp" ;;
20313 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20314 sed -n '\#/iconv.h#{
20315 s#.*"\(.*/iconv.h\)".*#\1#
20321 gl_cv_next_iconv_h='<'iconv.h'>'
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
20326 $as_echo "$gl_cv_next_iconv_h" >&6; }
20328 NEXT_ICONV_H=$gl_cv_next_iconv_h
20330 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20332 gl_next_as_first_directive='<'iconv.h'>'
20334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20335 gl_next_as_first_directive=$gl_cv_next_iconv_h
20337 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
20342 # Code from module iconv_open:
20347 if test "$am_cv_func_iconv" = yes; then
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20356 #if defined _LIBICONV_VERSION || defined __GLIBC__
20361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20362 $EGREP "gnu_iconv" >/dev/null 2>&1; then :
20363 gl_func_iconv_gnu=yes
20365 gl_func_iconv_gnu=no
20369 if test $gl_func_iconv_gnu = no; then
20372 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
20373 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
20374 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
20375 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
20376 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
20378 if test -n "$iconv_flavor"; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define ICONV_FLAVOR $iconv_flavor
20389 REPLACE_ICONV_OPEN=1
20398 gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
20405 # Code from module include_next:
20406 # Code from module inline:
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
20410 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20411 if test "${gl_cv_c_inline_effective+set}" = set; then :
20412 $as_echo_n "(cached) " >&6
20414 if test $ac_cv_c_inline = no; then
20415 gl_cv_c_inline_effective=no
20417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h. */
20423 #ifdef __NO_INLINE__
20424 #error "inline is not effective"
20430 if ac_fn_c_try_compile "$LINENO"; then :
20431 gl_cv_c_inline_effective=yes
20433 gl_cv_c_inline_effective=no
20435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
20440 $as_echo "$gl_cv_c_inline_effective" >&6; }
20441 if test $gl_cv_c_inline_effective = yes; then
20443 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
20447 # Code from module isnand-nolibm:
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
20451 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
20452 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
20453 $as_echo_n "(cached) " >&6
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h. */
20461 # define isnand(x) __builtin_isnan ((double)(x))
20464 # define isnand(x) isnan ((double)(x))
20475 if ac_fn_c_try_link "$LINENO"; then :
20476 gl_cv_func_isnand_no_libm=yes
20478 gl_cv_func_isnand_no_libm=no
20480 rm -f core conftest.err conftest.$ac_objext \
20481 conftest$ac_exeext conftest.$ac_ext
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
20485 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
20487 if test $gl_cv_func_isnand_no_libm = yes; then
20489 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
20501 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20505 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20506 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
20507 $as_echo_n "(cached) " >&6
20510 if test "$cross_compiling" = yes; then :
20512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h. */
20515 #if defined arm || defined __arm || defined __arm__
20520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20521 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20522 gl_cv_cc_double_expbit0="unknown"
20526 if test "${ac_cv_c_bigendian+set}" = set; then :
20527 $as_echo_n "(cached) " >&6
20529 ac_cv_c_bigendian=unknown
20530 # See if we're dealing with a universal compiler.
20531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h. */
20533 #ifndef __APPLE_CC__
20534 not a universal capable compiler
20539 if ac_fn_c_try_compile "$LINENO"; then :
20541 # Check for potential -arch flags. It is not universal unless
20542 # there are at least two -arch flags with different values.
20545 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20546 if test -n "$ac_prev"; then
20548 i?86 | x86_64 | ppc | ppc64)
20549 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20552 ac_cv_c_bigendian=universal
20558 elif test "x$ac_word" = "x-arch"; then
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564 if test $ac_cv_c_bigendian = unknown; then
20565 # See if sys/param.h defines the BYTE_ORDER macro.
20566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20567 /* end confdefs.h. */
20568 #include <sys/types.h>
20569 #include <sys/param.h>
20574 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20575 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20577 bogus endian macros
20584 if ac_fn_c_try_compile "$LINENO"; then :
20585 # It does; now see whether it defined to BIG_ENDIAN or not.
20586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20587 /* end confdefs.h. */
20588 #include <sys/types.h>
20589 #include <sys/param.h>
20594 #if BYTE_ORDER != BIG_ENDIAN
20602 if ac_fn_c_try_compile "$LINENO"; then :
20603 ac_cv_c_bigendian=yes
20605 ac_cv_c_bigendian=no
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 if test $ac_cv_c_bigendian = unknown; then
20612 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h. */
20615 #include <limits.h>
20620 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20621 bogus endian macros
20628 if ac_fn_c_try_compile "$LINENO"; then :
20629 # It does; now see whether it defined to _BIG_ENDIAN or not.
20630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h. */
20632 #include <limits.h>
20637 #ifndef _BIG_ENDIAN
20645 if ac_fn_c_try_compile "$LINENO"; then :
20646 ac_cv_c_bigendian=yes
20648 ac_cv_c_bigendian=no
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 if test $ac_cv_c_bigendian = unknown; then
20655 # Compile a test program.
20656 if test "$cross_compiling" = yes; then :
20657 # Try to guess by grepping values from an object file.
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20660 short int ascii_mm[] =
20661 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20662 short int ascii_ii[] =
20663 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20664 int use_ascii (int i) {
20665 return ascii_mm[i] + ascii_ii[i];
20667 short int ebcdic_ii[] =
20668 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20669 short int ebcdic_mm[] =
20670 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20671 int use_ebcdic (int i) {
20672 return ebcdic_mm[i] + ebcdic_ii[i];
20679 return use_ascii (foo) == use_ebcdic (foo);
20684 if ac_fn_c_try_compile "$LINENO"; then :
20685 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20686 ac_cv_c_bigendian=yes
20688 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20689 if test "$ac_cv_c_bigendian" = unknown; then
20690 ac_cv_c_bigendian=no
20692 # finding both strings is unlikely to happen, but who knows?
20693 ac_cv_c_bigendian=unknown
20697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701 $ac_includes_default
20706 /* Are we little or big endian? From Harbison&Steele. */
20710 char c[sizeof (long int)];
20713 return u.c[sizeof (long int) - 1] == 1;
20719 if ac_fn_c_try_run "$LINENO"; then :
20720 ac_cv_c_bigendian=no
20722 ac_cv_c_bigendian=yes
20724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20725 conftest.$ac_objext conftest.beam conftest.$ac_ext
20731 case $ac_cv_c_bigendian in #(
20733 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20735 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20738 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20742 gl_cv_cc_double_expbit0="unknown" ;;
20751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h. */
20755 #include <stddef.h>
20757 #include <string.h>
20759 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20760 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20761 static unsigned int ored_words[NWORDS];
20762 static unsigned int anded_words[NWORDS];
20763 static void add_to_ored_words (double x)
20767 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
20768 memset (&m, 0, sizeof (memory_double));
20770 for (i = 0; i < NWORDS; i++)
20772 ored_words[i] |= m.word[i];
20773 anded_words[i] &= m.word[i];
20779 FILE *fp = fopen ("conftest.out", "w");
20782 for (j = 0; j < NWORDS; j++)
20783 anded_words[j] = ~ (unsigned int) 0;
20784 add_to_ored_words (0.25);
20785 add_to_ored_words (0.5);
20786 add_to_ored_words (1.0);
20787 add_to_ored_words (2.0);
20788 add_to_ored_words (4.0);
20789 /* Remove bits that are common (e.g. if representation of the first mantissa
20790 bit is explicit). */
20791 for (j = 0; j < NWORDS; j++)
20792 ored_words[j] &= ~anded_words[j];
20793 /* Now find the nonzero word. */
20794 for (j = 0; j < NWORDS; j++)
20795 if (ored_words[j] != 0)
20800 for (i = j + 1; i < NWORDS; i++)
20801 if (ored_words[i] != 0)
20803 fprintf (fp, "unknown");
20804 return (fclose (fp) != 0);
20807 if ((ored_words[j] >> i) & 1)
20809 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20810 return (fclose (fp) != 0);
20813 fprintf (fp, "unknown");
20814 return (fclose (fp) != 0);
20818 if ac_fn_c_try_run "$LINENO"; then :
20819 gl_cv_cc_double_expbit0=`cat conftest.out`
20821 gl_cv_cc_double_expbit0="unknown"
20823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20824 conftest.$ac_objext conftest.beam conftest.$ac_ext
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20831 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20832 case "$gl_cv_cc_double_expbit0" in
20834 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20835 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20837 cat >>confdefs.h <<_ACEOF
20838 #define DBL_EXPBIT0_WORD $word
20842 cat >>confdefs.h <<_ACEOF
20843 #define DBL_EXPBIT0_BIT $bit
20852 # Code from module isnanf-nolibm:
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
20856 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
20857 if test "${gl_cv_func_isnanf_no_libm+set}" = set; then :
20858 $as_echo_n "(cached) " >&6
20861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862 /* end confdefs.h. */
20866 # define isnanf(x) __builtin_isnanf ((float)(x))
20867 #elif defined isnan
20869 # define isnanf(x) isnan ((float)(x))
20880 if ac_fn_c_try_link "$LINENO"; then :
20881 gl_cv_func_isnanf_no_libm=yes
20883 gl_cv_func_isnanf_no_libm=no
20885 rm -f core conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
20890 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
20892 if test $gl_cv_func_isnanf_no_libm = yes; then
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
20897 $as_echo_n "checking whether isnan(float) works... " >&6; }
20898 if test "${gl_cv_func_isnanf_works+set}" = set; then :
20899 $as_echo_n "(cached) " >&6
20902 if test "$cross_compiling" = yes; then :
20904 irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
20905 *) gl_cv_func_isnanf_works="guessing yes";;
20909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20915 # define isnanf(x) __builtin_isnanf ((float)(x))
20916 #elif defined isnan
20918 # define isnanf(x) isnan ((float)(x))
20920 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */
20925 static float zero = 0.0f;
20926 return zero / zero;
20929 # define NaN() (0.0f / 0.0f)
20932 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20933 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
20938 if (isnanf (1.0f / 0.0f))
20941 if (!isnanf (NaN ()))
20944 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
20945 /* The isnanf function should be immune against changes in the sign bit and
20946 in the mantissa bits. The xor operation twiddles a bit that can only be
20947 a sign bit or a mantissa bit. */
20948 if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
20951 /* Set the bits below the exponent to 01111...111. */
20952 m.word[0] &= -1U << FLT_EXPBIT0_BIT;
20953 m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
20954 if (!isnanf (m.value))
20962 if ac_fn_c_try_run "$LINENO"; then :
20963 gl_cv_func_isnanf_works=yes
20965 gl_cv_func_isnanf_works=no
20967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20968 conftest.$ac_objext conftest.beam conftest.$ac_ext
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
20974 $as_echo "$gl_cv_func_isnanf_works" >&6; }
20977 if test $gl_cv_func_isnanf_no_libm = yes \
20978 && { case "$gl_cv_func_isnanf_works" in
20984 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
20996 gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
21000 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
21001 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
21002 $as_echo_n "(cached) " >&6
21005 if test "$cross_compiling" = yes; then :
21006 gl_cv_cc_float_expbit0="word 0 bit 23"
21008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21009 /* end confdefs.h. */
21012 #include <stddef.h>
21014 #include <string.h>
21016 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21017 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
21018 static unsigned int ored_words[NWORDS];
21019 static unsigned int anded_words[NWORDS];
21020 static void add_to_ored_words (float x)
21024 /* Clear it first, in case
21025 sizeof (float) < sizeof (memory_float). */
21026 memset (&m, 0, sizeof (memory_float));
21028 for (i = 0; i < NWORDS; i++)
21030 ored_words[i] |= m.word[i];
21031 anded_words[i] &= m.word[i];
21037 FILE *fp = fopen ("conftest.out", "w");
21040 for (j = 0; j < NWORDS; j++)
21041 anded_words[j] = ~ (unsigned int) 0;
21042 add_to_ored_words (0.25f);
21043 add_to_ored_words (0.5f);
21044 add_to_ored_words (1.0f);
21045 add_to_ored_words (2.0f);
21046 add_to_ored_words (4.0f);
21047 /* Remove bits that are common (e.g. if representation of the first mantissa
21048 bit is explicit). */
21049 for (j = 0; j < NWORDS; j++)
21050 ored_words[j] &= ~anded_words[j];
21051 /* Now find the nonzero word. */
21052 for (j = 0; j < NWORDS; j++)
21053 if (ored_words[j] != 0)
21058 for (i = j + 1; i < NWORDS; i++)
21059 if (ored_words[i] != 0)
21061 fprintf (fp, "unknown");
21062 return (fclose (fp) != 0);
21065 if ((ored_words[j] >> i) & 1)
21067 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21068 return (fclose (fp) != 0);
21071 fprintf (fp, "unknown");
21072 return (fclose (fp) != 0);
21076 if ac_fn_c_try_run "$LINENO"; then :
21077 gl_cv_cc_float_expbit0=`cat conftest.out`
21079 gl_cv_cc_float_expbit0="unknown"
21081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21082 conftest.$ac_objext conftest.beam conftest.$ac_ext
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
21089 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
21090 case "$gl_cv_cc_float_expbit0" in
21092 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21093 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
21095 cat >>confdefs.h <<_ACEOF
21096 #define FLT_EXPBIT0_WORD $word
21100 cat >>confdefs.h <<_ACEOF
21101 #define FLT_EXPBIT0_BIT $bit
21110 # Code from module isnanl-nolibm:
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21114 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21115 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
21116 $as_echo_n "(cached) " >&6
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21124 # define isnanl(x) __builtin_isnanl ((long double)(x))
21125 #elif defined isnan
21127 # define isnanl(x) isnan ((long double)(x))
21138 if ac_fn_c_try_link "$LINENO"; then :
21139 gl_cv_func_isnanl_no_libm=yes
21141 gl_cv_func_isnanl_no_libm=no
21143 rm -f core conftest.err conftest.$ac_objext \
21144 conftest$ac_exeext conftest.$ac_ext
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21148 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21150 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
21151 if test $gl_func_isnanl_no_libm = yes; then
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21156 $as_echo_n "checking whether isnanl works... " >&6; }
21157 if test "${gl_cv_func_isnanl_works+set}" = set; then :
21158 $as_echo_n "(cached) " >&6
21161 if test "$cross_compiling" = yes; then :
21162 case "$host_cpu" in
21163 # Guess no on ia64, x86_64, i386.
21164 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
21167 netbsd*) gl_cv_func_isnanl_works="guessing no";;
21168 *) gl_cv_func_isnanl_works="guessing yes";;
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21178 #include <limits.h>
21182 # define isnanl(x) __builtin_isnanl ((long double)(x))
21183 #elif defined isnan
21185 # define isnanl(x) isnan ((long double)(x))
21188 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21189 typedef union { unsigned int word[NWORDS]; long double value; }
21190 memory_long_double;
21191 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21192 runtime type conversion. */
21194 static long double NaNl ()
21197 return zero / zero;
21200 # define NaNl() (0.0L / 0.0L)
21204 memory_long_double m;
21207 if (!isnanl (NaNl ()))
21210 /* The isnanl function should be immune against changes in the sign bit and
21211 in the mantissa bits. The xor operation twiddles a bit that can only be
21212 a sign bit or a mantissa bit (since the exponent never extends to
21215 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21216 for (i = 0; i < NWORDS; i++)
21218 if (!isnanl (m.value))
21221 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
21222 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21223 of 'unsigned int' words. */
21224 # ifdef WORDS_BIGENDIAN
21225 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21226 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21227 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
21228 (unsigned int) (mantlo) << 16 \
21231 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21232 { mantlo, manthi, exponent }
21235 static memory_long_double x =
21236 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21237 if (!isnanl (x.value))
21241 /* Signalling NaN. */
21242 static memory_long_double x =
21243 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21244 if (!isnanl (x.value))
21247 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
21248 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
21249 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
21250 Application Architecture.
21251 Table 5-2 "Floating-Point Register Encodings"
21252 Figure 5-6 "Memory to Floating-Point Register Data Translation"
21254 { /* Pseudo-NaN. */
21255 static memory_long_double x =
21256 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21257 if (!isnanl (x.value))
21260 { /* Pseudo-Infinity. */
21261 static memory_long_double x =
21262 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21263 if (!isnanl (x.value))
21266 { /* Pseudo-Zero. */
21267 static memory_long_double x =
21268 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21269 if (!isnanl (x.value))
21272 { /* Unnormalized number. */
21273 static memory_long_double x =
21274 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21275 if (!isnanl (x.value))
21278 { /* Pseudo-Denormal. */
21279 static memory_long_double x =
21280 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21281 if (!isnanl (x.value))
21289 if ac_fn_c_try_run "$LINENO"; then :
21290 gl_cv_func_isnanl_works=yes
21292 gl_cv_func_isnanl_works=no
21294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21295 conftest.$ac_objext conftest.beam conftest.$ac_ext
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21301 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21303 case "$gl_cv_func_isnanl_works" in
21305 *) gl_func_isnanl_no_libm=no ;;
21308 if test $gl_func_isnanl_no_libm = yes; then
21310 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21322 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21327 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21328 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
21329 $as_echo_n "(cached) " >&6
21332 if test "$cross_compiling" = yes; then :
21334 gl_cv_cc_long_double_expbit0="unknown"
21337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h. */
21341 #include <stddef.h>
21343 #include <string.h>
21345 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21346 typedef union { long double value; unsigned int word[NWORDS]; }
21347 memory_long_double;
21348 static unsigned int ored_words[NWORDS];
21349 static unsigned int anded_words[NWORDS];
21350 static void add_to_ored_words (long double x)
21352 memory_long_double m;
21354 /* Clear it first, in case
21355 sizeof (long double) < sizeof (memory_long_double). */
21356 memset (&m, 0, sizeof (memory_long_double));
21358 for (i = 0; i < NWORDS; i++)
21360 ored_words[i] |= m.word[i];
21361 anded_words[i] &= m.word[i];
21367 FILE *fp = fopen ("conftest.out", "w");
21370 for (j = 0; j < NWORDS; j++)
21371 anded_words[j] = ~ (unsigned int) 0;
21372 add_to_ored_words (0.25L);
21373 add_to_ored_words (0.5L);
21374 add_to_ored_words (1.0L);
21375 add_to_ored_words (2.0L);
21376 add_to_ored_words (4.0L);
21377 /* Remove bits that are common (e.g. if representation of the first mantissa
21378 bit is explicit). */
21379 for (j = 0; j < NWORDS; j++)
21380 ored_words[j] &= ~anded_words[j];
21381 /* Now find the nonzero word. */
21382 for (j = 0; j < NWORDS; j++)
21383 if (ored_words[j] != 0)
21388 for (i = j + 1; i < NWORDS; i++)
21389 if (ored_words[i] != 0)
21391 fprintf (fp, "unknown");
21392 return (fclose (fp) != 0);
21395 if ((ored_words[j] >> i) & 1)
21397 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21398 return (fclose (fp) != 0);
21401 fprintf (fp, "unknown");
21402 return (fclose (fp) != 0);
21406 if ac_fn_c_try_run "$LINENO"; then :
21407 gl_cv_cc_long_double_expbit0=`cat conftest.out`
21409 gl_cv_cc_long_double_expbit0="unknown"
21411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21412 conftest.$ac_objext conftest.beam conftest.$ac_ext
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21419 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21420 case "$gl_cv_cc_long_double_expbit0" in
21422 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21423 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21425 cat >>confdefs.h <<_ACEOF
21426 #define LDBL_EXPBIT0_WORD $word
21430 cat >>confdefs.h <<_ACEOF
21431 #define LDBL_EXPBIT0_BIT $bit
21440 # Code from module localcharset:
21449 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
21451 # Code from module localename:
21455 for ac_func in setlocale uselocale
21457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21459 eval as_val=\$$as_ac_var
21460 if test "x$as_val" = x""yes; then :
21461 cat >>confdefs.h <<_ACEOF
21462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21469 # Code from module lock:
21472 if test "$gl_threads_api" = posix; then
21473 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
21474 # pthread_rwlock_* functions.
21475 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21477 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
21479 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21483 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486 #include <pthread.h>
21490 #if __FreeBSD__ == 4
21491 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21493 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21500 if ac_fn_c_try_compile "$LINENO"; then :
21502 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 # Code from module malloc-posix:
21514 if test $gl_cv_func_malloc_posix = yes; then
21515 HAVE_MALLOC_POSIX=1
21517 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21528 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21530 HAVE_MALLOC_POSIX=0
21537 GNULIB_MALLOC_POSIX=1
21541 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21545 # Code from module malloca:
21550 # Code from module math:
21559 if test $gl_cv_have_include_next = yes; then
21560 gl_cv_next_math_h='<'math.h'>'
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
21563 $as_echo_n "checking absolute name of <math.h>... " >&6; }
21564 if test "${gl_cv_next_math_h+set}" = set; then :
21565 $as_echo_n "(cached) " >&6
21568 if test $ac_cv_header_math_h = yes; then
21569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21570 /* end confdefs.h. */
21575 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21576 *) gl_absname_cpp="$ac_cpp" ;;
21578 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21579 sed -n '\#/math.h#{
21580 s#.*"\(.*/math.h\)".*#\1#
21586 gl_cv_next_math_h='<'math.h'>'
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
21591 $as_echo "$gl_cv_next_math_h" >&6; }
21593 NEXT_MATH_H=$gl_cv_next_math_h
21595 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21596 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21597 gl_next_as_first_directive='<'math.h'>'
21599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21600 gl_next_as_first_directive=$gl_cv_next_math_h
21602 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
21609 $as_echo_n "checking whether NAN macro works... " >&6; }
21610 if test "${gl_cv_header_math_nan_works+set}" = set; then :
21611 $as_echo_n "(cached) " >&6
21613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614 /* end confdefs.h. */
21619 /* Solaris 10 has a broken definition of NAN. Other platforms
21620 fail to provide NAN, or provide it only in C99 mode; this
21621 test only needs to fail when NAN is provided but wrong. */
21631 if ac_fn_c_try_compile "$LINENO"; then :
21632 gl_cv_header_math_nan_works=yes
21634 gl_cv_header_math_nan_works=no
21636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
21639 $as_echo "$gl_cv_header_math_nan_works" >&6; }
21640 if test $gl_cv_header_math_nan_works = no; then
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
21644 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
21645 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
21646 $as_echo_n "(cached) " >&6
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21654 /* Solaris 10 has a broken definition of HUGE_VAL. */
21655 double d = HUGE_VAL;
21661 if ac_fn_c_try_compile "$LINENO"; then :
21662 gl_cv_header_math_huge_val_works=yes
21664 gl_cv_header_math_huge_val_works=no
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
21669 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
21670 if test $gl_cv_header_math_huge_val_works = no; then
21675 for gl_func in acosl asinl atanl ceilf ceill cosl expl floorf floorl frexpl ldexpl logb logl round roundf roundl sinl sqrtl tanl trunc truncf truncl; do
21676 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21678 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21679 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
21680 $as_echo_n "(cached) " >&6
21682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21683 /* end confdefs.h. */
21695 if ac_fn_c_try_compile "$LINENO"; then :
21696 eval "$as_gl_Symbol=yes"
21698 eval "$as_gl_Symbol=no"
21700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 eval ac_res=\$$as_gl_Symbol
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21704 $as_echo "$ac_res" >&6; }
21705 eval as_val=\$$as_gl_Symbol
21706 if test "x$as_val" = x""yes; then :
21707 cat >>confdefs.h <<_ACEOF
21708 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21711 eval ac_cv_have_decl_$gl_func=yes
21716 # Code from module mbchar:
21721 # Code from module mbiter:
21728 # Code from module mbrtowc:
21739 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21744 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21745 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21750 # Guess no on AIX and OSF/1.
21751 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21752 # Guess yes otherwise.
21753 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21755 if test $LOCALE_JA != none; then
21756 if test "$cross_compiling" = yes; then :
21759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h. */
21762 #include <locale.h>
21763 #include <string.h>
21767 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21769 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21773 memset (&state, '\0', sizeof (mbstate_t));
21774 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21775 if (mbsinit (&state))
21781 if ac_fn_c_try_run "$LINENO"; then :
21782 gl_cv_func_mbrtowc_incomplete_state=yes
21784 gl_cv_func_mbrtowc_incomplete_state=no
21786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21787 conftest.$ac_objext conftest.beam conftest.$ac_ext
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21794 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21800 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21801 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
21802 $as_echo_n "(cached) " >&6
21806 # Guess no on Solaris 8.
21807 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21808 # Guess yes otherwise.
21809 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21811 if test $LOCALE_ZH_CN != none; then
21812 if test "$cross_compiling" = yes; then :
21815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h. */
21818 #include <locale.h>
21819 #include <stdlib.h>
21820 #include <string.h>
21824 /* This fails on Solaris 8:
21825 mbrtowc returns 2, and sets wc to 0x00F0.
21826 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21827 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21829 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21833 memset (&state, '\0', sizeof (mbstate_t));
21834 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21835 && mbtowc (&wc, input + 3, 6) == 4)
21841 if ac_fn_c_try_run "$LINENO"; then :
21842 gl_cv_func_mbrtowc_sanitycheck=yes
21844 gl_cv_func_mbrtowc_sanitycheck=no
21846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21847 conftest.$ac_objext conftest.beam conftest.$ac_ext
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21854 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21856 REPLACE_MBSTATE_T=0
21857 case "$gl_cv_func_mbrtowc_incomplete_state" in
21859 *) REPLACE_MBSTATE_T=1 ;;
21861 case "$gl_cv_func_mbrtowc_sanitycheck" in
21863 *) REPLACE_MBSTATE_T=1 ;;
21866 REPLACE_MBSTATE_T=1
21868 if test $REPLACE_MBSTATE_T = 1; then
21876 if test $ac_cv_func_mbrtowc = no; then
21879 if test $REPLACE_MBSTATE_T = 1; then
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
21886 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
21887 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
21888 $as_echo_n "(cached) " >&6
21892 # Guess no on OSF/1.
21893 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
21894 # Guess yes otherwise.
21895 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
21897 if test $LOCALE_FR_UTF8 != none; then
21898 if test "$cross_compiling" = yes; then :
21901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21902 /* end confdefs.h. */
21904 #include <locale.h>
21905 #include <string.h>
21909 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21915 memset (&state, '\0', sizeof (mbstate_t));
21916 wc = (wchar_t) 0xBADFACE;
21917 mbrtowc (&wc, NULL, 5, &state);
21918 /* Check that wc was not modified. */
21919 if (wc != (wchar_t) 0xBADFACE)
21925 if ac_fn_c_try_run "$LINENO"; then :
21926 gl_cv_func_mbrtowc_null_arg=yes
21928 gl_cv_func_mbrtowc_null_arg=no
21930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21931 conftest.$ac_objext conftest.beam conftest.$ac_ext
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
21938 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
21945 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
21946 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
21947 $as_echo_n "(cached) " >&6
21951 # Guess no on HP-UX and Solaris.
21952 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
21953 # Guess yes otherwise.
21954 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
21956 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
21957 if test "$cross_compiling" = yes; then :
21960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h. */
21963 #include <locale.h>
21964 #include <string.h>
21968 /* This fails on Solaris. */
21969 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21971 char input[] = "B\303\274\303\237er"; /* "Büßer" */
21975 memset (&state, '\0', sizeof (mbstate_t));
21976 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21979 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
21983 /* This fails on HP-UX 11.11. */
21984 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21986 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21990 memset (&state, '\0', sizeof (mbstate_t));
21991 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21994 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
22001 if ac_fn_c_try_run "$LINENO"; then :
22002 gl_cv_func_mbrtowc_retval=yes
22004 gl_cv_func_mbrtowc_retval=no
22006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22007 conftest.$ac_objext conftest.beam conftest.$ac_ext
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
22014 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
22020 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
22021 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
22022 $as_echo_n "(cached) " >&6
22026 # Guess no on Solaris 8 and 9.
22027 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
22028 # Guess yes otherwise.
22029 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
22031 if test $LOCALE_ZH_CN != none; then
22032 if test "$cross_compiling" = yes; then :
22035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22036 /* end confdefs.h. */
22038 #include <locale.h>
22039 #include <string.h>
22043 /* This fails on Solaris 8 and 9. */
22044 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22049 memset (&state, '\0', sizeof (mbstate_t));
22050 if (mbrtowc (&wc, "", 1, &state) != 0)
22056 if ac_fn_c_try_run "$LINENO"; then :
22057 gl_cv_func_mbrtowc_nul_retval=yes
22059 gl_cv_func_mbrtowc_nul_retval=no
22061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22062 conftest.$ac_objext conftest.beam conftest.$ac_ext
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
22069 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
22071 case "$gl_cv_func_mbrtowc_null_arg" in
22074 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
22079 case "$gl_cv_func_mbrtowc_retval" in
22082 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
22087 case "$gl_cv_func_mbrtowc_nul_retval" in
22090 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
22097 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
22109 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
22123 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
22127 # Code from module mbsinit:
22138 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22143 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22144 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
22145 $as_echo_n "(cached) " >&6
22149 # Guess no on AIX and OSF/1.
22150 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
22151 # Guess yes otherwise.
22152 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
22154 if test $LOCALE_JA != none; then
22155 if test "$cross_compiling" = yes; then :
22158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h. */
22161 #include <locale.h>
22162 #include <string.h>
22166 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22168 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22172 memset (&state, '\0', sizeof (mbstate_t));
22173 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22174 if (mbsinit (&state))
22180 if ac_fn_c_try_run "$LINENO"; then :
22181 gl_cv_func_mbrtowc_incomplete_state=yes
22183 gl_cv_func_mbrtowc_incomplete_state=no
22185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22186 conftest.$ac_objext conftest.beam conftest.$ac_ext
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22193 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22199 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22200 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
22201 $as_echo_n "(cached) " >&6
22205 # Guess no on Solaris 8.
22206 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
22207 # Guess yes otherwise.
22208 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
22210 if test $LOCALE_ZH_CN != none; then
22211 if test "$cross_compiling" = yes; then :
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22217 #include <locale.h>
22218 #include <stdlib.h>
22219 #include <string.h>
22223 /* This fails on Solaris 8:
22224 mbrtowc returns 2, and sets wc to 0x00F0.
22225 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22226 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22228 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22232 memset (&state, '\0', sizeof (mbstate_t));
22233 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22234 && mbtowc (&wc, input + 3, 6) == 4)
22240 if ac_fn_c_try_run "$LINENO"; then :
22241 gl_cv_func_mbrtowc_sanitycheck=yes
22243 gl_cv_func_mbrtowc_sanitycheck=no
22245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22246 conftest.$ac_objext conftest.beam conftest.$ac_ext
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22253 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22255 REPLACE_MBSTATE_T=0
22256 case "$gl_cv_func_mbrtowc_incomplete_state" in
22258 *) REPLACE_MBSTATE_T=1 ;;
22260 case "$gl_cv_func_mbrtowc_sanitycheck" in
22262 *) REPLACE_MBSTATE_T=1 ;;
22265 REPLACE_MBSTATE_T=1
22267 if test $REPLACE_MBSTATE_T = 1; then
22275 if test $ac_cv_func_mbsinit = no; then
22278 if test $REPLACE_MBSTATE_T = 1; then
22282 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
22294 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
22308 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
22312 # Code from module mbsnlen:
22320 $as_echo "#define GNULIB_TEST_MBSNLEN 1" >>confdefs.h
22324 # Code from module memchr:
22333 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22337 # Code from module memcmp2:
22338 # Code from module memxfrm:
22339 # Code from module minmax:
22343 # Code from module multiarch:
22345 # Code from module nocrash:
22346 # Code from module printf-frexp:
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp can be used without linking with libm" >&5
22349 $as_echo_n "checking whether frexp can be used without linking with libm... " >&6; }
22350 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h. */
22362 return frexp (x, &y) < 1;
22367 if ac_fn_c_try_link "$LINENO"; then :
22368 gl_cv_func_frexp_no_libm=yes
22370 gl_cv_func_frexp_no_libm=no
22372 rm -f core conftest.err conftest.$ac_objext \
22373 conftest$ac_exeext conftest.$ac_ext
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
22377 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
22378 if test $gl_cv_func_frexp_no_libm = yes; then
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
22382 $as_echo_n "checking whether frexp works... " >&6; }
22383 if test "${gl_cv_func_frexp_works+set}" = set; then :
22384 $as_echo_n "(cached) " >&6
22387 if test "$cross_compiling" = yes; then :
22389 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
22390 *) gl_cv_func_frexp_works="guessing yes";;
22394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22395 /* end confdefs.h. */
22399 #include <string.h>
22404 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
22405 So we use -zero instead. */
22407 /* Test on denormalized numbers. */
22408 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
22413 double y = frexp (x, &exp);
22414 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
22415 On NetBSD: y = 0.75. Correct: y = 0.5. */
22419 /* Test on infinite numbers. */
22423 double y = frexp (x, &exp);
22427 /* Test on negative zero. */
22431 double y = frexp (x, &exp);
22432 if (memcmp (&y, &x, sizeof x))
22438 if ac_fn_c_try_run "$LINENO"; then :
22439 gl_cv_func_frexp_works=yes
22441 gl_cv_func_frexp_works=no
22443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22444 conftest.$ac_objext conftest.beam conftest.$ac_ext
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
22450 $as_echo "$gl_cv_func_frexp_works" >&6; }
22452 case "$gl_cv_func_frexp_works" in
22455 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
22462 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
22463 if test "${gl_cv_func_ldexp_no_libm+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h. */
22475 return ldexp (x, y) < 1;
22480 if ac_fn_c_try_link "$LINENO"; then :
22481 gl_cv_func_ldexp_no_libm=yes
22483 gl_cv_func_ldexp_no_libm=no
22485 rm -f core conftest.err conftest.$ac_objext \
22486 conftest$ac_exeext conftest.$ac_ext
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
22490 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
22491 if test $gl_cv_func_ldexp_no_libm = yes; then
22493 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
22497 # Code from module printf-frexpl:
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl can be used without linking with libm" >&5
22501 $as_echo_n "checking whether frexpl can be used without linking with libm... " >&6; }
22502 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22507 /* end confdefs.h. */
22514 return frexpl (x, &y) < 1;
22519 if ac_fn_c_try_link "$LINENO"; then :
22520 gl_cv_func_frexpl_no_libm=yes
22522 gl_cv_func_frexpl_no_libm=no
22524 rm -f core conftest.err conftest.$ac_objext \
22525 conftest$ac_exeext conftest.$ac_ext
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
22529 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
22530 if test $gl_cv_func_frexpl_no_libm = yes; then
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
22534 $as_echo_n "checking whether frexpl works... " >&6; }
22535 if test "${gl_cv_func_frexpl_works+set}" = set; then :
22536 $as_echo_n "(cached) " >&6
22539 if test "$cross_compiling" = yes; then :
22541 aix* | beos* | darwin* | irix* | mingw* | pw*)
22542 gl_cv_func_frexpl_works="guessing no";;
22543 *) gl_cv_func_frexpl_works="guessing yes";;
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22552 /* Override the values of <float.h>, like done in float.in.h. */
22553 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
22554 # undef LDBL_MIN_EXP
22555 # define LDBL_MIN_EXP (-16381)
22557 extern long double frexpl (long double, int *);
22560 volatile long double x;
22561 /* Test on finite numbers that fails on AIX 5.1. */
22569 /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
22570 function returns an invalid (incorrectly normalized) value: it returns
22571 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
22572 but the correct result is
22573 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
22577 long double y = frexpl (x, &exp);
22578 if (!(exp == 1 && y == 0.505L))
22581 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
22582 LDBL_MAX_EXP = 16384.
22583 In the loop end test, we test x against Infinity, rather than comparing
22584 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
22587 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
22595 /* Test on denormalized numbers. */
22598 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
22603 long double y = frexpl (x, &exp);
22604 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
22605 exp = -16382, y = 0.5. On MacOS X 10.5: exp = -16384, y = 0.5. */
22606 if (exp != LDBL_MIN_EXP - 1)
22610 /* Test on infinite numbers. */
22614 long double y = frexpl (x, &exp);
22621 if ac_fn_c_try_run "$LINENO"; then :
22622 gl_cv_func_frexpl_works=yes
22624 gl_cv_func_frexpl_works=no
22626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22627 conftest.$ac_objext conftest.beam conftest.$ac_ext
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
22633 $as_echo "$gl_cv_func_frexpl_works" >&6; }
22635 case "$gl_cv_func_frexpl_works" in
22636 *yes) gl_func_frexpl_no_libm=yes ;;
22637 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
22640 gl_func_frexpl_no_libm=no
22643 if test $gl_func_frexpl_no_libm = yes; then
22645 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
22647 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
22649 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl can be used without linking with libm" >&5
22658 $as_echo_n "checking whether ldexpl can be used without linking with libm... " >&6; }
22659 if test "${gl_cv_func_ldexpl_no_libm+set}" = set; then :
22660 $as_echo_n "(cached) " >&6
22663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664 /* end confdefs.h. */
22671 return ldexpl (x, y) < 1;
22676 if ac_fn_c_try_link "$LINENO"; then :
22677 gl_cv_func_ldexpl_no_libm=yes
22679 gl_cv_func_ldexpl_no_libm=no
22681 rm -f core conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
22686 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
22687 if test $gl_cv_func_ldexpl_no_libm = yes; then
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
22691 $as_echo_n "checking whether ldexpl works... " >&6; }
22692 if test "${gl_cv_func_ldexpl_works+set}" = set; then :
22693 $as_echo_n "(cached) " >&6
22696 if test "$cross_compiling" = yes; then :
22698 aix*) gl_cv_func_ldexpl_works="guessing no";;
22699 *) gl_cv_func_ldexpl_works="guessing yes";;
22703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704 /* end confdefs.h. */
22707 extern long double ldexpl (long double, int);
22710 volatile long double x1 = 1.0;
22711 volatile long double y1 = ldexpl (x1, -1);
22712 volatile long double x2 = 1.73205L;
22713 volatile long double y2 = ldexpl (x2, 0);
22714 return (y1 != 0.5L) || (y2 != x2);
22717 if ac_fn_c_try_run "$LINENO"; then :
22718 gl_cv_func_ldexpl_works=yes
22720 gl_cv_func_ldexpl_works=no
22722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22723 conftest.$ac_objext conftest.beam conftest.$ac_ext
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
22729 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
22731 case "$gl_cv_func_ldexpl_works" in
22734 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
22736 ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
22738 if test "x$ac_cv_have_decl_ldexpl" = x""yes; then :
22748 # Code from module printf-safe:
22750 # Code from module relocatable-lib-lgpl:
22753 if test $RELOCATABLE = yes; then
22762 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
22766 # Code from module signbit:
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
22770 $as_echo_n "checking for signbit macro... " >&6; }
22771 if test "${gl_cv_func_signbit+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22775 if test "$cross_compiling" = yes; then :
22776 gl_cv_func_signbit="guessing no"
22778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22779 /* end confdefs.h. */
22782 /* If signbit is defined as a function, don't use it, since calling it for
22783 'float' or 'long double' arguments would involve conversions.
22784 If signbit is not declared at all but exists as a library function, don't
22785 use it, since the prototype may not match.
22786 If signbit is not declared at all but exists as a compiler built-in, don't
22787 use it, since it's preferable to use __builtin_signbit* (no warnings,
22788 no conversions). */
22790 # error "signbit should be a macro"
22792 #include <string.h>
22794 /* Global variables.
22795 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
22796 but cannot constant-fold __builtin_signbitl (variable). */
22802 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
22803 So we use -p0f and -p0d instead. */
22808 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
22809 So we use another constant expression instead.
22810 But that expression does not work on other platforms, such as when
22811 cross-compiling to PowerPC on MacOS X 10.5. */
22812 long double p0l = 0.0L;
22813 #if defined __hpux || defined __sgi
22814 long double m0l = -LDBL_MIN * LDBL_MIN;
22816 long double m0l = -p0l;
22821 float plus_inf = 1.0f / p0f;
22822 float minus_inf = -1.0f / p0f;
22823 if (!(!signbit (255.0f)
22824 && signbit (-255.0f)
22826 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
22827 && !signbit (plus_inf)
22828 && signbit (minus_inf)))
22834 double plus_inf = 1.0 / p0d;
22835 double minus_inf = -1.0 / p0d;
22836 if (!(!signbit (255.0)
22837 && signbit (-255.0)
22839 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
22840 && !signbit (plus_inf)
22841 && signbit (minus_inf)))
22847 long double plus_inf = 1.0L / p0l;
22848 long double minus_inf = -1.0L / p0l;
22849 if (!(!signbit (255.0L)
22850 && signbit (-255.0L)
22852 && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
22853 && !signbit (plus_inf)
22854 && signbit (minus_inf)))
22862 if ac_fn_c_try_run "$LINENO"; then :
22863 gl_cv_func_signbit=yes
22865 gl_cv_func_signbit=no
22867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22868 conftest.$ac_objext conftest.beam conftest.$ac_ext
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
22874 $as_echo "$gl_cv_func_signbit" >&6; }
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
22876 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
22877 if test "${gl_cv_func_signbit_gcc+set}" = set; then :
22878 $as_echo_n "(cached) " >&6
22881 if test "$cross_compiling" = yes; then :
22882 gl_cv_func_signbit_gcc="guessing no"
22884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h. */
22888 # define signbit(x) \
22889 (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
22890 sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
22891 __builtin_signbitf (x))
22893 # error "signbit should be three compiler built-ins"
22895 #include <string.h>
22897 /* Global variables.
22898 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
22899 but cannot constant-fold __builtin_signbitl (variable). */
22905 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
22906 So we use -p0f and -p0d instead. */
22911 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
22912 So we use another constant expression instead.
22913 But that expression does not work on other platforms, such as when
22914 cross-compiling to PowerPC on MacOS X 10.5. */
22915 long double p0l = 0.0L;
22916 #if defined __hpux || defined __sgi
22917 long double m0l = -LDBL_MIN * LDBL_MIN;
22919 long double m0l = -p0l;
22924 float plus_inf = 1.0f / p0f;
22925 float minus_inf = -1.0f / p0f;
22926 if (!(!signbit (255.0f)
22927 && signbit (-255.0f)
22929 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
22930 && !signbit (plus_inf)
22931 && signbit (minus_inf)))
22937 double plus_inf = 1.0 / p0d;
22938 double minus_inf = -1.0 / p0d;
22939 if (!(!signbit (255.0)
22940 && signbit (-255.0)
22942 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
22943 && !signbit (plus_inf)
22944 && signbit (minus_inf)))
22950 long double plus_inf = 1.0L / p0l;
22951 long double minus_inf = -1.0L / p0l;
22952 if (!(!signbit (255.0L)
22953 && signbit (-255.0L)
22955 && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
22956 && !signbit (plus_inf)
22957 && signbit (minus_inf)))
22965 if ac_fn_c_try_run "$LINENO"; then :
22966 gl_cv_func_signbit_gcc=yes
22968 gl_cv_func_signbit_gcc=no
22970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22971 conftest.$ac_objext conftest.beam conftest.$ac_ext
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
22977 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
22978 if test "$gl_cv_func_signbit_gcc" = yes; then
22979 REPLACE_SIGNBIT_USING_GCC=1
22981 if test "$gl_cv_func_signbit" != yes; then
22991 gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
23001 gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
23011 gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
23016 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
23017 if test "${gl_cv_cc_float_signbit+set}" = set; then :
23018 $as_echo_n "(cached) " >&6
23021 if test "$cross_compiling" = yes; then :
23023 gl_cv_cc_float_signbit="unknown"
23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h. */
23029 #include <stddef.h>
23032 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23033 typedef union { float value; unsigned int word[NWORDS]; }
23035 static memory_float plus = { 1.0f };
23036 static memory_float minus = { -1.0f };
23041 FILE *fp = fopen ("conftest.out", "w");
23044 /* Find the different bit. */
23046 for (j = 0; j < NWORDS; j++)
23048 unsigned int x = plus.word[j] ^ minus.word[j];
23049 if ((x & (x - 1)) || (x && m))
23051 /* More than one bit difference. */
23052 fprintf (fp, "unknown");
23063 /* No difference. */
23064 fprintf (fp, "unknown");
23067 /* Now m = plus.word[k] ^ ~minus.word[k]. */
23068 if (plus.word[k] & ~minus.word[k])
23070 /* Oh? The sign bit is set in the positive and cleared in the negative
23072 fprintf (fp, "unknown");
23078 fprintf (fp, "word %d bit %d", (int) k, (int) i);
23079 return (fclose (fp) != 0);
23083 if ac_fn_c_try_run "$LINENO"; then :
23084 gl_cv_cc_float_signbit=`cat conftest.out`
23086 gl_cv_cc_float_signbit="unknown"
23088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23089 conftest.$ac_objext conftest.beam conftest.$ac_ext
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
23096 $as_echo "$gl_cv_cc_float_signbit" >&6; }
23097 case "$gl_cv_cc_float_signbit" in
23099 word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
23100 bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
23102 cat >>confdefs.h <<_ACEOF
23103 #define FLT_SIGNBIT_WORD $word
23107 cat >>confdefs.h <<_ACEOF
23108 #define FLT_SIGNBIT_BIT $bit
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
23118 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
23119 if test "${gl_cv_cc_double_signbit+set}" = set; then :
23120 $as_echo_n "(cached) " >&6
23123 if test "$cross_compiling" = yes; then :
23125 gl_cv_cc_double_signbit="unknown"
23128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h. */
23131 #include <stddef.h>
23134 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23135 typedef union { double value; unsigned int word[NWORDS]; }
23137 static memory_float plus = { 1.0 };
23138 static memory_float minus = { -1.0 };
23143 FILE *fp = fopen ("conftest.out", "w");
23146 /* Find the different bit. */
23148 for (j = 0; j < NWORDS; j++)
23150 unsigned int x = plus.word[j] ^ minus.word[j];
23151 if ((x & (x - 1)) || (x && m))
23153 /* More than one bit difference. */
23154 fprintf (fp, "unknown");
23165 /* No difference. */
23166 fprintf (fp, "unknown");
23169 /* Now m = plus.word[k] ^ ~minus.word[k]. */
23170 if (plus.word[k] & ~minus.word[k])
23172 /* Oh? The sign bit is set in the positive and cleared in the negative
23174 fprintf (fp, "unknown");
23180 fprintf (fp, "word %d bit %d", (int) k, (int) i);
23181 return (fclose (fp) != 0);
23185 if ac_fn_c_try_run "$LINENO"; then :
23186 gl_cv_cc_double_signbit=`cat conftest.out`
23188 gl_cv_cc_double_signbit="unknown"
23190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23191 conftest.$ac_objext conftest.beam conftest.$ac_ext
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
23198 $as_echo "$gl_cv_cc_double_signbit" >&6; }
23199 case "$gl_cv_cc_double_signbit" in
23201 word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
23202 bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
23204 cat >>confdefs.h <<_ACEOF
23205 #define DBL_SIGNBIT_WORD $word
23209 cat >>confdefs.h <<_ACEOF
23210 #define DBL_SIGNBIT_BIT $bit
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
23220 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
23221 if test "${gl_cv_cc_long_double_signbit+set}" = set; then :
23222 $as_echo_n "(cached) " >&6
23225 if test "$cross_compiling" = yes; then :
23227 gl_cv_cc_long_double_signbit="unknown"
23230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h. */
23233 #include <stddef.h>
23236 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23237 typedef union { long double value; unsigned int word[NWORDS]; }
23239 static memory_float plus = { 1.0L };
23240 static memory_float minus = { -1.0L };
23245 FILE *fp = fopen ("conftest.out", "w");
23248 /* Find the different bit. */
23250 for (j = 0; j < NWORDS; j++)
23252 unsigned int x = plus.word[j] ^ minus.word[j];
23253 if ((x & (x - 1)) || (x && m))
23255 /* More than one bit difference. */
23256 fprintf (fp, "unknown");
23267 /* No difference. */
23268 fprintf (fp, "unknown");
23271 /* Now m = plus.word[k] ^ ~minus.word[k]. */
23272 if (plus.word[k] & ~minus.word[k])
23274 /* Oh? The sign bit is set in the positive and cleared in the negative
23276 fprintf (fp, "unknown");
23282 fprintf (fp, "word %d bit %d", (int) k, (int) i);
23283 return (fclose (fp) != 0);
23287 if ac_fn_c_try_run "$LINENO"; then :
23288 gl_cv_cc_long_double_signbit=`cat conftest.out`
23290 gl_cv_cc_long_double_signbit="unknown"
23292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23293 conftest.$ac_objext conftest.beam conftest.$ac_ext
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
23300 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
23301 case "$gl_cv_cc_long_double_signbit" in
23303 word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
23304 bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
23306 cat >>confdefs.h <<_ACEOF
23307 #define LDBL_SIGNBIT_WORD $word
23311 cat >>confdefs.h <<_ACEOF
23312 #define LDBL_SIGNBIT_BIT $bit
23319 if test "$gl_cv_cc_float_signbit" = unknown; then
23320 ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
23322 if test "x$ac_cv_have_decl_copysignf" = x""yes; then :
23328 cat >>confdefs.h <<_ACEOF
23329 #define HAVE_DECL_COPYSIGNF $ac_have_decl
23332 if test "$ac_cv_have_decl_copysignf" = yes; then
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
23334 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
23335 if test "${gl_cv_func_copysignf_no_libm+set}" = set; then :
23336 $as_echo_n "(cached) " >&6
23339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23340 /* end confdefs.h. */
23346 return copysignf (x, y) < 0;
23351 if ac_fn_c_try_link "$LINENO"; then :
23352 gl_cv_func_copysignf_no_libm=yes
23354 gl_cv_func_copysignf_no_libm=no
23356 rm -f core conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
23361 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
23362 if test $gl_cv_func_copysignf_no_libm = yes; then
23364 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
23369 if test "$gl_cv_cc_double_signbit" = unknown; then
23370 ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
23372 if test "x$ac_cv_have_decl_copysign" = x""yes; then :
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_DECL_COPYSIGN $ac_have_decl
23382 if test "$ac_cv_have_decl_copysign" = yes; then
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
23384 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
23385 if test "${gl_cv_func_copysign_no_libm+set}" = set; then :
23386 $as_echo_n "(cached) " >&6
23389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23390 /* end confdefs.h. */
23396 return copysign (x, y) < 0;
23401 if ac_fn_c_try_link "$LINENO"; then :
23402 gl_cv_func_copysign_no_libm=yes
23404 gl_cv_func_copysign_no_libm=no
23406 rm -f core conftest.err conftest.$ac_objext \
23407 conftest$ac_exeext conftest.$ac_ext
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
23411 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
23412 if test $gl_cv_func_copysign_no_libm = yes; then
23414 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
23419 if test "$gl_cv_cc_long_double_signbit" = unknown; then
23420 ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
23422 if test "x$ac_cv_have_decl_copysignl" = x""yes; then :
23428 cat >>confdefs.h <<_ACEOF
23429 #define HAVE_DECL_COPYSIGNL $ac_have_decl
23432 if test "$ac_cv_have_decl_copysignl" = yes; then
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
23434 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
23435 if test "${gl_cv_func_copysignl_no_libm+set}" = set; then :
23436 $as_echo_n "(cached) " >&6
23439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23440 /* end confdefs.h. */
23446 return copysignl (x, y) < 0;
23451 if ac_fn_c_try_link "$LINENO"; then :
23452 gl_cv_func_copysignl_no_libm=yes
23454 gl_cv_func_copysignl_no_libm=no
23456 rm -f core conftest.err conftest.$ac_objext \
23457 conftest$ac_exeext conftest.$ac_ext
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
23461 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
23462 if test $gl_cv_func_copysignl_no_libm = yes; then
23464 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
23479 $as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
23483 # Code from module size_max:
23485 for ac_header in stdint.h
23487 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23488 if test "x$ac_cv_header_stdint_h" = x""yes; then :
23489 cat >>confdefs.h <<_ACEOF
23490 #define HAVE_STDINT_H 1
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23498 $as_echo_n "checking for SIZE_MAX... " >&6; }
23499 if test "${gl_cv_size_max+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23505 /* end confdefs.h. */
23507 #include <limits.h>
23509 #include <stdint.h>
23516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517 $EGREP "Found it" >/dev/null 2>&1; then :
23522 if test -z "$gl_cv_size_max"; then
23523 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
23524 #include <limits.h>"; then :
23527 size_t_bits_minus_1=
23530 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
23536 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23537 if test $fits_in_uint = 1; then
23538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23540 #include <stddef.h>
23542 extern unsigned long foo;
23552 if ac_fn_c_try_compile "$LINENO"; then :
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 if test $fits_in_uint = 1; then
23558 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23560 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23563 gl_cv_size_max='((size_t)~(size_t)0)'
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23569 $as_echo "$gl_cv_size_max" >&6; }
23570 if test "$gl_cv_size_max" != yes; then
23572 cat >>confdefs.h <<_ACEOF
23573 #define SIZE_MAX $gl_cv_size_max
23579 # Code from module stdbool:
23583 # Define two additional variables used in the Makefile substitution.
23585 if test "$ac_cv_header_stdbool_h" = yes; then
23588 STDBOOL_H='stdbool.h'
23592 if test "$ac_cv_type__Bool" = yes; then
23599 # Code from module stddef:
23603 if test $gt_cv_c_wchar_t = no; then
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23608 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23609 if test "${gl_cv_decl_null_works+set}" = set; then :
23610 $as_echo_n "(cached) " >&6
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23614 #include <stddef.h>
23615 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23625 if ac_fn_c_try_compile "$LINENO"; then :
23626 gl_cv_decl_null_works=yes
23628 gl_cv_decl_null_works=no
23630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23633 $as_echo "$gl_cv_decl_null_works" >&6; }
23634 if test $gl_cv_decl_null_works = no; then
23638 if test -n "$STDDEF_H"; then
23645 if test $gl_cv_have_include_next = yes; then
23646 gl_cv_next_stddef_h='<'stddef.h'>'
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23649 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23650 if test "${gl_cv_next_stddef_h+set}" = set; then :
23651 $as_echo_n "(cached) " >&6
23654 if test $ac_cv_header_stddef_h = yes; then
23655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23656 /* end confdefs.h. */
23657 #include <stddef.h>
23661 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23662 *) gl_absname_cpp="$ac_cpp" ;;
23664 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23665 sed -n '\#/stddef.h#{
23666 s#.*"\(.*/stddef.h\)".*#\1#
23672 gl_cv_next_stddef_h='<'stddef.h'>'
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23677 $as_echo "$gl_cv_next_stddef_h" >&6; }
23679 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23681 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23683 gl_next_as_first_directive='<'stddef.h'>'
23685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23686 gl_next_as_first_directive=$gl_cv_next_stddef_h
23688 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23694 # Code from module stdint:
23698 if test $ac_cv_type_long_long_int = yes; then
23699 HAVE_LONG_LONG_INT=1
23701 HAVE_LONG_LONG_INT=0
23705 if test $ac_cv_type_unsigned_long_long_int = yes; then
23706 HAVE_UNSIGNED_LONG_LONG_INT=1
23708 HAVE_UNSIGNED_LONG_LONG_INT=0
23712 if test $ac_cv_header_inttypes_h = yes; then
23719 if test $ac_cv_header_sys_types_h = yes; then
23732 if test $gl_cv_have_include_next = yes; then
23733 gl_cv_next_stdint_h='<'stdint.h'>'
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
23736 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
23737 if test "${gl_cv_next_stdint_h+set}" = set; then :
23738 $as_echo_n "(cached) " >&6
23741 if test $ac_cv_header_stdint_h = yes; then
23742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743 /* end confdefs.h. */
23744 #include <stdint.h>
23748 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23749 *) gl_absname_cpp="$ac_cpp" ;;
23751 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23752 sed -n '\#/stdint.h#{
23753 s#.*"\(.*/stdint.h\)".*#\1#
23759 gl_cv_next_stdint_h='<'stdint.h'>'
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
23764 $as_echo "$gl_cv_next_stdint_h" >&6; }
23766 NEXT_STDINT_H=$gl_cv_next_stdint_h
23768 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23770 gl_next_as_first_directive='<'stdint.h'>'
23772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23773 gl_next_as_first_directive=$gl_cv_next_stdint_h
23775 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
23779 if test $ac_cv_header_stdint_h = yes; then
23786 if test $ac_cv_header_stdint_h = yes; then
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
23788 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
23789 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
23790 $as_echo_n "(cached) " >&6
23792 gl_cv_header_working_stdint_h=no
23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23797 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
23798 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
23799 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23800 #include <stdint.h>
23801 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
23802 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
23803 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
23807 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23808 included before <wchar.h>. */
23809 #include <stddef.h>
23810 #include <signal.h>
23812 # include <stdio.h>
23814 # include <wchar.h>
23819 int8_t a1 = INT8_MAX;
23820 int8_t a1min = INT8_MIN;
23823 int16_t a2 = INT16_MAX;
23824 int16_t a2min = INT16_MIN;
23827 int32_t a3 = INT32_MAX;
23828 int32_t a3min = INT32_MIN;
23831 int64_t a4 = INT64_MAX;
23832 int64_t a4min = INT64_MIN;
23835 uint8_t b1 = UINT8_MAX;
23837 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
23840 uint16_t b2 = UINT16_MAX;
23843 uint32_t b3 = UINT32_MAX;
23846 uint64_t b4 = UINT64_MAX;
23848 int_least8_t c1 = INT8_C (0x7f);
23849 int_least8_t c1max = INT_LEAST8_MAX;
23850 int_least8_t c1min = INT_LEAST8_MIN;
23851 int_least16_t c2 = INT16_C (0x7fff);
23852 int_least16_t c2max = INT_LEAST16_MAX;
23853 int_least16_t c2min = INT_LEAST16_MIN;
23854 int_least32_t c3 = INT32_C (0x7fffffff);
23855 int_least32_t c3max = INT_LEAST32_MAX;
23856 int_least32_t c3min = INT_LEAST32_MIN;
23857 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
23858 int_least64_t c4max = INT_LEAST64_MAX;
23859 int_least64_t c4min = INT_LEAST64_MIN;
23860 uint_least8_t d1 = UINT8_C (0xff);
23861 uint_least8_t d1max = UINT_LEAST8_MAX;
23862 uint_least16_t d2 = UINT16_C (0xffff);
23863 uint_least16_t d2max = UINT_LEAST16_MAX;
23864 uint_least32_t d3 = UINT32_C (0xffffffff);
23865 uint_least32_t d3max = UINT_LEAST32_MAX;
23866 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
23867 uint_least64_t d4max = UINT_LEAST64_MAX;
23868 int_fast8_t e1 = INT_FAST8_MAX;
23869 int_fast8_t e1min = INT_FAST8_MIN;
23870 int_fast16_t e2 = INT_FAST16_MAX;
23871 int_fast16_t e2min = INT_FAST16_MIN;
23872 int_fast32_t e3 = INT_FAST32_MAX;
23873 int_fast32_t e3min = INT_FAST32_MIN;
23874 int_fast64_t e4 = INT_FAST64_MAX;
23875 int_fast64_t e4min = INT_FAST64_MIN;
23876 uint_fast8_t f1 = UINT_FAST8_MAX;
23877 uint_fast16_t f2 = UINT_FAST16_MAX;
23878 uint_fast32_t f3 = UINT_FAST32_MAX;
23879 uint_fast64_t f4 = UINT_FAST64_MAX;
23881 intptr_t g = INTPTR_MAX;
23882 intptr_t gmin = INTPTR_MIN;
23885 uintptr_t h = UINTPTR_MAX;
23887 intmax_t i = INTMAX_MAX;
23888 uintmax_t j = UINTMAX_MAX;
23890 #include <limits.h> /* for CHAR_BIT */
23891 #define TYPE_MINIMUM(t) \
23892 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
23893 #define TYPE_MAXIMUM(t) \
23894 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
23897 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
23898 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
23900 /* Detect bug in FreeBSD 6.0 / ia64. */
23901 int check_SIG_ATOMIC:
23902 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
23903 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
23905 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
23907 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
23908 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
23910 /* Detect bug in mingw. */
23912 WINT_MIN == TYPE_MINIMUM (wint_t)
23913 && WINT_MAX == TYPE_MAXIMUM (wint_t)
23916 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
23918 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
23919 int check_UINT16_C:
23920 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
23922 /* Detect bugs in OpenBSD 3.9 stdint.h. */
23924 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
23927 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
23930 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
23933 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
23935 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
23936 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
23937 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
23938 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
23939 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
23940 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
23941 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
23942 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
23943 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
23944 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
23945 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
23956 if ac_fn_c_try_compile "$LINENO"; then :
23957 if test "$cross_compiling" = yes; then :
23958 gl_cv_header_working_stdint_h=yes
23961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23962 /* end confdefs.h. */
23965 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
23966 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
23967 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23968 #include <stdint.h>
23971 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23972 included before <wchar.h>. */
23973 #include <stddef.h>
23974 #include <signal.h>
23976 # include <stdio.h>
23978 # include <wchar.h>
23983 #include <string.h>
23984 #define MVAL(macro) MVAL1(macro)
23985 #define MVAL1(expression) #expression
23986 static const char *macro_values[] =
24020 for (mv = macro_values; *mv != NULL; mv++)
24022 const char *value = *mv;
24023 /* Test whether it looks like a cast expression. */
24024 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
24025 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
24026 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
24027 || strncmp (value, "((int)"/*)*/, 6) == 0
24028 || strncmp (value, "((signed short)"/*)*/, 15) == 0
24029 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
24038 if ac_fn_c_try_run "$LINENO"; then :
24039 gl_cv_header_working_stdint_h=yes
24041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24042 conftest.$ac_objext conftest.beam conftest.$ac_ext
24047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
24051 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
24053 if test "$gl_cv_header_working_stdint_h" = yes; then
24056 for ac_header in sys/inttypes.h sys/bitypes.h
24058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24059 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24060 eval as_val=\$$as_ac_Header
24061 if test "x$as_val" = x""yes; then :
24062 cat >>confdefs.h <<_ACEOF
24063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24070 if test $ac_cv_header_sys_inttypes_h = yes; then
24071 HAVE_SYS_INTTYPES_H=1
24073 HAVE_SYS_INTTYPES_H=0
24076 if test $ac_cv_header_sys_bitypes_h = yes; then
24077 HAVE_SYS_BITYPES_H=1
24079 HAVE_SYS_BITYPES_H=0
24087 if test $APPLE_UNIVERSAL_BUILD = 0; then
24090 for gltype in ptrdiff_t size_t ; do
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24092 $as_echo_n "checking for bit size of $gltype... " >&6; }
24093 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
24094 $as_echo_n "(cached) " >&6
24096 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
24097 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24098 included before <wchar.h>. */
24099 #include <stddef.h>
24100 #include <signal.h>
24102 # include <stdio.h>
24104 # include <wchar.h>
24107 #include <limits.h>"; then :
24113 eval gl_cv_bitsizeof_${gltype}=\$result
24116 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24118 $as_echo "$ac_res" >&6; }
24119 eval result=\$gl_cv_bitsizeof_${gltype}
24120 if test $result = unknown; then
24123 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24124 cat >>confdefs.h <<_ACEOF
24125 #define BITSIZEOF_${GLTYPE} $result
24128 eval BITSIZEOF_${GLTYPE}=\$result
24135 for gltype in sig_atomic_t wchar_t wint_t ; do
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24137 $as_echo_n "checking for bit size of $gltype... " >&6; }
24138 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
24139 $as_echo_n "(cached) " >&6
24141 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
24142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24143 included before <wchar.h>. */
24144 #include <stddef.h>
24145 #include <signal.h>
24147 # include <stdio.h>
24149 # include <wchar.h>
24152 #include <limits.h>"; then :
24158 eval gl_cv_bitsizeof_${gltype}=\$result
24161 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24163 $as_echo "$ac_res" >&6; }
24164 eval result=\$gl_cv_bitsizeof_${gltype}
24165 if test $result = unknown; then
24168 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24169 cat >>confdefs.h <<_ACEOF
24170 #define BITSIZEOF_${GLTYPE} $result
24173 eval BITSIZEOF_${GLTYPE}=\$result
24179 for gltype in sig_atomic_t wchar_t wint_t ; do
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
24181 $as_echo_n "checking whether $gltype is signed... " >&6; }
24182 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
24183 $as_echo_n "(cached) " >&6
24185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24186 /* end confdefs.h. */
24188 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24189 included before <wchar.h>. */
24190 #include <stddef.h>
24191 #include <signal.h>
24193 # include <stdio.h>
24195 # include <wchar.h>
24198 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
24207 if ac_fn_c_try_compile "$LINENO"; then :
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213 eval gl_cv_type_${gltype}_signed=\$result
24216 eval ac_res=\$gl_cv_type_${gltype}_signed
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24218 $as_echo "$ac_res" >&6; }
24219 eval result=\$gl_cv_type_${gltype}_signed
24220 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24221 if test "$result" = yes; then
24222 cat >>confdefs.h <<_ACEOF
24223 #define HAVE_SIGNED_${GLTYPE} 1
24226 eval HAVE_SIGNED_${GLTYPE}=1
24228 eval HAVE_SIGNED_${GLTYPE}=0
24233 gl_cv_type_ptrdiff_t_signed=yes
24234 gl_cv_type_size_t_signed=no
24235 if test $APPLE_UNIVERSAL_BUILD = 0; then
24238 for gltype in ptrdiff_t size_t ; do
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24240 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24241 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
24242 $as_echo_n "(cached) " >&6
24244 eval gl_cv_type_${gltype}_suffix=no
24245 eval result=\$gl_cv_type_${gltype}_signed
24246 if test "$result" = yes; then
24251 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24253 '') gltype1='int';;
24254 l) gltype1='long int';;
24255 ll) gltype1='long long int';;
24256 i64) gltype1='__int64';;
24257 u) gltype1='unsigned int';;
24258 ul) gltype1='unsigned long int';;
24259 ull) gltype1='unsigned long long int';;
24260 ui64)gltype1='unsigned __int64';;
24262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h. */
24265 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24266 included before <wchar.h>. */
24267 #include <stddef.h>
24268 #include <signal.h>
24270 # include <stdio.h>
24272 # include <wchar.h>
24275 extern $gltype foo;
24276 extern $gltype1 foo;
24285 if ac_fn_c_try_compile "$LINENO"; then :
24286 eval gl_cv_type_${gltype}_suffix=\$glsuf
24288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24289 eval result=\$gl_cv_type_${gltype}_suffix
24290 test "$result" != no && break
24293 eval ac_res=\$gl_cv_type_${gltype}_suffix
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24295 $as_echo "$ac_res" >&6; }
24296 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24297 eval result=\$gl_cv_type_${gltype}_suffix
24298 test "$result" = no && result=
24299 eval ${GLTYPE}_SUFFIX=\$result
24300 cat >>confdefs.h <<_ACEOF
24301 #define ${GLTYPE}_SUFFIX $result
24310 for gltype in sig_atomic_t wchar_t wint_t ; do
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24312 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24313 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
24314 $as_echo_n "(cached) " >&6
24316 eval gl_cv_type_${gltype}_suffix=no
24317 eval result=\$gl_cv_type_${gltype}_signed
24318 if test "$result" = yes; then
24323 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24325 '') gltype1='int';;
24326 l) gltype1='long int';;
24327 ll) gltype1='long long int';;
24328 i64) gltype1='__int64';;
24329 u) gltype1='unsigned int';;
24330 ul) gltype1='unsigned long int';;
24331 ull) gltype1='unsigned long long int';;
24332 ui64)gltype1='unsigned __int64';;
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h. */
24337 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24338 included before <wchar.h>. */
24339 #include <stddef.h>
24340 #include <signal.h>
24342 # include <stdio.h>
24344 # include <wchar.h>
24347 extern $gltype foo;
24348 extern $gltype1 foo;
24357 if ac_fn_c_try_compile "$LINENO"; then :
24358 eval gl_cv_type_${gltype}_suffix=\$glsuf
24360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361 eval result=\$gl_cv_type_${gltype}_suffix
24362 test "$result" != no && break
24365 eval ac_res=\$gl_cv_type_${gltype}_suffix
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24367 $as_echo "$ac_res" >&6; }
24368 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24369 eval result=\$gl_cv_type_${gltype}_suffix
24370 test "$result" = no && result=
24371 eval ${GLTYPE}_SUFFIX=\$result
24372 cat >>confdefs.h <<_ACEOF
24373 #define ${GLTYPE}_SUFFIX $result
24384 # Code from module stdlib:
24393 if test $gl_cv_have_include_next = yes; then
24394 gl_cv_next_stdlib_h='<'stdlib.h'>'
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24397 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24398 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24399 $as_echo_n "(cached) " >&6
24402 if test $ac_cv_header_stdlib_h = yes; then
24403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24404 /* end confdefs.h. */
24405 #include <stdlib.h>
24409 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24410 *) gl_absname_cpp="$ac_cpp" ;;
24412 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24413 sed -n '\#/stdlib.h#{
24414 s#.*"\(.*/stdlib.h\)".*#\1#
24420 gl_cv_next_stdlib_h='<'stdlib.h'>'
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24425 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24427 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24429 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24431 gl_next_as_first_directive='<'stdlib.h'>'
24433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24434 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24436 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24440 for ac_header in random.h
24442 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
24444 if test "x$ac_cv_header_random_h" = x""yes; then :
24445 cat >>confdefs.h <<_ACEOF
24446 #define HAVE_RANDOM_H 1
24453 if test $ac_cv_header_random_h = yes; then
24459 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
24461 # include <random.h>
24465 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
24467 cat >>confdefs.h <<_ACEOF
24468 #define HAVE_STRUCT_RANDOM_DATA 1
24473 HAVE_STRUCT_RANDOM_DATA=0
24478 for gl_func in atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
24479 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24481 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24482 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
24483 $as_echo_n "(cached) " >&6
24485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h. */
24487 #include <stdlib.h>
24488 #if HAVE_SYS_LOADAVG_H
24489 # include <sys/loadavg.h>
24492 # include <random.h>
24504 if ac_fn_c_try_compile "$LINENO"; then :
24505 eval "$as_gl_Symbol=yes"
24507 eval "$as_gl_Symbol=no"
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511 eval ac_res=\$$as_gl_Symbol
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24513 $as_echo "$ac_res" >&6; }
24514 eval as_val=\$$as_gl_Symbol
24515 if test "x$as_val" = x""yes; then :
24516 cat >>confdefs.h <<_ACEOF
24517 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24520 eval ac_cv_have_decl_$gl_func=yes
24525 # Code from module streq:
24526 # Code from module striconveh:
24527 if test $gl_cond_libtool = false; then
24528 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
24529 gl_libdeps="$gl_libdeps $LIBICONV"
24531 # Code from module striconveha:
24532 # Code from module string:
24536 # Code from module strncat:
24545 $as_echo "#define GNULIB_TEST_STRNCAT 1" >>confdefs.h
24549 # Code from module threadlib:
24554 # Code from module unicase/base:
24555 # Code from module unicase/cased:
24557 # Code from module unicase/empty-prefix-context:
24558 # Code from module unicase/empty-suffix-context:
24559 # Code from module unicase/ignorable:
24561 # Code from module unicase/locale-language:
24562 # Code from module unicase/special-casing:
24563 # Code from module unicase/tocasefold:
24564 # Code from module unicase/tolower:
24565 # Code from module unicase/totitle:
24566 # Code from module unicase/toupper:
24567 # Code from module unicase/u16-casecmp:
24568 # Code from module unicase/u16-casecoll:
24569 # Code from module unicase/u16-casefold:
24570 # Code from module unicase/u16-casemap:
24571 # Code from module unicase/u16-casexfrm:
24572 # Code from module unicase/u16-ct-casefold:
24573 # Code from module unicase/u16-ct-tolower:
24574 # Code from module unicase/u16-ct-totitle:
24575 # Code from module unicase/u16-ct-toupper:
24576 # Code from module unicase/u16-is-cased:
24577 # Code from module unicase/u16-is-casefolded:
24578 # Code from module unicase/u16-is-invariant:
24579 # Code from module unicase/u16-is-lowercase:
24580 # Code from module unicase/u16-is-titlecase:
24581 # Code from module unicase/u16-is-uppercase:
24582 # Code from module unicase/u16-tolower:
24583 # Code from module unicase/u16-totitle:
24584 # Code from module unicase/u16-toupper:
24585 # Code from module unicase/u32-casecmp:
24586 # Code from module unicase/u32-casecoll:
24587 # Code from module unicase/u32-casefold:
24588 # Code from module unicase/u32-casemap:
24589 # Code from module unicase/u32-casexfrm:
24590 # Code from module unicase/u32-ct-casefold:
24591 # Code from module unicase/u32-ct-tolower:
24592 # Code from module unicase/u32-ct-totitle:
24593 # Code from module unicase/u32-ct-toupper:
24594 # Code from module unicase/u32-is-cased:
24595 # Code from module unicase/u32-is-casefolded:
24596 # Code from module unicase/u32-is-invariant:
24597 # Code from module unicase/u32-is-lowercase:
24598 # Code from module unicase/u32-is-titlecase:
24599 # Code from module unicase/u32-is-uppercase:
24600 # Code from module unicase/u32-tolower:
24601 # Code from module unicase/u32-totitle:
24602 # Code from module unicase/u32-toupper:
24603 # Code from module unicase/u8-casecmp:
24604 # Code from module unicase/u8-casecoll:
24605 # Code from module unicase/u8-casefold:
24606 # Code from module unicase/u8-casemap:
24607 # Code from module unicase/u8-casexfrm:
24608 # Code from module unicase/u8-ct-casefold:
24609 # Code from module unicase/u8-ct-tolower:
24610 # Code from module unicase/u8-ct-totitle:
24611 # Code from module unicase/u8-ct-toupper:
24612 # Code from module unicase/u8-is-cased:
24613 # Code from module unicase/u8-is-casefolded:
24614 # Code from module unicase/u8-is-invariant:
24615 # Code from module unicase/u8-is-lowercase:
24616 # Code from module unicase/u8-is-titlecase:
24617 # Code from module unicase/u8-is-uppercase:
24618 # Code from module unicase/u8-tolower:
24619 # Code from module unicase/u8-totitle:
24620 # Code from module unicase/u8-toupper:
24621 # Code from module unicase/ulc-casecmp:
24622 # Code from module unicase/ulc-casecoll:
24623 # Code from module unicase/ulc-casexfrm:
24624 # Code from module uniconv/base:
24625 # Code from module uniconv/u16-conv-from-enc:
24627 # Code from module uniconv/u16-conv-to-enc:
24629 # Code from module uniconv/u16-strconv-from-enc:
24630 # Code from module uniconv/u16-strconv-from-locale:
24631 # Code from module uniconv/u16-strconv-to-enc:
24633 # Code from module uniconv/u16-strconv-to-locale:
24634 # Code from module uniconv/u32-conv-from-enc:
24635 # Code from module uniconv/u32-conv-to-enc:
24636 # Code from module uniconv/u32-strconv-from-enc:
24637 # Code from module uniconv/u32-strconv-from-locale:
24638 # Code from module uniconv/u32-strconv-to-enc:
24639 # Code from module uniconv/u32-strconv-to-locale:
24640 # Code from module uniconv/u8-conv-from-enc:
24641 # Code from module uniconv/u8-conv-to-enc:
24642 # Code from module uniconv/u8-strconv-from-enc:
24643 # Code from module uniconv/u8-strconv-from-locale:
24644 # Code from module uniconv/u8-strconv-to-enc:
24645 # Code from module uniconv/u8-strconv-to-locale:
24646 # Code from module unictype/base:
24647 # Code from module unictype/bidicategory-all:
24648 # Code from module unictype/bidicategory-byname:
24649 # Code from module unictype/bidicategory-name:
24650 # Code from module unictype/bidicategory-of:
24651 # Code from module unictype/bidicategory-test:
24652 # Code from module unictype/block-all:
24653 # Code from module unictype/block-list:
24654 # Code from module unictype/block-of:
24655 # Code from module unictype/block-test:
24656 # Code from module unictype/category-C:
24657 # Code from module unictype/category-Cc:
24658 # Code from module unictype/category-Cf:
24659 # Code from module unictype/category-Cn:
24660 # Code from module unictype/category-Co:
24661 # Code from module unictype/category-Cs:
24662 # Code from module unictype/category-L:
24663 # Code from module unictype/category-Ll:
24664 # Code from module unictype/category-Lm:
24665 # Code from module unictype/category-Lo:
24666 # Code from module unictype/category-Lt:
24667 # Code from module unictype/category-Lu:
24668 # Code from module unictype/category-M:
24669 # Code from module unictype/category-Mc:
24670 # Code from module unictype/category-Me:
24671 # Code from module unictype/category-Mn:
24672 # Code from module unictype/category-N:
24673 # Code from module unictype/category-Nd:
24674 # Code from module unictype/category-Nl:
24675 # Code from module unictype/category-No:
24676 # Code from module unictype/category-P:
24677 # Code from module unictype/category-Pc:
24678 # Code from module unictype/category-Pd:
24679 # Code from module unictype/category-Pe:
24680 # Code from module unictype/category-Pf:
24681 # Code from module unictype/category-Pi:
24682 # Code from module unictype/category-Po:
24683 # Code from module unictype/category-Ps:
24684 # Code from module unictype/category-S:
24685 # Code from module unictype/category-Sc:
24686 # Code from module unictype/category-Sk:
24687 # Code from module unictype/category-Sm:
24688 # Code from module unictype/category-So:
24689 # Code from module unictype/category-Z:
24690 # Code from module unictype/category-Zl:
24691 # Code from module unictype/category-Zp:
24692 # Code from module unictype/category-Zs:
24693 # Code from module unictype/category-all:
24694 # Code from module unictype/category-and:
24695 # Code from module unictype/category-and-not:
24696 # Code from module unictype/category-byname:
24697 # Code from module unictype/category-name:
24698 # Code from module unictype/category-none:
24699 # Code from module unictype/category-of:
24701 # Code from module unictype/category-or:
24702 # Code from module unictype/category-test:
24704 # Code from module unictype/category-test-withtable:
24705 # Code from module unictype/combining-class:
24706 # Code from module unictype/ctype-alnum:
24708 # Code from module unictype/ctype-alpha:
24710 # Code from module unictype/ctype-blank:
24712 # Code from module unictype/ctype-cntrl:
24714 # Code from module unictype/ctype-digit:
24716 # Code from module unictype/ctype-graph:
24718 # Code from module unictype/ctype-lower:
24720 # Code from module unictype/ctype-print:
24722 # Code from module unictype/ctype-punct:
24724 # Code from module unictype/ctype-space:
24726 # Code from module unictype/ctype-upper:
24728 # Code from module unictype/ctype-xdigit:
24730 # Code from module unictype/decimal-digit:
24731 # Code from module unictype/digit:
24732 # Code from module unictype/mirror:
24733 # Code from module unictype/numeric:
24734 # Code from module unictype/property-all:
24735 # Code from module unictype/property-alphabetic:
24737 # Code from module unictype/property-ascii-hex-digit:
24739 # Code from module unictype/property-bidi-arabic-digit:
24741 # Code from module unictype/property-bidi-arabic-right-to-left:
24743 # Code from module unictype/property-bidi-block-separator:
24745 # Code from module unictype/property-bidi-boundary-neutral:
24747 # Code from module unictype/property-bidi-common-separator:
24749 # Code from module unictype/property-bidi-control:
24751 # Code from module unictype/property-bidi-embedding-or-override:
24753 # Code from module unictype/property-bidi-eur-num-separator:
24755 # Code from module unictype/property-bidi-eur-num-terminator:
24757 # Code from module unictype/property-bidi-european-digit:
24759 # Code from module unictype/property-bidi-hebrew-right-to-left:
24761 # Code from module unictype/property-bidi-left-to-right:
24763 # Code from module unictype/property-bidi-non-spacing-mark:
24765 # Code from module unictype/property-bidi-other-neutral:
24767 # Code from module unictype/property-bidi-pdf:
24769 # Code from module unictype/property-bidi-segment-separator:
24771 # Code from module unictype/property-bidi-whitespace:
24773 # Code from module unictype/property-byname:
24774 # Code from module unictype/property-combining:
24776 # Code from module unictype/property-composite:
24778 # Code from module unictype/property-currency-symbol:
24780 # Code from module unictype/property-dash:
24782 # Code from module unictype/property-decimal-digit:
24784 # Code from module unictype/property-default-ignorable-code-point:
24786 # Code from module unictype/property-deprecated:
24788 # Code from module unictype/property-diacritic:
24790 # Code from module unictype/property-extender:
24792 # Code from module unictype/property-format-control:
24794 # Code from module unictype/property-grapheme-base:
24796 # Code from module unictype/property-grapheme-extend:
24798 # Code from module unictype/property-grapheme-link:
24800 # Code from module unictype/property-hex-digit:
24802 # Code from module unictype/property-hyphen:
24804 # Code from module unictype/property-id-continue:
24806 # Code from module unictype/property-id-start:
24808 # Code from module unictype/property-ideographic:
24810 # Code from module unictype/property-ids-binary-operator:
24812 # Code from module unictype/property-ids-trinary-operator:
24814 # Code from module unictype/property-ignorable-control:
24816 # Code from module unictype/property-iso-control:
24818 # Code from module unictype/property-join-control:
24820 # Code from module unictype/property-left-of-pair:
24822 # Code from module unictype/property-line-separator:
24824 # Code from module unictype/property-logical-order-exception:
24826 # Code from module unictype/property-lowercase:
24828 # Code from module unictype/property-math:
24830 # Code from module unictype/property-non-break:
24832 # Code from module unictype/property-not-a-character:
24834 # Code from module unictype/property-numeric:
24836 # Code from module unictype/property-other-alphabetic:
24838 # Code from module unictype/property-other-default-ignorable-code-point:
24840 # Code from module unictype/property-other-grapheme-extend:
24842 # Code from module unictype/property-other-id-continue:
24844 # Code from module unictype/property-other-id-start:
24846 # Code from module unictype/property-other-lowercase:
24848 # Code from module unictype/property-other-math:
24850 # Code from module unictype/property-other-uppercase:
24852 # Code from module unictype/property-paired-punctuation:
24854 # Code from module unictype/property-paragraph-separator:
24856 # Code from module unictype/property-pattern-syntax:
24858 # Code from module unictype/property-pattern-white-space:
24860 # Code from module unictype/property-private-use:
24862 # Code from module unictype/property-punctuation:
24864 # Code from module unictype/property-quotation-mark:
24866 # Code from module unictype/property-radical:
24868 # Code from module unictype/property-sentence-terminal:
24870 # Code from module unictype/property-soft-dotted:
24872 # Code from module unictype/property-space:
24874 # Code from module unictype/property-terminal-punctuation:
24876 # Code from module unictype/property-test:
24877 # Code from module unictype/property-titlecase:
24879 # Code from module unictype/property-unassigned-code-value:
24881 # Code from module unictype/property-unified-ideograph:
24883 # Code from module unictype/property-uppercase:
24885 # Code from module unictype/property-variation-selector:
24887 # Code from module unictype/property-white-space:
24889 # Code from module unictype/property-xid-continue:
24891 # Code from module unictype/property-xid-start:
24893 # Code from module unictype/property-zero-width:
24895 # Code from module unictype/scripts:
24896 # Code from module unictype/scripts-all:
24897 # Code from module unictype/syntax-c-ident:
24899 # Code from module unictype/syntax-c-whitespace:
24900 # Code from module unictype/syntax-java-ident:
24902 # Code from module unictype/syntax-java-whitespace:
24903 # Code from module unilbrk/base:
24904 # Code from module unilbrk/tables:
24906 # Code from module unilbrk/u16-possible-linebreaks:
24907 # Code from module unilbrk/u16-width-linebreaks:
24908 # Code from module unilbrk/u32-possible-linebreaks:
24909 # Code from module unilbrk/u32-width-linebreaks:
24910 # Code from module unilbrk/u8-possible-linebreaks:
24911 # Code from module unilbrk/u8-width-linebreaks:
24912 # Code from module unilbrk/ulc-common:
24913 # Code from module unilbrk/ulc-possible-linebreaks:
24914 # Code from module unilbrk/ulc-width-linebreaks:
24915 # Code from module uniname/base:
24916 # Code from module uniname/uniname:
24917 # Code from module uninorm/base:
24918 # Code from module uninorm/canonical-decomposition:
24919 # Code from module uninorm/compat-decomposition:
24920 # Code from module uninorm/composition:
24921 # Code from module uninorm/decompose-internal:
24922 # Code from module uninorm/decomposing-form:
24923 # Code from module uninorm/decomposition:
24924 # Code from module uninorm/decomposition-table:
24926 # Code from module uninorm/filter:
24927 # Code from module uninorm/nfc:
24928 # Code from module uninorm/nfd:
24929 # Code from module uninorm/nfkc:
24930 # Code from module uninorm/nfkd:
24931 # Code from module uninorm/u16-normalize:
24934 $as_echo "#define GNULIB_TEST_UNINORM_U16_NORMALIZE 1" >>confdefs.h
24937 # Code from module uninorm/u16-normcmp:
24938 # Code from module uninorm/u16-normcoll:
24939 # Code from module uninorm/u16-normxfrm:
24940 # Code from module uninorm/u32-normalize:
24943 $as_echo "#define GNULIB_TEST_UNINORM_U32_NORMALIZE 1" >>confdefs.h
24946 # Code from module uninorm/u32-normcmp:
24947 # Code from module uninorm/u32-normcoll:
24948 # Code from module uninorm/u32-normxfrm:
24949 # Code from module uninorm/u8-normalize:
24952 $as_echo "#define GNULIB_TEST_UNINORM_U8_NORMALIZE 1" >>confdefs.h
24955 # Code from module uninorm/u8-normcmp:
24956 # Code from module uninorm/u8-normcoll:
24957 # Code from module uninorm/u8-normxfrm:
24958 # Code from module unistd:
24969 if test $gl_cv_have_include_next = yes; then
24970 gl_cv_next_unistd_h='<'unistd.h'>'
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24973 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24974 if test "${gl_cv_next_unistd_h+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24978 if test $ac_cv_header_unistd_h = yes; then
24979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980 /* end confdefs.h. */
24981 #include <unistd.h>
24985 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24986 *) gl_absname_cpp="$ac_cpp" ;;
24988 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24989 sed -n '\#/unistd.h#{
24990 s#.*"\(.*/unistd.h\)".*#\1#
24996 gl_cv_next_unistd_h='<'unistd.h'>'
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25001 $as_echo "$gl_cv_next_unistd_h" >&6; }
25003 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25005 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25007 gl_next_as_first_directive='<'unistd.h'>'
25009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25010 gl_next_as_first_directive=$gl_cv_next_unistd_h
25012 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25018 if test $ac_cv_header_unistd_h = yes; then
25026 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
25027 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25029 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25030 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
25031 $as_echo_n "(cached) " >&6
25033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h. */
25035 #include <unistd.h>
25036 /* Some systems declare various items in the wrong headers. */
25038 # include <fcntl.h>
25039 # include <stdio.h>
25040 # include <stdlib.h>
25041 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25055 if ac_fn_c_try_compile "$LINENO"; then :
25056 eval "$as_gl_Symbol=yes"
25058 eval "$as_gl_Symbol=no"
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 eval ac_res=\$$as_gl_Symbol
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25064 $as_echo "$ac_res" >&6; }
25065 eval as_val=\$$as_gl_Symbol
25066 if test "x$as_val" = x""yes; then :
25067 cat >>confdefs.h <<_ACEOF
25068 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25071 eval ac_cv_have_decl_$gl_func=yes
25076 # Code from module unistdio/base:
25077 # Code from module unistdio/u-printf-args:
25083 # Code from module unistdio/u16-asnprintf:
25084 # Code from module unistdio/u16-asprintf:
25085 # Code from module unistdio/u16-printf-parse:
25091 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25092 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
25096 $as_echo "#define ptrdiff_t long" >>confdefs.h
25103 # Code from module unistdio/u16-snprintf:
25104 # Code from module unistdio/u16-sprintf:
25105 # Code from module unistdio/u16-u16-asnprintf:
25106 # Code from module unistdio/u16-u16-asprintf:
25107 # Code from module unistdio/u16-u16-snprintf:
25108 # Code from module unistdio/u16-u16-sprintf:
25109 # Code from module unistdio/u16-u16-vasnprintf:
25115 case "$gl_cv_func_printf_infinite" in
25120 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25128 case "$gl_cv_func_printf_long_double" in
25130 case "$gl_cv_func_printf_infinite_long_double" in
25135 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25144 case "$gl_cv_func_printf_directive_a" in
25149 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25151 for ac_func in nl_langinfo
25153 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25154 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25155 cat >>confdefs.h <<_ACEOF
25156 #define HAVE_NL_LANGINFO 1
25167 case "$gl_cv_func_printf_directive_f" in
25172 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25179 case "$gl_cv_func_printf_directive_ls" in
25184 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25191 case "$gl_cv_func_printf_flag_grouping" in
25196 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25203 case "$gl_cv_func_printf_flag_leftadjust" in
25208 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25215 case "$gl_cv_func_printf_flag_zero" in
25220 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25227 case "$gl_cv_func_printf_precision" in
25232 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25235 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25238 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25245 case "$gl_cv_func_printf_enomem" in
25250 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25253 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25256 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25262 # Code from module unistdio/u16-u16-vasprintf:
25263 # Code from module unistdio/u16-u16-vsnprintf:
25264 # Code from module unistdio/u16-u16-vsprintf:
25265 # Code from module unistdio/u16-vasnprintf:
25271 case "$gl_cv_func_printf_infinite" in
25276 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25284 case "$gl_cv_func_printf_long_double" in
25286 case "$gl_cv_func_printf_infinite_long_double" in
25291 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25300 case "$gl_cv_func_printf_directive_a" in
25305 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25307 for ac_func in nl_langinfo
25309 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25310 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25311 cat >>confdefs.h <<_ACEOF
25312 #define HAVE_NL_LANGINFO 1
25323 case "$gl_cv_func_printf_directive_f" in
25328 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25335 case "$gl_cv_func_printf_directive_ls" in
25340 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25347 case "$gl_cv_func_printf_flag_grouping" in
25352 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25359 case "$gl_cv_func_printf_flag_leftadjust" in
25364 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25371 case "$gl_cv_func_printf_flag_zero" in
25376 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25383 case "$gl_cv_func_printf_precision" in
25388 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25391 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25394 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25401 case "$gl_cv_func_printf_enomem" in
25406 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25409 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25412 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25418 # Code from module unistdio/u16-vasprintf:
25419 # Code from module unistdio/u16-vsnprintf:
25420 # Code from module unistdio/u16-vsprintf:
25421 # Code from module unistdio/u32-asnprintf:
25422 # Code from module unistdio/u32-asprintf:
25423 # Code from module unistdio/u32-printf-parse:
25429 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25430 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
25434 $as_echo "#define ptrdiff_t long" >>confdefs.h
25441 # Code from module unistdio/u32-snprintf:
25442 # Code from module unistdio/u32-sprintf:
25443 # Code from module unistdio/u32-u32-asnprintf:
25444 # Code from module unistdio/u32-u32-asprintf:
25445 # Code from module unistdio/u32-u32-snprintf:
25446 # Code from module unistdio/u32-u32-sprintf:
25447 # Code from module unistdio/u32-u32-vasnprintf:
25453 case "$gl_cv_func_printf_infinite" in
25458 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25466 case "$gl_cv_func_printf_long_double" in
25468 case "$gl_cv_func_printf_infinite_long_double" in
25473 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25482 case "$gl_cv_func_printf_directive_a" in
25487 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25489 for ac_func in nl_langinfo
25491 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25492 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25493 cat >>confdefs.h <<_ACEOF
25494 #define HAVE_NL_LANGINFO 1
25505 case "$gl_cv_func_printf_directive_f" in
25510 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25517 case "$gl_cv_func_printf_directive_ls" in
25522 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25529 case "$gl_cv_func_printf_flag_grouping" in
25534 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25541 case "$gl_cv_func_printf_flag_leftadjust" in
25546 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25553 case "$gl_cv_func_printf_flag_zero" in
25558 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25565 case "$gl_cv_func_printf_precision" in
25570 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25573 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25576 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25583 case "$gl_cv_func_printf_enomem" in
25588 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25591 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25594 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25600 # Code from module unistdio/u32-u32-vasprintf:
25601 # Code from module unistdio/u32-u32-vsnprintf:
25602 # Code from module unistdio/u32-u32-vsprintf:
25603 # Code from module unistdio/u32-vasnprintf:
25609 case "$gl_cv_func_printf_infinite" in
25614 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25622 case "$gl_cv_func_printf_long_double" in
25624 case "$gl_cv_func_printf_infinite_long_double" in
25629 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25638 case "$gl_cv_func_printf_directive_a" in
25643 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25645 for ac_func in nl_langinfo
25647 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25648 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25649 cat >>confdefs.h <<_ACEOF
25650 #define HAVE_NL_LANGINFO 1
25661 case "$gl_cv_func_printf_directive_f" in
25666 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25673 case "$gl_cv_func_printf_directive_ls" in
25678 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25685 case "$gl_cv_func_printf_flag_grouping" in
25690 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25697 case "$gl_cv_func_printf_flag_leftadjust" in
25702 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25709 case "$gl_cv_func_printf_flag_zero" in
25714 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25721 case "$gl_cv_func_printf_precision" in
25726 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25729 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25732 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25739 case "$gl_cv_func_printf_enomem" in
25744 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25747 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25750 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25756 # Code from module unistdio/u32-vasprintf:
25757 # Code from module unistdio/u32-vsnprintf:
25758 # Code from module unistdio/u32-vsprintf:
25759 # Code from module unistdio/u8-asnprintf:
25760 # Code from module unistdio/u8-asprintf:
25761 # Code from module unistdio/u8-printf-parse:
25767 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25768 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
25772 $as_echo "#define ptrdiff_t long" >>confdefs.h
25779 # Code from module unistdio/u8-snprintf:
25780 # Code from module unistdio/u8-sprintf:
25781 # Code from module unistdio/u8-u8-asnprintf:
25782 # Code from module unistdio/u8-u8-asprintf:
25783 # Code from module unistdio/u8-u8-snprintf:
25784 # Code from module unistdio/u8-u8-sprintf:
25785 # Code from module unistdio/u8-u8-vasnprintf:
25791 case "$gl_cv_func_printf_infinite" in
25796 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25804 case "$gl_cv_func_printf_long_double" in
25806 case "$gl_cv_func_printf_infinite_long_double" in
25811 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25820 case "$gl_cv_func_printf_directive_a" in
25825 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25827 for ac_func in nl_langinfo
25829 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25830 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25831 cat >>confdefs.h <<_ACEOF
25832 #define HAVE_NL_LANGINFO 1
25843 case "$gl_cv_func_printf_directive_f" in
25848 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
25855 case "$gl_cv_func_printf_directive_ls" in
25860 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
25867 case "$gl_cv_func_printf_flag_grouping" in
25872 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
25879 case "$gl_cv_func_printf_flag_leftadjust" in
25884 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
25891 case "$gl_cv_func_printf_flag_zero" in
25896 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
25903 case "$gl_cv_func_printf_precision" in
25908 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
25911 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25914 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25921 case "$gl_cv_func_printf_enomem" in
25926 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
25929 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
25932 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
25938 # Code from module unistdio/u8-u8-vasprintf:
25939 # Code from module unistdio/u8-u8-vsnprintf:
25940 # Code from module unistdio/u8-u8-vsprintf:
25941 # Code from module unistdio/u8-vasnprintf:
25947 case "$gl_cv_func_printf_infinite" in
25952 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
25960 case "$gl_cv_func_printf_long_double" in
25962 case "$gl_cv_func_printf_infinite_long_double" in
25967 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
25976 case "$gl_cv_func_printf_directive_a" in
25981 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
25983 for ac_func in nl_langinfo
25985 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
25986 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
25987 cat >>confdefs.h <<_ACEOF
25988 #define HAVE_NL_LANGINFO 1
25999 case "$gl_cv_func_printf_directive_f" in
26004 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
26011 case "$gl_cv_func_printf_directive_ls" in
26016 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
26023 case "$gl_cv_func_printf_flag_grouping" in
26028 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
26035 case "$gl_cv_func_printf_flag_leftadjust" in
26040 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
26047 case "$gl_cv_func_printf_flag_zero" in
26052 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
26059 case "$gl_cv_func_printf_precision" in
26064 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
26067 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26070 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26077 case "$gl_cv_func_printf_enomem" in
26082 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
26085 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26088 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26094 # Code from module unistdio/u8-vasprintf:
26095 # Code from module unistdio/u8-vsnprintf:
26096 # Code from module unistdio/u8-vsprintf:
26097 # Code from module unistdio/ulc-asnprintf:
26098 # Code from module unistdio/ulc-asprintf:
26099 # Code from module unistdio/ulc-fprintf:
26100 # Code from module unistdio/ulc-printf-parse:
26106 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
26107 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
26111 $as_echo "#define ptrdiff_t long" >>confdefs.h
26118 # Code from module unistdio/ulc-snprintf:
26119 # Code from module unistdio/ulc-sprintf:
26120 # Code from module unistdio/ulc-vasnprintf:
26126 case "$gl_cv_func_printf_infinite" in
26131 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
26139 case "$gl_cv_func_printf_long_double" in
26141 case "$gl_cv_func_printf_infinite_long_double" in
26146 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
26155 case "$gl_cv_func_printf_directive_a" in
26160 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
26162 for ac_func in nl_langinfo
26164 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
26165 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
26166 cat >>confdefs.h <<_ACEOF
26167 #define HAVE_NL_LANGINFO 1
26178 case "$gl_cv_func_printf_directive_f" in
26183 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
26190 case "$gl_cv_func_printf_directive_ls" in
26195 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
26202 case "$gl_cv_func_printf_flag_grouping" in
26207 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
26214 case "$gl_cv_func_printf_flag_leftadjust" in
26219 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
26226 case "$gl_cv_func_printf_flag_zero" in
26231 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
26238 case "$gl_cv_func_printf_precision" in
26243 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
26246 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26249 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26256 case "$gl_cv_func_printf_enomem" in
26261 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
26264 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
26267 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
26273 # Code from module unistdio/ulc-vasprintf:
26274 # Code from module unistdio/ulc-vfprintf:
26275 # Code from module unistdio/ulc-vsnprintf:
26276 # Code from module unistdio/ulc-vsprintf:
26277 # Code from module unistr/base:
26278 # Code from module unistr/u16-check:
26279 # Code from module unistr/u16-chr:
26280 # Code from module unistr/u16-cmp:
26281 # Code from module unistr/u16-cmp2:
26282 # Code from module unistr/u16-cpy:
26283 # Code from module unistr/u16-cpy-alloc:
26284 # Code from module unistr/u16-endswith:
26285 # Code from module unistr/u16-mblen:
26286 # Code from module unistr/u16-mbsnlen:
26287 # Code from module unistr/u16-mbtouc:
26290 cat >>confdefs.h <<_ACEOF
26291 #define GNULIB_UNISTR_U16_MBTOUC 1
26295 # Code from module unistr/u16-mbtouc-unsafe:
26298 cat >>confdefs.h <<_ACEOF
26299 #define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1
26303 # Code from module unistr/u16-mbtoucr:
26306 cat >>confdefs.h <<_ACEOF
26307 #define GNULIB_UNISTR_U16_MBTOUCR 1
26311 # Code from module unistr/u16-move:
26312 # Code from module unistr/u16-next:
26313 # Code from module unistr/u16-prev:
26314 # Code from module unistr/u16-set:
26315 # Code from module unistr/u16-startswith:
26316 # Code from module unistr/u16-stpcpy:
26317 # Code from module unistr/u16-stpncpy:
26318 # Code from module unistr/u16-strcat:
26319 # Code from module unistr/u16-strchr:
26320 # Code from module unistr/u16-strcmp:
26321 # Code from module unistr/u16-strcoll:
26322 # Code from module unistr/u16-strcpy:
26323 # Code from module unistr/u16-strcspn:
26324 # Code from module unistr/u16-strdup:
26325 # Code from module unistr/u16-strlen:
26326 # Code from module unistr/u16-strmblen:
26327 # Code from module unistr/u16-strmbtouc:
26328 # Code from module unistr/u16-strncat:
26329 # Code from module unistr/u16-strncmp:
26330 # Code from module unistr/u16-strncpy:
26331 # Code from module unistr/u16-strnlen:
26332 # Code from module unistr/u16-strpbrk:
26333 # Code from module unistr/u16-strrchr:
26334 # Code from module unistr/u16-strspn:
26335 # Code from module unistr/u16-strstr:
26336 # Code from module unistr/u16-strtok:
26337 # Code from module unistr/u16-to-u32:
26338 # Code from module unistr/u16-to-u8:
26339 # Code from module unistr/u16-uctomb:
26342 cat >>confdefs.h <<_ACEOF
26343 #define GNULIB_UNISTR_U16_UCTOMB 1
26347 # Code from module unistr/u32-check:
26348 # Code from module unistr/u32-chr:
26349 # Code from module unistr/u32-cmp:
26350 # Code from module unistr/u32-cmp2:
26351 # Code from module unistr/u32-cpy:
26352 # Code from module unistr/u32-cpy-alloc:
26353 # Code from module unistr/u32-endswith:
26354 # Code from module unistr/u32-mblen:
26355 # Code from module unistr/u32-mbsnlen:
26356 # Code from module unistr/u32-mbtouc:
26359 cat >>confdefs.h <<_ACEOF
26360 #define GNULIB_UNISTR_U32_MBTOUC 1
26364 # Code from module unistr/u32-mbtouc-unsafe:
26367 cat >>confdefs.h <<_ACEOF
26368 #define GNULIB_UNISTR_U32_MBTOUC_UNSAFE 1
26372 # Code from module unistr/u32-mbtoucr:
26375 cat >>confdefs.h <<_ACEOF
26376 #define GNULIB_UNISTR_U32_MBTOUCR 1
26380 # Code from module unistr/u32-move:
26381 # Code from module unistr/u32-next:
26382 # Code from module unistr/u32-prev:
26383 # Code from module unistr/u32-set:
26384 # Code from module unistr/u32-startswith:
26385 # Code from module unistr/u32-stpcpy:
26386 # Code from module unistr/u32-stpncpy:
26387 # Code from module unistr/u32-strcat:
26388 # Code from module unistr/u32-strchr:
26389 # Code from module unistr/u32-strcmp:
26390 # Code from module unistr/u32-strcoll:
26391 # Code from module unistr/u32-strcpy:
26392 # Code from module unistr/u32-strcspn:
26393 # Code from module unistr/u32-strdup:
26394 # Code from module unistr/u32-strlen:
26395 # Code from module unistr/u32-strmblen:
26396 # Code from module unistr/u32-strmbtouc:
26397 # Code from module unistr/u32-strncat:
26398 # Code from module unistr/u32-strncmp:
26399 # Code from module unistr/u32-strncpy:
26400 # Code from module unistr/u32-strnlen:
26401 # Code from module unistr/u32-strpbrk:
26402 # Code from module unistr/u32-strrchr:
26403 # Code from module unistr/u32-strspn:
26404 # Code from module unistr/u32-strstr:
26405 # Code from module unistr/u32-strtok:
26406 # Code from module unistr/u32-to-u16:
26407 # Code from module unistr/u32-to-u8:
26408 # Code from module unistr/u32-uctomb:
26411 cat >>confdefs.h <<_ACEOF
26412 #define GNULIB_UNISTR_U32_UCTOMB 1
26416 # Code from module unistr/u8-check:
26417 # Code from module unistr/u8-chr:
26418 # Code from module unistr/u8-cmp:
26419 # Code from module unistr/u8-cmp2:
26420 # Code from module unistr/u8-cpy:
26421 # Code from module unistr/u8-cpy-alloc:
26422 # Code from module unistr/u8-endswith:
26423 # Code from module unistr/u8-mblen:
26424 # Code from module unistr/u8-mbsnlen:
26425 # Code from module unistr/u8-mbtouc:
26428 cat >>confdefs.h <<_ACEOF
26429 #define GNULIB_UNISTR_U8_MBTOUC 1
26433 # Code from module unistr/u8-mbtouc-unsafe:
26436 cat >>confdefs.h <<_ACEOF
26437 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
26441 # Code from module unistr/u8-mbtoucr:
26444 cat >>confdefs.h <<_ACEOF
26445 #define GNULIB_UNISTR_U8_MBTOUCR 1
26449 # Code from module unistr/u8-move:
26450 # Code from module unistr/u8-next:
26451 # Code from module unistr/u8-prev:
26452 # Code from module unistr/u8-set:
26453 # Code from module unistr/u8-startswith:
26454 # Code from module unistr/u8-stpcpy:
26456 # Code from module unistr/u8-stpncpy:
26457 # Code from module unistr/u8-strcat:
26458 # Code from module unistr/u8-strchr:
26459 # Code from module unistr/u8-strcmp:
26460 # Code from module unistr/u8-strcoll:
26461 # Code from module unistr/u8-strcpy:
26462 # Code from module unistr/u8-strcspn:
26463 # Code from module unistr/u8-strdup:
26465 # Code from module unistr/u8-strlen:
26466 # Code from module unistr/u8-strmblen:
26467 # Code from module unistr/u8-strmbtouc:
26468 # Code from module unistr/u8-strncat:
26469 # Code from module unistr/u8-strncmp:
26470 # Code from module unistr/u8-strncpy:
26471 # Code from module unistr/u8-strnlen:
26472 # Code from module unistr/u8-strpbrk:
26473 # Code from module unistr/u8-strrchr:
26474 # Code from module unistr/u8-strspn:
26475 # Code from module unistr/u8-strstr:
26476 # Code from module unistr/u8-strtok:
26477 # Code from module unistr/u8-to-u16:
26478 # Code from module unistr/u8-to-u32:
26479 # Code from module unistr/u8-uctomb:
26482 cat >>confdefs.h <<_ACEOF
26483 #define GNULIB_UNISTR_U8_UCTOMB 1
26487 # Code from module unitypes:
26488 # Code from module uniwbrk/base:
26489 # Code from module uniwbrk/table:
26490 # Code from module uniwbrk/u16-wordbreaks:
26491 # Code from module uniwbrk/u32-wordbreaks:
26492 # Code from module uniwbrk/u8-wordbreaks:
26493 # Code from module uniwbrk/ulc-wordbreaks:
26494 # Code from module uniwbrk/wordbreak-property:
26495 # Code from module uniwidth/base:
26496 # Code from module uniwidth/u16-strwidth:
26497 # Code from module uniwidth/u16-width:
26498 # Code from module uniwidth/u32-strwidth:
26499 # Code from module uniwidth/u32-width:
26500 # Code from module uniwidth/u8-strwidth:
26501 # Code from module uniwidth/u8-width:
26502 # Code from module uniwidth/width:
26503 # Code from module unused-parameter:
26504 # Code from module verify:
26505 # Code from module warn-on-use:
26506 # Code from module wchar:
26517 if test $gl_cv_have_include_next = yes; then
26518 gl_cv_next_wchar_h='<'wchar.h'>'
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
26521 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26522 if test "${gl_cv_next_wchar_h+set}" = set; then :
26523 $as_echo_n "(cached) " >&6
26526 if test $ac_cv_header_wchar_h = yes; then
26527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26528 /* end confdefs.h. */
26533 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26534 *) gl_absname_cpp="$ac_cpp" ;;
26536 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26537 sed -n '\#/wchar.h#{
26538 s#.*"\(.*/wchar.h\)".*#\1#
26544 gl_cv_next_wchar_h='<'wchar.h'>'
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
26549 $as_echo "$gl_cv_next_wchar_h" >&6; }
26551 NEXT_WCHAR_H=$gl_cv_next_wchar_h
26553 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26555 gl_next_as_first_directive='<'wchar.h'>'
26557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26558 gl_next_as_first_directive=$gl_cv_next_wchar_h
26560 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
26564 if test $ac_cv_header_wchar_h = yes; then
26572 if test $gt_cv_c_wint_t = yes; then
26580 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
26581 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26583 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26584 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
26585 $as_echo_n "(cached) " >&6
26587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26588 /* end confdefs.h. */
26590 /* Some systems require additional headers. */
26592 # include <stddef.h>
26593 # include <stdio.h>
26607 if ac_fn_c_try_compile "$LINENO"; then :
26608 eval "$as_gl_Symbol=yes"
26610 eval "$as_gl_Symbol=no"
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26614 eval ac_res=\$$as_gl_Symbol
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26616 $as_echo "$ac_res" >&6; }
26617 eval as_val=\$$as_gl_Symbol
26618 if test "x$as_val" = x""yes; then :
26619 cat >>confdefs.h <<_ACEOF
26620 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26623 eval ac_cv_have_decl_$gl_func=yes
26628 # Code from module wctype:
26633 if test $ac_cv_func_iswcntrl = yes; then
26640 if test $ac_cv_func_iswblank = yes; then
26650 if test $gt_cv_c_wint_t = yes; then
26657 if test $ac_cv_header_wctype_h = yes; then
26658 if test $ac_cv_func_iswcntrl = yes; then
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
26660 $as_echo_n "checking whether iswcntrl works... " >&6; }
26661 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
26662 $as_echo_n "(cached) " >&6
26665 if test "$cross_compiling" = yes; then :
26666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26667 /* end confdefs.h. */
26668 #include <stdlib.h>
26669 #if __GNU_LIBRARY__ == 1
26670 Linux libc5 i18n is broken.
26680 if ac_fn_c_try_compile "$LINENO"; then :
26681 gl_cv_func_iswcntrl_works=yes
26683 gl_cv_func_iswcntrl_works=no
26685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26689 /* end confdefs.h. */
26691 #include <stddef.h>
26695 #include <wctype.h>
26696 int main () { return iswprint ('x') == 0; }
26698 if ac_fn_c_try_run "$LINENO"; then :
26699 gl_cv_func_iswcntrl_works=yes
26701 gl_cv_func_iswcntrl_works=no
26703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26704 conftest.$ac_objext conftest.beam conftest.$ac_ext
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
26710 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
26718 if test $gl_cv_have_include_next = yes; then
26719 gl_cv_next_wctype_h='<'wctype.h'>'
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
26722 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
26723 if test "${gl_cv_next_wctype_h+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26727 if test $ac_cv_header_wctype_h = yes; then
26728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26729 /* end confdefs.h. */
26730 #include <wctype.h>
26734 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26735 *) gl_absname_cpp="$ac_cpp" ;;
26737 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26738 sed -n '\#/wctype.h#{
26739 s#.*"\(.*/wctype.h\)".*#\1#
26745 gl_cv_next_wctype_h='<'wctype.h'>'
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
26750 $as_echo "$gl_cv_next_wctype_h" >&6; }
26752 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
26754 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26756 gl_next_as_first_directive='<'wctype.h'>'
26758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26759 gl_next_as_first_directive=$gl_cv_next_wctype_h
26761 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
26771 if test "$gl_cv_func_iswcntrl_works" = no; then
26778 # Code from module wcwidth:
26790 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
26791 /* AIX 3.2.5 declares wcwidth in <string.h>. */
26792 #include <string.h>
26793 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26795 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
26796 before <wchar.h>. */
26797 #include <stddef.h>
26803 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then :
26809 cat >>confdefs.h <<_ACEOF
26810 #define HAVE_DECL_WCWIDTH $ac_have_decl
26813 if test $ac_cv_have_decl_wcwidth != yes; then
26814 HAVE_DECL_WCWIDTH=0
26817 if test $ac_cv_func_wcwidth = yes; then
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
26819 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
26820 if test "${gl_cv_func_wcwidth_works+set}" = set; then :
26821 $as_echo_n "(cached) " >&6
26824 if test "$cross_compiling" = yes; then :
26827 # Guess yes on glibc systems.
26828 *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
26829 *) gl_cv_func_wcwidth_works="guessing no";;
26833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26834 /* end confdefs.h. */
26836 #include <locale.h>
26837 /* AIX 3.2.5 declares wcwidth in <string.h>. */
26838 #include <string.h>
26839 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26841 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
26842 before <wchar.h>. */
26843 #include <stddef.h>
26847 #if !HAVE_DECL_WCWIDTH
26849 # ifdef __cplusplus
26856 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
26857 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
26862 if ac_fn_c_try_run "$LINENO"; then :
26863 gl_cv_func_wcwidth_works=yes
26865 gl_cv_func_wcwidth_works=no
26867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26868 conftest.$ac_objext conftest.beam conftest.$ac_ext
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
26874 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
26875 case "$gl_cv_func_wcwidth_works" in
26877 *no) REPLACE_WCWIDTH=1 ;;
26880 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
26889 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
26892 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
26893 || test $HAVE_DECL_WCWIDTH = 0; then
26906 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
26910 # Code from module xsize:
26914 for ac_header in stdint.h
26916 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26917 if test "x$ac_cv_header_stdint_h" = x""yes; then :
26918 cat >>confdefs.h <<_ACEOF
26919 #define HAVE_STDINT_H 1
26927 # End of code from modules
26948 gl_source_base='tests'
26949 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
26951 gl_module_indicator_condition=$gltests_WITNESS
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
26957 $as_echo_n "checking for a traditional french locale... " >&6; }
26958 if test "${gt_cv_locale_fr+set}" = set; then :
26959 $as_echo_n "(cached) " >&6
26962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26963 /* end confdefs.h. */
26965 #include <locale.h>
26967 #if HAVE_LANGINFO_CODESET
26968 # include <langinfo.h>
26970 #include <stdlib.h>
26971 #include <string.h>
26975 /* Check whether the given locale name is recognized by the system. */
26976 if (setlocale (LC_ALL, "") == NULL) return 1;
26977 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
26978 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
26979 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
26980 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
26981 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
26982 some unit tests fail. */
26983 #if HAVE_LANGINFO_CODESET
26985 const char *cs = nl_langinfo (CODESET);
26986 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
26991 /* On Cygwin, avoid locale names without encoding suffix, because the
26992 locale_charset() function relies on the encoding suffix. Note that
26993 LC_ALL is set on the command line. */
26994 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
26996 /* Check whether in the abbreviation of the second month, the second
26997 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
26998 one byte long. This excludes the UTF-8 encoding. */
26999 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
27000 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
27001 /* Check whether the decimal separator is a comma.
27002 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
27003 are nl_langinfo(RADIXCHAR) are both ".". */
27004 if (localeconv () ->decimal_point[0] != ',') return 1;
27009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
27010 (eval $ac_link) 2>&5
27012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27013 test $ac_status = 0; } && test -s conftest$ac_exeext; then
27014 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
27015 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
27016 # configure script would override the LC_ALL setting. Likewise for
27017 # LC_CTYPE, which is also set at the beginning of the configure script.
27018 # Test for the usual locale name.
27019 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27020 gt_cv_locale_fr=fr_FR
27022 # Test for the locale name with explicit encoding suffix.
27023 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27024 gt_cv_locale_fr=fr_FR.ISO-8859-1
27026 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
27027 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27028 gt_cv_locale_fr=fr_FR.ISO8859-1
27030 # Test for the HP-UX locale name.
27031 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27032 gt_cv_locale_fr=fr_FR.iso88591
27034 # Test for the Solaris 7 locale name.
27035 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27039 gt_cv_locale_fr=none
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
27050 $as_echo "$gt_cv_locale_fr" >&6; }
27051 LOCALE_FR=$gt_cv_locale_fr
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
27057 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
27058 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
27059 $as_echo_n "(cached) " >&6
27062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27063 /* end confdefs.h. */
27065 #include <locale.h>
27067 #if HAVE_LANGINFO_CODESET
27068 # include <langinfo.h>
27070 #include <stdlib.h>
27071 #include <string.h>
27075 /* On BeOS, locales are not implemented in libc. Rather, libintl
27076 imitates locale dependent behaviour by looking at the environment
27077 variables, and all locales use the UTF-8 encoding. But BeOS does not
27078 implement the Turkish upper-/lowercase mappings. Therefore, let this
27079 program return 1 on BeOS. */
27080 /* Check whether the given locale name is recognized by the system. */
27081 if (setlocale (LC_ALL, "") == NULL) return 1;
27082 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
27083 On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
27084 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
27085 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
27086 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
27087 some unit tests fail. */
27088 #if HAVE_LANGINFO_CODESET
27090 const char *cs = nl_langinfo (CODESET);
27091 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
27096 /* On Cygwin, avoid locale names without encoding suffix, because the
27097 locale_charset() function relies on the encoding suffix. Note that
27098 LC_ALL is set on the command line. */
27099 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
27101 /* Check whether in the abbreviation of the eighth month, the second
27102 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
27103 two bytes long, with UTF-8 encoding. */
27104 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
27105 if (strftime (buf, sizeof (buf), "%b", &t) < 4
27106 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
27108 /* Check whether the upper-/lowercase mappings are as expected for
27110 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
27111 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
27117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
27118 (eval $ac_link) 2>&5
27120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27121 test $ac_status = 0; } && test -s conftest$ac_exeext; then
27122 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
27123 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
27124 # configure script would override the LC_ALL setting. Likewise for
27125 # LC_CTYPE, which is also set at the beginning of the configure script.
27126 # Test for the usual locale name.
27127 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27128 gt_cv_locale_tr_utf8=tr_TR
27130 # Test for the locale name with explicit encoding suffix.
27131 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27132 gt_cv_locale_tr_utf8=tr_TR.UTF-8
27134 # Test for the Solaris 7 locale name.
27135 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27136 gt_cv_locale_tr_utf8=tr.UTF-8
27139 gt_cv_locale_tr_utf8=none
27144 gt_cv_locale_tr_utf8=none
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
27150 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
27151 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
27158 GNULIB_ENVIRON=$gl_module_indicator_condition
27162 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
27180 $as_echo_n "checking for error_at_line... " >&6; }
27181 if test "${ac_cv_lib_error_at_line+set}" = set; then :
27182 $as_echo_n "(cached) " >&6
27184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27185 /* end confdefs.h. */
27190 error_at_line (0, 0, "", 0, "an error occurred");
27195 if ac_fn_c_try_link "$LINENO"; then :
27196 ac_cv_lib_error_at_line=yes
27198 ac_cv_lib_error_at_line=no
27200 rm -f core conftest.err conftest.$ac_objext \
27201 conftest$ac_exeext conftest.$ac_ext
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
27204 $as_echo "$ac_cv_lib_error_at_line" >&6; }
27205 if test $ac_cv_lib_error_at_line = no; then
27214 gltests_LIBOBJS="$gltests_LIBOBJS error.$ac_objext"
27226 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
27230 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
27235 for ac_func in getpagesize
27237 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27238 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27239 cat >>confdefs.h <<_ACEOF
27240 #define HAVE_GETPAGESIZE 1
27246 if test $ac_cv_func_getpagesize = no; then
27248 for ac_header in OS.h
27250 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
27251 if test "x$ac_cv_header_OS_h" = x""yes; then :
27252 cat >>confdefs.h <<_ACEOF
27253 #define HAVE_OS_H 1
27260 if test $ac_cv_header_OS_h = yes; then
27263 for ac_header in sys/param.h
27265 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
27266 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
27267 cat >>confdefs.h <<_ACEOF
27268 #define HAVE_SYS_PARAM_H 1
27275 if test $ac_cv_header_sys_param_h = yes; then
27281 REPLACE_GETPAGESIZE=1
27290 gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
27294 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
27295 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then :
27298 HAVE_DECL_GETPAGESIZE=0
27305 GNULIB_GETPAGESIZE=$gl_module_indicator_condition
27309 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
27317 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
27318 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
27319 $as_echo_n "(cached) " >&6
27322 if test "$cross_compiling" = yes; then :
27324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27325 /* end confdefs.h. */
27327 #if defined arm || defined __arm || defined __arm__
27332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27333 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
27334 gl_cv_cc_double_expbit0="unknown"
27338 if test "${ac_cv_c_bigendian+set}" = set; then :
27339 $as_echo_n "(cached) " >&6
27341 ac_cv_c_bigendian=unknown
27342 # See if we're dealing with a universal compiler.
27343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27344 /* end confdefs.h. */
27345 #ifndef __APPLE_CC__
27346 not a universal capable compiler
27351 if ac_fn_c_try_compile "$LINENO"; then :
27353 # Check for potential -arch flags. It is not universal unless
27354 # there are at least two -arch flags with different values.
27357 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
27358 if test -n "$ac_prev"; then
27360 i?86 | x86_64 | ppc | ppc64)
27361 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
27364 ac_cv_c_bigendian=universal
27370 elif test "x$ac_word" = "x-arch"; then
27375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27376 if test $ac_cv_c_bigendian = unknown; then
27377 # See if sys/param.h defines the BYTE_ORDER macro.
27378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27379 /* end confdefs.h. */
27380 #include <sys/types.h>
27381 #include <sys/param.h>
27386 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27387 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27389 bogus endian macros
27396 if ac_fn_c_try_compile "$LINENO"; then :
27397 # It does; now see whether it defined to BIG_ENDIAN or not.
27398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h. */
27400 #include <sys/types.h>
27401 #include <sys/param.h>
27406 #if BYTE_ORDER != BIG_ENDIAN
27414 if ac_fn_c_try_compile "$LINENO"; then :
27415 ac_cv_c_bigendian=yes
27417 ac_cv_c_bigendian=no
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27423 if test $ac_cv_c_bigendian = unknown; then
27424 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27426 /* end confdefs.h. */
27427 #include <limits.h>
27432 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27433 bogus endian macros
27440 if ac_fn_c_try_compile "$LINENO"; then :
27441 # It does; now see whether it defined to _BIG_ENDIAN or not.
27442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27443 /* end confdefs.h. */
27444 #include <limits.h>
27449 #ifndef _BIG_ENDIAN
27457 if ac_fn_c_try_compile "$LINENO"; then :
27458 ac_cv_c_bigendian=yes
27460 ac_cv_c_bigendian=no
27462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27466 if test $ac_cv_c_bigendian = unknown; then
27467 # Compile a test program.
27468 if test "$cross_compiling" = yes; then :
27469 # Try to guess by grepping values from an object file.
27470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27471 /* end confdefs.h. */
27472 short int ascii_mm[] =
27473 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27474 short int ascii_ii[] =
27475 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27476 int use_ascii (int i) {
27477 return ascii_mm[i] + ascii_ii[i];
27479 short int ebcdic_ii[] =
27480 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27481 short int ebcdic_mm[] =
27482 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27483 int use_ebcdic (int i) {
27484 return ebcdic_mm[i] + ebcdic_ii[i];
27491 return use_ascii (foo) == use_ebcdic (foo);
27496 if ac_fn_c_try_compile "$LINENO"; then :
27497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27498 ac_cv_c_bigendian=yes
27500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27501 if test "$ac_cv_c_bigendian" = unknown; then
27502 ac_cv_c_bigendian=no
27504 # finding both strings is unlikely to happen, but who knows?
27505 ac_cv_c_bigendian=unknown
27509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512 /* end confdefs.h. */
27513 $ac_includes_default
27518 /* Are we little or big endian? From Harbison&Steele. */
27522 char c[sizeof (long int)];
27525 return u.c[sizeof (long int) - 1] == 1;
27531 if ac_fn_c_try_run "$LINENO"; then :
27532 ac_cv_c_bigendian=no
27534 ac_cv_c_bigendian=yes
27536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27537 conftest.$ac_objext conftest.beam conftest.$ac_ext
27543 case $ac_cv_c_bigendian in #(
27545 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
27547 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
27550 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27554 gl_cv_cc_double_expbit0="unknown" ;;
27563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27564 /* end confdefs.h. */
27567 #include <stddef.h>
27569 #include <string.h>
27571 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27572 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
27573 static unsigned int ored_words[NWORDS];
27574 static unsigned int anded_words[NWORDS];
27575 static void add_to_ored_words (double x)
27579 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
27580 memset (&m, 0, sizeof (memory_double));
27582 for (i = 0; i < NWORDS; i++)
27584 ored_words[i] |= m.word[i];
27585 anded_words[i] &= m.word[i];
27591 FILE *fp = fopen ("conftest.out", "w");
27594 for (j = 0; j < NWORDS; j++)
27595 anded_words[j] = ~ (unsigned int) 0;
27596 add_to_ored_words (0.25);
27597 add_to_ored_words (0.5);
27598 add_to_ored_words (1.0);
27599 add_to_ored_words (2.0);
27600 add_to_ored_words (4.0);
27601 /* Remove bits that are common (e.g. if representation of the first mantissa
27602 bit is explicit). */
27603 for (j = 0; j < NWORDS; j++)
27604 ored_words[j] &= ~anded_words[j];
27605 /* Now find the nonzero word. */
27606 for (j = 0; j < NWORDS; j++)
27607 if (ored_words[j] != 0)
27612 for (i = j + 1; i < NWORDS; i++)
27613 if (ored_words[i] != 0)
27615 fprintf (fp, "unknown");
27616 return (fclose (fp) != 0);
27619 if ((ored_words[j] >> i) & 1)
27621 fprintf (fp, "word %d bit %d", (int) j, (int) i);
27622 return (fclose (fp) != 0);
27625 fprintf (fp, "unknown");
27626 return (fclose (fp) != 0);
27630 if ac_fn_c_try_run "$LINENO"; then :
27631 gl_cv_cc_double_expbit0=`cat conftest.out`
27633 gl_cv_cc_double_expbit0="unknown"
27635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27636 conftest.$ac_objext conftest.beam conftest.$ac_ext
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
27643 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
27644 case "$gl_cv_cc_double_expbit0" in
27646 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27647 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
27649 cat >>confdefs.h <<_ACEOF
27650 #define DBL_EXPBIT0_WORD $word
27654 cat >>confdefs.h <<_ACEOF
27655 #define DBL_EXPBIT0_BIT $bit
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
27663 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
27664 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
27665 $as_echo_n "(cached) " >&6
27668 if test "$cross_compiling" = yes; then :
27669 gl_cv_cc_float_expbit0="word 0 bit 23"
27671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h. */
27675 #include <stddef.h>
27677 #include <string.h>
27679 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27680 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
27681 static unsigned int ored_words[NWORDS];
27682 static unsigned int anded_words[NWORDS];
27683 static void add_to_ored_words (float x)
27687 /* Clear it first, in case
27688 sizeof (float) < sizeof (memory_float). */
27689 memset (&m, 0, sizeof (memory_float));
27691 for (i = 0; i < NWORDS; i++)
27693 ored_words[i] |= m.word[i];
27694 anded_words[i] &= m.word[i];
27700 FILE *fp = fopen ("conftest.out", "w");
27703 for (j = 0; j < NWORDS; j++)
27704 anded_words[j] = ~ (unsigned int) 0;
27705 add_to_ored_words (0.25f);
27706 add_to_ored_words (0.5f);
27707 add_to_ored_words (1.0f);
27708 add_to_ored_words (2.0f);
27709 add_to_ored_words (4.0f);
27710 /* Remove bits that are common (e.g. if representation of the first mantissa
27711 bit is explicit). */
27712 for (j = 0; j < NWORDS; j++)
27713 ored_words[j] &= ~anded_words[j];
27714 /* Now find the nonzero word. */
27715 for (j = 0; j < NWORDS; j++)
27716 if (ored_words[j] != 0)
27721 for (i = j + 1; i < NWORDS; i++)
27722 if (ored_words[i] != 0)
27724 fprintf (fp, "unknown");
27725 return (fclose (fp) != 0);
27728 if ((ored_words[j] >> i) & 1)
27730 fprintf (fp, "word %d bit %d", (int) j, (int) i);
27731 return (fclose (fp) != 0);
27734 fprintf (fp, "unknown");
27735 return (fclose (fp) != 0);
27739 if ac_fn_c_try_run "$LINENO"; then :
27740 gl_cv_cc_float_expbit0=`cat conftest.out`
27742 gl_cv_cc_float_expbit0="unknown"
27744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27745 conftest.$ac_objext conftest.beam conftest.$ac_ext
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
27752 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
27753 case "$gl_cv_cc_float_expbit0" in
27755 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27756 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
27758 cat >>confdefs.h <<_ACEOF
27759 #define FLT_EXPBIT0_WORD $word
27763 cat >>confdefs.h <<_ACEOF
27764 #define FLT_EXPBIT0_BIT $bit
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
27773 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
27774 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
27775 $as_echo_n "(cached) " >&6
27778 if test "$cross_compiling" = yes; then :
27780 gl_cv_cc_long_double_expbit0="unknown"
27783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27784 /* end confdefs.h. */
27787 #include <stddef.h>
27789 #include <string.h>
27791 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27792 typedef union { long double value; unsigned int word[NWORDS]; }
27793 memory_long_double;
27794 static unsigned int ored_words[NWORDS];
27795 static unsigned int anded_words[NWORDS];
27796 static void add_to_ored_words (long double x)
27798 memory_long_double m;
27800 /* Clear it first, in case
27801 sizeof (long double) < sizeof (memory_long_double). */
27802 memset (&m, 0, sizeof (memory_long_double));
27804 for (i = 0; i < NWORDS; i++)
27806 ored_words[i] |= m.word[i];
27807 anded_words[i] &= m.word[i];
27813 FILE *fp = fopen ("conftest.out", "w");
27816 for (j = 0; j < NWORDS; j++)
27817 anded_words[j] = ~ (unsigned int) 0;
27818 add_to_ored_words (0.25L);
27819 add_to_ored_words (0.5L);
27820 add_to_ored_words (1.0L);
27821 add_to_ored_words (2.0L);
27822 add_to_ored_words (4.0L);
27823 /* Remove bits that are common (e.g. if representation of the first mantissa
27824 bit is explicit). */
27825 for (j = 0; j < NWORDS; j++)
27826 ored_words[j] &= ~anded_words[j];
27827 /* Now find the nonzero word. */
27828 for (j = 0; j < NWORDS; j++)
27829 if (ored_words[j] != 0)
27834 for (i = j + 1; i < NWORDS; i++)
27835 if (ored_words[i] != 0)
27837 fprintf (fp, "unknown");
27838 return (fclose (fp) != 0);
27841 if ((ored_words[j] >> i) & 1)
27843 fprintf (fp, "word %d bit %d", (int) j, (int) i);
27844 return (fclose (fp) != 0);
27847 fprintf (fp, "unknown");
27848 return (fclose (fp) != 0);
27852 if ac_fn_c_try_run "$LINENO"; then :
27853 gl_cv_cc_long_double_expbit0=`cat conftest.out`
27855 gl_cv_cc_long_double_expbit0="unknown"
27857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27858 conftest.$ac_objext conftest.beam conftest.$ac_ext
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
27865 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
27866 case "$gl_cv_cc_long_double_expbit0" in
27868 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27869 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
27871 cat >>confdefs.h <<_ACEOF
27872 #define LDBL_EXPBIT0_WORD $word
27876 cat >>confdefs.h <<_ACEOF
27877 #define LDBL_EXPBIT0_BIT $bit
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
27891 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
27892 if test "${gl_cv_header_locale_h_posix2001+set}" = set; then :
27893 $as_echo_n "(cached) " >&6
27895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h. */
27897 #include <locale.h>
27898 int x = LC_MESSAGES;
27907 if ac_fn_c_try_compile "$LINENO"; then :
27908 gl_cv_header_locale_h_posix2001=yes
27910 gl_cv_header_locale_h_posix2001=no
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
27915 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
27918 if test $ac_cv_header_xlocale_h = yes; then
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
27921 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
27922 if test "${gl_cv_header_locale_has_locale_t+set}" = set; then :
27923 $as_echo_n "(cached) " >&6
27925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h. */
27927 #include <locale.h>
27937 if ac_fn_c_try_compile "$LINENO"; then :
27938 gl_cv_header_locale_has_locale_t=yes
27940 gl_cv_header_locale_has_locale_t=no
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
27946 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
27947 if test $gl_cv_header_locale_has_locale_t = yes; then
27948 gl_cv_header_locale_h_needs_xlocale_h=no
27950 gl_cv_header_locale_h_needs_xlocale_h=yes
27954 gl_cv_header_locale_h_needs_xlocale_h=no
27964 if test $gl_cv_have_include_next = yes; then
27965 gl_cv_next_locale_h='<'locale.h'>'
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
27968 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
27969 if test "${gl_cv_next_locale_h+set}" = set; then :
27970 $as_echo_n "(cached) " >&6
27973 if test $ac_cv_header_locale_h = yes; then
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27976 #include <locale.h>
27980 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27981 *) gl_absname_cpp="$ac_cpp" ;;
27983 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27984 sed -n '\#/locale.h#{
27985 s#.*"\(.*/locale.h\)".*#\1#
27991 gl_cv_next_locale_h='<'locale.h'>'
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
27996 $as_echo "$gl_cv_next_locale_h" >&6; }
27998 NEXT_LOCALE_H=$gl_cv_next_locale_h
28000 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28002 gl_next_as_first_directive='<'locale.h'>'
28004 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28005 gl_next_as_first_directive=$gl_cv_next_locale_h
28007 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
28012 if test -n "$STDDEF_H" \
28013 || test $gl_cv_header_locale_h_posix2001 = no \
28014 || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then
28021 for gl_func in duplocale; do
28022 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28024 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28025 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
28026 $as_echo_n "(cached) " >&6
28028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28029 /* end confdefs.h. */
28030 #include <locale.h>
28031 /* Some systems provide declarations in a non-standard header. */
28033 # include <xlocale.h>
28045 if ac_fn_c_try_compile "$LINENO"; then :
28046 eval "$as_gl_Symbol=yes"
28048 eval "$as_gl_Symbol=no"
28050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28052 eval ac_res=\$$as_gl_Symbol
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28054 $as_echo "$ac_res" >&6; }
28055 eval as_val=\$$as_gl_Symbol
28056 if test "x$as_val" = x""yes; then :
28057 cat >>confdefs.h <<_ACEOF
28058 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28061 eval ac_cv_have_decl_$gl_func=yes
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
28072 $as_echo_n "checking for a traditional french locale... " >&6; }
28073 if test "${gt_cv_locale_fr+set}" = set; then :
28074 $as_echo_n "(cached) " >&6
28077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28078 /* end confdefs.h. */
28080 #include <locale.h>
28082 #if HAVE_LANGINFO_CODESET
28083 # include <langinfo.h>
28085 #include <stdlib.h>
28086 #include <string.h>
28090 /* Check whether the given locale name is recognized by the system. */
28091 if (setlocale (LC_ALL, "") == NULL) return 1;
28092 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28093 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28094 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28095 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28096 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28097 some unit tests fail. */
28098 #if HAVE_LANGINFO_CODESET
28100 const char *cs = nl_langinfo (CODESET);
28101 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28106 /* On Cygwin, avoid locale names without encoding suffix, because the
28107 locale_charset() function relies on the encoding suffix. Note that
28108 LC_ALL is set on the command line. */
28109 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28111 /* Check whether in the abbreviation of the second month, the second
28112 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
28113 one byte long. This excludes the UTF-8 encoding. */
28114 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28115 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
28116 /* Check whether the decimal separator is a comma.
28117 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28118 are nl_langinfo(RADIXCHAR) are both ".". */
28119 if (localeconv () ->decimal_point[0] != ',') return 1;
28124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28125 (eval $ac_link) 2>&5
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; } && test -s conftest$ac_exeext; then
28129 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28130 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28131 # configure script would override the LC_ALL setting. Likewise for
28132 # LC_CTYPE, which is also set at the beginning of the configure script.
28133 # Test for the usual locale name.
28134 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28135 gt_cv_locale_fr=fr_FR
28137 # Test for the locale name with explicit encoding suffix.
28138 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28139 gt_cv_locale_fr=fr_FR.ISO-8859-1
28141 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
28142 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28143 gt_cv_locale_fr=fr_FR.ISO8859-1
28145 # Test for the HP-UX locale name.
28146 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28147 gt_cv_locale_fr=fr_FR.iso88591
28149 # Test for the Solaris 7 locale name.
28150 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28154 gt_cv_locale_fr=none
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
28165 $as_echo "$gt_cv_locale_fr" >&6; }
28166 LOCALE_FR=$gt_cv_locale_fr
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
28172 $as_echo_n "checking for a french Unicode locale... " >&6; }
28173 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
28174 $as_echo_n "(cached) " >&6
28177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178 /* end confdefs.h. */
28180 #include <locale.h>
28182 #if HAVE_LANGINFO_CODESET
28183 # include <langinfo.h>
28185 #include <stdlib.h>
28186 #include <string.h>
28190 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
28191 imitates locale dependent behaviour by looking at the environment
28192 variables, and all locales use the UTF-8 encoding. */
28193 #if !(defined __BEOS__ || defined __HAIKU__)
28194 /* Check whether the given locale name is recognized by the system. */
28195 if (setlocale (LC_ALL, "") == NULL) return 1;
28196 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28197 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28198 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28199 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28200 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28201 some unit tests fail. */
28202 # if HAVE_LANGINFO_CODESET
28204 const char *cs = nl_langinfo (CODESET);
28205 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28210 /* On Cygwin, avoid locale names without encoding suffix, because the
28211 locale_charset() function relies on the encoding suffix. Note that
28212 LC_ALL is set on the command line. */
28213 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28215 /* Check whether in the abbreviation of the second month, the second
28216 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
28217 two bytes long, with UTF-8 encoding. */
28218 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28219 if (strftime (buf, sizeof (buf), "%b", &t) < 4
28220 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
28223 /* Check whether the decimal separator is a comma.
28224 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28225 are nl_langinfo(RADIXCHAR) are both ".". */
28226 if (localeconv () ->decimal_point[0] != ',') return 1;
28231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28232 (eval $ac_link) 2>&5
28234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28235 test $ac_status = 0; } && test -s conftest$ac_exeext; then
28236 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28237 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28238 # configure script would override the LC_ALL setting. Likewise for
28239 # LC_CTYPE, which is also set at the beginning of the configure script.
28240 # Test for the usual locale name.
28241 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28242 gt_cv_locale_fr_utf8=fr_FR
28244 # Test for the locale name with explicit encoding suffix.
28245 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28246 gt_cv_locale_fr_utf8=fr_FR.UTF-8
28248 # Test for the Solaris 7 locale name.
28249 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28250 gt_cv_locale_fr_utf8=fr.UTF-8
28253 gt_cv_locale_fr_utf8=none
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
28262 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
28263 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
28270 $as_echo_n "checking for a traditional japanese locale... " >&6; }
28271 if test "${gt_cv_locale_ja+set}" = set; then :
28272 $as_echo_n "(cached) " >&6
28275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28276 /* end confdefs.h. */
28278 #include <locale.h>
28280 #if HAVE_LANGINFO_CODESET
28281 # include <langinfo.h>
28283 #include <stdlib.h>
28284 #include <string.h>
28290 /* Check whether the given locale name is recognized by the system. */
28291 if (setlocale (LC_ALL, "") == NULL) return 1;
28292 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28293 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28294 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28295 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28296 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28297 some unit tests fail. */
28298 #if HAVE_LANGINFO_CODESET
28300 const char *cs = nl_langinfo (CODESET);
28301 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28306 /* On Cygwin, avoid locale names without encoding suffix, because the
28307 locale_charset() function relies on the encoding suffix. Note that
28308 LC_ALL is set on the command line. */
28309 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28311 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
28312 on Cygwin 1.5.x. */
28313 if (MB_CUR_MAX == 1)
28315 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
28316 This excludes the UTF-8 encoding. */
28317 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28318 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
28319 for (p = buf; *p != '\0'; p++)
28320 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
28326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28327 (eval $ac_link) 2>&5
28329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28330 test $ac_status = 0; } && test -s conftest$ac_exeext; then
28331 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28332 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28333 # configure script would override the LC_ALL setting. Likewise for
28334 # LC_CTYPE, which is also set at the beginning of the configure script.
28335 # Test for the AIX locale name.
28336 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28337 gt_cv_locale_ja=ja_JP
28339 # Test for the locale name with explicit encoding suffix.
28340 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28341 gt_cv_locale_ja=ja_JP.EUC-JP
28343 # Test for the HP-UX, OSF/1, NetBSD locale name.
28344 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28345 gt_cv_locale_ja=ja_JP.eucJP
28347 # Test for the IRIX, FreeBSD locale name.
28348 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28349 gt_cv_locale_ja=ja_JP.EUC
28351 # Test for the Solaris 7 locale name.
28352 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28355 # Special test for NetBSD 1.6.
28356 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
28357 gt_cv_locale_ja=ja_JP.eucJP
28360 gt_cv_locale_ja=none
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
28372 $as_echo "$gt_cv_locale_ja" >&6; }
28373 LOCALE_JA=$gt_cv_locale_ja
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
28380 $as_echo_n "checking for a transitional chinese locale... " >&6; }
28381 if test "${gt_cv_locale_zh_CN+set}" = set; then :
28382 $as_echo_n "(cached) " >&6
28385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28386 /* end confdefs.h. */
28388 #include <locale.h>
28389 #include <stdlib.h>
28391 #if HAVE_LANGINFO_CODESET
28392 # include <langinfo.h>
28394 #include <stdlib.h>
28395 #include <string.h>
28401 /* Check whether the given locale name is recognized by the system. */
28402 if (setlocale (LC_ALL, "") == NULL) return 1;
28403 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28404 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28405 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28406 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28407 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28408 some unit tests fail. */
28409 #if HAVE_LANGINFO_CODESET
28411 const char *cs = nl_langinfo (CODESET);
28412 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28417 /* On Cygwin, avoid locale names without encoding suffix, because the
28418 locale_charset() function relies on the encoding suffix. Note that
28419 LC_ALL is set on the command line. */
28420 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28422 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
28423 This excludes the UTF-8 encoding. */
28424 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28425 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
28426 for (p = buf; *p != '\0'; p++)
28427 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
28429 /* Check whether a typical GB18030 multibyte sequence is recognized as a
28430 single wide character. This excludes the GB2312 and GBK encodings. */
28431 if (mblen ("\203\062\332\066", 5) != 4)
28437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28438 (eval $ac_link) 2>&5
28440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28441 test $ac_status = 0; } && test -s conftest$ac_exeext; then
28442 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28443 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28444 # configure script would override the LC_ALL setting. Likewise for
28445 # LC_CTYPE, which is also set at the beginning of the configure script.
28446 # Test for the locale name without encoding suffix.
28447 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28448 gt_cv_locale_zh_CN=zh_CN
28450 # Test for the locale name with explicit encoding suffix.
28451 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28452 gt_cv_locale_zh_CN=zh_CN.GB18030
28455 gt_cv_locale_zh_CN=none
28459 # If there was a link error, due to mblen(), the system is so old that
28460 # it certainly doesn't have a chinese locale.
28461 gt_cv_locale_zh_CN=none
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
28467 $as_echo "$gt_cv_locale_zh_CN" >&6; }
28468 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
28474 $as_echo_n "checking for a french Unicode locale... " >&6; }
28475 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
28476 $as_echo_n "(cached) " >&6
28479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28480 /* end confdefs.h. */
28482 #include <locale.h>
28484 #if HAVE_LANGINFO_CODESET
28485 # include <langinfo.h>
28487 #include <stdlib.h>
28488 #include <string.h>
28492 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
28493 imitates locale dependent behaviour by looking at the environment
28494 variables, and all locales use the UTF-8 encoding. */
28495 #if !(defined __BEOS__ || defined __HAIKU__)
28496 /* Check whether the given locale name is recognized by the system. */
28497 if (setlocale (LC_ALL, "") == NULL) return 1;
28498 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28499 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28500 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28501 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28502 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28503 some unit tests fail. */
28504 # if HAVE_LANGINFO_CODESET
28506 const char *cs = nl_langinfo (CODESET);
28507 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28512 /* On Cygwin, avoid locale names without encoding suffix, because the
28513 locale_charset() function relies on the encoding suffix. Note that
28514 LC_ALL is set on the command line. */
28515 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28517 /* Check whether in the abbreviation of the second month, the second
28518 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
28519 two bytes long, with UTF-8 encoding. */
28520 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28521 if (strftime (buf, sizeof (buf), "%b", &t) < 4
28522 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
28525 /* Check whether the decimal separator is a comma.
28526 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28527 are nl_langinfo(RADIXCHAR) are both ".". */
28528 if (localeconv () ->decimal_point[0] != ',') return 1;
28533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28534 (eval $ac_link) 2>&5
28536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28537 test $ac_status = 0; } && test -s conftest$ac_exeext; then
28538 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28539 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28540 # configure script would override the LC_ALL setting. Likewise for
28541 # LC_CTYPE, which is also set at the beginning of the configure script.
28542 # Test for the usual locale name.
28543 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28544 gt_cv_locale_fr_utf8=fr_FR
28546 # Test for the locale name with explicit encoding suffix.
28547 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28548 gt_cv_locale_fr_utf8=fr_FR.UTF-8
28550 # Test for the Solaris 7 locale name.
28551 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28552 gt_cv_locale_fr_utf8=fr.UTF-8
28555 gt_cv_locale_fr_utf8=none
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
28564 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
28565 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
28568 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
28570 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
28576 cat >>confdefs.h <<_ACEOF
28577 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
28580 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
28582 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
28588 cat >>confdefs.h <<_ACEOF
28589 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
28595 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
28596 if test "${gl_cv_func_svid_putenv+set}" = set; then :
28597 $as_echo_n "(cached) " >&6
28599 if test "$cross_compiling" = yes; then :
28600 gl_cv_func_svid_putenv=no
28602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28603 /* end confdefs.h. */
28604 $ac_includes_default
28609 /* Put it in env. */
28610 if (putenv ("CONFTEST_putenv=val"))
28613 /* Try to remove it. */
28614 if (putenv ("CONFTEST_putenv"))
28617 /* Make sure it was deleted. */
28618 if (getenv ("CONFTEST_putenv") != 0)
28627 if ac_fn_c_try_run "$LINENO"; then :
28628 gl_cv_func_svid_putenv=yes
28630 gl_cv_func_svid_putenv=no
28632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28633 conftest.$ac_objext conftest.beam conftest.$ac_ext
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
28639 $as_echo "$gl_cv_func_svid_putenv" >&6; }
28640 if test $gl_cv_func_svid_putenv = no; then
28650 gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
28657 GNULIB_PUTENV=$gl_module_indicator_condition
28661 $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
28667 if test $HAVE_SETENV$REPLACE_SETENV != 10; then
28676 gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext"
28683 GNULIB_SETENV=$gl_module_indicator_condition
28687 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
28696 $as_echo_n "checking for wchar_t... " >&6; }
28697 if test "${gt_cv_c_wchar_t+set}" = set; then :
28698 $as_echo_n "(cached) " >&6
28700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28701 /* end confdefs.h. */
28702 #include <stddef.h>
28703 wchar_t foo = (wchar_t)'\0';
28712 if ac_fn_c_try_compile "$LINENO"; then :
28713 gt_cv_c_wchar_t=yes
28717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
28720 $as_echo "$gt_cv_c_wchar_t" >&6; }
28721 if test $gt_cv_c_wchar_t = yes; then
28723 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
28729 $as_echo_n "checking for wint_t... " >&6; }
28730 if test "${gt_cv_c_wint_t+set}" = set; then :
28731 $as_echo_n "(cached) " >&6
28733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28734 /* end confdefs.h. */
28736 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28738 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28739 before <wchar.h>. */
28740 #include <stddef.h>
28744 wint_t foo = (wchar_t)'\0';
28753 if ac_fn_c_try_compile "$LINENO"; then :
28758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
28761 $as_echo "$gt_cv_c_wint_t" >&6; }
28762 if test $gt_cv_c_wint_t = yes; then
28764 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
28770 if test $REPLACE_STRERROR = 1; then
28779 gltests_LIBOBJS="$gltests_LIBOBJS strerror.$ac_objext"
28782 cat >>confdefs.h <<_ACEOF
28783 #define REPLACE_STRERROR $REPLACE_STRERROR
28791 GNULIB_STRERROR=$gl_module_indicator_condition
28795 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28805 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
28806 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
28807 # irrelevant for anonymous mappings.
28808 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
28809 if test "x$ac_cv_func_mmap" = x""yes; then :
28816 # Try to allow MAP_ANONYMOUS.
28817 gl_have_mmap_anonymous=no
28818 if test $gl_have_mmap = yes; then
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
28820 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
28821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28822 /* end confdefs.h. */
28824 #include <sys/mman.h>
28825 #ifdef MAP_ANONYMOUS
28826 I cant identify this map.
28830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28831 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
28832 gl_have_mmap_anonymous=yes
28836 if test $gl_have_mmap_anonymous != yes; then
28837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28838 /* end confdefs.h. */
28840 #include <sys/mman.h>
28842 I cant identify this map.
28846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28847 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
28849 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
28851 gl_have_mmap_anonymous=yes
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
28857 $as_echo "$gl_have_mmap_anonymous" >&6; }
28858 if test $gl_have_mmap_anonymous = yes; then
28860 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
28871 if test $gl_threads_api = posix; then
28872 gl_save_LIBS="$LIBS"
28873 LIBS="$LIBS $LIBMULTITHREAD"
28874 for ac_func in pthread_atfork
28876 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
28877 if test "x$ac_cv_func_pthread_atfork" = x""yes; then :
28878 cat >>confdefs.h <<_ACEOF
28879 #define HAVE_PTHREAD_ATFORK 1
28885 LIBS="$gl_save_LIBS"
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
28892 $as_echo_n "checking for a traditional french locale... " >&6; }
28893 if test "${gt_cv_locale_fr+set}" = set; then :
28894 $as_echo_n "(cached) " >&6
28897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28898 /* end confdefs.h. */
28900 #include <locale.h>
28902 #if HAVE_LANGINFO_CODESET
28903 # include <langinfo.h>
28905 #include <stdlib.h>
28906 #include <string.h>
28910 /* Check whether the given locale name is recognized by the system. */
28911 if (setlocale (LC_ALL, "") == NULL) return 1;
28912 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28913 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28914 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28915 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28916 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28917 some unit tests fail. */
28918 #if HAVE_LANGINFO_CODESET
28920 const char *cs = nl_langinfo (CODESET);
28921 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28926 /* On Cygwin, avoid locale names without encoding suffix, because the
28927 locale_charset() function relies on the encoding suffix. Note that
28928 LC_ALL is set on the command line. */
28929 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28931 /* Check whether in the abbreviation of the second month, the second
28932 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
28933 one byte long. This excludes the UTF-8 encoding. */
28934 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28935 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
28936 /* Check whether the decimal separator is a comma.
28937 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28938 are nl_langinfo(RADIXCHAR) are both ".". */
28939 if (localeconv () ->decimal_point[0] != ',') return 1;
28944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28945 (eval $ac_link) 2>&5
28947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28948 test $ac_status = 0; } && test -s conftest$ac_exeext; then
28949 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28950 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
28951 # configure script would override the LC_ALL setting. Likewise for
28952 # LC_CTYPE, which is also set at the beginning of the configure script.
28953 # Test for the usual locale name.
28954 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28955 gt_cv_locale_fr=fr_FR
28957 # Test for the locale name with explicit encoding suffix.
28958 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28959 gt_cv_locale_fr=fr_FR.ISO-8859-1
28961 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
28962 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28963 gt_cv_locale_fr=fr_FR.ISO8859-1
28965 # Test for the HP-UX locale name.
28966 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28967 gt_cv_locale_fr=fr_FR.iso88591
28969 # Test for the Solaris 7 locale name.
28970 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28974 gt_cv_locale_fr=none
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
28985 $as_echo "$gt_cv_locale_fr" >&6; }
28986 LOCALE_FR=$gt_cv_locale_fr
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
28992 $as_echo_n "checking for a french Unicode locale... " >&6; }
28993 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
28994 $as_echo_n "(cached) " >&6
28997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998 /* end confdefs.h. */
29000 #include <locale.h>
29002 #if HAVE_LANGINFO_CODESET
29003 # include <langinfo.h>
29005 #include <stdlib.h>
29006 #include <string.h>
29010 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
29011 imitates locale dependent behaviour by looking at the environment
29012 variables, and all locales use the UTF-8 encoding. */
29013 #if !(defined __BEOS__ || defined __HAIKU__)
29014 /* Check whether the given locale name is recognized by the system. */
29015 if (setlocale (LC_ALL, "") == NULL) return 1;
29016 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29017 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29018 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29019 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29020 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29021 some unit tests fail. */
29022 # if HAVE_LANGINFO_CODESET
29024 const char *cs = nl_langinfo (CODESET);
29025 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29030 /* On Cygwin, avoid locale names without encoding suffix, because the
29031 locale_charset() function relies on the encoding suffix. Note that
29032 LC_ALL is set on the command line. */
29033 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29035 /* Check whether in the abbreviation of the second month, the second
29036 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29037 two bytes long, with UTF-8 encoding. */
29038 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29039 if (strftime (buf, sizeof (buf), "%b", &t) < 4
29040 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29043 /* Check whether the decimal separator is a comma.
29044 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29045 are nl_langinfo(RADIXCHAR) are both ".". */
29046 if (localeconv () ->decimal_point[0] != ',') return 1;
29051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29052 (eval $ac_link) 2>&5
29054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29055 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29056 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29057 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29058 # configure script would override the LC_ALL setting. Likewise for
29059 # LC_CTYPE, which is also set at the beginning of the configure script.
29060 # Test for the usual locale name.
29061 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29062 gt_cv_locale_fr_utf8=fr_FR
29064 # Test for the locale name with explicit encoding suffix.
29065 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29066 gt_cv_locale_fr_utf8=fr_FR.UTF-8
29068 # Test for the Solaris 7 locale name.
29069 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29070 gt_cv_locale_fr_utf8=fr.UTF-8
29073 gt_cv_locale_fr_utf8=none
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29082 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29083 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
29090 $as_echo_n "checking for a traditional japanese locale... " >&6; }
29091 if test "${gt_cv_locale_ja+set}" = set; then :
29092 $as_echo_n "(cached) " >&6
29095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29096 /* end confdefs.h. */
29098 #include <locale.h>
29100 #if HAVE_LANGINFO_CODESET
29101 # include <langinfo.h>
29103 #include <stdlib.h>
29104 #include <string.h>
29110 /* Check whether the given locale name is recognized by the system. */
29111 if (setlocale (LC_ALL, "") == NULL) return 1;
29112 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29113 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29114 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29115 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29116 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29117 some unit tests fail. */
29118 #if HAVE_LANGINFO_CODESET
29120 const char *cs = nl_langinfo (CODESET);
29121 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29126 /* On Cygwin, avoid locale names without encoding suffix, because the
29127 locale_charset() function relies on the encoding suffix. Note that
29128 LC_ALL is set on the command line. */
29129 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29131 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
29132 on Cygwin 1.5.x. */
29133 if (MB_CUR_MAX == 1)
29135 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
29136 This excludes the UTF-8 encoding. */
29137 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29138 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
29139 for (p = buf; *p != '\0'; p++)
29140 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
29146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29147 (eval $ac_link) 2>&5
29149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29150 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29151 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29152 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29153 # configure script would override the LC_ALL setting. Likewise for
29154 # LC_CTYPE, which is also set at the beginning of the configure script.
29155 # Test for the AIX locale name.
29156 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29157 gt_cv_locale_ja=ja_JP
29159 # Test for the locale name with explicit encoding suffix.
29160 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29161 gt_cv_locale_ja=ja_JP.EUC-JP
29163 # Test for the HP-UX, OSF/1, NetBSD locale name.
29164 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29165 gt_cv_locale_ja=ja_JP.eucJP
29167 # Test for the IRIX, FreeBSD locale name.
29168 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29169 gt_cv_locale_ja=ja_JP.EUC
29171 # Test for the Solaris 7 locale name.
29172 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29175 # Special test for NetBSD 1.6.
29176 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
29177 gt_cv_locale_ja=ja_JP.eucJP
29180 gt_cv_locale_ja=none
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
29192 $as_echo "$gt_cv_locale_ja" >&6; }
29193 LOCALE_JA=$gt_cv_locale_ja
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
29199 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
29200 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
29201 $as_echo_n "(cached) " >&6
29204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29205 /* end confdefs.h. */
29207 #include <locale.h>
29209 #if HAVE_LANGINFO_CODESET
29210 # include <langinfo.h>
29212 #include <stdlib.h>
29213 #include <string.h>
29217 /* On BeOS, locales are not implemented in libc. Rather, libintl
29218 imitates locale dependent behaviour by looking at the environment
29219 variables, and all locales use the UTF-8 encoding. But BeOS does not
29220 implement the Turkish upper-/lowercase mappings. Therefore, let this
29221 program return 1 on BeOS. */
29222 /* Check whether the given locale name is recognized by the system. */
29223 if (setlocale (LC_ALL, "") == NULL) return 1;
29224 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29225 On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
29226 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29227 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29228 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29229 some unit tests fail. */
29230 #if HAVE_LANGINFO_CODESET
29232 const char *cs = nl_langinfo (CODESET);
29233 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29238 /* On Cygwin, avoid locale names without encoding suffix, because the
29239 locale_charset() function relies on the encoding suffix. Note that
29240 LC_ALL is set on the command line. */
29241 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29243 /* Check whether in the abbreviation of the eighth month, the second
29244 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
29245 two bytes long, with UTF-8 encoding. */
29246 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
29247 if (strftime (buf, sizeof (buf), "%b", &t) < 4
29248 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
29250 /* Check whether the upper-/lowercase mappings are as expected for
29252 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
29253 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
29259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29260 (eval $ac_link) 2>&5
29262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29263 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29264 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29265 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29266 # configure script would override the LC_ALL setting. Likewise for
29267 # LC_CTYPE, which is also set at the beginning of the configure script.
29268 # Test for the usual locale name.
29269 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29270 gt_cv_locale_tr_utf8=tr_TR
29272 # Test for the locale name with explicit encoding suffix.
29273 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29274 gt_cv_locale_tr_utf8=tr_TR.UTF-8
29276 # Test for the Solaris 7 locale name.
29277 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29278 gt_cv_locale_tr_utf8=tr.UTF-8
29281 gt_cv_locale_tr_utf8=none
29286 gt_cv_locale_tr_utf8=none
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
29292 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
29293 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
29300 $as_echo_n "checking for a transitional chinese locale... " >&6; }
29301 if test "${gt_cv_locale_zh_CN+set}" = set; then :
29302 $as_echo_n "(cached) " >&6
29305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29306 /* end confdefs.h. */
29308 #include <locale.h>
29309 #include <stdlib.h>
29311 #if HAVE_LANGINFO_CODESET
29312 # include <langinfo.h>
29314 #include <stdlib.h>
29315 #include <string.h>
29321 /* Check whether the given locale name is recognized by the system. */
29322 if (setlocale (LC_ALL, "") == NULL) return 1;
29323 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29324 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29325 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29326 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29327 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29328 some unit tests fail. */
29329 #if HAVE_LANGINFO_CODESET
29331 const char *cs = nl_langinfo (CODESET);
29332 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29337 /* On Cygwin, avoid locale names without encoding suffix, because the
29338 locale_charset() function relies on the encoding suffix. Note that
29339 LC_ALL is set on the command line. */
29340 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29342 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
29343 This excludes the UTF-8 encoding. */
29344 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29345 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
29346 for (p = buf; *p != '\0'; p++)
29347 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
29349 /* Check whether a typical GB18030 multibyte sequence is recognized as a
29350 single wide character. This excludes the GB2312 and GBK encodings. */
29351 if (mblen ("\203\062\332\066", 5) != 4)
29357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29358 (eval $ac_link) 2>&5
29360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29361 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29362 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29363 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29364 # configure script would override the LC_ALL setting. Likewise for
29365 # LC_CTYPE, which is also set at the beginning of the configure script.
29366 # Test for the locale name without encoding suffix.
29367 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29368 gt_cv_locale_zh_CN=zh_CN
29370 # Test for the locale name with explicit encoding suffix.
29371 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29372 gt_cv_locale_zh_CN=zh_CN.GB18030
29375 gt_cv_locale_zh_CN=none
29379 # If there was a link error, due to mblen(), the system is so old that
29380 # it certainly doesn't have a chinese locale.
29381 gt_cv_locale_zh_CN=none
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
29387 $as_echo "$gt_cv_locale_zh_CN" >&6; }
29388 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29395 $as_echo_n "checking for a traditional french locale... " >&6; }
29396 if test "${gt_cv_locale_fr+set}" = set; then :
29397 $as_echo_n "(cached) " >&6
29400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29401 /* end confdefs.h. */
29403 #include <locale.h>
29405 #if HAVE_LANGINFO_CODESET
29406 # include <langinfo.h>
29408 #include <stdlib.h>
29409 #include <string.h>
29413 /* Check whether the given locale name is recognized by the system. */
29414 if (setlocale (LC_ALL, "") == NULL) return 1;
29415 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29416 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29417 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29418 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29419 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29420 some unit tests fail. */
29421 #if HAVE_LANGINFO_CODESET
29423 const char *cs = nl_langinfo (CODESET);
29424 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29429 /* On Cygwin, avoid locale names without encoding suffix, because the
29430 locale_charset() function relies on the encoding suffix. Note that
29431 LC_ALL is set on the command line. */
29432 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29434 /* Check whether in the abbreviation of the second month, the second
29435 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
29436 one byte long. This excludes the UTF-8 encoding. */
29437 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29438 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
29439 /* Check whether the decimal separator is a comma.
29440 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29441 are nl_langinfo(RADIXCHAR) are both ".". */
29442 if (localeconv () ->decimal_point[0] != ',') return 1;
29447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29448 (eval $ac_link) 2>&5
29450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29451 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29452 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29453 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29454 # configure script would override the LC_ALL setting. Likewise for
29455 # LC_CTYPE, which is also set at the beginning of the configure script.
29456 # Test for the usual locale name.
29457 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29458 gt_cv_locale_fr=fr_FR
29460 # Test for the locale name with explicit encoding suffix.
29461 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29462 gt_cv_locale_fr=fr_FR.ISO-8859-1
29464 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
29465 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29466 gt_cv_locale_fr=fr_FR.ISO8859-1
29468 # Test for the HP-UX locale name.
29469 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29470 gt_cv_locale_fr=fr_FR.iso88591
29472 # Test for the Solaris 7 locale name.
29473 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29477 gt_cv_locale_fr=none
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
29488 $as_echo "$gt_cv_locale_fr" >&6; }
29489 LOCALE_FR=$gt_cv_locale_fr
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
29495 $as_echo_n "checking for a french Unicode locale... " >&6; }
29496 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
29497 $as_echo_n "(cached) " >&6
29500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29501 /* end confdefs.h. */
29503 #include <locale.h>
29505 #if HAVE_LANGINFO_CODESET
29506 # include <langinfo.h>
29508 #include <stdlib.h>
29509 #include <string.h>
29513 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
29514 imitates locale dependent behaviour by looking at the environment
29515 variables, and all locales use the UTF-8 encoding. */
29516 #if !(defined __BEOS__ || defined __HAIKU__)
29517 /* Check whether the given locale name is recognized by the system. */
29518 if (setlocale (LC_ALL, "") == NULL) return 1;
29519 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29520 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29521 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29522 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29523 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29524 some unit tests fail. */
29525 # if HAVE_LANGINFO_CODESET
29527 const char *cs = nl_langinfo (CODESET);
29528 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29533 /* On Cygwin, avoid locale names without encoding suffix, because the
29534 locale_charset() function relies on the encoding suffix. Note that
29535 LC_ALL is set on the command line. */
29536 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29538 /* Check whether in the abbreviation of the second month, the second
29539 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29540 two bytes long, with UTF-8 encoding. */
29541 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29542 if (strftime (buf, sizeof (buf), "%b", &t) < 4
29543 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29546 /* Check whether the decimal separator is a comma.
29547 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29548 are nl_langinfo(RADIXCHAR) are both ".". */
29549 if (localeconv () ->decimal_point[0] != ',') return 1;
29554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29555 (eval $ac_link) 2>&5
29557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29558 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29559 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29560 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29561 # configure script would override the LC_ALL setting. Likewise for
29562 # LC_CTYPE, which is also set at the beginning of the configure script.
29563 # Test for the usual locale name.
29564 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29565 gt_cv_locale_fr_utf8=fr_FR
29567 # Test for the locale name with explicit encoding suffix.
29568 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29569 gt_cv_locale_fr_utf8=fr_FR.UTF-8
29571 # Test for the Solaris 7 locale name.
29572 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29573 gt_cv_locale_fr_utf8=fr.UTF-8
29576 gt_cv_locale_fr_utf8=none
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29585 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29586 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29593 $as_echo_n "checking for a traditional french locale... " >&6; }
29594 if test "${gt_cv_locale_fr+set}" = set; then :
29595 $as_echo_n "(cached) " >&6
29598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29599 /* end confdefs.h. */
29601 #include <locale.h>
29603 #if HAVE_LANGINFO_CODESET
29604 # include <langinfo.h>
29606 #include <stdlib.h>
29607 #include <string.h>
29611 /* Check whether the given locale name is recognized by the system. */
29612 if (setlocale (LC_ALL, "") == NULL) return 1;
29613 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29614 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29615 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29616 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29617 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29618 some unit tests fail. */
29619 #if HAVE_LANGINFO_CODESET
29621 const char *cs = nl_langinfo (CODESET);
29622 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29627 /* On Cygwin, avoid locale names without encoding suffix, because the
29628 locale_charset() function relies on the encoding suffix. Note that
29629 LC_ALL is set on the command line. */
29630 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29632 /* Check whether in the abbreviation of the second month, the second
29633 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
29634 one byte long. This excludes the UTF-8 encoding. */
29635 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29636 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
29637 /* Check whether the decimal separator is a comma.
29638 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29639 are nl_langinfo(RADIXCHAR) are both ".". */
29640 if (localeconv () ->decimal_point[0] != ',') return 1;
29645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29646 (eval $ac_link) 2>&5
29648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29649 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29650 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29651 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29652 # configure script would override the LC_ALL setting. Likewise for
29653 # LC_CTYPE, which is also set at the beginning of the configure script.
29654 # Test for the usual locale name.
29655 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29656 gt_cv_locale_fr=fr_FR
29658 # Test for the locale name with explicit encoding suffix.
29659 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29660 gt_cv_locale_fr=fr_FR.ISO-8859-1
29662 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
29663 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29664 gt_cv_locale_fr=fr_FR.ISO8859-1
29666 # Test for the HP-UX locale name.
29667 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29668 gt_cv_locale_fr=fr_FR.iso88591
29670 # Test for the Solaris 7 locale name.
29671 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29675 gt_cv_locale_fr=none
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
29686 $as_echo "$gt_cv_locale_fr" >&6; }
29687 LOCALE_FR=$gt_cv_locale_fr
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
29693 $as_echo_n "checking for a french Unicode locale... " >&6; }
29694 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
29695 $as_echo_n "(cached) " >&6
29698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29699 /* end confdefs.h. */
29701 #include <locale.h>
29703 #if HAVE_LANGINFO_CODESET
29704 # include <langinfo.h>
29706 #include <stdlib.h>
29707 #include <string.h>
29711 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
29712 imitates locale dependent behaviour by looking at the environment
29713 variables, and all locales use the UTF-8 encoding. */
29714 #if !(defined __BEOS__ || defined __HAIKU__)
29715 /* Check whether the given locale name is recognized by the system. */
29716 if (setlocale (LC_ALL, "") == NULL) return 1;
29717 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29718 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29719 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29720 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29721 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29722 some unit tests fail. */
29723 # if HAVE_LANGINFO_CODESET
29725 const char *cs = nl_langinfo (CODESET);
29726 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29731 /* On Cygwin, avoid locale names without encoding suffix, because the
29732 locale_charset() function relies on the encoding suffix. Note that
29733 LC_ALL is set on the command line. */
29734 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29736 /* Check whether in the abbreviation of the second month, the second
29737 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29738 two bytes long, with UTF-8 encoding. */
29739 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29740 if (strftime (buf, sizeof (buf), "%b", &t) < 4
29741 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29744 /* Check whether the decimal separator is a comma.
29745 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29746 are nl_langinfo(RADIXCHAR) are both ".". */
29747 if (localeconv () ->decimal_point[0] != ',') return 1;
29752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29753 (eval $ac_link) 2>&5
29755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29756 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29757 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29758 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29759 # configure script would override the LC_ALL setting. Likewise for
29760 # LC_CTYPE, which is also set at the beginning of the configure script.
29761 # Test for the usual locale name.
29762 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29763 gt_cv_locale_fr_utf8=fr_FR
29765 # Test for the locale name with explicit encoding suffix.
29766 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29767 gt_cv_locale_fr_utf8=fr_FR.UTF-8
29769 # Test for the Solaris 7 locale name.
29770 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29771 gt_cv_locale_fr_utf8=fr.UTF-8
29774 gt_cv_locale_fr_utf8=none
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29783 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29784 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29795 $as_echo_n "checking for a traditional french locale... " >&6; }
29796 if test "${gt_cv_locale_fr+set}" = set; then :
29797 $as_echo_n "(cached) " >&6
29800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29801 /* end confdefs.h. */
29803 #include <locale.h>
29805 #if HAVE_LANGINFO_CODESET
29806 # include <langinfo.h>
29808 #include <stdlib.h>
29809 #include <string.h>
29813 /* Check whether the given locale name is recognized by the system. */
29814 if (setlocale (LC_ALL, "") == NULL) return 1;
29815 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29816 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29817 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29818 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29819 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29820 some unit tests fail. */
29821 #if HAVE_LANGINFO_CODESET
29823 const char *cs = nl_langinfo (CODESET);
29824 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29829 /* On Cygwin, avoid locale names without encoding suffix, because the
29830 locale_charset() function relies on the encoding suffix. Note that
29831 LC_ALL is set on the command line. */
29832 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29834 /* Check whether in the abbreviation of the second month, the second
29835 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
29836 one byte long. This excludes the UTF-8 encoding. */
29837 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29838 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
29839 /* Check whether the decimal separator is a comma.
29840 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29841 are nl_langinfo(RADIXCHAR) are both ".". */
29842 if (localeconv () ->decimal_point[0] != ',') return 1;
29847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29848 (eval $ac_link) 2>&5
29850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29851 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29852 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29853 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29854 # configure script would override the LC_ALL setting. Likewise for
29855 # LC_CTYPE, which is also set at the beginning of the configure script.
29856 # Test for the usual locale name.
29857 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29858 gt_cv_locale_fr=fr_FR
29860 # Test for the locale name with explicit encoding suffix.
29861 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29862 gt_cv_locale_fr=fr_FR.ISO-8859-1
29864 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
29865 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29866 gt_cv_locale_fr=fr_FR.ISO8859-1
29868 # Test for the HP-UX locale name.
29869 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29870 gt_cv_locale_fr=fr_FR.iso88591
29872 # Test for the Solaris 7 locale name.
29873 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29877 gt_cv_locale_fr=none
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
29888 $as_echo "$gt_cv_locale_fr" >&6; }
29889 LOCALE_FR=$gt_cv_locale_fr
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
29895 $as_echo_n "checking for a french Unicode locale... " >&6; }
29896 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
29897 $as_echo_n "(cached) " >&6
29900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29901 /* end confdefs.h. */
29903 #include <locale.h>
29905 #if HAVE_LANGINFO_CODESET
29906 # include <langinfo.h>
29908 #include <stdlib.h>
29909 #include <string.h>
29913 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
29914 imitates locale dependent behaviour by looking at the environment
29915 variables, and all locales use the UTF-8 encoding. */
29916 #if !(defined __BEOS__ || defined __HAIKU__)
29917 /* Check whether the given locale name is recognized by the system. */
29918 if (setlocale (LC_ALL, "") == NULL) return 1;
29919 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
29920 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
29921 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
29922 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
29923 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
29924 some unit tests fail. */
29925 # if HAVE_LANGINFO_CODESET
29927 const char *cs = nl_langinfo (CODESET);
29928 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
29933 /* On Cygwin, avoid locale names without encoding suffix, because the
29934 locale_charset() function relies on the encoding suffix. Note that
29935 LC_ALL is set on the command line. */
29936 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
29938 /* Check whether in the abbreviation of the second month, the second
29939 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
29940 two bytes long, with UTF-8 encoding. */
29941 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
29942 if (strftime (buf, sizeof (buf), "%b", &t) < 4
29943 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
29946 /* Check whether the decimal separator is a comma.
29947 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
29948 are nl_langinfo(RADIXCHAR) are both ".". */
29949 if (localeconv () ->decimal_point[0] != ',') return 1;
29954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
29955 (eval $ac_link) 2>&5
29957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958 test $ac_status = 0; } && test -s conftest$ac_exeext; then
29959 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
29960 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
29961 # configure script would override the LC_ALL setting. Likewise for
29962 # LC_CTYPE, which is also set at the beginning of the configure script.
29963 # Test for the usual locale name.
29964 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29965 gt_cv_locale_fr_utf8=fr_FR
29967 # Test for the locale name with explicit encoding suffix.
29968 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29969 gt_cv_locale_fr_utf8=fr_FR.UTF-8
29971 # Test for the Solaris 7 locale name.
29972 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
29973 gt_cv_locale_fr_utf8=fr.UTF-8
29976 gt_cv_locale_fr_utf8=none
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
29985 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
29986 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
29992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
29993 $as_echo_n "checking for a traditional french locale... " >&6; }
29994 if test "${gt_cv_locale_fr+set}" = set; then :
29995 $as_echo_n "(cached) " >&6
29998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29999 /* end confdefs.h. */
30001 #include <locale.h>
30003 #if HAVE_LANGINFO_CODESET
30004 # include <langinfo.h>
30006 #include <stdlib.h>
30007 #include <string.h>
30011 /* Check whether the given locale name is recognized by the system. */
30012 if (setlocale (LC_ALL, "") == NULL) return 1;
30013 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30014 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30015 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30016 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30017 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30018 some unit tests fail. */
30019 #if HAVE_LANGINFO_CODESET
30021 const char *cs = nl_langinfo (CODESET);
30022 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30027 /* On Cygwin, avoid locale names without encoding suffix, because the
30028 locale_charset() function relies on the encoding suffix. Note that
30029 LC_ALL is set on the command line. */
30030 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30032 /* Check whether in the abbreviation of the second month, the second
30033 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
30034 one byte long. This excludes the UTF-8 encoding. */
30035 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30036 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
30037 /* Check whether the decimal separator is a comma.
30038 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30039 are nl_langinfo(RADIXCHAR) are both ".". */
30040 if (localeconv () ->decimal_point[0] != ',') return 1;
30045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30046 (eval $ac_link) 2>&5
30048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30050 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30051 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30052 # configure script would override the LC_ALL setting. Likewise for
30053 # LC_CTYPE, which is also set at the beginning of the configure script.
30054 # Test for the usual locale name.
30055 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30056 gt_cv_locale_fr=fr_FR
30058 # Test for the locale name with explicit encoding suffix.
30059 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30060 gt_cv_locale_fr=fr_FR.ISO-8859-1
30062 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
30063 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30064 gt_cv_locale_fr=fr_FR.ISO8859-1
30066 # Test for the HP-UX locale name.
30067 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30068 gt_cv_locale_fr=fr_FR.iso88591
30070 # Test for the Solaris 7 locale name.
30071 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30075 gt_cv_locale_fr=none
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
30086 $as_echo "$gt_cv_locale_fr" >&6; }
30087 LOCALE_FR=$gt_cv_locale_fr
30092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30093 $as_echo_n "checking for a french Unicode locale... " >&6; }
30094 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
30095 $as_echo_n "(cached) " >&6
30098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30099 /* end confdefs.h. */
30101 #include <locale.h>
30103 #if HAVE_LANGINFO_CODESET
30104 # include <langinfo.h>
30106 #include <stdlib.h>
30107 #include <string.h>
30111 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
30112 imitates locale dependent behaviour by looking at the environment
30113 variables, and all locales use the UTF-8 encoding. */
30114 #if !(defined __BEOS__ || defined __HAIKU__)
30115 /* Check whether the given locale name is recognized by the system. */
30116 if (setlocale (LC_ALL, "") == NULL) return 1;
30117 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30118 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30119 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30120 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30121 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30122 some unit tests fail. */
30123 # if HAVE_LANGINFO_CODESET
30125 const char *cs = nl_langinfo (CODESET);
30126 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30131 /* On Cygwin, avoid locale names without encoding suffix, because the
30132 locale_charset() function relies on the encoding suffix. Note that
30133 LC_ALL is set on the command line. */
30134 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30136 /* Check whether in the abbreviation of the second month, the second
30137 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30138 two bytes long, with UTF-8 encoding. */
30139 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30140 if (strftime (buf, sizeof (buf), "%b", &t) < 4
30141 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30144 /* Check whether the decimal separator is a comma.
30145 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30146 are nl_langinfo(RADIXCHAR) are both ".". */
30147 if (localeconv () ->decimal_point[0] != ',') return 1;
30152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30153 (eval $ac_link) 2>&5
30155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30156 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30157 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30158 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30159 # configure script would override the LC_ALL setting. Likewise for
30160 # LC_CTYPE, which is also set at the beginning of the configure script.
30161 # Test for the usual locale name.
30162 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30163 gt_cv_locale_fr_utf8=fr_FR
30165 # Test for the locale name with explicit encoding suffix.
30166 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30167 gt_cv_locale_fr_utf8=fr_FR.UTF-8
30169 # Test for the Solaris 7 locale name.
30170 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30171 gt_cv_locale_fr_utf8=fr.UTF-8
30174 gt_cv_locale_fr_utf8=none
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30183 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30184 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
30191 $as_echo_n "checking for a traditional french locale... " >&6; }
30192 if test "${gt_cv_locale_fr+set}" = set; then :
30193 $as_echo_n "(cached) " >&6
30196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30197 /* end confdefs.h. */
30199 #include <locale.h>
30201 #if HAVE_LANGINFO_CODESET
30202 # include <langinfo.h>
30204 #include <stdlib.h>
30205 #include <string.h>
30209 /* Check whether the given locale name is recognized by the system. */
30210 if (setlocale (LC_ALL, "") == NULL) return 1;
30211 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30212 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30213 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30214 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30215 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30216 some unit tests fail. */
30217 #if HAVE_LANGINFO_CODESET
30219 const char *cs = nl_langinfo (CODESET);
30220 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30225 /* On Cygwin, avoid locale names without encoding suffix, because the
30226 locale_charset() function relies on the encoding suffix. Note that
30227 LC_ALL is set on the command line. */
30228 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30230 /* Check whether in the abbreviation of the second month, the second
30231 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
30232 one byte long. This excludes the UTF-8 encoding. */
30233 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30234 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
30235 /* Check whether the decimal separator is a comma.
30236 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30237 are nl_langinfo(RADIXCHAR) are both ".". */
30238 if (localeconv () ->decimal_point[0] != ',') return 1;
30243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30244 (eval $ac_link) 2>&5
30246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30247 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30248 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30249 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30250 # configure script would override the LC_ALL setting. Likewise for
30251 # LC_CTYPE, which is also set at the beginning of the configure script.
30252 # Test for the usual locale name.
30253 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30254 gt_cv_locale_fr=fr_FR
30256 # Test for the locale name with explicit encoding suffix.
30257 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30258 gt_cv_locale_fr=fr_FR.ISO-8859-1
30260 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
30261 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30262 gt_cv_locale_fr=fr_FR.ISO8859-1
30264 # Test for the HP-UX locale name.
30265 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30266 gt_cv_locale_fr=fr_FR.iso88591
30268 # Test for the Solaris 7 locale name.
30269 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30273 gt_cv_locale_fr=none
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
30284 $as_echo "$gt_cv_locale_fr" >&6; }
30285 LOCALE_FR=$gt_cv_locale_fr
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30291 $as_echo_n "checking for a french Unicode locale... " >&6; }
30292 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
30293 $as_echo_n "(cached) " >&6
30296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30297 /* end confdefs.h. */
30299 #include <locale.h>
30301 #if HAVE_LANGINFO_CODESET
30302 # include <langinfo.h>
30304 #include <stdlib.h>
30305 #include <string.h>
30309 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
30310 imitates locale dependent behaviour by looking at the environment
30311 variables, and all locales use the UTF-8 encoding. */
30312 #if !(defined __BEOS__ || defined __HAIKU__)
30313 /* Check whether the given locale name is recognized by the system. */
30314 if (setlocale (LC_ALL, "") == NULL) return 1;
30315 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30316 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30317 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30318 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30319 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30320 some unit tests fail. */
30321 # if HAVE_LANGINFO_CODESET
30323 const char *cs = nl_langinfo (CODESET);
30324 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30329 /* On Cygwin, avoid locale names without encoding suffix, because the
30330 locale_charset() function relies on the encoding suffix. Note that
30331 LC_ALL is set on the command line. */
30332 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30334 /* Check whether in the abbreviation of the second month, the second
30335 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30336 two bytes long, with UTF-8 encoding. */
30337 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30338 if (strftime (buf, sizeof (buf), "%b", &t) < 4
30339 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30342 /* Check whether the decimal separator is a comma.
30343 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30344 are nl_langinfo(RADIXCHAR) are both ".". */
30345 if (localeconv () ->decimal_point[0] != ',') return 1;
30350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30351 (eval $ac_link) 2>&5
30353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30354 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30355 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30356 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30357 # configure script would override the LC_ALL setting. Likewise for
30358 # LC_CTYPE, which is also set at the beginning of the configure script.
30359 # Test for the usual locale name.
30360 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30361 gt_cv_locale_fr_utf8=fr_FR
30363 # Test for the locale name with explicit encoding suffix.
30364 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30365 gt_cv_locale_fr_utf8=fr_FR.UTF-8
30367 # Test for the Solaris 7 locale name.
30368 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30369 gt_cv_locale_fr_utf8=fr.UTF-8
30372 gt_cv_locale_fr_utf8=none
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30381 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30382 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
30389 $as_echo_n "checking for a traditional french locale... " >&6; }
30390 if test "${gt_cv_locale_fr+set}" = set; then :
30391 $as_echo_n "(cached) " >&6
30394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30395 /* end confdefs.h. */
30397 #include <locale.h>
30399 #if HAVE_LANGINFO_CODESET
30400 # include <langinfo.h>
30402 #include <stdlib.h>
30403 #include <string.h>
30407 /* Check whether the given locale name is recognized by the system. */
30408 if (setlocale (LC_ALL, "") == NULL) return 1;
30409 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30410 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30411 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30412 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30413 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30414 some unit tests fail. */
30415 #if HAVE_LANGINFO_CODESET
30417 const char *cs = nl_langinfo (CODESET);
30418 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30423 /* On Cygwin, avoid locale names without encoding suffix, because the
30424 locale_charset() function relies on the encoding suffix. Note that
30425 LC_ALL is set on the command line. */
30426 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30428 /* Check whether in the abbreviation of the second month, the second
30429 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
30430 one byte long. This excludes the UTF-8 encoding. */
30431 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30432 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
30433 /* Check whether the decimal separator is a comma.
30434 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30435 are nl_langinfo(RADIXCHAR) are both ".". */
30436 if (localeconv () ->decimal_point[0] != ',') return 1;
30441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30442 (eval $ac_link) 2>&5
30444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30445 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30446 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30447 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30448 # configure script would override the LC_ALL setting. Likewise for
30449 # LC_CTYPE, which is also set at the beginning of the configure script.
30450 # Test for the usual locale name.
30451 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30452 gt_cv_locale_fr=fr_FR
30454 # Test for the locale name with explicit encoding suffix.
30455 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30456 gt_cv_locale_fr=fr_FR.ISO-8859-1
30458 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
30459 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30460 gt_cv_locale_fr=fr_FR.ISO8859-1
30462 # Test for the HP-UX locale name.
30463 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30464 gt_cv_locale_fr=fr_FR.iso88591
30466 # Test for the Solaris 7 locale name.
30467 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30471 gt_cv_locale_fr=none
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
30482 $as_echo "$gt_cv_locale_fr" >&6; }
30483 LOCALE_FR=$gt_cv_locale_fr
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30489 $as_echo_n "checking for a french Unicode locale... " >&6; }
30490 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
30491 $as_echo_n "(cached) " >&6
30494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30495 /* end confdefs.h. */
30497 #include <locale.h>
30499 #if HAVE_LANGINFO_CODESET
30500 # include <langinfo.h>
30502 #include <stdlib.h>
30503 #include <string.h>
30507 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
30508 imitates locale dependent behaviour by looking at the environment
30509 variables, and all locales use the UTF-8 encoding. */
30510 #if !(defined __BEOS__ || defined __HAIKU__)
30511 /* Check whether the given locale name is recognized by the system. */
30512 if (setlocale (LC_ALL, "") == NULL) return 1;
30513 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30514 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30515 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30516 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30517 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30518 some unit tests fail. */
30519 # if HAVE_LANGINFO_CODESET
30521 const char *cs = nl_langinfo (CODESET);
30522 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30527 /* On Cygwin, avoid locale names without encoding suffix, because the
30528 locale_charset() function relies on the encoding suffix. Note that
30529 LC_ALL is set on the command line. */
30530 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30532 /* Check whether in the abbreviation of the second month, the second
30533 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30534 two bytes long, with UTF-8 encoding. */
30535 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30536 if (strftime (buf, sizeof (buf), "%b", &t) < 4
30537 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30540 /* Check whether the decimal separator is a comma.
30541 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30542 are nl_langinfo(RADIXCHAR) are both ".". */
30543 if (localeconv () ->decimal_point[0] != ',') return 1;
30548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30549 (eval $ac_link) 2>&5
30551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30552 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30553 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30554 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
30555 # configure script would override the LC_ALL setting. Likewise for
30556 # LC_CTYPE, which is also set at the beginning of the configure script.
30557 # Test for the usual locale name.
30558 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30559 gt_cv_locale_fr_utf8=fr_FR
30561 # Test for the locale name with explicit encoding suffix.
30562 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30563 gt_cv_locale_fr_utf8=fr_FR.UTF-8
30565 # Test for the Solaris 7 locale name.
30566 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30567 gt_cv_locale_fr_utf8=fr.UTF-8
30570 gt_cv_locale_fr_utf8=none
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30579 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30580 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30589 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30590 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30591 # irrelevant for anonymous mappings.
30592 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30593 if test "x$ac_cv_func_mmap" = x""yes; then :
30600 # Try to allow MAP_ANONYMOUS.
30601 gl_have_mmap_anonymous=no
30602 if test $gl_have_mmap = yes; then
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30604 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30606 /* end confdefs.h. */
30608 #include <sys/mman.h>
30609 #ifdef MAP_ANONYMOUS
30610 I cant identify this map.
30614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30615 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30616 gl_have_mmap_anonymous=yes
30620 if test $gl_have_mmap_anonymous != yes; then
30621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30622 /* end confdefs.h. */
30624 #include <sys/mman.h>
30626 I cant identify this map.
30630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30631 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30633 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30635 gl_have_mmap_anonymous=yes
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30641 $as_echo "$gl_have_mmap_anonymous" >&6; }
30642 if test $gl_have_mmap_anonymous = yes; then
30644 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30657 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30658 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30659 # irrelevant for anonymous mappings.
30660 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30661 if test "x$ac_cv_func_mmap" = x""yes; then :
30668 # Try to allow MAP_ANONYMOUS.
30669 gl_have_mmap_anonymous=no
30670 if test $gl_have_mmap = yes; then
30671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30672 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30674 /* end confdefs.h. */
30676 #include <sys/mman.h>
30677 #ifdef MAP_ANONYMOUS
30678 I cant identify this map.
30682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30683 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30684 gl_have_mmap_anonymous=yes
30688 if test $gl_have_mmap_anonymous != yes; then
30689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30690 /* end confdefs.h. */
30692 #include <sys/mman.h>
30694 I cant identify this map.
30698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30699 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30701 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30703 gl_have_mmap_anonymous=yes
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30709 $as_echo "$gl_have_mmap_anonymous" >&6; }
30710 if test $gl_have_mmap_anonymous = yes; then
30712 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30725 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30726 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30727 # irrelevant for anonymous mappings.
30728 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30729 if test "x$ac_cv_func_mmap" = x""yes; then :
30736 # Try to allow MAP_ANONYMOUS.
30737 gl_have_mmap_anonymous=no
30738 if test $gl_have_mmap = yes; then
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30740 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30742 /* end confdefs.h. */
30744 #include <sys/mman.h>
30745 #ifdef MAP_ANONYMOUS
30746 I cant identify this map.
30750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30751 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30752 gl_have_mmap_anonymous=yes
30756 if test $gl_have_mmap_anonymous != yes; then
30757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30758 /* end confdefs.h. */
30760 #include <sys/mman.h>
30762 I cant identify this map.
30766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30767 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30769 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30771 gl_have_mmap_anonymous=yes
30776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30777 $as_echo "$gl_have_mmap_anonymous" >&6; }
30778 if test $gl_have_mmap_anonymous = yes; then
30780 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30793 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30794 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30795 # irrelevant for anonymous mappings.
30796 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30797 if test "x$ac_cv_func_mmap" = x""yes; then :
30804 # Try to allow MAP_ANONYMOUS.
30805 gl_have_mmap_anonymous=no
30806 if test $gl_have_mmap = yes; then
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30808 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30810 /* end confdefs.h. */
30812 #include <sys/mman.h>
30813 #ifdef MAP_ANONYMOUS
30814 I cant identify this map.
30818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30819 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30820 gl_have_mmap_anonymous=yes
30824 if test $gl_have_mmap_anonymous != yes; then
30825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30826 /* end confdefs.h. */
30828 #include <sys/mman.h>
30830 I cant identify this map.
30834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30835 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30837 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30839 gl_have_mmap_anonymous=yes
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30845 $as_echo "$gl_have_mmap_anonymous" >&6; }
30846 if test $gl_have_mmap_anonymous = yes; then
30848 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30861 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30862 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30863 # irrelevant for anonymous mappings.
30864 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30865 if test "x$ac_cv_func_mmap" = x""yes; then :
30872 # Try to allow MAP_ANONYMOUS.
30873 gl_have_mmap_anonymous=no
30874 if test $gl_have_mmap = yes; then
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30876 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30878 /* end confdefs.h. */
30880 #include <sys/mman.h>
30881 #ifdef MAP_ANONYMOUS
30882 I cant identify this map.
30886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30887 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30888 gl_have_mmap_anonymous=yes
30892 if test $gl_have_mmap_anonymous != yes; then
30893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30894 /* end confdefs.h. */
30896 #include <sys/mman.h>
30898 I cant identify this map.
30902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30903 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30905 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30907 gl_have_mmap_anonymous=yes
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30913 $as_echo "$gl_have_mmap_anonymous" >&6; }
30914 if test $gl_have_mmap_anonymous = yes; then
30916 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30929 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30930 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30931 # irrelevant for anonymous mappings.
30932 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
30933 if test "x$ac_cv_func_mmap" = x""yes; then :
30940 # Try to allow MAP_ANONYMOUS.
30941 gl_have_mmap_anonymous=no
30942 if test $gl_have_mmap = yes; then
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
30944 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
30945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30946 /* end confdefs.h. */
30948 #include <sys/mman.h>
30949 #ifdef MAP_ANONYMOUS
30950 I cant identify this map.
30954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30955 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30956 gl_have_mmap_anonymous=yes
30960 if test $gl_have_mmap_anonymous != yes; then
30961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30962 /* end confdefs.h. */
30964 #include <sys/mman.h>
30966 I cant identify this map.
30970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30971 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
30973 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
30975 gl_have_mmap_anonymous=yes
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
30981 $as_echo "$gl_have_mmap_anonymous" >&6; }
30982 if test $gl_have_mmap_anonymous = yes; then
30984 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
30997 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
30998 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
30999 # irrelevant for anonymous mappings.
31000 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31001 if test "x$ac_cv_func_mmap" = x""yes; then :
31008 # Try to allow MAP_ANONYMOUS.
31009 gl_have_mmap_anonymous=no
31010 if test $gl_have_mmap = yes; then
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31012 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31014 /* end confdefs.h. */
31016 #include <sys/mman.h>
31017 #ifdef MAP_ANONYMOUS
31018 I cant identify this map.
31022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31023 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31024 gl_have_mmap_anonymous=yes
31028 if test $gl_have_mmap_anonymous != yes; then
31029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31030 /* end confdefs.h. */
31032 #include <sys/mman.h>
31034 I cant identify this map.
31038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31039 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31041 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31043 gl_have_mmap_anonymous=yes
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31049 $as_echo "$gl_have_mmap_anonymous" >&6; }
31050 if test $gl_have_mmap_anonymous = yes; then
31052 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31065 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31066 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31067 # irrelevant for anonymous mappings.
31068 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31069 if test "x$ac_cv_func_mmap" = x""yes; then :
31076 # Try to allow MAP_ANONYMOUS.
31077 gl_have_mmap_anonymous=no
31078 if test $gl_have_mmap = yes; then
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31080 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082 /* end confdefs.h. */
31084 #include <sys/mman.h>
31085 #ifdef MAP_ANONYMOUS
31086 I cant identify this map.
31090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31091 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31092 gl_have_mmap_anonymous=yes
31096 if test $gl_have_mmap_anonymous != yes; then
31097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31098 /* end confdefs.h. */
31100 #include <sys/mman.h>
31102 I cant identify this map.
31106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31107 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31109 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31111 gl_have_mmap_anonymous=yes
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31117 $as_echo "$gl_have_mmap_anonymous" >&6; }
31118 if test $gl_have_mmap_anonymous = yes; then
31120 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31133 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31134 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31135 # irrelevant for anonymous mappings.
31136 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31137 if test "x$ac_cv_func_mmap" = x""yes; then :
31144 # Try to allow MAP_ANONYMOUS.
31145 gl_have_mmap_anonymous=no
31146 if test $gl_have_mmap = yes; then
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31148 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31150 /* end confdefs.h. */
31152 #include <sys/mman.h>
31153 #ifdef MAP_ANONYMOUS
31154 I cant identify this map.
31158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31159 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31160 gl_have_mmap_anonymous=yes
31164 if test $gl_have_mmap_anonymous != yes; then
31165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31166 /* end confdefs.h. */
31168 #include <sys/mman.h>
31170 I cant identify this map.
31174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31175 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31177 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31179 gl_have_mmap_anonymous=yes
31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31185 $as_echo "$gl_have_mmap_anonymous" >&6; }
31186 if test $gl_have_mmap_anonymous = yes; then
31188 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31201 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31202 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31203 # irrelevant for anonymous mappings.
31204 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31205 if test "x$ac_cv_func_mmap" = x""yes; then :
31212 # Try to allow MAP_ANONYMOUS.
31213 gl_have_mmap_anonymous=no
31214 if test $gl_have_mmap = yes; then
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31216 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31218 /* end confdefs.h. */
31220 #include <sys/mman.h>
31221 #ifdef MAP_ANONYMOUS
31222 I cant identify this map.
31226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31227 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31228 gl_have_mmap_anonymous=yes
31232 if test $gl_have_mmap_anonymous != yes; then
31233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31234 /* end confdefs.h. */
31236 #include <sys/mman.h>
31238 I cant identify this map.
31242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31243 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31245 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31247 gl_have_mmap_anonymous=yes
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31253 $as_echo "$gl_have_mmap_anonymous" >&6; }
31254 if test $gl_have_mmap_anonymous = yes; then
31256 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31269 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31270 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31271 # irrelevant for anonymous mappings.
31272 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31273 if test "x$ac_cv_func_mmap" = x""yes; then :
31280 # Try to allow MAP_ANONYMOUS.
31281 gl_have_mmap_anonymous=no
31282 if test $gl_have_mmap = yes; then
31283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31284 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31286 /* end confdefs.h. */
31288 #include <sys/mman.h>
31289 #ifdef MAP_ANONYMOUS
31290 I cant identify this map.
31294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31295 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31296 gl_have_mmap_anonymous=yes
31300 if test $gl_have_mmap_anonymous != yes; then
31301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31302 /* end confdefs.h. */
31304 #include <sys/mman.h>
31306 I cant identify this map.
31310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31311 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31313 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31315 gl_have_mmap_anonymous=yes
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31321 $as_echo "$gl_have_mmap_anonymous" >&6; }
31322 if test $gl_have_mmap_anonymous = yes; then
31324 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31337 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31338 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31339 # irrelevant for anonymous mappings.
31340 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31341 if test "x$ac_cv_func_mmap" = x""yes; then :
31348 # Try to allow MAP_ANONYMOUS.
31349 gl_have_mmap_anonymous=no
31350 if test $gl_have_mmap = yes; then
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31352 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31354 /* end confdefs.h. */
31356 #include <sys/mman.h>
31357 #ifdef MAP_ANONYMOUS
31358 I cant identify this map.
31362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31363 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31364 gl_have_mmap_anonymous=yes
31368 if test $gl_have_mmap_anonymous != yes; then
31369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31370 /* end confdefs.h. */
31372 #include <sys/mman.h>
31374 I cant identify this map.
31378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31379 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31381 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31383 gl_have_mmap_anonymous=yes
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31389 $as_echo "$gl_have_mmap_anonymous" >&6; }
31390 if test $gl_have_mmap_anonymous = yes; then
31392 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31405 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31406 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31407 # irrelevant for anonymous mappings.
31408 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31409 if test "x$ac_cv_func_mmap" = x""yes; then :
31416 # Try to allow MAP_ANONYMOUS.
31417 gl_have_mmap_anonymous=no
31418 if test $gl_have_mmap = yes; then
31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31420 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31422 /* end confdefs.h. */
31424 #include <sys/mman.h>
31425 #ifdef MAP_ANONYMOUS
31426 I cant identify this map.
31430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31432 gl_have_mmap_anonymous=yes
31436 if test $gl_have_mmap_anonymous != yes; then
31437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31438 /* end confdefs.h. */
31440 #include <sys/mman.h>
31442 I cant identify this map.
31446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31447 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31449 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31451 gl_have_mmap_anonymous=yes
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31457 $as_echo "$gl_have_mmap_anonymous" >&6; }
31458 if test $gl_have_mmap_anonymous = yes; then
31460 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31473 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31474 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31475 # irrelevant for anonymous mappings.
31476 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31477 if test "x$ac_cv_func_mmap" = x""yes; then :
31484 # Try to allow MAP_ANONYMOUS.
31485 gl_have_mmap_anonymous=no
31486 if test $gl_have_mmap = yes; then
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31488 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31490 /* end confdefs.h. */
31492 #include <sys/mman.h>
31493 #ifdef MAP_ANONYMOUS
31494 I cant identify this map.
31498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31499 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31500 gl_have_mmap_anonymous=yes
31504 if test $gl_have_mmap_anonymous != yes; then
31505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31506 /* end confdefs.h. */
31508 #include <sys/mman.h>
31510 I cant identify this map.
31514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31515 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31517 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31519 gl_have_mmap_anonymous=yes
31524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31525 $as_echo "$gl_have_mmap_anonymous" >&6; }
31526 if test $gl_have_mmap_anonymous = yes; then
31528 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31541 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31542 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31543 # irrelevant for anonymous mappings.
31544 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31545 if test "x$ac_cv_func_mmap" = x""yes; then :
31552 # Try to allow MAP_ANONYMOUS.
31553 gl_have_mmap_anonymous=no
31554 if test $gl_have_mmap = yes; then
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31556 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31558 /* end confdefs.h. */
31560 #include <sys/mman.h>
31561 #ifdef MAP_ANONYMOUS
31562 I cant identify this map.
31566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31567 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31568 gl_have_mmap_anonymous=yes
31572 if test $gl_have_mmap_anonymous != yes; then
31573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31574 /* end confdefs.h. */
31576 #include <sys/mman.h>
31578 I cant identify this map.
31582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31583 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31585 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31587 gl_have_mmap_anonymous=yes
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31593 $as_echo "$gl_have_mmap_anonymous" >&6; }
31594 if test $gl_have_mmap_anonymous = yes; then
31596 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31609 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31610 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31611 # irrelevant for anonymous mappings.
31612 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31613 if test "x$ac_cv_func_mmap" = x""yes; then :
31620 # Try to allow MAP_ANONYMOUS.
31621 gl_have_mmap_anonymous=no
31622 if test $gl_have_mmap = yes; then
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31624 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31626 /* end confdefs.h. */
31628 #include <sys/mman.h>
31629 #ifdef MAP_ANONYMOUS
31630 I cant identify this map.
31634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31635 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31636 gl_have_mmap_anonymous=yes
31640 if test $gl_have_mmap_anonymous != yes; then
31641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31642 /* end confdefs.h. */
31644 #include <sys/mman.h>
31646 I cant identify this map.
31650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31651 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31653 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31655 gl_have_mmap_anonymous=yes
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31661 $as_echo "$gl_have_mmap_anonymous" >&6; }
31662 if test $gl_have_mmap_anonymous = yes; then
31664 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31677 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31678 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31679 # irrelevant for anonymous mappings.
31680 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31681 if test "x$ac_cv_func_mmap" = x""yes; then :
31688 # Try to allow MAP_ANONYMOUS.
31689 gl_have_mmap_anonymous=no
31690 if test $gl_have_mmap = yes; then
31691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31692 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31694 /* end confdefs.h. */
31696 #include <sys/mman.h>
31697 #ifdef MAP_ANONYMOUS
31698 I cant identify this map.
31702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31703 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31704 gl_have_mmap_anonymous=yes
31708 if test $gl_have_mmap_anonymous != yes; then
31709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31710 /* end confdefs.h. */
31712 #include <sys/mman.h>
31714 I cant identify this map.
31718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31719 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31721 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31723 gl_have_mmap_anonymous=yes
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31729 $as_echo "$gl_have_mmap_anonymous" >&6; }
31730 if test $gl_have_mmap_anonymous = yes; then
31732 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31745 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31746 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31747 # irrelevant for anonymous mappings.
31748 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31749 if test "x$ac_cv_func_mmap" = x""yes; then :
31756 # Try to allow MAP_ANONYMOUS.
31757 gl_have_mmap_anonymous=no
31758 if test $gl_have_mmap = yes; then
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31760 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31762 /* end confdefs.h. */
31764 #include <sys/mman.h>
31765 #ifdef MAP_ANONYMOUS
31766 I cant identify this map.
31770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31771 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31772 gl_have_mmap_anonymous=yes
31776 if test $gl_have_mmap_anonymous != yes; then
31777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31778 /* end confdefs.h. */
31780 #include <sys/mman.h>
31782 I cant identify this map.
31786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31787 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
31789 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31791 gl_have_mmap_anonymous=yes
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31797 $as_echo "$gl_have_mmap_anonymous" >&6; }
31798 if test $gl_have_mmap_anonymous = yes; then
31800 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
31811 $as_echo_n "checking for a traditional french locale... " >&6; }
31812 if test "${gt_cv_locale_fr+set}" = set; then :
31813 $as_echo_n "(cached) " >&6
31816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31817 /* end confdefs.h. */
31819 #include <locale.h>
31821 #if HAVE_LANGINFO_CODESET
31822 # include <langinfo.h>
31824 #include <stdlib.h>
31825 #include <string.h>
31829 /* Check whether the given locale name is recognized by the system. */
31830 if (setlocale (LC_ALL, "") == NULL) return 1;
31831 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
31832 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
31833 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
31834 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
31835 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
31836 some unit tests fail. */
31837 #if HAVE_LANGINFO_CODESET
31839 const char *cs = nl_langinfo (CODESET);
31840 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
31845 /* On Cygwin, avoid locale names without encoding suffix, because the
31846 locale_charset() function relies on the encoding suffix. Note that
31847 LC_ALL is set on the command line. */
31848 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
31850 /* Check whether in the abbreviation of the second month, the second
31851 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
31852 one byte long. This excludes the UTF-8 encoding. */
31853 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
31854 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
31855 /* Check whether the decimal separator is a comma.
31856 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
31857 are nl_langinfo(RADIXCHAR) are both ".". */
31858 if (localeconv () ->decimal_point[0] != ',') return 1;
31863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31864 (eval $ac_link) 2>&5
31866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31867 test $ac_status = 0; } && test -s conftest$ac_exeext; then
31868 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
31869 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
31870 # configure script would override the LC_ALL setting. Likewise for
31871 # LC_CTYPE, which is also set at the beginning of the configure script.
31872 # Test for the usual locale name.
31873 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31874 gt_cv_locale_fr=fr_FR
31876 # Test for the locale name with explicit encoding suffix.
31877 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31878 gt_cv_locale_fr=fr_FR.ISO-8859-1
31880 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
31881 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31882 gt_cv_locale_fr=fr_FR.ISO8859-1
31884 # Test for the HP-UX locale name.
31885 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31886 gt_cv_locale_fr=fr_FR.iso88591
31888 # Test for the Solaris 7 locale name.
31889 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31893 gt_cv_locale_fr=none
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
31904 $as_echo "$gt_cv_locale_fr" >&6; }
31905 LOCALE_FR=$gt_cv_locale_fr
31910 for ac_func in unsetenv
31912 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
31913 if test "x$ac_cv_func_unsetenv" = x""yes; then :
31914 cat >>confdefs.h <<_ACEOF
31915 #define HAVE_UNSETENV 1
31921 if test $ac_cv_func_unsetenv = no; then
31931 gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
31938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
31939 $as_echo_n "checking for unsetenv() return type... " >&6; }
31940 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
31941 $as_echo_n "(cached) " >&6
31943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31944 /* end confdefs.h. */
31945 #include <stdlib.h>
31950 #if defined(__STDC__) || defined(__cplusplus)
31951 int unsetenv (const char *name);
31964 if ac_fn_c_try_compile "$LINENO"; then :
31965 gt_cv_func_unsetenv_ret='int'
31967 gt_cv_func_unsetenv_ret='void'
31969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
31972 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
31973 if test $gt_cv_func_unsetenv_ret = 'void'; then
31975 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
31986 gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv works on duplicates" >&5
31991 $as_echo_n "checking whether unsetenv works on duplicates... " >&6; }
31992 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
31993 $as_echo_n "(cached) " >&6
31995 if test "$cross_compiling" = yes; then :
31996 gl_cv_func_unsetenv_works="guessing no"
31998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31999 /* end confdefs.h. */
32001 #include <stdlib.h>
32007 char entry[] = "b=2";
32008 if (putenv ((char *) "a=1")) return 1;
32009 if (putenv (entry)) return 2;
32012 if (getenv ("a")) return 3;
32018 if ac_fn_c_try_run "$LINENO"; then :
32019 gl_cv_func_unsetenv_works=yes
32021 gl_cv_func_unsetenv_works=no
32023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32024 conftest.$ac_objext conftest.beam conftest.$ac_ext
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
32029 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
32030 if test "$gl_cv_func_unsetenv_works" != yes; then
32040 gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
32048 GNULIB_UNSETENV=$gl_module_indicator_condition
32052 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
32060 if test $ac_cv_func_wctob = no; then
32073 gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
32082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
32083 $as_echo_n "checking whether wctob works... " >&6; }
32084 if test "${gl_cv_func_wctob_works+set}" = set; then :
32085 $as_echo_n "(cached) " >&6
32089 # Guess no on Solaris <= 9 and Cygwin.
32090 solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
32091 gl_cv_func_wctob_works="guessing no" ;;
32092 # Guess yes otherwise.
32093 *) gl_cv_func_wctob_works="guessing yes" ;;
32097 if test "$cross_compiling" = yes; then :
32100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32101 /* end confdefs.h. */
32103 #include <locale.h>
32106 register long global __asm__ ("%ebx");
32110 setlocale (LC_ALL, "en_US.UTF-8");
32112 global = 0x12345678;
32113 if (wctob (0x00FC) != -1)
32115 if (global != 0x12345678)
32120 if ac_fn_c_try_run "$LINENO"; then :
32123 gl_cv_func_wctob_works=no
32125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32126 conftest.$ac_objext conftest.beam conftest.$ac_ext
32131 if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
32132 if test "$cross_compiling" = yes; then :
32135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32136 /* end confdefs.h. */
32138 #include <locale.h>
32139 #include <string.h>
32143 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
32147 if (mbtowc (&wc, "\374", 1) == 1)
32148 if (wctob (wc) != (unsigned char) '\374')
32154 if ac_fn_c_try_run "$LINENO"; then :
32155 gl_cv_func_wctob_works=yes
32157 gl_cv_func_wctob_works=no
32159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32160 conftest.$ac_objext conftest.beam conftest.$ac_ext
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
32167 $as_echo "$gl_cv_func_wctob_works" >&6; }
32168 case "$gl_cv_func_wctob_works" in
32170 *) REPLACE_WCTOB=1 ;;
32172 if test $REPLACE_WCTOB = 1; then
32184 gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
32191 ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
32192 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
32194 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
32195 before <wchar.h>. */
32196 #include <stddef.h>
32202 if test "x$ac_cv_have_decl_wctob" = x""yes; then :
32208 cat >>confdefs.h <<_ACEOF
32209 #define HAVE_DECL_WCTOB $ac_have_decl
32212 if test $ac_cv_have_decl_wctob != yes; then
32224 GNULIB_WCTOB=$gl_module_indicator_condition
32228 $as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
32241 gltests_LIBOBJS="$gltests_LIBOBJS xmalloc.$ac_objext"
32255 if test $gl_threads_api = posix; then
32256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
32257 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
32258 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
32259 $as_echo_n "(cached) " >&6
32261 ac_check_lib_save_LIBS=$LIBS
32263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32264 /* end confdefs.h. */
32266 /* Override any GCC internal prototype to avoid an error.
32267 Use char because int might match the return type of a GCC
32268 builtin and then its argument prototype would still apply. */
32272 char sched_yield ();
32276 return sched_yield ();
32281 if ac_fn_c_try_link "$LINENO"; then :
32282 ac_cv_lib_rt_sched_yield=yes
32284 ac_cv_lib_rt_sched_yield=no
32286 rm -f core conftest.err conftest.$ac_objext \
32287 conftest$ac_exeext conftest.$ac_ext
32288 LIBS=$ac_check_lib_save_LIBS
32290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
32291 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
32292 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
32296 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
32297 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
32298 $as_echo_n "(cached) " >&6
32300 ac_check_lib_save_LIBS=$LIBS
32301 LIBS="-lposix4 $LIBS"
32302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32303 /* end confdefs.h. */
32305 /* Override any GCC internal prototype to avoid an error.
32306 Use char because int might match the return type of a GCC
32307 builtin and then its argument prototype would still apply. */
32311 char sched_yield ();
32315 return sched_yield ();
32320 if ac_fn_c_try_link "$LINENO"; then :
32321 ac_cv_lib_posix4_sched_yield=yes
32323 ac_cv_lib_posix4_sched_yield=no
32325 rm -f core conftest.err conftest.$ac_objext \
32326 conftest$ac_exeext conftest.$ac_ext
32327 LIBS=$ac_check_lib_save_LIBS
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
32330 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
32331 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
32350 LIBTESTS_LIBDEPS="$gltests_libdeps"
32354 if test "$enable_shared" = yes; then
32356 mingw* | cygwin*) is_woe32dll=yes ;;
32357 *) is_woe32dll=no ;;
32362 if test $is_woe32dll = yes; then
32370 if test $is_woe32dll = yes; then
32371 DLL_VARIABLE='__declspec (dllimport)'
32376 if test $is_woe32dll = yes; then
32378 $as_echo "#define WOE32DLL 1" >>confdefs.h
32382 # Check whether --enable-namespacing was given.
32383 if test "${enable_namespacing+set}" = set; then :
32384 enableval=$enable_namespacing; :
32386 enable_namespacing=yes
32389 if test "$enable_namespacing" != no; then
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
32397 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
32398 if test "${lt_cv_path_NM+set}" = set; then :
32399 $as_echo_n "(cached) " >&6
32401 if test -n "$NM"; then
32402 # Let the user override the test.
32403 lt_cv_path_NM="$NM"
32405 lt_nm_to_check="${ac_tool_prefix}nm"
32406 if test -n "$ac_tool_prefix" \
32407 && { test "$build" = "$host" \
32408 || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
32410 lt_nm_to_check="$lt_nm_to_check nm"
32412 for lt_tmp_nm in $lt_nm_to_check; do
32413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32414 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
32416 test -z "$ac_dir" && ac_dir=.
32417 tmp_nm="$ac_dir/$lt_tmp_nm"
32418 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
32419 # Check to see if the nm accepts a BSD-compat flag.
32420 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
32421 # nm: unknown option "B" ignored
32422 # Tru64's nm complains that /dev/null is an invalid object file
32423 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
32424 */dev/null* | *'Invalid file or object type'*)
32425 lt_cv_path_NM="$tmp_nm -B"
32429 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
32431 lt_cv_path_NM="$tmp_nm -p"
32435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
32436 continue # so that we can try to find one that supports BSD flags
32445 : ${lt_cv_path_NM=no}
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
32449 $as_echo "$lt_cv_path_NM" >&6; }
32450 if test "$lt_cv_path_NM" != "no"; then
32451 NM="$lt_cv_path_NM"
32453 # Didn't find any BSD compatible name lister, look for dumpbin.
32454 if test -n "$DUMPBIN"; then :
32455 # Let the user override the test.
32457 if test -n "$ac_tool_prefix"; then
32458 for ac_prog in dumpbin "link -dump"
32460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32463 $as_echo_n "checking for $ac_word... " >&6; }
32464 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
32465 $as_echo_n "(cached) " >&6
32467 if test -n "$DUMPBIN"; then
32468 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
32470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32471 for as_dir in $PATH
32474 test -z "$as_dir" && as_dir=.
32475 for ac_exec_ext in '' $ac_executable_extensions; do
32476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32477 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
32478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32487 DUMPBIN=$ac_cv_prog_DUMPBIN
32488 if test -n "$DUMPBIN"; then
32489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
32490 $as_echo "$DUMPBIN" >&6; }
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32493 $as_echo "no" >&6; }
32497 test -n "$DUMPBIN" && break
32500 if test -z "$DUMPBIN"; then
32501 ac_ct_DUMPBIN=$DUMPBIN
32502 for ac_prog in dumpbin "link -dump"
32504 # Extract the first word of "$ac_prog", so it can be a program name with args.
32505 set dummy $ac_prog; ac_word=$2
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32507 $as_echo_n "checking for $ac_word... " >&6; }
32508 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
32509 $as_echo_n "(cached) " >&6
32511 if test -n "$ac_ct_DUMPBIN"; then
32512 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
32514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32515 for as_dir in $PATH
32518 test -z "$as_dir" && as_dir=.
32519 for ac_exec_ext in '' $ac_executable_extensions; do
32520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32521 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
32522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32531 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
32532 if test -n "$ac_ct_DUMPBIN"; then
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
32534 $as_echo "$ac_ct_DUMPBIN" >&6; }
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32537 $as_echo "no" >&6; }
32541 test -n "$ac_ct_DUMPBIN" && break
32544 if test "x$ac_ct_DUMPBIN" = x; then
32547 case $cross_compiling:$ac_tool_warned in
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32551 ac_tool_warned=yes ;;
32553 DUMPBIN=$ac_ct_DUMPBIN
32557 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
32559 DUMPBIN="$DUMPBIN -symbols"
32567 if test "$DUMPBIN" != ":"; then
32571 test -z "$NM" && NM=nm
32575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
32576 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
32577 if test "${lt_cv_nm_interface+set}" = set; then :
32578 $as_echo_n "(cached) " >&6
32580 lt_cv_nm_interface="BSD nm"
32581 echo "int some_variable = 0;" > conftest.$ac_ext
32582 (eval echo "\"\$as_me:32582: $ac_compile\"" >&5)
32583 (eval "$ac_compile" 2>conftest.err)
32584 cat conftest.err >&5
32585 (eval echo "\"\$as_me:32585: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
32586 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32587 cat conftest.err >&5
32588 (eval echo "\"\$as_me:32588: output\"" >&5)
32589 cat conftest.out >&5
32590 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32591 lt_cv_nm_interface="MS dumpbin"
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
32596 $as_echo "$lt_cv_nm_interface" >&6; }
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
32599 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
32600 if test "${ac_cv_path_SED+set}" = set; then :
32601 $as_echo_n "(cached) " >&6
32603 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
32604 for ac_i in 1 2 3 4 5 6 7; do
32605 ac_script="$ac_script$as_nl$ac_script"
32607 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
32608 { ac_script=; unset ac_script;}
32609 if test -z "$SED"; then
32610 ac_path_SED_found=false
32611 # Loop through the user's path and test for each of PROGNAME-LIST
32612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32613 for as_dir in $PATH
32616 test -z "$as_dir" && as_dir=.
32617 for ac_prog in sed gsed; do
32618 for ac_exec_ext in '' $ac_executable_extensions; do
32619 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
32620 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
32621 # Check for GNU ac_path_SED and select it if it is found.
32622 # Check for GNU $ac_path_SED
32623 case `"$ac_path_SED" --version 2>&1` in
32625 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
32628 $as_echo_n 0123456789 >"conftest.in"
32631 cat "conftest.in" "conftest.in" >"conftest.tmp"
32632 mv "conftest.tmp" "conftest.in"
32633 cp "conftest.in" "conftest.nl"
32634 $as_echo '' >> "conftest.nl"
32635 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
32636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32637 as_fn_arith $ac_count + 1 && ac_count=$as_val
32638 if test $ac_count -gt ${ac_path_SED_max-0}; then
32639 # Best one so far, save it but keep looking for a better one
32640 ac_cv_path_SED="$ac_path_SED"
32641 ac_path_SED_max=$ac_count
32643 # 10*(2^10) chars as input seems more than enough
32644 test $ac_count -gt 10 && break
32646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32649 $ac_path_SED_found && break 3
32654 if test -z "$ac_cv_path_SED"; then
32655 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
32658 ac_cv_path_SED=$SED
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
32663 $as_echo "$ac_cv_path_SED" >&6; }
32664 SED="$ac_cv_path_SED"
32671 # Check for command to grab the raw symbol name followed by C symbol from nm.
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
32673 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
32674 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
32675 $as_echo_n "(cached) " >&6
32678 # These are sane defaults that work on at least a few old systems.
32679 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
32681 # Character class describing NM global symbol codes.
32682 symcode='[BCDEGRST]'
32684 # Regexp to match symbols that can be accessed directly from C.
32685 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
32687 # Transform an extracted symbol line into a proper C declaration
32688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
32690 # Transform an extracted symbol line into symbol name and symbol address
32691 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
32693 # Define system-specific variables.
32698 cygwin* | mingw* | pw32*)
32699 symcode='[ABCDGISTW]'
32701 hpux*) # Its linker distinguishes data from code symbols
32702 if test "$host_cpu" = ia64; then
32703 symcode='[ABCDEGRST]'
32705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
32706 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
32708 linux* | k*bsd*-gnu)
32709 if test "$host_cpu" = ia64; then
32710 symcode='[ABCDGIRSTW]'
32711 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
32712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
32715 irix* | nonstopux*)
32716 symcode='[BCDEGRST]'
32719 symcode='[BCDEGQRST]'
32730 sysv5* | sco5v6* | unixware* | OpenUNIX*)
32738 # Handle CRLF in mingw tool chain
32742 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
32746 # If we're using GNU nm, then use its standard symbol codes.
32747 case `$NM -V 2>&1` in
32748 *GNU* | *'with BFD'*)
32749 symcode='[ABCDGIRSTW]' ;;
32752 # Try without a prefix undercore, then with it.
32753 for ac_symprfx in "" "_"; do
32755 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
32756 symxfrm="\\1 $ac_symprfx\\2 \\2"
32758 # Write the raw and C identifiers.
32759 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
32761 # Check to see that the pipe works correctly.
32765 cat > conftest.$ac_ext <<EOF
32770 void nm_test_func(){}
32774 int main(){nm_test_var='a';nm_test_func();return(0);}
32777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
32778 (eval $ac_compile) 2>&5
32780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32781 test $ac_status = 0; }; then
32782 # Now try to grab the symbols.
32784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
32785 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
32787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32788 test $ac_status = 0; } && test -s "$nlist"; then
32789 # Try sorting and uniquifying the output.
32790 if sort "$nlist" | uniq > "$nlist"T; then
32791 mv -f "$nlist"T "$nlist"
32796 # Make sure that we snagged all the symbols we need.
32797 if grep ' nm_test_var$' "$nlist" >/dev/null; then
32798 if grep ' nm_test_func$' "$nlist" >/dev/null; then
32799 cat <<EOF > conftest.$ac_ext
32805 # Now generate the symbol file.
32806 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
32808 cat <<EOF >> conftest.$ac_ext
32809 #if defined (__STDC__) && __STDC__
32810 # define lt_ptr_t void *
32812 # define lt_ptr_t char *
32816 /* The mapping between symbol names and symbols. */
32821 lt_preloaded_symbols[] =
32824 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
32825 cat <<\EOF >> conftest.$ac_ext
32833 # Now try linking the two files.
32834 mv conftest.$ac_objext conftstm.$ac_objext
32835 lt_save_LIBS="$LIBS"
32836 lt_save_CFLAGS="$CFLAGS"
32837 LIBS="conftstm.$ac_objext"
32838 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
32839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32840 (eval $ac_link) 2>&5
32842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32843 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
32846 LIBS="$lt_save_LIBS"
32847 CFLAGS="$lt_save_CFLAGS"
32849 echo "cannot find nm_test_func in $nlist" >&5
32852 echo "cannot find nm_test_var in $nlist" >&5
32855 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
32858 echo "$progname: failed program was:" >&5
32859 cat conftest.$ac_ext >&5
32861 rm -rf conftest* conftst*
32863 # Do not use the global_symbol_pipe unless it works.
32864 if test "$pipe_works" = yes; then
32867 lt_cv_sys_global_symbol_pipe=
32873 if test -z "$lt_cv_sys_global_symbol_pipe"; then
32874 lt_cv_sys_global_symbol_to_cdecl=
32876 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
32877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
32878 $as_echo "failed" >&6; }
32880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
32881 $as_echo "ok" >&6; }
32886 GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
32888 if test -n "$GLOBAL_SYMBOL_PIPE"; then
32889 HAVE_GLOBAL_SYMBOL_PIPE=1
32891 HAVE_GLOBAL_SYMBOL_PIPE=
32896 for ac_prog in gawk mawk nawk awk
32898 # Extract the first word of "$ac_prog", so it can be a program name with args.
32899 set dummy $ac_prog; ac_word=$2
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32901 $as_echo_n "checking for $ac_word... " >&6; }
32902 if test "${ac_cv_prog_AWK+set}" = set; then :
32903 $as_echo_n "(cached) " >&6
32905 if test -n "$AWK"; then
32906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
32908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32909 for as_dir in $PATH
32912 test -z "$as_dir" && as_dir=.
32913 for ac_exec_ext in '' $ac_executable_extensions; do
32914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32915 ac_cv_prog_AWK="$ac_prog"
32916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32925 AWK=$ac_cv_prog_AWK
32926 if test -n "$AWK"; then
32927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
32928 $as_echo "$AWK" >&6; }
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32931 $as_echo "no" >&6; }
32935 test -n "$AWK" && break
32939 sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
32944 sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
32950 version_major=`echo "${VERSION}" | sed -n -e "$sed_extract_major"`
32951 version_minor=`echo "${VERSION}" | sed -n -e "$sed_extract_minor"`
32952 HEXVERSION=0x`$AWK 'BEGIN { printf("%02d%02d"',"$version_major","$version_minor"') }'`
32955 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
32956 # Extract the first word of "texi2dvi", so it can be a program name with args.
32957 set dummy texi2dvi; ac_word=$2
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32959 $as_echo_n "checking for $ac_word... " >&6; }
32960 if test "${ac_cv_path_TEXI2DVI+set}" = set; then :
32961 $as_echo_n "(cached) " >&6
32965 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
32968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32969 for as_dir in $PATH
32972 test -z "$as_dir" && as_dir=.
32973 for ac_exec_ext in '' $ac_executable_extensions; do
32974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32975 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
32976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32983 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$ac_aux_dir_abs/missing texi2dvi"
32987 TEXI2DVI=$ac_cv_path_TEXI2DVI
32988 if test -n "$TEXI2DVI"; then
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
32990 $as_echo "$TEXI2DVI" >&6; }
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32993 $as_echo "no" >&6; }
32997 # Extract the first word of "dvips", so it can be a program name with args.
32998 set dummy dvips; ac_word=$2
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33000 $as_echo_n "checking for $ac_word... " >&6; }
33001 if test "${ac_cv_path_DVIPS+set}" = set; then :
33002 $as_echo_n "(cached) " >&6
33006 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
33009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33010 for as_dir in $PATH
33013 test -z "$as_dir" && as_dir=.
33014 for ac_exec_ext in '' $ac_executable_extensions; do
33015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33016 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
33017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33024 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
33028 DVIPS=$ac_cv_path_DVIPS
33029 if test -n "$DVIPS"; then
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
33031 $as_echo "$DVIPS" >&6; }
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33034 $as_echo "no" >&6; }
33038 # Extract the first word of "perl", so it can be a program name with args.
33039 set dummy perl; ac_word=$2
33040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33041 $as_echo_n "checking for $ac_word... " >&6; }
33042 if test "${ac_cv_path_PERL+set}" = set; then :
33043 $as_echo_n "(cached) " >&6
33047 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33051 for as_dir in $PATH
33054 test -z "$as_dir" && as_dir=.
33055 for ac_exec_ext in '' $ac_executable_extensions; do
33056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33057 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33065 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
33069 PERL=$ac_cv_path_PERL
33070 if test -n "$PERL"; then
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33072 $as_echo "$PERL" >&6; }
33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33075 $as_echo "no" >&6; }
33080 ac_config_files="$ac_config_files Makefile"
33082 ac_config_files="$ac_config_files doc/Makefile"
33084 ac_config_files="$ac_config_files gnulib-local/Makefile"
33086 ac_config_files="$ac_config_files lib/Makefile"
33088 ac_config_files="$ac_config_files lib/exported.sh"
33090 ac_config_files="$ac_config_files lib/unistring/version.h:lib/unistring/version.in.h"
33092 ac_config_files="$ac_config_files lib/unistring/woe32dll.h:lib/unistring/woe32dll.in.h"
33094 ac_config_files="$ac_config_files tests/Makefile"
33096 cat >confcache <<\_ACEOF
33097 # This file is a shell script that caches the results of configure
33098 # tests run on this system so they can be shared between configure
33099 # scripts and configure runs, see configure's option --config-cache.
33100 # It is not useful on other systems. If it contains results you don't
33101 # want to keep, you may remove or edit it.
33103 # config.status only pays attention to the cache file if you give it
33104 # the --recheck option to rerun configure.
33106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33108 # following values.
33112 # The following way of writing the cache mishandles newlines in values,
33113 # but we know of no workaround that is simple, portable, and efficient.
33114 # So, we kill variables containing newlines.
33115 # Ultrix sh set writes to stderr and can't be redirected directly,
33116 # and sets the high bit in the cache file unless we assign to the vars.
33118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33119 eval ac_val=\$$ac_var
33123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33127 _ | IFS | as_nl) ;; #(
33128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33129 *) { eval $ac_var=; unset $ac_var;} ;;
33135 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33136 *${as_nl}ac_space=\ *)
33137 # `set' does not quote correctly, so add quotes: double-quote
33138 # substitution turns \\\\ into \\, and sed turns \\ into \.
33141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33144 # `set' quotes correctly as required by POSIX, so do not add quotes.
33145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33158 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33159 if test -w "$cache_file"; then
33160 test "x$cache_file" != "x/dev/null" &&
33161 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33162 $as_echo "$as_me: updating cache $cache_file" >&6;}
33163 cat confcache >$cache_file
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33166 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33172 # Let make expand exec_prefix.
33173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33175 DEFS=-DHAVE_CONFIG_H
33179 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33180 # 1. Remove the extension, and $U if already installed.
33181 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33182 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33184 # will be set to the directory where LIBOBJS objects are built.
33185 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33186 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33188 LIBOBJS=$ac_libobjs
33190 LTLIBOBJS=$ac_ltlibobjs
33193 if test -n "$EXEEXT"; then
33195 am__EXEEXT_FALSE='#'
33197 am__EXEEXT_TRUE='#'
33201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33202 as_fn_error "conditional \"AMDEP\" was never defined.
33203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33206 as_fn_error "conditional \"am__fastdepCC\" was never defined.
33207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33209 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
33210 as_fn_error "conditional \"WOE32\" was never defined.
33211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33213 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
33214 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
33215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33222 if test -n "$gl_LIBOBJS"; then
33223 # Remove the extension.
33224 sed_drop_objext='s/\.o$//;s/\.obj$//'
33225 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
33226 gl_libobjs="$gl_libobjs $i.$ac_objext"
33227 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
33230 gl_LIBOBJS=$gl_libobjs
33232 gl_LTLIBOBJS=$gl_ltlibobjs
33239 if test -n "$gltests_LIBOBJS"; then
33240 # Remove the extension.
33241 sed_drop_objext='s/\.o$//;s/\.obj$//'
33242 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
33243 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
33244 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
33247 gltests_LIBOBJS=$gltests_libobjs
33249 gltests_LTLIBOBJS=$gltests_ltlibobjs
33252 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
33253 as_fn_error "conditional \"WOE32DLL\" was never defined.
33254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33257 : ${CONFIG_STATUS=./config.status}
33259 ac_clean_files_save=$ac_clean_files
33260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33262 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33266 # Generated by $as_me.
33267 # Run this file to recreate the current configuration.
33268 # Compiler output produced by configure, useful for debugging
33269 # configure, is in config.log if it exists.
33272 ac_cs_recheck=false
33275 SHELL=\${CONFIG_SHELL-$SHELL}
33278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33279 ## -------------------- ##
33280 ## M4sh Initialization. ##
33281 ## -------------------- ##
33283 # Be more Bourne compatible
33284 DUALCASE=1; export DUALCASE # for MKS sh
33285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33289 # is contrary to our usage. Disable this feature.
33290 alias -g '${1+"$@"}'='"$@"'
33291 setopt NO_GLOB_SUBST
33293 case `(set -o) 2>/dev/null` in #(
33305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33306 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33309 # Prefer a ksh shell builtin over an external printf program on Solaris,
33310 # but without wasting forks for bash or zsh.
33311 if test -z "$BASH_VERSION$ZSH_VERSION" \
33312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33313 as_echo='print -r --'
33314 as_echo_n='print -rn --'
33315 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33316 as_echo='printf %s\n'
33317 as_echo_n='printf %s'
33319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33321 as_echo_n='/usr/ucb/echo -n'
33323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33324 as_echo_n_body='eval
33328 expr "X$arg" : "X\\(.*\\)$as_nl";
33329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33333 export as_echo_n_body
33334 as_echo_n='sh -c $as_echo_n_body as_echo'
33336 export as_echo_body
33337 as_echo='sh -c $as_echo_body as_echo'
33340 # The user is always right.
33341 if test "${PATH_SEPARATOR+set}" != set; then
33343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33351 # We need space, tab and new line, in precisely that order. Quoting is
33352 # there to prevent editors from complaining about space-tab.
33353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33354 # splitting by setting IFS to empty value.)
33357 # Find who we are. Look in the path if we contain no directory separator.
33359 *[\\/]* ) as_myself=$0 ;;
33360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33361 for as_dir in $PATH
33364 test -z "$as_dir" && as_dir=.
33365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33371 # We did not find ourselves, most probably we were run as `sh COMMAND'
33372 # in which case we are not to be found in the path.
33373 if test "x$as_myself" = x; then
33376 if test ! -f "$as_myself"; then
33377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33381 # Unset variables that we do not need and which cause bugs (e.g. in
33382 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33383 # suppresses any "Segmentation fault" message there. '((' could
33384 # trigger a bug in pdksh 5.2.14.
33385 for as_var in BASH_ENV ENV MAIL MAILPATH
33386 do eval test x\${$as_var+set} = xset \
33387 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33403 # as_fn_error ERROR [LINENO LOG_FD]
33404 # ---------------------------------
33405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33407 # script with status $?, using 1 if that was 0.
33410 as_status=$?; test $as_status -eq 0 && as_status=1
33412 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33415 $as_echo "$as_me: error: $1" >&2
33416 as_fn_exit $as_status
33420 # as_fn_set_status STATUS
33421 # -----------------------
33422 # Set $? to STATUS, without forking.
33423 as_fn_set_status ()
33426 } # as_fn_set_status
33428 # as_fn_exit STATUS
33429 # -----------------
33430 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33434 as_fn_set_status $1
33440 # Portably unset VAR.
33443 { eval $1=; unset $1;}
33445 as_unset=as_fn_unset
33446 # as_fn_append VAR VALUE
33447 # ----------------------
33448 # Append the text in VALUE to the end of the definition contained in VAR. Take
33449 # advantage of any shell optimizations that allow amortized linear growth over
33450 # repeated appends, instead of the typical quadratic growth present in naive
33452 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33453 eval 'as_fn_append ()
33464 # as_fn_arith ARG...
33465 # ------------------
33466 # Perform arithmetic evaluation on the ARGs, and store the result in the
33467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33468 # must be portable across $(()) and expr.
33469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33470 eval 'as_fn_arith ()
33477 as_val=`expr "$@" || test $? -eq 1`
33482 if expr a : '\(a\)' >/dev/null 2>&1 &&
33483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33490 as_basename=basename
33495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33501 as_me=`$as_basename -- "$0" ||
33502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33503 X"$0" : 'X\(//\)$' \| \
33504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33506 sed '/^.*\/\([^/][^/]*\)\/*$/{
33520 # Avoid depending upon Character Ranges.
33521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33524 as_cr_digits='0123456789'
33525 as_cr_alnum=$as_cr_Letters$as_cr_digits
33527 ECHO_C= ECHO_N= ECHO_T=
33528 case `echo -n x` in #(((((
33530 case `echo 'xy\c'` in
33531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33540 rm -f conf$$ conf$$.exe conf$$.file
33541 if test -d conf$$.dir; then
33542 rm -f conf$$.dir/conf$$.file
33545 mkdir conf$$.dir 2>/dev/null
33547 if (echo >conf$$.file) 2>/dev/null; then
33548 if ln -s conf$$.file conf$$ 2>/dev/null; then
33550 # ... but there are two gotchas:
33551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33553 # In both cases, we have to default to `cp -p'.
33554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33556 elif ln conf$$.file conf$$ 2>/dev/null; then
33564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33565 rmdir conf$$.dir 2>/dev/null
33570 # Create "$as_dir" as a directory, including parents if necessary.
33575 -*) as_dir=./$as_dir;;
33577 test -d "$as_dir" || eval $as_mkdir_p || {
33581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33582 *) as_qdir=$as_dir;;
33584 as_dirs="'$as_qdir' $as_dirs"
33585 as_dir=`$as_dirname -- "$as_dir" ||
33586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33587 X"$as_dir" : 'X\(//\)[^/]' \| \
33588 X"$as_dir" : 'X\(//\)$' \| \
33589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33590 $as_echo X"$as_dir" |
33591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33595 /^X\(\/\/\)[^/].*/{
33608 test -d "$as_dir" && break
33610 test -z "$as_dirs" || eval "mkdir $as_dirs"
33611 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33615 if mkdir -p . 2>/dev/null; then
33616 as_mkdir_p='mkdir -p "$as_dir"'
33618 test -d ./-p && rmdir ./-p
33622 if test -x / >/dev/null 2>&1; then
33623 as_test_x='test -x'
33625 if ls -dL / >/dev/null 2>&1; then
33632 if test -d "$1"; then
33638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33639 ???[sx]*):;;*)false;;esac;fi
33643 as_executable_p=$as_test_x
33645 # Sed expression to map a string onto a valid CPP name.
33646 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33648 # Sed expression to map a string onto a valid variable name.
33649 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33653 ## ----------------------------------- ##
33654 ## Main body of $CONFIG_STATUS script. ##
33655 ## ----------------------------------- ##
33657 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33660 # Save the log message, to keep $0 and so on meaningful, and to
33661 # report actual input values of CONFIG_FILES etc. instead of their
33662 # values after options handling.
33664 This file was extended by $as_me, which was
33665 generated by GNU Autoconf 2.65. Invocation command line was
33667 CONFIG_FILES = $CONFIG_FILES
33668 CONFIG_HEADERS = $CONFIG_HEADERS
33669 CONFIG_LINKS = $CONFIG_LINKS
33670 CONFIG_COMMANDS = $CONFIG_COMMANDS
33673 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33678 case $ac_config_files in *"
33679 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33682 case $ac_config_headers in *"
33683 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33688 # Files that config.status was made for.
33689 config_files="$ac_config_files"
33690 config_headers="$ac_config_headers"
33691 config_commands="$ac_config_commands"
33695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33697 \`$as_me' instantiates files and other configuration actions
33698 from templates according to the current configuration. Unless the files
33699 and actions are specified as TAGs, all are instantiated by default.
33701 Usage: $0 [OPTION]... [TAG]...
33703 -h, --help print this help, then exit
33704 -V, --version print version number and configuration settings, then exit
33705 --config print configuration, then exit
33706 -q, --quiet, --silent
33707 do not print progress messages
33708 -d, --debug don't remove temporary files
33709 --recheck update $as_me by reconfiguring in the same conditions
33710 --file=FILE[:TEMPLATE]
33711 instantiate the configuration file FILE
33712 --header=FILE[:TEMPLATE]
33713 instantiate the configuration header FILE
33715 Configuration files:
33718 Configuration headers:
33721 Configuration commands:
33724 Report bugs to the package provider."
33727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33728 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33731 configured by $0, generated by GNU Autoconf 2.65,
33732 with options \\"\$ac_cs_config\\"
33734 Copyright (C) 2009 Free Software Foundation, Inc.
33735 This config.status script is free software; the Free Software Foundation
33736 gives unlimited permission to copy, distribute and modify it."
33743 test -n "\$AWK" || AWK=awk
33746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33747 # The default lists apply if the user does not specify any file.
33753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33765 # Handling of the options.
33766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33769 $as_echo "$ac_cs_version"; exit ;;
33770 --config | --confi | --conf | --con | --co | --c )
33771 $as_echo "$ac_cs_config"; exit ;;
33772 --debug | --debu | --deb | --de | --d | -d )
33774 --file | --fil | --fi | --f )
33777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33779 as_fn_append CONFIG_FILES " '$ac_optarg'"
33780 ac_need_defaults=false;;
33781 --header | --heade | --head | --hea )
33784 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33786 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33787 ac_need_defaults=false;;
33789 # Conflict between --help and --header
33790 as_fn_error "ambiguous option: \`$1'
33791 Try \`$0 --help' for more information.";;
33792 --help | --hel | -h )
33793 $as_echo "$ac_cs_usage"; exit ;;
33794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33798 # This is an error.
33799 -*) as_fn_error "unrecognized option: \`$1'
33800 Try \`$0 --help' for more information." ;;
33802 *) as_fn_append ac_config_targets " $1"
33803 ac_need_defaults=false ;;
33809 ac_configure_extra_args=
33811 if $ac_cs_silent; then
33813 ac_configure_extra_args="$ac_configure_extra_args --silent"
33817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33818 if \$ac_cs_recheck; then
33819 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33821 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33822 CONFIG_SHELL='$SHELL'
33823 export CONFIG_SHELL
33828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33833 ## Running $as_me. ##
33839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33843 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33846 # The HP-UX ksh and POSIX shell print the target directory to stdout
33847 # if CDPATH is set.
33848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33850 sed_quote_subst='$sed_quote_subst'
33851 double_quote_subst='$double_quote_subst'
33852 delay_variable_subst='$delay_variable_subst'
33853 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33854 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33855 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33856 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33857 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33858 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33859 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33860 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33861 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33862 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33863 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33864 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33865 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33866 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33867 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33868 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33869 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33870 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33871 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33872 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33873 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33874 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33875 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33876 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33877 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33878 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33879 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33880 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33881 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33882 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33883 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33884 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33885 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33886 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33887 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33888 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33889 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33890 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33891 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33892 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33893 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33894 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33895 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33896 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33897 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33898 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33899 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
33900 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33901 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33902 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33903 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33904 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33905 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33906 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33907 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33908 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33909 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33910 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33911 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33912 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33913 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33914 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33915 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33916 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33917 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33918 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33919 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33920 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33921 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33922 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33923 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33924 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33925 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33926 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33927 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33928 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33929 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33930 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33931 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33932 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33933 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33934 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33935 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33936 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33937 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33938 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33939 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33940 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33941 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33942 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33943 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33944 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33945 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33946 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33947 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33948 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33949 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33950 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33951 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33952 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33953 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33954 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33955 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33956 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33957 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33958 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33959 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33960 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33961 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33962 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33963 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33964 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33965 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33966 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33967 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33968 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33969 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33970 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33971 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33972 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33973 LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
33974 old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33975 compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
33976 GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
33977 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
33978 lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
33979 lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
33980 lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
33981 lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
33982 archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
33983 enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
33984 export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
33985 whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
33986 compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
33987 old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33988 old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33989 archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33990 archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33991 module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33992 module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
33993 with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
33994 allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
33995 no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
33996 hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
33997 hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
33998 hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
33999 hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
34000 hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
34001 hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
34002 hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
34003 hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
34004 inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
34005 link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
34006 fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
34007 always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
34008 export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
34009 exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
34010 include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
34011 prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
34012 file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
34013 hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
34016 LTCFLAGS='$LTCFLAGS'
34017 compiler='$compiler_DEFAULT'
34019 # Quote evaled strings.
34030 deplibs_check_method \
34039 lt_cv_sys_global_symbol_pipe \
34040 lt_cv_sys_global_symbol_to_cdecl \
34041 lt_cv_sys_global_symbol_to_c_name_address \
34042 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34045 lt_prog_compiler_no_builtin_flag \
34046 lt_prog_compiler_wl \
34047 lt_prog_compiler_pic \
34048 lt_prog_compiler_static \
34049 lt_cv_prog_compiler_c_o \
34057 export_dynamic_flag_spec \
34058 whole_archive_flag_spec \
34059 compiler_needs_object \
34061 allow_undefined_flag \
34062 no_undefined_flag \
34063 hardcode_libdir_flag_spec \
34064 hardcode_libdir_flag_spec_ld \
34065 hardcode_libdir_separator \
34070 variables_saved_for_relink \
34072 library_names_spec \
34079 lt_prog_compiler_no_builtin_flag_RC \
34080 lt_prog_compiler_wl_RC \
34081 lt_prog_compiler_pic_RC \
34082 lt_prog_compiler_static_RC \
34083 lt_cv_prog_compiler_c_o_RC \
34084 export_dynamic_flag_spec_RC \
34085 whole_archive_flag_spec_RC \
34086 compiler_needs_object_RC \
34088 allow_undefined_flag_RC \
34089 no_undefined_flag_RC \
34090 hardcode_libdir_flag_spec_RC \
34091 hardcode_libdir_flag_spec_ld_RC \
34092 hardcode_libdir_separator_RC \
34093 fix_srcfile_path_RC \
34094 exclude_expsyms_RC \
34095 include_expsyms_RC \
34096 file_list_spec_RC; do
34097 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34098 *[\\\\\\\`\\"\\\$]*)
34099 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34102 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34107 # Double-quote double-evaled strings.
34108 for var in reload_cmds \
34109 old_postinstall_cmds \
34110 old_postuninstall_cmds \
34112 extract_expsyms_cmds \
34113 old_archive_from_new_cmds \
34114 old_archive_from_expsyms_cmds \
34116 archive_expsym_cmds \
34118 module_expsym_cmds \
34119 export_symbols_cmds \
34122 postuninstall_cmds \
34124 sys_lib_search_path_spec \
34125 sys_lib_dlsearch_path_spec \
34126 old_archive_cmds_RC \
34127 old_archive_from_new_cmds_RC \
34128 old_archive_from_expsyms_cmds_RC \
34130 archive_expsym_cmds_RC \
34132 module_expsym_cmds_RC \
34133 export_symbols_cmds_RC \
34134 prelink_cmds_RC; do
34135 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34136 *[\\\\\\\`\\"\\\$]*)
34137 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34140 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34145 # Fix-up fallback echo if it was mangled by the above quoting rules.
34147 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34151 ac_aux_dir='$ac_aux_dir'
34152 xsi_shell='$xsi_shell'
34153 lt_shell_append='$lt_shell_append'
34155 # See if we are running on zsh, and set the options which allow our
34156 # commands through without removal of \ escapes INIT.
34157 if test -n "\${ZSH_VERSION+set}" ; then
34158 setopt NO_GLOB_SUBST
34164 TIMESTAMP='$TIMESTAMP'
34175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34177 # Handling of arguments.
34178 for ac_config_target in $ac_config_targets
34180 case $ac_config_target in
34181 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34182 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34183 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34184 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34185 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34186 "gnulib-local/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-local/Makefile" ;;
34187 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34188 "lib/exported.sh") CONFIG_FILES="$CONFIG_FILES lib/exported.sh" ;;
34189 "lib/unistring/version.h") CONFIG_FILES="$CONFIG_FILES lib/unistring/version.h:lib/unistring/version.in.h" ;;
34190 "lib/unistring/woe32dll.h") CONFIG_FILES="$CONFIG_FILES lib/unistring/woe32dll.h:lib/unistring/woe32dll.in.h" ;;
34191 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
34193 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34198 # If the user did not use the arguments to specify the items to instantiate,
34199 # then the envvar interface is used. Set only those that are not.
34200 # We use the long form for the default assignment because of an extremely
34201 # bizarre bug on SunOS 4.1.3.
34202 if $ac_need_defaults; then
34203 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34204 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34205 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34208 # Have a temporary directory for convenience. Make it in the build tree
34209 # simply because there is no reason against having it here, and in addition,
34210 # creating and moving files from /tmp can sometimes cause problems.
34211 # Hook for its removal unless debugging.
34212 # Note that there is a small window in which the directory will not be cleaned:
34213 # after its creation but before its name has been assigned to `$tmp'.
34217 trap 'exit_status=$?
34218 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34220 trap 'as_fn_exit 1' 1 2 13 15
34222 # Create a (secure) tmp directory for tmp files.
34225 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34226 test -n "$tmp" && test -d "$tmp"
34229 tmp=./conf$$-$RANDOM
34230 (umask 077 && mkdir "$tmp")
34231 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
34233 # Set up the scripts for CONFIG_FILES section.
34234 # No need to generate them if there are no CONFIG_FILES.
34235 # This happens for instance with `./config.status config.h'.
34236 if test -n "$CONFIG_FILES"; then
34239 ac_cr=`echo X | tr X '\015'`
34240 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34241 # But we know of no other shell where ac_cr would be empty at this
34242 # point, so we can use a bashism as a fallback.
34243 if test "x$ac_cr" = x; then
34244 eval ac_cr=\$\'\\r\'
34246 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34247 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34250 ac_cs_awk_cr=$ac_cr
34253 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34258 echo "cat >conf$$subs.awk <<_ACEOF" &&
34259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34261 } >conf$$subs.sh ||
34262 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34265 for ac_last_try in false false false false false :; do
34266 . ./conf$$subs.sh ||
34267 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34270 if test $ac_delim_n = $ac_delim_num; then
34272 elif $ac_last_try; then
34273 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34278 rm -f conf$$subs.sh
34280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34281 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34285 s/^/S["/; s/!.*/"]=/
34295 s/\(.\{148\}\)..*/\1/
34297 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34309 s/\(.\{148\}\)..*/\1/
34311 s/["\\]/\\&/g; s/^/"/; s/$/"/
34315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34320 ' <conf$$subs.awk | sed '
34325 ' >>$CONFIG_STATUS || ac_write_fail=1
34326 rm -f conf$$subs.awk
34327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34329 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34330 for (key in S) S_is_set[key] = 1
34336 nfields = split(line, field, "@")
34338 len = length(field[1])
34339 for (i = 2; i < nfields; i++) {
34341 keylen = length(key)
34342 if (S_is_set[key]) {
34344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34345 len += length(value) + length(field[++i])
34356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34361 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34362 || as_fn_error "could not setup config files machinery" "$LINENO" 5
34365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34367 # trailing colons and then remove the whole line if VPATH becomes empty
34368 # (actually we leave an empty line to preserve line numbers).
34369 if test "x$srcdir" = x.; then
34370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34371 s/:*\$(srcdir):*/:/
34372 s/:*\${srcdir}:*/:/
34374 s/^\([^=]*=[ ]*\):*/\1/
34380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34381 fi # test -n "$CONFIG_FILES"
34383 # Set up the scripts for CONFIG_HEADERS section.
34384 # No need to generate them if there are no CONFIG_HEADERS.
34385 # This happens for instance with `./config.status Makefile'.
34386 if test -n "$CONFIG_HEADERS"; then
34387 cat >"$tmp/defines.awk" <<\_ACAWK ||
34391 # Transform confdefs.h into an awk script `defines.awk', embedded as
34392 # here-document in config.status, that substitutes the proper values into
34393 # config.h.in to produce config.h.
34395 # Create a delimiter string that does not exist in confdefs.h, to ease
34396 # handling of long lines.
34398 for ac_last_try in false false :; do
34399 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34400 if test -z "$ac_t"; then
34402 elif $ac_last_try; then
34403 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
34405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34409 # For the awk script, D is an array of macro values keyed by name,
34410 # likewise P contains macro parameters if any. Preserve backslash
34411 # newline sequences.
34413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34415 s/.\{148\}/&'"$ac_delim"'/g
34418 s/^[ ]*#[ ]*define[ ][ ]*/ /
34425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34432 D["\1"]=" \3\\\\\\n"\\/p
34434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34439 s/.\{148\}/&'"$ac_delim"'/g
34444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34449 ' <confdefs.h | sed '
34450 s/'"$ac_delim"'/"\\\
34451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34454 for (key in D) D_is_set[key] = 1
34457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34459 split(line, arg, " ")
34460 if (arg[1] == "#") {
34464 defundef = substr(arg[1], 2)
34467 split(mac1, mac2, "(") #)
34469 prefix = substr(line, 1, index(line, defundef) - 1)
34470 if (D_is_set[macro]) {
34471 # Preserve the white space surrounding the "#".
34472 print prefix "define", macro P[macro] D[macro]
34475 # Replace #undef with comments. This is necessary, for example,
34476 # in the case of _POSIX_SOURCE, which is predefined and required
34477 # on some systems where configure will not decide to define it.
34478 if (defundef == "undef") {
34479 print "/*", prefix defundef, macro, "*/"
34487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34488 as_fn_error "could not setup config headers machinery" "$LINENO" 5
34489 fi # test -n "$CONFIG_HEADERS"
34492 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34497 :[FHLC]) ac_mode=$ac_tag; continue;;
34499 case $ac_mode$ac_tag in
34501 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
34502 :[FH]-) ac_tag=-:-;;
34503 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34520 -) ac_f="$tmp/stdin";;
34521 *) # Look for the file first in the build tree, then in the source tree
34522 # (if the path is not absolute). The absolute path cannot be DOS-style,
34523 # because $ac_f cannot contain `:'.
34527 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34529 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34531 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34532 as_fn_append ac_file_inputs " '$ac_f'"
34535 # Let's still pretend it is `configure' which instantiates (i.e., don't
34536 # use $as_me), people would be surprised to read:
34537 # /* config.h. Generated by config.status. */
34538 configure_input='Generated from '`
34539 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34541 if test x"$ac_file" != x-; then
34542 configure_input="$ac_file. $configure_input"
34543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34544 $as_echo "$as_me: creating $ac_file" >&6;}
34546 # Neutralize special characters interpreted by sed in replacement strings.
34547 case $configure_input in #(
34548 *\&* | *\|* | *\\* )
34549 ac_sed_conf_input=`$as_echo "$configure_input" |
34550 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34551 *) ac_sed_conf_input=$configure_input;;
34555 *:-:* | *:-) cat >"$tmp/stdin" \
34556 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
34561 ac_dir=`$as_dirname -- "$ac_file" ||
34562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34563 X"$ac_file" : 'X\(//\)[^/]' \| \
34564 X"$ac_file" : 'X\(//\)$' \| \
34565 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34566 $as_echo X"$ac_file" |
34567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34571 /^X\(\/\/\)[^/].*/{
34584 as_dir="$ac_dir"; as_fn_mkdir_p
34588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34591 # A ".." for each directory in $ac_dir_suffix.
34592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34593 case $ac_top_builddir_sub in
34594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34598 ac_abs_top_builddir=$ac_pwd
34599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34600 # for backward compatibility:
34601 ac_top_builddir=$ac_top_build_prefix
34604 .) # We are building in place.
34606 ac_top_srcdir=$ac_top_builddir_sub
34607 ac_abs_top_srcdir=$ac_pwd ;;
34608 [\\/]* | ?:[\\/]* ) # Absolute name.
34609 ac_srcdir=$srcdir$ac_dir_suffix;
34610 ac_top_srcdir=$srcdir
34611 ac_abs_top_srcdir=$srcdir ;;
34612 *) # Relative name.
34613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34614 ac_top_srcdir=$ac_top_build_prefix$srcdir
34615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34628 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34630 ac_MKDIR_P=$MKDIR_P
34632 [\\/$]* | ?:[\\/]* ) ;;
34633 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34638 # If the template does not know about datarootdir, expand it.
34639 # FIXME: This hack should be removed a few years after 2.60.
34640 ac_datarootdir_hack=; ac_datarootdir_seen=
34651 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34652 *datarootdir*) ac_datarootdir_seen=yes;;
34653 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34655 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34658 ac_datarootdir_hack='
34659 s&@datadir@&$datadir&g
34660 s&@docdir@&$docdir&g
34661 s&@infodir@&$infodir&g
34662 s&@localedir@&$localedir&g
34663 s&@mandir@&$mandir&g
34664 s&\\\${datarootdir}&$datarootdir&g' ;;
34668 # Neutralize VPATH when `$srcdir' = `.'.
34669 # Shell code in configure.ac might set extrasub.
34670 # FIXME: do we really want to maintain this feature?
34671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34672 ac_sed_extra="$ac_vpsub
34675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34678 s|@configure_input@|$ac_sed_conf_input|;t t
34679 s&@top_builddir@&$ac_top_builddir_sub&;t t
34680 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34681 s&@srcdir@&$ac_srcdir&;t t
34682 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34683 s&@top_srcdir@&$ac_top_srcdir&;t t
34684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34685 s&@builddir@&$ac_builddir&;t t
34686 s&@abs_builddir@&$ac_abs_builddir&;t t
34687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34688 s&@INSTALL@&$ac_INSTALL&;t t
34689 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34690 $ac_datarootdir_hack
34692 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34693 || as_fn_error "could not create $ac_file" "$LINENO" 5
34695 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34696 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34697 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34699 which seems to be undefined. Please make sure it is defined." >&5
34700 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34701 which seems to be undefined. Please make sure it is defined." >&2;}
34705 -) cat "$tmp/out" && rm -f "$tmp/out";;
34706 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34708 || as_fn_error "could not create $ac_file" "$LINENO" 5
34714 if test x"$ac_file" != x-; then
34716 $as_echo "/* $configure_input */" \
34717 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34718 } >"$tmp/config.h" \
34719 || as_fn_error "could not create $ac_file" "$LINENO" 5
34720 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34721 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34722 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34725 mv "$tmp/config.h" "$ac_file" \
34726 || as_fn_error "could not create $ac_file" "$LINENO" 5
34729 $as_echo "/* $configure_input */" \
34730 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34731 || as_fn_error "could not create -" "$LINENO" 5
34733 # Compute "$ac_file"'s index in $config_headers.
34736 for _am_header in $config_headers :; do
34737 case $_am_header in
34738 $_am_arg | $_am_arg:* )
34741 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34744 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34745 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34746 X"$_am_arg" : 'X\(//\)[^/]' \| \
34747 X"$_am_arg" : 'X\(//\)$' \| \
34748 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34749 $as_echo X"$_am_arg" |
34750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34754 /^X\(\/\/\)[^/].*/{
34766 s/.*/./; q'`/stamp-h$_am_stamp_count
34769 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34770 $as_echo "$as_me: executing $ac_file commands" >&6;}
34775 case $ac_file$ac_mode in
34776 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34777 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34778 # are listed without --file. Let's play safe and only enable the eval
34779 # if we detect the quoting.
34780 case $CONFIG_FILES in
34781 *\'*) eval set x "$CONFIG_FILES" ;;
34782 *) set x $CONFIG_FILES ;;
34787 # Strip MF so we end up with the name of the file.
34788 mf=`echo "$mf" | sed -e 's/:.*$//'`
34789 # Check whether this is an Automake generated Makefile or not.
34790 # We used to match only the files named `Makefile.in', but
34791 # some people rename them; so instead we look at the file content.
34792 # Grep'ing the first line is not enough: some people post-process
34793 # each Makefile.in and add a new line on top of each file to say so.
34794 # Grep'ing the whole file is not good either: AIX grep has a line
34795 # limit of 2048, but all sed's we know have understand at least 4000.
34796 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34797 dirpart=`$as_dirname -- "$mf" ||
34798 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34799 X"$mf" : 'X\(//\)[^/]' \| \
34800 X"$mf" : 'X\(//\)$' \| \
34801 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34807 /^X\(\/\/\)[^/].*/{
34823 # Extract the definition of DEPDIR, am__include, and am__quote
34824 # from the Makefile without running `make'.
34825 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34826 test -z "$DEPDIR" && continue
34827 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34828 test -z "am__include" && continue
34829 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34830 # When using ansi2knr, U may be empty or an underscore; expand it
34831 U=`sed -n 's/^U = //p' < "$mf"`
34832 # Find all dependency output files, they are included files with
34833 # $(DEPDIR) in their names. We invoke sed twice because it is the
34834 # simplest approach to changing $(DEPDIR) to its actual value in the
34836 for file in `sed -n "
34837 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34838 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34839 # Make sure the directory exists.
34840 test -f "$dirpart/$file" && continue
34841 fdir=`$as_dirname -- "$file" ||
34842 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34843 X"$file" : 'X\(//\)[^/]' \| \
34844 X"$file" : 'X\(//\)$' \| \
34845 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34846 $as_echo X"$file" |
34847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34851 /^X\(\/\/\)[^/].*/{
34864 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34865 # echo "creating $dirpart/$file"
34866 echo '# dummy' > "$dirpart/$file"
34873 # See if we are running on zsh, and set the options which allow our
34874 # commands through without removal of \ escapes.
34875 if test -n "${ZSH_VERSION+set}" ; then
34876 setopt NO_GLOB_SUBST
34879 cfgfile="${ofile}T"
34880 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34883 cat <<_LT_EOF >> "$cfgfile"
34886 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34887 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34889 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34891 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34892 # 2006, 2007, 2008 Free Software Foundation, Inc.
34893 # Written by Gordon Matzigkeit, 1996
34895 # This file is part of GNU Libtool.
34897 # GNU Libtool is free software; you can redistribute it and/or
34898 # modify it under the terms of the GNU General Public License as
34899 # published by the Free Software Foundation; either version 2 of
34900 # the License, or (at your option) any later version.
34902 # As a special exception to the GNU General Public License,
34903 # if you distribute this file as part of a program or library that
34904 # is built using GNU Libtool, you may include this file under the
34905 # same distribution terms that you use for the rest of that program.
34907 # GNU Libtool is distributed in the hope that it will be useful,
34908 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34909 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34910 # GNU General Public License for more details.
34912 # You should have received a copy of the GNU General Public License
34913 # along with GNU Libtool; see the file COPYING. If not, a copy
34914 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34915 # obtained by writing to the Free Software Foundation, Inc.,
34916 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34919 # The names of the tagged configurations supported by this script.
34920 available_tags="RC "
34922 # ### BEGIN LIBTOOL CONFIG
34924 # Which release of libtool.m4 was used?
34925 macro_version=$macro_version
34926 macro_revision=$macro_revision
34928 # Assembler program.
34931 # DLL creation program.
34934 # Object dumper program.
34937 # Whether or not to build shared libraries.
34938 build_libtool_libs=$enable_shared
34940 # Whether or not to build static libraries.
34941 build_old_libs=$enable_static
34943 # What type of objects to build.
34946 # Whether or not to optimize for fast installation.
34947 fast_install=$enable_fast_install
34950 host_alias=$host_alias
34954 # The build system.
34955 build_alias=$build_alias
34959 # A sed program that does not truncate output.
34962 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34963 Xsed="\$SED -e 1s/^X//"
34965 # A grep program that handles long lines.
34971 # A literal string matcher.
34974 # A BSD- or MS-compatible name lister.
34977 # Whether we need soft or hard links.
34980 # What is the maximum length of a command?
34981 max_cmd_len=$max_cmd_len
34983 # Object file suffix (normally "o").
34986 # Executable file suffix (normally "").
34989 # whether the shell understands "unset".
34992 # turn spaces into newlines.
34995 # turn newlines into spaces.
34998 # How to create reloadable object files.
34999 reload_flag=$lt_reload_flag
35000 reload_cmds=$lt_reload_cmds
35002 # Method to check whether dependent libraries are shared objects.
35003 deplibs_check_method=$lt_deplibs_check_method
35005 # Command to use when deplibs_check_method == "file_magic".
35006 file_magic_cmd=$lt_file_magic_cmd
35010 AR_FLAGS=$lt_AR_FLAGS
35012 # A symbol stripping program.
35015 # Commands used to install an old-style archive.
35017 old_postinstall_cmds=$lt_old_postinstall_cmds
35018 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35023 # LTCC compiler flags.
35024 LTCFLAGS=$lt_CFLAGS
35026 # Take the output of nm and produce a listing of raw symbols and C names.
35027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35029 # Transform the output of nm in a proper C declaration.
35030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35032 # Transform the output of nm in a C name address pair.
35033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35035 # Transform the output of nm in a C name address pair when lib prefix is needed.
35036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35038 # The name of the directory that contains temporary libtool files.
35041 # Shell to use when invoking shell scripts.
35044 # An echo program that does not interpret backslashes.
35047 # Used to examine libraries when file_magic_cmd begins with "file".
35048 MAGIC_CMD=$MAGIC_CMD
35050 # Must we lock files when doing compilation?
35051 need_locks=$lt_need_locks
35053 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35054 DSYMUTIL=$lt_DSYMUTIL
35056 # Tool to change global to local symbols on Mac OS X.
35059 # Tool to manipulate fat objects and archives on Mac OS X.
35062 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35065 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35066 OTOOL64=$lt_OTOOL64
35068 # Old archive suffix (normally "a").
35071 # Shared library suffix (normally ".so").
35072 shrext_cmds=$lt_shrext_cmds
35074 # The commands to extract the exported symbol list from a shared archive.
35075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35077 # Variables whose values should be saved in libtool wrapper scripts and
35078 # restored at link time.
35079 variables_saved_for_relink=$lt_variables_saved_for_relink
35081 # Do we need the "lib" prefix for modules?
35082 need_lib_prefix=$need_lib_prefix
35084 # Do we need a version for libraries?
35085 need_version=$need_version
35087 # Library versioning type.
35088 version_type=$version_type
35090 # Shared library runtime path variable.
35091 runpath_var=$runpath_var
35093 # Shared library path variable.
35094 shlibpath_var=$shlibpath_var
35096 # Is shlibpath searched before the hard-coded library search path?
35097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35099 # Format of library name prefix.
35100 libname_spec=$lt_libname_spec
35102 # List of archive names. First name is the real one, the rest are links.
35103 # The last name is the one that the linker finds with -lNAME
35104 library_names_spec=$lt_library_names_spec
35106 # The coded name of the library, if different from the real name.
35107 soname_spec=$lt_soname_spec
35109 # Command to use after installation of a shared archive.
35110 postinstall_cmds=$lt_postinstall_cmds
35112 # Command to use after uninstallation of a shared archive.
35113 postuninstall_cmds=$lt_postuninstall_cmds
35115 # Commands used to finish a libtool library installation in a directory.
35116 finish_cmds=$lt_finish_cmds
35118 # As "finish_cmds", except a single script fragment to be evaled but
35120 finish_eval=$lt_finish_eval
35122 # Whether we should hardcode library paths into libraries.
35123 hardcode_into_libs=$hardcode_into_libs
35125 # Compile-time system search path for libraries.
35126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35128 # Run-time system search path for libraries.
35129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35131 # Whether dlopen is supported.
35132 dlopen_support=$enable_dlopen
35134 # Whether dlopen of programs is supported.
35135 dlopen_self=$enable_dlopen_self
35137 # Whether dlopen of statically linked programs is supported.
35138 dlopen_self_static=$enable_dlopen_self_static
35140 # Commands to strip libraries.
35141 old_striplib=$lt_old_striplib
35142 striplib=$lt_striplib
35145 # The linker used to build libraries.
35148 # Commands used to build an old-style archive.
35149 old_archive_cmds=$lt_old_archive_cmds
35151 # A language specific compiler.
35154 # Is the compiler the GNU compiler?
35157 # Compiler flag to turn off builtin functions.
35158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35160 # How to pass a linker flag through the compiler.
35161 wl=$lt_lt_prog_compiler_wl
35163 # Additional compiler flags for building library objects.
35164 pic_flag=$lt_lt_prog_compiler_pic
35166 # Compiler flag to prevent dynamic linking.
35167 link_static_flag=$lt_lt_prog_compiler_static
35169 # Does compiler simultaneously support -c and -o options?
35170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35172 # Whether or not to add -lc for building shared libraries.
35173 build_libtool_need_lc=$archive_cmds_need_lc
35175 # Whether or not to disallow shared libs when runtime libs are static.
35176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35178 # Compiler flag to allow reflexive dlopens.
35179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35181 # Compiler flag to generate shared objects directly from archives.
35182 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35184 # Whether the compiler copes with passing no objects directly.
35185 compiler_needs_object=$lt_compiler_needs_object
35187 # Create an old-style archive from a shared archive.
35188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35190 # Create a temporary old-style archive to link instead of a shared archive.
35191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35193 # Commands used to build a shared archive.
35194 archive_cmds=$lt_archive_cmds
35195 archive_expsym_cmds=$lt_archive_expsym_cmds
35197 # Commands used to build a loadable module if different from building
35198 # a shared archive.
35199 module_cmds=$lt_module_cmds
35200 module_expsym_cmds=$lt_module_expsym_cmds
35202 # Whether we are building with GNU ld or not.
35203 with_gnu_ld=$lt_with_gnu_ld
35205 # Flag that allows shared libraries with undefined symbols to be built.
35206 allow_undefined_flag=$lt_allow_undefined_flag
35208 # Flag that enforces no undefined symbols.
35209 no_undefined_flag=$lt_no_undefined_flag
35211 # Flag to hardcode \$libdir into a binary during linking.
35212 # This must work even if \$libdir does not exist
35213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35215 # If ld is used when linking, flag to hardcode \$libdir into a binary
35216 # during linking. This must work even if \$libdir does not exist.
35217 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35219 # Whether we need a single "-rpath" flag with a separated argument.
35220 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35222 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35223 # DIR into the resulting binary.
35224 hardcode_direct=$hardcode_direct
35226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35227 # DIR into the resulting binary and the resulting library dependency is
35228 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35229 # library is relocated.
35230 hardcode_direct_absolute=$hardcode_direct_absolute
35232 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35233 # into the resulting binary.
35234 hardcode_minus_L=$hardcode_minus_L
35236 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35237 # into the resulting binary.
35238 hardcode_shlibpath_var=$hardcode_shlibpath_var
35240 # Set to "yes" if building a shared library automatically hardcodes DIR
35241 # into the library and all subsequent libraries and executables linked
35243 hardcode_automatic=$hardcode_automatic
35245 # Set to yes if linker adds runtime paths of dependent libraries
35246 # to runtime path list.
35247 inherit_rpath=$inherit_rpath
35249 # Whether libtool must link a program against all its dependency libraries.
35250 link_all_deplibs=$link_all_deplibs
35252 # Fix the shell variable \$srcfile for the compiler.
35253 fix_srcfile_path=$lt_fix_srcfile_path
35255 # Set to "yes" if exported symbols are required.
35256 always_export_symbols=$always_export_symbols
35258 # The commands to list exported symbols.
35259 export_symbols_cmds=$lt_export_symbols_cmds
35261 # Symbols that should not be listed in the preloaded symbols.
35262 exclude_expsyms=$lt_exclude_expsyms
35264 # Symbols that must always be exported.
35265 include_expsyms=$lt_include_expsyms
35267 # Commands necessary for linking programs (against libraries) with templates.
35268 prelink_cmds=$lt_prelink_cmds
35270 # Specify filename containing input files.
35271 file_list_spec=$lt_file_list_spec
35273 # How to hardcode a shared library path into an executable.
35274 hardcode_action=$hardcode_action
35276 # ### END LIBTOOL CONFIG
35282 cat <<\_LT_EOF >> "$cfgfile"
35283 # AIX sometimes has problems with the GCC collect2 program. For some
35284 # reason, if we set the COLLECT_NAMES environment variable, the problems
35285 # vanish in a puff of smoke.
35286 if test "X${COLLECT_NAMES+set}" != Xset; then
35288 export COLLECT_NAMES
35295 ltmain="$ac_aux_dir/ltmain.sh"
35298 # We use sed instead of cat because bash on DJGPP gets confused if
35299 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35300 # text mode, it properly converts lines to CR/LF. This bash problem
35301 # is reportedly fixed, but why not run on old versions too?
35302 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35303 || (rm -f "$cfgfile"; exit 1)
35307 cat << \_LT_EOF >> "$cfgfile"
35309 # func_dirname file append nondir_replacement
35310 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35311 # otherwise set result to NONDIR_REPLACEMENT.
35315 */*) func_dirname_result="${1%/*}${2}" ;;
35316 * ) func_dirname_result="${3}" ;;
35320 # func_basename file
35323 func_basename_result="${1##*/}"
35326 # func_dirname_and_basename file append nondir_replacement
35327 # perform func_basename and func_dirname in a single function
35329 # dirname: Compute the dirname of FILE. If nonempty,
35330 # add APPEND to the result, otherwise set result
35331 # to NONDIR_REPLACEMENT.
35332 # value returned in "$func_dirname_result"
35333 # basename: Compute filename of FILE.
35334 # value retuned in "$func_basename_result"
35335 # Implementation must be kept synchronized with func_dirname
35336 # and func_basename. For efficiency, we do not delegate to
35337 # those functions but instead duplicate the functionality here.
35338 func_dirname_and_basename ()
35341 */*) func_dirname_result="${1%/*}${2}" ;;
35342 * ) func_dirname_result="${3}" ;;
35344 func_basename_result="${1##*/}"
35347 # func_stripname prefix suffix name
35348 # strip PREFIX and SUFFIX off of NAME.
35349 # PREFIX and SUFFIX must not contain globbing or regex special
35350 # characters, hashes, percent signs, but SUFFIX may contain a leading
35351 # dot (in which case that matches only a dot).
35354 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35355 # positional parameters, so assign one to ordinary parameter first.
35356 func_stripname_result=${3}
35357 func_stripname_result=${func_stripname_result#"${1}"}
35358 func_stripname_result=${func_stripname_result%"${2}"}
35364 func_opt_split_opt=${1%%=*}
35365 func_opt_split_arg=${1#*=}
35372 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35373 *) func_lo2o_result=${1} ;;
35377 # func_xform libobj-or-source
35380 func_xform_result=${1%.*}.lo
35383 # func_arith arithmetic-term...
35386 func_arith_result=$(( $* ))
35390 # STRING may not start with a hyphen.
35393 func_len_result=${#1}
35398 *) # Bourne compatible functions.
35399 cat << \_LT_EOF >> "$cfgfile"
35401 # func_dirname file append nondir_replacement
35402 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35403 # otherwise set result to NONDIR_REPLACEMENT.
35406 # Extract subdirectory from the argument.
35407 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35408 if test "X$func_dirname_result" = "X${1}"; then
35409 func_dirname_result="${3}"
35411 func_dirname_result="$func_dirname_result${2}"
35415 # func_basename file
35418 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35422 # func_stripname prefix suffix name
35423 # strip PREFIX and SUFFIX off of NAME.
35424 # PREFIX and SUFFIX must not contain globbing or regex special
35425 # characters, hashes, percent signs, but SUFFIX may contain a leading
35426 # dot (in which case that matches only a dot).
35427 # func_strip_suffix prefix name
35431 .*) func_stripname_result=`$ECHO "X${3}" \
35432 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35433 *) func_stripname_result=`$ECHO "X${3}" \
35434 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35439 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35440 my_sed_long_arg='1s/^-[^=]*=//'
35445 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35446 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35452 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35455 # func_xform libobj-or-source
35458 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35461 # func_arith arithmetic-term...
35464 func_arith_result=`expr "$@"`
35468 # STRING may not start with a hyphen.
35471 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35477 case $lt_shell_append in
35479 cat << \_LT_EOF >> "$cfgfile"
35481 # func_append var value
35482 # Append VALUE to the end of shell variable VAR.
35490 cat << \_LT_EOF >> "$cfgfile"
35492 # func_append var value
35493 # Append VALUE to the end of shell variable VAR.
35504 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35505 || (rm -f "$cfgfile"; exit 1)
35507 mv -f "$cfgfile" "$ofile" ||
35508 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35512 cat <<_LT_EOF >> "$ofile"
35514 # ### BEGIN LIBTOOL TAG CONFIG: RC
35516 # The linker used to build libraries.
35519 # Commands used to build an old-style archive.
35520 old_archive_cmds=$lt_old_archive_cmds_RC
35522 # A language specific compiler.
35525 # Is the compiler the GNU compiler?
35528 # Compiler flag to turn off builtin functions.
35529 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
35531 # How to pass a linker flag through the compiler.
35532 wl=$lt_lt_prog_compiler_wl_RC
35534 # Additional compiler flags for building library objects.
35535 pic_flag=$lt_lt_prog_compiler_pic_RC
35537 # Compiler flag to prevent dynamic linking.
35538 link_static_flag=$lt_lt_prog_compiler_static_RC
35540 # Does compiler simultaneously support -c and -o options?
35541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
35543 # Whether or not to add -lc for building shared libraries.
35544 build_libtool_need_lc=$archive_cmds_need_lc_RC
35546 # Whether or not to disallow shared libs when runtime libs are static.
35547 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
35549 # Compiler flag to allow reflexive dlopens.
35550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
35552 # Compiler flag to generate shared objects directly from archives.
35553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
35555 # Whether the compiler copes with passing no objects directly.
35556 compiler_needs_object=$lt_compiler_needs_object_RC
35558 # Create an old-style archive from a shared archive.
35559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
35561 # Create a temporary old-style archive to link instead of a shared archive.
35562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
35564 # Commands used to build a shared archive.
35565 archive_cmds=$lt_archive_cmds_RC
35566 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
35568 # Commands used to build a loadable module if different from building
35569 # a shared archive.
35570 module_cmds=$lt_module_cmds_RC
35571 module_expsym_cmds=$lt_module_expsym_cmds_RC
35573 # Whether we are building with GNU ld or not.
35574 with_gnu_ld=$lt_with_gnu_ld_RC
35576 # Flag that allows shared libraries with undefined symbols to be built.
35577 allow_undefined_flag=$lt_allow_undefined_flag_RC
35579 # Flag that enforces no undefined symbols.
35580 no_undefined_flag=$lt_no_undefined_flag_RC
35582 # Flag to hardcode \$libdir into a binary during linking.
35583 # This must work even if \$libdir does not exist
35584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
35586 # If ld is used when linking, flag to hardcode \$libdir into a binary
35587 # during linking. This must work even if \$libdir does not exist.
35588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
35590 # Whether we need a single "-rpath" flag with a separated argument.
35591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
35593 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35594 # DIR into the resulting binary.
35595 hardcode_direct=$hardcode_direct_RC
35597 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35598 # DIR into the resulting binary and the resulting library dependency is
35599 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35600 # library is relocated.
35601 hardcode_direct_absolute=$hardcode_direct_absolute_RC
35603 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35604 # into the resulting binary.
35605 hardcode_minus_L=$hardcode_minus_L_RC
35607 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35608 # into the resulting binary.
35609 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
35611 # Set to "yes" if building a shared library automatically hardcodes DIR
35612 # into the library and all subsequent libraries and executables linked
35614 hardcode_automatic=$hardcode_automatic_RC
35616 # Set to yes if linker adds runtime paths of dependent libraries
35617 # to runtime path list.
35618 inherit_rpath=$inherit_rpath_RC
35620 # Whether libtool must link a program against all its dependency libraries.
35621 link_all_deplibs=$link_all_deplibs_RC
35623 # Fix the shell variable \$srcfile for the compiler.
35624 fix_srcfile_path=$lt_fix_srcfile_path_RC
35626 # Set to "yes" if exported symbols are required.
35627 always_export_symbols=$always_export_symbols_RC
35629 # The commands to list exported symbols.
35630 export_symbols_cmds=$lt_export_symbols_cmds_RC
35632 # Symbols that should not be listed in the preloaded symbols.
35633 exclude_expsyms=$lt_exclude_expsyms_RC
35635 # Symbols that must always be exported.
35636 include_expsyms=$lt_include_expsyms_RC
35638 # Commands necessary for linking programs (against libraries) with templates.
35639 prelink_cmds=$lt_prelink_cmds_RC
35641 # Specify filename containing input files.
35642 file_list_spec=$lt_file_list_spec_RC
35644 # How to hardcode a shared library path into an executable.
35645 hardcode_action=$hardcode_action_RC
35647 # ### END LIBTOOL TAG CONFIG: RC
35658 ac_clean_files=$ac_clean_files_save
35660 test $ac_write_fail = 0 ||
35661 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
35664 # configure is writing to config.log, and then calls config.status.
35665 # config.status does its own redirection, appending to config.log.
35666 # Unfortunately, on DOS this fails, as config.log is still kept open
35667 # by configure, so config.status won't be able to write to it; its
35668 # output is simply discarded. So we exec the FD to /dev/null,
35669 # effectively closing config.log, so it can be properly (re)opened and
35670 # appended to by config.status. When coming back to configure, we
35671 # need to make the FD available again.
35672 if test "$no_create" != yes; then
35674 ac_config_status_args=
35675 test "$silent" = yes &&
35676 ac_config_status_args="$ac_config_status_args --quiet"
35678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35681 # would make configure fail if this is the last instruction.
35682 $ac_cs_success || as_fn_exit $?
35684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}