2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gettext-runtime 0.19.8.1.
5 # Report bugs to <bug-gnu-gettext@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bug-gnu-gettext@gnu.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='gettext-runtime'
592 PACKAGE_TARNAME='gettext-runtime'
593 PACKAGE_VERSION='0.19.8.1'
594 PACKAGE_STRING='gettext-runtime 0.19.8.1'
595 PACKAGE_BUGREPORT='bug-gnu-gettext@gnu.org'
598 ac_unique_file="intl/dcigettext.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 gl_use_threads_default=
639 gl_getopt_required=POSIX
640 gl_getopt_required=POSIX
641 enable_option_checking=no
642 ac_subst_vars='gltests_LTLIBOBJS
651 ENABLE_LIBASPRINTF_FALSE
652 ENABLE_LIBASPRINTF_TRUE
663 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
665 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
666 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
667 LIBUNISTRING_UNIWIDTH_H
668 LIBUNISTRING_UNITYPES_H
669 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
670 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
671 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
672 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
673 LIBUNISTRING_UNISTR_H
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
677 UNISTD_H_DEFINES_STRUCT_TIMESPEC
678 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
679 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
680 TIME_H_DEFINES_STRUCT_TIMESPEC
681 NEXT_AS_FIRST_DIRECTIVE_TIME_H
692 HAVE_DECL_LOCALTIME_R
700 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
702 WINDOWS_64_BIT_ST_SIZE
703 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
705 NEXT_AS_FIRST_DIRECTIVE_STRING_H
707 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
709 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
711 GL_GENERATE_STDINT_H_FALSE
712 GL_GENERATE_STDINT_H_TRUE
721 HAVE_SIGNED_SIG_ATOMIC_T
724 BITSIZEOF_SIG_ATOMIC_T
730 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
735 HAVE_UNSIGNED_LONG_LONG_INT
738 GL_GENERATE_STDBOOL_H_FALSE
739 GL_GENERATE_STDBOOL_H_TRUE
749 REPLACE_STDIO_WRITE_FUNCS
750 REPLACE_STDIO_READ_FUNCS
759 REPLACE_OBSTACK_PRINTF
784 HAVE_DECL_OBSTACK_PRINTF
790 GNULIB_VSPRINTF_POSIX
794 GNULIB_VFPRINTF_POSIX
801 GNULIB_STDIO_H_SIGPIPE
802 GNULIB_STDIO_H_NONBLOCKING
817 GNULIB_OBSTACK_PRINTF_POSIX
818 GNULIB_OBSTACK_PRINTF
843 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
846 RELOCATABLE_BUILD_DIR
848 RELOCATABLE_CONFIG_H_DIR
849 RELOCATABLE_LIBRARY_PATH
850 RELOCATABLE_VIA_WRAPPER_FALSE
851 RELOCATABLE_VIA_WRAPPER_TRUE
852 RELOCATABLE_VIA_LD_FALSE
853 RELOCATABLE_VIA_LD_TRUE
858 REPLACE_PTHREAD_SIGMASK
860 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
861 HAVE_STRUCT_SIGACTION_SA_SIGACTION
867 HAVE_POSIX_SIGNALBLOCKING
870 GNULIB_SIGNAL_H_SIGPIPE
872 GNULIB_PTHREAD_SIGMASK
873 APPLE_UNIVERSAL_BUILD
874 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1075 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1078 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1080 GL_GENERATE_STDDEF_H_FALSE
1081 GL_GENERATE_STDDEF_H_TRUE
1086 REPLACE_STRUCT_LCONV
1094 LOCALCHARSET_TESTS_ENVIRONMENT
1095 HAVE_LANGINFO_YESEXPR
1097 HAVE_LANGINFO_T_FMT_AMPM
1098 HAVE_LANGINFO_CODESET
1100 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1108 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1121 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1124 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1126 REPLACE_STRUCT_TIMEVAL
1127 REPLACE_GETTIMEOFDAY
1133 GNULIB_GL_UNISTD_H_GETOPT
1136 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1144 GL_GENERATE_ERRNO_H_FALSE
1145 GL_GENERATE_ERRNO_H_TRUE
1147 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1150 PRAGMA_SYSTEM_HEADER
1151 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1153 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1154 UNISTD_H_HAVE_WINSOCK2_H
1177 REPLACE_GETDTABLESIZE
1178 REPLACE_GETDOMAINNAME
1189 HAVE_DECL_SETHOSTNAME
1190 HAVE_DECL_GETUSERSHELL
1191 HAVE_DECL_GETPAGESIZE
1192 HAVE_DECL_GETLOGIN_R
1193 HAVE_DECL_GETDOMAINNAME
1232 GNULIB_UNISTD_H_SIGPIPE
1233 GNULIB_UNISTD_H_NONBLOCKING
1259 GNULIB_GETDTABLESIZE
1260 GNULIB_GETDOMAINNAME
1292 REPLACE_CANONICALIZE_FILE_NAME
1297 HAVE_STRUCT_RANDOM_DATA
1319 HAVE_DECL_GETLOADAVG
1320 HAVE_CANONICALIZE_FILE_NAME
1331 GNULIB_SECURE_GETENV
1334 GNULIB_REALLOC_POSIX
1352 GNULIB_CANONICALIZE_FILE_NAME
1356 am__fastdepCXX_FALSE
1365 GL_GENERATE_ALLOCA_H_FALSE
1366 GL_GENERATE_ALLOCA_H_TRUE
1368 GL_COND_LIBTOOL_FALSE
1369 GL_COND_LIBTOOL_TRUE
1374 INTL_LIBTOOL_SUFFIX_PREFIX
1380 USE_INCLUDED_LIBINTL
1381 BUILD_INCLUDED_LIBINTL
1391 INTL_DEFAULT_VERBOSITY
1395 GL_GENERATE_ICONV_H_FALSE
1396 GL_GENERATE_ICONV_H_TRUE
1417 XGETTEXT_EXTRA_OPTIONS
1425 GETTEXT_MACRO_VERSION
1505 AM_DEFAULT_VERBOSITY
1516 INSTALL_STRIP_PROGRAM
1559 program_transform_name
1572 enable_option_checking
1574 enable_dependency_tracking
1591 with_libiconv_prefix
1592 with_included_gettext
1598 ac_precious_vars='build_alias
1612 ac_subdirs_all='libasprintf'
1614 # Initialize some variables set by options.
1616 ac_init_version=false
1617 ac_unrecognized_opts=
1618 ac_unrecognized_sep=
1619 # The variables have the same names as the options, with
1620 # dashes changed to underlines.
1621 cache_file=/dev/null
1628 program_transform_name=s,x,x,
1636 # Installation directory options.
1637 # These are left unexpanded so users can "make install exec_prefix=/foo"
1638 # and all the variables that are supposed to be based on exec_prefix
1639 # by default will actually change.
1640 # Use braces instead of parens because sh, perl, etc. also accept them.
1641 # (The list follows the same order as the GNU Coding Standards.)
1642 bindir='${exec_prefix}/bin'
1643 sbindir='${exec_prefix}/sbin'
1644 libexecdir='${exec_prefix}/libexec'
1645 datarootdir='${prefix}/share'
1646 datadir='${datarootdir}'
1647 sysconfdir='${prefix}/etc'
1648 sharedstatedir='${prefix}/com'
1649 localstatedir='${prefix}/var'
1650 runstatedir='${localstatedir}/run'
1651 includedir='${prefix}/include'
1652 oldincludedir='/usr/include'
1653 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1654 infodir='${datarootdir}/info'
1659 libdir='${exec_prefix}/lib'
1660 localedir='${datarootdir}/locale'
1661 mandir='${datarootdir}/man'
1667 # If the previous option needs an argument, assign it.
1668 if test -n "$ac_prev"; then
1669 eval $ac_prev=\$ac_option
1675 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1680 # Accept the important Cygnus configure options, so we can diagnose typos.
1682 case $ac_dashdash$ac_option in
1686 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1688 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1689 bindir=$ac_optarg ;;
1691 -build | --build | --buil | --bui | --bu)
1692 ac_prev=build_alias ;;
1693 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1694 build_alias=$ac_optarg ;;
1696 -cache-file | --cache-file | --cache-fil | --cache-fi \
1697 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1698 ac_prev=cache_file ;;
1699 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1700 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1701 cache_file=$ac_optarg ;;
1703 --config-cache | -C)
1704 cache_file=config.cache ;;
1706 -datadir | --datadir | --datadi | --datad)
1708 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1709 datadir=$ac_optarg ;;
1711 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1712 | --dataroo | --dataro | --datar)
1713 ac_prev=datarootdir ;;
1714 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1715 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1716 datarootdir=$ac_optarg ;;
1718 -disable-* | --disable-*)
1719 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1720 # Reject names that are not valid shell variable names.
1721 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1722 as_fn_error $? "invalid feature name: $ac_useropt"
1723 ac_useropt_orig=$ac_useropt
1724 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1725 case $ac_user_opts in
1727 "enable_$ac_useropt"
1729 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1730 ac_unrecognized_sep=', ';;
1732 eval enable_$ac_useropt=no ;;
1734 -docdir | --docdir | --docdi | --doc | --do)
1736 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1737 docdir=$ac_optarg ;;
1739 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1741 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1742 dvidir=$ac_optarg ;;
1744 -enable-* | --enable-*)
1745 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1746 # Reject names that are not valid shell variable names.
1747 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1748 as_fn_error $? "invalid feature name: $ac_useropt"
1749 ac_useropt_orig=$ac_useropt
1750 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751 case $ac_user_opts in
1753 "enable_$ac_useropt"
1755 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1756 ac_unrecognized_sep=', ';;
1758 eval enable_$ac_useropt=\$ac_optarg ;;
1760 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1761 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1762 | --exec | --exe | --ex)
1763 ac_prev=exec_prefix ;;
1764 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1765 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1766 | --exec=* | --exe=* | --ex=*)
1767 exec_prefix=$ac_optarg ;;
1769 -gas | --gas | --ga | --g)
1770 # Obsolete; use --with-gas.
1773 -help | --help | --hel | --he | -h)
1774 ac_init_help=long ;;
1775 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1776 ac_init_help=recursive ;;
1777 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1778 ac_init_help=short ;;
1780 -host | --host | --hos | --ho)
1781 ac_prev=host_alias ;;
1782 -host=* | --host=* | --hos=* | --ho=*)
1783 host_alias=$ac_optarg ;;
1785 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1787 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1789 htmldir=$ac_optarg ;;
1791 -includedir | --includedir | --includedi | --included | --include \
1792 | --includ | --inclu | --incl | --inc)
1793 ac_prev=includedir ;;
1794 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1795 | --includ=* | --inclu=* | --incl=* | --inc=*)
1796 includedir=$ac_optarg ;;
1798 -infodir | --infodir | --infodi | --infod | --info | --inf)
1800 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1801 infodir=$ac_optarg ;;
1803 -libdir | --libdir | --libdi | --libd)
1805 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1806 libdir=$ac_optarg ;;
1808 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1809 | --libexe | --libex | --libe)
1810 ac_prev=libexecdir ;;
1811 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1812 | --libexe=* | --libex=* | --libe=*)
1813 libexecdir=$ac_optarg ;;
1815 -localedir | --localedir | --localedi | --localed | --locale)
1816 ac_prev=localedir ;;
1817 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1818 localedir=$ac_optarg ;;
1820 -localstatedir | --localstatedir | --localstatedi | --localstated \
1821 | --localstate | --localstat | --localsta | --localst | --locals)
1822 ac_prev=localstatedir ;;
1823 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1824 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1825 localstatedir=$ac_optarg ;;
1827 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1829 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1830 mandir=$ac_optarg ;;
1832 -nfp | --nfp | --nf)
1833 # Obsolete; use --without-fp.
1836 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1837 | --no-cr | --no-c | -n)
1840 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1841 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1844 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1845 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1846 | --oldin | --oldi | --old | --ol | --o)
1847 ac_prev=oldincludedir ;;
1848 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1849 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1850 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1851 oldincludedir=$ac_optarg ;;
1853 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1855 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1856 prefix=$ac_optarg ;;
1858 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1859 | --program-pre | --program-pr | --program-p)
1860 ac_prev=program_prefix ;;
1861 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1862 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1863 program_prefix=$ac_optarg ;;
1865 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1866 | --program-suf | --program-su | --program-s)
1867 ac_prev=program_suffix ;;
1868 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1869 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1870 program_suffix=$ac_optarg ;;
1872 -program-transform-name | --program-transform-name \
1873 | --program-transform-nam | --program-transform-na \
1874 | --program-transform-n | --program-transform- \
1875 | --program-transform | --program-transfor \
1876 | --program-transfo | --program-transf \
1877 | --program-trans | --program-tran \
1878 | --progr-tra | --program-tr | --program-t)
1879 ac_prev=program_transform_name ;;
1880 -program-transform-name=* | --program-transform-name=* \
1881 | --program-transform-nam=* | --program-transform-na=* \
1882 | --program-transform-n=* | --program-transform-=* \
1883 | --program-transform=* | --program-transfor=* \
1884 | --program-transfo=* | --program-transf=* \
1885 | --program-trans=* | --program-tran=* \
1886 | --progr-tra=* | --program-tr=* | --program-t=*)
1887 program_transform_name=$ac_optarg ;;
1889 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1891 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1892 pdfdir=$ac_optarg ;;
1894 -psdir | --psdir | --psdi | --psd | --ps)
1896 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900 | -silent | --silent | --silen | --sile | --sil)
1903 -runstatedir | --runstatedir | --runstatedi | --runstated \
1904 | --runstate | --runstat | --runsta | --runst | --runs \
1905 | --run | --ru | --r)
1906 ac_prev=runstatedir ;;
1907 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1908 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1909 | --run=* | --ru=* | --r=*)
1910 runstatedir=$ac_optarg ;;
1912 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1914 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1916 sbindir=$ac_optarg ;;
1918 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1919 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1920 | --sharedst | --shareds | --shared | --share | --shar \
1922 ac_prev=sharedstatedir ;;
1923 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1924 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1925 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1927 sharedstatedir=$ac_optarg ;;
1929 -site | --site | --sit)
1931 -site=* | --site=* | --sit=*)
1934 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1936 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1937 srcdir=$ac_optarg ;;
1939 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1940 | --syscon | --sysco | --sysc | --sys | --sy)
1941 ac_prev=sysconfdir ;;
1942 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1943 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1944 sysconfdir=$ac_optarg ;;
1946 -target | --target | --targe | --targ | --tar | --ta | --t)
1947 ac_prev=target_alias ;;
1948 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1949 target_alias=$ac_optarg ;;
1951 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1954 -version | --version | --versio | --versi | --vers | -V)
1955 ac_init_version=: ;;
1958 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1959 # Reject names that are not valid shell variable names.
1960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1961 as_fn_error $? "invalid package name: $ac_useropt"
1962 ac_useropt_orig=$ac_useropt
1963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1964 case $ac_user_opts in
1968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1969 ac_unrecognized_sep=', ';;
1971 eval with_$ac_useropt=\$ac_optarg ;;
1973 -without-* | --without-*)
1974 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1975 # Reject names that are not valid shell variable names.
1976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1977 as_fn_error $? "invalid package name: $ac_useropt"
1978 ac_useropt_orig=$ac_useropt
1979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1980 case $ac_user_opts in
1984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1985 ac_unrecognized_sep=', ';;
1987 eval with_$ac_useropt=no ;;
1990 # Obsolete; use --with-x.
1993 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1994 | --x-incl | --x-inc | --x-in | --x-i)
1995 ac_prev=x_includes ;;
1996 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1997 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1998 x_includes=$ac_optarg ;;
2000 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2001 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2002 ac_prev=x_libraries ;;
2003 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2004 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2005 x_libraries=$ac_optarg ;;
2007 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2008 Try \`$0 --help' for more information"
2012 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2013 # Reject names that are not valid shell variable names.
2014 case $ac_envvar in #(
2015 '' | [0-9]* | *[!_$as_cr_alnum]* )
2016 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2018 eval $ac_envvar=\$ac_optarg
2019 export $ac_envvar ;;
2022 # FIXME: should be removed in autoconf 3.0.
2023 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2024 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2025 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2026 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2032 if test -n "$ac_prev"; then
2033 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2034 as_fn_error $? "missing argument to $ac_option"
2037 if test -n "$ac_unrecognized_opts"; then
2038 case $enable_option_checking in
2040 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2041 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2045 # Check all directory arguments for consistency.
2046 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2047 datadir sysconfdir sharedstatedir localstatedir includedir \
2048 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2049 libdir localedir mandir runstatedir
2051 eval ac_val=\$$ac_var
2052 # Remove trailing slashes.
2055 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2056 eval $ac_var=\$ac_val;;
2058 # Be sure to have absolute directory names.
2060 [\\/$]* | ?:[\\/]* ) continue;;
2061 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2063 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2066 # There might be people who depend on the old broken behavior: `$host'
2067 # used to hold the argument of --host etc.
2068 # FIXME: To remove some day.
2071 target=$target_alias
2073 # FIXME: To remove some day.
2074 if test "x$host_alias" != x; then
2075 if test "x$build_alias" = x; then
2076 cross_compiling=maybe
2077 elif test "x$build_alias" != "x$host_alias"; then
2083 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2085 test "$silent" = yes && exec 6>/dev/null
2088 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2089 ac_ls_di=`ls -di .` &&
2090 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2091 as_fn_error $? "working directory cannot be determined"
2092 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2093 as_fn_error $? "pwd does not report name of working directory"
2096 # Find the source files, if location was not specified.
2097 if test -z "$srcdir"; then
2098 ac_srcdir_defaulted=yes
2099 # Try the directory containing this script, then the parent directory.
2100 ac_confdir=`$as_dirname -- "$as_myself" ||
2101 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2102 X"$as_myself" : 'X\(//\)[^/]' \| \
2103 X"$as_myself" : 'X\(//\)$' \| \
2104 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2105 $as_echo X"$as_myself" |
2106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2124 if test ! -r "$srcdir/$ac_unique_file"; then
2128 ac_srcdir_defaulted=no
2130 if test ! -r "$srcdir/$ac_unique_file"; then
2131 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2132 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2134 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2136 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2138 # When building in place, set srcdir=.
2139 if test "$ac_abs_confdir" = "$ac_pwd"; then
2142 # Remove unnecessary trailing slashes from srcdir.
2143 # Double slashes in file names in object file debugging info
2144 # mess up M-x gdb in Emacs.
2146 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2150 eval ac_env_${ac_var}_value=\$${ac_var}
2151 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2152 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2156 # Report the --help message.
2158 if test "$ac_init_help" = "long"; then
2159 # Omit some internal or obsolete options to make the list less imposing.
2160 # This message is too long to be a string in the A/UX 3.1 sh.
2162 \`configure' configures gettext-runtime 0.19.8.1 to adapt to many kinds of systems.
2164 Usage: $0 [OPTION]... [VAR=VALUE]...
2166 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2167 VAR=VALUE. See below for descriptions of some of the useful variables.
2169 Defaults for the options are specified in brackets.
2172 -h, --help display this help and exit
2173 --help=short display options specific to this package
2174 --help=recursive display the short help of all the included packages
2175 -V, --version display version information and exit
2176 -q, --quiet, --silent do not print \`checking ...' messages
2177 --cache-file=FILE cache test results in FILE [disabled]
2178 -C, --config-cache alias for \`--cache-file=config.cache'
2179 -n, --no-create do not create output files
2180 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2182 Installation directories:
2183 --prefix=PREFIX install architecture-independent files in PREFIX
2184 [$ac_default_prefix]
2185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2188 By default, \`make install' will install all the files in
2189 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2190 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2191 for instance \`--prefix=\$HOME'.
2193 For better control, use the options below.
2195 Fine tuning of the installation directories:
2196 --bindir=DIR user executables [EPREFIX/bin]
2197 --sbindir=DIR system admin executables [EPREFIX/sbin]
2198 --libexecdir=DIR program executables [EPREFIX/libexec]
2199 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2200 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2201 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2202 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2203 --libdir=DIR object code libraries [EPREFIX/lib]
2204 --includedir=DIR C header files [PREFIX/include]
2205 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2206 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2207 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2208 --infodir=DIR info documentation [DATAROOTDIR/info]
2209 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2210 --mandir=DIR man documentation [DATAROOTDIR/man]
2211 --docdir=DIR documentation root [DATAROOTDIR/doc/gettext-runtime]
2212 --htmldir=DIR html documentation [DOCDIR]
2213 --dvidir=DIR dvi documentation [DOCDIR]
2214 --pdfdir=DIR pdf documentation [DOCDIR]
2215 --psdir=DIR ps documentation [DOCDIR]
2221 --program-prefix=PREFIX prepend PREFIX to installed program names
2222 --program-suffix=SUFFIX append SUFFIX to installed program names
2223 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2226 --build=BUILD configure for building on BUILD [guessed]
2227 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2231 if test -n "$ac_init_help"; then
2232 case $ac_init_help in
2233 short | recursive ) echo "Configuration of gettext-runtime 0.19.8.1:";;
2238 --disable-option-checking ignore unrecognized --enable/--with options
2239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2241 --enable-silent-rules less verbose build output (undo: "make V=1")
2242 --disable-silent-rules verbose build output (undo: "make V=0")
2243 --enable-dependency-tracking
2244 do not reject slow dependency extractors
2245 --disable-dependency-tracking
2246 speeds up one-time build
2247 --disable-java do not build Java sources
2248 --disable-native-java do not compile Java to native executables
2249 --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono)
2250 --disable-largefile omit support for large files
2251 --enable-threads={posix|solaris|pth|windows}
2252 specify multithreading API
2253 --disable-threads build without multithread safety
2254 --enable-shared[=PKGS] build shared libraries [default=yes]
2255 --enable-static[=PKGS] build static libraries [default=yes]
2256 --enable-fast-install[=PKGS]
2257 optimize for fast installation [default=yes]
2258 --disable-libtool-lock avoid locking (might break parallel builds)
2259 --disable-nls do not use Native Language Support
2260 --disable-rpath do not hardcode runtime library paths
2261 --disable-c++ do not build C++ sources
2262 --enable-relocatable install a package that can be moved in the file
2264 --disable-libasprintf do not build libasprintf
2267 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2268 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2269 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2271 --with-aix-soname=aix|svr4|both
2272 shared library versioning (aka "SONAME") variant to
2273 provide on AIX, [default=aix].
2274 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2275 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2276 compiler's sysroot if not specified).
2277 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2278 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2279 --without-libpth-prefix don't search for libpth in includedir and libdir
2280 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2281 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2282 --with-included-gettext use the GNU gettext library included here
2283 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2284 --without-libintl-prefix don't search for libintl in includedir and libdir
2286 Some influential environment variables:
2287 CC C compiler command
2288 CFLAGS C compiler flags
2289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2290 nonstandard directory <lib dir>
2291 LIBS libraries to pass to the linker, e.g. -l<library>
2292 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2293 you have headers in a nonstandard directory <include dir>
2294 YACC The `Yet Another Compiler Compiler' implementation to use.
2295 Defaults to the first program found out of: `bison -y', `byacc',
2297 YFLAGS The list of arguments that will be passed by default to $YACC.
2298 This script will default YFLAGS to the empty string to avoid a
2299 default value of `-d' given by some make applications.
2302 User-defined run-time library search path.
2303 CXX C++ compiler command
2304 CXXFLAGS C++ compiler flags
2306 Use these variables to override the choices made by `configure' or to help
2307 it to find libraries and programs with nonstandard names/locations.
2309 Report bugs to <bug-gnu-gettext@gnu.org>.
2314 if test "$ac_init_help" = "recursive"; then
2315 # If there are subdirs, report their specific --help.
2316 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2317 test -d "$ac_dir" ||
2318 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2326 # A ".." for each directory in $ac_dir_suffix.
2327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2328 case $ac_top_builddir_sub in
2329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2333 ac_abs_top_builddir=$ac_pwd
2334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2335 # for backward compatibility:
2336 ac_top_builddir=$ac_top_build_prefix
2339 .) # We are building in place.
2341 ac_top_srcdir=$ac_top_builddir_sub
2342 ac_abs_top_srcdir=$ac_pwd ;;
2343 [\\/]* | ?:[\\/]* ) # Absolute name.
2344 ac_srcdir=$srcdir$ac_dir_suffix;
2345 ac_top_srcdir=$srcdir
2346 ac_abs_top_srcdir=$srcdir ;;
2348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2349 ac_top_srcdir=$ac_top_build_prefix$srcdir
2350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2354 cd "$ac_dir" || { ac_status=$?; continue; }
2355 # Check for guested configure.
2356 if test -f "$ac_srcdir/configure.gnu"; then
2358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2359 elif test -f "$ac_srcdir/configure"; then
2361 $SHELL "$ac_srcdir/configure" --help=recursive
2363 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2365 cd "$ac_pwd" || { ac_status=$?; break; }
2369 test -n "$ac_init_help" && exit $ac_status
2370 if $ac_init_version; then
2372 gettext-runtime configure 0.19.8.1
2373 generated by GNU Autoconf 2.69
2375 Copyright (C) 2012 Free Software Foundation, Inc.
2376 This configure script is free software; the Free Software Foundation
2377 gives unlimited permission to copy, distribute and modify it.
2382 ## ------------------------ ##
2383 ## Autoconf initialization. ##
2384 ## ------------------------ ##
2386 # ac_fn_c_try_compile LINENO
2387 # --------------------------
2388 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2389 ac_fn_c_try_compile ()
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 rm -f conftest.$ac_objext
2393 if { { ac_try="$ac_compile"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399 $as_echo "$ac_try_echo"; } >&5
2400 (eval "$ac_compile") 2>conftest.err
2402 if test -s conftest.err; then
2403 grep -v '^ *+' conftest.err >conftest.er1
2404 cat conftest.er1 >&5
2405 mv -f conftest.er1 conftest.err
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then :
2414 $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420 as_fn_set_status $ac_retval
2422 } # ac_fn_c_try_compile
2424 # ac_fn_c_try_cpp LINENO
2425 # ----------------------
2426 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430 if { { ac_try="$ac_cpp conftest.$ac_ext"
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2439 if test -s conftest.err; then
2440 grep -v '^ *+' conftest.err >conftest.er1
2441 cat conftest.er1 >&5
2442 mv -f conftest.er1 conftest.err
2444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2445 test $ac_status = 0; } > conftest.i && {
2446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2447 test ! -s conftest.err
2451 $as_echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 as_fn_set_status $ac_retval
2461 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2462 # -------------------------------------------------------
2463 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2464 # the include files in INCLUDES and setting the cache variable VAR
2466 ac_fn_c_check_header_mongrel ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 if eval \${$3+:} false; then :
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if eval \${$3+:} false; then :
2473 $as_echo_n "(cached) " >&6
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2479 # Is the header compilable?
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2481 $as_echo_n "checking $2 usability... " >&6; }
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488 ac_header_compiler=yes
2490 ac_header_compiler=no
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2494 $as_echo "$ac_header_compiler" >&6; }
2496 # Is the header present?
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2498 $as_echo_n "checking $2 presence... " >&6; }
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2503 if ac_fn_c_try_cpp "$LINENO"; then :
2504 ac_header_preproc=yes
2506 ac_header_preproc=no
2508 rm -f conftest.err conftest.i conftest.$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2510 $as_echo "$ac_header_preproc" >&6; }
2512 # So? What about this header?
2513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2516 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2518 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2522 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2524 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2526 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2528 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2530 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2531 ( $as_echo "## -------------------------------------- ##
2532 ## Report this to bug-gnu-gettext@gnu.org ##
2533 ## -------------------------------------- ##"
2534 ) | sed "s/^/$as_me: WARNING: /" >&2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538 $as_echo_n "checking for $2... " >&6; }
2539 if eval \${$3+:} false; then :
2540 $as_echo_n "(cached) " >&6
2542 eval "$3=\$ac_header_compiler"
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2550 } # ac_fn_c_check_header_mongrel
2552 # ac_fn_c_try_run LINENO
2553 # ----------------------
2554 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2555 # that executables *can* be run.
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 if { { ac_try="$ac_link"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565 $as_echo "$ac_try_echo"; } >&5
2566 (eval "$ac_link") 2>&5
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2570 { { case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_try") 2>&5
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; }; }; then :
2582 $as_echo "$as_me: program exited with status $ac_status" >&5
2583 $as_echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_retval=$ac_status
2588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590 as_fn_set_status $ac_retval
2594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2595 # -------------------------------------------------------
2596 # Tests whether HEADER exists and can be compiled using the include files in
2597 # INCLUDES, setting the cache variable VAR accordingly.
2598 ac_fn_c_check_header_compile ()
2600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2602 $as_echo_n "checking for $2... " >&6; }
2603 if eval \${$3+:} false; then :
2604 $as_echo_n "(cached) " >&6
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2611 if ac_fn_c_try_compile "$LINENO"; then :
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2623 } # ac_fn_c_check_header_compile
2625 # ac_fn_c_try_link LINENO
2626 # -----------------------
2627 # Try to link conftest.$ac_ext, and return whether this succeeded.
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 rm -f conftest.$ac_objext conftest$ac_exeext
2632 if { { ac_try="$ac_link"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_link") 2>conftest.err
2641 if test -s conftest.err; then
2642 grep -v '^ *+' conftest.err >conftest.er1
2643 cat conftest.er1 >&5
2644 mv -f conftest.er1 conftest.err
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; } && {
2648 test -z "$ac_c_werror_flag" ||
2649 test ! -s conftest.err
2650 } && test -s conftest$ac_exeext && {
2651 test "$cross_compiling" = yes ||
2652 test -x conftest$ac_exeext
2656 $as_echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2663 # interfere with the next link command; also delete a directory that is
2664 # left behind by Apple's compiler. We do this before executing the actions.
2665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667 as_fn_set_status $ac_retval
2669 } # ac_fn_c_try_link
2671 # ac_fn_c_check_func LINENO FUNC VAR
2672 # ----------------------------------
2673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2674 ac_fn_c_check_func ()
2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2686 #define $2 innocuous_$2
2688 /* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char $2 (); below.
2690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2691 <limits.h> exists even on freestanding compilers. */
2694 # include <limits.h>
2696 # include <assert.h>
2701 /* Override any GCC internal prototype to avoid an error.
2702 Use char because int might match the return type of a GCC
2703 builtin and then its argument prototype would still apply. */
2708 /* The GNU C library defines this for functions which it implements
2709 to always fail with ENOSYS. Some functions are actually named
2710 something starting with __ and the normal name is an alias. */
2711 #if defined __stub_$2 || defined __stub___$2
2723 if ac_fn_c_try_link "$LINENO"; then :
2728 rm -f core conftest.err conftest.$ac_objext \
2729 conftest$ac_exeext conftest.$ac_ext
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736 } # ac_fn_c_check_func
2738 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2739 # -------------------------------------------
2740 # Tests whether TYPE exists after having included INCLUDES, setting cache
2741 # variable VAR accordingly.
2742 ac_fn_c_check_type ()
2744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2746 $as_echo_n "checking for $2... " >&6; }
2747 if eval \${$3+:} false; then :
2748 $as_echo_n "(cached) " >&6
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2763 if ac_fn_c_try_compile "$LINENO"; then :
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2776 if ac_fn_c_try_compile "$LINENO"; then :
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 } # ac_fn_c_check_type
2792 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2793 # ---------------------------------------------
2794 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796 ac_fn_c_check_decl ()
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 as_decl_name=`echo $2|sed 's/ *(.*//'`
2800 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2802 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2803 if eval \${$3+:} false; then :
2804 $as_echo_n "(cached) " >&6
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2812 #ifndef $as_decl_name
2814 (void) $as_decl_use;
2816 (void) $as_decl_name;
2824 if ac_fn_c_try_compile "$LINENO"; then :
2829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2833 $as_echo "$ac_res" >&6; }
2834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836 } # ac_fn_c_check_decl
2838 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2839 # --------------------------------------------
2840 # Tries to find the compile-time value of EXPR in a program that includes
2841 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2843 ac_fn_c_compute_int ()
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 if test "$cross_compiling" = yes; then
2847 # Depending upon the size, compute the lo and hi bounds.
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2854 static int test_array [1 - 2 * !(($2) >= 0)];
2856 return test_array [0];
2862 if ac_fn_c_try_compile "$LINENO"; then :
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2871 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2873 return test_array [0];
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880 ac_hi=$ac_mid; break
2882 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2883 if test $ac_lo -le $ac_mid; then
2887 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2898 static int test_array [1 - 2 * !(($2) < 0)];
2900 return test_array [0];
2906 if ac_fn_c_try_compile "$LINENO"; then :
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2915 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2917 return test_array [0];
2923 if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_lo=$ac_mid; break
2926 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2927 if test $ac_mid -le $ac_hi; then
2931 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 # Binary search between lo and hi bounds.
2942 while test "x$ac_lo" != "x$ac_hi"; do
2943 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2950 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2952 return test_array [0];
2958 if ac_fn_c_try_compile "$LINENO"; then :
2961 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2973 static long int longval () { return $2; }
2974 static unsigned long int ulongval () { return $2; }
2981 FILE *f = fopen ("conftest.val", "w");
2986 long int i = longval ();
2989 fprintf (f, "%ld", i);
2993 unsigned long int i = ulongval ();
2996 fprintf (f, "%lu", i);
2998 /* Do not output a trailing newline, as this causes \r\n confusion
2999 on some platforms. */
3000 return ferror (f) || fclose (f) != 0;
3006 if ac_fn_c_try_run "$LINENO"; then :
3007 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3012 conftest.$ac_objext conftest.beam conftest.$ac_ext
3016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3017 as_fn_set_status $ac_retval
3019 } # ac_fn_c_compute_int
3020 cat >config.log <<_ACEOF
3021 This file contains any messages produced by compilers while
3022 running configure, to aid debugging if configure makes a mistake.
3024 It was created by gettext-runtime $as_me 0.19.8.1, which was
3025 generated by GNU Autoconf 2.69. Invocation command line was
3037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3049 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 $as_echo "PATH: $as_dir"
3077 # Keep a trace of the command line.
3078 # Strip out --no-create and --no-recursion so they do not pile up.
3079 # Strip out --silent because we don't want to record it for future runs.
3080 # Also quote any args containing shell meta-characters.
3081 # Make two passes to allow for proper duplicate-argument suppression.
3085 ac_must_keep_next=false
3091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3093 | -silent | --silent | --silen | --sile | --sil)
3096 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3101 as_fn_append ac_configure_args1 " '$ac_arg'"
3102 if test $ac_must_keep_next = true; then
3103 ac_must_keep_next=false # Got value, back to normal.
3106 *=* | --config-cache | -C | -disable-* | --disable-* \
3107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3109 | -with-* | --with-* | -without-* | --without-* | --x)
3110 case "$ac_configure_args0 " in
3111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3114 -* ) ac_must_keep_next=true ;;
3117 as_fn_append ac_configure_args " '$ac_arg'"
3122 { ac_configure_args0=; unset ac_configure_args0;}
3123 { ac_configure_args1=; unset ac_configure_args1;}
3125 # When interrupted or exit'd, cleanup temporary files, and complete
3126 # config.log. We remove comments because anyway the quotes in there
3127 # would cause problems or look ugly.
3128 # WARNING: Use '\'' to represent an apostrophe within the trap.
3129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3130 trap 'exit_status=$?
3131 # Save into config.log some information that might help in debugging.
3135 $as_echo "## ---------------- ##
3136 ## Cache variables. ##
3137 ## ---------------- ##"
3139 # The following way of writing the cache mishandles newlines in values,
3141 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3142 eval ac_val=\$$ac_var
3146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3150 _ | IFS | as_nl) ;; #(
3151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3152 *) { eval $ac_var=; unset $ac_var;} ;;
3157 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3158 *${as_nl}ac_space=\ *)
3160 "s/'\''/'\''\\\\'\'''\''/g;
3161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3171 $as_echo "## ----------------- ##
3172 ## Output variables. ##
3173 ## ----------------- ##"
3175 for ac_var in $ac_subst_vars
3177 eval ac_val=\$$ac_var
3179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3181 $as_echo "$ac_var='\''$ac_val'\''"
3185 if test -n "$ac_subst_files"; then
3186 $as_echo "## ------------------- ##
3187 ## File substitutions. ##
3188 ## ------------------- ##"
3190 for ac_var in $ac_subst_files
3192 eval ac_val=\$$ac_var
3194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3196 $as_echo "$ac_var='\''$ac_val'\''"
3201 if test -s confdefs.h; then
3202 $as_echo "## ----------- ##
3209 test "$ac_signal" != 0 &&
3210 $as_echo "$as_me: caught signal $ac_signal"
3211 $as_echo "$as_me: exit $exit_status"
3213 rm -f core *.core core.conftest.* &&
3214 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3217 for ac_signal in 1 2 13 15; do
3218 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3223 rm -f -r conftest* confdefs.h
3225 $as_echo "/* confdefs.h */" > confdefs.h
3227 # Predefined preprocessor variables.
3229 cat >>confdefs.h <<_ACEOF
3230 #define PACKAGE_NAME "$PACKAGE_NAME"
3233 cat >>confdefs.h <<_ACEOF
3234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3241 cat >>confdefs.h <<_ACEOF
3242 #define PACKAGE_STRING "$PACKAGE_STRING"
3245 cat >>confdefs.h <<_ACEOF
3246 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3249 cat >>confdefs.h <<_ACEOF
3250 #define PACKAGE_URL "$PACKAGE_URL"
3254 # Let the site file select an alternate cache file if it wants to.
3255 # Prefer an explicitly selected file to automatically selected ones.
3258 if test -n "$CONFIG_SITE"; then
3259 # We do not want a PATH search for config.site.
3260 case $CONFIG_SITE in #((
3261 -*) ac_site_file1=./$CONFIG_SITE;;
3262 */*) ac_site_file1=$CONFIG_SITE;;
3263 *) ac_site_file1=./$CONFIG_SITE;;
3265 elif test "x$prefix" != xNONE; then
3266 ac_site_file1=$prefix/share/config.site
3267 ac_site_file2=$prefix/etc/config.site
3269 ac_site_file1=$ac_default_prefix/share/config.site
3270 ac_site_file2=$ac_default_prefix/etc/config.site
3272 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3274 test "x$ac_site_file" = xNONE && continue
3275 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3277 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3278 sed 's/^/| /' "$ac_site_file" >&5
3280 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "failed to load site script $ac_site_file
3283 See \`config.log' for more details" "$LINENO" 5; }
3287 if test -r "$cache_file"; then
3288 # Some versions of bash will fail to source /dev/null (special files
3289 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3290 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3292 $as_echo "$as_me: loading cache $cache_file" >&6;}
3294 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3295 *) . "./$cache_file";;
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3300 $as_echo "$as_me: creating cache $cache_file" >&6;}
3304 gt_needs="$gt_needs need-ngettext"
3305 as_fn_append ac_header_list " stdlib.h"
3306 as_fn_append ac_header_list " unistd.h"
3307 as_fn_append ac_header_list " sys/param.h"
3308 as_fn_append ac_func_list " symlink"
3309 as_fn_append ac_header_list " string.h"
3310 as_fn_append ac_func_list " canonicalize_file_name"
3311 as_fn_append ac_func_list " getcwd"
3312 as_fn_append ac_func_list " readlink"
3313 as_fn_append ac_func_list " realpath"
3314 as_fn_append ac_func_list " readlinkat"
3315 gl_getopt_required=GNU
3316 as_fn_append ac_header_list " getopt.h"
3317 as_fn_append ac_header_list " sys/time.h"
3318 as_fn_append ac_header_list " sys/socket.h"
3319 as_fn_append ac_func_list " gettimeofday"
3320 as_fn_append ac_header_list " iconv.h"
3321 as_fn_append ac_func_list " iswcntrl"
3322 as_fn_append ac_header_list " wctype.h"
3323 as_fn_append ac_func_list " iswblank"
3324 as_fn_append ac_header_list " langinfo.h"
3325 as_fn_append ac_header_list " xlocale.h"
3326 as_fn_append ac_func_list " lstat"
3327 as_fn_append ac_func_list " mbsinit"
3328 as_fn_append ac_func_list " mbrtowc"
3329 as_fn_append ac_func_list " mbslen"
3330 as_fn_append ac_header_list " sys/mman.h"
3331 as_fn_append ac_func_list " mprotect"
3332 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3333 as_fn_append ac_func_list " setenv"
3334 as_fn_append ac_header_list " wchar.h"
3335 as_fn_append ac_header_list " stdint.h"
3336 as_fn_append ac_header_list " sys/stat.h"
3337 as_fn_append ac_header_list " features.h"
3338 as_fn_append ac_func_list " wcwidth"
3339 # Check that the precious variables saved in the cache have kept the same
3341 ac_cache_corrupted=false
3342 for ac_var in $ac_precious_vars; do
3343 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3344 eval ac_new_set=\$ac_env_${ac_var}_set
3345 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3346 eval ac_new_val=\$ac_env_${ac_var}_value
3347 case $ac_old_set,$ac_new_set in
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3351 ac_cache_corrupted=: ;;
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3355 ac_cache_corrupted=: ;;
3358 if test "x$ac_old_val" != "x$ac_new_val"; then
3359 # differences in whitespace do not lead to failure.
3360 ac_old_val_w=`echo x $ac_old_val`
3361 ac_new_val_w=`echo x $ac_new_val`
3362 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3365 ac_cache_corrupted=:
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3369 eval $ac_var=\$ac_old_val
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3372 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3374 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3377 # Pass precious variables to config.status.
3378 if test "$ac_new_set" = set; then
3380 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3381 *) ac_arg=$ac_var=$ac_new_val ;;
3383 case " $ac_configure_args " in
3384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3385 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3389 if $ac_cache_corrupted; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3394 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3396 ## -------------------- ##
3397 ## Main body of script. ##
3398 ## -------------------- ##
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3410 if test -f "$ac_dir/install-sh"; then
3412 ac_install_sh="$ac_aux_dir/install-sh -c"
3414 elif test -f "$ac_dir/install.sh"; then
3416 ac_install_sh="$ac_aux_dir/install.sh -c"
3418 elif test -f "$ac_dir/shtool"; then
3420 ac_install_sh="$ac_aux_dir/shtool install -c"
3424 if test -z "$ac_aux_dir"; then
3425 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
3428 # These three variables are undocumented and unsupported,
3429 # and are intended to be withdrawn in a future Autoconf release.
3430 # They can cause serious problems if a builder's source tree is in a directory
3431 # whose full name contains unusual characters.
3432 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3433 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3434 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3437 am__api_version='1.15'
3439 # Find a good install program. We prefer a C program (faster),
3440 # so one script is as good as another. But avoid the broken or
3441 # incompatible versions:
3442 # SysV /etc/install, /usr/sbin/install
3443 # SunOS /usr/etc/install
3444 # IRIX /sbin/install
3446 # AmigaOS /C/install, which installs bootblocks on floppy discs
3447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3450 # OS/2's system install, which has a completely different semantic
3451 # ./install, which can be erroneously created by make from ./install.sh.
3452 # Reject install programs that cannot install multiple files.
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3455 if test -z "$INSTALL"; then
3456 if ${ac_cv_path_install+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir=.
3464 # Account for people who put trailing slashes in PATH elements.
3465 case $as_dir/ in #((
3466 ./ | .// | /[cC]/* | \
3467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3471 # OSF1 and SCO ODT 3.0 have their own names for install.
3472 # Don't use installbsd from OSF since it installs stuff as root
3474 for ac_prog in ginstall scoinst install; do
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3477 if test $ac_prog = install &&
3478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3479 # AIX install. It has an incompatible calling convention.
3481 elif test $ac_prog = install &&
3482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3483 # program-specific install script used by HP pwplus--don't use.
3486 rm -rf conftest.one conftest.two conftest.dir
3487 echo one > conftest.one
3488 echo two > conftest.two
3490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3491 test -s conftest.one && test -s conftest.two &&
3492 test -s conftest.dir/conftest.one &&
3493 test -s conftest.dir/conftest.two
3495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3508 rm -rf conftest.one conftest.two conftest.dir
3511 if test "${ac_cv_path_install+set}" = set; then
3512 INSTALL=$ac_cv_path_install
3514 # As a last resort, use the slow shell script. Don't cache a
3515 # value for INSTALL within a source directory, because that will
3516 # break other packages using the cache if that directory is
3517 # removed, or if the value is a relative name.
3518 INSTALL=$ac_install_sh
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3522 $as_echo "$INSTALL" >&6; }
3524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3525 # It thinks the first close brace ends the variable substitution.
3526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3533 $as_echo_n "checking whether build environment is sane... " >&6; }
3534 # Reject unsafe characters in $srcdir or the absolute working directory
3535 # name. Accept space and tab only in the latter.
3539 *[\\\"\#\$\&\'\`$am_lf]*)
3540 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3543 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3544 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3547 # Do 'set' in a subshell so we don't clobber the current shell's
3548 # arguments. Must try -L first in case configure is actually a
3549 # symlink; some systems play weird games with the mod time of symlinks
3550 # (eg FreeBSD returns the mod time of the symlink's containing
3554 for am_try in 1 2; do
3555 echo "timestamp, slept: $am_has_slept" > conftest.file
3556 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3557 if test "$*" = "X"; then
3559 set X `ls -t "$srcdir/configure" conftest.file`
3561 if test "$*" != "X $srcdir/configure conftest.file" \
3562 && test "$*" != "X conftest.file $srcdir/configure"; then
3564 # If neither matched, then we have a broken ls. This can happen
3565 # if, for instance, CONFIG_SHELL is bash and it inherits a
3566 # broken ls alias from the environment. This has actually
3567 # happened. Such a system could not be considered "sane".
3568 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3569 alias in your environment" "$LINENO" 5
3571 if test "$2" = conftest.file || test $am_try -eq 2; then
3578 test "$2" = conftest.file
3584 as_fn_error $? "newly created file is older than distributed files!
3585 Check your system clock" "$LINENO" 5
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3588 $as_echo "yes" >&6; }
3589 # If we didn't sleep, we still need to ensure time stamps of config.status and
3590 # generated files are strictly newer.
3592 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3599 test "$program_prefix" != NONE &&
3600 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3601 # Use a double $ so make ignores it.
3602 test "$program_suffix" != NONE &&
3603 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3604 # Double any \ or $.
3605 # By default was `s,x,x', remove it if useless.
3606 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3607 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3609 # Expand $ac_aux_dir to an absolute path.
3610 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3612 if test x"${MISSING+set}" != xset; then
3615 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3617 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3620 # Use eval to expand $SHELL
3621 if eval "$MISSING --is-lightweight"; then
3622 am_missing_run="$MISSING "
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3626 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3629 if test x"${install_sh+set}" != xset; then
3632 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3634 install_sh="\${SHELL} $am_aux_dir/install-sh"
3638 # Installed binaries are usually stripped using 'strip' when the user
3639 # run "make install-strip". However 'strip' might not be the right
3640 # tool to use in cross-compilation environments, therefore Automake
3641 # will honor the 'STRIP' environment variable to overrule this program.
3642 if test "$cross_compiling" != no; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}strip; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_STRIP+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$STRIP"; then
3652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 STRIP=$ac_cv_prog_STRIP
3672 if test -n "$STRIP"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3674 $as_echo "$STRIP" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$ac_cv_prog_STRIP"; then
3684 # Extract the first word of "strip", so it can be a program name with args.
3685 set dummy strip; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$ac_ct_STRIP"; then
3692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_STRIP="strip"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3712 if test -n "$ac_ct_STRIP"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3714 $as_echo "$ac_ct_STRIP" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3720 if test "x$ac_ct_STRIP" = x; then
3723 case $cross_compiling:$ac_tool_warned in
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3732 STRIP="$ac_cv_prog_STRIP"
3736 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3739 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3740 if test -z "$MKDIR_P"; then
3741 if ${ac_cv_path_mkdir+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3748 test -z "$as_dir" && as_dir=.
3749 for ac_prog in mkdir gmkdir; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3752 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3753 'mkdir (GNU coreutils) '* | \
3754 'mkdir (coreutils) '* | \
3755 'mkdir (fileutils) '4.1*)
3756 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3766 test -d ./--version && rmdir ./--version
3767 if test "${ac_cv_path_mkdir+set}" = set; then
3768 MKDIR_P="$ac_cv_path_mkdir -p"
3770 # As a last resort, use the slow shell script. Don't cache a
3771 # value for MKDIR_P within a source directory, because that will
3772 # break other packages using the cache if that directory is
3773 # removed, or if the value is a relative name.
3774 MKDIR_P="$ac_install_sh -d"
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3778 $as_echo "$MKDIR_P" >&6; }
3780 for ac_prog in gawk mawk nawk awk
3782 # Extract the first word of "$ac_prog", so it can be a program name with args.
3783 set dummy $ac_prog; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if ${ac_cv_prog_AWK+:} false; then :
3787 $as_echo_n "(cached) " >&6
3789 if test -n "$AWK"; then
3790 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_AWK="$ac_prog"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 if test -n "$AWK"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3812 $as_echo "$AWK" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3819 test -n "$AWK" && break
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3827 $as_echo_n "(cached) " >&6
3829 cat >conftest.make <<\_ACEOF
3832 @echo '@@@%%%=$(MAKE)=@@@%%%'
3834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3837 eval ac_cv_prog_make_${ac_make}_set=yes;;
3839 eval ac_cv_prog_make_${ac_make}_set=no;;
3843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3845 $as_echo "yes" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850 SET_MAKE="MAKE=${MAKE-make}"
3853 rm -rf .tst 2>/dev/null
3854 mkdir .tst 2>/dev/null
3855 if test -d .tst; then
3860 rmdir .tst 2>/dev/null
3862 # Check whether --enable-silent-rules was given.
3863 if test "${enable_silent_rules+set}" = set; then :
3864 enableval=$enable_silent_rules;
3867 case $enable_silent_rules in # (((
3868 yes) AM_DEFAULT_VERBOSITY=0;;
3869 no) AM_DEFAULT_VERBOSITY=1;;
3870 *) AM_DEFAULT_VERBOSITY=1;;
3872 am_make=${MAKE-make}
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3874 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3875 if ${am_cv_make_support_nested_variables+:} false; then :
3876 $as_echo_n "(cached) " >&6
3878 if $as_echo 'TRUE=$(BAR$(V))
3884 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3885 am_cv_make_support_nested_variables=yes
3887 am_cv_make_support_nested_variables=no
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3891 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3892 if test $am_cv_make_support_nested_variables = yes; then
3894 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3896 AM_V=$AM_DEFAULT_VERBOSITY
3897 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3903 # is not polluted with repeated "-I."
3904 am__isrc=' -I$(srcdir)'
3905 # test to see if srcdir already configured
3906 if test -f $srcdir/config.status; then
3907 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3911 # test whether we have cygpath
3912 if test -z "$CYGPATH_W"; then
3913 if (cygpath --version) >/dev/null 2>/dev/null; then
3914 CYGPATH_W='cygpath -w'
3921 # Define the identity of the package.
3922 PACKAGE='gettext-runtime'
3926 cat >>confdefs.h <<_ACEOF
3927 #define PACKAGE "$PACKAGE"
3931 cat >>confdefs.h <<_ACEOF
3932 #define VERSION "$VERSION"
3935 # Some tools Automake needs.
3937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3951 # For better backward compatibility. To be removed once Automake 1.9.x
3952 # dies out for good. For more background, see:
3953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3954 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3955 mkdir_p='$(MKDIR_P)'
3957 # We need awk for the "check" target (and possibly the TAP driver). The
3958 # system "awk" is bad on some platforms.
3959 # Always define AMTAR for backward compatibility. Yes, it's still used
3960 # in the wild :-( We should find a proper way to deprecate it ...
3964 # We'll loop over all known methods to create a tar archive until one works.
3965 _am_tools='gnutar pax cpio none'
3967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3974 # POSIX will say in a future version that running "rm -f" with no argument
3975 # is OK; and we want to be able to make that assumption in our Makefile
3976 # recipes. So use an aggressive probe to check that the usage we want is
3977 # actually supported "in the wild" to an acceptable degree.
3978 # See automake bug#10828.
3979 # To make any issue more visible, cause the running configure to be aborted
3980 # by default if the 'rm' program in use doesn't match our expectations; the
3981 # user can still override this though.
3982 if rm -f && rm -fr && rm -rf; then : OK; else
3986 Your 'rm' program seems unable to run without file operands specified
3987 on the command line, even when the '-f' option is present. This is contrary
3988 to the behaviour of most rm programs out there, and not conforming with
3989 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3991 Please tell bug-automake@gnu.org about your system, including the value
3992 of your $PATH and any error possibly output before this message. This
3993 can help us improve future automake versions.
3996 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3997 echo 'Configuration will proceed anyway, since you have set the' >&2
3998 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4002 Aborting the configuration process, to ensure you take notice of the issue.
4004 You can download and install GNU coreutils to get an 'rm' implementation
4005 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4007 If you want to complete the configuration process using your problematic
4008 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4009 to "yes", and re-run configure.
4012 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4016 ac_config_headers="$ac_config_headers config.h"
4019 test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext'
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026 if test -n "$ac_tool_prefix"; then
4027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_CC+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 if test -n "$CC"; then
4035 ac_cv_prog_CC="$CC" # Let the user override the test.
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 if test -n "$CC"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4057 $as_echo "$CC" >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4065 if test -z "$ac_cv_prog_CC"; then
4067 # Extract the first word of "gcc", so it can be a program name with args.
4068 set dummy gcc; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4072 $as_echo_n "(cached) " >&6
4074 if test -n "$ac_ct_CC"; then
4075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_CC="gcc"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4095 if test -n "$ac_ct_CC"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4097 $as_echo "$ac_ct_CC" >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4103 if test "x$ac_ct_CC" = x; then
4106 case $cross_compiling:$ac_tool_warned in
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4118 if test -z "$CC"; then
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}cc; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_CC+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_CC="${ac_tool_prefix}cc"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 if test -n "$CC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4150 $as_echo "$CC" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4159 if test -z "$CC"; then
4160 # Extract the first word of "cc", so it can be a program name with args.
4161 set dummy cc; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_CC+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -n "$CC"; then
4168 ac_cv_prog_CC="$CC" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4179 ac_prog_rejected=yes
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 if test $ac_prog_rejected = yes; then
4191 # We found a bogon in the path, so make sure we never use it.
4192 set dummy $ac_cv_prog_CC
4194 if test $# != 0; then
4195 # We chose a different compiler from the bogus one.
4196 # However, it has the same basename, so the bogon will be chosen
4197 # first if we set CC to just the basename; use the full file name.
4199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4205 if test -n "$CC"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4207 $as_echo "$CC" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4215 if test -z "$CC"; then
4216 if test -n "$ac_tool_prefix"; then
4217 for ac_prog in cl.exe
4219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_CC+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 if test -n "$CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4256 test -n "$CC" && break
4259 if test -z "$CC"; then
4261 for ac_prog in cl.exe
4263 # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$ac_ct_CC"; then
4271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_ac_ct_CC="$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4291 if test -n "$ac_ct_CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4293 $as_echo "$ac_ct_CC" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4300 test -n "$ac_ct_CC" && break
4303 if test "x$ac_ct_CC" = x; then
4306 case $cross_compiling:$ac_tool_warned in
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310 ac_tool_warned=yes ;;
4319 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error $? "no acceptable C compiler found in \$PATH
4322 See \`config.log' for more details" "$LINENO" 5; }
4324 # Provide some information about the compiler.
4325 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4328 for ac_option in --version -v -V -qversion; do
4329 { { ac_try="$ac_compiler $ac_option >&5"
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338 if test -s conftest.err; then
4340 ... rest of stderr output deleted ...
4341 10q' conftest.err >conftest.er1
4342 cat conftest.er1 >&5
4344 rm -f conftest.er1 conftest.err
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 ac_clean_files_save=$ac_clean_files
4361 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4362 # Try to create an executable without -o first, disregard a.out.
4363 # It will help us diagnose broken compilers, and finding out an intuition
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4366 $as_echo_n "checking whether the C compiler works... " >&6; }
4367 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4369 # The possible output files:
4370 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4373 for ac_file in $ac_files
4376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4382 if { { ac_try="$ac_link_default"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_link_default") 2>&5
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }; then :
4393 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4394 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4395 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4396 # so that the user can short-circuit this test for compilers unknown to
4398 for ac_file in $ac_files ''
4400 test -f "$ac_file" || continue
4402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4405 # We found the default executable, but exeext='' is most
4409 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4411 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413 # We set ac_cv_exeext here because the later test for it is not
4414 # safe: cross compilers may not add the suffix if given an `-o'
4415 # argument, so we may need to know it at that point already.
4416 # Even if this section looks crufty: it has the advantage of
4423 test "$ac_cv_exeext" = no && ac_cv_exeext=
4428 if test -z "$ac_file"; then :
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error 77 "C compiler cannot create executables
4437 See \`config.log' for more details" "$LINENO" 5; }
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440 $as_echo "yes" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4443 $as_echo_n "checking for C compiler default output file name... " >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4445 $as_echo "$ac_file" >&6; }
4446 ac_exeext=$ac_cv_exeext
4448 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4449 ac_clean_files=$ac_clean_files_save
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4451 $as_echo_n "checking for suffix of executables... " >&6; }
4452 if { { ac_try="$ac_link"
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459 (eval "$ac_link") 2>&5
4461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; then :
4463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4465 # work properly (i.e., refer to `conftest.exe'), while it won't with
4467 for ac_file in conftest.exe conftest conftest.*; do
4468 test -f "$ac_file" || continue
4470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4480 See \`config.log' for more details" "$LINENO" 5; }
4482 rm -f conftest conftest$ac_cv_exeext
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4484 $as_echo "$ac_cv_exeext" >&6; }
4486 rm -f conftest.$ac_ext
4487 EXEEXT=$ac_cv_exeext
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4495 FILE *f = fopen ("conftest.out", "w");
4496 return ferror (f) || fclose (f) != 0;
4502 ac_clean_files="$ac_clean_files conftest.out"
4503 # Check that the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4506 $as_echo_n "checking whether we are cross compiling... " >&6; }
4507 if test "$cross_compiling" != yes; then
4508 { { ac_try="$ac_link"
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515 (eval "$ac_link") 2>&5
4517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }
4519 if { ac_try='./conftest$ac_cv_exeext'
4520 { { case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_try") 2>&5
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; }; then
4532 if test "$cross_compiling" = maybe; then
4535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 as_fn_error $? "cannot run C compiled programs.
4538 If you meant to cross compile, use \`--host'.
4539 See \`config.log' for more details" "$LINENO" 5; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4544 $as_echo "$cross_compiling" >&6; }
4546 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4547 ac_clean_files=$ac_clean_files_save
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4549 $as_echo_n "checking for suffix of object files... " >&6; }
4550 if ${ac_cv_objext+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4564 rm -f conftest.o conftest.obj
4565 if { { ac_try="$ac_compile"
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_compile") 2>&5
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }; then :
4576 for ac_file in conftest.o conftest.obj conftest.*; do
4577 test -f "$ac_file" || continue;
4579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4585 $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot compute suffix of object files: cannot compile
4591 See \`config.log' for more details" "$LINENO" 5; }
4593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4596 $as_echo "$ac_cv_objext" >&6; }
4597 OBJEXT=$ac_cv_objext
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4600 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4601 if ${ac_cv_c_compiler_gnu+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4618 if ac_fn_c_try_compile "$LINENO"; then :
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4628 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4629 if test $ac_compiler_gnu = yes; then
4634 ac_test_CFLAGS=${CFLAGS+set}
4635 ac_save_CFLAGS=$CFLAGS
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4637 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4638 if ${ac_cv_prog_cc_g+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 ac_save_c_werror_flag=$ac_c_werror_flag
4642 ac_c_werror_flag=yes
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4656 if ac_fn_c_try_compile "$LINENO"; then :
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4671 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_c_werror_flag=$ac_save_c_werror_flag
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4687 if ac_fn_c_try_compile "$LINENO"; then :
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 ac_c_werror_flag=$ac_save_c_werror_flag
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4698 $as_echo "$ac_cv_prog_cc_g" >&6; }
4699 if test "$ac_test_CFLAGS" = set; then
4700 CFLAGS=$ac_save_CFLAGS
4701 elif test $ac_cv_prog_cc_g = yes; then
4702 if test "$GCC" = yes; then
4708 if test "$GCC" = yes; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4716 if ${ac_cv_prog_cc_c89+:} false; then :
4717 $as_echo_n "(cached) " >&6
4719 ac_cv_prog_cc_c89=no
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4727 struct buf { int x; };
4728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4729 static char *e (p, i)
4735 static char *f (char * (*g) (char **, int), char **p, ...)
4740 s = g (p, va_arg (v,int));
4745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4746 function prototypes and stuff, but not '\xHH' hex character constants.
4747 These don't provoke an error unfortunately, instead are silently treated
4748 as 'x'. The following induces an error, until -std is added to get
4749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4750 array size at least. It's necessary to write '\x00'==0 to get something
4751 that's true only with -std. */
4752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4755 inside strings and character constants. */
4757 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4759 int test (int i, double x);
4760 struct s1 {int (*f) (int a);};
4761 struct s2 {int (*f) (double a);};
4762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4768 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4773 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4776 CC="$ac_save_CC $ac_arg"
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_prog_cc_c89=$ac_arg
4780 rm -f core conftest.err conftest.$ac_objext
4781 test "x$ac_cv_prog_cc_c89" != "xno" && break
4783 rm -f conftest.$ac_ext
4788 case "x$ac_cv_prog_cc_c89" in
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4791 $as_echo "none needed" >&6; } ;;
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4794 $as_echo "unsupported" >&6; } ;;
4796 CC="$CC $ac_cv_prog_cc_c89"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4798 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4800 if test "x$ac_cv_prog_cc_c89" != xno; then :
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4816 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4817 if ${am_cv_prog_cc_c_o+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4831 # Make sure it works both with $CC and with simple cc.
4832 # Following AC_PROG_CC_C_O, we do the test twice because some
4833 # compilers refuse to overwrite an existing .o file with -o,
4834 # though they will create one.
4835 am_cv_prog_cc_c_o=yes
4837 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4838 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } \
4842 && test -f conftest2.$ac_objext; then
4845 am_cv_prog_cc_c_o=no
4849 rm -f core conftest*
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4853 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4854 if test "$am_cv_prog_cc_c_o" != yes; then
4855 # Losing compiler, so override with the script.
4856 # FIXME: It is wrong to rewrite CC.
4857 # But if we don't then we get into trouble of one sort or another.
4858 # A longer-term fix would be to have automake use am__CC in this case,
4859 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4860 CC="$am_aux_dir/compile $CC"
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868 DEPDIR="${am__leading_dot}deps"
4870 ac_config_commands="$ac_config_commands depfiles"
4873 am_make=${MAKE-make}
4874 cat > confinc << 'END'
4876 @echo this is the am__doit target
4879 # If we don't find an include directive, just comment out the code.
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4881 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4885 # First try GNU make style include.
4886 echo "include confinc" > confmf
4887 # Ignore all kinds of additional output from 'make'.
4888 case `$am_make -s -f confmf 2> /dev/null` in #(
4889 *the\ am__doit\ target*)
4895 # Now try BSD make style include.
4896 if test "$am__include" = "#"; then
4897 echo '.include "confinc"' > confmf
4898 case `$am_make -s -f confmf 2> /dev/null` in #(
4899 *the\ am__doit\ target*)
4900 am__include=.include
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4909 $as_echo "$_am_result" >&6; }
4910 rm -f confinc confmf
4912 # Check whether --enable-dependency-tracking was given.
4913 if test "${enable_dependency_tracking+set}" = set; then :
4914 enableval=$enable_dependency_tracking;
4917 if test "x$enable_dependency_tracking" != xno; then
4918 am_depcomp="$ac_aux_dir/depcomp"
4922 if test "x$enable_dependency_tracking" != xno; then
4932 depcc="$CC" am_compiler_list=
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4935 $as_echo_n "checking dependency style of $depcc... " >&6; }
4936 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4937 $as_echo_n "(cached) " >&6
4939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4940 # We make a subdir and do the tests there. Otherwise we can end up
4941 # making bogus files that we don't know about and never remove. For
4942 # instance it was reported that on HP-UX the gcc test will end up
4943 # making a dummy file named 'D' -- because '-MD' means "put the output
4947 # Copy depcomp to subdir because otherwise we won't find it if we're
4948 # using a relative directory.
4949 cp "$am_depcomp" conftest.dir
4951 # We will build objects and dependencies in a subdirectory because
4952 # it helps to detect inapplicable dependency modes. For instance
4953 # both Tru64's cc and ICC support -MD to output dependencies as a
4954 # side effect of compilation, but ICC will put the dependencies in
4955 # the current directory while Tru64 will put them in the object
4959 am_cv_CC_dependencies_compiler_type=none
4960 if test "$am_compiler_list" = ""; then
4961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4964 case " $depcc " in #(
4965 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4968 for depmode in $am_compiler_list; do
4969 # Setup a source with many dependencies, because some compilers
4970 # like to wrap large dependency lists on column 80 (with \), and
4971 # we should not choose a depcomp mode which is confused by this.
4973 # We need to recreate these files for each test, as the compiler may
4974 # overwrite some of them when testing with obscure command lines.
4975 # This happens at least with the AIX C compiler.
4977 for i in 1 2 3 4 5 6; do
4978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4979 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4980 # Solaris 10 /bin/sh.
4981 echo '/* dummy */' > sub/conftst$i.h
4983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4985 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4986 # mode. It turns out that the SunPro C++ compiler does not properly
4987 # handle '-M -o', and we need to detect this. Also, some Intel
4988 # versions had trouble with output in subdirs.
4989 am__obj=sub/conftest.${OBJEXT-o}
4990 am__minus_obj="-o $am__obj"
4993 # This depmode causes a compiler race in universal mode.
4994 test "$am__universal" = false || continue
4997 # After this tag, mechanisms are not by side-effect, so they'll
4998 # only be used when explicitly requested.
4999 if test "x$enable_dependency_tracking" = xyes; then
5005 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5006 # This compiler won't grok '-c -o', but also, the minuso test has
5007 # not run yet. These depmodes are late enough in the game, and
5008 # so weak that their functioning should not be impacted.
5009 am__obj=conftest.${OBJEXT-o}
5014 if depmode=$depmode \
5015 source=sub/conftest.c object=$am__obj \
5016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5017 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5018 >/dev/null 2>conftest.err &&
5019 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5020 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5021 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5022 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5023 # icc doesn't choke on unknown options, it will just issue warnings
5024 # or remarks (even with -Werror). So we grep stderr for any message
5025 # that says an option was ignored or not supported.
5026 # When given -MP, icc 7.0 and 7.1 complain thusly:
5027 # icc: Command line warning: ignoring option '-M'; no argument required
5028 # The diagnosis changed in icc 8.0:
5029 # icc: Command line remark: option '-MP' not supported
5030 if (grep 'ignoring option' conftest.err ||
5031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5032 am_cv_CC_dependencies_compiler_type=$depmode
5041 am_cv_CC_dependencies_compiler_type=none
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5046 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5047 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5050 test "x$enable_dependency_tracking" != xno \
5051 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5053 am__fastdepCC_FALSE='#'
5055 am__fastdepCC_TRUE='#'
5056 am__fastdepCC_FALSE=
5061 for ac_prog in 'bison -y' byacc
5063 # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy $ac_prog; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_YACC+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 if test -n "$YACC"; then
5071 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_YACC="$ac_prog"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 YACC=$ac_cv_prog_YACC
5091 if test -n "$YACC"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5093 $as_echo "$YACC" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5100 test -n "$YACC" && break
5102 test -n "$YACC" || YACC="yacc"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5107 $as_echo_n "checking whether to use Java... " >&6; }
5108 # Check whether --enable-java was given.
5109 if test "${enable_java+set}" = set; then :
5110 enableval=$enable_java; JAVA_CHOICE="$enableval"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5116 $as_echo "$JAVA_CHOICE" >&6; }
5117 if test "$JAVA_CHOICE" = yes; then
5118 # Check whether --enable-native-java was given.
5119 if test "${enable_native_java+set}" = set; then :
5120 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5134 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5135 # On Suns, sometimes $CPP names a directory.
5136 if test -n "$CPP" && test -d "$CPP"; then
5139 if test -z "$CPP"; then
5140 if ${ac_cv_prog_CPP+:} false; then :
5141 $as_echo_n "(cached) " >&6
5143 # Double quotes because CPP needs to be expanded
5144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5147 for ac_c_preproc_warn_flag in '' yes
5149 # Use a header file that comes with gcc, so configuring glibc
5150 # with a fresh cross-compiler works.
5151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 # <limits.h> exists even on freestanding compilers.
5153 # On the NeXT, cc -E runs the code through the compiler's parser,
5154 # not just through cpp. "Syntax error" is here to catch this case.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5158 # include <limits.h>
5160 # include <assert.h>
5164 if ac_fn_c_try_cpp "$LINENO"; then :
5167 # Broken: fails on valid input.
5170 rm -f conftest.err conftest.i conftest.$ac_ext
5172 # OK, works on sane cases. Now check whether nonexistent headers
5173 # can be detected and how.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <ac_nonexistent.h>
5178 if ac_fn_c_try_cpp "$LINENO"; then :
5179 # Broken: success on invalid input.
5182 # Passes both tests.
5186 rm -f conftest.err conftest.i conftest.$ac_ext
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.i conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then :
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5204 $as_echo "$CPP" >&6; }
5206 for ac_c_preproc_warn_flag in '' yes
5208 # Use a header file that comes with gcc, so configuring glibc
5209 # with a fresh cross-compiler works.
5210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211 # <limits.h> exists even on freestanding compilers.
5212 # On the NeXT, cc -E runs the code through the compiler's parser,
5213 # not just through cpp. "Syntax error" is here to catch this case.
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5217 # include <limits.h>
5219 # include <assert.h>
5223 if ac_fn_c_try_cpp "$LINENO"; then :
5226 # Broken: fails on valid input.
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5231 # OK, works on sane cases. Now check whether nonexistent headers
5232 # can be detected and how.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <ac_nonexistent.h>
5237 if ac_fn_c_try_cpp "$LINENO"; then :
5238 # Broken: success on invalid input.
5241 # Passes both tests.
5245 rm -f conftest.err conftest.i conftest.$ac_ext
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.i conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then :
5253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5255 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details" "$LINENO" 5; }
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5268 if ${ac_cv_path_GREP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if test -z "$GREP"; then
5272 ac_path_GREP_found=false
5273 # Loop through the user's path and test for each of PROGNAME-LIST
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5278 test -z "$as_dir" && as_dir=.
5279 for ac_prog in grep ggrep; do
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5282 as_fn_executable_p "$ac_path_GREP" || continue
5283 # Check for GNU ac_path_GREP and select it if it is found.
5284 # Check for GNU $ac_path_GREP
5285 case `"$ac_path_GREP" --version 2>&1` in
5287 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5290 $as_echo_n 0123456789 >"conftest.in"
5293 cat "conftest.in" "conftest.in" >"conftest.tmp"
5294 mv "conftest.tmp" "conftest.in"
5295 cp "conftest.in" "conftest.nl"
5296 $as_echo 'GREP' >> "conftest.nl"
5297 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299 as_fn_arith $ac_count + 1 && ac_count=$as_val
5300 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5301 # Best one so far, save it but keep looking for a better one
5302 ac_cv_path_GREP="$ac_path_GREP"
5303 ac_path_GREP_max=$ac_count
5305 # 10*(2^10) chars as input seems more than enough
5306 test $ac_count -gt 10 && break
5308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5311 $ac_path_GREP_found && break 3
5316 if test -z "$ac_cv_path_GREP"; then
5317 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5320 ac_cv_path_GREP=$GREP
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5325 $as_echo "$ac_cv_path_GREP" >&6; }
5326 GREP="$ac_cv_path_GREP"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5330 $as_echo_n "checking for egrep... " >&6; }
5331 if ${ac_cv_path_EGREP+:} false; then :
5332 $as_echo_n "(cached) " >&6
5334 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5335 then ac_cv_path_EGREP="$GREP -E"
5337 if test -z "$EGREP"; then
5338 ac_path_EGREP_found=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5344 test -z "$as_dir" && as_dir=.
5345 for ac_prog in egrep; do
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5348 as_fn_executable_p "$ac_path_EGREP" || continue
5349 # Check for GNU ac_path_EGREP and select it if it is found.
5350 # Check for GNU $ac_path_EGREP
5351 case `"$ac_path_EGREP" --version 2>&1` in
5353 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5356 $as_echo_n 0123456789 >"conftest.in"
5359 cat "conftest.in" "conftest.in" >"conftest.tmp"
5360 mv "conftest.tmp" "conftest.in"
5361 cp "conftest.in" "conftest.nl"
5362 $as_echo 'EGREP' >> "conftest.nl"
5363 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5365 as_fn_arith $ac_count + 1 && ac_count=$as_val
5366 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5367 # Best one so far, save it but keep looking for a better one
5368 ac_cv_path_EGREP="$ac_path_EGREP"
5369 ac_path_EGREP_max=$ac_count
5371 # 10*(2^10) chars as input seems more than enough
5372 test $ac_count -gt 10 && break
5374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5377 $ac_path_EGREP_found && break 3
5382 if test -z "$ac_cv_path_EGREP"; then
5383 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5386 ac_cv_path_EGREP=$EGREP
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5392 $as_echo "$ac_cv_path_EGREP" >&6; }
5393 EGREP="$ac_cv_path_EGREP"
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5401 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5407 $EGREP "yes" >/dev/null 2>&1; then :
5408 CLASSPATH_SEPARATOR=';'
5410 CLASSPATH_SEPARATOR=':'
5415 test -n "$source_version" || {
5416 as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
5419 case "$source_version" in
5420 1.3) goodcode='class conftest {}'
5421 failcode='class conftestfail { static { assert(true); } }' ;;
5422 1.4) goodcode='class conftest { static { assert(true); } }'
5423 failcode='class conftestfail<T> { T foo() { return null; } }' ;;
5424 1.5) goodcode='class conftest<T> { T foo() { return null; } }'
5425 failcode='class conftestfail syntax error' ;;
5426 *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
5428 case "$target_version" in
5429 1.1) cfversion=45 ;;
5430 1.2) cfversion=46 ;;
5431 1.3) cfversion=47 ;;
5432 1.4) cfversion=48 ;;
5433 1.5) cfversion=49 ;;
5434 1.6) cfversion=50 ;;
5435 *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
5437 # Function to output the classfile version of a file (8th byte) in decimal.
5438 if od -A x < /dev/null >/dev/null 2>/dev/null; then
5440 func_classfile_version ()
5442 od -A n -t d1 -j 7 -N 1 "$1"
5446 func_classfile_version ()
5448 dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
5453 $as_echo_n "checking for Java compiler... " >&6; }
5460 cat > conftestlib.java <<EOF
5461 public class conftestlib {
5462 public static void main (String[] args) {
5466 echo "$goodcode" > conftest.java
5467 echo "$failcode" > conftestfail.java
5468 if test -n "$JAVAC"; then
5469 if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
5470 if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5471 rm -f conftest.class
5472 if { echo "$as_me:5472: $JAVAC -d . conftest.java" >&5
5473 $JAVAC -d . conftest.java >&5 2>&1
5475 && test -f conftest.class \
5476 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5477 rm -f conftest.class
5478 rm -f conftestfail.class
5479 if { echo "$as_me:5479: $JAVAC -fsource=$source_version -d . conftest.java" >&5
5480 $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
5482 && test -f conftest.class \
5483 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5484 && { echo "$as_me:5484: $JAVAC -d . conftestfail.java" >&5
5485 $JAVAC -d . conftestfail.java >&5 2>&1
5487 && test -f conftestfail.class \
5488 && ! { echo "$as_me:5488: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
5489 $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5491 CONF_JAVAC="$JAVAC -fsource=$source_version"
5500 rm -f conftest.class
5501 rm -f conftestfail.class
5502 if { echo "$as_me:5502: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5503 $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5505 && test -f conftest.class \
5506 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5507 CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
5513 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5514 rm -f conftest.class
5515 if { echo "$as_me:5515: $JAVAC -d . conftest.java" >&5
5516 $JAVAC -d . conftest.java >&5 2>&1
5518 && test -f conftest.class; then
5524 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5526 rm -f conftest.class
5527 if { echo "$as_me:5527: $JAVAC -d . conftest.java" >&5
5528 $JAVAC -d . conftest.java >&5 2>&1
5530 && test -f conftest.class; then
5533 javac_noassert_works=
5534 rm -f conftest.class
5535 if { echo "$as_me:5535: $JAVAC -fno-assert -d . conftest.java" >&5
5536 $JAVAC -fno-assert -d . conftest.java >&5 2>&1
5538 && test -f conftest.class; then
5539 javac_noassert_works=1
5541 if test -n "$javac_works" && test -n "$javac_noassert_works"; then
5542 rm -f conftestfail.class
5543 if { echo "$as_me:5543: $JAVAC -d . conftestfail.java" >&5
5544 $JAVAC -d . conftestfail.java >&5 2>&1
5546 && test -f conftestfail.class \
5547 && ! { echo "$as_me:5547: $JAVAC -fno-assert -d . conftestfail.java" >&5
5548 $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
5553 if test -n "$javac_works"; then
5558 if test -n "$javac_noassert_works"; then
5559 CONF_JAVAC="$JAVAC -fno-assert"
5568 rm -f conftest.class
5569 if { echo "$as_me:5569: $JAVAC -d . conftest.java" >&5
5570 $JAVAC -d . conftest.java >&5 2>&1
5572 && test -f conftest.class \
5573 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5574 rm -f conftest.class
5575 rm -f conftestfail.class
5576 if { echo "$as_me:5576: $JAVAC -source $source_version -d . conftest.java" >&5
5577 $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
5579 && test -f conftest.class \
5580 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5581 && { echo "$as_me:5581: $JAVAC -d . conftestfail.java" >&5
5582 $JAVAC -d . conftestfail.java >&5 2>&1
5584 && test -f conftestfail.class \
5585 && ! { echo "$as_me:5585: $JAVAC -source $source_version -d . conftestfail.java" >&5
5586 $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
5588 CONF_JAVAC="$JAVAC -source $source_version"
5597 rm -f conftest.class
5598 if { echo "$as_me:5598: $JAVAC -target $target_version -d . conftest.java" >&5
5599 $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
5601 && test -f conftest.class \
5602 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5603 rm -f conftest.class
5604 rm -f conftestfail.class
5605 if { echo "$as_me:5605: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5606 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5608 && test -f conftest.class \
5609 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5610 && { echo "$as_me:5610: $JAVAC -target $target_version -d . conftestfail.java" >&5
5611 $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
5613 && test -f conftestfail.class \
5614 && ! { echo "$as_me:5614: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
5615 $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5617 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5621 CONF_JAVAC="$JAVAC -target $target_version"
5626 rm -f conftest.class
5627 if { echo "$as_me:5627: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5628 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5630 && test -f conftest.class \
5631 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5632 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5640 if test -z "$HAVE_JAVACOMP"; then
5641 # Extract the first word of "gcj", so it can be a program name with args.
5642 set dummy gcj; ac_word=$2
5644 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test -n "$HAVE_GCJ_IN_PATH"; then
5648 ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
5668 if test -n "$HAVE_GCJ_IN_PATH"; then
5675 # Extract the first word of "javac", so it can be a program name with args.
5676 set dummy javac; ac_word=$2
5678 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
5679 $as_echo_n "(cached) " >&6
5681 if test -n "$HAVE_JAVAC_IN_PATH"; then
5682 ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
5702 if test -n "$HAVE_JAVAC_IN_PATH"; then
5709 # Extract the first word of "jikes", so it can be a program name with args.
5710 set dummy jikes; ac_word=$2
5712 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$HAVE_JIKES_IN_PATH"; then
5716 ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
5736 if test -n "$HAVE_JIKES_IN_PATH"; then
5743 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
5744 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
5745 if { echo "$as_me:5745: gcj -C -d . conftestlib.java" >&5
5746 gcj -C -d . conftestlib.java >&5 2>&1
5748 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5749 rm -f conftest.class
5750 if { echo "$as_me:5750: gcj -C -d . conftest.java" >&5
5751 gcj -C -d . conftest.java >&5 2>&1
5753 && test -f conftest.class \
5754 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5755 rm -f conftest.class
5756 rm -f conftestfail.class
5757 if { echo "$as_me:5757: gcj -C -fsource=$source_version -d . conftest.java" >&5
5758 gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
5760 && test -f conftest.class \
5761 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5762 && { echo "$as_me:5762: gcj -C -d . conftestfail.java" >&5
5763 gcj -C -d . conftestfail.java >&5 2>&1
5765 && test -f conftestfail.class \
5766 && ! { echo "$as_me:5766: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
5767 gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5769 CONF_JAVAC="gcj -C -fsource=$source_version"
5778 rm -f conftest.class
5779 rm -f conftestfail.class
5780 if { echo "$as_me:5780: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5781 gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5783 && test -f conftest.class \
5784 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5785 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
5791 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5792 rm -f conftest.class
5793 if { echo "$as_me:5793: gcj -C -d . conftest.java" >&5
5794 gcj -C -d . conftest.java >&5 2>&1
5796 && test -f conftest.class; then
5802 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5803 rm -f conftest.class
5804 if { echo "$as_me:5804: gcj -C -fno-assert -d . conftest.java" >&5
5805 gcj -C -fno-assert -d . conftest.java >&5 2>&1
5807 && test -f conftest.class; then
5808 CONF_JAVAC="gcj -C -fno-assert"
5812 rm -f conftest.class
5813 if { echo "$as_me:5813: gcj -C -d . conftest.java" >&5
5814 gcj -C -d . conftest.java >&5 2>&1
5816 && test -f conftest.class; then
5828 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
5829 if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
5830 && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
5831 rm -f conftest.class
5832 if { echo "$as_me:5832: javac -d . conftest.java" >&5
5833 javac -d . conftest.java >&5 2>&1
5835 && test -f conftest.class \
5836 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5837 rm -f conftest.class
5838 rm -f conftestfail.class
5839 if { echo "$as_me:5839: javac -source $source_version -d . conftest.java" >&5
5840 javac -source "$source_version" -d . conftest.java >&5 2>&1
5842 && test -f conftest.class \
5843 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5844 && { echo "$as_me:5844: javac -d . conftestfail.java" >&5
5845 javac -d . conftestfail.java >&5 2>&1
5847 && test -f conftestfail.class \
5848 && ! { echo "$as_me:5848: javac -source $source_version -d . conftestfail.java" >&5
5849 javac -source "$source_version" -d . conftestfail.java >&5 2>&1
5851 CONF_JAVAC="javac -source $source_version"
5860 rm -f conftest.class
5861 if { echo "$as_me:5861: javac -target $target_version -d . conftest.java" >&5
5862 javac -target "$target_version" -d . conftest.java >&5 2>&1
5864 && test -f conftest.class \
5865 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5866 rm -f conftest.class
5867 rm -f conftestfail.class
5868 if { echo "$as_me:5868: javac -target $target_version -source $source_version -d . conftest.java" >&5
5869 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5871 && test -f conftest.class \
5872 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5873 && { echo "$as_me:5873: javac -target $target_version -d . conftestfail.java" >&5
5874 javac -target "$target_version" -d . conftestfail.java >&5 2>&1
5876 && test -f conftestfail.class \
5877 && ! { echo "$as_me:5877: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
5878 javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5880 CONF_JAVAC="javac -target $target_version -source $source_version"
5884 CONF_JAVAC="javac -target $target_version"
5889 rm -f conftest.class
5890 if { echo "$as_me:5890: javac -target $target_version -source $source_version -d . conftest.java" >&5
5891 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5893 && test -f conftest.class \
5894 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5895 CONF_JAVAC="javac -target $target_version -source $source_version"
5903 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
5904 if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
5906 # See if the existing CLASSPATH is sufficient to make jikes work.
5908 jikes conftestlib.java >&5 2>&1
5910 rm -f conftestlib.class
5913 if test "$source_version" = 1.3; then
5921 rm -f conftest*.java conftest*.class
5922 if test -n "$HAVE_JAVACOMP"; then
5923 ac_result="$CONF_JAVAC"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5928 $as_echo "$ac_result" >&6; }
5937 # Extract the first word of "jar", so it can be a program name with args.
5938 set dummy jar; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_JAR+:} false; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$JAR"; then
5945 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_JAR="jar"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 if test -n "$JAR"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5967 $as_echo "$JAR" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5974 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
5983 $as_echo_n "checking for preferred C# implementation... " >&6; }
5984 # Check whether --enable-csharp was given.
5985 if test "${enable_csharp+set}" = set; then :
5986 enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
5993 $as_echo "$CSHARP_CHOICE" >&6; }
5994 case "$CSHARP_CHOICE" in
5997 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
6002 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
6010 $as_echo_n "checking for C# compiler... " >&6; }
6012 # Extract the first word of "cscc", so it can be a program name with args.
6013 set dummy cscc; ac_word=$2
6015 if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 if test -n "$HAVE_CSCC_IN_PATH"; then
6019 ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
6039 if test -n "$HAVE_CSCC_IN_PATH"; then
6046 # Extract the first word of "mcs", so it can be a program name with args.
6047 set dummy mcs; ac_word=$2
6049 if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
6050 $as_echo_n "(cached) " >&6
6052 if test -n "$HAVE_MCS_IN_PATH"; then
6053 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_HAVE_MCS_IN_PATH="yes"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
6073 if test -n "$HAVE_MCS_IN_PATH"; then
6080 # Extract the first word of "csc", so it can be a program name with args.
6081 set dummy csc; ac_word=$2
6083 if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
6084 $as_echo_n "(cached) " >&6
6086 if test -n "$HAVE_CSC_IN_PATH"; then
6087 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_HAVE_CSC_IN_PATH="yes"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
6107 if test -n "$HAVE_CSC_IN_PATH"; then
6114 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
6117 if test -n "$HAVE_CSCC_IN_PATH" \
6118 && cscc --version >/dev/null 2>/dev/null \
6120 # See if pnetlib is well installed.
6121 echo 'class ConfTest { static void Main() { } }' > conftest.cs
6122 cscc -o conftest.exe conftest.cs 2>/dev/null
6124 rm -f conftest.cs conftest.exe
6133 if test -n "$HAVE_MCS_IN_PATH" \
6134 && mcs --version >/dev/null 2>/dev/null \
6135 && mcs --version 2>/dev/null | grep Mono >/dev/null; then
6142 if test -n "$HAVE_CSC_IN_PATH" \
6143 && csc -help >/dev/null 2>/dev/null \
6144 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6158 $as_echo "$ac_result" >&6; }
6162 if test -z "${CSHARPCOMPFLAGS+set}"; then
6163 CSHARPCOMPFLAGS="-O -g"
6167 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
6174 # Make sure we can run config.sub.
6175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6176 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6179 $as_echo_n "checking build system type... " >&6; }
6180 if ${ac_cv_build+:} false; then :
6181 $as_echo_n "(cached) " >&6
6183 ac_build_alias=$build_alias
6184 test "x$ac_build_alias" = x &&
6185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6186 test "x$ac_build_alias" = x &&
6187 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6188 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6189 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6193 $as_echo "$ac_cv_build" >&6; }
6194 case $ac_cv_build in
6196 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6199 ac_save_IFS=$IFS; IFS='-'
6205 # Remember, the first character of IFS is used to create $*,
6206 # except with old shells:
6209 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6213 $as_echo_n "checking host system type... " >&6; }
6214 if ${ac_cv_host+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test "x$host_alias" = x; then
6218 ac_cv_host=$ac_cv_build
6220 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6221 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6226 $as_echo "$ac_cv_host" >&6; }
6229 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6232 ac_save_IFS=$IFS; IFS='-'
6238 # Remember, the first character of IFS is used to create $*,
6239 # except with old shells:
6242 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6250 $as_echo_n "checking for ANSI C header files... " >&6; }
6251 if ${ac_cv_header_stdc+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6269 if ac_fn_c_try_compile "$LINENO"; then :
6270 ac_cv_header_stdc=yes
6272 ac_cv_header_stdc=no
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 if test $ac_cv_header_stdc = yes; then
6277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "memchr" >/dev/null 2>&1; then :
6287 ac_cv_header_stdc=no
6293 if test $ac_cv_header_stdc = yes; then
6294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "free" >/dev/null 2>&1; then :
6304 ac_cv_header_stdc=no
6310 if test $ac_cv_header_stdc = yes; then
6311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6312 if test "$cross_compiling" = yes; then :
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6319 #if ((' ' & 0x0FF) == 0x020)
6320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6323 # define ISLOWER(c) \
6324 (('a' <= (c) && (c) <= 'i') \
6325 || ('j' <= (c) && (c) <= 'r') \
6326 || ('s' <= (c) && (c) <= 'z'))
6327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6335 for (i = 0; i < 256; i++)
6336 if (XOR (islower (i), ISLOWER (i))
6337 || toupper (i) != TOUPPER (i))
6342 if ac_fn_c_try_run "$LINENO"; then :
6345 ac_cv_header_stdc=no
6347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6348 conftest.$ac_objext conftest.beam conftest.$ac_ext
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6354 $as_echo "$ac_cv_header_stdc" >&6; }
6355 if test $ac_cv_header_stdc = yes; then
6357 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6363 inttypes.h stdint.h unistd.h
6365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6379 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6380 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6387 if test "$MINIX" = yes; then
6389 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6392 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6395 $as_echo "#define _MINIX 1" >>confdefs.h
6398 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6404 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6405 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6406 $as_echo_n "(cached) " >&6
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6411 # define __EXTENSIONS__ 1
6412 $ac_includes_default
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 ac_cv_safe_to_define___extensions__=yes
6424 ac_cv_safe_to_define___extensions__=no
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6429 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6430 test $ac_cv_safe_to_define___extensions__ = yes &&
6431 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6433 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6435 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6437 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6439 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
6441 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6443 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6446 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6447 if ${ac_cv_should_define__xopen_source+:} false; then :
6448 $as_echo_n "(cached) " >&6
6450 ac_cv_should_define__xopen_source=no
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6464 if ac_fn_c_try_compile "$LINENO"; then :
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6470 #define _XOPEN_SOURCE 500
6481 if ac_fn_c_try_compile "$LINENO"; then :
6482 ac_cv_should_define__xopen_source=yes
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6489 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6490 test $ac_cv_should_define__xopen_source = yes &&
6491 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6504 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6505 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6506 $as_echo_n "(cached) " >&6
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6518 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6519 gl_cv_c_amsterdam_compiler=yes
6521 gl_cv_c_amsterdam_compiler=no
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6528 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6530 if test $gl_cv_c_amsterdam_compiler = yes; then
6531 if test -z "$AR"; then
6534 if test -z "$ARFLAGS"; then
6538 if test -n "$ac_tool_prefix"; then
6539 for ac_prog in ar lib "link -lib"
6541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_AR+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$AR"; then
6549 ac_cv_prog_AR="$AR" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 if test -n "$AR"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6571 $as_echo "$AR" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6578 test -n "$AR" && break
6581 if test -z "$AR"; then
6583 for ac_prog in ar lib "link -lib"
6585 # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$ac_ct_AR"; then
6593 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_ac_ct_AR="$ac_prog"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6613 if test -n "$ac_ct_AR"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6615 $as_echo "$ac_ct_AR" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6622 test -n "$ac_ct_AR" && break
6625 if test "x$ac_ct_AR" = x; then
6628 case $cross_compiling:$ac_tool_warned in
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6641 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6642 if ${am_cv_ar_interface+:} false; then :
6643 $as_echo_n "(cached) " >&6
6646 ac_cpp='$CPP $CPPFLAGS'
6647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6651 am_cv_ar_interface=ar
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 int some_variable = 0;
6656 if ac_fn_c_try_compile "$LINENO"; then :
6657 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6659 (eval $am_ar_try) 2>&5
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; }
6663 if test "$ac_status" -eq 0; then
6664 am_cv_ar_interface=ar
6666 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6668 (eval $am_ar_try) 2>&5
6670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671 test $ac_status = 0; }
6672 if test "$ac_status" -eq 0; then
6673 am_cv_ar_interface=lib
6675 am_cv_ar_interface=unknown
6678 rm -f conftest.lib libconftest.a
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 ac_cpp='$CPP $CPPFLAGS'
6684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6690 $as_echo "$am_cv_ar_interface" >&6; }
6692 case $am_cv_ar_interface in
6696 # Microsoft lib, so override with the ar-lib wrapper script.
6697 # FIXME: It is wrong to rewrite AR.
6698 # But if we don't then we get into trouble of one sort or another.
6699 # A longer-term fix would be to have automake use am__AR in this case,
6700 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6702 AR="$am_aux_dir/ar-lib $AR"
6705 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}ar; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_AR+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$AR"; then
6720 ac_cv_prog_AR="$AR" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_AR="${ac_tool_prefix}ar"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 if test -n "$AR"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6742 $as_echo "$AR" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6750 if test -z "$ac_cv_prog_AR"; then
6752 # Extract the first word of "ar", so it can be a program name with args.
6753 set dummy ar; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 if test -n "$ac_ct_AR"; then
6760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_AR="ar"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6780 if test -n "$ac_ct_AR"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6782 $as_echo "$ac_ct_AR" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6788 if test "x$ac_ct_AR" = x; then
6791 case $cross_compiling:$ac_tool_warned in
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6803 if test -z "$ARFLAGS"; then
6809 if test -z "$RANLIB"; then
6810 if test $gl_cv_c_amsterdam_compiler = yes; then
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_RANLIB+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 if test -n "$RANLIB"; then
6822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 RANLIB=$ac_cv_prog_RANLIB
6842 if test -n "$RANLIB"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6844 $as_echo "$RANLIB" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6852 if test -z "$ac_cv_prog_RANLIB"; then
6853 ac_ct_RANLIB=$RANLIB
6854 # Extract the first word of "ranlib", so it can be a program name with args.
6855 set dummy ranlib; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6859 $as_echo_n "(cached) " >&6
6861 if test -n "$ac_ct_RANLIB"; then
6862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_ac_ct_RANLIB="ranlib"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882 if test -n "$ac_ct_RANLIB"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6884 $as_echo "$ac_ct_RANLIB" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6890 if test "x$ac_ct_RANLIB" = x; then
6893 case $cross_compiling:$ac_tool_warned in
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6899 RANLIB=$ac_ct_RANLIB
6902 RANLIB="$ac_cv_prog_RANLIB"
6910 # Check whether --enable-largefile was given.
6911 if test "${enable_largefile+set}" = set; then :
6912 enableval=$enable_largefile;
6915 if test "$enable_largefile" != no; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6918 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6919 if ${ac_cv_sys_largefile_CC+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 ac_cv_sys_largefile_CC=no
6923 if test "$GCC" != yes; then
6926 # IRIX 6.2 and later do not support large files by default,
6927 # so use the C compiler's -n32 option if that helps.
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #include <sys/types.h>
6931 /* Check that off_t can represent 2**63 - 1 correctly.
6932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6933 since some C++ compilers masquerading as C compilers
6934 incorrectly reject 9223372036854775807. */
6935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6937 && LARGE_OFF_T % 2147483647 == 1)
6947 if ac_fn_c_try_compile "$LINENO"; then :
6950 rm -f core conftest.err conftest.$ac_objext
6952 if ac_fn_c_try_compile "$LINENO"; then :
6953 ac_cv_sys_largefile_CC=' -n32'; break
6955 rm -f core conftest.err conftest.$ac_objext
6959 rm -f conftest.$ac_ext
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6963 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6964 if test "$ac_cv_sys_largefile_CC" != no; then
6965 CC=$CC$ac_cv_sys_largefile_CC
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6969 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6970 if ${ac_cv_sys_file_offset_bits+:} false; then :
6971 $as_echo_n "(cached) " >&6
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 #include <sys/types.h>
6977 /* Check that off_t can represent 2**63 - 1 correctly.
6978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6979 since some C++ compilers masquerading as C compilers
6980 incorrectly reject 9223372036854775807. */
6981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6983 && LARGE_OFF_T % 2147483647 == 1)
6993 if ac_fn_c_try_compile "$LINENO"; then :
6994 ac_cv_sys_file_offset_bits=no; break
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 #define _FILE_OFFSET_BITS 64
7000 #include <sys/types.h>
7001 /* Check that off_t can represent 2**63 - 1 correctly.
7002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7003 since some C++ compilers masquerading as C compilers
7004 incorrectly reject 9223372036854775807. */
7005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7007 && LARGE_OFF_T % 2147483647 == 1)
7017 if ac_fn_c_try_compile "$LINENO"; then :
7018 ac_cv_sys_file_offset_bits=64; break
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 ac_cv_sys_file_offset_bits=unknown
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7026 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7027 case $ac_cv_sys_file_offset_bits in #(
7030 cat >>confdefs.h <<_ACEOF
7031 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7036 if test $ac_cv_sys_file_offset_bits = unknown; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7038 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7039 if ${ac_cv_sys_large_files+:} false; then :
7040 $as_echo_n "(cached) " >&6
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 #include <sys/types.h>
7046 /* Check that off_t can represent 2**63 - 1 correctly.
7047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7048 since some C++ compilers masquerading as C compilers
7049 incorrectly reject 9223372036854775807. */
7050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7052 && LARGE_OFF_T % 2147483647 == 1)
7062 if ac_fn_c_try_compile "$LINENO"; then :
7063 ac_cv_sys_large_files=no; break
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #define _LARGE_FILES 1
7069 #include <sys/types.h>
7070 /* Check that off_t can represent 2**63 - 1 correctly.
7071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7072 since some C++ compilers masquerading as C compilers
7073 incorrectly reject 9223372036854775807. */
7074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7076 && LARGE_OFF_T % 2147483647 == 1)
7086 if ac_fn_c_try_compile "$LINENO"; then :
7087 ac_cv_sys_large_files=1; break
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 ac_cv_sys_large_files=unknown
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7095 $as_echo "$ac_cv_sys_large_files" >&6; }
7096 case $ac_cv_sys_large_files in #(
7099 cat >>confdefs.h <<_ACEOF
7100 #define _LARGE_FILES $ac_cv_sys_large_files
7108 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7117 # Check whether --enable-threads was given.
7118 if test "${enable_threads+set}" = set; then :
7119 enableval=$enable_threads; gl_use_threads=$enableval
7121 if test -n "$gl_use_threads_default"; then
7122 gl_use_threads="$gl_use_threads_default"
7125 osf*) gl_use_threads=no ;;
7128 1.[0-5].*) gl_use_threads=no ;;
7129 *) gl_use_threads=yes ;;
7132 *) gl_use_threads=yes ;;
7138 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7139 # For using <pthread.h>:
7142 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7143 # groks <pthread.h>. cc also understands the flag -pthread, but
7144 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7145 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7146 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7147 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7148 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7151 # Some systems optimize for single-threaded programs by default, and
7152 # need special flags to disable these optimizations. For example, the
7153 # definition of 'errno' in <errno.h>.
7155 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7156 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7162 # Pre-early section.
7167 # Code from module absolute-header:
7168 # Code from module alloca-opt:
7169 # Code from module allocator:
7170 # Code from module ansi-c++-opt:
7171 # Code from module areadlink:
7172 # Code from module atexit:
7173 # Code from module basename:
7174 # Code from module c-ctype:
7175 # Code from module c-strcase:
7176 # Code from module canonicalize-lgpl:
7177 # Code from module careadlinkat:
7178 # Code from module closeout:
7179 # Code from module configmake:
7180 # Code from module csharpcomp-script:
7181 # Code from module dosname:
7182 # Code from module double-slash-root:
7183 # Code from module environ:
7184 # Code from module errno:
7185 # Code from module error:
7186 # Code from module extensions:
7187 # Code from module extern-inline:
7188 # Code from module fwriteerror:
7189 # Code from module getopt-gnu:
7190 # Code from module getopt-posix:
7191 # Code from module gettext-h:
7192 # Code from module gettext-runtime-misc:
7193 # Code from module gettimeofday:
7194 # Code from module gperf:
7195 # Code from module hard-locale:
7196 # Code from module havelib:
7197 # Code from module iconv:
7198 # Code from module iconv-h:
7199 # Code from module iconv_open:
7200 # Code from module include_next:
7201 # Code from module inline:
7202 # Code from module intprops:
7203 # Code from module iswblank:
7204 # Code from module java:
7205 # Code from module javacomp-script:
7206 # Code from module langinfo:
7207 # Code from module largefile:
7209 # Code from module localcharset:
7210 # Code from module locale:
7211 # Code from module localename:
7212 # Code from module lock:
7213 # Code from module lstat:
7214 # Code from module malloca:
7215 # Code from module mbchar:
7216 # Code from module mbiter:
7217 # Code from module mbrtowc:
7218 # Code from module mbsinit:
7219 # Code from module mbslen:
7220 # Code from module mbsstr:
7221 # Code from module mbuiter:
7222 # Code from module memchr:
7223 # Code from module memmove:
7224 # Code from module msvc-inval:
7225 # Code from module msvc-nothrow:
7226 # Code from module multiarch:
7227 # Code from module nocrash:
7228 # Code from module pathmax:
7229 # Code from module progname:
7230 # Code from module propername:
7231 # Code from module raise:
7232 # Code from module readlink:
7233 # Code from module relocatable-prog:
7234 # Code from module relocatable-prog-wrapper:
7235 # Code from module setlocale:
7236 # Code from module signal-h:
7237 # Code from module sigpipe:
7238 # Code from module sigprocmask:
7239 # Code from module snippet/_Noreturn:
7240 # Code from module snippet/arg-nonnull:
7241 # Code from module snippet/c++defs:
7242 # Code from module snippet/unused-parameter:
7243 # Code from module snippet/warn-on-use:
7244 # Code from module ssize_t:
7245 # Code from module stat:
7246 # Code from module stdbool:
7247 # Code from module stddef:
7248 # Code from module stdint:
7249 # Code from module stdio:
7250 # Code from module stdlib:
7251 # Code from module streq:
7252 # Code from module strerror:
7253 # Code from module strerror-override:
7254 # Code from module striconv:
7255 # Code from module string:
7256 # Code from module strnlen:
7257 # Code from module strnlen1:
7258 # Code from module strtoul:
7259 # Code from module sys_stat:
7260 # Code from module sys_time:
7261 # Code from module sys_types:
7262 # Code from module threadlib:
7266 # Code from module time:
7267 # Code from module trim:
7268 # Code from module unistd:
7269 # Code from module unistr/base:
7270 # Code from module unistr/u8-mbtoucr:
7271 # Code from module unistr/u8-uctomb:
7272 # Code from module unitypes:
7273 # Code from module uniwidth/base:
7274 # Code from module uniwidth/width:
7275 # Code from module unlocked-io:
7276 # Code from module verify:
7277 # Code from module wchar:
7278 # Code from module wctype-h:
7279 # Code from module wcwidth:
7280 # Code from module xalloc:
7281 # Code from module xreadlink:
7282 # Code from module xstriconv:
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
7292 $as_echo_n "checking for auto-import of symbols... " >&6; }
7293 if ${gl_cv_ld_autoimport+:} false; then :
7294 $as_echo_n "(cached) " >&6
7297 gl_save_LDFLAGS="$LDFLAGS"
7298 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7310 if ac_fn_c_try_link "$LINENO"; then :
7311 gl_cv_ld_autoimport=yes
7313 gl_cv_ld_autoimport=no
7315 rm -f core conftest.err conftest.$ac_objext \
7316 conftest$ac_exeext conftest.$ac_ext
7317 LDFLAGS="$gl_save_LDFLAGS"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
7321 $as_echo "$gl_cv_ld_autoimport" >&6; }
7322 if test $gl_cv_ld_autoimport = yes; then
7323 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7332 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7337 macro_version='2.4.6'
7338 macro_revision='2.4.6'
7352 ltmain=$ac_aux_dir/ltmain.sh
7354 # Backslashify metacharacters that are still active within
7355 # double-quoted strings.
7356 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7358 # Same as above, but do not quote variable references.
7359 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7361 # Sed substitution to delay expansion of an escaped shell variable in a
7362 # double_quote_subst'ed string.
7363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7365 # Sed substitution to delay expansion of an escaped single quote.
7366 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7368 # Sed substitution to avoid accidental globbing in evaled expressions
7369 no_glob_subst='s/\*/\\\*/g'
7371 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7372 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7373 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7376 $as_echo_n "checking how to print strings... " >&6; }
7377 # Test print first, because it will be a builtin if present.
7378 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7379 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7381 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7384 # Use this function as a fallback that always works.
7385 func_fallback_echo ()
7387 eval 'cat <<_LTECHO_EOF
7391 ECHO='func_fallback_echo'
7394 # func_echo_all arg...
7395 # Invoke $ECHO with all args, space-separated.
7402 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7403 $as_echo "printf" >&6; } ;;
7404 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7405 $as_echo "print -r" >&6; } ;;
7406 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7407 $as_echo "cat" >&6; } ;;
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7424 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7425 if ${ac_cv_path_SED+:} false; then :
7426 $as_echo_n "(cached) " >&6
7428 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7429 for ac_i in 1 2 3 4 5 6 7; do
7430 ac_script="$ac_script$as_nl$ac_script"
7432 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7433 { ac_script=; unset ac_script;}
7434 if test -z "$SED"; then
7435 ac_path_SED_found=false
7436 # Loop through the user's path and test for each of PROGNAME-LIST
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_prog in sed gsed; do
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7445 as_fn_executable_p "$ac_path_SED" || continue
7446 # Check for GNU ac_path_SED and select it if it is found.
7447 # Check for GNU $ac_path_SED
7448 case `"$ac_path_SED" --version 2>&1` in
7450 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7453 $as_echo_n 0123456789 >"conftest.in"
7456 cat "conftest.in" "conftest.in" >"conftest.tmp"
7457 mv "conftest.tmp" "conftest.in"
7458 cp "conftest.in" "conftest.nl"
7459 $as_echo '' >> "conftest.nl"
7460 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7462 as_fn_arith $ac_count + 1 && ac_count=$as_val
7463 if test $ac_count -gt ${ac_path_SED_max-0}; then
7464 # Best one so far, save it but keep looking for a better one
7465 ac_cv_path_SED="$ac_path_SED"
7466 ac_path_SED_max=$ac_count
7468 # 10*(2^10) chars as input seems more than enough
7469 test $ac_count -gt 10 && break
7471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7474 $ac_path_SED_found && break 3
7479 if test -z "$ac_cv_path_SED"; then
7480 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7488 $as_echo "$ac_cv_path_SED" >&6; }
7489 SED="$ac_cv_path_SED"
7492 test -z "$SED" && SED=sed
7493 Xsed="$SED -e 1s/^X//"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7506 $as_echo_n "checking for fgrep... " >&6; }
7507 if ${ac_cv_path_FGREP+:} false; then :
7508 $as_echo_n "(cached) " >&6
7510 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7511 then ac_cv_path_FGREP="$GREP -F"
7513 if test -z "$FGREP"; then
7514 ac_path_FGREP_found=false
7515 # Loop through the user's path and test for each of PROGNAME-LIST
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7520 test -z "$as_dir" && as_dir=.
7521 for ac_prog in fgrep; do
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7524 as_fn_executable_p "$ac_path_FGREP" || continue
7525 # Check for GNU ac_path_FGREP and select it if it is found.
7526 # Check for GNU $ac_path_FGREP
7527 case `"$ac_path_FGREP" --version 2>&1` in
7529 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7532 $as_echo_n 0123456789 >"conftest.in"
7535 cat "conftest.in" "conftest.in" >"conftest.tmp"
7536 mv "conftest.tmp" "conftest.in"
7537 cp "conftest.in" "conftest.nl"
7538 $as_echo 'FGREP' >> "conftest.nl"
7539 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7541 as_fn_arith $ac_count + 1 && ac_count=$as_val
7542 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7543 # Best one so far, save it but keep looking for a better one
7544 ac_cv_path_FGREP="$ac_path_FGREP"
7545 ac_path_FGREP_max=$ac_count
7547 # 10*(2^10) chars as input seems more than enough
7548 test $ac_count -gt 10 && break
7550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7553 $ac_path_FGREP_found && break 3
7558 if test -z "$ac_cv_path_FGREP"; then
7559 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7562 ac_cv_path_FGREP=$FGREP
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7568 $as_echo "$ac_cv_path_FGREP" >&6; }
7569 FGREP="$ac_cv_path_FGREP"
7572 test -z "$GREP" && GREP=grep
7592 # Check whether --with-gnu-ld was given.
7593 if test "${with_gnu_ld+set}" = set; then :
7594 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7600 if test yes = "$GCC"; then
7601 # Check if gcc -print-prog-name=ld gives a path.
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7603 $as_echo_n "checking for ld used by $CC... " >&6; }
7606 # gcc leaves a trailing carriage return, which upsets mingw
7607 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7609 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7612 # Accept absolute paths.
7614 re_direlt='/[^/][^/]*/\.\./'
7615 # Canonicalize the pathname of ld
7616 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7617 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7618 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7620 test -z "$LD" && LD=$ac_prog
7623 # If it fails, then pretend we aren't using GCC.
7627 # If it is relative, then search for the first ld in PATH.
7631 elif test yes = "$with_gnu_ld"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7633 $as_echo_n "checking for GNU ld... " >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7636 $as_echo_n "checking for non-GNU ld... " >&6; }
7638 if ${lt_cv_path_LD+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 if test -z "$LD"; then
7642 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7643 for ac_dir in $PATH; do
7645 test -z "$ac_dir" && ac_dir=.
7646 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7647 lt_cv_path_LD=$ac_dir/$ac_prog
7648 # Check to see if the program is GNU ld. I'd rather use --version,
7649 # but apparently some variants of GNU ld only accept -v.
7650 # Break only if it was the GNU/non-GNU ld that we prefer.
7651 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7652 *GNU* | *'with BFD'*)
7653 test no != "$with_gnu_ld" && break
7656 test yes != "$with_gnu_ld" && break
7663 lt_cv_path_LD=$LD # Let the user override the test with a path.
7668 if test -n "$LD"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7670 $as_echo "$LD" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7675 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7677 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7678 if ${lt_cv_prog_gnu_ld+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7682 case `$LD -v 2>&1 </dev/null` in
7683 *GNU* | *'with BFD'*)
7684 lt_cv_prog_gnu_ld=yes
7687 lt_cv_prog_gnu_ld=no
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7692 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7693 with_gnu_ld=$lt_cv_prog_gnu_ld
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7704 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7705 if ${lt_cv_path_NM+:} false; then :
7706 $as_echo_n "(cached) " >&6
7708 if test -n "$NM"; then
7709 # Let the user override the test.
7712 lt_nm_to_check=${ac_tool_prefix}nm
7713 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7714 lt_nm_to_check="$lt_nm_to_check nm"
7716 for lt_tmp_nm in $lt_nm_to_check; do
7717 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7718 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7720 test -z "$ac_dir" && ac_dir=.
7721 tmp_nm=$ac_dir/$lt_tmp_nm
7722 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7723 # Check to see if the nm accepts a BSD-compat flag.
7724 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7725 # nm: unknown option "B" ignored
7726 # Tru64's nm complains that /dev/null is an invalid object file
7727 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7729 mingw*) lt_bad_file=conftest.nm/nofile ;;
7730 *) lt_bad_file=/dev/null ;;
7732 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7733 *$lt_bad_file* | *'Invalid file or object type'*)
7734 lt_cv_path_NM="$tmp_nm -B"
7738 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7740 lt_cv_path_NM="$tmp_nm -p"
7744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7745 continue # so that we can try to find one that supports BSD flags
7754 : ${lt_cv_path_NM=no}
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7758 $as_echo "$lt_cv_path_NM" >&6; }
7759 if test no != "$lt_cv_path_NM"; then
7762 # Didn't find any BSD compatible name lister, look for dumpbin.
7763 if test -n "$DUMPBIN"; then :
7764 # Let the user override the test.
7766 if test -n "$ac_tool_prefix"; then
7767 for ac_prog in dumpbin "link -dump"
7769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_DUMPBIN+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$DUMPBIN"; then
7777 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 DUMPBIN=$ac_cv_prog_DUMPBIN
7797 if test -n "$DUMPBIN"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7799 $as_echo "$DUMPBIN" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7806 test -n "$DUMPBIN" && break
7809 if test -z "$DUMPBIN"; then
7810 ac_ct_DUMPBIN=$DUMPBIN
7811 for ac_prog in dumpbin "link -dump"
7813 # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7818 $as_echo_n "(cached) " >&6
7820 if test -n "$ac_ct_DUMPBIN"; then
7821 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7841 if test -n "$ac_ct_DUMPBIN"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7843 $as_echo "$ac_ct_DUMPBIN" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7850 test -n "$ac_ct_DUMPBIN" && break
7853 if test "x$ac_ct_DUMPBIN" = x; then
7856 case $cross_compiling:$ac_tool_warned in
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7862 DUMPBIN=$ac_ct_DUMPBIN
7866 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7868 DUMPBIN="$DUMPBIN -symbols -headers"
7876 if test : != "$DUMPBIN"; then
7880 test -z "$NM" && NM=nm
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7888 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7889 if ${lt_cv_nm_interface+:} false; then :
7890 $as_echo_n "(cached) " >&6
7892 lt_cv_nm_interface="BSD nm"
7893 echo "int some_variable = 0;" > conftest.$ac_ext
7894 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7895 (eval "$ac_compile" 2>conftest.err)
7896 cat conftest.err >&5
7897 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7898 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7899 cat conftest.err >&5
7900 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7901 cat conftest.out >&5
7902 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7903 lt_cv_nm_interface="MS dumpbin"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7908 $as_echo "$lt_cv_nm_interface" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7911 $as_echo_n "checking whether ln -s works... " >&6; }
7913 if test "$LN_S" = "ln -s"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915 $as_echo "yes" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7918 $as_echo "no, using $LN_S" >&6; }
7921 # find the maximum length of command line arguments
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7923 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7924 if ${lt_cv_sys_max_cmd_len+:} false; then :
7925 $as_echo_n "(cached) " >&6
7932 # On DJGPP, this test can blow up pretty badly due to problems in libc
7933 # (any single argument exceeding 2000 bytes causes a buffer overrun
7934 # during glob expansion). Even if it were fixed, the result of this
7935 # check would be larger than it should be.
7936 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7940 # Under GNU Hurd, this test is not required because there is
7941 # no limit to the length of command line arguments.
7942 # Libtool will interpret -1 as no limit whatsoever
7943 lt_cv_sys_max_cmd_len=-1;
7946 cygwin* | mingw* | cegcc*)
7947 # On Win9x/ME, this test blows up -- it succeeds, but takes
7948 # about 5 minutes as the teststring grows exponentially.
7949 # Worse, since 9x/ME are not pre-emptively multitasking,
7950 # you end up with a "frozen" computer, even though with patience
7951 # the test eventually succeeds (with a max line length of 256k).
7952 # Instead, let's just punt: use the minimum linelength reported by
7953 # all of the supported platforms: 8192 (on NT/2K/XP).
7954 lt_cv_sys_max_cmd_len=8192;
7958 # On MiNT this can take a long time and run out of memory.
7959 lt_cv_sys_max_cmd_len=8192;
7963 # On AmigaOS with pdksh, this test takes hours, literally.
7964 # So we just punt and use a minimum line length of 8192.
7965 lt_cv_sys_max_cmd_len=8192;
7968 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7969 # This has been around since 386BSD, at least. Likely further.
7970 if test -x /sbin/sysctl; then
7971 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7972 elif test -x /usr/sbin/sysctl; then
7973 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7975 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7977 # And add a safety zone
7978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7983 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7984 lt_cv_sys_max_cmd_len=196608
7988 # The test takes a long time on OS/2.
7989 lt_cv_sys_max_cmd_len=8192
7993 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7994 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7995 # nice to cause kernel panics so lets avoid the loop below.
7996 # First set a reasonable default.
7997 lt_cv_sys_max_cmd_len=16384
7999 if test -x /sbin/sysconfig; then
8000 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8001 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8006 lt_cv_sys_max_cmd_len=102400
8008 sysv5* | sco5v6* | sysv4.2uw2*)
8009 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8010 if test -n "$kargmax"; then
8011 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8013 lt_cv_sys_max_cmd_len=32768
8017 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8018 if test -n "$lt_cv_sys_max_cmd_len" && \
8019 test undefined != "$lt_cv_sys_max_cmd_len"; then
8020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8023 # Make teststring a little bigger before we do anything with it.
8024 # a 1K string should be a reasonable start.
8025 for i in 1 2 3 4 5 6 7 8; do
8026 teststring=$teststring$teststring
8028 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8029 # If test is not a shell built-in, we'll probably end up computing a
8030 # maximum length that is only half of the actual maximum length, but
8032 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8033 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8034 test 17 != "$i" # 1/2 MB should be enough
8037 teststring=$teststring$teststring
8039 # Only check the string length outside the loop.
8040 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8042 # Add a significant safety factor because C++ compilers can tack on
8043 # massive amounts of additional arguments before passing them to the
8044 # linker. It appears as though 1/2 is a usable value.
8045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8052 if test -n "$lt_cv_sys_max_cmd_len"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8054 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8057 $as_echo "none" >&6; }
8059 max_cmd_len=$lt_cv_sys_max_cmd_len
8070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8080 # test EBCDIC or ASCII
8081 case `echo X|tr X '\101'` in
8082 A) # ASCII based system
8083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8084 lt_SP2NL='tr \040 \012'
8085 lt_NL2SP='tr \015\012 \040\040'
8087 *) # EBCDIC based system
8088 lt_SP2NL='tr \100 \n'
8089 lt_NL2SP='tr \r\n \100\100'
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8102 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8103 if ${lt_cv_to_host_file_cmd+:} false; then :
8104 $as_echo_n "(cached) " >&6
8109 *-*-mingw* ) # actually msys
8110 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8113 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8115 * ) # otherwise, assume *nix
8116 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8122 *-*-mingw* ) # actually msys
8123 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8126 lt_cv_to_host_file_cmd=func_convert_file_noop
8128 * ) # otherwise, assume *nix
8129 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8133 * ) # unhandled hosts (and "normal" native builds)
8134 lt_cv_to_host_file_cmd=func_convert_file_noop
8140 to_host_file_cmd=$lt_cv_to_host_file_cmd
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8142 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8149 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8150 if ${lt_cv_to_tool_file_cmd+:} false; then :
8151 $as_echo_n "(cached) " >&6
8153 #assume ordinary cross tools, or native build.
8154 lt_cv_to_tool_file_cmd=func_convert_file_noop
8158 *-*-mingw* ) # actually msys
8159 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8167 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8169 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8177 if ${lt_cv_ld_reload_flag+:} false; then :
8178 $as_echo_n "(cached) " >&6
8180 lt_cv_ld_reload_flag='-r'
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8184 reload_flag=$lt_cv_ld_reload_flag
8185 case $reload_flag in
8187 *) reload_flag=" $reload_flag" ;;
8189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8191 cygwin* | mingw* | pw32* | cegcc*)
8192 if test yes != "$GCC"; then
8197 if test yes = "$GCC"; then
8198 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8200 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8213 if test -n "$ac_tool_prefix"; then
8214 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8215 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if ${ac_cv_prog_OBJDUMP+:} false; then :
8219 $as_echo_n "(cached) " >&6
8221 if test -n "$OBJDUMP"; then
8222 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 OBJDUMP=$ac_cv_prog_OBJDUMP
8242 if test -n "$OBJDUMP"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8244 $as_echo "$OBJDUMP" >&6; }
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8252 if test -z "$ac_cv_prog_OBJDUMP"; then
8253 ac_ct_OBJDUMP=$OBJDUMP
8254 # Extract the first word of "objdump", so it can be a program name with args.
8255 set dummy objdump; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 if test -n "$ac_ct_OBJDUMP"; then
8262 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8271 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8282 if test -n "$ac_ct_OBJDUMP"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8284 $as_echo "$ac_ct_OBJDUMP" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8290 if test "x$ac_ct_OBJDUMP" = x; then
8293 case $cross_compiling:$ac_tool_warned in
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8297 ac_tool_warned=yes ;;
8299 OBJDUMP=$ac_ct_OBJDUMP
8302 OBJDUMP="$ac_cv_prog_OBJDUMP"
8305 test -z "$OBJDUMP" && OBJDUMP=objdump
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8313 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8314 if ${lt_cv_deplibs_check_method+:} false; then :
8315 $as_echo_n "(cached) " >&6
8317 lt_cv_file_magic_cmd='$MAGIC_CMD'
8318 lt_cv_file_magic_test_file=
8319 lt_cv_deplibs_check_method='unknown'
8320 # Need to set the preceding variable on all platforms that support
8321 # interlibrary dependencies.
8322 # 'none' -- dependencies not supported.
8323 # 'unknown' -- same as none, but documents that we really don't know.
8324 # 'pass_all' -- all dependencies passed with no checks.
8325 # 'test_compile' -- check by making test program.
8326 # 'file_magic [[regex]]' -- check by looking for files in library path
8327 # that responds to the $file_magic_cmd with a given extended regex.
8328 # If you have 'file' or equivalent on your system and you're not sure
8329 # whether 'pass_all' will *always* work, you probably want this one.
8333 lt_cv_deplibs_check_method=pass_all
8337 lt_cv_deplibs_check_method=pass_all
8341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8342 lt_cv_file_magic_cmd='/usr/bin/file -L'
8343 lt_cv_file_magic_test_file=/shlib/libc.so
8347 # func_win32_libid is a shell function defined in ltmain.sh
8348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8349 lt_cv_file_magic_cmd='func_win32_libid'
8353 # Base MSYS/MinGW do not provide the 'file' command needed by
8354 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8355 # unless we find 'file', for example because we are cross-compiling.
8356 if ( file / ) >/dev/null 2>&1; then
8357 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8358 lt_cv_file_magic_cmd='func_win32_libid'
8360 # Keep this pattern in sync with the one in func_win32_libid.
8361 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8362 lt_cv_file_magic_cmd='$OBJDUMP -f'
8367 # use the weaker test based on 'objdump'. See mingw*.
8368 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8369 lt_cv_file_magic_cmd='$OBJDUMP -f'
8372 darwin* | rhapsody*)
8373 lt_cv_deplibs_check_method=pass_all
8376 freebsd* | dragonfly*)
8377 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8380 # Not sure whether the presence of OpenBSD here was a mistake.
8381 # Let's accept both of them until this is cleared up.
8382 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8383 lt_cv_file_magic_cmd=/usr/bin/file
8384 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8388 lt_cv_deplibs_check_method=pass_all
8393 lt_cv_deplibs_check_method=pass_all
8396 hpux10.20* | hpux11*)
8397 lt_cv_file_magic_cmd=/usr/bin/file
8400 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8401 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8404 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8405 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8408 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8409 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8415 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8419 irix5* | irix6* | nonstopux*)
8421 *-32|*"-32 ") libmagic=32-bit;;
8422 *-n32|*"-n32 ") libmagic=N32;;
8423 *-64|*"-64 ") libmagic=64-bit;;
8424 *) libmagic=never-match;;
8426 lt_cv_deplibs_check_method=pass_all
8429 # This must be glibc/ELF.
8430 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8431 lt_cv_deplibs_check_method=pass_all
8435 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8444 lt_cv_file_magic_cmd=/usr/bin/file
8445 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8449 lt_cv_deplibs_check_method=pass_all
8453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8460 osf3* | osf4* | osf5*)
8461 lt_cv_deplibs_check_method=pass_all
8465 lt_cv_deplibs_check_method=pass_all
8469 lt_cv_deplibs_check_method=pass_all
8472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8473 lt_cv_deplibs_check_method=pass_all
8477 case $host_vendor in
8479 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]'
8480 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8483 lt_cv_deplibs_check_method=pass_all
8486 lt_cv_file_magic_cmd='/bin/file'
8487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8490 lt_cv_file_magic_cmd='/bin/file'
8491 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8492 lt_cv_file_magic_test_file=/lib/libc.so
8495 lt_cv_deplibs_check_method=pass_all
8498 lt_cv_deplibs_check_method=pass_all
8504 lt_cv_deplibs_check_method=pass_all
8507 lt_cv_deplibs_check_method=pass_all
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8513 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8517 if test "$build" = "$host"; then
8520 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8523 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8529 file_magic_cmd=$lt_cv_file_magic_cmd
8530 deplibs_check_method=$lt_cv_deplibs_check_method
8531 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8554 if test -n "$ac_tool_prefix"; then
8555 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8556 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_prog_DLLTOOL+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 if test -n "$DLLTOOL"; then
8563 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 DLLTOOL=$ac_cv_prog_DLLTOOL
8583 if test -n "$DLLTOOL"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8585 $as_echo "$DLLTOOL" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8593 if test -z "$ac_cv_prog_DLLTOOL"; then
8594 ac_ct_DLLTOOL=$DLLTOOL
8595 # Extract the first word of "dlltool", so it can be a program name with args.
8596 set dummy dlltool; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8600 $as_echo_n "(cached) " >&6
8602 if test -n "$ac_ct_DLLTOOL"; then
8603 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8612 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8623 if test -n "$ac_ct_DLLTOOL"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8625 $as_echo "$ac_ct_DLLTOOL" >&6; }
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8631 if test "x$ac_ct_DLLTOOL" = x; then
8634 case $cross_compiling:$ac_tool_warned in
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8638 ac_tool_warned=yes ;;
8640 DLLTOOL=$ac_ct_DLLTOOL
8643 DLLTOOL="$ac_cv_prog_DLLTOOL"
8646 test -z "$DLLTOOL" && DLLTOOL=dlltool
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8655 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8656 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 lt_cv_sharedlib_from_linklib_cmd='unknown'
8662 cygwin* | mingw* | pw32* | cegcc*)
8663 # two different shell functions defined in ltmain.sh;
8664 # decide which one to use based on capabilities of $DLLTOOL
8665 case `$DLLTOOL --help 2>&1` in
8666 *--identify-strict*)
8667 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8670 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8675 # fallback: assume linklib IS sharedlib
8676 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8682 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8683 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8684 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8692 if test -n "$ac_tool_prefix"; then
8695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_prog_AR+:} false; then :
8700 $as_echo_n "(cached) " >&6
8702 if test -n "$AR"; then
8703 ac_cv_prog_AR="$AR" # Let the user override the test.
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 test -z "$as_dir" && as_dir=.
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 if test -n "$AR"; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8725 $as_echo "$AR" >&6; }
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8732 test -n "$AR" && break
8735 if test -z "$AR"; then
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 if test -n "$ac_ct_AR"; then
8747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_ac_ct_AR="$ac_prog"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8767 if test -n "$ac_ct_AR"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8769 $as_echo "$ac_ct_AR" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8776 test -n "$ac_ct_AR" && break
8779 if test "x$ac_ct_AR" = x; then
8782 case $cross_compiling:$ac_tool_warned in
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8786 ac_tool_warned=yes ;;
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8806 $as_echo_n "checking for archiver @FILE support... " >&6; }
8807 if ${lt_cv_ar_at_file+:} false; then :
8808 $as_echo_n "(cached) " >&6
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823 echo conftest.$ac_objext > conftest.lst
8824 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8826 (eval $lt_ar_try) 2>&5
8828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8829 test $ac_status = 0; }
8830 if test 0 -eq "$ac_status"; then
8831 # Ensure the archiver fails upon bogus file names.
8832 rm -f conftest.$ac_objext libconftest.a
8833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8834 (eval $lt_ar_try) 2>&5
8836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837 test $ac_status = 0; }
8838 if test 0 -ne "$ac_status"; then
8842 rm -f conftest.* libconftest.a
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8849 $as_echo "$lt_cv_ar_at_file" >&6; }
8851 if test no = "$lt_cv_ar_at_file"; then
8854 archiver_list_spec=$lt_cv_ar_at_file
8863 if test -n "$ac_tool_prefix"; then
8864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8865 set dummy ${ac_tool_prefix}strip; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_prog_STRIP+:} false; then :
8869 $as_echo_n "(cached) " >&6
8871 if test -n "$STRIP"; then
8872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 test -z "$as_dir" && as_dir=.
8879 for ac_exec_ext in '' $ac_executable_extensions; do
8880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 STRIP=$ac_cv_prog_STRIP
8892 if test -n "$STRIP"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8894 $as_echo "$STRIP" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8902 if test -z "$ac_cv_prog_STRIP"; then
8904 # Extract the first word of "strip", so it can be a program name with args.
8905 set dummy strip; ac_word=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8909 $as_echo_n "(cached) " >&6
8911 if test -n "$ac_ct_STRIP"; then
8912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 test -z "$as_dir" && as_dir=.
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921 ac_cv_prog_ac_ct_STRIP="strip"
8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8932 if test -n "$ac_ct_STRIP"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8934 $as_echo "$ac_ct_STRIP" >&6; }
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8940 if test "x$ac_ct_STRIP" = x; then
8943 case $cross_compiling:$ac_tool_warned in
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8947 ac_tool_warned=yes ;;
8952 STRIP="$ac_cv_prog_STRIP"
8955 test -z "$STRIP" && STRIP=:
8962 if test -n "$ac_tool_prefix"; then
8963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_prog_RANLIB+:} false; then :
8968 $as_echo_n "(cached) " >&6
8970 if test -n "$RANLIB"; then
8971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 RANLIB=$ac_cv_prog_RANLIB
8991 if test -n "$RANLIB"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8993 $as_echo "$RANLIB" >&6; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
9001 if test -z "$ac_cv_prog_RANLIB"; then
9002 ac_ct_RANLIB=$RANLIB
9003 # Extract the first word of "ranlib", so it can be a program name with args.
9004 set dummy ranlib; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9008 $as_echo_n "(cached) " >&6
9010 if test -n "$ac_ct_RANLIB"; then
9011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9020 ac_cv_prog_ac_ct_RANLIB="ranlib"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9031 if test -n "$ac_ct_RANLIB"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9033 $as_echo "$ac_ct_RANLIB" >&6; }
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9039 if test "x$ac_ct_RANLIB" = x; then
9042 case $cross_compiling:$ac_tool_warned in
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046 ac_tool_warned=yes ;;
9048 RANLIB=$ac_ct_RANLIB
9051 RANLIB="$ac_cv_prog_RANLIB"
9054 test -z "$RANLIB" && RANLIB=:
9061 # Determine commands to create old-style static archives.
9062 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9063 old_postinstall_cmds='chmod 644 $oldlib'
9064 old_postuninstall_cmds=
9066 if test -n "$RANLIB"; then
9069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9075 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9080 lock_old_archive_extraction=yes ;;
9082 lock_old_archive_extraction=no ;;
9123 # If no C compiler was specified, use CC.
9126 # If no C compiler flags were specified, use CFLAGS.
9127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9129 # Allow CC to be a program name with arguments.
9133 # Check for command to grab the raw symbol name followed by C symbol from nm.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9135 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9136 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9137 $as_echo_n "(cached) " >&6
9140 # These are sane defaults that work on at least a few old systems.
9141 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9143 # Character class describing NM global symbol codes.
9144 symcode='[BCDEGRST]'
9146 # Regexp to match symbols that can be accessed directly from C.
9147 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9149 # Define system-specific variables.
9154 cygwin* | mingw* | pw32* | cegcc*)
9155 symcode='[ABCDGISTW]'
9158 if test ia64 = "$host_cpu"; then
9159 symcode='[ABCDEGRST]'
9163 symcode='[BCDEGRST]'
9166 symcode='[BCDEGQRST]'
9177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9185 # If we're using GNU nm, then use its standard symbol codes.
9186 case `$NM -V 2>&1` in
9187 *GNU* | *'with BFD'*)
9188 symcode='[ABCDGIRSTW]' ;;
9191 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9192 # Gets list of data symbols to import.
9193 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9194 # Adjust the below global symbol transforms to fixup imported variables.
9195 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9196 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9197 lt_c_name_lib_hook="\
9198 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9199 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9201 # Disable hooks by default.
9202 lt_cv_sys_global_symbol_to_import=
9208 # Transform an extracted symbol line into a proper C declaration.
9209 # Some systems (esp. on ia64) link data and code symbols differently,
9210 # so use this general approach.
9211 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9213 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9214 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9216 # Transform an extracted symbol line into symbol name and symbol address
9217 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9219 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9220 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9222 # Transform an extracted symbol line into symbol name with lib prefix and
9224 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9225 $lt_c_name_lib_hook\
9226 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9227 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9228 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9230 # Handle CRLF in mingw tool chain
9234 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9238 # Try without a prefix underscore, then with it.
9239 for ac_symprfx in "" "_"; do
9241 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9242 symxfrm="\\1 $ac_symprfx\\2 \\2"
9244 # Write the raw and C identifiers.
9245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9246 # Fake it for dumpbin and say T for any non-static function,
9247 # D for any global variable and I for any imported variable.
9248 # Also find C++ and __fastcall symbols from MSVC++,
9249 # which start with @ or ?.
9250 lt_cv_sys_global_symbol_pipe="$AWK '"\
9251 " {last_section=section; section=\$ 3};"\
9252 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9253 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9254 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9255 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9256 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9257 " \$ 0!~/External *\|/{next};"\
9258 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9259 " {if(hide[section]) next};"\
9260 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9261 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9262 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9263 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9264 " ' prfx=^$ac_symprfx"
9266 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9268 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9270 # Check to see that the pipe works correctly.
9274 cat > conftest.$ac_ext <<_LT_EOF
9279 void nm_test_func(void);
9280 void nm_test_func(void){}
9284 int main(){nm_test_var='a';nm_test_func();return(0);}
9287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9288 (eval $ac_compile) 2>&5
9290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9291 test $ac_status = 0; }; then
9292 # Now try to grab the symbols.
9294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9295 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9298 test $ac_status = 0; } && test -s "$nlist"; then
9299 # Try sorting and uniquifying the output.
9300 if sort "$nlist" | uniq > "$nlist"T; then
9301 mv -f "$nlist"T "$nlist"
9306 # Make sure that we snagged all the symbols we need.
9307 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9308 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9309 cat <<_LT_EOF > conftest.$ac_ext
9310 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9311 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9312 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9313 relocations are performed -- see ld's documentation on pseudo-relocs. */
9314 # define LT_DLSYM_CONST
9315 #elif defined __osf__
9316 /* This system does not cope well with relocations in const data. */
9317 # define LT_DLSYM_CONST
9319 # define LT_DLSYM_CONST const
9327 # Now generate the symbol file.
9328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9330 cat <<_LT_EOF >> conftest.$ac_ext
9332 /* The mapping between symbol names and symbols. */
9333 LT_DLSYM_CONST struct {
9337 lt__PROGRAM__LTX_preloaded_symbols[] =
9339 { "@PROGRAM@", (void *) 0 },
9341 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9342 cat <<\_LT_EOF >> conftest.$ac_ext
9346 /* This works around a problem in FreeBSD linker */
9347 #ifdef FREEBSD_WORKAROUND
9348 static const void *lt_preloaded_setup() {
9349 return lt__PROGRAM__LTX_preloaded_symbols;
9357 # Now try linking the two files.
9358 mv conftest.$ac_objext conftstm.$ac_objext
9359 lt_globsym_save_LIBS=$LIBS
9360 lt_globsym_save_CFLAGS=$CFLAGS
9361 LIBS=conftstm.$ac_objext
9362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9364 (eval $ac_link) 2>&5
9366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9367 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9370 LIBS=$lt_globsym_save_LIBS
9371 CFLAGS=$lt_globsym_save_CFLAGS
9373 echo "cannot find nm_test_func in $nlist" >&5
9376 echo "cannot find nm_test_var in $nlist" >&5
9379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9382 echo "$progname: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9385 rm -rf conftest* conftst*
9387 # Do not use the global_symbol_pipe unless it works.
9388 if test yes = "$pipe_works"; then
9391 lt_cv_sys_global_symbol_pipe=
9397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9398 lt_cv_sys_global_symbol_to_cdecl=
9400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9402 $as_echo "failed" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9405 $as_echo "ok" >&6; }
9408 # Response file support.
9409 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9410 nm_file_list_spec='@'
9411 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9412 nm_file_list_spec='@'
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9452 $as_echo_n "checking for sysroot... " >&6; }
9454 # Check whether --with-sysroot was given.
9455 if test "${with_sysroot+set}" = set; then :
9456 withval=$with_sysroot;
9463 case $with_sysroot in #(
9465 if test yes = "$GCC"; then
9466 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9470 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9476 $as_echo "$with_sysroot" >&6; }
9477 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9482 $as_echo "${lt_sysroot:-no}" >&6; }
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9489 $as_echo_n "checking for a working dd... " >&6; }
9490 if ${ac_cv_path_lt_DD+:} false; then :
9491 $as_echo_n "(cached) " >&6
9493 printf 0123456789abcdef0123456789abcdef >conftest.i
9494 cat conftest.i conftest.i >conftest2.i
9496 if test -z "$lt_DD"; then
9497 ac_path_lt_DD_found=false
9498 # Loop through the user's path and test for each of PROGNAME-LIST
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 test -z "$as_dir" && as_dir=.
9504 for ac_prog in dd; do
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9507 as_fn_executable_p "$ac_path_lt_DD" || continue
9508 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9509 cmp -s conftest.i conftest.out \
9510 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9512 $ac_path_lt_DD_found && break 3
9517 if test -z "$ac_cv_path_lt_DD"; then
9521 ac_cv_path_lt_DD=$lt_DD
9524 rm -f conftest.i conftest2.i conftest.out
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9527 $as_echo "$ac_cv_path_lt_DD" >&6; }
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9531 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9532 if ${lt_cv_truncate_bin+:} false; then :
9533 $as_echo_n "(cached) " >&6
9535 printf 0123456789abcdef0123456789abcdef >conftest.i
9536 cat conftest.i conftest.i >conftest2.i
9538 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9539 cmp -s conftest.i conftest.out \
9540 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9542 rm -f conftest.i conftest2.i conftest.out
9543 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9546 $as_echo "$lt_cv_truncate_bin" >&6; }
9554 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9557 for cc_temp in $*""; do
9559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9565 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9568 # Check whether --enable-libtool-lock was given.
9569 if test "${enable_libtool_lock+set}" = set; then :
9570 enableval=$enable_libtool_lock;
9573 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9575 # Some flags need to be propagated to the compiler or linker for good
9579 # Find out what ABI is being produced by ac_compile, and set mode
9580 # options accordingly.
9581 echo 'int i;' > conftest.$ac_ext
9582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9583 (eval $ac_compile) 2>&5
9585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9586 test $ac_status = 0; }; then
9587 case `/usr/bin/file conftest.$ac_objext` in
9599 # Find out what ABI is being produced by ac_compile, and set linker
9600 # options accordingly.
9601 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9603 (eval $ac_compile) 2>&5
9605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9606 test $ac_status = 0; }; then
9607 if test yes = "$lt_cv_prog_gnu_ld"; then
9608 case `/usr/bin/file conftest.$ac_objext` in
9610 LD="${LD-ld} -melf32bsmip"
9613 LD="${LD-ld} -melf32bmipn32"
9616 LD="${LD-ld} -melf64bmip"
9620 case `/usr/bin/file conftest.$ac_objext` in
9637 # Find out what ABI is being produced by ac_compile, and set linker
9638 # options accordingly.
9639 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9641 (eval $ac_compile) 2>&5
9643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9644 test $ac_status = 0; }; then
9646 case `/usr/bin/file conftest.$ac_objext` in
9654 case `/usr/bin/file conftest.$ac_objext` in
9656 emul="${emul}btsmip"
9659 emul="${emul}ltsmip"
9662 case `/usr/bin/file conftest.$ac_objext` in
9667 LD="${LD-ld} -m $emul"
9672 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9673 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9674 # Find out what ABI is being produced by ac_compile, and set linker
9675 # options accordingly. Note that the listed cases only cover the
9676 # situations where additional linker options are needed (such as when
9677 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9678 # vice versa); the common cases where no linker options are needed do
9679 # not appear in the list.
9680 echo 'int i;' > conftest.$ac_ext
9681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9682 (eval $ac_compile) 2>&5
9684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9685 test $ac_status = 0; }; then
9686 case `/usr/bin/file conftest.o` in
9689 x86_64-*kfreebsd*-gnu)
9690 LD="${LD-ld} -m elf_i386_fbsd"
9693 case `/usr/bin/file conftest.o` in
9695 LD="${LD-ld} -m elf32_x86_64"
9698 LD="${LD-ld} -m elf_i386"
9702 powerpc64le-*linux*)
9703 LD="${LD-ld} -m elf32lppclinux"
9706 LD="${LD-ld} -m elf32ppclinux"
9709 LD="${LD-ld} -m elf_s390"
9712 LD="${LD-ld} -m elf32_sparc"
9718 x86_64-*kfreebsd*-gnu)
9719 LD="${LD-ld} -m elf_x86_64_fbsd"
9722 LD="${LD-ld} -m elf_x86_64"
9725 LD="${LD-ld} -m elf64lppc"
9728 LD="${LD-ld} -m elf64ppc"
9730 s390*-*linux*|s390*-*tpf*)
9731 LD="${LD-ld} -m elf64_s390"
9734 LD="${LD-ld} -m elf64_sparc"
9744 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9746 CFLAGS="$CFLAGS -belf"
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9748 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9749 if ${lt_cv_cc_needs_belf+:} false; then :
9750 $as_echo_n "(cached) " >&6
9753 ac_cpp='$CPP $CPPFLAGS'
9754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9769 if ac_fn_c_try_link "$LINENO"; then :
9770 lt_cv_cc_needs_belf=yes
9772 lt_cv_cc_needs_belf=no
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9777 ac_cpp='$CPP $CPPFLAGS'
9778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9784 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9785 if test yes != "$lt_cv_cc_needs_belf"; then
9786 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9791 # Find out what ABI is being produced by ac_compile, and set linker
9792 # options accordingly.
9793 echo 'int i;' > conftest.$ac_ext
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; }; then
9799 case `/usr/bin/file conftest.o` in
9801 case $lt_cv_prog_gnu_ld in
9804 i?86-*-solaris*|x86_64-*-solaris*)
9805 LD="${LD-ld} -m elf_x86_64"
9808 LD="${LD-ld} -m elf64_sparc"
9811 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9812 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9817 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9829 need_locks=$enable_libtool_lock
9831 if test -n "$ac_tool_prefix"; then
9832 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9833 set dummy ${ac_tool_prefix}mt; ac_word=$2
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835 $as_echo_n "checking for $ac_word... " >&6; }
9836 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9837 $as_echo_n "(cached) " >&6
9839 if test -n "$MANIFEST_TOOL"; then
9840 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9849 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9860 if test -n "$MANIFEST_TOOL"; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9862 $as_echo "$MANIFEST_TOOL" >&6; }
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865 $as_echo "no" >&6; }
9870 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9871 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9872 # Extract the first word of "mt", so it can be a program name with args.
9873 set dummy mt; ac_word=$2
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9877 $as_echo_n "(cached) " >&6
9879 if test -n "$ac_ct_MANIFEST_TOOL"; then
9880 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9900 if test -n "$ac_ct_MANIFEST_TOOL"; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9902 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9908 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9911 case $cross_compiling:$ac_tool_warned in
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9915 ac_tool_warned=yes ;;
9917 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9920 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9923 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9925 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9926 if ${lt_cv_path_mainfest_tool+:} false; then :
9927 $as_echo_n "(cached) " >&6
9929 lt_cv_path_mainfest_tool=no
9930 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9931 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9932 cat conftest.err >&5
9933 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9934 lt_cv_path_mainfest_tool=yes
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9939 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9940 if test yes != "$lt_cv_path_mainfest_tool"; then
9950 rhapsody* | darwin*)
9951 if test -n "$ac_tool_prefix"; then
9952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9957 $as_echo_n "(cached) " >&6
9959 if test -n "$DSYMUTIL"; then
9960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9980 if test -n "$DSYMUTIL"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9982 $as_echo "$DSYMUTIL" >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9990 if test -z "$ac_cv_prog_DSYMUTIL"; then
9991 ac_ct_DSYMUTIL=$DSYMUTIL
9992 # Extract the first word of "dsymutil", so it can be a program name with args.
9993 set dummy dsymutil; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9997 $as_echo_n "(cached) " >&6
9999 if test -n "$ac_ct_DSYMUTIL"; then
10000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10020 if test -n "$ac_ct_DSYMUTIL"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10028 if test "x$ac_ct_DSYMUTIL" = x; then
10031 case $cross_compiling:$ac_tool_warned in
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10035 ac_tool_warned=yes ;;
10037 DSYMUTIL=$ac_ct_DSYMUTIL
10040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10043 if test -n "$ac_tool_prefix"; then
10044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if ${ac_cv_prog_NMEDIT+:} false; then :
10049 $as_echo_n "(cached) " >&6
10051 if test -n "$NMEDIT"; then
10052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055 for as_dir in $PATH
10058 test -z "$as_dir" && as_dir=.
10059 for ac_exec_ext in '' $ac_executable_extensions; do
10060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 NMEDIT=$ac_cv_prog_NMEDIT
10072 if test -n "$NMEDIT"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10074 $as_echo "$NMEDIT" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10082 if test -z "$ac_cv_prog_NMEDIT"; then
10083 ac_ct_NMEDIT=$NMEDIT
10084 # Extract the first word of "nmedit", so it can be a program name with args.
10085 set dummy nmedit; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10089 $as_echo_n "(cached) " >&6
10091 if test -n "$ac_ct_NMEDIT"; then
10092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10112 if test -n "$ac_ct_NMEDIT"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10114 $as_echo "$ac_ct_NMEDIT" >&6; }
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10120 if test "x$ac_ct_NMEDIT" = x; then
10123 case $cross_compiling:$ac_tool_warned in
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10127 ac_tool_warned=yes ;;
10129 NMEDIT=$ac_ct_NMEDIT
10132 NMEDIT="$ac_cv_prog_NMEDIT"
10135 if test -n "$ac_tool_prefix"; then
10136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if ${ac_cv_prog_LIPO+:} false; then :
10141 $as_echo_n "(cached) " >&6
10143 if test -n "$LIPO"; then
10144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 LIPO=$ac_cv_prog_LIPO
10164 if test -n "$LIPO"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10166 $as_echo "$LIPO" >&6; }
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10174 if test -z "$ac_cv_prog_LIPO"; then
10176 # Extract the first word of "lipo", so it can be a program name with args.
10177 set dummy lipo; ac_word=$2
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179 $as_echo_n "checking for $ac_word... " >&6; }
10180 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10181 $as_echo_n "(cached) " >&6
10183 if test -n "$ac_ct_LIPO"; then
10184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193 ac_cv_prog_ac_ct_LIPO="lipo"
10194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10204 if test -n "$ac_ct_LIPO"; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10206 $as_echo "$ac_ct_LIPO" >&6; }
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 $as_echo "no" >&6; }
10212 if test "x$ac_ct_LIPO" = x; then
10215 case $cross_compiling:$ac_tool_warned in
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10219 ac_tool_warned=yes ;;
10224 LIPO="$ac_cv_prog_LIPO"
10227 if test -n "$ac_tool_prefix"; then
10228 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10229 set dummy ${ac_tool_prefix}otool; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if ${ac_cv_prog_OTOOL+:} false; then :
10233 $as_echo_n "(cached) " >&6
10235 if test -n "$OTOOL"; then
10236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 OTOOL=$ac_cv_prog_OTOOL
10256 if test -n "$OTOOL"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10258 $as_echo "$OTOOL" >&6; }
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10266 if test -z "$ac_cv_prog_OTOOL"; then
10268 # Extract the first word of "otool", so it can be a program name with args.
10269 set dummy otool; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10273 $as_echo_n "(cached) " >&6
10275 if test -n "$ac_ct_OTOOL"; then
10276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_prog_ac_ct_OTOOL="otool"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10296 if test -n "$ac_ct_OTOOL"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10298 $as_echo "$ac_ct_OTOOL" >&6; }
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10304 if test "x$ac_ct_OTOOL" = x; then
10307 case $cross_compiling:$ac_tool_warned in
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10311 ac_tool_warned=yes ;;
10316 OTOOL="$ac_cv_prog_OTOOL"
10319 if test -n "$ac_tool_prefix"; then
10320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323 $as_echo_n "checking for $ac_word... " >&6; }
10324 if ${ac_cv_prog_OTOOL64+:} false; then :
10325 $as_echo_n "(cached) " >&6
10327 if test -n "$OTOOL64"; then
10328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 OTOOL64=$ac_cv_prog_OTOOL64
10348 if test -n "$OTOOL64"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10350 $as_echo "$OTOOL64" >&6; }
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10358 if test -z "$ac_cv_prog_OTOOL64"; then
10359 ac_ct_OTOOL64=$OTOOL64
10360 # Extract the first word of "otool64", so it can be a program name with args.
10361 set dummy otool64; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10365 $as_echo_n "(cached) " >&6
10367 if test -n "$ac_ct_OTOOL64"; then
10368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377 ac_cv_prog_ac_ct_OTOOL64="otool64"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10388 if test -n "$ac_ct_OTOOL64"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10390 $as_echo "$ac_ct_OTOOL64" >&6; }
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10396 if test "x$ac_ct_OTOOL64" = x; then
10399 case $cross_compiling:$ac_tool_warned in
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10403 ac_tool_warned=yes ;;
10405 OTOOL64=$ac_ct_OTOOL64
10408 OTOOL64="$ac_cv_prog_OTOOL64"
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10438 $as_echo_n "checking for -single_module linker flag... " >&6; }
10439 if ${lt_cv_apple_cc_single_mod+:} false; then :
10440 $as_echo_n "(cached) " >&6
10442 lt_cv_apple_cc_single_mod=no
10443 if test -z "$LT_MULTI_MODULE"; then
10444 # By default we will add the -single_module flag. You can override
10445 # by either setting the environment variable LT_MULTI_MODULE
10446 # non-empty at configure time, or by adding -multi_module to the
10448 rm -rf libconftest.dylib*
10449 echo "int foo(void){return 1;}" > conftest.c
10450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10451 -dynamiclib -Wl,-single_module conftest.c" >&5
10452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10455 # If there is a non-empty error log, and "single_module"
10456 # appears in it, assume the flag caused a linker warning
10457 if test -s conftest.err && $GREP single_module conftest.err; then
10458 cat conftest.err >&5
10459 # Otherwise, if the output was created with a 0 exit code from
10460 # the compiler, it worked.
10461 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10462 lt_cv_apple_cc_single_mod=yes
10464 cat conftest.err >&5
10466 rm -rf libconftest.dylib*
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10471 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10474 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10475 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10476 $as_echo_n "(cached) " >&6
10478 lt_cv_ld_exported_symbols_list=no
10479 save_LDFLAGS=$LDFLAGS
10480 echo "_main" > conftest.sym
10481 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10493 if ac_fn_c_try_link "$LINENO"; then :
10494 lt_cv_ld_exported_symbols_list=yes
10496 lt_cv_ld_exported_symbols_list=no
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10500 LDFLAGS=$save_LDFLAGS
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10504 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10507 $as_echo_n "checking for -force_load linker flag... " >&6; }
10508 if ${lt_cv_ld_force_load+:} false; then :
10509 $as_echo_n "(cached) " >&6
10511 lt_cv_ld_force_load=no
10512 cat > conftest.c << _LT_EOF
10513 int forced_loaded() { return 2;}
10515 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10516 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10517 echo "$AR cru libconftest.a conftest.o" >&5
10518 $AR cru libconftest.a conftest.o 2>&5
10519 echo "$RANLIB libconftest.a" >&5
10520 $RANLIB libconftest.a 2>&5
10521 cat > conftest.c << _LT_EOF
10522 int main() { return 0;}
10524 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10525 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10527 if test -s conftest.err && $GREP force_load conftest.err; then
10528 cat conftest.err >&5
10529 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10530 lt_cv_ld_force_load=yes
10532 cat conftest.err >&5
10534 rm -f conftest.err libconftest.a conftest conftest.c
10535 rm -rf conftest.dSYM
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10539 $as_echo "$lt_cv_ld_force_load" >&6; }
10541 rhapsody* | darwin1.[012])
10542 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10544 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10545 darwin*) # darwin 5.x on
10546 # if running on 10.5 or later, the deployment target defaults
10547 # to the OS version, if on x86, and 10.4, the deployment
10548 # target defaults to 10.4. Don't you love it?
10549 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10550 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10551 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10553 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10555 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10559 if test yes = "$lt_cv_apple_cc_single_mod"; then
10560 _lt_dar_single_mod='$single_module'
10562 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10563 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10565 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10567 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10568 _lt_dsymutil='~$DSYMUTIL $lib || :'
10575 # func_munge_path_list VARIABLE PATH
10576 # -----------------------------------
10577 # VARIABLE is name of variable containing _space_ separated list of
10578 # directories to be munged by the contents of PATH, which is string
10581 # string "DIR[ DIR]" will be prepended to VARIABLE
10583 # string "DIR[ DIR]" will be appended to VARIABLE
10584 # "DIRP[:DIRP]::[DIRA:]DIRA"
10585 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10586 # "DIRA[ DIRA]" will be appended to VARIABLE
10588 # VARIABLE will be replaced by "DIR[ DIR]"
10589 func_munge_path_list ()
10595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10598 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10601 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10602 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10605 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10610 for ac_header in dlfcn.h
10612 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10614 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10615 cat >>confdefs.h <<_ACEOF
10616 #define HAVE_DLFCN_H 1
10628 enable_win32_dll=yes
10631 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10632 if test -n "$ac_tool_prefix"; then
10633 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10634 set dummy ${ac_tool_prefix}as; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if ${ac_cv_prog_AS+:} false; then :
10638 $as_echo_n "(cached) " >&6
10640 if test -n "$AS"; then
10641 ac_cv_prog_AS="$AS" # Let the user override the test.
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650 ac_cv_prog_AS="${ac_tool_prefix}as"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661 if test -n "$AS"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10663 $as_echo "$AS" >&6; }
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10671 if test -z "$ac_cv_prog_AS"; then
10673 # Extract the first word of "as", so it can be a program name with args.
10674 set dummy as; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10678 $as_echo_n "(cached) " >&6
10680 if test -n "$ac_ct_AS"; then
10681 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_ac_ct_AS="as"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10701 if test -n "$ac_ct_AS"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10703 $as_echo "$ac_ct_AS" >&6; }
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10709 if test "x$ac_ct_AS" = x; then
10712 case $cross_compiling:$ac_tool_warned in
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10716 ac_tool_warned=yes ;;
10721 AS="$ac_cv_prog_AS"
10724 if test -n "$ac_tool_prefix"; then
10725 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10726 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_prog_DLLTOOL+:} false; then :
10730 $as_echo_n "(cached) " >&6
10732 if test -n "$DLLTOOL"; then
10733 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10742 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 DLLTOOL=$ac_cv_prog_DLLTOOL
10753 if test -n "$DLLTOOL"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10755 $as_echo "$DLLTOOL" >&6; }
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10763 if test -z "$ac_cv_prog_DLLTOOL"; then
10764 ac_ct_DLLTOOL=$DLLTOOL
10765 # Extract the first word of "dlltool", so it can be a program name with args.
10766 set dummy dlltool; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10770 $as_echo_n "(cached) " >&6
10772 if test -n "$ac_ct_DLLTOOL"; then
10773 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10782 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10792 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10793 if test -n "$ac_ct_DLLTOOL"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10795 $as_echo "$ac_ct_DLLTOOL" >&6; }
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10801 if test "x$ac_ct_DLLTOOL" = x; then
10804 case $cross_compiling:$ac_tool_warned in
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10808 ac_tool_warned=yes ;;
10810 DLLTOOL=$ac_ct_DLLTOOL
10813 DLLTOOL="$ac_cv_prog_DLLTOOL"
10816 if test -n "$ac_tool_prefix"; then
10817 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10818 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if ${ac_cv_prog_OBJDUMP+:} false; then :
10822 $as_echo_n "(cached) " >&6
10824 if test -n "$OBJDUMP"; then
10825 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 OBJDUMP=$ac_cv_prog_OBJDUMP
10845 if test -n "$OBJDUMP"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10847 $as_echo "$OBJDUMP" >&6; }
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850 $as_echo "no" >&6; }
10855 if test -z "$ac_cv_prog_OBJDUMP"; then
10856 ac_ct_OBJDUMP=$OBJDUMP
10857 # Extract the first word of "objdump", so it can be a program name with args.
10858 set dummy objdump; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10862 $as_echo_n "(cached) " >&6
10864 if test -n "$ac_ct_OBJDUMP"; then
10865 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10874 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10885 if test -n "$ac_ct_OBJDUMP"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10887 $as_echo "$ac_ct_OBJDUMP" >&6; }
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10893 if test "x$ac_ct_OBJDUMP" = x; then
10896 case $cross_compiling:$ac_tool_warned in
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10900 ac_tool_warned=yes ;;
10902 OBJDUMP=$ac_ct_OBJDUMP
10905 OBJDUMP="$ac_cv_prog_OBJDUMP"
10911 test -z "$AS" && AS=as
10917 test -z "$DLLTOOL" && DLLTOOL=dlltool
10923 test -z "$OBJDUMP" && OBJDUMP=objdump
10935 # Check whether --enable-shared was given.
10936 if test "${enable_shared+set}" = set; then :
10937 enableval=$enable_shared; p=${PACKAGE-default}
10939 yes) enable_shared=yes ;;
10940 no) enable_shared=no ;;
10943 # Look at the argument we got. We use all the common list separators.
10944 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10945 for pkg in $enableval; do
10947 if test "X$pkg" = "X$p"; then
10966 # Check whether --enable-static was given.
10967 if test "${enable_static+set}" = set; then :
10968 enableval=$enable_static; p=${PACKAGE-default}
10970 yes) enable_static=yes ;;
10971 no) enable_static=no ;;
10974 # Look at the argument we got. We use all the common list separators.
10975 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10976 for pkg in $enableval; do
10978 if test "X$pkg" = "X$p"; then
10998 # Check whether --with-pic was given.
10999 if test "${with_pic+set}" = set; then :
11000 withval=$with_pic; lt_p=${PACKAGE-default}
11002 yes|no) pic_mode=$withval ;;
11005 # Look at the argument we got. We use all the common list separators.
11006 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11007 for lt_pkg in $withval; do
11009 if test "X$lt_pkg" = "X$lt_p"; then
11027 # Check whether --enable-fast-install was given.
11028 if test "${enable_fast_install+set}" = set; then :
11029 enableval=$enable_fast_install; p=${PACKAGE-default}
11031 yes) enable_fast_install=yes ;;
11032 no) enable_fast_install=no ;;
11034 enable_fast_install=no
11035 # Look at the argument we got. We use all the common list separators.
11036 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11037 for pkg in $enableval; do
11039 if test "X$pkg" = "X$p"; then
11040 enable_fast_install=yes
11047 enable_fast_install=yes
11057 shared_archive_member_spec=
11058 case $host,$enable_shared in
11059 power*-*-aix[5-9]*,yes)
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11061 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11063 # Check whether --with-aix-soname was given.
11064 if test "${with_aix_soname+set}" = set; then :
11065 withval=$with_aix_soname; case $withval in
11069 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11072 lt_cv_with_aix_soname=$with_aix_soname
11074 if ${lt_cv_with_aix_soname+:} false; then :
11075 $as_echo_n "(cached) " >&6
11077 lt_cv_with_aix_soname=aix
11080 with_aix_soname=$lt_cv_with_aix_soname
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11084 $as_echo "$with_aix_soname" >&6; }
11085 if test aix != "$with_aix_soname"; then
11086 # For the AIX way of multilib, we name the shared archive member
11087 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11088 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11089 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11090 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11091 if test 64 = "${OBJECT_MODE-32}"; then
11092 shared_archive_member_spec=shr_64
11094 shared_archive_member_spec=shr
11099 with_aix_soname=aix
11112 # This can be used to rebuild libtool when needed
11113 LIBTOOL_DEPS=$ltmain
11115 # Always use our own libtool.
11116 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
11147 test -z "$LN_S" && LN_S="ln -s"
11162 if test -n "${ZSH_VERSION+set}"; then
11163 setopt NO_GLOB_SUBST
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11167 $as_echo_n "checking for objdir... " >&6; }
11168 if ${lt_cv_objdir+:} false; then :
11169 $as_echo_n "(cached) " >&6
11171 rm -f .libs 2>/dev/null
11172 mkdir .libs 2>/dev/null
11173 if test -d .libs; then
11176 # MS-DOS does not allow filenames that begin with a dot.
11179 rmdir .libs 2>/dev/null
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11182 $as_echo "$lt_cv_objdir" >&6; }
11183 objdir=$lt_cv_objdir
11189 cat >>confdefs.h <<_ACEOF
11190 #define LT_OBJDIR "$lt_cv_objdir/"
11198 # AIX sometimes has problems with the GCC collect2 program. For some
11199 # reason, if we set the COLLECT_NAMES environment variable, the problems
11200 # vanish in a puff of smoke.
11201 if test set != "${COLLECT_NAMES+set}"; then
11203 export COLLECT_NAMES
11208 # Global variables:
11210 can_build_shared=yes
11212 # All known linkers require a '.a' archive for static linking (except MSVC,
11213 # which needs '.lib').
11216 with_gnu_ld=$lt_cv_prog_gnu_ld
11221 # Set sane defaults for various variables
11222 test -z "$CC" && CC=cc
11223 test -z "$LTCC" && LTCC=$CC
11224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11225 test -z "$LD" && LD=ld
11226 test -z "$ac_objext" && ac_objext=o
11228 func_cc_basename $compiler
11229 cc_basename=$func_cc_basename_result
11232 # Only perform the check for file, if the check method requires it
11233 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11234 case $deplibs_check_method in
11236 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11238 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11240 $as_echo_n "(cached) " >&6
11244 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11247 lt_save_MAGIC_CMD=$MAGIC_CMD
11248 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11250 for ac_dir in $ac_dummy; do
11252 test -z "$ac_dir" && ac_dir=.
11253 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11254 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11255 if test -n "$file_magic_test_file"; then
11256 case $deplibs_check_method in
11258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11259 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11261 $EGREP "$file_magic_regex" > /dev/null; then
11266 *** Warning: the command libtool uses to detect shared libraries,
11267 *** $file_magic_cmd, produces output that libtool cannot recognize.
11268 *** The result is that libtool may fail to recognize shared libraries
11269 *** as such. This will affect the creation of libtool libraries that
11270 *** depend on shared libraries, but programs linked with such libtool
11271 *** libraries will work regardless of this problem. Nevertheless, you
11272 *** may want to report the problem to your system manager and/or to
11273 *** bug-libtool@gnu.org
11283 MAGIC_CMD=$lt_save_MAGIC_CMD
11288 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11289 if test -n "$MAGIC_CMD"; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11291 $as_echo "$MAGIC_CMD" >&6; }
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11301 if test -z "$lt_cv_path_MAGIC_CMD"; then
11302 if test -n "$ac_tool_prefix"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11304 $as_echo_n "checking for file... " >&6; }
11305 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11306 $as_echo_n "(cached) " >&6
11310 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11313 lt_save_MAGIC_CMD=$MAGIC_CMD
11314 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11316 for ac_dir in $ac_dummy; do
11318 test -z "$ac_dir" && ac_dir=.
11319 if test -f "$ac_dir/file"; then
11320 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11321 if test -n "$file_magic_test_file"; then
11322 case $deplibs_check_method in
11324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11325 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11327 $EGREP "$file_magic_regex" > /dev/null; then
11332 *** Warning: the command libtool uses to detect shared libraries,
11333 *** $file_magic_cmd, produces output that libtool cannot recognize.
11334 *** The result is that libtool may fail to recognize shared libraries
11335 *** as such. This will affect the creation of libtool libraries that
11336 *** depend on shared libraries, but programs linked with such libtool
11337 *** libraries will work regardless of this problem. Nevertheless, you
11338 *** may want to report the problem to your system manager and/or to
11339 *** bug-libtool@gnu.org
11349 MAGIC_CMD=$lt_save_MAGIC_CMD
11354 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11355 if test -n "$MAGIC_CMD"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11357 $as_echo "$MAGIC_CMD" >&6; }
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11373 # Use C for the default configuration in the libtool script
11377 ac_cpp='$CPP $CPPFLAGS'
11378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11383 # Source file extension for C test sources.
11386 # Object file extension for compiled C test sources.
11390 # Code to be used in simple compile tests
11391 lt_simple_compile_test_code="int some_variable = 0;"
11393 # Code to be used in simple link tests
11394 lt_simple_link_test_code='int main(){return(0);}'
11402 # If no C compiler was specified, use CC.
11405 # If no C compiler flags were specified, use CFLAGS.
11406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11408 # Allow CC to be a program name with arguments.
11411 # Save the default compiler, since it gets overwritten when the other
11412 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11413 compiler_DEFAULT=$CC
11415 # save warnings/boilerplate of simple test code
11416 ac_outfile=conftest.$ac_objext
11417 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11419 _lt_compiler_boilerplate=`cat conftest.err`
11422 ac_outfile=conftest.$ac_objext
11423 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11425 _lt_linker_boilerplate=`cat conftest.err`
11430 ## There is no encapsulation within the following macros, do not change
11431 ## the running order or otherwise move them around unless you know exactly
11432 ## what you are doing...
11433 if test -n "$compiler"; then
11435 lt_prog_compiler_no_builtin_flag=
11437 if test yes = "$GCC"; then
11438 case $cc_basename in
11440 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11442 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11446 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11447 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11448 $as_echo_n "(cached) " >&6
11450 lt_cv_prog_compiler_rtti_exceptions=no
11451 ac_outfile=conftest.$ac_objext
11452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11453 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11454 # Insert the option either (1) after the last *FLAGS variable, or
11455 # (2) before a word containing "conftest.", or (3) at the end.
11456 # Note that $ac_compile itself does not contain backslashes and begins
11457 # with a dollar sign (not a hyphen), so the echo should work correctly.
11458 # The option is referenced via a variable to avoid confusing sed.
11459 lt_compile=`echo "$ac_compile" | $SED \
11460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11462 -e 's:$: $lt_compiler_flag:'`
11463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11464 (eval "$lt_compile" 2>conftest.err)
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 if (exit $ac_status) && test -s "$ac_outfile"; then
11469 # The compiler can only warn and ignore the option if not recognized
11470 # So say no if there are warnings other than the usual output.
11471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11474 lt_cv_prog_compiler_rtti_exceptions=yes
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11481 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11483 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11484 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11496 lt_prog_compiler_wl=
11497 lt_prog_compiler_pic=
11498 lt_prog_compiler_static=
11501 if test yes = "$GCC"; then
11502 lt_prog_compiler_wl='-Wl,'
11503 lt_prog_compiler_static='-static'
11507 # All AIX code is PIC.
11508 if test ia64 = "$host_cpu"; then
11509 # AIX 5 now supports IA64 processor
11510 lt_prog_compiler_static='-Bstatic'
11512 lt_prog_compiler_pic='-fPIC'
11518 # see comment about AmigaOS4 .so support
11519 lt_prog_compiler_pic='-fPIC'
11522 # FIXME: we need at least 68020 code to build shared libraries, but
11523 # adding the '-m68020' flag to GCC prevents building anything better,
11525 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11530 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11531 # PIC is the default for these OSes.
11534 mingw* | cygwin* | pw32* | os2* | cegcc*)
11535 # This hack is so that the source file can tell whether it is being
11536 # built for inclusion in a dll (and should export symbols for example).
11537 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11538 # (--disable-auto-import) libraries
11539 lt_prog_compiler_pic='-DDLL_EXPORT'
11542 lt_prog_compiler_static='$wl-static'
11547 darwin* | rhapsody*)
11548 # PIC is the default on this platform
11549 # Common symbols not allowed in MH_DYLIB files
11550 lt_prog_compiler_pic='-fno-common'
11554 # PIC is the default for Haiku.
11555 # The "-static" flag exists, but is broken.
11556 lt_prog_compiler_static=
11560 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11561 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11562 # sets the default TLS model and affects inlining.
11568 lt_prog_compiler_pic='-fPIC'
11574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11575 # Instead, we relocate shared libraries at runtime.
11579 # Just because we use GCC doesn't mean we suddenly get shared libraries
11580 # on systems that don't support them.
11581 lt_prog_compiler_can_build_shared=no
11586 # QNX uses GNU C++, but need to define -shared option too, otherwise
11587 # it will coredump.
11588 lt_prog_compiler_pic='-fPIC -shared'
11592 if test -d /usr/nec; then
11593 lt_prog_compiler_pic=-Kconform_pic
11598 lt_prog_compiler_pic='-fPIC'
11602 case $cc_basename in
11603 nvcc*) # Cuda Compiler Driver 2.2
11604 lt_prog_compiler_wl='-Xlinker '
11605 if test -n "$lt_prog_compiler_pic"; then
11606 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11611 # PORTME Check for flag to pass linker flags through the system compiler.
11614 lt_prog_compiler_wl='-Wl,'
11615 if test ia64 = "$host_cpu"; then
11616 # AIX 5 now supports IA64 processor
11617 lt_prog_compiler_static='-Bstatic'
11619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11623 darwin* | rhapsody*)
11624 # PIC is the default on this platform
11625 # Common symbols not allowed in MH_DYLIB files
11626 lt_prog_compiler_pic='-fno-common'
11627 case $cc_basename in
11629 # NAG Fortran compiler
11630 lt_prog_compiler_wl='-Wl,-Wl,,'
11631 lt_prog_compiler_pic='-PIC'
11632 lt_prog_compiler_static='-Bstatic'
11637 mingw* | cygwin* | pw32* | os2* | cegcc*)
11638 # This hack is so that the source file can tell whether it is being
11639 # built for inclusion in a dll (and should export symbols for example).
11640 lt_prog_compiler_pic='-DDLL_EXPORT'
11643 lt_prog_compiler_static='$wl-static'
11648 hpux9* | hpux10* | hpux11*)
11649 lt_prog_compiler_wl='-Wl,'
11650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11651 # not for PA HP-UX.
11657 lt_prog_compiler_pic='+Z'
11660 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11661 lt_prog_compiler_static='$wl-a ${wl}archive'
11664 irix5* | irix6* | nonstopux*)
11665 lt_prog_compiler_wl='-Wl,'
11666 # PIC (with -KPIC) is the default.
11667 lt_prog_compiler_static='-non_shared'
11670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11671 case $cc_basename in
11672 # old Intel for x86_64, which still supported -KPIC.
11674 lt_prog_compiler_wl='-Wl,'
11675 lt_prog_compiler_pic='-KPIC'
11676 lt_prog_compiler_static='-static'
11678 # icc used to be incompatible with GCC.
11679 # ICC 10 doesn't accept -KPIC any more.
11681 lt_prog_compiler_wl='-Wl,'
11682 lt_prog_compiler_pic='-fPIC'
11683 lt_prog_compiler_static='-static'
11685 # Lahey Fortran 8.1.
11687 lt_prog_compiler_wl='-Wl,'
11688 lt_prog_compiler_pic='--shared'
11689 lt_prog_compiler_static='--static'
11692 # NAG Fortran compiler
11693 lt_prog_compiler_wl='-Wl,-Wl,,'
11694 lt_prog_compiler_pic='-PIC'
11695 lt_prog_compiler_static='-Bstatic'
11698 # Fabrice Bellard et al's Tiny C Compiler
11699 lt_prog_compiler_wl='-Wl,'
11700 lt_prog_compiler_pic='-fPIC'
11701 lt_prog_compiler_static='-static'
11703 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11704 # Portland Group compilers (*not* the Pentium gcc compiler,
11705 # which looks to be a dead project)
11706 lt_prog_compiler_wl='-Wl,'
11707 lt_prog_compiler_pic='-fpic'
11708 lt_prog_compiler_static='-Bstatic'
11711 lt_prog_compiler_wl='-Wl,'
11712 # All Alpha code is PIC.
11713 lt_prog_compiler_static='-non_shared'
11715 xl* | bgxl* | bgf* | mpixl*)
11716 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11717 lt_prog_compiler_wl='-Wl,'
11718 lt_prog_compiler_pic='-qpic'
11719 lt_prog_compiler_static='-qstaticlink'
11722 case `$CC -V 2>&1 | sed 5q` in
11723 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11724 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11725 lt_prog_compiler_pic='-KPIC'
11726 lt_prog_compiler_static='-Bstatic'
11727 lt_prog_compiler_wl=''
11729 *Sun\ F* | *Sun*Fortran*)
11730 lt_prog_compiler_pic='-KPIC'
11731 lt_prog_compiler_static='-Bstatic'
11732 lt_prog_compiler_wl='-Qoption ld '
11736 lt_prog_compiler_pic='-KPIC'
11737 lt_prog_compiler_static='-Bstatic'
11738 lt_prog_compiler_wl='-Wl,'
11740 *Intel*\ [CF]*Compiler*)
11741 lt_prog_compiler_wl='-Wl,'
11742 lt_prog_compiler_pic='-fPIC'
11743 lt_prog_compiler_static='-static'
11746 lt_prog_compiler_wl='-Wl,'
11747 lt_prog_compiler_pic='-fpic'
11748 lt_prog_compiler_static='-Bstatic'
11756 lt_prog_compiler_pic='-KPIC'
11757 lt_prog_compiler_static='-Bstatic'
11761 # QNX uses GNU C++, but need to define -shared option too, otherwise
11762 # it will coredump.
11763 lt_prog_compiler_pic='-fPIC -shared'
11766 osf3* | osf4* | osf5*)
11767 lt_prog_compiler_wl='-Wl,'
11768 # All OSF/1 code is PIC.
11769 lt_prog_compiler_static='-non_shared'
11773 lt_prog_compiler_static='-non_shared'
11777 lt_prog_compiler_pic='-KPIC'
11778 lt_prog_compiler_static='-Bstatic'
11779 case $cc_basename in
11780 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11781 lt_prog_compiler_wl='-Qoption ld ';;
11783 lt_prog_compiler_wl='-Wl,';;
11788 lt_prog_compiler_wl='-Qoption ld '
11789 lt_prog_compiler_pic='-PIC'
11790 lt_prog_compiler_static='-Bstatic'
11793 sysv4 | sysv4.2uw2* | sysv4.3*)
11794 lt_prog_compiler_wl='-Wl,'
11795 lt_prog_compiler_pic='-KPIC'
11796 lt_prog_compiler_static='-Bstatic'
11800 if test -d /usr/nec; then
11801 lt_prog_compiler_pic='-Kconform_pic'
11802 lt_prog_compiler_static='-Bstatic'
11806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11807 lt_prog_compiler_wl='-Wl,'
11808 lt_prog_compiler_pic='-KPIC'
11809 lt_prog_compiler_static='-Bstatic'
11813 lt_prog_compiler_wl='-Wl,'
11814 lt_prog_compiler_can_build_shared=no
11818 lt_prog_compiler_pic='-pic'
11819 lt_prog_compiler_static='-Bstatic'
11823 lt_prog_compiler_can_build_shared=no
11829 # For platforms that do not support PIC, -DPIC is meaningless:
11831 lt_prog_compiler_pic=
11834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11839 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11840 if ${lt_cv_prog_compiler_pic+:} false; then :
11841 $as_echo_n "(cached) " >&6
11843 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11846 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11847 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11850 # Check to make sure the PIC flag actually works.
11852 if test -n "$lt_prog_compiler_pic"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11854 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11855 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11856 $as_echo_n "(cached) " >&6
11858 lt_cv_prog_compiler_pic_works=no
11859 ac_outfile=conftest.$ac_objext
11860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11861 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11862 # Insert the option either (1) after the last *FLAGS variable, or
11863 # (2) before a word containing "conftest.", or (3) at the end.
11864 # Note that $ac_compile itself does not contain backslashes and begins
11865 # with a dollar sign (not a hyphen), so the echo should work correctly.
11866 # The option is referenced via a variable to avoid confusing sed.
11867 lt_compile=`echo "$ac_compile" | $SED \
11868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11870 -e 's:$: $lt_compiler_flag:'`
11871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11872 (eval "$lt_compile" 2>conftest.err)
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 if (exit $ac_status) && test -s "$ac_outfile"; then
11877 # The compiler can only warn and ignore the option if not recognized
11878 # So say no if there are warnings other than the usual output.
11879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11882 lt_cv_prog_compiler_pic_works=yes
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11889 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11891 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11892 case $lt_prog_compiler_pic in
11894 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11897 lt_prog_compiler_pic=
11898 lt_prog_compiler_can_build_shared=no
11914 # Check to make sure the static flag actually works.
11916 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11918 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11919 if ${lt_cv_prog_compiler_static_works+:} false; then :
11920 $as_echo_n "(cached) " >&6
11922 lt_cv_prog_compiler_static_works=no
11923 save_LDFLAGS=$LDFLAGS
11924 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11925 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11927 # The linker can only warn and ignore the option if not recognized
11928 # So say no if there are warnings
11929 if test -s conftest.err; then
11930 # Append any errors to the config.log.
11931 cat conftest.err 1>&5
11932 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11934 if diff conftest.exp conftest.er2 >/dev/null; then
11935 lt_cv_prog_compiler_static_works=yes
11938 lt_cv_prog_compiler_static_works=yes
11942 LDFLAGS=$save_LDFLAGS
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11946 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11948 if test yes = "$lt_cv_prog_compiler_static_works"; then
11951 lt_prog_compiler_static=
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11962 if ${lt_cv_prog_compiler_c_o+:} false; then :
11963 $as_echo_n "(cached) " >&6
11965 lt_cv_prog_compiler_c_o=no
11966 $RM -r conftest 2>/dev/null
11970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11972 lt_compiler_flag="-o out/conftest2.$ac_objext"
11973 # Insert the option either (1) after the last *FLAGS variable, or
11974 # (2) before a word containing "conftest.", or (3) at the end.
11975 # Note that $ac_compile itself does not contain backslashes and begins
11976 # with a dollar sign (not a hyphen), so the echo should work correctly.
11977 lt_compile=`echo "$ac_compile" | $SED \
11978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11980 -e 's:$: $lt_compiler_flag:'`
11981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11982 (eval "$lt_compile" 2>out/conftest.err)
11984 cat out/conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11988 # The compiler can only warn and ignore the option if not recognized
11989 # So say no if there are warnings
11990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11993 lt_cv_prog_compiler_c_o=yes
11998 # SGI C++ compiler will create directory out/ii_files/ for
11999 # template instantiation
12000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12001 $RM out/* && rmdir out
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12008 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12017 if ${lt_cv_prog_compiler_c_o+:} false; then :
12018 $as_echo_n "(cached) " >&6
12020 lt_cv_prog_compiler_c_o=no
12021 $RM -r conftest 2>/dev/null
12025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12027 lt_compiler_flag="-o out/conftest2.$ac_objext"
12028 # Insert the option either (1) after the last *FLAGS variable, or
12029 # (2) before a word containing "conftest.", or (3) at the end.
12030 # Note that $ac_compile itself does not contain backslashes and begins
12031 # with a dollar sign (not a hyphen), so the echo should work correctly.
12032 lt_compile=`echo "$ac_compile" | $SED \
12033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12035 -e 's:$: $lt_compiler_flag:'`
12036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12037 (eval "$lt_compile" 2>out/conftest.err)
12039 cat out/conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12043 # The compiler can only warn and ignore the option if not recognized
12044 # So say no if there are warnings
12045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12048 lt_cv_prog_compiler_c_o=yes
12053 # SGI C++ compiler will create directory out/ii_files/ for
12054 # template instantiation
12055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12056 $RM out/* && rmdir out
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12063 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12068 hard_links=nottested
12069 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12070 # do not overwrite the value of need_locks provided by the user
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12072 $as_echo_n "checking if we can lock with hard links... " >&6; }
12075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12077 ln conftest.a conftest.b 2>&5 || hard_links=no
12078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12080 $as_echo "$hard_links" >&6; }
12081 if test no = "$hard_links"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12083 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12099 allow_undefined_flag=
12100 always_export_symbols=no
12102 archive_expsym_cmds=
12103 compiler_needs_object=no
12104 enable_shared_with_static_runtimes=no
12105 export_dynamic_flag_spec=
12106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12107 hardcode_automatic=no
12109 hardcode_direct_absolute=no
12110 hardcode_libdir_flag_spec=
12111 hardcode_libdir_separator=
12112 hardcode_minus_L=no
12113 hardcode_shlibpath_var=unsupported
12115 link_all_deplibs=unknown
12117 module_expsym_cmds=
12118 old_archive_from_new_cmds=
12119 old_archive_from_expsyms_cmds=
12120 thread_safe_flag_spec=
12121 whole_archive_flag_spec=
12122 # include_expsyms should be a list of space-separated symbols to be *always*
12123 # included in the symbol list
12125 # exclude_expsyms can be an extended regexp of symbols to exclude
12126 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12127 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12128 # as well as any symbol that contains 'd'.
12129 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12131 # platforms (ab)use it in PIC code, but their linkers get confused if
12132 # the symbol is explicitly referenced. Since portable code cannot
12133 # rely on this symbol name, it's probably fine to never include it in
12134 # preloaded symbol tables.
12135 # Exclude shared library initialization/finalization symbols.
12136 extract_expsyms_cmds=
12139 cygwin* | mingw* | pw32* | cegcc*)
12140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12141 # When not using gcc, we currently assume that we are using
12142 # Microsoft Visual C++.
12143 if test yes != "$GCC"; then
12148 # we just hope/assume this is gcc and not c89 (= MSVC++)
12151 openbsd* | bitrig*)
12158 # On some targets, GNU ld is compatible enough with the native linker
12159 # that we're better off using the native interface for both.
12160 lt_use_gnu_ld_interface=no
12161 if test yes = "$with_gnu_ld"; then
12164 # The AIX port of GNU ld has always aspired to compatibility
12165 # with the native linker. However, as the warning in the GNU ld
12166 # block says, versions before 2.19.5* couldn't really create working
12167 # shared libraries, regardless of the interface used.
12168 case `$LD -v 2>&1` in
12169 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12170 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12171 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12173 lt_use_gnu_ld_interface=yes
12178 lt_use_gnu_ld_interface=yes
12183 if test yes = "$lt_use_gnu_ld_interface"; then
12184 # If archive_cmds runs LD, not CC, wlarc should be empty
12187 # Set some defaults for GNU ld with shared library support. These
12188 # are reset later if shared libraries are not supported. Putting them
12189 # here allows them to be overridden if necessary.
12190 runpath_var=LD_RUN_PATH
12191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12192 export_dynamic_flag_spec='$wl--export-dynamic'
12193 # ancient GNU ld didn't support --whole-archive et. al.
12194 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12195 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12197 whole_archive_flag_spec=
12199 supports_anon_versioning=no
12200 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12201 *GNU\ gold*) supports_anon_versioning=yes ;;
12202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12205 *\ 2.11.*) ;; # other 2.11 versions
12206 *) supports_anon_versioning=yes ;;
12209 # See if GNU ld supports shared libraries.
12212 # On AIX/PPC, the GNU linker is very broken
12213 if test ia64 != "$host_cpu"; then
12217 *** Warning: the GNU linker, at least up to release 2.19, is reported
12218 *** to be unable to reliably create shared libraries on AIX.
12219 *** Therefore, libtool is disabling shared libraries support. If you
12220 *** really care for shared libraries, you may want to install binutils
12221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12222 *** You will then need to restart the configuration process.
12231 # see comment about AmigaOS4 .so support
12232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12233 archive_expsym_cmds=''
12236 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)'
12237 hardcode_libdir_flag_spec='-L$libdir'
12238 hardcode_minus_L=yes
12244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12245 allow_undefined_flag=unsupported
12246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12247 # support --undefined. This deserves some investigation. FIXME
12248 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12254 cygwin* | mingw* | pw32* | cegcc*)
12255 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12256 # as there is no search path for DLLs.
12257 hardcode_libdir_flag_spec='-L$libdir'
12258 export_dynamic_flag_spec='$wl--export-all-symbols'
12259 allow_undefined_flag=unsupported
12260 always_export_symbols=no
12261 enable_shared_with_static_runtimes=yes
12262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12263 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12267 # If the export-symbols file already is a .def file, use it as
12268 # is; otherwise, prepend EXPORTS...
12269 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12270 cp $export_symbols $output_objdir/$soname.def;
12272 echo EXPORTS > $output_objdir/$soname.def;
12273 cat $export_symbols >> $output_objdir/$soname.def;
12275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12283 link_all_deplibs=yes
12287 hardcode_libdir_flag_spec='-L$libdir'
12288 hardcode_minus_L=yes
12289 allow_undefined_flag=unsupported
12291 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12292 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12293 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12294 $ECHO EXPORTS >> $output_objdir/$libname.def~
12295 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12297 emximp -o $lib $output_objdir/$libname.def'
12298 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12301 $ECHO EXPORTS >> $output_objdir/$libname.def~
12302 prefix_cmds="$SED"~
12303 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12304 prefix_cmds="$prefix_cmds -e 1d";
12306 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12307 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12308 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12309 emximp -o $lib $output_objdir/$libname.def'
12310 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12311 enable_shared_with_static_runtimes=yes
12316 hardcode_shlibpath_var=no
12317 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12318 export_dynamic_flag_spec='$wl-E'
12319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12320 # Instead, shared libraries are loaded at an image base (0x10000000 by
12321 # default) and relocated if they conflict, which is a slow very memory
12322 # consuming and fragmenting process. To avoid this, we pick a random,
12323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12324 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12325 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12326 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'
12329 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12331 if test linux-dietlibc = "$host_os"; then
12332 case $cc_basename in
12333 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12336 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12337 && test no = "$tmp_diet"
12339 tmp_addflag=' $pic_flag'
12340 tmp_sharedflag='-shared'
12341 case $cc_basename,$host_cpu in
12342 pgcc*) # Portland Group C compiler
12343 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12344 tmp_addflag=' $pic_flag'
12346 pgf77* | pgf90* | pgf95* | pgfortran*)
12347 # Portland Group f77 and f90 compilers
12348 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12349 tmp_addflag=' $pic_flag -Mnomain' ;;
12350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12351 tmp_addflag=' -i_dynamic' ;;
12352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12353 tmp_addflag=' -i_dynamic -nofor_main' ;;
12354 ifc* | ifort*) # Intel Fortran compiler
12355 tmp_addflag=' -nofor_main' ;;
12356 lf95*) # Lahey Fortran 8.1
12357 whole_archive_flag_spec=
12358 tmp_sharedflag='--shared' ;;
12359 nagfor*) # NAGFOR 5.3
12360 tmp_sharedflag='-Wl,-shared' ;;
12361 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12362 tmp_sharedflag='-qmkshrobj'
12364 nvcc*) # Cuda Compiler Driver 2.2
12365 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12366 compiler_needs_object=yes
12369 case `$CC -V 2>&1 | sed 5q` in
12370 *Sun\ C*) # Sun C 5.9
12371 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12372 compiler_needs_object=yes
12373 tmp_sharedflag='-G' ;;
12374 *Sun\ F*) # Sun Fortran 8.3
12375 tmp_sharedflag='-G' ;;
12377 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12379 if test yes = "$supports_anon_versioning"; then
12380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12382 echo "local: *; };" >> $output_objdir/$libname.ver~
12383 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12386 case $cc_basename in
12388 export_dynamic_flag_spec='-rdynamic'
12390 xlf* | bgf* | bgxlf* | mpixlf*)
12391 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12392 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12393 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12394 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12395 if test yes = "$supports_anon_versioning"; then
12396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12398 echo "local: *; };" >> $output_objdir/$libname.ver~
12399 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12410 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12413 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12414 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12419 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12423 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12424 *** create shared libraries on Solaris systems. Therefore, libtool
12425 *** is disabling shared libraries support. We urge you to upgrade GNU
12426 *** binutils to release 2.9.1 or newer. Another option is to modify
12427 *** your PATH or compiler configuration so that the native linker is
12428 *** used, and then restart.
12431 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12440 case `$LD -v 2>&1` in
12441 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12445 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12446 *** reliably create shared libraries on SCO systems. Therefore, libtool
12447 *** is disabling shared libraries support. We urge you to upgrade GNU
12448 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12449 *** your PATH or compiler configuration so that the native linker is
12450 *** used, and then restart.
12455 # For security reasons, it is highly recommended that you always
12456 # use absolute paths for naming shared libraries, and exclude the
12457 # DT_RUNPATH tag from executables and libraries. But doing so
12458 # requires that you compile everything twice, which is a pain.
12459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12471 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12473 hardcode_direct=yes
12474 hardcode_shlibpath_var=no
12478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12487 if test no = "$ld_shlibs"; then
12489 hardcode_libdir_flag_spec=
12490 export_dynamic_flag_spec=
12491 whole_archive_flag_spec=
12494 # PORTME fill in a description of your system's linker (not GNU ld)
12497 allow_undefined_flag=unsupported
12498 always_export_symbols=yes
12499 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'
12500 # Note: this linker hardcodes the directories in LIBPATH if there
12501 # are no directories specified by -L.
12502 hardcode_minus_L=yes
12503 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12504 # Neither direct hardcoding nor static linking is supported with a
12506 hardcode_direct=unsupported
12511 if test ia64 = "$host_cpu"; then
12512 # On IA64, the linker does run time linking by default, so we don't
12513 # have to do anything special.
12514 aix_use_runtimelinking=no
12515 exp_sym_flag='-Bexport'
12518 # If we're using GNU nm, then we don't want the "-C" option.
12519 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12520 # Without the "-l" option, or with the "-B" option, AIX nm treats
12521 # weak defined symbols like other global defined symbols, whereas
12522 # GNU nm marks them as "W".
12523 # While the 'weak' keyword is ignored in the Export File, we need
12524 # it in the Import File for the 'aix-soname' feature, so we have
12525 # to replace the "-B" option with "-P" for AIX nm.
12526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12527 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12529 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12531 aix_use_runtimelinking=no
12533 # Test if we are trying to use run time linking or normal
12534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12535 # have runtime linking enabled, and use it for executables.
12536 # For shared libraries, we enable/disable runtime linking
12537 # depending on the kind of the shared library created -
12538 # when "with_aix_soname,aix_use_runtimelinking" is:
12539 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12540 # "aix,yes" lib.so shared, rtl:yes, for executables
12541 # lib.a static archive
12542 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12543 # lib.a(lib.so.V) shared, rtl:no, for executables
12544 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12545 # lib.a(lib.so.V) shared, rtl:no
12546 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12547 # lib.a static archive
12548 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12549 for ld_flag in $LDFLAGS; do
12550 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12551 aix_use_runtimelinking=yes
12555 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12556 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12557 # so we don't have lib.a shared libs to link our executables.
12558 # We have to force runtime linking in this case.
12559 aix_use_runtimelinking=yes
12560 LDFLAGS="$LDFLAGS -Wl,-brtl"
12565 exp_sym_flag='-bexport'
12566 no_entry_flag='-bnoentry'
12569 # When large executables or shared objects are built, AIX ld can
12570 # have problems creating the table of contents. If linking a library
12571 # or program results in "error TOC overflow" add -mminimal-toc to
12572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12576 hardcode_direct=yes
12577 hardcode_direct_absolute=yes
12578 hardcode_libdir_separator=':'
12579 link_all_deplibs=yes
12580 file_list_spec='$wl-f,'
12581 case $with_aix_soname,$aix_use_runtimelinking in
12582 aix,*) ;; # traditional, no import file
12583 svr4,* | *,yes) # use import file
12584 # The Import File defines what to hardcode.
12586 hardcode_direct_absolute=no
12590 if test yes = "$GCC"; then
12591 case $host_os in aix4.[012]|aix4.[012].*)
12592 # We only want to do this on AIX 4.2 and lower, the check
12593 # below for broken collect2 doesn't work under 4.3+
12594 collect2name=`$CC -print-prog-name=collect2`
12595 if test -f "$collect2name" &&
12596 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12598 # We have reworked collect2
12601 # We have old collect2
12602 hardcode_direct=unsupported
12603 # It fails to find uninstalled libraries when the uninstalled
12604 # path is not listed in the libpath. Setting hardcode_minus_L
12605 # to unsupported forces relinking
12606 hardcode_minus_L=yes
12607 hardcode_libdir_flag_spec='-L$libdir'
12608 hardcode_libdir_separator=
12612 shared_flag='-shared'
12613 if test yes = "$aix_use_runtimelinking"; then
12614 shared_flag="$shared_flag "'$wl-G'
12616 # Need to ensure runtime linking is disabled for the traditional
12617 # shared library, or the linker may eventually find shared libraries
12618 # /with/ Import File - we do not want to mix them.
12619 shared_flag_aix='-shared'
12620 shared_flag_svr4='-shared $wl-G'
12623 if test ia64 = "$host_cpu"; then
12624 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12625 # chokes on -Wl,-G. The following line is correct:
12628 if test yes = "$aix_use_runtimelinking"; then
12629 shared_flag='$wl-G'
12631 shared_flag='$wl-bM:SRE'
12633 shared_flag_aix='$wl-bM:SRE'
12634 shared_flag_svr4='$wl-G'
12638 export_dynamic_flag_spec='$wl-bexpall'
12639 # It seems that -bexpall does not export symbols beginning with
12640 # underscore (_), so it is better to generate a list of symbols to export.
12641 always_export_symbols=yes
12642 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12643 # Warning - without using the other runtime loading flags (-brtl),
12644 # -berok will link without error, but may produce a broken library.
12645 allow_undefined_flag='-berok'
12646 # Determine the default libpath from the value encoded in an
12647 # empty executable.
12648 if test set = "${lt_cv_aix_libpath+set}"; then
12649 aix_libpath=$lt_cv_aix_libpath
12651 if ${lt_cv_aix_libpath_+:} false; then :
12652 $as_echo_n "(cached) " >&6
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12665 if ac_fn_c_try_link "$LINENO"; then :
12667 lt_aix_libpath_sed='
12668 /Import File Strings/,/^$/ {
12670 s/^0 *\([^ ]*\) *$/\1/
12674 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12675 # Check for a 64-bit object if we didn't find anything.
12676 if test -z "$lt_cv_aix_libpath_"; then
12677 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682 if test -z "$lt_cv_aix_libpath_"; then
12683 lt_cv_aix_libpath_=/usr/lib:/lib
12688 aix_libpath=$lt_cv_aix_libpath_
12691 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12692 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12694 if test ia64 = "$host_cpu"; then
12695 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12696 allow_undefined_flag="-z nodefs"
12697 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"
12699 # Determine the default libpath from the value encoded in an
12700 # empty executable.
12701 if test set = "${lt_cv_aix_libpath+set}"; then
12702 aix_libpath=$lt_cv_aix_libpath
12704 if ${lt_cv_aix_libpath_+:} false; then :
12705 $as_echo_n "(cached) " >&6
12707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708 /* end confdefs.h. */
12718 if ac_fn_c_try_link "$LINENO"; then :
12720 lt_aix_libpath_sed='
12721 /Import File Strings/,/^$/ {
12723 s/^0 *\([^ ]*\) *$/\1/
12727 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12728 # Check for a 64-bit object if we didn't find anything.
12729 if test -z "$lt_cv_aix_libpath_"; then
12730 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12733 rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735 if test -z "$lt_cv_aix_libpath_"; then
12736 lt_cv_aix_libpath_=/usr/lib:/lib
12741 aix_libpath=$lt_cv_aix_libpath_
12744 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12745 # Warning - without using the other run time loading flags,
12746 # -berok will link without error, but may produce a broken library.
12747 no_undefined_flag=' $wl-bernotok'
12748 allow_undefined_flag=' $wl-berok'
12749 if test yes = "$with_gnu_ld"; then
12750 # We only use this code for GNU lds that support --whole-archive.
12751 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12753 # Exported symbols can be pulled into shared objects from archives
12754 whole_archive_flag_spec='$convenience'
12756 archive_cmds_need_lc=yes
12757 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12758 # -brtl affects multiple linker settings, -berok does not and is overridden later
12759 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12760 if test svr4 != "$with_aix_soname"; then
12761 # This is similar to how AIX traditionally builds its shared libraries.
12762 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12764 if test aix != "$with_aix_soname"; then
12765 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12767 # used by -dlpreopen to get the symbols
12768 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12770 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12778 # see comment about AmigaOS4 .so support
12779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12780 archive_expsym_cmds=''
12783 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)'
12784 hardcode_libdir_flag_spec='-L$libdir'
12785 hardcode_minus_L=yes
12791 export_dynamic_flag_spec=-rdynamic
12794 cygwin* | mingw* | pw32* | cegcc*)
12795 # When not using gcc, we currently assume that we are using
12796 # Microsoft Visual C++.
12797 # hardcode_libdir_flag_spec is actually meaningless, as there is
12798 # no search path for DLLs.
12799 case $cc_basename in
12802 hardcode_libdir_flag_spec=' '
12803 allow_undefined_flag=unsupported
12804 always_export_symbols=yes
12806 # Tell ltmain to make .lib files, not .a files.
12808 # Tell ltmain to make .dll files, not .so files.
12810 # FIXME: Setting linknames here is a bad hack.
12811 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12812 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12813 cp "$export_symbols" "$output_objdir/$soname.def";
12814 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12816 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12818 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12820 # The linker will not automatically build a static lib if we build a DLL.
12821 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12822 enable_shared_with_static_runtimes=yes
12823 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12826 old_postinstall_cmds='chmod 644 $oldlib'
12827 postlink_cmds='lt_outputfile="@OUTPUT@"~
12828 lt_tool_outputfile="@TOOL_OUTPUT@"~
12829 case $lt_outputfile in
12832 lt_outputfile=$lt_outputfile.exe
12833 lt_tool_outputfile=$lt_tool_outputfile.exe
12836 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12837 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12838 $RM "$lt_outputfile.manifest";
12842 # Assume MSVC wrapper
12843 hardcode_libdir_flag_spec=' '
12844 allow_undefined_flag=unsupported
12845 # Tell ltmain to make .lib files, not .a files.
12847 # Tell ltmain to make .dll files, not .so files.
12849 # FIXME: Setting linknames here is a bad hack.
12850 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12851 # The linker will automatically build a .lib file if we build a DLL.
12852 old_archive_from_new_cmds='true'
12853 # FIXME: Should let the user specify the lib program.
12854 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12855 enable_shared_with_static_runtimes=yes
12860 darwin* | rhapsody*)
12863 archive_cmds_need_lc=no
12865 hardcode_automatic=yes
12866 hardcode_shlibpath_var=unsupported
12867 if test yes = "$lt_cv_ld_force_load"; then
12868 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12871 whole_archive_flag_spec=''
12873 link_all_deplibs=yes
12874 allow_undefined_flag=$_lt_dar_allow_undefined
12875 case $cc_basename in
12876 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12877 *) _lt_dar_can_shared=$GCC ;;
12879 if test yes = "$_lt_dar_can_shared"; then
12880 output_verbose_link_cmd=func_echo_all
12881 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12882 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12883 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"
12884 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"
12893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12894 hardcode_libdir_flag_spec='-L$libdir'
12895 hardcode_shlibpath_var=no
12898 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12899 # support. Future versions do this automatically, but an explicit c++rt0.o
12900 # does not break anything, and helps significantly (at the cost of a little
12903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12904 hardcode_libdir_flag_spec='-R$libdir'
12905 hardcode_direct=yes
12906 hardcode_shlibpath_var=no
12909 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12912 hardcode_direct=yes
12913 hardcode_minus_L=yes
12914 hardcode_shlibpath_var=no
12917 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12918 freebsd* | dragonfly*)
12919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12920 hardcode_libdir_flag_spec='-R$libdir'
12921 hardcode_direct=yes
12922 hardcode_shlibpath_var=no
12926 if test yes = "$GCC"; then
12927 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12929 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12931 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12932 hardcode_libdir_separator=:
12933 hardcode_direct=yes
12935 # hardcode_minus_L: Not really in the search PATH,
12936 # but as the default location of the library.
12937 hardcode_minus_L=yes
12938 export_dynamic_flag_spec='$wl-E'
12942 if test yes,no = "$GCC,$with_gnu_ld"; then
12943 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12945 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12947 if test no = "$with_gnu_ld"; then
12948 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12949 hardcode_libdir_separator=:
12950 hardcode_direct=yes
12951 hardcode_direct_absolute=yes
12952 export_dynamic_flag_spec='$wl-E'
12953 # hardcode_minus_L: Not really in the search PATH,
12954 # but as the default location of the library.
12955 hardcode_minus_L=yes
12960 if test yes,no = "$GCC,$with_gnu_ld"; then
12963 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12969 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12975 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12978 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12982 # Older versions of the 11.00 compiler do not understand -b yet
12983 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12985 $as_echo_n "checking if $CC understands -b... " >&6; }
12986 if ${lt_cv_prog_compiler__b+:} false; then :
12987 $as_echo_n "(cached) " >&6
12989 lt_cv_prog_compiler__b=no
12990 save_LDFLAGS=$LDFLAGS
12991 LDFLAGS="$LDFLAGS -b"
12992 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12994 # The linker can only warn and ignore the option if not recognized
12995 # So say no if there are warnings
12996 if test -s conftest.err; then
12997 # Append any errors to the config.log.
12998 cat conftest.err 1>&5
12999 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13001 if diff conftest.exp conftest.er2 >/dev/null; then
13002 lt_cv_prog_compiler__b=yes
13005 lt_cv_prog_compiler__b=yes
13009 LDFLAGS=$save_LDFLAGS
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13013 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13015 if test yes = "$lt_cv_prog_compiler__b"; then
13016 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13024 if test no = "$with_gnu_ld"; then
13025 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13026 hardcode_libdir_separator=:
13031 hardcode_shlibpath_var=no
13034 hardcode_direct=yes
13035 hardcode_direct_absolute=yes
13036 export_dynamic_flag_spec='$wl-E'
13038 # hardcode_minus_L: Not really in the search PATH,
13039 # but as the default location of the library.
13040 hardcode_minus_L=yes
13046 irix5* | irix6* | nonstopux*)
13047 if test yes = "$GCC"; then
13048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13049 # Try to use the -exported_symbol ld option, if it does not
13050 # work, assume that -exports_file does not work either and
13051 # implicitly export all symbols.
13052 # This should be the same for all languages, so no per-tag cache variable.
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13054 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13055 if ${lt_cv_irix_exported_symbol+:} false; then :
13056 $as_echo_n "(cached) " >&6
13058 save_LDFLAGS=$LDFLAGS
13059 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 int foo (void) { return 0; }
13064 if ac_fn_c_try_link "$LINENO"; then :
13065 lt_cv_irix_exported_symbol=yes
13067 lt_cv_irix_exported_symbol=no
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13071 LDFLAGS=$save_LDFLAGS
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13074 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13075 if test yes = "$lt_cv_irix_exported_symbol"; then
13076 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13082 archive_cmds_need_lc='no'
13083 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13084 hardcode_libdir_separator=:
13086 link_all_deplibs=yes
13090 case $cc_basename in
13092 # Fabrice Bellard et al's Tiny C Compiler
13094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13103 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13105 hardcode_libdir_flag_spec='-R$libdir'
13106 hardcode_direct=yes
13107 hardcode_shlibpath_var=no
13111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13112 hardcode_direct=yes
13113 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13114 hardcode_libdir_separator=:
13115 hardcode_shlibpath_var=no
13121 openbsd* | bitrig*)
13122 if test -f /usr/libexec/ld.so; then
13123 hardcode_direct=yes
13124 hardcode_shlibpath_var=no
13125 hardcode_direct_absolute=yes
13126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13128 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13129 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13130 export_dynamic_flag_spec='$wl-E'
13132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13133 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13141 hardcode_libdir_flag_spec='-L$libdir'
13142 hardcode_minus_L=yes
13143 allow_undefined_flag=unsupported
13145 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13146 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13147 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13148 $ECHO EXPORTS >> $output_objdir/$libname.def~
13149 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13150 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13151 emximp -o $lib $output_objdir/$libname.def'
13152 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13153 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13154 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13155 $ECHO EXPORTS >> $output_objdir/$libname.def~
13156 prefix_cmds="$SED"~
13157 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13158 prefix_cmds="$prefix_cmds -e 1d";
13160 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13161 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13162 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13163 emximp -o $lib $output_objdir/$libname.def'
13164 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13165 enable_shared_with_static_runtimes=yes
13169 if test yes = "$GCC"; then
13170 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13171 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13173 allow_undefined_flag=' -expect_unresolved \*'
13174 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13176 archive_cmds_need_lc='no'
13177 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13178 hardcode_libdir_separator=:
13181 osf4* | osf5*) # as osf3* with the addition of -msym flag
13182 if test yes = "$GCC"; then
13183 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13184 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13187 allow_undefined_flag=' -expect_unresolved \*'
13188 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13189 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~
13190 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13192 # Both c and cxx compiler support -rpath directly
13193 hardcode_libdir_flag_spec='-rpath $libdir'
13195 archive_cmds_need_lc='no'
13196 hardcode_libdir_separator=:
13200 no_undefined_flag=' -z defs'
13201 if test yes = "$GCC"; then
13203 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13205 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13207 case `$CC -V 2>&1` in
13210 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13212 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13216 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13218 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13222 hardcode_libdir_flag_spec='-R$libdir'
13223 hardcode_shlibpath_var=no
13225 solaris2.[0-5] | solaris2.[0-5].*) ;;
13227 # The compiler driver will combine and reorder linker options,
13228 # but understands '-z linker_flag'. GCC discards it without '$wl',
13229 # but is careful enough not to reorder.
13230 # Supported since Solaris 2.6 (maybe 2.5.1?)
13231 if test yes = "$GCC"; then
13232 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13238 link_all_deplibs=yes
13242 if test sequent = "$host_vendor"; then
13243 # Use $CC to link under sequent, because it throws in some extra .o
13244 # files that make .init and .fini sections work.
13245 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13249 hardcode_libdir_flag_spec='-L$libdir'
13250 hardcode_direct=yes
13251 hardcode_minus_L=yes
13252 hardcode_shlibpath_var=no
13256 case $host_vendor in
13258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13259 hardcode_direct=yes # is this really true???
13262 ## LD is ld it makes a PLAMLIB
13263 ## CC just makes a GrossModule.
13264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13265 reload_cmds='$CC -r -o $output$reload_objs'
13269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13273 runpath_var='LD_RUN_PATH'
13274 hardcode_shlibpath_var=no
13278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13279 hardcode_shlibpath_var=no
13280 export_dynamic_flag_spec='-Bexport'
13284 if test -d /usr/nec; then
13285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13286 hardcode_shlibpath_var=no
13287 runpath_var=LD_RUN_PATH
13288 hardcode_runpath_var=yes
13293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13294 no_undefined_flag='$wl-z,text'
13295 archive_cmds_need_lc=no
13296 hardcode_shlibpath_var=no
13297 runpath_var='LD_RUN_PATH'
13299 if test yes = "$GCC"; then
13300 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308 sysv5* | sco3.2v5* | sco5v6*)
13309 # Note: We CANNOT use -z defs as we might desire, because we do not
13310 # link with -lc, and that would cause any symbols used from libc to
13311 # always be unresolved, which means just about no library would
13312 # ever link correctly. If we're not using GNU ld we use -z text
13313 # though, which does catch some bad symbols but isn't as heavy-handed
13315 no_undefined_flag='$wl-z,text'
13316 allow_undefined_flag='$wl-z,nodefs'
13317 archive_cmds_need_lc=no
13318 hardcode_shlibpath_var=no
13319 hardcode_libdir_flag_spec='$wl-R,$libdir'
13320 hardcode_libdir_separator=':'
13321 link_all_deplibs=yes
13322 export_dynamic_flag_spec='$wl-Bexport'
13323 runpath_var='LD_RUN_PATH'
13325 if test yes = "$GCC"; then
13326 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13336 hardcode_libdir_flag_spec='-L$libdir'
13337 hardcode_shlibpath_var=no
13345 if test sni = "$host_vendor"; then
13347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13348 export_dynamic_flag_spec='$wl-Blargedynsym'
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13355 $as_echo "$ld_shlibs" >&6; }
13356 test no = "$ld_shlibs" && can_build_shared=no
13358 with_gnu_ld=$with_gnu_ld
13375 # Do we need to explicitly link libc?
13377 case "x$archive_cmds_need_lc" in
13379 # Assume -lc should be added
13380 archive_cmds_need_lc=yes
13382 if test yes,yes = "$GCC,$enable_shared"; then
13383 case $archive_cmds in
13385 # FIXME: we may have to deal with multi-command sequences.
13388 # Test whether the compiler implicitly links with -lc since on some
13389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13390 # to ld, don't add -lc before -lgcc.
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13393 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13394 $as_echo_n "(cached) " >&6
13397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13400 (eval $ac_compile) 2>&5
13402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13403 test $ac_status = 0; } 2>conftest.err; then
13406 libobjs=conftest.$ac_objext
13408 wl=$lt_prog_compiler_wl
13409 pic_flag=$lt_prog_compiler_pic
13415 lt_save_allow_undefined_flag=$allow_undefined_flag
13416 allow_undefined_flag=
13417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13418 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13421 test $ac_status = 0; }
13423 lt_cv_archive_cmds_need_lc=no
13425 lt_cv_archive_cmds_need_lc=yes
13427 allow_undefined_flag=$lt_save_allow_undefined_flag
13429 cat conftest.err 1>&5
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13435 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13436 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13595 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13597 if test yes = "$GCC"; then
13599 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13600 *) lt_awk_arg='/^libraries:/' ;;
13603 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13604 *) lt_sed_strip_eq='s|=/|/|g' ;;
13606 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13607 case $lt_search_path_spec in
13609 # if the path contains ";" then we assume it to be the separator
13610 # otherwise default to the standard path separator (i.e. ":") - it is
13611 # assumed that no part of a normal pathname contains ";" but that should
13612 # okay in the real world where ";" in dirpaths is itself problematic.
13613 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13616 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13619 # Ok, now we have the path, separated by spaces, we can step through it
13620 # and add multilib dir if necessary...
13621 lt_tmp_lt_search_path_spec=
13622 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13623 # ...but if some path component already ends with the multilib dir we assume
13624 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13625 case "$lt_multi_os_dir; $lt_search_path_spec " in
13626 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13630 for lt_sys_path in $lt_search_path_spec; do
13631 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13632 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13633 elif test -n "$lt_multi_os_dir"; then
13634 test -d "$lt_sys_path" && \
13635 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13638 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13639 BEGIN {RS = " "; FS = "/|\n";} {
13642 for (lt_i = NF; lt_i > 0; lt_i--) {
13643 if ($lt_i != "" && $lt_i != ".") {
13644 if ($lt_i == "..") {
13647 if (lt_count == 0) {
13648 lt_foo = "/" $lt_i lt_foo;
13655 if (lt_foo != "") { lt_freq[lt_foo]++; }
13656 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13658 # AWK program above erroneously prepends '/' to C:/dos/paths
13661 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13662 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13664 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13668 library_names_spec=
13669 libname_spec='lib$name'
13673 postuninstall_cmds=
13677 shlibpath_overrides_runpath=unknown
13679 dynamic_linker="$host_os ld.so"
13680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13681 need_lib_prefix=unknown
13682 hardcode_into_libs=no
13684 # when you set need_version to no, make sure it does not cause -set_version
13685 # flags to be left without arguments
13686 need_version=unknown
13692 version_type=linux # correct to gnu/linux during the next big refactor
13693 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13694 shlibpath_var=LIBPATH
13696 # AIX 3 has no versioning support, so we append a major version to the name.
13697 soname_spec='$libname$release$shared_ext$major'
13701 version_type=linux # correct to gnu/linux during the next big refactor
13704 hardcode_into_libs=yes
13705 if test ia64 = "$host_cpu"; then
13706 # AIX 5 supports IA64
13707 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13708 shlibpath_var=LD_LIBRARY_PATH
13710 # With GCC up to 2.95.x, collect2 would create an import file
13711 # for dependence libraries. The import file would start with
13712 # the line '#! .'. This would cause the generated library to
13713 # depend on '.', always an invalid library. This was fixed in
13714 # development snapshots of GCC prior to 3.0.
13716 aix4 | aix4.[01] | aix4.[01].*)
13717 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13719 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13722 can_build_shared=no
13726 # Using Import Files as archive members, it is possible to support
13727 # filename-based versioning of shared library archives on AIX. While
13728 # this would work for both with and without runtime linking, it will
13729 # prevent static linking of such archives. So we do filename-based
13730 # shared library versioning with .so extension only, which is used
13731 # when both runtime linking and shared linking is enabled.
13732 # Unfortunately, runtime linking may impact performance, so we do
13733 # not want this to be the default eventually. Also, we use the
13734 # versioned .so libs for executables only if there is the -brtl
13735 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13736 # To allow for filename-based versioning support, we need to create
13737 # libNAME.so.V as an archive file, containing:
13738 # *) an Import File, referring to the versioned filename of the
13739 # archive as well as the shared archive member, telling the
13740 # bitwidth (32 or 64) of that shared object, and providing the
13741 # list of exported symbols of that shared object, eventually
13742 # decorated with the 'weak' keyword
13743 # *) the shared object with the F_LOADONLY flag set, to really avoid
13744 # it being seen by the linker.
13745 # At run time we better use the real file rather than another symlink,
13746 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13748 case $with_aix_soname,$aix_use_runtimelinking in
13749 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13750 # soname into executable. Probably we can add versioning support to
13751 # collect2, so additional links can be useful in future.
13752 aix,yes) # traditional libtool
13753 dynamic_linker='AIX unversionable lib.so'
13754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13755 # instead of lib<name>.a to let people know that these are not
13756 # typical AIX shared libraries.
13757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13759 aix,no) # traditional AIX only
13760 dynamic_linker='AIX lib.a(lib.so.V)'
13761 # We preserve .a as extension for shared libraries through AIX4.2
13762 # and later when we are not doing run time linking.
13763 library_names_spec='$libname$release.a $libname.a'
13764 soname_spec='$libname$release$shared_ext$major'
13766 svr4,*) # full svr4 only
13767 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13768 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13769 # We do not specify a path in Import Files, so LIBPATH fires.
13770 shlibpath_overrides_runpath=yes
13772 *,yes) # both, prefer svr4
13773 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13774 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13775 # unpreferred sharedlib libNAME.a needs extra handling
13776 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13777 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13778 # We do not specify a path in Import Files, so LIBPATH fires.
13779 shlibpath_overrides_runpath=yes
13781 *,no) # both, prefer aix
13782 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13783 library_names_spec='$libname$release.a $libname.a'
13784 soname_spec='$libname$release$shared_ext$major'
13785 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13786 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13787 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13790 shlibpath_var=LIBPATH
13797 # Since July 2007 AmigaOS4 officially supports .so libraries.
13798 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13802 library_names_spec='$libname.ixlibrary $libname.a'
13803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13804 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13810 library_names_spec='$libname$shared_ext'
13811 dynamic_linker="$host_os ld.so"
13812 shlibpath_var=LIBRARY_PATH
13816 version_type=linux # correct to gnu/linux during the next big refactor
13818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13819 soname_spec='$libname$release$shared_ext$major'
13820 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13821 shlibpath_var=LD_LIBRARY_PATH
13822 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13823 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13824 # the default ld.so.conf also contains /usr/contrib/lib and
13825 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13826 # libtool to hard-code these into programs
13829 cygwin* | mingw* | pw32* | cegcc*)
13830 version_type=windows
13835 case $GCC,$cc_basename in
13838 library_names_spec='$libname.dll.a'
13839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13840 postinstall_cmds='base_file=`basename \$file`~
13841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13842 dldir=$destdir/`dirname \$dlpath`~
13843 test -d \$dldir || mkdir -p \$dldir~
13844 $install_prog $dir/$dlname \$dldir/$dlname~
13845 chmod a+x \$dldir/$dlname~
13846 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13847 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13850 dlpath=$dir/\$dldll~
13852 shlibpath_overrides_runpath=yes
13856 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13857 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13859 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13862 # MinGW DLLs use traditional 'lib' prefix
13863 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13866 # pw32 DLLs use 'pw' prefix rather than 'lib'
13867 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13870 dynamic_linker='Win32 ld.exe'
13875 libname_spec='$name'
13876 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13877 library_names_spec='$libname.dll.lib'
13881 sys_lib_search_path_spec=
13884 for lt_path in $LIB
13887 # Let DOS variable expansion print the short 8.3 style file name.
13888 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13889 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13892 # Convert to MSYS style.
13893 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13896 # Convert to unix form, then to dos form, then back to unix form
13897 # but this time dos style (no spaces!) so that the unix form looks
13898 # like /cygdrive/c/PROGRA~1:/cygdr...
13899 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13900 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13901 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13904 sys_lib_search_path_spec=$LIB
13905 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13906 # It is most probably a Windows format PATH.
13907 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13911 # FIXME: find the short name or the path components, as spaces are
13912 # common. (e.g. "Program Files" -> "PROGRA~1")
13916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13917 postinstall_cmds='base_file=`basename \$file`~
13918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13919 dldir=$destdir/`dirname \$dlpath`~
13920 test -d \$dldir || mkdir -p \$dldir~
13921 $install_prog $dir/$dlname \$dldir/$dlname'
13922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13923 dlpath=$dir/\$dldll~
13925 shlibpath_overrides_runpath=yes
13926 dynamic_linker='Win32 link.exe'
13930 # Assume MSVC wrapper
13931 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13932 dynamic_linker='Win32 ld.exe'
13935 # FIXME: first we should search . and the directory the executable is in
13939 darwin* | rhapsody*)
13940 dynamic_linker="$host_os dyld"
13941 version_type=darwin
13944 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13945 soname_spec='$libname$release$major$shared_ext'
13946 shlibpath_overrides_runpath=yes
13947 shlibpath_var=DYLD_LIBRARY_PATH
13948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13950 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13955 version_type=linux # correct to gnu/linux during the next big refactor
13958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13959 soname_spec='$libname$release$shared_ext$major'
13960 shlibpath_var=LD_LIBRARY_PATH
13963 freebsd* | dragonfly*)
13964 # DragonFly does not have aout. When/if they implement a new
13965 # versioning mechanism, adjust this.
13966 if test -x /usr/bin/objformat; then
13967 objformat=`/usr/bin/objformat`
13970 freebsd[23].*) objformat=aout ;;
13971 *) objformat=elf ;;
13974 version_type=freebsd-$objformat
13975 case $version_type in
13977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13978 soname_spec='$libname$release$shared_ext$major'
13983 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13987 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=yes
13992 freebsd3.[01]* | freebsdelf3.[01]*)
13993 shlibpath_overrides_runpath=yes
13994 hardcode_into_libs=yes
13996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13998 shlibpath_overrides_runpath=no
13999 hardcode_into_libs=yes
14001 *) # from 4.6 on, and DragonFly
14002 shlibpath_overrides_runpath=yes
14003 hardcode_into_libs=yes
14009 version_type=linux # correct to gnu/linux during the next big refactor
14012 dynamic_linker="$host_os runtime_loader"
14013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14014 soname_spec='$libname$release$shared_ext$major'
14015 shlibpath_var=LIBRARY_PATH
14016 shlibpath_overrides_runpath=no
14017 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14018 hardcode_into_libs=yes
14021 hpux9* | hpux10* | hpux11*)
14022 # Give a soname corresponding to the major version so that dld.sl refuses to
14023 # link against other versions.
14030 hardcode_into_libs=yes
14031 dynamic_linker="$host_os dld.so"
14032 shlibpath_var=LD_LIBRARY_PATH
14033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14035 soname_spec='$libname$release$shared_ext$major'
14036 if test 32 = "$HPUX_IA64_MODE"; then
14037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14038 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14041 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14046 hardcode_into_libs=yes
14047 dynamic_linker="$host_os dld.sl"
14048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14051 soname_spec='$libname$release$shared_ext$major'
14052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14057 dynamic_linker="$host_os dld.sl"
14058 shlibpath_var=SHLIB_PATH
14059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14061 soname_spec='$libname$release$shared_ext$major'
14064 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14065 postinstall_cmds='chmod 555 $lib'
14066 # or fails outright, so override atomically:
14067 install_override_mode=555
14071 version_type=linux # correct to gnu/linux during the next big refactor
14074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14075 soname_spec='$libname$release$shared_ext$major'
14076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=no
14079 hardcode_into_libs=yes
14082 irix5* | irix6* | nonstopux*)
14084 nonstopux*) version_type=nonstopux ;;
14086 if test yes = "$lt_cv_prog_gnu_ld"; then
14087 version_type=linux # correct to gnu/linux during the next big refactor
14094 soname_spec='$libname$release$shared_ext$major'
14095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14097 irix5* | nonstopux*)
14098 libsuff= shlibsuff=
14101 case $LD in # libtool.m4 will add one of these switches to LD
14102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14103 libsuff= shlibsuff= libmagic=32-bit;;
14104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14105 libsuff=32 shlibsuff=N32 libmagic=N32;;
14106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14108 *) libsuff= shlibsuff= libmagic=never-match;;
14112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14113 shlibpath_overrides_runpath=no
14114 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14115 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14116 hardcode_into_libs=yes
14119 # No shared lib support for Linux oldld, aout, or coff.
14120 linux*oldld* | linux*aout* | linux*coff*)
14125 version_type=none # Android doesn't support versioned libraries.
14128 library_names_spec='$libname$release$shared_ext'
14129 soname_spec='$libname$release$shared_ext'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=yes
14134 # This implies no fast_install, which is unacceptable.
14135 # Some rework will be needed to allow for fast_install
14136 # before this can be enabled.
14137 hardcode_into_libs=yes
14139 dynamic_linker='Android linker'
14140 # Don't embed -rpath directories since the linker doesn't support them.
14141 hardcode_libdir_flag_spec='-L$libdir'
14144 # This must be glibc/ELF.
14145 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14146 version_type=linux # correct to gnu/linux during the next big refactor
14149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14150 soname_spec='$libname$release$shared_ext$major'
14151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 shlibpath_overrides_runpath=no
14155 # Some binutils ld are patched to set DT_RUNPATH
14156 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14157 $as_echo_n "(cached) " >&6
14159 lt_cv_shlibpath_overrides_runpath=no
14160 save_LDFLAGS=$LDFLAGS
14161 save_libdir=$libdir
14162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14175 if ac_fn_c_try_link "$LINENO"; then :
14176 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14177 lt_cv_shlibpath_overrides_runpath=yes
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LDFLAGS=$save_LDFLAGS
14183 libdir=$save_libdir
14187 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14189 # This implies no fast_install, which is unacceptable.
14190 # Some rework will be needed to allow for fast_install
14191 # before this can be enabled.
14192 hardcode_into_libs=yes
14194 # Ideally, we could use ldconfig to report *all* directores which are
14195 # searched for libraries, however this is still not possible. Aside from not
14196 # being certain /sbin/ldconfig is available, command
14197 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14198 # even though it is searched at run-time. Try to do the best guess by
14199 # appending ld.so.conf contents (and includes) to the search path.
14200 if test -f /etc/ld.so.conf; then
14201 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;s/"//g;/^$/d' | tr '\n' ' '`
14202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14205 # We used to test for /lib/ld.so.1 and disable shared libraries on
14206 # powerpc, because MkLinux only supported shared libraries with the
14207 # GNU dynamic linker. Since this was broken with cross compilers,
14208 # most powerpc-linux boxes support dynamic linking these days and
14209 # people can always --disable-shared, the test was removed, and we
14210 # assume the GNU/Linux dynamic linker is in use.
14211 dynamic_linker='GNU/Linux ld.so'
14218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14219 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14221 dynamic_linker='NetBSD (a.out) ld.so'
14223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14224 soname_spec='$libname$release$shared_ext$major'
14225 dynamic_linker='NetBSD ld.elf_so'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 shlibpath_overrides_runpath=yes
14229 hardcode_into_libs=yes
14233 version_type=linux # correct to gnu/linux during the next big refactor
14234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 shlibpath_overrides_runpath=yes
14243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14244 soname_spec='$libname$release$shared_ext$major'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 shlibpath_overrides_runpath=no
14247 hardcode_into_libs=yes
14248 dynamic_linker='ldqnx.so'
14251 openbsd* | bitrig*)
14253 sys_lib_dlsearch_path_spec=/usr/lib
14255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14260 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 shlibpath_overrides_runpath=yes
14267 libname_spec='$name'
14268 version_type=windows
14272 # OS/2 can only load a DLL with a base name of 8 characters or less.
14273 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14274 v=$($ECHO $release$versuffix | tr -d .-);
14275 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14276 $ECHO $n$v`$shared_ext'
14277 library_names_spec='${libname}_dll.$libext'
14278 dynamic_linker='OS/2 ld.exe'
14279 shlibpath_var=BEGINLIBPATH
14280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14282 postinstall_cmds='base_file=`basename \$file`~
14283 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14284 dldir=$destdir/`dirname \$dlpath`~
14285 test -d \$dldir || mkdir -p \$dldir~
14286 $install_prog $dir/$dlname \$dldir/$dlname~
14287 chmod a+x \$dldir/$dlname~
14288 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14289 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14292 dlpath=$dir/\$dldll~
14296 osf3* | osf4* | osf5*)
14300 soname_spec='$libname$release$shared_ext$major'
14301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14312 version_type=linux # correct to gnu/linux during the next big refactor
14315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14316 soname_spec='$libname$release$shared_ext$major'
14317 shlibpath_var=LD_LIBRARY_PATH
14318 shlibpath_overrides_runpath=yes
14319 hardcode_into_libs=yes
14320 # ldd complains unless libraries are executable
14321 postinstall_cmds='chmod +x $lib'
14326 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 shlibpath_overrides_runpath=yes
14330 if test yes = "$with_gnu_ld"; then
14337 version_type=linux # correct to gnu/linux during the next big refactor
14338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14339 soname_spec='$libname$release$shared_ext$major'
14340 shlibpath_var=LD_LIBRARY_PATH
14341 case $host_vendor in
14343 shlibpath_overrides_runpath=no
14345 runpath_var=LD_RUN_PATH
14353 shlibpath_overrides_runpath=no
14354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14360 if test -d /usr/nec; then
14361 version_type=linux # correct to gnu/linux during the next big refactor
14362 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14363 soname_spec='$libname$shared_ext.$major'
14364 shlibpath_var=LD_LIBRARY_PATH
14368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14373 soname_spec='$libname$release$shared_ext$major'
14374 shlibpath_var=LD_LIBRARY_PATH
14375 shlibpath_overrides_runpath=yes
14376 hardcode_into_libs=yes
14377 if test yes = "$with_gnu_ld"; then
14378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14387 sys_lib_dlsearch_path_spec='/usr/lib'
14391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14392 version_type=linux # correct to gnu/linux during the next big refactor
14395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14396 shlibpath_var=LD_LIBRARY_PATH
14397 shlibpath_overrides_runpath=no
14398 hardcode_into_libs=yes
14402 version_type=linux # correct to gnu/linux during the next big refactor
14403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14404 soname_spec='$libname$release$shared_ext$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14413 $as_echo "$dynamic_linker" >&6; }
14414 test no = "$dynamic_linker" && can_build_shared=no
14416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14417 if test yes = "$GCC"; then
14418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14421 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14422 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14425 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14426 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14429 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14430 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14432 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14433 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14435 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14436 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14535 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14537 if test -n "$hardcode_libdir_flag_spec" ||
14538 test -n "$runpath_var" ||
14539 test yes = "$hardcode_automatic"; then
14541 # We can hardcode non-existent directories.
14542 if test no != "$hardcode_direct" &&
14543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14544 # have to relink, otherwise we might link with an installed library
14545 # when we should be linking with a yet-to-be-installed one
14546 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14547 test no != "$hardcode_minus_L"; then
14548 # Linking always hardcodes the temporary library directory.
14549 hardcode_action=relink
14551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14552 hardcode_action=immediate
14555 # We cannot hardcode anything, or else we can only hardcode existing
14557 hardcode_action=unsupported
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14560 $as_echo "$hardcode_action" >&6; }
14562 if test relink = "$hardcode_action" ||
14563 test yes = "$inherit_rpath"; then
14564 # Fast installation is not supported
14565 enable_fast_install=no
14566 elif test yes = "$shlibpath_overrides_runpath" ||
14567 test no = "$enable_shared"; then
14568 # Fast installation is not necessary
14569 enable_fast_install=needless
14577 if test yes != "$enable_dlopen"; then
14578 enable_dlopen=unknown
14579 enable_dlopen_self=unknown
14580 enable_dlopen_self_static=unknown
14587 lt_cv_dlopen=load_add_on
14589 lt_cv_dlopen_self=yes
14592 mingw* | pw32* | cegcc*)
14593 lt_cv_dlopen=LoadLibrary
14598 lt_cv_dlopen=dlopen
14603 # if libdl is installed we need to link against it
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14605 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14606 if ${ac_cv_lib_dl_dlopen+:} false; then :
14607 $as_echo_n "(cached) " >&6
14609 ac_check_lib_save_LIBS=$LIBS
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14614 /* Override any GCC internal prototype to avoid an error.
14615 Use char because int might match the return type of a GCC
14616 builtin and then its argument prototype would still apply. */
14629 if ac_fn_c_try_link "$LINENO"; then :
14630 ac_cv_lib_dl_dlopen=yes
14632 ac_cv_lib_dl_dlopen=no
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14636 LIBS=$ac_check_lib_save_LIBS
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14639 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14640 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14641 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14646 lt_cv_dlopen_self=yes
14653 # Don't try to run any link tests for TPF. We know it's impossible
14654 # because TPF is a cross-compiler, and we know how we open DSOs.
14655 lt_cv_dlopen=dlopen
14657 lt_cv_dlopen_self=no
14661 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14662 if test "x$ac_cv_func_shl_load" = xyes; then :
14663 lt_cv_dlopen=shl_load
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14667 if ${ac_cv_lib_dld_shl_load+:} false; then :
14668 $as_echo_n "(cached) " >&6
14670 ac_check_lib_save_LIBS=$LIBS
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14675 /* Override any GCC internal prototype to avoid an error.
14676 Use char because int might match the return type of a GCC
14677 builtin and then its argument prototype would still apply. */
14685 return shl_load ();
14690 if ac_fn_c_try_link "$LINENO"; then :
14691 ac_cv_lib_dld_shl_load=yes
14693 ac_cv_lib_dld_shl_load=no
14695 rm -f core conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
14697 LIBS=$ac_check_lib_save_LIBS
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14700 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14701 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14702 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14704 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14705 if test "x$ac_cv_func_dlopen" = xyes; then :
14706 lt_cv_dlopen=dlopen
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14710 if ${ac_cv_lib_dl_dlopen+:} false; then :
14711 $as_echo_n "(cached) " >&6
14713 ac_check_lib_save_LIBS=$LIBS
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Override any GCC internal prototype to avoid an error.
14719 Use char because int might match the return type of a GCC
14720 builtin and then its argument prototype would still apply. */
14733 if ac_fn_c_try_link "$LINENO"; then :
14734 ac_cv_lib_dl_dlopen=yes
14736 ac_cv_lib_dl_dlopen=no
14738 rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740 LIBS=$ac_check_lib_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14744 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14745 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14748 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14749 if ${ac_cv_lib_svld_dlopen+:} false; then :
14750 $as_echo_n "(cached) " >&6
14752 ac_check_lib_save_LIBS=$LIBS
14753 LIBS="-lsvld $LIBS"
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14772 if ac_fn_c_try_link "$LINENO"; then :
14773 ac_cv_lib_svld_dlopen=yes
14775 ac_cv_lib_svld_dlopen=no
14777 rm -f core conftest.err conftest.$ac_objext \
14778 conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_check_lib_save_LIBS
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14782 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14783 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14784 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14787 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14788 if ${ac_cv_lib_dld_dld_link+:} false; then :
14789 $as_echo_n "(cached) " >&6
14791 ac_check_lib_save_LIBS=$LIBS
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14796 /* Override any GCC internal prototype to avoid an error.
14797 Use char because int might match the return type of a GCC
14798 builtin and then its argument prototype would still apply. */
14806 return dld_link ();
14811 if ac_fn_c_try_link "$LINENO"; then :
14812 ac_cv_lib_dld_dld_link=yes
14814 ac_cv_lib_dld_dld_link=no
14816 rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
14818 LIBS=$ac_check_lib_save_LIBS
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14821 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14822 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14823 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14844 if test no = "$lt_cv_dlopen"; then
14850 case $lt_cv_dlopen in
14852 save_CPPFLAGS=$CPPFLAGS
14853 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14855 save_LDFLAGS=$LDFLAGS
14856 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14859 LIBS="$lt_cv_dlopen_libs $LIBS"
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14862 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14863 if ${lt_cv_dlopen_self+:} false; then :
14864 $as_echo_n "(cached) " >&6
14866 if test yes = "$cross_compiling"; then :
14867 lt_cv_dlopen_self=cross
14869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14870 lt_status=$lt_dlunknown
14871 cat > conftest.$ac_ext <<_LT_EOF
14872 #line $LINENO "configure"
14873 #include "confdefs.h"
14882 # define LT_DLGLOBAL RTLD_GLOBAL
14885 # define LT_DLGLOBAL DL_GLOBAL
14887 # define LT_DLGLOBAL 0
14891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14892 find out it does not work in some platform. */
14893 #ifndef LT_DLLAZY_OR_NOW
14895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14898 # define LT_DLLAZY_OR_NOW DL_LAZY
14901 # define LT_DLLAZY_OR_NOW RTLD_NOW
14904 # define LT_DLLAZY_OR_NOW DL_NOW
14906 # define LT_DLLAZY_OR_NOW 0
14913 /* When -fvisibility=hidden is used, assume the code has been annotated
14914 correspondingly for the symbols needed. */
14915 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14916 int fnord () __attribute__((visibility("default")));
14919 int fnord () { return 42; }
14922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14923 int status = $lt_dlunknown;
14927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14931 else puts (dlerror ());
14933 /* dlclose (self); */
14941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14942 (eval $ac_link) 2>&5
14944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14945 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14946 (./conftest; exit; ) >&5 2>/dev/null
14948 case x$lt_status in
14949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14954 # compilation failed
14955 lt_cv_dlopen_self=no
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14963 $as_echo "$lt_cv_dlopen_self" >&6; }
14965 if test yes = "$lt_cv_dlopen_self"; then
14966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14968 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14969 if ${lt_cv_dlopen_self_static+:} false; then :
14970 $as_echo_n "(cached) " >&6
14972 if test yes = "$cross_compiling"; then :
14973 lt_cv_dlopen_self_static=cross
14975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14976 lt_status=$lt_dlunknown
14977 cat > conftest.$ac_ext <<_LT_EOF
14978 #line $LINENO "configure"
14979 #include "confdefs.h"
14988 # define LT_DLGLOBAL RTLD_GLOBAL
14991 # define LT_DLGLOBAL DL_GLOBAL
14993 # define LT_DLGLOBAL 0
14997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14998 find out it does not work in some platform. */
14999 #ifndef LT_DLLAZY_OR_NOW
15001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15004 # define LT_DLLAZY_OR_NOW DL_LAZY
15007 # define LT_DLLAZY_OR_NOW RTLD_NOW
15010 # define LT_DLLAZY_OR_NOW DL_NOW
15012 # define LT_DLLAZY_OR_NOW 0
15019 /* When -fvisibility=hidden is used, assume the code has been annotated
15020 correspondingly for the symbols needed. */
15021 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15022 int fnord () __attribute__((visibility("default")));
15025 int fnord () { return 42; }
15028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15029 int status = $lt_dlunknown;
15033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15036 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15037 else puts (dlerror ());
15039 /* dlclose (self); */
15047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15048 (eval $ac_link) 2>&5
15050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15052 (./conftest; exit; ) >&5 2>/dev/null
15054 case x$lt_status in
15055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15060 # compilation failed
15061 lt_cv_dlopen_self_static=no
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15072 CPPFLAGS=$save_CPPFLAGS
15073 LDFLAGS=$save_LDFLAGS
15078 case $lt_cv_dlopen_self in
15079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15080 *) enable_dlopen_self=unknown ;;
15083 case $lt_cv_dlopen_self_static in
15084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15085 *) enable_dlopen_self_static=unknown ;;
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15108 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15110 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15111 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15113 $as_echo "yes" >&6; }
15115 # FIXME - insert some real tests, host_os isn't really good enough
15118 if test -n "$STRIP"; then
15119 striplib="$STRIP -x"
15120 old_striplib="$STRIP -S"
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15122 $as_echo "yes" >&6; }
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 $as_echo "no" >&6; }
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130 $as_echo "no" >&6; }
15146 # Report what library types will actually be built
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15150 $as_echo "$can_build_shared" >&6; }
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15153 $as_echo_n "checking whether to build shared libraries... " >&6; }
15154 test no = "$can_build_shared" && enable_shared=no
15156 # On AIX, shared libraries and static libraries use the same namespace, and
15157 # are all built from PIC.
15160 test yes = "$enable_shared" && enable_static=no
15161 if test -n "$RANLIB"; then
15162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15163 postinstall_cmds='$RANLIB $lib'
15168 if test ia64 != "$host_cpu"; then
15169 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15170 yes,aix,yes) ;; # shared object as lib.so file only
15171 yes,svr4,*) ;; # shared object as lib.so archive member only
15172 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15178 $as_echo "$enable_shared" >&6; }
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15181 $as_echo_n "checking whether to build static libraries... " >&6; }
15182 # Make sure either enable_shared or enable_static is yes.
15183 test yes = "$enable_shared" || enable_static=yes
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15185 $as_echo "$enable_static" >&6; }
15192 ac_cpp='$CPP $CPPFLAGS'
15193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213 ac_config_commands="$ac_config_commands libtool"
15218 # Only expand once:
15222 if test -n "$ac_tool_prefix"; then
15223 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15224 set dummy ${ac_tool_prefix}windres; ac_word=$2
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15226 $as_echo_n "checking for $ac_word... " >&6; }
15227 if ${ac_cv_prog_RC+:} false; then :
15228 $as_echo_n "(cached) " >&6
15230 if test -n "$RC"; then
15231 ac_cv_prog_RC="$RC" # Let the user override the test.
15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15237 test -z "$as_dir" && as_dir=.
15238 for ac_exec_ext in '' $ac_executable_extensions; do
15239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240 ac_cv_prog_RC="${ac_tool_prefix}windres"
15241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15251 if test -n "$RC"; then
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15253 $as_echo "$RC" >&6; }
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15256 $as_echo "no" >&6; }
15261 if test -z "$ac_cv_prog_RC"; then
15263 # Extract the first word of "windres", so it can be a program name with args.
15264 set dummy windres; ac_word=$2
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15266 $as_echo_n "checking for $ac_word... " >&6; }
15267 if ${ac_cv_prog_ac_ct_RC+:} false; then :
15268 $as_echo_n "(cached) " >&6
15270 if test -n "$ac_ct_RC"; then
15271 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15274 for as_dir in $PATH
15277 test -z "$as_dir" && as_dir=.
15278 for ac_exec_ext in '' $ac_executable_extensions; do
15279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15280 ac_cv_prog_ac_ct_RC="windres"
15281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15290 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15291 if test -n "$ac_ct_RC"; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15293 $as_echo "$ac_ct_RC" >&6; }
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15299 if test "x$ac_ct_RC" = x; then
15302 case $cross_compiling:$ac_tool_warned in
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15306 ac_tool_warned=yes ;;
15311 RC="$ac_cv_prog_RC"
15317 # Source file extension for RC test sources.
15320 # Object file extension for compiled RC test sources.
15324 # Code to be used in simple compile tests
15325 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15327 # Code to be used in simple link tests
15328 lt_simple_link_test_code=$lt_simple_compile_test_code
15330 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15337 # If no C compiler was specified, use CC.
15340 # If no C compiler flags were specified, use CFLAGS.
15341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15343 # Allow CC to be a program name with arguments.
15347 # save warnings/boilerplate of simple test code
15348 ac_outfile=conftest.$ac_objext
15349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15351 _lt_compiler_boilerplate=`cat conftest.err`
15354 ac_outfile=conftest.$ac_objext
15355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15357 _lt_linker_boilerplate=`cat conftest.err`
15361 # Allow CC to be a program name with arguments.
15363 lt_save_CFLAGS=$CFLAGS
15370 func_cc_basename $compiler
15371 cc_basename=$func_cc_basename_result
15373 lt_cv_prog_compiler_c_o_RC=yes
15375 if test -n "$compiler"; then
15384 ac_cpp='$CPP $CPPFLAGS'
15385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15390 CFLAGS=$lt_save_CFLAGS
15394 mingw* | cygwin*) is_woe32=yes ;;
15397 if test $is_woe32 = yes; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15409 $as_echo_n "checking whether NLS is requested... " >&6; }
15410 # Check whether --enable-nls was given.
15411 if test "${enable_nls+set}" = set; then :
15412 enableval=$enable_nls; USE_NLS=$enableval
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15418 $as_echo "$USE_NLS" >&6; }
15423 GETTEXT_MACRO_VERSION=0.19
15428 # Prepare PATH_SEPARATOR.
15429 # The user is always right.
15430 if test "${PATH_SEPARATOR+set}" != set; then
15431 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15432 # contains only /bin. Note that ksh looks also at the FPATH variable,
15433 # so we have to set that as well for the test.
15435 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15436 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15437 || PATH_SEPARATOR=';'
15441 # Find out how to test for executable files. Don't use a zero-byte file,
15442 # as systems may use methods other than mode bits to determine executability.
15443 cat >conf$$.file <<_ASEOF
15447 chmod +x conf$$.file
15448 if test -x conf$$.file >/dev/null 2>&1; then
15449 ac_executable_p="test -x"
15451 ac_executable_p="test -f"
15455 # Extract the first word of "msgfmt", so it can be a program name with args.
15456 set dummy msgfmt; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458 $as_echo_n "checking for $ac_word... " >&6; }
15459 if ${ac_cv_path_MSGFMT+:} false; then :
15460 $as_echo_n "(cached) " >&6
15464 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15467 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15468 for ac_dir in $PATH; do
15470 test -z "$ac_dir" && ac_dir=.
15471 for ac_exec_ext in '' $ac_executable_extensions; do
15472 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15473 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15474 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15475 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15476 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15483 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15487 MSGFMT="$ac_cv_path_MSGFMT"
15488 if test "$MSGFMT" != ":"; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15490 $as_echo "$MSGFMT" >&6; }
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15496 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15497 set dummy gmsgfmt; ac_word=$2
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15499 $as_echo_n "checking for $ac_word... " >&6; }
15500 if ${ac_cv_path_GMSGFMT+:} false; then :
15501 $as_echo_n "(cached) " >&6
15505 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15512 test -z "$as_dir" && as_dir=.
15513 for ac_exec_ext in '' $ac_executable_extensions; do
15514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15515 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15523 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15527 GMSGFMT=$ac_cv_path_GMSGFMT
15528 if test -n "$GMSGFMT"; then
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15530 $as_echo "$GMSGFMT" >&6; }
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15533 $as_echo "no" >&6; }
15538 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15539 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15540 *) MSGFMT_015=$MSGFMT ;;
15543 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15544 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15545 *) GMSGFMT_015=$GMSGFMT ;;
15550 # Prepare PATH_SEPARATOR.
15551 # The user is always right.
15552 if test "${PATH_SEPARATOR+set}" != set; then
15553 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15554 # contains only /bin. Note that ksh looks also at the FPATH variable,
15555 # so we have to set that as well for the test.
15557 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15558 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15559 || PATH_SEPARATOR=';'
15563 # Find out how to test for executable files. Don't use a zero-byte file,
15564 # as systems may use methods other than mode bits to determine executability.
15565 cat >conf$$.file <<_ASEOF
15569 chmod +x conf$$.file
15570 if test -x conf$$.file >/dev/null 2>&1; then
15571 ac_executable_p="test -x"
15573 ac_executable_p="test -f"
15577 # Extract the first word of "xgettext", so it can be a program name with args.
15578 set dummy xgettext; ac_word=$2
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15580 $as_echo_n "checking for $ac_word... " >&6; }
15581 if ${ac_cv_path_XGETTEXT+:} false; then :
15582 $as_echo_n "(cached) " >&6
15584 case "$XGETTEXT" in
15586 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15589 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15590 for ac_dir in $PATH; do
15592 test -z "$ac_dir" && ac_dir=.
15593 for ac_exec_ext in '' $ac_executable_extensions; do
15594 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15595 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15596 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15597 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15598 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15605 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15609 XGETTEXT="$ac_cv_path_XGETTEXT"
15610 if test "$XGETTEXT" != ":"; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15612 $as_echo "$XGETTEXT" >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15620 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15621 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15622 *) XGETTEXT_015=$XGETTEXT ;;
15627 # Prepare PATH_SEPARATOR.
15628 # The user is always right.
15629 if test "${PATH_SEPARATOR+set}" != set; then
15630 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15631 # contains only /bin. Note that ksh looks also at the FPATH variable,
15632 # so we have to set that as well for the test.
15634 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15635 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15636 || PATH_SEPARATOR=';'
15640 # Find out how to test for executable files. Don't use a zero-byte file,
15641 # as systems may use methods other than mode bits to determine executability.
15642 cat >conf$$.file <<_ASEOF
15646 chmod +x conf$$.file
15647 if test -x conf$$.file >/dev/null 2>&1; then
15648 ac_executable_p="test -x"
15650 ac_executable_p="test -f"
15654 # Extract the first word of "msgmerge", so it can be a program name with args.
15655 set dummy msgmerge; ac_word=$2
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15657 $as_echo_n "checking for $ac_word... " >&6; }
15658 if ${ac_cv_path_MSGMERGE+:} false; then :
15659 $as_echo_n "(cached) " >&6
15661 case "$MSGMERGE" in
15663 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15666 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15667 for ac_dir in $PATH; do
15669 test -z "$ac_dir" && ac_dir=.
15670 for ac_exec_ext in '' $ac_executable_extensions; do
15671 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15672 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15673 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15674 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15681 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15685 MSGMERGE="$ac_cv_path_MSGMERGE"
15686 if test "$MSGMERGE" != ":"; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15688 $as_echo "$MSGMERGE" >&6; }
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15695 test -n "$localedir" || localedir='${datadir}/locale'
15698 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15701 ac_config_commands="$ac_config_commands po-directories"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15706 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15707 if ${ac_cv_gnu_library_2+:} false; then :
15708 $as_echo_n "(cached) " >&6
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15713 #include <features.h>
15714 #ifdef __GNU_LIBRARY__
15715 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
15721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15722 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15723 ac_cv_gnu_library_2=yes
15725 ac_cv_gnu_library_2=no
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15733 $as_echo "$ac_cv_gnu_library_2" >&6; }
15735 GLIBC2="$ac_cv_gnu_library_2"
15742 if test -n "$GCC"; then
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15744 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15745 if ${gl_cv_cc_vis_werror+:} false; then :
15746 $as_echo_n "(cached) " >&6
15749 gl_save_CFLAGS="$CFLAGS"
15750 CFLAGS="$CFLAGS -Werror"
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15762 if ac_fn_c_try_compile "$LINENO"; then :
15763 gl_cv_cc_vis_werror=yes
15765 gl_cv_cc_vis_werror=no
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 CFLAGS="$gl_save_CFLAGS"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15772 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15774 $as_echo_n "checking for simple visibility declarations... " >&6; }
15775 if ${gl_cv_cc_visibility+:} false; then :
15776 $as_echo_n "(cached) " >&6
15779 gl_save_CFLAGS="$CFLAGS"
15780 CFLAGS="$CFLAGS -fvisibility=hidden"
15781 if test $gl_cv_cc_vis_werror = yes; then
15782 CFLAGS="$CFLAGS -Werror"
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15786 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15787 extern __attribute__((__visibility__("default"))) int exportedvar;
15788 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15789 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15790 void dummyfunc (void) {}
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801 gl_cv_cc_visibility=yes
15803 gl_cv_cc_visibility=no
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 CFLAGS="$gl_save_CFLAGS"
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15810 $as_echo "$gl_cv_cc_visibility" >&6; }
15811 if test $gl_cv_cc_visibility = yes; then
15812 CFLAG_VISIBILITY="-fvisibility=hidden"
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15825 $as_echo_n "checking for inline... " >&6; }
15826 if ${ac_cv_c_inline+:} false; then :
15827 $as_echo_n "(cached) " >&6
15830 for ac_kw in inline __inline__ __inline; do
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 #ifndef __cplusplus
15835 static $ac_kw foo_t static_foo () {return 0; }
15836 $ac_kw foo_t foo () {return 0; }
15840 if ac_fn_c_try_compile "$LINENO"; then :
15841 ac_cv_c_inline=$ac_kw
15843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 test "$ac_cv_c_inline" != no && break
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15849 $as_echo "$ac_cv_c_inline" >&6; }
15851 case $ac_cv_c_inline in
15854 case $ac_cv_c_inline in
15856 *) ac_val=$ac_cv_c_inline;;
15858 cat >>confdefs.h <<_ACEOF
15859 #ifndef __cplusplus
15860 #define inline $ac_val
15866 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15867 if test "x$ac_cv_type_size_t" = xyes; then :
15871 cat >>confdefs.h <<_ACEOF
15872 #define size_t unsigned int
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15879 $as_echo_n "checking for stdint.h... " >&6; }
15880 if ${gl_cv_header_stdint_h+:} false; then :
15881 $as_echo_n "(cached) " >&6
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15885 #include <sys/types.h>
15886 #include <stdint.h>
15890 uintmax_t i = (uintmax_t) -1; return !i;
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 gl_cv_header_stdint_h=yes
15898 gl_cv_header_stdint_h=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15903 $as_echo "$gl_cv_header_stdint_h" >&6; }
15904 if test $gl_cv_header_stdint_h = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907 #define HAVE_STDINT_H_WITH_UINTMAX 1
15912 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15913 # for constant arguments. Useless!
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15915 $as_echo_n "checking for working alloca.h... " >&6; }
15916 if ${ac_cv_working_alloca_h+:} false; then :
15917 $as_echo_n "(cached) " >&6
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15921 #include <alloca.h>
15925 char *p = (char *) alloca (2 * sizeof (int));
15931 if ac_fn_c_try_link "$LINENO"; then :
15932 ac_cv_working_alloca_h=yes
15934 ac_cv_working_alloca_h=no
15936 rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15940 $as_echo "$ac_cv_working_alloca_h" >&6; }
15941 if test $ac_cv_working_alloca_h = yes; then
15943 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15948 $as_echo_n "checking for alloca... " >&6; }
15949 if ${ac_cv_func_alloca_works+:} false; then :
15950 $as_echo_n "(cached) " >&6
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15955 # define alloca __builtin_alloca
15958 # include <malloc.h>
15959 # define alloca _alloca
15961 # ifdef HAVE_ALLOCA_H
15962 # include <alloca.h>
15967 # ifndef alloca /* predefined by HP cc +Olibcalls */
15968 void *alloca (size_t);
15978 char *p = (char *) alloca (1);
15984 if ac_fn_c_try_link "$LINENO"; then :
15985 ac_cv_func_alloca_works=yes
15987 ac_cv_func_alloca_works=no
15989 rm -f core conftest.err conftest.$ac_objext \
15990 conftest$ac_exeext conftest.$ac_ext
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15993 $as_echo "$ac_cv_func_alloca_works" >&6; }
15995 if test $ac_cv_func_alloca_works = yes; then
15997 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16000 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16001 # that cause trouble. Some versions do not even contain alloca or
16002 # contain a buggy version. If you still want to use their alloca,
16003 # use ar to extract alloca.o from them instead of compiling alloca.c.
16005 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16007 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16011 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16012 if ${ac_cv_os_cray+:} false; then :
16013 $as_echo_n "(cached) " >&6
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 #if defined CRAY && ! defined CRAY2
16024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16025 $EGREP "webecray" >/dev/null 2>&1; then :
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16034 $as_echo "$ac_cv_os_cray" >&6; }
16035 if test $ac_cv_os_cray = yes; then
16036 for ac_func in _getb67 GETB67 getb67; do
16037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16041 cat >>confdefs.h <<_ACEOF
16042 #define CRAY_STACKSEG_END $ac_func
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16052 $as_echo_n "checking stack direction for C alloca... " >&6; }
16053 if ${ac_cv_c_stack_direction+:} false; then :
16054 $as_echo_n "(cached) " >&6
16056 if test "$cross_compiling" = yes; then :
16057 ac_cv_c_stack_direction=0
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16061 $ac_includes_default
16063 find_stack_direction (int *addr, int depth)
16065 int dir, dummy = 0;
16068 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16069 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16070 return dir + dummy;
16074 main (int argc, char **argv)
16076 return find_stack_direction (0, argc + !argv + 20) < 0;
16079 if ac_fn_c_try_run "$LINENO"; then :
16080 ac_cv_c_stack_direction=1
16082 ac_cv_c_stack_direction=-1
16084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16085 conftest.$ac_objext conftest.beam conftest.$ac_ext
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16090 $as_echo "$ac_cv_c_stack_direction" >&6; }
16091 cat >>confdefs.h <<_ACEOF
16092 #define STACK_DIRECTION $ac_cv_c_stack_direction
16101 for ac_header in $ac_header_list
16103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16107 cat >>confdefs.h <<_ACEOF
16108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16122 for ac_func in getpagesize
16124 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16125 if test "x$ac_cv_func_getpagesize" = xyes; then :
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_GETPAGESIZE 1
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16134 $as_echo_n "checking for working mmap... " >&6; }
16135 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16136 $as_echo_n "(cached) " >&6
16138 if test "$cross_compiling" = yes; then :
16139 ac_cv_func_mmap_fixed_mapped=no
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 $ac_includes_default
16144 /* malloc might have been renamed as rpl_malloc. */
16147 /* Thanks to Mike Haertel and Jim Avera for this test.
16148 Here is a matrix of mmap possibilities:
16149 mmap private not fixed
16150 mmap private fixed at somewhere currently unmapped
16151 mmap private fixed at somewhere already mapped
16152 mmap shared not fixed
16153 mmap shared fixed at somewhere currently unmapped
16154 mmap shared fixed at somewhere already mapped
16155 For private mappings, we should verify that changes cannot be read()
16156 back from the file, nor mmap's back from the file at a different
16157 address. (There have been systems where private was not correctly
16158 implemented like the infamous i386 svr4.0, and systems where the
16159 VM page cache was not coherent with the file system buffer cache
16160 like early versions of FreeBSD and possibly contemporary NetBSD.)
16161 For shared mappings, we should conversely verify that changes get
16162 propagated back to all the places they're supposed to be.
16164 Grep wants private fixed already mapped.
16165 The main things grep needs to know about mmap are:
16166 * does it exist and is it safe to write into the mmap'd area
16167 * how to use it (BSD variants) */
16170 #include <sys/mman.h>
16172 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16176 /* This mess was copied from the GNU getpagesize.h. */
16177 #ifndef HAVE_GETPAGESIZE
16178 # ifdef _SC_PAGESIZE
16179 # define getpagesize() sysconf(_SC_PAGESIZE)
16180 # else /* no _SC_PAGESIZE */
16181 # ifdef HAVE_SYS_PARAM_H
16182 # include <sys/param.h>
16183 # ifdef EXEC_PAGESIZE
16184 # define getpagesize() EXEC_PAGESIZE
16185 # else /* no EXEC_PAGESIZE */
16187 # define getpagesize() NBPG * CLSIZE
16190 # endif /* no CLSIZE */
16191 # else /* no NBPG */
16193 # define getpagesize() NBPC
16194 # else /* no NBPC */
16196 # define getpagesize() PAGESIZE
16197 # endif /* PAGESIZE */
16198 # endif /* no NBPC */
16199 # endif /* no NBPG */
16200 # endif /* no EXEC_PAGESIZE */
16201 # else /* no HAVE_SYS_PARAM_H */
16202 # define getpagesize() 8192 /* punt totally */
16203 # endif /* no HAVE_SYS_PARAM_H */
16204 # endif /* no _SC_PAGESIZE */
16206 #endif /* no HAVE_GETPAGESIZE */
16211 char *data, *data2, *data3;
16212 const char *cdata2;
16216 pagesize = getpagesize ();
16218 /* First, make a file with some known garbage in it. */
16219 data = (char *) malloc (pagesize);
16222 for (i = 0; i < pagesize; ++i)
16223 *(data + i) = rand ();
16225 fd = creat ("conftest.mmap", 0600);
16228 if (write (fd, data, pagesize) != pagesize)
16232 /* Next, check that the tail of a page is zero-filled. File must have
16233 non-zero length, otherwise we risk SIGBUS for entire page. */
16234 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16238 if (write (fd2, cdata2, 1) != 1)
16240 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16241 if (data2 == MAP_FAILED)
16243 for (i = 0; i < pagesize; ++i)
16247 if (munmap (data2, pagesize))
16250 /* Next, try to mmap the file at a fixed address which already has
16251 something else allocated at it. If we can, also make sure that
16252 we see the same garbage. */
16253 fd = open ("conftest.mmap", O_RDWR);
16256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16259 for (i = 0; i < pagesize; ++i)
16260 if (*(data + i) != *(data2 + i))
16263 /* Finally, make sure that changes to the mapped area do not
16264 percolate back to the file as seen by read(). (This is a bug on
16265 some variants of i386 svr4.0.) */
16266 for (i = 0; i < pagesize; ++i)
16267 *(data2 + i) = *(data2 + i) + 1;
16268 data3 = (char *) malloc (pagesize);
16271 if (read (fd, data3, pagesize) != pagesize)
16273 for (i = 0; i < pagesize; ++i)
16274 if (*(data + i) != *(data3 + i))
16280 if ac_fn_c_try_run "$LINENO"; then :
16281 ac_cv_func_mmap_fixed_mapped=yes
16283 ac_cv_func_mmap_fixed_mapped=no
16285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16286 conftest.$ac_objext conftest.beam conftest.$ac_ext
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16291 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16292 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16294 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16297 rm -f conftest.mmap conftest.txt
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
16302 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
16303 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
16304 $as_echo_n "(cached) " >&6
16307 gt_cv_int_divbyzero_sigfpe=
16309 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
16310 # On Mac OS X 10.2 or newer, just assume the same as when cross-
16311 # compiling. If we were to perform the real test, 1 Crash Report
16312 # dialog window would pop up.
16313 case "$host_cpu" in
16314 i[34567]86 | x86_64)
16315 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
16319 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
16320 if test "$cross_compiling" = yes; then :
16322 # Guess based on the CPU.
16323 case "$host_cpu" in
16324 alpha* | i[34567]86 | x86_64 | m68k | s390*)
16325 gt_cv_int_divbyzero_sigfpe="guessing yes";;
16327 gt_cv_int_divbyzero_sigfpe="guessing no";;
16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16334 #include <stdlib.h>
16335 #include <signal.h>
16338 sigfpe_handler (int sig)
16340 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
16341 _exit (sig != SIGFPE);
16351 signal (SIGFPE, sigfpe_handler);
16352 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
16353 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
16354 signal (SIGTRAP, sigfpe_handler);
16356 /* Linux/SPARC yields signal SIGILL. */
16357 #if defined (__sparc__) && defined (__linux__)
16358 signal (SIGILL, sigfpe_handler);
16367 if ac_fn_c_try_run "$LINENO"; then :
16368 gt_cv_int_divbyzero_sigfpe=yes
16370 gt_cv_int_divbyzero_sigfpe=no
16372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16373 conftest.$ac_objext conftest.beam conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
16380 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
16381 case "$gt_cv_int_divbyzero_sigfpe" in
16386 cat >>confdefs.h <<_ACEOF
16387 #define INTDIV0_RAISES_SIGFPE $value
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16393 $as_echo_n "checking for inttypes.h... " >&6; }
16394 if ${gl_cv_header_inttypes_h+:} false; then :
16395 $as_echo_n "(cached) " >&6
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16400 #include <sys/types.h>
16401 #include <inttypes.h>
16406 uintmax_t i = (uintmax_t) -1; return !i;
16411 if ac_fn_c_try_compile "$LINENO"; then :
16412 gl_cv_header_inttypes_h=yes
16414 gl_cv_header_inttypes_h=no
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16419 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16420 if test $gl_cv_header_inttypes_h = yes; then
16422 cat >>confdefs.h <<_ACEOF
16423 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16430 $as_echo_n "checking for unsigned long long int... " >&6; }
16431 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16432 $as_echo_n "(cached) " >&6
16434 ac_cv_type_unsigned_long_long_int=yes
16435 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16439 /* For now, do not test the preprocessor; as of 2007 there are too many
16440 implementations with broken preprocessors. Perhaps this can
16441 be revisited in 2012. In the meantime, code should not expect
16442 #if to work with literals wider than 32 bits. */
16443 /* Test literals. */
16444 long long int ll = 9223372036854775807ll;
16445 long long int nll = -9223372036854775807LL;
16446 unsigned long long int ull = 18446744073709551615ULL;
16447 /* Test constant expressions. */
16448 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16450 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16456 /* Test availability of runtime routines for shift and division. */
16457 long long int llmax = 9223372036854775807ll;
16458 unsigned long long int ullmax = 18446744073709551615ull;
16459 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16460 | (llmax / ll) | (llmax % ll)
16461 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16462 | (ullmax / ull) | (ullmax % ull));
16468 if ac_fn_c_try_link "$LINENO"; then :
16471 ac_cv_type_unsigned_long_long_int=no
16473 rm -f core conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16478 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16479 if test $ac_cv_type_unsigned_long_long_int = yes; then
16481 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16488 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
16490 test $ac_cv_type_unsigned_long_long_int = yes \
16491 && ac_type='unsigned long long' \
16492 || ac_type='unsigned long'
16494 cat >>confdefs.h <<_ACEOF
16495 #define uintmax_t $ac_type
16500 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16505 for ac_header in inttypes.h
16507 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16508 if test "x$ac_cv_header_inttypes_h" = xyes; then :
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_INTTYPES_H 1
16517 if test $ac_cv_header_inttypes_h = yes; then
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
16519 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
16520 if ${gt_cv_inttypes_pri_broken+:} false; then :
16521 $as_echo_n "(cached) " >&6
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16527 #include <inttypes.h>
16540 if ac_fn_c_try_compile "$LINENO"; then :
16541 gt_cv_inttypes_pri_broken=no
16543 gt_cv_inttypes_pri_broken=yes
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
16549 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
16551 if test "$gt_cv_inttypes_pri_broken" = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define PRI_MACROS_BROKEN 1
16557 PRI_MACROS_BROKEN=1
16559 PRI_MACROS_BROKEN=0
16564 if test "X$prefix" = "XNONE"; then
16565 acl_final_prefix="$ac_default_prefix"
16567 acl_final_prefix="$prefix"
16569 if test "X$exec_prefix" = "XNONE"; then
16570 acl_final_exec_prefix='${prefix}'
16572 acl_final_exec_prefix="$exec_prefix"
16574 acl_save_prefix="$prefix"
16575 prefix="$acl_final_prefix"
16576 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16577 prefix="$acl_save_prefix"
16581 # Check whether --with-gnu-ld was given.
16582 if test "${with_gnu_ld+set}" = set; then :
16583 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16588 # Prepare PATH_SEPARATOR.
16589 # The user is always right.
16590 if test "${PATH_SEPARATOR+set}" != set; then
16591 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16592 # contains only /bin. Note that ksh looks also at the FPATH variable,
16593 # so we have to set that as well for the test.
16595 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16596 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16597 || PATH_SEPARATOR=';'
16602 if test "$GCC" = yes; then
16603 # Check if gcc -print-prog-name=ld gives a path.
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16605 $as_echo_n "checking for ld used by $CC... " >&6; }
16608 # gcc leaves a trailing carriage return which upsets mingw
16609 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16611 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16614 # Accept absolute paths.
16616 re_direlt='/[^/][^/]*/\.\./'
16617 # Canonicalize the pathname of ld
16618 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16619 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16620 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16622 test -z "$LD" && LD="$ac_prog"
16625 # If it fails, then pretend we aren't using GCC.
16629 # If it is relative, then search for the first ld in PATH.
16630 with_gnu_ld=unknown
16633 elif test "$with_gnu_ld" = yes; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16635 $as_echo_n "checking for GNU ld... " >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16638 $as_echo_n "checking for non-GNU ld... " >&6; }
16640 if ${acl_cv_path_LD+:} false; then :
16641 $as_echo_n "(cached) " >&6
16643 if test -z "$LD"; then
16644 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16645 for ac_dir in $PATH; do
16646 IFS="$acl_save_ifs"
16647 test -z "$ac_dir" && ac_dir=.
16648 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16649 acl_cv_path_LD="$ac_dir/$ac_prog"
16650 # Check to see if the program is GNU ld. I'd rather use --version,
16651 # but apparently some variants of GNU ld only accept -v.
16652 # Break only if it was the GNU/non-GNU ld that we prefer.
16653 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16654 *GNU* | *'with BFD'*)
16655 test "$with_gnu_ld" != no && break
16658 test "$with_gnu_ld" != yes && break
16663 IFS="$acl_save_ifs"
16665 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16669 LD="$acl_cv_path_LD"
16670 if test -n "$LD"; then
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16672 $as_echo "$LD" >&6; }
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 $as_echo "no" >&6; }
16677 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16680 if ${acl_cv_prog_gnu_ld+:} false; then :
16681 $as_echo_n "(cached) " >&6
16683 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16684 case `$LD -v 2>&1 </dev/null` in
16685 *GNU* | *'with BFD'*)
16686 acl_cv_prog_gnu_ld=yes
16689 acl_cv_prog_gnu_ld=no
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16694 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16695 with_gnu_ld=$acl_cv_prog_gnu_ld
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16701 $as_echo_n "checking for shared library run path origin... " >&6; }
16702 if ${acl_cv_rpath+:} false; then :
16703 $as_echo_n "(cached) " >&6
16706 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16707 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16709 rm -f ./conftest.sh
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16714 $as_echo "$acl_cv_rpath" >&6; }
16716 acl_libext="$acl_cv_libext"
16717 acl_shlibext="$acl_cv_shlibext"
16718 acl_libname_spec="$acl_cv_libname_spec"
16719 acl_library_names_spec="$acl_cv_library_names_spec"
16720 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16721 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16722 acl_hardcode_direct="$acl_cv_hardcode_direct"
16723 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16724 # Check whether --enable-rpath was given.
16725 if test "${enable_rpath+set}" = set; then :
16726 enableval=$enable_rpath; :
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16739 $as_echo_n "checking for 64-bit host... " >&6; }
16740 if ${gl_cv_solaris_64bit+:} false; then :
16741 $as_echo_n "(cached) " >&6
16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h. */
16751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16752 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16753 gl_cv_solaris_64bit=yes
16755 gl_cv_solaris_64bit=no
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16762 $as_echo "$gl_cv_solaris_64bit" >&6; }
16763 if test $gl_cv_solaris_64bit = yes; then
16764 acl_libdirstem=lib/64
16765 case "$host_cpu" in
16766 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16767 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16772 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16773 if test -n "$searchpath"; then
16774 acl_save_IFS="${IFS= }"; IFS=":"
16775 for searchdir in $searchpath; do
16776 if test -d "$searchdir"; then
16777 case "$searchdir" in
16778 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16780 # Better ignore directories of this form. They are misleading.
16782 *) searchdir=`cd "$searchdir" && pwd`
16783 case "$searchdir" in
16784 */lib64 ) acl_libdirstem=lib64 ;;
16789 IFS="$acl_save_IFS"
16793 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16797 gl_threads_api=none
16802 if test "$gl_use_threads" != no; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16804 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16805 if ${gl_cv_have_weak+:} false; then :
16806 $as_echo_n "(cached) " >&6
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 extern void xyzzy ();
16821 if ac_fn_c_try_link "$LINENO"; then :
16822 gl_cv_have_weak=maybe
16824 rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16826 if test $gl_cv_have_weak = maybe; then
16827 if test "$cross_compiling" = yes; then :
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16831 Extensible Linking Format
16835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16836 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16837 gl_cv_have_weak="guessing yes"
16839 gl_cv_have_weak="guessing no"
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16852 return (fputs == NULL);
16855 if ac_fn_c_try_run "$LINENO"; then :
16856 gl_cv_have_weak=yes
16860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16861 conftest.$ac_objext conftest.beam conftest.$ac_ext
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16868 $as_echo "$gl_cv_have_weak" >&6; }
16869 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16870 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16871 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16872 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16873 if test "x$ac_cv_header_pthread_h" = xyes; then :
16874 gl_have_pthread_h=yes
16876 gl_have_pthread_h=no
16880 if test "$gl_have_pthread_h" = yes; then
16881 # Other possible tests:
16882 # -lpthreads (FSU threads, PCthreads)
16885 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16886 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16887 # the second one only in libpthread, and lock.c needs it.
16889 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
16890 # needs -pthread for some reason. See:
16891 # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
16893 for gl_pthread in '' '-pthread'; do
16894 LIBS="$LIBS $gl_pthread"
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16897 #include <pthread.h>
16899 pthread_mutexattr_t ma;
16904 pthread_mutex_lock (&m);
16905 pthread_mutexattr_init (&ma);
16910 if ac_fn_c_try_link "$LINENO"; then :
16911 gl_have_pthread=yes
16912 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
16913 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
16915 rm -f core conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16918 test -n "$gl_have_pthread" && break
16921 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16922 # since it is defined as a macro on OSF/1.)
16923 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
16924 # The program links fine without libpthread. But it may actually
16925 # need to link with libpthread in order to create multiple threads.
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16927 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16928 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16929 $as_echo_n "(cached) " >&6
16931 ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-lpthread $LIBS"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16942 char pthread_kill ();
16946 return pthread_kill ();
16951 if ac_fn_c_try_link "$LINENO"; then :
16952 ac_cv_lib_pthread_pthread_kill=yes
16954 ac_cv_lib_pthread_pthread_kill=no
16956 rm -f core conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16961 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16962 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16963 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16964 # On Solaris and HP-UX, most pthread functions exist also in libc.
16965 # Therefore pthread_in_use() needs to actually try to create a
16966 # thread: pthread_create from libc will fail, whereas
16967 # pthread_create will actually create a thread.
16971 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16977 elif test -z "$gl_have_pthread"; then
16978 # Some library is needed. Try libpthread and libc_r.
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16980 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16981 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16982 $as_echo_n "(cached) " >&6
16984 ac_check_lib_save_LIBS=$LIBS
16985 LIBS="-lpthread $LIBS"
16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16989 /* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16995 char pthread_kill ();
16999 return pthread_kill ();
17004 if ac_fn_c_try_link "$LINENO"; then :
17005 ac_cv_lib_pthread_pthread_kill=yes
17007 ac_cv_lib_pthread_pthread_kill=no
17009 rm -f core conftest.err conftest.$ac_objext \
17010 conftest$ac_exeext conftest.$ac_ext
17011 LIBS=$ac_check_lib_save_LIBS
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17014 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17015 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17016 gl_have_pthread=yes
17017 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17018 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17021 if test -z "$gl_have_pthread"; then
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17024 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17025 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17026 $as_echo_n "(cached) " >&6
17028 ac_check_lib_save_LIBS=$LIBS
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17033 /* Override any GCC internal prototype to avoid an error.
17034 Use char because int might match the return type of a GCC
17035 builtin and then its argument prototype would still apply. */
17039 char pthread_kill ();
17043 return pthread_kill ();
17048 if ac_fn_c_try_link "$LINENO"; then :
17049 ac_cv_lib_c_r_pthread_kill=yes
17051 ac_cv_lib_c_r_pthread_kill=no
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055 LIBS=$ac_check_lib_save_LIBS
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17058 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17059 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17060 gl_have_pthread=yes
17061 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17062 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17067 if test -n "$gl_have_pthread"; then
17068 gl_threads_api=posix
17070 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17072 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17073 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17075 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17084 if test -z "$gl_have_pthread"; then
17085 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17086 gl_have_solaristhread=
17087 gl_save_LIBS="$LIBS"
17088 LIBS="$LIBS -lthread"
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17092 #include <thread.h>
17103 if ac_fn_c_try_link "$LINENO"; then :
17104 gl_have_solaristhread=yes
17106 rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108 LIBS="$gl_save_LIBS"
17109 if test -n "$gl_have_solaristhread"; then
17110 gl_threads_api=solaris
17112 LTLIBTHREAD=-lthread
17113 LIBMULTITHREAD="$LIBTHREAD"
17114 LTLIBMULTITHREAD="$LTLIBTHREAD"
17116 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17118 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17120 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17128 if test "$gl_use_threads" = pth; then
17129 gl_save_CPPFLAGS="$CPPFLAGS"
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17136 $as_echo_n "checking how to link with libpth... " >&6; }
17137 if ${ac_cv_libpth_libs+:} false; then :
17138 $as_echo_n "(cached) " >&6
17150 acl_save_prefix="$prefix"
17151 prefix="$acl_final_prefix"
17152 acl_save_exec_prefix="$exec_prefix"
17153 exec_prefix="$acl_final_exec_prefix"
17155 eval additional_includedir=\"$includedir\"
17156 eval additional_libdir=\"$libdir\"
17158 exec_prefix="$acl_save_exec_prefix"
17159 prefix="$acl_save_prefix"
17162 # Check whether --with-libpth-prefix was given.
17163 if test "${with_libpth_prefix+set}" = set; then :
17164 withval=$with_libpth_prefix;
17165 if test "X$withval" = "Xno"; then
17168 if test "X$withval" = "X"; then
17170 acl_save_prefix="$prefix"
17171 prefix="$acl_final_prefix"
17172 acl_save_exec_prefix="$exec_prefix"
17173 exec_prefix="$acl_final_exec_prefix"
17175 eval additional_includedir=\"$includedir\"
17176 eval additional_libdir=\"$libdir\"
17178 exec_prefix="$acl_save_exec_prefix"
17179 prefix="$acl_save_prefix"
17182 additional_includedir="$withval/include"
17183 additional_libdir="$withval/$acl_libdirstem"
17184 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17185 && ! test -d "$withval/$acl_libdirstem"; then
17186 additional_libdir="$withval/$acl_libdirstem2"
17200 names_already_handled=
17201 names_next_round='pth '
17202 while test -n "$names_next_round"; do
17203 names_this_round="$names_next_round"
17205 for name in $names_this_round; do
17207 for n in $names_already_handled; do
17208 if test "$n" = "$name"; then
17209 already_handled=yes
17213 if test -z "$already_handled"; then
17214 names_already_handled="$names_already_handled $name"
17215 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17216 eval value=\"\$HAVE_LIB$uppername\"
17217 if test -n "$value"; then
17218 if test "$value" = yes; then
17219 eval value=\"\$LIB$uppername\"
17220 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17221 eval value=\"\$LTLIB$uppername\"
17222 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17231 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17232 if test -n "$acl_shlibext"; then
17233 shrext=".$acl_shlibext" # typically: shrext=.so
17237 if test $use_additional = yes; then
17238 dir="$additional_libdir"
17239 if test -n "$acl_shlibext"; then
17240 if test -f "$dir/$libname$shrext"; then
17242 found_so="$dir/$libname$shrext"
17244 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17245 ver=`(cd "$dir" && \
17246 for f in "$libname$shrext".*; do echo "$f"; done \
17247 | sed -e "s,^$libname$shrext\\\\.,," \
17248 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17249 | sed 1q ) 2>/dev/null`
17250 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17252 found_so="$dir/$libname$shrext.$ver"
17255 eval library_names=\"$acl_library_names_spec\"
17256 for f in $library_names; do
17257 if test -f "$dir/$f"; then
17266 if test "X$found_dir" = "X"; then
17267 if test -f "$dir/$libname.$acl_libext"; then
17269 found_a="$dir/$libname.$acl_libext"
17272 if test "X$found_dir" != "X"; then
17273 if test -f "$dir/$libname.la"; then
17274 found_la="$dir/$libname.la"
17278 if test "X$found_dir" = "X"; then
17279 for x in $LDFLAGS $LTLIBPTH; do
17281 acl_save_prefix="$prefix"
17282 prefix="$acl_final_prefix"
17283 acl_save_exec_prefix="$exec_prefix"
17284 exec_prefix="$acl_final_exec_prefix"
17286 exec_prefix="$acl_save_exec_prefix"
17287 prefix="$acl_save_prefix"
17291 dir=`echo "X$x" | sed -e 's/^X-L//'`
17292 if test -n "$acl_shlibext"; then
17293 if test -f "$dir/$libname$shrext"; then
17295 found_so="$dir/$libname$shrext"
17297 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17298 ver=`(cd "$dir" && \
17299 for f in "$libname$shrext".*; do echo "$f"; done \
17300 | sed -e "s,^$libname$shrext\\\\.,," \
17301 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17302 | sed 1q ) 2>/dev/null`
17303 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17305 found_so="$dir/$libname$shrext.$ver"
17308 eval library_names=\"$acl_library_names_spec\"
17309 for f in $library_names; do
17310 if test -f "$dir/$f"; then
17319 if test "X$found_dir" = "X"; then
17320 if test -f "$dir/$libname.$acl_libext"; then
17322 found_a="$dir/$libname.$acl_libext"
17325 if test "X$found_dir" != "X"; then
17326 if test -f "$dir/$libname.la"; then
17327 found_la="$dir/$libname.la"
17332 if test "X$found_dir" != "X"; then
17337 if test "X$found_dir" != "X"; then
17338 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17339 if test "X$found_so" != "X"; then
17340 if test "$enable_rpath" = no \
17341 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17342 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17343 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17346 for x in $ltrpathdirs; do
17347 if test "X$x" = "X$found_dir"; then
17352 if test -z "$haveit"; then
17353 ltrpathdirs="$ltrpathdirs $found_dir"
17355 if test "$acl_hardcode_direct" = yes; then
17356 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17358 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17359 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17361 for x in $rpathdirs; do
17362 if test "X$x" = "X$found_dir"; then
17367 if test -z "$haveit"; then
17368 rpathdirs="$rpathdirs $found_dir"
17372 for x in $LDFLAGS $LIBPTH; do
17374 acl_save_prefix="$prefix"
17375 prefix="$acl_final_prefix"
17376 acl_save_exec_prefix="$exec_prefix"
17377 exec_prefix="$acl_final_exec_prefix"
17379 exec_prefix="$acl_save_exec_prefix"
17380 prefix="$acl_save_prefix"
17382 if test "X$x" = "X-L$found_dir"; then
17387 if test -z "$haveit"; then
17388 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17390 if test "$acl_hardcode_minus_L" != no; then
17391 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17393 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17399 if test "X$found_a" != "X"; then
17400 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17402 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17405 additional_includedir=
17406 case "$found_dir" in
17407 */$acl_libdirstem | */$acl_libdirstem/)
17408 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17409 if test "$name" = 'pth'; then
17410 LIBPTH_PREFIX="$basedir"
17412 additional_includedir="$basedir/include"
17414 */$acl_libdirstem2 | */$acl_libdirstem2/)
17415 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17416 if test "$name" = 'pth'; then
17417 LIBPTH_PREFIX="$basedir"
17419 additional_includedir="$basedir/include"
17422 if test "X$additional_includedir" != "X"; then
17423 if test "X$additional_includedir" != "X/usr/include"; then
17425 if test "X$additional_includedir" = "X/usr/local/include"; then
17426 if test -n "$GCC"; then
17428 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17432 if test -z "$haveit"; then
17433 for x in $CPPFLAGS $INCPTH; do
17435 acl_save_prefix="$prefix"
17436 prefix="$acl_final_prefix"
17437 acl_save_exec_prefix="$exec_prefix"
17438 exec_prefix="$acl_final_exec_prefix"
17440 exec_prefix="$acl_save_exec_prefix"
17441 prefix="$acl_save_prefix"
17443 if test "X$x" = "X-I$additional_includedir"; then
17448 if test -z "$haveit"; then
17449 if test -d "$additional_includedir"; then
17450 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17456 if test -n "$found_la"; then
17457 save_libdir="$libdir"
17458 case "$found_la" in
17459 */* | *\\*) . "$found_la" ;;
17460 *) . "./$found_la" ;;
17462 libdir="$save_libdir"
17463 for dep in $dependency_libs; do
17466 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17467 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17468 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17470 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17471 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17472 if test -n "$GCC"; then
17474 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17478 if test -z "$haveit"; then
17480 for x in $LDFLAGS $LIBPTH; do
17482 acl_save_prefix="$prefix"
17483 prefix="$acl_final_prefix"
17484 acl_save_exec_prefix="$exec_prefix"
17485 exec_prefix="$acl_final_exec_prefix"
17487 exec_prefix="$acl_save_exec_prefix"
17488 prefix="$acl_save_prefix"
17490 if test "X$x" = "X-L$additional_libdir"; then
17495 if test -z "$haveit"; then
17496 if test -d "$additional_libdir"; then
17497 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17501 for x in $LDFLAGS $LTLIBPTH; do
17503 acl_save_prefix="$prefix"
17504 prefix="$acl_final_prefix"
17505 acl_save_exec_prefix="$exec_prefix"
17506 exec_prefix="$acl_final_exec_prefix"
17508 exec_prefix="$acl_save_exec_prefix"
17509 prefix="$acl_save_prefix"
17511 if test "X$x" = "X-L$additional_libdir"; then
17516 if test -z "$haveit"; then
17517 if test -d "$additional_libdir"; then
17518 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17525 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17526 if test "$enable_rpath" != no; then
17528 for x in $rpathdirs; do
17529 if test "X$x" = "X$dir"; then
17534 if test -z "$haveit"; then
17535 rpathdirs="$rpathdirs $dir"
17538 for x in $ltrpathdirs; do
17539 if test "X$x" = "X$dir"; then
17544 if test -z "$haveit"; then
17545 ltrpathdirs="$ltrpathdirs $dir"
17550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17553 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17556 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17557 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17563 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17564 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17570 if test "X$rpathdirs" != "X"; then
17571 if test -n "$acl_hardcode_libdir_separator"; then
17573 for found_dir in $rpathdirs; do
17574 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17576 acl_save_libdir="$libdir"
17578 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17579 libdir="$acl_save_libdir"
17580 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17582 for found_dir in $rpathdirs; do
17583 acl_save_libdir="$libdir"
17584 libdir="$found_dir"
17585 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17586 libdir="$acl_save_libdir"
17587 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17591 if test "X$ltrpathdirs" != "X"; then
17592 for found_dir in $ltrpathdirs; do
17593 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17602 ac_cv_libpth_libs="$LIBPTH"
17603 ac_cv_libpth_ltlibs="$LTLIBPTH"
17604 ac_cv_libpth_cppflags="$INCPTH"
17605 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17609 $as_echo "$ac_cv_libpth_libs" >&6; }
17610 LIBPTH="$ac_cv_libpth_libs"
17611 LTLIBPTH="$ac_cv_libpth_ltlibs"
17612 INCPTH="$ac_cv_libpth_cppflags"
17613 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17615 for element in $INCPTH; do
17617 for x in $CPPFLAGS; do
17619 acl_save_prefix="$prefix"
17620 prefix="$acl_final_prefix"
17621 acl_save_exec_prefix="$exec_prefix"
17622 exec_prefix="$acl_final_exec_prefix"
17624 exec_prefix="$acl_save_exec_prefix"
17625 prefix="$acl_save_prefix"
17627 if test "X$x" = "X$element"; then
17632 if test -z "$haveit"; then
17633 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17645 gl_save_LIBS="$LIBS"
17646 LIBS="$LIBS $LIBPTH"
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17658 if ac_fn_c_try_link "$LINENO"; then :
17661 rm -f core conftest.err conftest.$ac_objext \
17662 conftest$ac_exeext conftest.$ac_ext
17663 LIBS="$gl_save_LIBS"
17664 if test -n "$gl_have_pth"; then
17666 LIBTHREAD="$LIBPTH"
17667 LTLIBTHREAD="$LTLIBPTH"
17668 LIBMULTITHREAD="$LIBTHREAD"
17669 LTLIBMULTITHREAD="$LTLIBTHREAD"
17671 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17673 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17674 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17676 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17683 CPPFLAGS="$gl_save_CPPFLAGS"
17686 if test -z "$gl_have_pthread"; then
17687 case "$gl_use_threads" in
17688 yes | windows | win32) # The 'win32' is for backward compatibility.
17689 if { case "$host_os" in
17694 gl_threads_api=windows
17696 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17704 $as_echo_n "checking for multithread API to use... " >&6; }
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17706 $as_echo "$gl_threads_api" >&6; }
17718 if test "$gl_threads_api" = posix; then
17719 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
17720 # pthread_rwlock_* functions.
17721 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17723 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17725 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
17729 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17733 #include <pthread.h>
17738 #if __FreeBSD__ == 4
17739 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
17740 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
17741 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
17742 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
17744 int x = (int)PTHREAD_MUTEX_RECURSIVE;
17752 if ac_fn_c_try_compile "$LINENO"; then :
17754 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 acl_save_prefix="$prefix"
17775 prefix="$acl_final_prefix"
17776 acl_save_exec_prefix="$exec_prefix"
17777 exec_prefix="$acl_final_exec_prefix"
17779 eval additional_includedir=\"$includedir\"
17780 eval additional_libdir=\"$libdir\"
17782 exec_prefix="$acl_save_exec_prefix"
17783 prefix="$acl_save_prefix"
17786 # Check whether --with-libiconv-prefix was given.
17787 if test "${with_libiconv_prefix+set}" = set; then :
17788 withval=$with_libiconv_prefix;
17789 if test "X$withval" = "Xno"; then
17792 if test "X$withval" = "X"; then
17794 acl_save_prefix="$prefix"
17795 prefix="$acl_final_prefix"
17796 acl_save_exec_prefix="$exec_prefix"
17797 exec_prefix="$acl_final_exec_prefix"
17799 eval additional_includedir=\"$includedir\"
17800 eval additional_libdir=\"$libdir\"
17802 exec_prefix="$acl_save_exec_prefix"
17803 prefix="$acl_save_prefix"
17806 additional_includedir="$withval/include"
17807 additional_libdir="$withval/$acl_libdirstem"
17808 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17809 && ! test -d "$withval/$acl_libdirstem"; then
17810 additional_libdir="$withval/$acl_libdirstem2"
17824 names_already_handled=
17825 names_next_round='iconv '
17826 while test -n "$names_next_round"; do
17827 names_this_round="$names_next_round"
17829 for name in $names_this_round; do
17831 for n in $names_already_handled; do
17832 if test "$n" = "$name"; then
17833 already_handled=yes
17837 if test -z "$already_handled"; then
17838 names_already_handled="$names_already_handled $name"
17839 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17840 eval value=\"\$HAVE_LIB$uppername\"
17841 if test -n "$value"; then
17842 if test "$value" = yes; then
17843 eval value=\"\$LIB$uppername\"
17844 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17845 eval value=\"\$LTLIB$uppername\"
17846 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17855 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17856 if test -n "$acl_shlibext"; then
17857 shrext=".$acl_shlibext" # typically: shrext=.so
17861 if test $use_additional = yes; then
17862 dir="$additional_libdir"
17863 if test -n "$acl_shlibext"; then
17864 if test -f "$dir/$libname$shrext"; then
17866 found_so="$dir/$libname$shrext"
17868 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17869 ver=`(cd "$dir" && \
17870 for f in "$libname$shrext".*; do echo "$f"; done \
17871 | sed -e "s,^$libname$shrext\\\\.,," \
17872 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17873 | sed 1q ) 2>/dev/null`
17874 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17876 found_so="$dir/$libname$shrext.$ver"
17879 eval library_names=\"$acl_library_names_spec\"
17880 for f in $library_names; do
17881 if test -f "$dir/$f"; then
17890 if test "X$found_dir" = "X"; then
17891 if test -f "$dir/$libname.$acl_libext"; then
17893 found_a="$dir/$libname.$acl_libext"
17896 if test "X$found_dir" != "X"; then
17897 if test -f "$dir/$libname.la"; then
17898 found_la="$dir/$libname.la"
17902 if test "X$found_dir" = "X"; then
17903 for x in $LDFLAGS $LTLIBICONV; do
17905 acl_save_prefix="$prefix"
17906 prefix="$acl_final_prefix"
17907 acl_save_exec_prefix="$exec_prefix"
17908 exec_prefix="$acl_final_exec_prefix"
17910 exec_prefix="$acl_save_exec_prefix"
17911 prefix="$acl_save_prefix"
17915 dir=`echo "X$x" | sed -e 's/^X-L//'`
17916 if test -n "$acl_shlibext"; then
17917 if test -f "$dir/$libname$shrext"; then
17919 found_so="$dir/$libname$shrext"
17921 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17922 ver=`(cd "$dir" && \
17923 for f in "$libname$shrext".*; do echo "$f"; done \
17924 | sed -e "s,^$libname$shrext\\\\.,," \
17925 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17926 | sed 1q ) 2>/dev/null`
17927 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17929 found_so="$dir/$libname$shrext.$ver"
17932 eval library_names=\"$acl_library_names_spec\"
17933 for f in $library_names; do
17934 if test -f "$dir/$f"; then
17943 if test "X$found_dir" = "X"; then
17944 if test -f "$dir/$libname.$acl_libext"; then
17946 found_a="$dir/$libname.$acl_libext"
17949 if test "X$found_dir" != "X"; then
17950 if test -f "$dir/$libname.la"; then
17951 found_la="$dir/$libname.la"
17956 if test "X$found_dir" != "X"; then
17961 if test "X$found_dir" != "X"; then
17962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17963 if test "X$found_so" != "X"; then
17964 if test "$enable_rpath" = no \
17965 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17966 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17967 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17970 for x in $ltrpathdirs; do
17971 if test "X$x" = "X$found_dir"; then
17976 if test -z "$haveit"; then
17977 ltrpathdirs="$ltrpathdirs $found_dir"
17979 if test "$acl_hardcode_direct" = yes; then
17980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17982 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17985 for x in $rpathdirs; do
17986 if test "X$x" = "X$found_dir"; then
17991 if test -z "$haveit"; then
17992 rpathdirs="$rpathdirs $found_dir"
17996 for x in $LDFLAGS $LIBICONV; do
17998 acl_save_prefix="$prefix"
17999 prefix="$acl_final_prefix"
18000 acl_save_exec_prefix="$exec_prefix"
18001 exec_prefix="$acl_final_exec_prefix"
18003 exec_prefix="$acl_save_exec_prefix"
18004 prefix="$acl_save_prefix"
18006 if test "X$x" = "X-L$found_dir"; then
18011 if test -z "$haveit"; then
18012 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18014 if test "$acl_hardcode_minus_L" != no; then
18015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18017 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18023 if test "X$found_a" != "X"; then
18024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18026 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18029 additional_includedir=
18030 case "$found_dir" in
18031 */$acl_libdirstem | */$acl_libdirstem/)
18032 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18033 if test "$name" = 'iconv'; then
18034 LIBICONV_PREFIX="$basedir"
18036 additional_includedir="$basedir/include"
18038 */$acl_libdirstem2 | */$acl_libdirstem2/)
18039 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18040 if test "$name" = 'iconv'; then
18041 LIBICONV_PREFIX="$basedir"
18043 additional_includedir="$basedir/include"
18046 if test "X$additional_includedir" != "X"; then
18047 if test "X$additional_includedir" != "X/usr/include"; then
18049 if test "X$additional_includedir" = "X/usr/local/include"; then
18050 if test -n "$GCC"; then
18052 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18056 if test -z "$haveit"; then
18057 for x in $CPPFLAGS $INCICONV; do
18059 acl_save_prefix="$prefix"
18060 prefix="$acl_final_prefix"
18061 acl_save_exec_prefix="$exec_prefix"
18062 exec_prefix="$acl_final_exec_prefix"
18064 exec_prefix="$acl_save_exec_prefix"
18065 prefix="$acl_save_prefix"
18067 if test "X$x" = "X-I$additional_includedir"; then
18072 if test -z "$haveit"; then
18073 if test -d "$additional_includedir"; then
18074 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18080 if test -n "$found_la"; then
18081 save_libdir="$libdir"
18082 case "$found_la" in
18083 */* | *\\*) . "$found_la" ;;
18084 *) . "./$found_la" ;;
18086 libdir="$save_libdir"
18087 for dep in $dependency_libs; do
18090 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18091 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18092 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18094 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18095 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18096 if test -n "$GCC"; then
18098 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18102 if test -z "$haveit"; then
18104 for x in $LDFLAGS $LIBICONV; do
18106 acl_save_prefix="$prefix"
18107 prefix="$acl_final_prefix"
18108 acl_save_exec_prefix="$exec_prefix"
18109 exec_prefix="$acl_final_exec_prefix"
18111 exec_prefix="$acl_save_exec_prefix"
18112 prefix="$acl_save_prefix"
18114 if test "X$x" = "X-L$additional_libdir"; then
18119 if test -z "$haveit"; then
18120 if test -d "$additional_libdir"; then
18121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18125 for x in $LDFLAGS $LTLIBICONV; do
18127 acl_save_prefix="$prefix"
18128 prefix="$acl_final_prefix"
18129 acl_save_exec_prefix="$exec_prefix"
18130 exec_prefix="$acl_final_exec_prefix"
18132 exec_prefix="$acl_save_exec_prefix"
18133 prefix="$acl_save_prefix"
18135 if test "X$x" = "X-L$additional_libdir"; then
18140 if test -z "$haveit"; then
18141 if test -d "$additional_libdir"; then
18142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18149 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18150 if test "$enable_rpath" != no; then
18152 for x in $rpathdirs; do
18153 if test "X$x" = "X$dir"; then
18158 if test -z "$haveit"; then
18159 rpathdirs="$rpathdirs $dir"
18162 for x in $ltrpathdirs; do
18163 if test "X$x" = "X$dir"; then
18168 if test -z "$haveit"; then
18169 ltrpathdirs="$ltrpathdirs $dir"
18174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18177 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18180 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18181 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18187 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18194 if test "X$rpathdirs" != "X"; then
18195 if test -n "$acl_hardcode_libdir_separator"; then
18197 for found_dir in $rpathdirs; do
18198 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18200 acl_save_libdir="$libdir"
18202 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18203 libdir="$acl_save_libdir"
18204 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18206 for found_dir in $rpathdirs; do
18207 acl_save_libdir="$libdir"
18208 libdir="$found_dir"
18209 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18210 libdir="$acl_save_libdir"
18211 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18215 if test "X$ltrpathdirs" != "X"; then
18216 for found_dir in $ltrpathdirs; do
18217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18231 REPLACE_ICONV_OPEN=0;
18232 REPLACE_ICONV_UTF=0;
18234 if test -n "$ICONV_H"; then
18235 GL_GENERATE_ICONV_H_TRUE=
18236 GL_GENERATE_ICONV_H_FALSE='#'
18238 GL_GENERATE_ICONV_H_TRUE='#'
18239 GL_GENERATE_ICONV_H_FALSE=
18248 am_save_CPPFLAGS="$CPPFLAGS"
18250 for element in $INCICONV; do
18252 for x in $CPPFLAGS; do
18254 acl_save_prefix="$prefix"
18255 prefix="$acl_final_prefix"
18256 acl_save_exec_prefix="$exec_prefix"
18257 exec_prefix="$acl_final_exec_prefix"
18259 exec_prefix="$acl_save_exec_prefix"
18260 prefix="$acl_save_prefix"
18262 if test "X$x" = "X$element"; then
18267 if test -z "$haveit"; then
18268 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18274 $as_echo_n "checking for iconv... " >&6; }
18275 if ${am_cv_func_iconv+:} false; then :
18276 $as_echo_n "(cached) " >&6
18279 am_cv_func_iconv="no, consider installing GNU libiconv"
18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282 /* end confdefs.h. */
18284 #include <stdlib.h>
18290 iconv_t cd = iconv_open("","");
18291 iconv(cd,NULL,NULL,NULL,NULL);
18297 if ac_fn_c_try_link "$LINENO"; then :
18298 am_cv_func_iconv=yes
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 if test "$am_cv_func_iconv" != yes; then
18303 am_save_LIBS="$LIBS"
18304 LIBS="$LIBS $LIBICONV"
18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18308 #include <stdlib.h>
18314 iconv_t cd = iconv_open("","");
18315 iconv(cd,NULL,NULL,NULL,NULL);
18321 if ac_fn_c_try_link "$LINENO"; then :
18322 am_cv_lib_iconv=yes
18323 am_cv_func_iconv=yes
18325 rm -f core conftest.err conftest.$ac_objext \
18326 conftest$ac_exeext conftest.$ac_ext
18327 LIBS="$am_save_LIBS"
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18332 $as_echo "$am_cv_func_iconv" >&6; }
18333 if test "$am_cv_func_iconv" = yes; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18335 $as_echo_n "checking for working iconv... " >&6; }
18336 if ${am_cv_func_iconv_works+:} false; then :
18337 $as_echo_n "(cached) " >&6
18340 am_save_LIBS="$LIBS"
18341 if test $am_cv_lib_iconv = yes; then
18342 LIBS="$LIBS $LIBICONV"
18344 am_cv_func_iconv_works=no
18345 for ac_iconv_const in '' 'const'; do
18346 if test "$cross_compiling" = yes; then :
18348 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18349 *) am_cv_func_iconv_works="guessing yes" ;;
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18356 #include <string.h>
18358 #ifndef ICONV_CONST
18359 # define ICONV_CONST $ac_iconv_const
18366 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18369 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18370 if (cd_utf8_to_88591 != (iconv_t)(-1))
18372 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18374 ICONV_CONST char *inptr = input;
18375 size_t inbytesleft = strlen (input);
18376 char *outptr = buf;
18377 size_t outbytesleft = sizeof (buf);
18378 size_t res = iconv (cd_utf8_to_88591,
18379 &inptr, &inbytesleft,
18380 &outptr, &outbytesleft);
18383 iconv_close (cd_utf8_to_88591);
18386 /* Test against Solaris 10 bug: Failures are not distinguishable from
18387 successful returns. */
18389 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18390 if (cd_ascii_to_88591 != (iconv_t)(-1))
18392 static ICONV_CONST char input[] = "\263";
18394 ICONV_CONST char *inptr = input;
18395 size_t inbytesleft = strlen (input);
18396 char *outptr = buf;
18397 size_t outbytesleft = sizeof (buf);
18398 size_t res = iconv (cd_ascii_to_88591,
18399 &inptr, &inbytesleft,
18400 &outptr, &outbytesleft);
18403 iconv_close (cd_ascii_to_88591);
18406 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
18408 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18409 if (cd_88591_to_utf8 != (iconv_t)(-1))
18411 static ICONV_CONST char input[] = "\304";
18412 static char buf[2] = { (char)0xDE, (char)0xAD };
18413 ICONV_CONST char *inptr = input;
18414 size_t inbytesleft = 1;
18415 char *outptr = buf;
18416 size_t outbytesleft = 1;
18417 size_t res = iconv (cd_88591_to_utf8,
18418 &inptr, &inbytesleft,
18419 &outptr, &outbytesleft);
18420 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18422 iconv_close (cd_88591_to_utf8);
18425 #if 0 /* This bug could be worked around by the caller. */
18426 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18428 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18429 if (cd_88591_to_utf8 != (iconv_t)(-1))
18431 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18433 ICONV_CONST char *inptr = input;
18434 size_t inbytesleft = strlen (input);
18435 char *outptr = buf;
18436 size_t outbytesleft = sizeof (buf);
18437 size_t res = iconv (cd_88591_to_utf8,
18438 &inptr, &inbytesleft,
18439 &outptr, &outbytesleft);
18442 iconv_close (cd_88591_to_utf8);
18446 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18448 if (/* Try standardized names. */
18449 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18450 /* Try IRIX, OSF/1 names. */
18451 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18452 /* Try AIX names. */
18453 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18454 /* Try HP-UX names. */
18455 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18463 if ac_fn_c_try_run "$LINENO"; then :
18464 am_cv_func_iconv_works=yes
18466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18467 conftest.$ac_objext conftest.beam conftest.$ac_ext
18470 test "$am_cv_func_iconv_works" = no || break
18472 LIBS="$am_save_LIBS"
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18476 $as_echo "$am_cv_func_iconv_works" >&6; }
18477 case "$am_cv_func_iconv_works" in
18478 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18479 *) am_func_iconv=yes ;;
18482 am_func_iconv=no am_cv_lib_iconv=no
18484 if test "$am_func_iconv" = yes; then
18486 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18489 if test "$am_cv_lib_iconv" = yes; then
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18491 $as_echo_n "checking how to link with libiconv... " >&6; }
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18493 $as_echo "$LIBICONV" >&6; }
18495 CPPFLAGS="$am_save_CPPFLAGS"
18502 if test "$am_cv_func_iconv" = yes; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18504 $as_echo_n "checking for iconv declaration... " >&6; }
18505 if ${am_cv_proto_iconv+:} false; then :
18506 $as_echo_n "(cached) " >&6
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18512 #include <stdlib.h>
18518 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
18519 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18532 if ac_fn_c_try_compile "$LINENO"; then :
18533 am_cv_proto_iconv_arg1=""
18535 am_cv_proto_iconv_arg1="const"
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538 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);"
18541 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18543 $am_cv_proto_iconv" >&5
18545 $am_cv_proto_iconv" >&6; }
18547 cat >>confdefs.h <<_ACEOF
18548 #define ICONV_CONST $am_cv_proto_iconv_arg1
18552 if test -n "$am_cv_proto_iconv_arg1"; then
18553 ICONV_CONST="const"
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
18572 if ac_fn_c_try_link "$LINENO"; then :
18574 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18577 rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18580 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
18582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18585 cat >>confdefs.h <<_ACEOF
18586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18593 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
18594 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
18595 argz_stringify argz_next __fsetlocking
18597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18600 cat >>confdefs.h <<_ACEOF
18601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18608 if test $ac_cv_func_uselocale = yes; then
18609 for ac_func in getlocalename_l
18611 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
18612 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
18613 cat >>confdefs.h <<_ACEOF
18614 #define HAVE_GETLOCALENAME_L 1
18622 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
18624 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
18630 cat >>confdefs.h <<_ACEOF
18631 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
18633 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
18635 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
18648 for ac_prog in bison
18650 # Extract the first word of "$ac_prog", so it can be a program name with args.
18651 set dummy $ac_prog; ac_word=$2
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18653 $as_echo_n "checking for $ac_word... " >&6; }
18654 if ${ac_cv_prog_INTLBISON+:} false; then :
18655 $as_echo_n "(cached) " >&6
18657 if test -n "$INTLBISON"; then
18658 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
18660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661 for as_dir in $PATH
18664 test -z "$as_dir" && as_dir=.
18665 for ac_exec_ext in '' $ac_executable_extensions; do
18666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18667 ac_cv_prog_INTLBISON="$ac_prog"
18668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18677 INTLBISON=$ac_cv_prog_INTLBISON
18678 if test -n "$INTLBISON"; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
18680 $as_echo "$INTLBISON" >&6; }
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683 $as_echo "no" >&6; }
18687 test -n "$INTLBISON" && break
18690 if test -z "$INTLBISON"; then
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
18694 $as_echo_n "checking version of bison... " >&6; }
18695 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
18696 case $ac_prog_version in
18697 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
18698 2.[7-9]* | [3-9].*)
18699 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
18700 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
18703 $as_echo "$ac_prog_version" >&6; }
18705 if test $ac_verc_fail = yes; then
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18712 $as_echo_n "checking for long long int... " >&6; }
18713 if ${ac_cv_type_long_long_int+:} false; then :
18714 $as_echo_n "(cached) " >&6
18716 ac_cv_type_long_long_int=yes
18717 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18718 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18719 if test $ac_cv_type_long_long_int = yes; then
18720 if test "$cross_compiling" = yes; then :
18723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18724 /* end confdefs.h. */
18725 #include <limits.h>
18728 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18729 # define LLONG_MAX (HALF - 1 + HALF)
18734 long long int n = 1;
18738 long long int m = n << i;
18741 if (LLONG_MAX / 2 < m)
18749 if ac_fn_c_try_run "$LINENO"; then :
18752 ac_cv_type_long_long_int=no
18754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18755 conftest.$ac_objext conftest.beam conftest.$ac_ext
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18762 $as_echo "$ac_cv_type_long_long_int" >&6; }
18763 if test $ac_cv_type_long_long_int = yes; then
18765 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18771 $as_echo_n "checking for wchar_t... " >&6; }
18772 if ${gt_cv_c_wchar_t+:} false; then :
18773 $as_echo_n "(cached) " >&6
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18777 #include <stddef.h>
18778 wchar_t foo = (wchar_t)'\0';
18787 if ac_fn_c_try_compile "$LINENO"; then :
18788 gt_cv_c_wchar_t=yes
18792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18795 $as_echo "$gt_cv_c_wchar_t" >&6; }
18796 if test $gt_cv_c_wchar_t = yes; then
18798 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18804 $as_echo_n "checking for wint_t... " >&6; }
18805 if ${gt_cv_c_wint_t+:} false; then :
18806 $as_echo_n "(cached) " >&6
18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h. */
18811 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18813 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18814 before <wchar.h>. */
18815 #include <stddef.h>
18819 wint_t foo = (wchar_t)'\0';
18828 if ac_fn_c_try_compile "$LINENO"; then :
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18836 $as_echo "$gt_cv_c_wint_t" >&6; }
18837 if test $gt_cv_c_wint_t = yes; then
18839 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18847 $as_echo_n "checking for intmax_t... " >&6; }
18848 if ${gt_cv_c_intmax_t+:} false; then :
18849 $as_echo_n "(cached) " >&6
18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h. */
18854 #include <stddef.h>
18855 #include <stdlib.h>
18856 #if HAVE_STDINT_H_WITH_UINTMAX
18857 #include <stdint.h>
18859 #if HAVE_INTTYPES_H_WITH_UINTMAX
18860 #include <inttypes.h>
18872 if ac_fn_c_try_compile "$LINENO"; then :
18873 gt_cv_c_intmax_t=yes
18875 gt_cv_c_intmax_t=no
18877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18880 $as_echo "$gt_cv_c_intmax_t" >&6; }
18881 if test $gt_cv_c_intmax_t = yes; then
18883 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18890 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18891 if ${gt_cv_func_printf_posix+:} false; then :
18892 $as_echo_n "(cached) " >&6
18895 if test "$cross_compiling" = yes; then :
18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898 /* end confdefs.h. */
18900 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18906 $EGREP "notposix" >/dev/null 2>&1; then :
18907 gt_cv_func_printf_posix="guessing no"
18909 gt_cv_func_printf_posix="guessing yes"
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18919 #include <string.h>
18920 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18921 dollar expansion (possibly an autoconf bug). */
18922 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18923 static char buf[100];
18926 sprintf (buf, format, 33, 55);
18927 return (strcmp (buf, "55 33") != 0);
18930 if ac_fn_c_try_run "$LINENO"; then :
18931 gt_cv_func_printf_posix=yes
18933 gt_cv_func_printf_posix=no
18935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18936 conftest.$ac_objext conftest.beam conftest.$ac_ext
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18942 $as_echo "$gt_cv_func_printf_posix" >&6; }
18943 case $gt_cv_func_printf_posix in
18946 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
18953 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
18954 if ${ac_cv_gnu_library_2_1+:} false; then :
18955 $as_echo_n "(cached) " >&6
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18960 #include <features.h>
18961 #ifdef __GNU_LIBRARY__
18962 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18972 $EGREP "Lucky" >/dev/null 2>&1; then :
18973 ac_cv_gnu_library_2_1=yes
18975 ac_cv_gnu_library_2_1=no
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18983 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18985 GLIBC21="$ac_cv_gnu_library_2_1"
18989 for ac_header in stdint.h
18991 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18992 if test "x$ac_cv_header_stdint_h" = xyes; then :
18993 cat >>confdefs.h <<_ACEOF
18994 #define HAVE_STDINT_H 1
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19002 $as_echo_n "checking for SIZE_MAX... " >&6; }
19003 if ${gl_cv_size_max+:} false; then :
19004 $as_echo_n "(cached) " >&6
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 #include <limits.h>
19013 #include <stdint.h>
19020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19021 $EGREP "Found it" >/dev/null 2>&1; then :
19026 if test -z "$gl_cv_size_max"; then
19027 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
19028 #include <limits.h>"; then :
19031 size_t_bits_minus_1=
19034 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19040 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
19041 if test $fits_in_uint = 1; then
19042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h. */
19044 #include <stddef.h>
19046 extern unsigned long foo;
19056 if ac_fn_c_try_compile "$LINENO"; then :
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 if test $fits_in_uint = 1; then
19062 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
19064 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
19067 gl_cv_size_max='((size_t)~(size_t)0)'
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
19073 $as_echo "$gl_cv_size_max" >&6; }
19074 if test "$gl_cv_size_max" != yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define SIZE_MAX $gl_cv_size_max
19085 for ac_header in stdint.h
19087 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19088 if test "x$ac_cv_header_stdint_h" = xyes; then :
19089 cat >>confdefs.h <<_ACEOF
19090 #define HAVE_STDINT_H 1
19101 for ac_func in $ac_func_list
19103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19104 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19105 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19106 cat >>confdefs.h <<_ACEOF
19107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
19121 $as_echo_n "checking for working fcntl.h... " >&6; }
19122 if ${gl_cv_header_working_fcntl_h+:} false; then :
19123 $as_echo_n "(cached) " >&6
19125 if test "$cross_compiling" = yes; then :
19126 gl_cv_header_working_fcntl_h=cross-compiling
19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19130 #include <sys/types.h>
19131 #include <sys/stat.h>
19133 # include <unistd.h>
19134 #else /* on Windows with MSVC */
19136 # include <stdlib.h>
19137 # defined sleep(n) _sleep ((n) * 1000)
19141 #define O_NOATIME 0
19144 #define O_NOFOLLOW 0
19146 static int const constants[] =
19148 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
19149 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
19156 int result = !constants;
19159 static char const sym[] = "conftest.sym";
19160 if (symlink ("/dev/null", sym) != 0)
19164 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
19171 if (unlink (sym) != 0 || symlink (".", sym) != 0)
19175 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
19186 static char const file[] = "confdefs.h";
19187 int fd = open (file, O_RDONLY | O_NOATIME);
19193 if (fstat (fd, &st0) != 0)
19199 if (read (fd, &c, 1) != 1)
19203 if (close (fd) != 0)
19208 if (stat (file, &st1) != 0)
19211 if (st0.st_atime != st1.st_atime)
19223 if ac_fn_c_try_run "$LINENO"; then :
19224 gl_cv_header_working_fcntl_h=yes
19227 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19228 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19229 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19230 *) gl_cv_header_working_fcntl_h='no';;
19233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19234 conftest.$ac_objext conftest.beam conftest.$ac_ext
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
19239 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
19241 case $gl_cv_header_working_fcntl_h in #(
19242 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19246 cat >>confdefs.h <<_ACEOF
19247 #define HAVE_WORKING_O_NOATIME $ac_val
19251 case $gl_cv_header_working_fcntl_h in #(
19252 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19256 cat >>confdefs.h <<_ACEOF
19257 #define HAVE_WORKING_O_NOFOLLOW $ac_val
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19263 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19264 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19265 $as_echo_n "(cached) " >&6
19267 gt_save_LIBS="$LIBS"
19268 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h. */
19271 #include <CoreFoundation/CFPreferences.h>
19275 CFPreferencesCopyAppValue(NULL, NULL)
19280 if ac_fn_c_try_link "$LINENO"; then :
19281 gt_cv_func_CFPreferencesCopyAppValue=yes
19283 gt_cv_func_CFPreferencesCopyAppValue=no
19285 rm -f core conftest.err conftest.$ac_objext \
19286 conftest$ac_exeext conftest.$ac_ext
19287 LIBS="$gt_save_LIBS"
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19290 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19291 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19293 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19297 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19298 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19299 $as_echo_n "(cached) " >&6
19301 gt_save_LIBS="$LIBS"
19302 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19305 #include <CoreFoundation/CFLocale.h>
19309 CFLocaleCopyCurrent();
19314 if ac_fn_c_try_link "$LINENO"; then :
19315 gt_cv_func_CFLocaleCopyCurrent=yes
19317 gt_cv_func_CFLocaleCopyCurrent=no
19319 rm -f core conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
19321 LIBS="$gt_save_LIBS"
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19324 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19325 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19327 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19331 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19332 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19346 case "$enable_silent_rules" in
19347 yes) INTL_DEFAULT_VERBOSITY=0;;
19348 no) INTL_DEFAULT_VERBOSITY=1;;
19349 *) INTL_DEFAULT_VERBOSITY=1;;
19353 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19354 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19358 $as_echo "#define ptrdiff_t long" >>confdefs.h
19363 for ac_header in features.h stddef.h stdlib.h string.h
19365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19366 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19368 cat >>confdefs.h <<_ACEOF
19369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19376 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
19377 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
19379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19380 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19381 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19382 cat >>confdefs.h <<_ACEOF
19383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19390 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
19392 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
19398 cat >>confdefs.h <<_ACEOF
19399 #define HAVE_DECL__SNPRINTF $ac_have_decl
19401 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
19403 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
19409 cat >>confdefs.h <<_ACEOF
19410 #define HAVE_DECL__SNWPRINTF $ac_have_decl
19414 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
19416 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
19427 case $gt_cv_func_printf_posix in
19428 *yes) HAVE_POSIX_PRINTF=1 ;;
19429 *) HAVE_POSIX_PRINTF=0 ;;
19432 if test "$ac_cv_func_asprintf" = yes; then
19438 if test "$ac_cv_func_snprintf" = yes; then
19444 if test "$ac_cv_func_newlocale" = yes; then
19450 if test "$ac_cv_func_wprintf" = yes; then
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19459 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19460 if ${am_cv_langinfo_codeset+:} false; then :
19461 $as_echo_n "(cached) " >&6
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19465 #include <langinfo.h>
19469 char* cs = nl_langinfo(CODESET); return !cs;
19474 if ac_fn_c_try_link "$LINENO"; then :
19475 am_cv_langinfo_codeset=yes
19477 am_cv_langinfo_codeset=no
19479 rm -f core conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19484 $as_echo "$am_cv_langinfo_codeset" >&6; }
19485 if test $am_cv_langinfo_codeset = yes; then
19487 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19493 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19494 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19495 $as_echo_n "(cached) " >&6
19497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19499 #include <locale.h>
19508 if ac_fn_c_try_link "$LINENO"; then :
19509 gt_cv_val_LC_MESSAGES=yes
19511 gt_cv_val_LC_MESSAGES=no
19513 rm -f core conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext conftest.$ac_ext
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19517 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19518 if test $gt_cv_val_LC_MESSAGES = yes; then
19520 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19525 if test "$enable_shared" = yes; then
19527 mingw* | cygwin*) is_woe32dll=yes ;;
19528 *) is_woe32dll=no ;;
19533 WOE32DLL=$is_woe32dll
19537 mingw* | cygwin*) is_woe32=yes ;;
19542 if test $WOE32 = yes; then
19543 if test -n "$ac_tool_prefix"; then
19544 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19545 set dummy ${ac_tool_prefix}windres; ac_word=$2
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if ${ac_cv_prog_WINDRES+:} false; then :
19549 $as_echo_n "(cached) " >&6
19551 if test -n "$WINDRES"; then
19552 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19558 test -z "$as_dir" && as_dir=.
19559 for ac_exec_ext in '' $ac_executable_extensions; do
19560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19561 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19571 WINDRES=$ac_cv_prog_WINDRES
19572 if test -n "$WINDRES"; then
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19574 $as_echo "$WINDRES" >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 $as_echo "no" >&6; }
19582 if test -z "$ac_cv_prog_WINDRES"; then
19583 ac_ct_WINDRES=$WINDRES
19584 # Extract the first word of "windres", so it can be a program name with args.
19585 set dummy windres; ac_word=$2
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19587 $as_echo_n "checking for $ac_word... " >&6; }
19588 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19589 $as_echo_n "(cached) " >&6
19591 if test -n "$ac_ct_WINDRES"; then
19592 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19595 for as_dir in $PATH
19598 test -z "$as_dir" && as_dir=.
19599 for ac_exec_ext in '' $ac_executable_extensions; do
19600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19601 ac_cv_prog_ac_ct_WINDRES="windres"
19602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19611 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19612 if test -n "$ac_ct_WINDRES"; then
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19614 $as_echo "$ac_ct_WINDRES" >&6; }
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617 $as_echo "no" >&6; }
19620 if test "x$ac_ct_WINDRES" = x; then
19623 case $cross_compiling:$ac_tool_warned in
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19627 ac_tool_warned=yes ;;
19629 WINDRES=$ac_ct_WINDRES
19632 WINDRES="$ac_cv_prog_WINDRES"
19638 hpux*) LTLIBC="" ;;
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19669 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19670 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19671 $as_echo_n "(cached) " >&6
19673 gt_save_LIBS="$LIBS"
19674 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19676 /* end confdefs.h. */
19677 #include <CoreFoundation/CFPreferences.h>
19681 CFPreferencesCopyAppValue(NULL, NULL)
19686 if ac_fn_c_try_link "$LINENO"; then :
19687 gt_cv_func_CFPreferencesCopyAppValue=yes
19689 gt_cv_func_CFPreferencesCopyAppValue=no
19691 rm -f core conftest.err conftest.$ac_objext \
19692 conftest$ac_exeext conftest.$ac_ext
19693 LIBS="$gt_save_LIBS"
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19696 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19697 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19699 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19703 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19704 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19705 $as_echo_n "(cached) " >&6
19707 gt_save_LIBS="$LIBS"
19708 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710 /* end confdefs.h. */
19711 #include <CoreFoundation/CFLocale.h>
19715 CFLocaleCopyCurrent();
19720 if ac_fn_c_try_link "$LINENO"; then :
19721 gt_cv_func_CFLocaleCopyCurrent=yes
19723 gt_cv_func_CFLocaleCopyCurrent=no
19725 rm -f core conftest.err conftest.$ac_objext \
19726 conftest$ac_exeext conftest.$ac_ext
19727 LIBS="$gt_save_LIBS"
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19730 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19731 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19733 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19737 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19738 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19746 BUILD_INCLUDED_LIBINTL=no
19747 USE_INCLUDED_LIBINTL=no
19753 case " $gt_needs " in
19754 *" need-formatstring-macros "*) gt_api_version=3 ;;
19755 *" need-ngettext "*) gt_api_version=2 ;;
19756 *) gt_api_version=1 ;;
19758 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19759 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19761 if test "$USE_NLS" = "yes"; then
19762 gt_use_preinstalled_gnugettext=no
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19765 $as_echo_n "checking whether included gettext is requested... " >&6; }
19767 # Check whether --with-included-gettext was given.
19768 if test "${with_included_gettext+set}" = set; then :
19769 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19771 nls_cv_force_use_gnu_gettext=no
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19775 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19777 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19778 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19781 if test $gt_api_version -ge 3; then
19782 gt_revision_test_code='
19783 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19784 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19786 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19789 gt_revision_test_code=
19791 if test $gt_api_version -ge 2; then
19792 gt_expression_test_code=' + * ngettext ("", "", 0)'
19794 gt_expression_test_code=
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19798 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19799 if eval \${$gt_func_gnugettext_libc+:} false; then :
19800 $as_echo_n "(cached) " >&6
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19805 #include <libintl.h>
19806 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19807 extern int _nl_msg_cat_cntr;
19808 extern int *_nl_domain_bindings;
19809 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
19811 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19813 $gt_revision_test_code
19819 bindtextdomain ("", "");
19820 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19826 if ac_fn_c_try_link "$LINENO"; then :
19827 eval "$gt_func_gnugettext_libc=yes"
19829 eval "$gt_func_gnugettext_libc=no"
19831 rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19834 eval ac_res=\$$gt_func_gnugettext_libc
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19836 $as_echo "$ac_res" >&6; }
19838 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19849 acl_save_prefix="$prefix"
19850 prefix="$acl_final_prefix"
19851 acl_save_exec_prefix="$exec_prefix"
19852 exec_prefix="$acl_final_exec_prefix"
19854 eval additional_includedir=\"$includedir\"
19855 eval additional_libdir=\"$libdir\"
19857 exec_prefix="$acl_save_exec_prefix"
19858 prefix="$acl_save_prefix"
19861 # Check whether --with-libintl-prefix was given.
19862 if test "${with_libintl_prefix+set}" = set; then :
19863 withval=$with_libintl_prefix;
19864 if test "X$withval" = "Xno"; then
19867 if test "X$withval" = "X"; then
19869 acl_save_prefix="$prefix"
19870 prefix="$acl_final_prefix"
19871 acl_save_exec_prefix="$exec_prefix"
19872 exec_prefix="$acl_final_exec_prefix"
19874 eval additional_includedir=\"$includedir\"
19875 eval additional_libdir=\"$libdir\"
19877 exec_prefix="$acl_save_exec_prefix"
19878 prefix="$acl_save_prefix"
19881 additional_includedir="$withval/include"
19882 additional_libdir="$withval/$acl_libdirstem"
19883 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19884 && ! test -d "$withval/$acl_libdirstem"; then
19885 additional_libdir="$withval/$acl_libdirstem2"
19899 names_already_handled=
19900 names_next_round='intl '
19901 while test -n "$names_next_round"; do
19902 names_this_round="$names_next_round"
19904 for name in $names_this_round; do
19906 for n in $names_already_handled; do
19907 if test "$n" = "$name"; then
19908 already_handled=yes
19912 if test -z "$already_handled"; then
19913 names_already_handled="$names_already_handled $name"
19914 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19915 eval value=\"\$HAVE_LIB$uppername\"
19916 if test -n "$value"; then
19917 if test "$value" = yes; then
19918 eval value=\"\$LIB$uppername\"
19919 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19920 eval value=\"\$LTLIB$uppername\"
19921 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19930 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19931 if test -n "$acl_shlibext"; then
19932 shrext=".$acl_shlibext" # typically: shrext=.so
19936 if test $use_additional = yes; then
19937 dir="$additional_libdir"
19938 if test -n "$acl_shlibext"; then
19939 if test -f "$dir/$libname$shrext"; then
19941 found_so="$dir/$libname$shrext"
19943 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19944 ver=`(cd "$dir" && \
19945 for f in "$libname$shrext".*; do echo "$f"; done \
19946 | sed -e "s,^$libname$shrext\\\\.,," \
19947 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19948 | sed 1q ) 2>/dev/null`
19949 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19951 found_so="$dir/$libname$shrext.$ver"
19954 eval library_names=\"$acl_library_names_spec\"
19955 for f in $library_names; do
19956 if test -f "$dir/$f"; then
19965 if test "X$found_dir" = "X"; then
19966 if test -f "$dir/$libname.$acl_libext"; then
19968 found_a="$dir/$libname.$acl_libext"
19971 if test "X$found_dir" != "X"; then
19972 if test -f "$dir/$libname.la"; then
19973 found_la="$dir/$libname.la"
19977 if test "X$found_dir" = "X"; then
19978 for x in $LDFLAGS $LTLIBINTL; do
19980 acl_save_prefix="$prefix"
19981 prefix="$acl_final_prefix"
19982 acl_save_exec_prefix="$exec_prefix"
19983 exec_prefix="$acl_final_exec_prefix"
19985 exec_prefix="$acl_save_exec_prefix"
19986 prefix="$acl_save_prefix"
19990 dir=`echo "X$x" | sed -e 's/^X-L//'`
19991 if test -n "$acl_shlibext"; then
19992 if test -f "$dir/$libname$shrext"; then
19994 found_so="$dir/$libname$shrext"
19996 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19997 ver=`(cd "$dir" && \
19998 for f in "$libname$shrext".*; do echo "$f"; done \
19999 | sed -e "s,^$libname$shrext\\\\.,," \
20000 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20001 | sed 1q ) 2>/dev/null`
20002 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20004 found_so="$dir/$libname$shrext.$ver"
20007 eval library_names=\"$acl_library_names_spec\"
20008 for f in $library_names; do
20009 if test -f "$dir/$f"; then
20018 if test "X$found_dir" = "X"; then
20019 if test -f "$dir/$libname.$acl_libext"; then
20021 found_a="$dir/$libname.$acl_libext"
20024 if test "X$found_dir" != "X"; then
20025 if test -f "$dir/$libname.la"; then
20026 found_la="$dir/$libname.la"
20031 if test "X$found_dir" != "X"; then
20036 if test "X$found_dir" != "X"; then
20037 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20038 if test "X$found_so" != "X"; then
20039 if test "$enable_rpath" = no \
20040 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20041 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20045 for x in $ltrpathdirs; do
20046 if test "X$x" = "X$found_dir"; then
20051 if test -z "$haveit"; then
20052 ltrpathdirs="$ltrpathdirs $found_dir"
20054 if test "$acl_hardcode_direct" = yes; then
20055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20057 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20058 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20060 for x in $rpathdirs; do
20061 if test "X$x" = "X$found_dir"; then
20066 if test -z "$haveit"; then
20067 rpathdirs="$rpathdirs $found_dir"
20071 for x in $LDFLAGS $LIBINTL; do
20073 acl_save_prefix="$prefix"
20074 prefix="$acl_final_prefix"
20075 acl_save_exec_prefix="$exec_prefix"
20076 exec_prefix="$acl_final_exec_prefix"
20078 exec_prefix="$acl_save_exec_prefix"
20079 prefix="$acl_save_prefix"
20081 if test "X$x" = "X-L$found_dir"; then
20086 if test -z "$haveit"; then
20087 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20089 if test "$acl_hardcode_minus_L" != no; then
20090 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20092 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20098 if test "X$found_a" != "X"; then
20099 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20101 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20104 additional_includedir=
20105 case "$found_dir" in
20106 */$acl_libdirstem | */$acl_libdirstem/)
20107 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20108 if test "$name" = 'intl'; then
20109 LIBINTL_PREFIX="$basedir"
20111 additional_includedir="$basedir/include"
20113 */$acl_libdirstem2 | */$acl_libdirstem2/)
20114 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20115 if test "$name" = 'intl'; then
20116 LIBINTL_PREFIX="$basedir"
20118 additional_includedir="$basedir/include"
20121 if test "X$additional_includedir" != "X"; then
20122 if test "X$additional_includedir" != "X/usr/include"; then
20124 if test "X$additional_includedir" = "X/usr/local/include"; then
20125 if test -n "$GCC"; then
20127 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20131 if test -z "$haveit"; then
20132 for x in $CPPFLAGS $INCINTL; do
20134 acl_save_prefix="$prefix"
20135 prefix="$acl_final_prefix"
20136 acl_save_exec_prefix="$exec_prefix"
20137 exec_prefix="$acl_final_exec_prefix"
20139 exec_prefix="$acl_save_exec_prefix"
20140 prefix="$acl_save_prefix"
20142 if test "X$x" = "X-I$additional_includedir"; then
20147 if test -z "$haveit"; then
20148 if test -d "$additional_includedir"; then
20149 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20155 if test -n "$found_la"; then
20156 save_libdir="$libdir"
20157 case "$found_la" in
20158 */* | *\\*) . "$found_la" ;;
20159 *) . "./$found_la" ;;
20161 libdir="$save_libdir"
20162 for dep in $dependency_libs; do
20165 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20166 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20167 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20169 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20170 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20171 if test -n "$GCC"; then
20173 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20177 if test -z "$haveit"; then
20179 for x in $LDFLAGS $LIBINTL; do
20181 acl_save_prefix="$prefix"
20182 prefix="$acl_final_prefix"
20183 acl_save_exec_prefix="$exec_prefix"
20184 exec_prefix="$acl_final_exec_prefix"
20186 exec_prefix="$acl_save_exec_prefix"
20187 prefix="$acl_save_prefix"
20189 if test "X$x" = "X-L$additional_libdir"; then
20194 if test -z "$haveit"; then
20195 if test -d "$additional_libdir"; then
20196 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20200 for x in $LDFLAGS $LTLIBINTL; do
20202 acl_save_prefix="$prefix"
20203 prefix="$acl_final_prefix"
20204 acl_save_exec_prefix="$exec_prefix"
20205 exec_prefix="$acl_final_exec_prefix"
20207 exec_prefix="$acl_save_exec_prefix"
20208 prefix="$acl_save_prefix"
20210 if test "X$x" = "X-L$additional_libdir"; then
20215 if test -z "$haveit"; then
20216 if test -d "$additional_libdir"; then
20217 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20224 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20225 if test "$enable_rpath" != no; then
20227 for x in $rpathdirs; do
20228 if test "X$x" = "X$dir"; then
20233 if test -z "$haveit"; then
20234 rpathdirs="$rpathdirs $dir"
20237 for x in $ltrpathdirs; do
20238 if test "X$x" = "X$dir"; then
20243 if test -z "$haveit"; then
20244 ltrpathdirs="$ltrpathdirs $dir"
20249 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20252 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20255 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20256 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20262 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20269 if test "X$rpathdirs" != "X"; then
20270 if test -n "$acl_hardcode_libdir_separator"; then
20272 for found_dir in $rpathdirs; do
20273 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20275 acl_save_libdir="$libdir"
20277 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20278 libdir="$acl_save_libdir"
20279 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20281 for found_dir in $rpathdirs; do
20282 acl_save_libdir="$libdir"
20283 libdir="$found_dir"
20284 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20285 libdir="$acl_save_libdir"
20286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20290 if test "X$ltrpathdirs" != "X"; then
20291 for found_dir in $ltrpathdirs; do
20292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20302 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20303 if eval \${$gt_func_gnugettext_libintl+:} false; then :
20304 $as_echo_n "(cached) " >&6
20306 gt_save_CPPFLAGS="$CPPFLAGS"
20307 CPPFLAGS="$CPPFLAGS $INCINTL"
20308 gt_save_LIBS="$LIBS"
20309 LIBS="$LIBS $LIBINTL"
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h. */
20313 #include <libintl.h>
20314 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20315 extern int _nl_msg_cat_cntr;
20320 const char *_nl_expand_alias (const char *);
20321 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20323 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20325 $gt_revision_test_code
20331 bindtextdomain ("", "");
20332 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20338 if ac_fn_c_try_link "$LINENO"; then :
20339 eval "$gt_func_gnugettext_libintl=yes"
20341 eval "$gt_func_gnugettext_libintl=no"
20343 rm -f core conftest.err conftest.$ac_objext \
20344 conftest$ac_exeext conftest.$ac_ext
20345 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20346 LIBS="$LIBS $LIBICONV"
20347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20348 /* end confdefs.h. */
20350 #include <libintl.h>
20351 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20352 extern int _nl_msg_cat_cntr;
20357 const char *_nl_expand_alias (const char *);
20358 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20360 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20362 $gt_revision_test_code
20368 bindtextdomain ("", "");
20369 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20375 if ac_fn_c_try_link "$LINENO"; then :
20376 LIBINTL="$LIBINTL $LIBICONV"
20377 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20378 eval "$gt_func_gnugettext_libintl=yes"
20381 rm -f core conftest.err conftest.$ac_objext \
20382 conftest$ac_exeext conftest.$ac_ext
20384 CPPFLAGS="$gt_save_CPPFLAGS"
20385 LIBS="$gt_save_LIBS"
20387 eval ac_res=\$$gt_func_gnugettext_libintl
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20392 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20393 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20394 && test "$PACKAGE" != gettext-runtime \
20395 && test "$PACKAGE" != gettext-tools; }; then
20396 gt_use_preinstalled_gnugettext=yes
20404 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20405 nls_cv_use_gnu_gettext=yes
20409 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20410 BUILD_INCLUDED_LIBINTL=yes
20411 USE_INCLUDED_LIBINTL=yes
20412 LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
20413 LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
20414 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20418 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20419 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20424 if test -n "$INTL_MACOSX_LIBS"; then
20425 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20426 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20427 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20428 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20432 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20433 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20435 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20443 $as_echo_n "checking whether to use NLS... " >&6; }
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20445 $as_echo "$USE_NLS" >&6; }
20446 if test "$USE_NLS" = "yes"; then
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20448 $as_echo_n "checking where the gettext function comes from... " >&6; }
20449 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20450 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20451 gt_source="external libintl"
20456 gt_source="included intl directory"
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20459 $as_echo "$gt_source" >&6; }
20462 if test "$USE_NLS" = "yes"; then
20464 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20465 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20467 $as_echo_n "checking how to link with libintl... " >&6; }
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20469 $as_echo "$LIBINTL" >&6; }
20471 for element in $INCINTL; do
20473 for x in $CPPFLAGS; do
20475 acl_save_prefix="$prefix"
20476 prefix="$acl_final_prefix"
20477 acl_save_exec_prefix="$exec_prefix"
20478 exec_prefix="$acl_final_exec_prefix"
20480 exec_prefix="$acl_save_exec_prefix"
20481 prefix="$acl_save_prefix"
20483 if test "X$x" = "X$element"; then
20488 if test -z "$haveit"; then
20489 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20496 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20499 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20507 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20508 BUILD_INCLUDED_LIBINTL=yes
20515 nls_cv_header_intl=
20516 nls_cv_header_libgt=
20528 if test "$USE_INCLUDED_LIBINTL" = yes; then
20529 INTLOBJS="\$(GETTOBJS)"
20533 INTL_LIBTOOL_SUFFIX_PREFIX=l
20537 INTLLIBS="$LIBINTL"
20550 LIBC_FATAL_STDERR_=1
20551 export LIBC_FATAL_STDERR_
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
20557 $as_echo_n "checking whether to use C++... " >&6; }
20558 # Check whether --enable-c++ was given.
20559 if test "${enable_c__+set}" = set; then :
20560 enableval=$enable_c__; CXX_CHOICE="$enableval"
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
20566 $as_echo "$CXX_CHOICE" >&6; }
20572 GNULIB_CALLOC_POSIX=0;
20573 GNULIB_CANONICALIZE_FILE_NAME=0;
20574 GNULIB_GETLOADAVG=0;
20575 GNULIB_GETSUBOPT=0;
20577 GNULIB_MALLOC_POSIX=0;
20581 GNULIB_MKOSTEMPS=0;
20584 GNULIB_POSIX_OPENPT=0;
20586 GNULIB_PTSNAME_R=0;
20591 GNULIB_REALLOC_POSIX=0;
20594 GNULIB_SECURE_GETENV=0;
20599 GNULIB_SYSTEM_POSIX=0;
20605 HAVE_CANONICALIZE_FILE_NAME=1;
20606 HAVE_DECL_GETLOADAVG=1;
20614 HAVE_POSIX_OPENPT=1;
20622 HAVE_SECURE_GETENV=1;
20624 HAVE_DECL_SETENV=1;
20628 HAVE_STRUCT_RANDOM_DATA=1;
20629 HAVE_SYS_LOADAVG_H=0;
20631 HAVE_DECL_UNSETENV=1;
20633 REPLACE_CANONICALIZE_FILE_NAME=0;
20638 REPLACE_PTSNAME_R=0;
20641 REPLACE_RANDOM_R=0;
20643 REPLACE_REALPATH=0;
20646 REPLACE_UNSETENV=0;
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20658 $as_echo_n "checking whether // is distinct from /... " >&6; }
20659 if ${gl_cv_double_slash_root+:} false; then :
20660 $as_echo_n "(cached) " >&6
20662 if test x"$cross_compiling" = xyes ; then
20663 # When cross-compiling, there is no way to tell whether // is special
20664 # short of a list of hosts. However, the only known hosts to date
20665 # that have a distinct // are Apollo DomainOS (too old to port to),
20666 # Cygwin, and z/OS. If anyone knows of another system for which // has
20667 # special semantics and is distinct from /, please report it to
20668 # <bug-gnulib@gnu.org>.
20670 *-cygwin | i370-ibm-openedition)
20671 gl_cv_double_slash_root=yes ;;
20673 # Be optimistic and assume that / and // are the same when we
20675 gl_cv_double_slash_root='unknown, assuming no' ;;
20678 set x `ls -di / // 2>/dev/null`
20679 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20680 gl_cv_double_slash_root=no
20682 gl_cv_double_slash_root=yes
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20687 $as_echo "$gl_cv_double_slash_root" >&6; }
20688 if test "$gl_cv_double_slash_root" = yes; then
20690 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
20699 $as_echo_n "checking whether realpath works... " >&6; }
20700 if ${gl_cv_func_realpath_works+:} false; then :
20701 $as_echo_n "(cached) " >&6
20706 if test "$cross_compiling" = yes; then :
20708 # Guess yes on glibc systems.
20709 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
20710 # If we don't know, assume the worst.
20711 *) gl_cv_func_realpath_works="guessing no" ;;
20715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20720 #include <stdlib.h>
20721 #if defined __MACH__ && defined __APPLE__
20722 /* Avoid a crash on Mac OS X. */
20723 #include <mach/mach.h>
20724 #include <mach/mach_error.h>
20725 #include <mach/thread_status.h>
20726 #include <mach/exception.h>
20727 #include <mach/task.h>
20728 #include <pthread.h>
20729 /* The exception port on which our thread listens. */
20730 static mach_port_t our_exception_port;
20731 /* The main function of the thread listening for exceptions of type
20734 mach_exception_thread (void *arg)
20736 /* Buffer for a message to be received. */
20738 mach_msg_header_t head;
20739 mach_msg_body_t msgh_body;
20742 mach_msg_return_t retval;
20743 /* Wait for a message on the exception port. */
20744 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
20745 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
20746 if (retval != MACH_MSG_SUCCESS)
20751 nocrash_init (void)
20753 mach_port_t self = mach_task_self ();
20754 /* Allocate a port on which the thread shall listen for exceptions. */
20755 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
20757 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
20758 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
20759 MACH_MSG_TYPE_MAKE_SEND)
20761 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
20763 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20764 /* Create the thread listening on the exception port. */
20765 pthread_attr_t attr;
20767 if (pthread_attr_init (&attr) == 0
20768 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20769 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20770 pthread_attr_destroy (&attr);
20771 /* Replace the exception port info for these exceptions with our own.
20772 Note that we replace the exception port for the entire task, not only
20773 for a particular thread. This has the effect that when our exception
20774 port gets the message, the thread specific exception port has already
20775 been asked, and we don't need to bother about it.
20776 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
20777 task_set_exception_ports (self, mask, our_exception_port,
20778 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20783 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20784 /* Avoid a crash on native Windows. */
20785 #define WIN32_LEAN_AND_MEAN
20786 #include <windows.h>
20787 #include <winerror.h>
20789 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
20791 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
20793 case EXCEPTION_ACCESS_VIOLATION:
20794 case EXCEPTION_IN_PAGE_ERROR:
20795 case EXCEPTION_STACK_OVERFLOW:
20796 case EXCEPTION_GUARD_PAGE:
20797 case EXCEPTION_PRIV_INSTRUCTION:
20798 case EXCEPTION_ILLEGAL_INSTRUCTION:
20799 case EXCEPTION_DATATYPE_MISALIGNMENT:
20800 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
20801 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
20804 return EXCEPTION_CONTINUE_SEARCH;
20807 nocrash_init (void)
20809 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
20812 /* Avoid a crash on POSIX systems. */
20813 #include <signal.h>
20814 #include <unistd.h>
20815 /* A POSIX signal handler. */
20817 exception_handler (int sig)
20822 nocrash_init (void)
20825 signal (SIGSEGV, exception_handler);
20828 signal (SIGBUS, exception_handler);
20833 #include <stdlib.h>
20834 #include <string.h>
20842 char *name = realpath ("conftest.a", NULL);
20843 if (!(name && *name == '/'))
20848 char *name = realpath ("conftest.b/../conftest.a", NULL);
20854 char *name = realpath ("conftest.a/", NULL);
20860 char *name1 = realpath (".", NULL);
20861 char *name2 = realpath ("conftest.d//./..", NULL);
20862 if (! (name1 && name2 && strcmp (name1, name2) != 0))
20874 if ac_fn_c_try_run "$LINENO"; then :
20875 gl_cv_func_realpath_works=yes
20877 gl_cv_func_realpath_works=no
20879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20880 conftest.$ac_objext conftest.beam conftest.$ac_ext
20883 rm -rf conftest.a conftest.d
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
20887 $as_echo "$gl_cv_func_realpath_works" >&6; }
20888 case "$gl_cv_func_realpath_works" in
20891 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
20913 GNULIB_EUIDACCESS=0;
20914 GNULIB_FACCESSAT=0;
20917 GNULIB_FDATASYNC=0;
20919 GNULIB_FTRUNCATE=0;
20921 GNULIB_GETDOMAINNAME=0;
20922 GNULIB_GETDTABLESIZE=0;
20923 GNULIB_GETGROUPS=0;
20924 GNULIB_GETHOSTNAME=0;
20926 GNULIB_GETLOGIN_R=0;
20927 GNULIB_GETPAGESIZE=0;
20928 GNULIB_GETUSERSHELL=0;
20929 GNULIB_GROUP_MEMBER=0;
20941 GNULIB_READLINKAT=0;
20943 GNULIB_SETHOSTNAME=0;
20946 GNULIB_SYMLINKAT=0;
20947 GNULIB_TTYNAME_R=0;
20948 GNULIB_UNISTD_H_NONBLOCKING=0;
20949 GNULIB_UNISTD_H_SIGPIPE=0;
20964 HAVE_GETDTABLESIZE=1;
20966 HAVE_GETHOSTNAME=1;
20968 HAVE_GETPAGESIZE=1;
20969 HAVE_GROUP_MEMBER=1;
20979 HAVE_SETHOSTNAME=1;
20985 HAVE_DECL_ENVIRON=1;
20986 HAVE_DECL_FCHDIR=1;
20987 HAVE_DECL_FDATASYNC=1;
20988 HAVE_DECL_GETDOMAINNAME=1;
20989 HAVE_DECL_GETLOGIN_R=1;
20990 HAVE_DECL_GETPAGESIZE=1;
20991 HAVE_DECL_GETUSERSHELL=1;
20992 HAVE_DECL_SETHOSTNAME=1;
20993 HAVE_DECL_TTYNAME_R=1;
20995 HAVE_SYS_PARAM_H=0;
21000 REPLACE_FCHOWNAT=0;
21001 REPLACE_FTRUNCATE=0;
21003 REPLACE_GETDOMAINNAME=0;
21004 REPLACE_GETDTABLESIZE=0;
21005 REPLACE_GETLOGIN_R=0;
21006 REPLACE_GETGROUPS=0;
21007 REPLACE_GETPAGESIZE=0;
21016 REPLACE_READLINK=0;
21017 REPLACE_READLINKAT=0;
21021 REPLACE_SYMLINKAT=0;
21022 REPLACE_TTYNAME_R=0;
21024 REPLACE_UNLINKAT=0;
21027 UNISTD_H_HAVE_WINSOCK2_H=0;
21028 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
21039 $as_echo_n "checking if environ is properly declared... " >&6; }
21040 if ${gt_cv_var_environ_declaration+:} false; then :
21041 $as_echo_n "(cached) " >&6
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21047 #include <unistd.h>
21049 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
21050 #include <stdlib.h>
21052 extern struct { int foo; } environ;
21061 if ac_fn_c_try_compile "$LINENO"; then :
21062 gt_cv_var_environ_declaration=no
21064 gt_cv_var_environ_declaration=yes
21066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
21070 $as_echo "$gt_cv_var_environ_declaration" >&6; }
21071 if test $gt_cv_var_environ_declaration = yes; then
21073 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
21078 if test $gt_cv_var_environ_declaration != yes; then
21079 HAVE_DECL_ENVIRON=0
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
21085 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
21086 if ${gl_cv_have_include_next+:} false; then :
21087 $as_echo_n "(cached) " >&6
21089 rm -rf conftestd1a conftestd1b conftestd2
21090 mkdir conftestd1a conftestd1b conftestd2
21091 cat <<EOF > conftestd1a/conftest.h
21092 #define DEFINED_IN_CONFTESTD1
21093 #include_next <conftest.h>
21094 #ifdef DEFINED_IN_CONFTESTD2
21097 #error "include_next doesn't work"
21100 cat <<EOF > conftestd1b/conftest.h
21101 #define DEFINED_IN_CONFTESTD1
21103 #include_next <conftest.h>
21104 #ifdef DEFINED_IN_CONFTESTD2
21107 #error "include_next doesn't work"
21110 cat <<EOF > conftestd2/conftest.h
21111 #ifndef DEFINED_IN_CONFTESTD1
21112 #error "include_next test doesn't work"
21114 #define DEFINED_IN_CONFTESTD2
21116 gl_save_CPPFLAGS="$CPPFLAGS"
21117 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21120 #include <conftest.h>
21122 if ac_fn_c_try_compile "$LINENO"; then :
21123 gl_cv_have_include_next=yes
21125 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
21126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h. */
21128 #include <conftest.h>
21130 if ac_fn_c_try_compile "$LINENO"; then :
21131 gl_cv_have_include_next=buggy
21133 gl_cv_have_include_next=no
21135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 CPPFLAGS="$gl_save_CPPFLAGS"
21140 rm -rf conftestd1a conftestd1b conftestd2
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
21144 $as_echo "$gl_cv_have_include_next" >&6; }
21145 PRAGMA_SYSTEM_HEADER=
21146 if test $gl_cv_have_include_next = yes; then
21147 INCLUDE_NEXT=include_next
21148 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
21149 if test -n "$GCC"; then
21150 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
21153 if test $gl_cv_have_include_next = buggy; then
21154 INCLUDE_NEXT=include
21155 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
21157 INCLUDE_NEXT=include
21158 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
21165 $as_echo_n "checking whether system header files limit the line length... " >&6; }
21166 if ${gl_cv_pragma_columns+:} false; then :
21167 $as_echo_n "(cached) " >&6
21169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170 /* end confdefs.h. */
21177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21178 $EGREP "choke me" >/dev/null 2>&1; then :
21179 gl_cv_pragma_columns=yes
21181 gl_cv_pragma_columns=no
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
21188 $as_echo "$gl_cv_pragma_columns" >&6; }
21189 if test $gl_cv_pragma_columns = yes; then
21190 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
21199 $as_echo_n "checking for complete errno.h... " >&6; }
21200 if ${gl_cv_header_errno_h_complete+:} false; then :
21201 $as_echo_n "(cached) " >&6
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21208 #if !defined ETXTBSY
21211 #if !defined ENOMSG
21217 #if !defined ENOLINK
21220 #if !defined EPROTO
21223 #if !defined EMULTIHOP
21226 #if !defined EBADMSG
21229 #if !defined EOVERFLOW
21232 #if !defined ENOTSUP
21235 #if !defined ENETRESET
21238 #if !defined ECONNABORTED
21241 #if !defined ESTALE
21244 #if !defined EDQUOT
21247 #if !defined ECANCELED
21250 #if !defined EOWNERDEAD
21253 #if !defined ENOTRECOVERABLE
21256 #if !defined EILSEQ
21261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21262 $EGREP "booboo" >/dev/null 2>&1; then :
21263 gl_cv_header_errno_h_complete=no
21265 gl_cv_header_errno_h_complete=yes
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
21272 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
21273 if test $gl_cv_header_errno_h_complete = yes; then
21284 if test $gl_cv_have_include_next = yes; then
21285 gl_cv_next_errno_h='<'errno.h'>'
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
21288 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
21289 if ${gl_cv_next_errno_h+:} false; then :
21290 $as_echo_n "(cached) " >&6
21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21300 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21301 *) gl_absname_cpp="$ac_cpp" ;;
21306 gl_dirsep_regex='[/\\]'
21309 gl_dirsep_regex='\/'
21312 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21313 gl_header_literal_regex=`echo 'errno.h' \
21314 | sed -e "$gl_make_literal_regex_sed"`
21315 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21316 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21322 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21323 sed -n "$gl_absolute_header_sed"`
21325 gl_header=$gl_cv_absolute_errno_h
21326 gl_cv_next_errno_h='"'$gl_header'"'
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
21331 $as_echo "$gl_cv_next_errno_h" >&6; }
21333 NEXT_ERRNO_H=$gl_cv_next_errno_h
21335 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21337 gl_next_as_first_directive='<'errno.h'>'
21339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21340 gl_next_as_first_directive=$gl_cv_next_errno_h
21342 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
21350 if test -n "$ERRNO_H"; then
21351 GL_GENERATE_ERRNO_H_TRUE=
21352 GL_GENERATE_ERRNO_H_FALSE='#'
21354 GL_GENERATE_ERRNO_H_TRUE='#'
21355 GL_GENERATE_ERRNO_H_FALSE=
21359 if test -n "$ERRNO_H"; then
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
21361 $as_echo_n "checking for EMULTIHOP value... " >&6; }
21362 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
21363 $as_echo_n "(cached) " >&6
21366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21367 /* end confdefs.h. */
21375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21376 $EGREP "yes" >/dev/null 2>&1; then :
21377 gl_cv_header_errno_h_EMULTIHOP=yes
21379 gl_cv_header_errno_h_EMULTIHOP=no
21383 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
21384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385 /* end confdefs.h. */
21387 #define _XOPEN_SOURCE_EXTENDED 1
21394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21395 $EGREP "yes" >/dev/null 2>&1; then :
21396 gl_cv_header_errno_h_EMULTIHOP=hidden
21400 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
21401 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
21402 #define _XOPEN_SOURCE_EXTENDED 1
21404 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21406 #include <stdlib.h>
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
21416 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
21417 case $gl_cv_header_errno_h_EMULTIHOP in
21419 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
21422 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
21430 if test -n "$ERRNO_H"; then
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
21432 $as_echo_n "checking for ENOLINK value... " >&6; }
21433 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
21434 $as_echo_n "(cached) " >&6
21437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h. */
21446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21447 $EGREP "yes" >/dev/null 2>&1; then :
21448 gl_cv_header_errno_h_ENOLINK=yes
21450 gl_cv_header_errno_h_ENOLINK=no
21454 if test $gl_cv_header_errno_h_ENOLINK = no; then
21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21458 #define _XOPEN_SOURCE_EXTENDED 1
21465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21466 $EGREP "yes" >/dev/null 2>&1; then :
21467 gl_cv_header_errno_h_ENOLINK=hidden
21471 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
21472 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
21473 #define _XOPEN_SOURCE_EXTENDED 1
21475 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21477 #include <stdlib.h>
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
21487 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
21488 case $gl_cv_header_errno_h_ENOLINK in
21490 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
21493 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
21501 if test -n "$ERRNO_H"; then
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
21503 $as_echo_n "checking for EOVERFLOW value... " >&6; }
21504 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
21505 $as_echo_n "(cached) " >&6
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h. */
21517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21518 $EGREP "yes" >/dev/null 2>&1; then :
21519 gl_cv_header_errno_h_EOVERFLOW=yes
21521 gl_cv_header_errno_h_EOVERFLOW=no
21525 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21527 /* end confdefs.h. */
21529 #define _XOPEN_SOURCE_EXTENDED 1
21536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21537 $EGREP "yes" >/dev/null 2>&1; then :
21538 gl_cv_header_errno_h_EOVERFLOW=hidden
21542 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21543 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
21544 #define _XOPEN_SOURCE_EXTENDED 1
21546 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21548 #include <stdlib.h>
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
21558 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
21559 case $gl_cv_header_errno_h_EOVERFLOW in
21561 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
21564 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
21572 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21573 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21579 cat >>confdefs.h <<_ACEOF
21580 #define HAVE_DECL_STRERROR_R $ac_have_decl
21583 for ac_func in strerror_r
21585 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21586 if test "x$ac_cv_func_strerror_r" = xyes; then :
21587 cat >>confdefs.h <<_ACEOF
21588 #define HAVE_STRERROR_R 1
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21595 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21596 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21597 $as_echo_n "(cached) " >&6
21600 ac_cv_func_strerror_r_char_p=no
21601 if test $ac_cv_have_decl_strerror_r = yes; then
21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h. */
21604 $ac_includes_default
21610 char x = *strerror_r (0, buf, sizeof buf);
21611 char *p = strerror_r (0, buf, sizeof buf);
21618 if ac_fn_c_try_compile "$LINENO"; then :
21619 ac_cv_func_strerror_r_char_p=yes
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 # strerror_r is not declared. Choose between
21624 # systems that have relatively inaccessible declarations for the
21625 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21626 # former has a strerror_r that returns char*, while the latter
21627 # has a strerror_r that returns `int'.
21628 # This test should segfault on the DEC system.
21629 if test "$cross_compiling" = yes; then :
21632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633 /* end confdefs.h. */
21634 $ac_includes_default
21635 extern char *strerror_r ();
21640 char x = *strerror_r (0, buf, sizeof buf);
21641 return ! isalpha (x);
21646 if ac_fn_c_try_run "$LINENO"; then :
21647 ac_cv_func_strerror_r_char_p=yes
21649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21650 conftest.$ac_objext conftest.beam conftest.$ac_ext
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21657 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21658 if test $ac_cv_func_strerror_r_char_p = yes; then
21660 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21665 XGETTEXT_EXTRA_OPTIONS=
21682 if test $gl_cv_have_include_next = yes; then
21683 gl_cv_next_getopt_h='<'getopt.h'>'
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
21686 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
21687 if ${gl_cv_next_getopt_h+:} false; then :
21688 $as_echo_n "(cached) " >&6
21691 if test $ac_cv_header_getopt_h = yes; then
21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h. */
21698 #include <getopt.h>
21701 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21702 *) gl_absname_cpp="$ac_cpp" ;;
21707 gl_dirsep_regex='[/\\]'
21710 gl_dirsep_regex='\/'
21713 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21714 gl_header_literal_regex=`echo 'getopt.h' \
21715 | sed -e "$gl_make_literal_regex_sed"`
21716 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21717 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21723 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21724 sed -n "$gl_absolute_header_sed"`
21726 gl_header=$gl_cv_absolute_getopt_h
21727 gl_cv_next_getopt_h='"'$gl_header'"'
21729 gl_cv_next_getopt_h='<'getopt.h'>'
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
21735 $as_echo "$gl_cv_next_getopt_h" >&6; }
21737 NEXT_GETOPT_H=$gl_cv_next_getopt_h
21739 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21741 gl_next_as_first_directive='<'getopt.h'>'
21743 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21744 gl_next_as_first_directive=$gl_cv_next_getopt_h
21746 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
21751 if test $ac_cv_header_getopt_h = yes; then
21760 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21761 for ac_header in getopt.h
21763 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
21764 if test "x$ac_cv_header_getopt_h" = xyes; then :
21765 cat >>confdefs.h <<_ACEOF
21766 #define HAVE_GETOPT_H 1
21770 gl_replace_getopt=yes
21777 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21778 for ac_func in getopt_long_only
21780 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21781 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
21782 cat >>confdefs.h <<_ACEOF
21783 #define HAVE_GETOPT_LONG_ONLY 1
21787 gl_replace_getopt=yes
21793 if test -z "$gl_replace_getopt"; then
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21795 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21796 if ${gl_cv_func_getopt_posix+:} false; then :
21797 $as_echo_n "(cached) " >&6
21800 if test $cross_compiling = no; then
21801 if test "$cross_compiling" = yes; then :
21802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21804 as_fn_error $? "cannot run test program while cross compiling
21805 See \`config.log' for more details" "$LINENO" 5; }
21807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21810 #include <unistd.h>
21811 #include <stdlib.h>
21812 #include <string.h>
21817 static char program[] = "program";
21818 static char a[] = "-a";
21819 static char foo[] = "foo";
21820 static char bar[] = "bar";
21821 char *argv[] = { program, a, foo, bar, NULL };
21824 c = getopt (4, argv, "ab");
21827 c = getopt (4, argv, "ab");
21830 if (!(optind == 2))
21836 if ac_fn_c_try_run "$LINENO"; then :
21837 gl_cv_func_getopt_posix=maybe
21839 gl_cv_func_getopt_posix=no
21841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21842 conftest.$ac_objext conftest.beam conftest.$ac_ext
21845 if test $gl_cv_func_getopt_posix = maybe; then
21846 if test "$cross_compiling" = yes; then :
21847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21849 as_fn_error $? "cannot run test program while cross compiling
21850 See \`config.log' for more details" "$LINENO" 5; }
21852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21853 /* end confdefs.h. */
21855 #include <unistd.h>
21856 #include <stdlib.h>
21857 #include <string.h>
21862 static char program[] = "program";
21863 static char donald[] = "donald";
21864 static char p[] = "-p";
21865 static char billy[] = "billy";
21866 static char duck[] = "duck";
21867 static char a[] = "-a";
21868 static char bar[] = "bar";
21869 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
21872 c = getopt (7, argv, "+abp:q:");
21875 if (!(strcmp (argv[0], "program") == 0))
21877 if (!(strcmp (argv[1], "donald") == 0))
21879 if (!(strcmp (argv[2], "-p") == 0))
21881 if (!(strcmp (argv[3], "billy") == 0))
21883 if (!(strcmp (argv[4], "duck") == 0))
21885 if (!(strcmp (argv[5], "-a") == 0))
21887 if (!(strcmp (argv[6], "bar") == 0))
21889 if (!(optind == 1))
21895 if ac_fn_c_try_run "$LINENO"; then :
21896 gl_cv_func_getopt_posix=maybe
21898 gl_cv_func_getopt_posix=no
21900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21901 conftest.$ac_objext conftest.beam conftest.$ac_ext
21905 if test $gl_cv_func_getopt_posix = maybe; then
21906 if test "$cross_compiling" = yes; then :
21907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21909 as_fn_error $? "cannot run test program while cross compiling
21910 See \`config.log' for more details" "$LINENO" 5; }
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21915 #include <unistd.h>
21916 #include <stdlib.h>
21917 #include <string.h>
21922 static char program[] = "program";
21923 static char ab[] = "-ab";
21924 char *argv[3] = { program, ab, NULL };
21925 if (getopt (2, argv, "ab:") != 'a')
21927 if (getopt (2, argv, "ab:") != '?')
21937 if ac_fn_c_try_run "$LINENO"; then :
21938 gl_cv_func_getopt_posix=yes
21940 gl_cv_func_getopt_posix=no
21942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21943 conftest.$ac_objext conftest.beam conftest.$ac_ext
21949 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
21950 *) gl_cv_func_getopt_posix="guessing yes";;
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21956 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21957 case "$gl_cv_func_getopt_posix" in
21958 *no) gl_replace_getopt=yes ;;
21962 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21964 $as_echo_n "checking for working GNU getopt function... " >&6; }
21965 if ${gl_cv_func_getopt_gnu+:} false; then :
21966 $as_echo_n "(cached) " >&6
21968 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21969 # optstring is necessary for programs like m4 that have POSIX-mandated
21970 # semantics for supporting options interspersed with files.
21971 # Also, since getopt_long is a GNU extension, we require optind=0.
21972 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
21973 # so take care to revert to the correct (non-)export state.
21974 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
21975 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
21976 xx) gl_had_POSIXLY_CORRECT=exported ;;
21977 x) gl_had_POSIXLY_CORRECT=yes ;;
21978 *) gl_had_POSIXLY_CORRECT= ;;
21981 export POSIXLY_CORRECT
21982 if test "$cross_compiling" = yes; then :
21983 gl_cv_func_getopt_gnu="guessing no"
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988 #include <getopt.h>
21989 #include <stddef.h>
21990 #include <string.h>
21992 #include <stdlib.h>
21993 #if defined __MACH__ && defined __APPLE__
21994 /* Avoid a crash on Mac OS X. */
21995 #include <mach/mach.h>
21996 #include <mach/mach_error.h>
21997 #include <mach/thread_status.h>
21998 #include <mach/exception.h>
21999 #include <mach/task.h>
22000 #include <pthread.h>
22001 /* The exception port on which our thread listens. */
22002 static mach_port_t our_exception_port;
22003 /* The main function of the thread listening for exceptions of type
22006 mach_exception_thread (void *arg)
22008 /* Buffer for a message to be received. */
22010 mach_msg_header_t head;
22011 mach_msg_body_t msgh_body;
22014 mach_msg_return_t retval;
22015 /* Wait for a message on the exception port. */
22016 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
22017 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
22018 if (retval != MACH_MSG_SUCCESS)
22023 nocrash_init (void)
22025 mach_port_t self = mach_task_self ();
22026 /* Allocate a port on which the thread shall listen for exceptions. */
22027 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
22029 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
22030 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
22031 MACH_MSG_TYPE_MAKE_SEND)
22033 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
22035 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
22036 /* Create the thread listening on the exception port. */
22037 pthread_attr_t attr;
22039 if (pthread_attr_init (&attr) == 0
22040 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
22041 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
22042 pthread_attr_destroy (&attr);
22043 /* Replace the exception port info for these exceptions with our own.
22044 Note that we replace the exception port for the entire task, not only
22045 for a particular thread. This has the effect that when our exception
22046 port gets the message, the thread specific exception port has already
22047 been asked, and we don't need to bother about it.
22048 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
22049 task_set_exception_ports (self, mask, our_exception_port,
22050 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
22055 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22056 /* Avoid a crash on native Windows. */
22057 #define WIN32_LEAN_AND_MEAN
22058 #include <windows.h>
22059 #include <winerror.h>
22061 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
22063 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
22065 case EXCEPTION_ACCESS_VIOLATION:
22066 case EXCEPTION_IN_PAGE_ERROR:
22067 case EXCEPTION_STACK_OVERFLOW:
22068 case EXCEPTION_GUARD_PAGE:
22069 case EXCEPTION_PRIV_INSTRUCTION:
22070 case EXCEPTION_ILLEGAL_INSTRUCTION:
22071 case EXCEPTION_DATATYPE_MISALIGNMENT:
22072 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
22073 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
22076 return EXCEPTION_CONTINUE_SEARCH;
22079 nocrash_init (void)
22081 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
22084 /* Avoid a crash on POSIX systems. */
22085 #include <signal.h>
22086 #include <unistd.h>
22087 /* A POSIX signal handler. */
22089 exception_handler (int sig)
22094 nocrash_init (void)
22097 signal (SIGSEGV, exception_handler);
22100 signal (SIGBUS, exception_handler);
22114 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
22115 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
22116 OSF/1 5.1, Solaris 10. */
22118 static char conftest[] = "conftest";
22119 static char plus[] = "-+";
22120 char *argv[3] = { conftest, plus, NULL };
22122 if (getopt (2, argv, "+a") != '?')
22125 /* This code succeeds on glibc 2.8, mingw,
22126 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
22127 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
22129 static char program[] = "program";
22130 static char p[] = "-p";
22131 static char foo[] = "foo";
22132 static char bar[] = "bar";
22133 char *argv[] = { program, p, foo, bar, NULL };
22136 if (getopt (4, argv, "p::") != 'p')
22138 else if (optarg != NULL)
22140 else if (getopt (4, argv, "p::") != -1)
22142 else if (optind != 2)
22145 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
22147 static char program[] = "program";
22148 static char foo[] = "foo";
22149 static char p[] = "-p";
22150 char *argv[] = { program, foo, p, NULL };
22152 if (getopt (3, argv, "-p") != 1)
22154 else if (getopt (3, argv, "-p") != 'p')
22157 /* This code fails on glibc 2.11. */
22159 static char program[] = "program";
22160 static char b[] = "-b";
22161 static char a[] = "-a";
22162 char *argv[] = { program, b, a, NULL };
22163 optind = opterr = 0;
22164 if (getopt (3, argv, "+:a:b") != 'b')
22166 else if (getopt (3, argv, "+:a:b") != ':')
22169 /* This code dumps core on glibc 2.14. */
22171 static char program[] = "program";
22172 static char w[] = "-W";
22173 static char dummy[] = "dummy";
22174 char *argv[] = { program, w, dummy, NULL };
22175 optind = opterr = 1;
22176 if (getopt (3, argv, "W;") != 'W')
22185 if ac_fn_c_try_run "$LINENO"; then :
22186 gl_cv_func_getopt_gnu=yes
22188 gl_cv_func_getopt_gnu=no
22190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22191 conftest.$ac_objext conftest.beam conftest.$ac_ext
22194 case $gl_had_POSIXLY_CORRECT in
22196 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
22197 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
22202 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
22203 if test "$gl_cv_func_getopt_gnu" != yes; then
22204 gl_replace_getopt=yes
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
22207 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
22208 if ${gl_cv_func_getopt_long_gnu+:} false; then :
22209 $as_echo_n "(cached) " >&6
22211 if test "$cross_compiling" = yes; then :
22213 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
22214 *) gl_cv_func_getopt_long_gnu="guessing yes";;
22218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h. */
22220 #include <getopt.h>
22221 #include <stddef.h>
22222 #include <string.h>
22227 static const struct option long_options[] =
22229 { "xtremely-",no_argument, NULL, 1003 },
22230 { "xtra", no_argument, NULL, 1001 },
22231 { "xtreme", no_argument, NULL, 1002 },
22232 { "xtremely", no_argument, NULL, 1003 },
22233 { NULL, 0, NULL, 0 }
22235 /* This code fails on OpenBSD 5.0. */
22237 static char program[] = "program";
22238 static char xtremel[] = "--xtremel";
22239 char *argv[] = { program, xtremel, NULL };
22241 optind = 1; opterr = 0;
22242 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
22251 if ac_fn_c_try_run "$LINENO"; then :
22252 gl_cv_func_getopt_long_gnu=yes
22254 gl_cv_func_getopt_long_gnu=no
22256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22257 conftest.$ac_objext conftest.beam conftest.$ac_ext
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
22263 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
22264 case "$gl_cv_func_getopt_long_gnu" in
22266 *) gl_replace_getopt=yes ;;
22277 if test -n "$gl_replace_getopt"; then
22281 if test $REPLACE_GETOPT = 1; then
22285 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22291 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22292 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22298 cat >>confdefs.h <<_ACEOF
22299 #define HAVE_DECL_GETENV $ac_have_decl
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22303 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22304 if ${ac_cv_c_restrict+:} false; then :
22305 $as_echo_n "(cached) " >&6
22307 ac_cv_c_restrict=no
22308 # The order here caters to the fact that C++ does not require restrict.
22309 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22311 /* end confdefs.h. */
22312 typedef int *int_ptr;
22313 int foo (int_ptr $ac_kw ip) { return ip[0]; }
22314 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
22315 int bar (int ip[$ac_kw]) { return ip[0]; }
22323 return foo (t) + bar (t);
22329 if ac_fn_c_try_compile "$LINENO"; then :
22330 ac_cv_c_restrict=$ac_kw
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333 test "$ac_cv_c_restrict" != no && break
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22338 $as_echo "$ac_cv_c_restrict" >&6; }
22340 case $ac_cv_c_restrict in
22342 no) $as_echo "#define restrict /**/" >>confdefs.h
22344 *) cat >>confdefs.h <<_ACEOF
22345 #define restrict $ac_cv_c_restrict
22351 GNULIB_GETTIMEOFDAY=0;
22352 HAVE_GETTIMEOFDAY=1;
22353 HAVE_STRUCT_TIMEVAL=1;
22356 REPLACE_GETTIMEOFDAY=0;
22357 REPLACE_STRUCT_TIMEVAL=0;
22376 if test $gl_cv_have_include_next = yes; then
22377 gl_cv_next_sys_time_h='<'sys/time.h'>'
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
22380 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
22381 if ${gl_cv_next_sys_time_h+:} false; then :
22382 $as_echo_n "(cached) " >&6
22385 if test $ac_cv_header_sys_time_h = yes; then
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h. */
22392 #include <sys/time.h>
22395 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22396 *) gl_absname_cpp="$ac_cpp" ;;
22401 gl_dirsep_regex='[/\\]'
22404 gl_dirsep_regex='\/'
22407 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22408 gl_header_literal_regex=`echo 'sys/time.h' \
22409 | sed -e "$gl_make_literal_regex_sed"`
22410 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22411 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22417 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22418 sed -n "$gl_absolute_header_sed"`
22420 gl_header=$gl_cv_absolute_sys_time_h
22421 gl_cv_next_sys_time_h='"'$gl_header'"'
22423 gl_cv_next_sys_time_h='<'sys/time.h'>'
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
22429 $as_echo "$gl_cv_next_sys_time_h" >&6; }
22431 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
22433 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22434 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22435 gl_next_as_first_directive='<'sys/time.h'>'
22437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22438 gl_next_as_first_directive=$gl_cv_next_sys_time_h
22440 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
22446 if test $ac_cv_header_sys_time_h != yes; then
22454 if test $ac_cv_header_sys_socket_h != yes; then
22455 for ac_header in winsock2.h
22457 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22458 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22459 cat >>confdefs.h <<_ACEOF
22460 #define HAVE_WINSOCK2_H 1
22468 if test "$ac_cv_header_winsock2_h" = yes; then
22470 UNISTD_H_HAVE_WINSOCK2_H=1
22471 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
22478 $as_echo_n "checking for struct timeval... " >&6; }
22479 if ${gl_cv_sys_struct_timeval+:} false; then :
22480 $as_echo_n "(cached) " >&6
22482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22483 /* end confdefs.h. */
22484 #if HAVE_SYS_TIME_H
22485 #include <sys/time.h>
22488 #if HAVE_WINSOCK2_H
22489 # include <winsock2.h>
22495 static struct timeval x; x.tv_sec = x.tv_usec;
22500 if ac_fn_c_try_compile "$LINENO"; then :
22501 gl_cv_sys_struct_timeval=yes
22503 gl_cv_sys_struct_timeval=no
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
22509 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
22510 if test $gl_cv_sys_struct_timeval != yes; then
22511 HAVE_STRUCT_TIMEVAL=0
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
22514 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
22515 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
22516 $as_echo_n "(cached) " >&6
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h. */
22520 #if HAVE_SYS_TIME_H
22521 #include <sys/time.h>
22524 #if HAVE_WINSOCK2_H
22525 # include <winsock2.h>
22531 static struct timeval x;
22532 typedef int verify_tv_sec_type[
22533 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
22540 if ac_fn_c_try_compile "$LINENO"; then :
22541 gl_cv_sys_struct_timeval_tv_sec=yes
22543 gl_cv_sys_struct_timeval_tv_sec=no
22545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
22549 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
22550 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
22551 REPLACE_STRUCT_TIMEVAL=1
22556 for gl_func in gettimeofday; do
22557 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22559 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22560 if eval \${$as_gl_Symbol+:} false; then :
22561 $as_echo_n "(cached) " >&6
22563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22564 /* end confdefs.h. */
22566 #if HAVE_SYS_TIME_H
22567 # include <sys/time.h>
22580 if ac_fn_c_try_compile "$LINENO"; then :
22581 eval "$as_gl_Symbol=yes"
22583 eval "$as_gl_Symbol=no"
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 eval ac_res=\$$as_gl_Symbol
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22589 $as_echo "$ac_res" >&6; }
22590 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22591 cat >>confdefs.h <<_ACEOF
22592 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22595 eval ac_cv_have_decl_$gl_func=yes
22612 GNULIB_TOWCTRANS=0;
22616 REPLACE_ISWBLANK=0;
22627 if test $ac_cv_func_iswcntrl = yes; then
22635 if test $gt_cv_c_wint_t = yes; then
22651 if test $gl_cv_have_include_next = yes; then
22652 gl_cv_next_wctype_h='<'wctype.h'>'
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
22655 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
22656 if ${gl_cv_next_wctype_h+:} false; then :
22657 $as_echo_n "(cached) " >&6
22660 if test $ac_cv_header_wctype_h = yes; then
22665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h. */
22667 #include <wctype.h>
22670 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22671 *) gl_absname_cpp="$ac_cpp" ;;
22676 gl_dirsep_regex='[/\\]'
22679 gl_dirsep_regex='\/'
22682 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22683 gl_header_literal_regex=`echo 'wctype.h' \
22684 | sed -e "$gl_make_literal_regex_sed"`
22685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22692 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22693 sed -n "$gl_absolute_header_sed"`
22695 gl_header=$gl_cv_absolute_wctype_h
22696 gl_cv_next_wctype_h='"'$gl_header'"'
22698 gl_cv_next_wctype_h='<'wctype.h'>'
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
22704 $as_echo "$gl_cv_next_wctype_h" >&6; }
22706 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
22708 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22710 gl_next_as_first_directive='<'wctype.h'>'
22712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22713 gl_next_as_first_directive=$gl_cv_next_wctype_h
22715 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
22720 if test $ac_cv_header_wctype_h = yes; then
22721 if test $ac_cv_func_iswcntrl = yes; then
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
22723 $as_echo_n "checking whether iswcntrl works... " >&6; }
22724 if ${gl_cv_func_iswcntrl_works+:} false; then :
22725 $as_echo_n "(cached) " >&6
22728 if test "$cross_compiling" = yes; then :
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h. */
22731 #include <stdlib.h>
22732 #if __GNU_LIBRARY__ == 1
22733 Linux libc5 i18n is broken.
22743 if ac_fn_c_try_compile "$LINENO"; then :
22744 gl_cv_func_iswcntrl_works="guessing yes"
22746 gl_cv_func_iswcntrl_works="guessing no"
22748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752 /* end confdefs.h. */
22754 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22755 included before <wchar.h>.
22756 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22757 must be included before <wchar.h>. */
22758 #include <stddef.h>
22762 #include <wctype.h>
22763 int main () { return iswprint ('x') == 0; }
22766 if ac_fn_c_try_run "$LINENO"; then :
22767 gl_cv_func_iswcntrl_works=yes
22769 gl_cv_func_iswcntrl_works=no
22771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22772 conftest.$ac_objext conftest.beam conftest.$ac_ext
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
22778 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
22786 case "$gl_cv_func_iswcntrl_works" in
22787 *yes) REPLACE_ISWCNTRL=0 ;;
22788 *) REPLACE_ISWCNTRL=1 ;;
22792 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
22796 if test $REPLACE_ISWCNTRL = 1; then
22799 for ac_func in towlower
22801 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
22802 if test "x$ac_cv_func_towlower" = xyes; then :
22803 cat >>confdefs.h <<_ACEOF
22804 #define HAVE_TOWLOWER 1
22810 if test $ac_cv_func_towlower = yes; then
22813 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22814 included before <wchar.h>.
22815 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22816 must be included before <wchar.h>. */
22817 #include <stddef.h>
22822 # include <wctype.h>
22826 if test "x$ac_cv_have_decl_towlower" = xyes; then :
22832 cat >>confdefs.h <<_ACEOF
22833 #define HAVE_DECL_TOWLOWER $ac_have_decl
22836 if test $ac_cv_have_decl_towlower = yes; then
22845 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
22850 $as_echo_n "checking for wctype_t... " >&6; }
22851 if ${gl_cv_type_wctype_t+:} false; then :
22852 $as_echo_n "(cached) " >&6
22854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22856 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22857 included before <wchar.h>.
22858 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22859 must be included before <wchar.h>. */
22860 #include <stddef.h>
22865 # include <wctype.h>
22877 if ac_fn_c_try_compile "$LINENO"; then :
22878 gl_cv_type_wctype_t=yes
22880 gl_cv_type_wctype_t=no
22882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
22886 $as_echo "$gl_cv_type_wctype_t" >&6; }
22887 if test $gl_cv_type_wctype_t = no; then
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
22892 $as_echo_n "checking for wctrans_t... " >&6; }
22893 if ${gl_cv_type_wctrans_t+:} false; then :
22894 $as_echo_n "(cached) " >&6
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22898 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22899 included before <wchar.h>.
22900 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22901 must be included before <wchar.h>. */
22902 #include <stddef.h>
22906 #include <wctype.h>
22917 if ac_fn_c_try_compile "$LINENO"; then :
22918 gl_cv_type_wctrans_t=yes
22920 gl_cv_type_wctrans_t=no
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
22926 $as_echo "$gl_cv_type_wctrans_t" >&6; }
22927 if test $gl_cv_type_wctrans_t = no; then
22932 for gl_func in wctype iswctype wctrans towctrans ; do
22933 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22935 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22936 if eval \${$as_gl_Symbol+:} false; then :
22937 $as_echo_n "(cached) " >&6
22939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h. */
22942 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22944 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22945 included before <wchar.h>. */
22946 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22947 # include <stddef.h>
22948 # include <stdio.h>
22950 # include <wchar.h>
22952 #include <wctype.h>
22963 if ac_fn_c_try_compile "$LINENO"; then :
22964 eval "$as_gl_Symbol=yes"
22966 eval "$as_gl_Symbol=no"
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 eval ac_res=\$$as_gl_Symbol
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22972 $as_echo "$ac_res" >&6; }
22973 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22974 cat >>confdefs.h <<_ACEOF
22975 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22978 eval ac_cv_have_decl_$gl_func=yes
22986 GNULIB_NL_LANGINFO=0;
22987 HAVE_NL_LANGINFO=1;
22988 REPLACE_NL_LANGINFO=0;
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
22997 $as_echo_n "checking for 64-bit off_t... " >&6; }
22998 if ${gl_cv_type_off_t_64+:} false; then :
22999 $as_echo_n "(cached) " >&6
23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002 /* end confdefs.h. */
23003 #include <sys/types.h>
23004 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
23014 if ac_fn_c_try_compile "$LINENO"; then :
23015 gl_cv_type_off_t_64=yes
23017 gl_cv_type_off_t_64=no
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
23023 $as_echo "$gl_cv_type_off_t_64" >&6; }
23024 if test $gl_cv_type_off_t_64 = no; then
23025 WINDOWS_64_BIT_OFF_T=1
23027 WINDOWS_64_BIT_OFF_T=0
23029 WINDOWS_64_BIT_ST_SIZE=1
23032 WINDOWS_64_BIT_OFF_T=0
23033 WINDOWS_64_BIT_ST_SIZE=0
23037 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
23038 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
23044 cat >>confdefs.h <<_ACEOF
23045 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
23049 GNULIB_LOCALECONV=0;
23050 GNULIB_SETLOCALE=0;
23051 GNULIB_DUPLOCALE=0;
23053 REPLACE_LOCALECONV=0;
23054 REPLACE_SETLOCALE=0;
23055 REPLACE_DUPLOCALE=0;
23056 REPLACE_STRUCT_LCONV=0;
23060 HAVE_MAX_ALIGN_T=1;
23067 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23070 if test "x$ac_cv_type_max_align_t" = xyes; then :
23073 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
23076 if test $gt_cv_c_wchar_t = no; then
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23081 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23082 if ${gl_cv_decl_null_works+:} false; then :
23083 $as_echo_n "(cached) " >&6
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23087 #include <stddef.h>
23088 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23098 if ac_fn_c_try_compile "$LINENO"; then :
23099 gl_cv_decl_null_works=yes
23101 gl_cv_decl_null_works=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23106 $as_echo "$gl_cv_decl_null_works" >&6; }
23107 if test $gl_cv_decl_null_works = no; then
23112 if test -n "$STDDEF_H"; then
23113 GL_GENERATE_STDDEF_H_TRUE=
23114 GL_GENERATE_STDDEF_H_FALSE='#'
23116 GL_GENERATE_STDDEF_H_TRUE='#'
23117 GL_GENERATE_STDDEF_H_FALSE=
23120 if test -n "$STDDEF_H"; then
23129 if test $gl_cv_have_include_next = yes; then
23130 gl_cv_next_stddef_h='<'stddef.h'>'
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23133 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23134 if ${gl_cv_next_stddef_h+:} false; then :
23135 $as_echo_n "(cached) " >&6
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23142 #include <stddef.h>
23145 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23146 *) gl_absname_cpp="$ac_cpp" ;;
23151 gl_dirsep_regex='[/\\]'
23154 gl_dirsep_regex='\/'
23157 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23158 gl_header_literal_regex=`echo 'stddef.h' \
23159 | sed -e "$gl_make_literal_regex_sed"`
23160 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23161 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23167 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23168 sed -n "$gl_absolute_header_sed"`
23170 gl_header=$gl_cv_absolute_stddef_h
23171 gl_cv_next_stddef_h='"'$gl_header'"'
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23176 $as_echo "$gl_cv_next_stddef_h" >&6; }
23178 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23180 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23182 gl_next_as_first_directive='<'stddef.h'>'
23184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23185 gl_next_as_first_directive=$gl_cv_next_stddef_h
23187 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23209 GNULIB_UTIMENSAT=0;
23223 REPLACE_FUTIMENS=0;
23229 REPLACE_UTIMENSAT=0;
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
23235 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
23236 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
23237 $as_echo_n "(cached) " >&6
23239 rm -f conftest.sym conftest.file
23240 echo >conftest.file
23241 if test "$cross_compiling" = yes; then :
23244 # Guess yes on glibc systems.
23245 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
23247 # If we don't know, assume the worst.
23248 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23254 $ac_includes_default
23259 if (symlink ("conftest.file", "conftest.sym") != 0)
23261 /* Linux will dereference the symlink and fail, as required by
23262 POSIX. That is better in the sense that it means we will not
23263 have to compile and use the lstat wrapper. */
23264 return lstat ("conftest.sym/", &sbuf) == 0;
23270 if ac_fn_c_try_run "$LINENO"; then :
23271 gl_cv_func_lstat_dereferences_slashed_symlink=yes
23273 gl_cv_func_lstat_dereferences_slashed_symlink=no
23275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23276 conftest.$ac_objext conftest.beam conftest.$ac_ext
23279 rm -f conftest.sym conftest.file
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
23283 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23284 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23287 cat >>confdefs.h <<_ACEOF
23288 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23295 for ac_header in stdlib.h
23297 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23298 if test "x$ac_cv_header_stdlib_h" = xyes; then :
23299 cat >>confdefs.h <<_ACEOF
23300 #define HAVE_STDLIB_H 1
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
23308 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23309 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
23310 $as_echo_n "(cached) " >&6
23312 if test "$cross_compiling" = yes; then :
23313 ac_cv_func_malloc_0_nonnull=no
23315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316 /* end confdefs.h. */
23317 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23318 # include <stdlib.h>
23326 return ! malloc (0);
23331 if ac_fn_c_try_run "$LINENO"; then :
23332 ac_cv_func_malloc_0_nonnull=yes
23334 ac_cv_func_malloc_0_nonnull=no
23336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23337 conftest.$ac_objext conftest.beam conftest.$ac_ext
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23342 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23343 if test $ac_cv_func_malloc_0_nonnull = yes; then :
23344 gl_cv_func_malloc_0_nonnull=1
23346 gl_cv_func_malloc_0_nonnull=0
23350 cat >>confdefs.h <<_ACEOF
23351 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23358 $as_echo_n "checking for mbstate_t... " >&6; }
23359 if ${ac_cv_type_mbstate_t+:} false; then :
23360 $as_echo_n "(cached) " >&6
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23364 $ac_includes_default
23365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23368 included before <wchar.h>. */
23369 #include <stddef.h>
23376 mbstate_t x; return sizeof x;
23381 if ac_fn_c_try_compile "$LINENO"; then :
23382 ac_cv_type_mbstate_t=yes
23384 ac_cv_type_mbstate_t=no
23386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23389 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23390 if test $ac_cv_type_mbstate_t = yes; then
23392 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23396 $as_echo "#define mbstate_t int" >>confdefs.h
23406 GNULIB_MBSRTOWCS=0;
23407 GNULIB_MBSNRTOWCS=0;
23409 GNULIB_WCSRTOMBS=0;
23410 GNULIB_WCSNRTOMBS=0;
23427 GNULIB_WCSCASECMP=0;
23428 GNULIB_WCSNCASECMP=0;
23465 HAVE_WCSNCASECMP=1;
23478 HAVE_DECL_WCWIDTH=1;
23479 REPLACE_MBSTATE_T=0;
23485 REPLACE_MBSRTOWCS=0;
23486 REPLACE_MBSNRTOWCS=0;
23488 REPLACE_WCSRTOMBS=0;
23489 REPLACE_WCSNRTOMBS=0;
23491 REPLACE_WCSWIDTH=0;
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
23501 $as_echo_n "checking for a traditional japanese locale... " >&6; }
23502 if ${gt_cv_locale_ja+:} false; then :
23503 $as_echo_n "(cached) " >&6
23506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h. */
23509 #include <locale.h>
23511 #if HAVE_LANGINFO_CODESET
23512 # include <langinfo.h>
23514 #include <stdlib.h>
23515 #include <string.h>
23521 /* Check whether the given locale name is recognized by the system. */
23522 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23523 /* On native Windows, setlocale(category, "") looks at the system settings,
23524 not at the environment variables. Also, when an encoding suffix such
23525 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23526 category of the locale to "C". */
23527 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23528 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23531 if (setlocale (LC_ALL, "") == NULL) return 1;
23533 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23534 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23535 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23536 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23537 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23538 some unit tests fail.
23539 On MirBSD 10, when an unsupported locale is specified, setlocale()
23540 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
23541 #if HAVE_LANGINFO_CODESET
23543 const char *cs = nl_langinfo (CODESET);
23544 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
23545 || strcmp (cs, "UTF-8") == 0)
23550 /* On Cygwin, avoid locale names without encoding suffix, because the
23551 locale_charset() function relies on the encoding suffix. Note that
23552 LC_ALL is set on the command line. */
23553 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23555 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
23556 on Cygwin 1.5.x. */
23557 if (MB_CUR_MAX == 1)
23559 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
23560 This excludes the UTF-8 encoding (except on MirBSD). */
23561 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23562 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
23563 for (p = buf; *p != '\0'; p++)
23564 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
23570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23571 (eval $ac_link) 2>&5
23573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23574 test $ac_status = 0; } && test -s conftest$ac_exeext; then
23576 # Handle native Windows specially, because there setlocale() interprets
23577 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23578 # "fr" or "fra" as "French" or "French_France.1252",
23579 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23580 # "ja" as "Japanese" or "Japanese_Japan.932",
23583 # Note that on native Windows, the Japanese locale is
23584 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
23585 # cannot use it here.
23586 gt_cv_locale_ja=none
23589 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23590 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23591 # configure script would override the LC_ALL setting. Likewise for
23592 # LC_CTYPE, which is also set at the beginning of the configure script.
23593 # Test for the AIX locale name.
23594 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23595 gt_cv_locale_ja=ja_JP
23597 # Test for the locale name with explicit encoding suffix.
23598 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23599 gt_cv_locale_ja=ja_JP.EUC-JP
23601 # Test for the HP-UX, OSF/1, NetBSD locale name.
23602 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23603 gt_cv_locale_ja=ja_JP.eucJP
23605 # Test for the IRIX, FreeBSD locale name.
23606 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23607 gt_cv_locale_ja=ja_JP.EUC
23609 # Test for the Solaris 7 locale name.
23610 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23613 # Special test for NetBSD 1.6.
23614 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
23615 gt_cv_locale_ja=ja_JP.eucJP
23618 gt_cv_locale_ja=none
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
23632 $as_echo "$gt_cv_locale_ja" >&6; }
23633 LOCALE_JA=$gt_cv_locale_ja
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
23640 $as_echo_n "checking for a transitional chinese locale... " >&6; }
23641 if ${gt_cv_locale_zh_CN+:} false; then :
23642 $as_echo_n "(cached) " >&6
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23648 #include <locale.h>
23649 #include <stdlib.h>
23651 #if HAVE_LANGINFO_CODESET
23652 # include <langinfo.h>
23654 #include <stdlib.h>
23655 #include <string.h>
23661 /* Check whether the given locale name is recognized by the system. */
23662 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23663 /* On native Windows, setlocale(category, "") looks at the system settings,
23664 not at the environment variables. Also, when an encoding suffix such
23665 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23666 category of the locale to "C". */
23667 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23668 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23671 if (setlocale (LC_ALL, "") == NULL) return 1;
23673 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23674 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23675 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23676 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23677 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23678 some unit tests fail.
23679 On MirBSD 10, when an unsupported locale is specified, setlocale()
23680 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
23681 #if HAVE_LANGINFO_CODESET
23683 const char *cs = nl_langinfo (CODESET);
23684 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
23685 || strcmp (cs, "UTF-8") == 0)
23690 /* On Cygwin, avoid locale names without encoding suffix, because the
23691 locale_charset() function relies on the encoding suffix. Note that
23692 LC_ALL is set on the command line. */
23693 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23695 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
23696 This excludes the UTF-8 encoding (except on MirBSD). */
23697 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23698 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
23699 for (p = buf; *p != '\0'; p++)
23700 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
23702 /* Check whether a typical GB18030 multibyte sequence is recognized as a
23703 single wide character. This excludes the GB2312 and GBK encodings. */
23704 if (mblen ("\203\062\332\066", 5) != 4)
23710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23711 (eval $ac_link) 2>&5
23713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23714 test $ac_status = 0; } && test -s conftest$ac_exeext; then
23716 # Handle native Windows specially, because there setlocale() interprets
23717 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23718 # "fr" or "fra" as "French" or "French_France.1252",
23719 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23720 # "ja" as "Japanese" or "Japanese_Japan.932",
23723 # Test for the hypothetical native Windows locale name.
23724 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23725 gt_cv_locale_zh_CN=Chinese_China.54936
23728 gt_cv_locale_zh_CN=none
23732 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
23733 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
23734 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
23735 gt_cv_locale_zh_CN=none
23738 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23739 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23740 # configure script would override the LC_ALL setting. Likewise for
23741 # LC_CTYPE, which is also set at the beginning of the configure script.
23742 # Test for the locale name without encoding suffix.
23743 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23744 gt_cv_locale_zh_CN=zh_CN
23746 # Test for the locale name with explicit encoding suffix.
23747 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23748 gt_cv_locale_zh_CN=zh_CN.GB18030
23751 gt_cv_locale_zh_CN=none
23757 # If there was a link error, due to mblen(), the system is so old that
23758 # it certainly doesn't have a chinese locale.
23759 gt_cv_locale_zh_CN=none
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
23765 $as_echo "$gt_cv_locale_zh_CN" >&6; }
23766 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
23772 $as_echo_n "checking for a french Unicode locale... " >&6; }
23773 if ${gt_cv_locale_fr_utf8+:} false; then :
23774 $as_echo_n "(cached) " >&6
23777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23778 /* end confdefs.h. */
23780 #include <locale.h>
23782 #if HAVE_LANGINFO_CODESET
23783 # include <langinfo.h>
23785 #include <stdlib.h>
23786 #include <string.h>
23790 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
23791 imitates locale dependent behaviour by looking at the environment
23792 variables, and all locales use the UTF-8 encoding. */
23793 #if !(defined __BEOS__ || defined __HAIKU__)
23794 /* Check whether the given locale name is recognized by the system. */
23795 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23796 /* On native Windows, setlocale(category, "") looks at the system settings,
23797 not at the environment variables. Also, when an encoding suffix such
23798 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23799 category of the locale to "C". */
23800 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23801 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23804 if (setlocale (LC_ALL, "") == NULL) return 1;
23806 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23807 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23808 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23809 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23810 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23811 some unit tests fail. */
23812 # if HAVE_LANGINFO_CODESET
23814 const char *cs = nl_langinfo (CODESET);
23815 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
23820 /* On Cygwin, avoid locale names without encoding suffix, because the
23821 locale_charset() function relies on the encoding suffix. Note that
23822 LC_ALL is set on the command line. */
23823 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23825 /* Check whether in the abbreviation of the second month, the second
23826 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
23827 two bytes long, with UTF-8 encoding. */
23828 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23829 if (strftime (buf, sizeof (buf), "%b", &t) < 4
23830 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
23833 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
23834 /* Check whether the decimal separator is a comma.
23835 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
23836 are nl_langinfo(RADIXCHAR) are both ".". */
23837 if (localeconv () ->decimal_point[0] != ',') return 1;
23843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23844 (eval $ac_link) 2>&5
23846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23847 test $ac_status = 0; } && test -s conftest$ac_exeext; then
23849 # Handle native Windows specially, because there setlocale() interprets
23850 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23851 # "fr" or "fra" as "French" or "French_France.1252",
23852 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23853 # "ja" as "Japanese" or "Japanese_Japan.932",
23856 # Test for the hypothetical native Windows locale name.
23857 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23858 gt_cv_locale_fr_utf8=French_France.65001
23861 gt_cv_locale_fr_utf8=none
23865 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23866 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23867 # configure script would override the LC_ALL setting. Likewise for
23868 # LC_CTYPE, which is also set at the beginning of the configure script.
23869 # Test for the usual locale name.
23870 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23871 gt_cv_locale_fr_utf8=fr_FR
23873 # Test for the locale name with explicit encoding suffix.
23874 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23875 gt_cv_locale_fr_utf8=fr_FR.UTF-8
23877 # Test for the Solaris 7 locale name.
23878 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23879 gt_cv_locale_fr_utf8=fr.UTF-8
23882 gt_cv_locale_fr_utf8=none
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
23893 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
23894 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
23904 GNULIB_RAWMEMCHR=0;
23907 GNULIB_STRCHRNUL=0;
23915 GNULIB_STRCASESTR=0;
23922 GNULIB_MBSCASECMP=0;
23923 GNULIB_MBSNCASECMP=0;
23924 GNULIB_MBSPCASECMP=0;
23925 GNULIB_MBSCASESTR=0;
23932 GNULIB_STRERROR_R=0;
23933 GNULIB_STRSIGNAL=0;
23934 GNULIB_STRVERSCMP=0;
23939 HAVE_DECL_MEMMEM=1;
23941 HAVE_DECL_MEMRCHR=1;
23946 HAVE_DECL_STRDUP=1;
23947 HAVE_DECL_STRNDUP=1;
23948 HAVE_DECL_STRNLEN=1;
23952 HAVE_DECL_STRTOK_R=1;
23953 HAVE_DECL_STRERROR_R=1;
23954 HAVE_DECL_STRSIGNAL=1;
23961 REPLACE_STRCASESTR=0;
23962 REPLACE_STRCHRNUL=0;
23963 REPLACE_STRERROR=0;
23964 REPLACE_STRERROR_R=0;
23968 REPLACE_STRSIGNAL=0;
23969 REPLACE_STRTOK_R=0;
23970 UNDEFINE_STRTOK_R=0;
23982 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
23983 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
23984 # irrelevant for anonymous mappings.
23985 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
23986 if test "x$ac_cv_func_mmap" = xyes; then :
23993 # Try to allow MAP_ANONYMOUS.
23994 gl_have_mmap_anonymous=no
23995 if test $gl_have_mmap = yes; then
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
23997 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
23998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h. */
24001 #include <sys/mman.h>
24002 #ifdef MAP_ANONYMOUS
24003 I cannot identify this map
24007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24008 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24009 gl_have_mmap_anonymous=yes
24013 if test $gl_have_mmap_anonymous != yes; then
24014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h. */
24017 #include <sys/mman.h>
24019 I cannot identify this map
24023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24024 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24026 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
24028 gl_have_mmap_anonymous=yes
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
24034 $as_echo "$gl_have_mmap_anonymous" >&6; }
24035 if test $gl_have_mmap_anonymous = yes; then
24037 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
24047 if test $HAVE_MEMCHR = 1; then
24048 # Detect platform-specific bugs in some versions of glibc:
24049 # memchr should not dereference anything with length 0
24050 # http://bugzilla.redhat.com/499689
24051 # memchr should not dereference overestimated length after a match
24052 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24053 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
24054 # Assume that memchr works on platforms that lack mprotect.
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
24056 $as_echo_n "checking whether memchr works... " >&6; }
24057 if ${gl_cv_func_memchr_works+:} false; then :
24058 $as_echo_n "(cached) " >&6
24060 if test "$cross_compiling" = yes; then :
24061 gl_cv_func_memchr_works="guessing no"
24063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h. */
24066 #include <string.h>
24067 #if HAVE_SYS_MMAN_H
24068 # include <fcntl.h>
24069 # include <unistd.h>
24070 # include <sys/types.h>
24071 # include <sys/mman.h>
24073 # define MAP_FILE 0
24082 char *fence = NULL;
24083 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
24084 # if HAVE_MAP_ANONYMOUS
24085 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
24087 # else /* !HAVE_MAP_ANONYMOUS */
24088 const int flags = MAP_FILE | MAP_PRIVATE;
24089 int fd = open ("/dev/zero", O_RDONLY, 0666);
24093 int pagesize = getpagesize ();
24095 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
24097 if (two_pages != (char *)(-1)
24098 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
24099 fence = two_pages + pagesize;
24104 if (memchr (fence, 0, 0))
24106 strcpy (fence - 9, "12345678");
24107 if (memchr (fence - 9, 0, 79) != fence - 1)
24109 if (memchr (fence - 1, 0, 3) != fence - 1)
24118 if ac_fn_c_try_run "$LINENO"; then :
24119 gl_cv_func_memchr_works=yes
24121 gl_cv_func_memchr_works=no
24123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24124 conftest.$ac_objext conftest.beam conftest.$ac_ext
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
24129 $as_echo "$gl_cv_func_memchr_works" >&6; }
24130 if test "$gl_cv_func_memchr_works" != yes; then
24139 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
24140 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
24142 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
24145 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
24153 gl_cv_c_multiarch=no
24154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155 /* end confdefs.h. */
24156 #ifndef __APPLE_CC__
24157 not a universal capable compiler
24162 if ac_fn_c_try_compile "$LINENO"; then :
24166 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
24167 if test -n "$prev"; then
24169 i?86 | x86_64 | ppc | ppc64)
24170 if test -z "$arch" || test "$arch" = "$word"; then
24173 gl_cv_c_multiarch=yes
24179 if test "x$word" = "x-arch"; then
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187 if test $gl_cv_c_multiarch = yes; then
24188 APPLE_UNIVERSAL_BUILD=1
24190 APPLE_UNIVERSAL_BUILD=0
24195 GNULIB_PTHREAD_SIGMASK=0;
24197 GNULIB_SIGNAL_H_SIGPIPE=0;
24198 GNULIB_SIGPROCMASK=0;
24199 GNULIB_SIGACTION=0;
24200 HAVE_POSIX_SIGNALBLOCKING=1;
24201 HAVE_PTHREAD_SIGMASK=1;
24206 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
24208 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
24210 HAVE_SIGHANDLER_T=1;
24211 REPLACE_PTHREAD_SIGMASK=0;
24215 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
24216 #include <signal.h>
24217 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
24218 #include <sys/types.h>
24221 if test "x$ac_cv_type_sigset_t" = xyes; then :
24223 cat >>confdefs.h <<_ACEOF
24224 #define HAVE_SIGSET_T 1
24227 gl_cv_type_sigset_t=yes
24229 gl_cv_type_sigset_t=no
24232 if test $gl_cv_type_sigset_t != yes; then
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
24239 $as_echo_n "checking for SIGPIPE... " >&6; }
24240 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
24241 $as_echo_n "(cached) " >&6
24244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245 /* end confdefs.h. */
24247 #include <signal.h>
24248 #if !defined SIGPIPE
24253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24254 $EGREP "booboo" >/dev/null 2>&1; then :
24255 gl_cv_header_signal_h_SIGPIPE=no
24257 gl_cv_header_signal_h_SIGPIPE=yes
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
24264 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
24268 $as_echo_n "checking for shared library path variable... " >&6; }
24269 if ${acl_cv_libpath+:} false; then :
24270 $as_echo_n "(cached) " >&6
24274 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
24276 rm -f ./conftest.sh
24277 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
24281 $as_echo "$acl_cv_libpath" >&6; }
24282 shlibpath_var="$acl_cv_shlibpath_var"
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
24286 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
24287 # Check whether --enable-relocatable was given.
24288 if test "${enable_relocatable+set}" = set; then :
24289 enableval=$enable_relocatable; if test "$enableval" != no; then
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
24301 $as_echo "$RELOCATABLE" >&6; }
24305 if test "X$prefix" = "XNONE"; then
24306 reloc_final_prefix="$ac_default_prefix"
24308 reloc_final_prefix="$prefix"
24311 cat >>confdefs.h <<_ACEOF
24312 #define INSTALLPREFIX "${reloc_final_prefix}"
24315 if test $RELOCATABLE = yes; then
24317 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
24327 use_elf_origin_trick=no
24329 if test $RELOCATABLE = yes; then
24330 # --enable-relocatable implies --disable-rpath
24332 for ac_header in mach-o/dyld.h
24334 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
24335 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
24336 cat >>confdefs.h <<_ACEOF
24337 #define HAVE_MACH_O_DYLD_H 1
24344 for ac_func in _NSGetExecutablePath
24346 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
24347 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
24348 cat >>confdefs.h <<_ACEOF
24349 #define HAVE__NSGETEXECUTABLEPATH 1
24356 mingw*) is_noop=yes ;;
24357 linux* | kfreebsd*) use_elf_origin_trick=yes ;;
24359 if test $is_noop = yes; then
24360 RELOCATABLE_LDFLAGS=:
24363 if test $use_elf_origin_trick = yes; then
24364 case "$ac_aux_dir" in
24365 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
24366 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
24368 RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
24372 INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
24374 case "$ac_aux_dir" in
24375 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
24376 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
24381 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
24382 RELOCATABLE_VIA_LD_TRUE=
24383 RELOCATABLE_VIA_LD_FALSE='#'
24385 RELOCATABLE_VIA_LD_TRUE='#'
24386 RELOCATABLE_VIA_LD_FALSE=
24389 if test $use_wrapper = yes; then
24390 RELOCATABLE_VIA_WRAPPER_TRUE=
24391 RELOCATABLE_VIA_WRAPPER_FALSE='#'
24393 RELOCATABLE_VIA_WRAPPER_TRUE='#'
24394 RELOCATABLE_VIA_WRAPPER_FALSE=
24404 RELOCATABLE_STRIP=':'
24407 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
24408 if test "x$ac_cv_have_decl_setenv" = xyes; then :
24414 cat >>confdefs.h <<_ACEOF
24415 #define HAVE_DECL_SETENV $ac_have_decl
24420 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24421 if test "x$ac_cv_type_pid_t" = xyes; then :
24425 cat >>confdefs.h <<_ACEOF
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24432 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24433 if ${ac_cv_type_uid_t+:} false; then :
24434 $as_echo_n "(cached) " >&6
24436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24438 #include <sys/types.h>
24441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24442 $EGREP "uid_t" >/dev/null 2>&1; then :
24443 ac_cv_type_uid_t=yes
24445 ac_cv_type_uid_t=no
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24451 $as_echo "$ac_cv_type_uid_t" >&6; }
24452 if test $ac_cv_type_uid_t = no; then
24454 $as_echo "#define uid_t int" >>confdefs.h
24457 $as_echo "#define gid_t int" >>confdefs.h
24470 GNULIB_FPRINTF_POSIX=0;
24486 GNULIB_OBSTACK_PRINTF=0;
24487 GNULIB_OBSTACK_PRINTF_POSIX=0;
24492 GNULIB_PRINTF_POSIX=0;
24501 GNULIB_SPRINTF_POSIX=0;
24502 GNULIB_STDIO_H_NONBLOCKING=0;
24503 GNULIB_STDIO_H_SIGPIPE=0;
24505 GNULIB_VASPRINTF=0;
24510 GNULIB_VFPRINTF_POSIX=0;
24512 GNULIB_VPRINTF_POSIX=0;
24513 GNULIB_VSNPRINTF=0;
24514 GNULIB_VSPRINTF_POSIX=0;
24515 HAVE_DECL_FPURGE=1;
24516 HAVE_DECL_FSEEKO=1;
24517 HAVE_DECL_FTELLO=1;
24518 HAVE_DECL_GETDELIM=1;
24519 HAVE_DECL_GETLINE=1;
24520 HAVE_DECL_OBSTACK_PRINTF=1;
24521 HAVE_DECL_SNPRINTF=1;
24522 HAVE_DECL_VSNPRINTF=1;
24543 REPLACE_GETDELIM=0;
24545 REPLACE_OBSTACK_PRINTF=0;
24551 REPLACE_RENAMEAT=0;
24552 REPLACE_SNPRINTF=0;
24554 REPLACE_STDIO_READ_FUNCS=0;
24555 REPLACE_STDIO_WRITE_FUNCS=0;
24557 REPLACE_VASPRINTF=0;
24558 REPLACE_VDPRINTF=0;
24559 REPLACE_VFPRINTF=0;
24561 REPLACE_VSNPRINTF=0;
24562 REPLACE_VSPRINTF=0;
24565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24566 /* end confdefs.h. */
24573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24574 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
24576 gl_c_asm_opt='-c -Fa'
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
24589 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
24590 if ${gl_cv_prog_as_underscore+:} false; then :
24591 $as_echo_n "(cached) " >&6
24593 cat > conftest.c <<EOF
24595 extern "C" int foo (void);
24597 int foo(void) { return 0; }
24599 # Look for the assembly language name in the .s file.
24600 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; } >/dev/null 2>&1
24606 if LC_ALL=C grep -E '(^|^a-zA-Z0-9_)_foo(^a-zA-Z0-9_|$)' conftest.$gl_asmext >/dev/null; then
24607 gl_cv_prog_as_underscore=yes
24609 gl_cv_prog_as_underscore=no
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
24615 $as_echo "$gl_cv_prog_as_underscore" >&6; }
24616 if test $gl_cv_prog_as_underscore = yes; then
24617 USER_LABEL_PREFIX=_
24622 cat >>confdefs.h <<_ACEOF
24623 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
24626 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
24630 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
24631 if ${ac_cv_header_stdbool_h+:} false; then :
24632 $as_echo_n "(cached) " >&6
24634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24635 /* end confdefs.h. */
24637 #include <stdbool.h>
24639 "error: bool is not defined"
24642 "error: false is not defined"
24645 "error: false is not 0"
24648 "error: true is not defined"
24651 "error: true is not 1"
24653 #ifndef __bool_true_false_are_defined
24654 "error: __bool_true_false_are_defined is not defined"
24657 struct s { _Bool s: 1; _Bool t; } s;
24659 char a[true == 1 ? 1 : -1];
24660 char b[false == 0 ? 1 : -1];
24661 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
24662 char d[(bool) 0.5 == true ? 1 : -1];
24663 /* See body of main program for 'e'. */
24664 char f[(_Bool) 0.0 == false ? 1 : -1];
24666 char h[sizeof (_Bool)];
24667 char i[sizeof s.t];
24668 enum { j = false, k = true, l = false * true, m = true * 256 };
24669 /* The following fails for
24670 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
24672 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
24673 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
24674 /* Catch a bug in an HP-UX C compiler. See
24675 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
24676 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
24688 /* Refer to every declared value, to avoid compiler optimizations. */
24689 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24690 + !m + !n + !o + !p + !q + !pq);
24696 if ac_fn_c_try_compile "$LINENO"; then :
24697 ac_cv_header_stdbool_h=yes
24699 ac_cv_header_stdbool_h=no
24701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
24704 $as_echo "$ac_cv_header_stdbool_h" >&6; }
24705 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
24706 if test "x$ac_cv_type__Bool" = xyes; then :
24708 cat >>confdefs.h <<_ACEOF
24709 #define HAVE__BOOL 1
24723 if test $ac_cv_type_long_long_int = yes; then
24724 HAVE_LONG_LONG_INT=1
24726 HAVE_LONG_LONG_INT=0
24730 if test $ac_cv_type_unsigned_long_long_int = yes; then
24731 HAVE_UNSIGNED_LONG_LONG_INT=1
24733 HAVE_UNSIGNED_LONG_LONG_INT=0
24738 if test $ac_cv_header_wchar_h = yes; then
24745 if test $ac_cv_header_inttypes_h = yes; then
24752 if test $ac_cv_header_sys_types_h = yes; then
24768 if test $gl_cv_have_include_next = yes; then
24769 gl_cv_next_stdint_h='<'stdint.h'>'
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
24772 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
24773 if ${gl_cv_next_stdint_h+:} false; then :
24774 $as_echo_n "(cached) " >&6
24777 if test $ac_cv_header_stdint_h = yes; then
24782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24783 /* end confdefs.h. */
24784 #include <stdint.h>
24787 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24788 *) gl_absname_cpp="$ac_cpp" ;;
24793 gl_dirsep_regex='[/\\]'
24796 gl_dirsep_regex='\/'
24799 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24800 gl_header_literal_regex=`echo 'stdint.h' \
24801 | sed -e "$gl_make_literal_regex_sed"`
24802 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24803 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24809 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24810 sed -n "$gl_absolute_header_sed"`
24812 gl_header=$gl_cv_absolute_stdint_h
24813 gl_cv_next_stdint_h='"'$gl_header'"'
24815 gl_cv_next_stdint_h='<'stdint.h'>'
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
24821 $as_echo "$gl_cv_next_stdint_h" >&6; }
24823 NEXT_STDINT_H=$gl_cv_next_stdint_h
24825 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24826 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24827 gl_next_as_first_directive='<'stdint.h'>'
24829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24830 gl_next_as_first_directive=$gl_cv_next_stdint_h
24832 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
24837 if test $ac_cv_header_stdint_h = yes; then
24844 if test $ac_cv_header_stdint_h = yes; then
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
24846 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
24847 if ${gl_cv_header_working_stdint_h+:} false; then :
24848 $as_echo_n "(cached) " >&6
24850 gl_cv_header_working_stdint_h=no
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h. */
24855 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
24856 #define __STDC_CONSTANT_MACROS 1
24857 #define __STDC_LIMIT_MACROS 1
24858 #include <stdint.h>
24859 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
24860 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
24861 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
24865 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24866 included before <wchar.h>. */
24867 #include <stddef.h>
24868 #include <signal.h>
24870 # include <stdio.h>
24872 # include <wchar.h>
24877 int8_t a1 = INT8_MAX;
24878 int8_t a1min = INT8_MIN;
24881 int16_t a2 = INT16_MAX;
24882 int16_t a2min = INT16_MIN;
24885 int32_t a3 = INT32_MAX;
24886 int32_t a3min = INT32_MIN;
24889 int64_t a4 = INT64_MAX;
24890 int64_t a4min = INT64_MIN;
24893 uint8_t b1 = UINT8_MAX;
24895 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
24898 uint16_t b2 = UINT16_MAX;
24901 uint32_t b3 = UINT32_MAX;
24904 uint64_t b4 = UINT64_MAX;
24906 int_least8_t c1 = INT8_C (0x7f);
24907 int_least8_t c1max = INT_LEAST8_MAX;
24908 int_least8_t c1min = INT_LEAST8_MIN;
24909 int_least16_t c2 = INT16_C (0x7fff);
24910 int_least16_t c2max = INT_LEAST16_MAX;
24911 int_least16_t c2min = INT_LEAST16_MIN;
24912 int_least32_t c3 = INT32_C (0x7fffffff);
24913 int_least32_t c3max = INT_LEAST32_MAX;
24914 int_least32_t c3min = INT_LEAST32_MIN;
24915 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
24916 int_least64_t c4max = INT_LEAST64_MAX;
24917 int_least64_t c4min = INT_LEAST64_MIN;
24918 uint_least8_t d1 = UINT8_C (0xff);
24919 uint_least8_t d1max = UINT_LEAST8_MAX;
24920 uint_least16_t d2 = UINT16_C (0xffff);
24921 uint_least16_t d2max = UINT_LEAST16_MAX;
24922 uint_least32_t d3 = UINT32_C (0xffffffff);
24923 uint_least32_t d3max = UINT_LEAST32_MAX;
24924 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
24925 uint_least64_t d4max = UINT_LEAST64_MAX;
24926 int_fast8_t e1 = INT_FAST8_MAX;
24927 int_fast8_t e1min = INT_FAST8_MIN;
24928 int_fast16_t e2 = INT_FAST16_MAX;
24929 int_fast16_t e2min = INT_FAST16_MIN;
24930 int_fast32_t e3 = INT_FAST32_MAX;
24931 int_fast32_t e3min = INT_FAST32_MIN;
24932 int_fast64_t e4 = INT_FAST64_MAX;
24933 int_fast64_t e4min = INT_FAST64_MIN;
24934 uint_fast8_t f1 = UINT_FAST8_MAX;
24935 uint_fast16_t f2 = UINT_FAST16_MAX;
24936 uint_fast32_t f3 = UINT_FAST32_MAX;
24937 uint_fast64_t f4 = UINT_FAST64_MAX;
24939 intptr_t g = INTPTR_MAX;
24940 intptr_t gmin = INTPTR_MIN;
24943 uintptr_t h = UINTPTR_MAX;
24945 intmax_t i = INTMAX_MAX;
24946 uintmax_t j = UINTMAX_MAX;
24948 #include <limits.h> /* for CHAR_BIT */
24949 #define TYPE_MINIMUM(t) \
24950 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
24951 #define TYPE_MAXIMUM(t) \
24952 ((t) ((t) 0 < (t) -1 \
24954 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
24957 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
24958 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
24960 /* Detect bug in FreeBSD 6.0 / ia64. */
24961 int check_SIG_ATOMIC:
24962 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
24963 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
24965 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
24967 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
24968 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
24970 /* Detect bug in mingw. */
24972 WINT_MIN == TYPE_MINIMUM (wint_t)
24973 && WINT_MAX == TYPE_MAXIMUM (wint_t)
24976 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
24978 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
24979 int check_UINT16_C:
24980 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
24982 /* Detect bugs in OpenBSD 3.9 stdint.h. */
24984 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
24987 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
24990 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
24993 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
24995 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
24996 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
24997 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
24998 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
24999 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
25000 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
25001 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
25002 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
25003 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
25004 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
25005 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
25016 if ac_fn_c_try_compile "$LINENO"; then :
25017 if test "$cross_compiling" = yes; then :
25018 gl_cv_header_working_stdint_h=yes
25021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022 /* end confdefs.h. */
25025 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
25026 #define __STDC_CONSTANT_MACROS 1
25027 #define __STDC_LIMIT_MACROS 1
25028 #include <stdint.h>
25031 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25032 included before <wchar.h>. */
25033 #include <stddef.h>
25034 #include <signal.h>
25036 # include <stdio.h>
25038 # include <wchar.h>
25043 #include <string.h>
25044 #define MVAL(macro) MVAL1(macro)
25045 #define MVAL1(expression) #expression
25046 static const char *macro_values[] =
25080 for (mv = macro_values; *mv != NULL; mv++)
25082 const char *value = *mv;
25083 /* Test whether it looks like a cast expression. */
25084 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
25085 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
25086 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
25087 || strncmp (value, "((int)"/*)*/, 6) == 0
25088 || strncmp (value, "((signed short)"/*)*/, 15) == 0
25089 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
25090 return mv - macro_values + 1;
25098 if ac_fn_c_try_run "$LINENO"; then :
25099 gl_cv_header_working_stdint_h=yes
25101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25102 conftest.$ac_objext conftest.beam conftest.$ac_ext
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
25111 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
25113 if test "$gl_cv_header_working_stdint_h" = yes; then
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
25115 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
25116 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
25117 $as_echo_n "(cached) " >&6
25119 gl_cv_header_stdint_predates_cxx11_h=yes
25120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25121 /* end confdefs.h. */
25124 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
25125 #include <stdint.h>
25128 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25129 included before <wchar.h>. */
25130 #include <stddef.h>
25131 #include <signal.h>
25133 # include <stdio.h>
25135 # include <wchar.h>
25139 intmax_t im = INTMAX_MAX;
25140 int32_t i32 = INT32_C (0x7fffffff);
25150 if ac_fn_c_try_compile "$LINENO"; then :
25151 gl_cv_header_stdint_predates_cxx11_h=no
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
25156 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
25158 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
25160 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
25163 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
25168 for ac_header in sys/inttypes.h sys/bitypes.h
25170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25171 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25173 cat >>confdefs.h <<_ACEOF
25174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25181 if test $ac_cv_header_sys_inttypes_h = yes; then
25182 HAVE_SYS_INTTYPES_H=1
25184 HAVE_SYS_INTTYPES_H=0
25187 if test $ac_cv_header_sys_bitypes_h = yes; then
25188 HAVE_SYS_BITYPES_H=1
25190 HAVE_SYS_BITYPES_H=0
25196 if test $APPLE_UNIVERSAL_BUILD = 0; then
25199 for gltype in ptrdiff_t size_t ; do
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
25201 $as_echo_n "checking for bit size of $gltype... " >&6; }
25202 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
25203 $as_echo_n "(cached) " >&6
25205 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
25206 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25207 included before <wchar.h>. */
25208 #include <stddef.h>
25209 #include <signal.h>
25211 # include <stdio.h>
25213 # include <wchar.h>
25216 #include <limits.h>"; then :
25222 eval gl_cv_bitsizeof_${gltype}=\$result
25225 eval ac_res=\$gl_cv_bitsizeof_${gltype}
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25227 $as_echo "$ac_res" >&6; }
25228 eval result=\$gl_cv_bitsizeof_${gltype}
25229 if test $result = unknown; then
25232 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25233 cat >>confdefs.h <<_ACEOF
25234 #define BITSIZEOF_${GLTYPE} $result
25237 eval BITSIZEOF_${GLTYPE}=\$result
25244 for gltype in sig_atomic_t wchar_t wint_t ; do
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
25246 $as_echo_n "checking for bit size of $gltype... " >&6; }
25247 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
25248 $as_echo_n "(cached) " >&6
25250 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
25251 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25252 included before <wchar.h>. */
25253 #include <stddef.h>
25254 #include <signal.h>
25256 # include <stdio.h>
25258 # include <wchar.h>
25261 #include <limits.h>"; then :
25267 eval gl_cv_bitsizeof_${gltype}=\$result
25270 eval ac_res=\$gl_cv_bitsizeof_${gltype}
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25272 $as_echo "$ac_res" >&6; }
25273 eval result=\$gl_cv_bitsizeof_${gltype}
25274 if test $result = unknown; then
25277 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25278 cat >>confdefs.h <<_ACEOF
25279 #define BITSIZEOF_${GLTYPE} $result
25282 eval BITSIZEOF_${GLTYPE}=\$result
25288 for gltype in sig_atomic_t wchar_t wint_t ; do
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
25290 $as_echo_n "checking whether $gltype is signed... " >&6; }
25291 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
25292 $as_echo_n "(cached) " >&6
25294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25295 /* end confdefs.h. */
25297 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25298 included before <wchar.h>. */
25299 #include <stddef.h>
25300 #include <signal.h>
25302 # include <stdio.h>
25304 # include <wchar.h>
25307 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
25316 if ac_fn_c_try_compile "$LINENO"; then :
25321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322 eval gl_cv_type_${gltype}_signed=\$result
25325 eval ac_res=\$gl_cv_type_${gltype}_signed
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25327 $as_echo "$ac_res" >&6; }
25328 eval result=\$gl_cv_type_${gltype}_signed
25329 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25330 if test "$result" = yes; then
25331 cat >>confdefs.h <<_ACEOF
25332 #define HAVE_SIGNED_${GLTYPE} 1
25335 eval HAVE_SIGNED_${GLTYPE}=1
25337 eval HAVE_SIGNED_${GLTYPE}=0
25342 gl_cv_type_ptrdiff_t_signed=yes
25343 gl_cv_type_size_t_signed=no
25344 if test $APPLE_UNIVERSAL_BUILD = 0; then
25347 for gltype in ptrdiff_t size_t ; do
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
25349 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25350 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
25351 $as_echo_n "(cached) " >&6
25353 eval gl_cv_type_${gltype}_suffix=no
25354 eval result=\$gl_cv_type_${gltype}_signed
25355 if test "$result" = yes; then
25360 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25362 '') gltype1='int';;
25363 l) gltype1='long int';;
25364 ll) gltype1='long long int';;
25365 i64) gltype1='__int64';;
25366 u) gltype1='unsigned int';;
25367 ul) gltype1='unsigned long int';;
25368 ull) gltype1='unsigned long long int';;
25369 ui64)gltype1='unsigned __int64';;
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h. */
25374 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25375 included before <wchar.h>. */
25376 #include <stddef.h>
25377 #include <signal.h>
25379 # include <stdio.h>
25381 # include <wchar.h>
25384 extern $gltype foo;
25385 extern $gltype1 foo;
25394 if ac_fn_c_try_compile "$LINENO"; then :
25395 eval gl_cv_type_${gltype}_suffix=\$glsuf
25397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398 eval result=\$gl_cv_type_${gltype}_suffix
25399 test "$result" != no && break
25402 eval ac_res=\$gl_cv_type_${gltype}_suffix
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25404 $as_echo "$ac_res" >&6; }
25405 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25406 eval result=\$gl_cv_type_${gltype}_suffix
25407 test "$result" = no && result=
25408 eval ${GLTYPE}_SUFFIX=\$result
25409 cat >>confdefs.h <<_ACEOF
25410 #define ${GLTYPE}_SUFFIX $result
25419 for gltype in sig_atomic_t wchar_t wint_t ; do
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
25421 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25422 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
25423 $as_echo_n "(cached) " >&6
25425 eval gl_cv_type_${gltype}_suffix=no
25426 eval result=\$gl_cv_type_${gltype}_signed
25427 if test "$result" = yes; then
25432 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25434 '') gltype1='int';;
25435 l) gltype1='long int';;
25436 ll) gltype1='long long int';;
25437 i64) gltype1='__int64';;
25438 u) gltype1='unsigned int';;
25439 ul) gltype1='unsigned long int';;
25440 ull) gltype1='unsigned long long int';;
25441 ui64)gltype1='unsigned __int64';;
25443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25444 /* end confdefs.h. */
25446 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25447 included before <wchar.h>. */
25448 #include <stddef.h>
25449 #include <signal.h>
25451 # include <stdio.h>
25453 # include <wchar.h>
25456 extern $gltype foo;
25457 extern $gltype1 foo;
25466 if ac_fn_c_try_compile "$LINENO"; then :
25467 eval gl_cv_type_${gltype}_suffix=\$glsuf
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25470 eval result=\$gl_cv_type_${gltype}_suffix
25471 test "$result" != no && break
25474 eval ac_res=\$gl_cv_type_${gltype}_suffix
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25476 $as_echo "$ac_res" >&6; }
25477 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25478 eval result=\$gl_cv_type_${gltype}_suffix
25479 test "$result" = no && result=
25480 eval ${GLTYPE}_SUFFIX=\$result
25481 cat >>confdefs.h <<_ACEOF
25482 #define ${GLTYPE}_SUFFIX $result
25489 if test $BITSIZEOF_WINT_T -lt 32; then
25490 BITSIZEOF_WINT_T=32
25496 if test -n "$STDINT_H"; then
25497 GL_GENERATE_STDINT_H_TRUE=
25498 GL_GENERATE_STDINT_H_FALSE='#'
25500 GL_GENERATE_STDINT_H_TRUE='#'
25501 GL_GENERATE_STDINT_H_FALSE=
25506 REPLACE_STRERROR_0=0
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
25508 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
25509 if ${gl_cv_func_strerror_0_works+:} false; then :
25510 $as_echo_n "(cached) " >&6
25512 if test "$cross_compiling" = yes; then :
25514 # Guess yes on glibc systems.
25515 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
25516 # If we don't know, assume the worst.
25517 *) gl_cv_func_strerror_0_works="guessing no" ;;
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25523 #include <string.h>
25532 str = strerror (0);
25533 if (!*str) result |= 1;
25534 if (errno) result |= 2;
25535 if (strstr (str, "nknown") || strstr (str, "ndefined"))
25542 if ac_fn_c_try_run "$LINENO"; then :
25543 gl_cv_func_strerror_0_works=yes
25545 gl_cv_func_strerror_0_works=no
25547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25548 conftest.$ac_objext conftest.beam conftest.$ac_ext
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
25554 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
25555 case "$gl_cv_func_strerror_0_works" in
25558 REPLACE_STRERROR_0=1
25560 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
25576 if test $gl_cv_have_include_next = yes; then
25577 gl_cv_next_string_h='<'string.h'>'
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
25580 $as_echo_n "checking absolute name of <string.h>... " >&6; }
25581 if ${gl_cv_next_string_h+:} false; then :
25582 $as_echo_n "(cached) " >&6
25587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588 /* end confdefs.h. */
25589 #include <string.h>
25592 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25593 *) gl_absname_cpp="$ac_cpp" ;;
25598 gl_dirsep_regex='[/\\]'
25601 gl_dirsep_regex='\/'
25604 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25605 gl_header_literal_regex=`echo 'string.h' \
25606 | sed -e "$gl_make_literal_regex_sed"`
25607 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25608 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25614 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25615 sed -n "$gl_absolute_header_sed"`
25617 gl_header=$gl_cv_absolute_string_h
25618 gl_cv_next_string_h='"'$gl_header'"'
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
25623 $as_echo "$gl_cv_next_string_h" >&6; }
25625 NEXT_STRING_H=$gl_cv_next_string_h
25627 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25629 gl_next_as_first_directive='<'string.h'>'
25631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25632 gl_next_as_first_directive=$gl_cv_next_string_h
25634 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
25641 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
25642 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25644 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25645 if eval \${$as_gl_Symbol+:} false; then :
25646 $as_echo_n "(cached) " >&6
25648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649 /* end confdefs.h. */
25650 #include <string.h>
25661 if ac_fn_c_try_compile "$LINENO"; then :
25662 eval "$as_gl_Symbol=yes"
25664 eval "$as_gl_Symbol=no"
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25668 eval ac_res=\$$as_gl_Symbol
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25670 $as_echo "$ac_res" >&6; }
25671 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25672 cat >>confdefs.h <<_ACEOF
25673 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25676 eval ac_cv_have_decl_$gl_func=yes
25681 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
25682 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
25688 cat >>confdefs.h <<_ACEOF
25689 #define HAVE_DECL_STRNLEN $ac_have_decl
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25693 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25694 if ${ac_cv_header_stat_broken+:} false; then :
25695 $as_echo_n "(cached) " >&6
25697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h. */
25699 #include <sys/types.h>
25700 #include <sys/stat.h>
25702 #if defined S_ISBLK && defined S_IFDIR
25703 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25706 #if defined S_ISBLK && defined S_IFCHR
25707 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25710 #if defined S_ISLNK && defined S_IFREG
25711 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25714 #if defined S_ISSOCK && defined S_IFREG
25715 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25719 if ac_fn_c_try_compile "$LINENO"; then :
25720 ac_cv_header_stat_broken=no
25722 ac_cv_header_stat_broken=yes
25724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25727 $as_echo "$ac_cv_header_stat_broken" >&6; }
25728 if test $ac_cv_header_stat_broken = yes; then
25730 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25736 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25737 if test "x$ac_cv_type_mode_t" = xyes; then :
25741 cat >>confdefs.h <<_ACEOF
25765 if test $gl_cv_have_include_next = yes; then
25766 gl_cv_next_sys_types_h='<'sys/types.h'>'
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
25769 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
25770 if ${gl_cv_next_sys_types_h+:} false; then :
25771 $as_echo_n "(cached) " >&6
25776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h. */
25778 #include <sys/types.h>
25781 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25782 *) gl_absname_cpp="$ac_cpp" ;;
25787 gl_dirsep_regex='[/\\]'
25790 gl_dirsep_regex='\/'
25793 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25794 gl_header_literal_regex=`echo 'sys/types.h' \
25795 | sed -e "$gl_make_literal_regex_sed"`
25796 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25797 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25803 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25804 sed -n "$gl_absolute_header_sed"`
25806 gl_header=$gl_cv_absolute_sys_types_h
25807 gl_cv_next_sys_types_h='"'$gl_header'"'
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
25812 $as_echo "$gl_cv_next_sys_types_h" >&6; }
25814 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
25816 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25818 gl_next_as_first_directive='<'sys/types.h'>'
25820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25821 gl_next_as_first_directive=$gl_cv_next_sys_types_h
25823 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
25837 GNULIB_NANOSLEEP=0;
25842 HAVE_DECL_LOCALTIME_R=1;
25846 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
25847 REPLACE_MKTIME=GNULIB_PORTCHECK;
25848 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
25849 REPLACE_TIMEGM=GNULIB_PORTCHECK;
25851 : ${GNULIB_GETTIMEOFDAY=0};
25853 REPLACE_LOCALTIME=0;
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
25858 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
25859 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
25860 $as_echo_n "(cached) " >&6
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25869 static struct timespec x; x.tv_sec = x.tv_nsec;
25874 if ac_fn_c_try_compile "$LINENO"; then :
25875 gl_cv_sys_struct_timespec_in_time_h=yes
25877 gl_cv_sys_struct_timespec_in_time_h=no
25879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
25882 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
25884 TIME_H_DEFINES_STRUCT_TIMESPEC=0
25885 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
25886 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
25887 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
25888 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
25889 TIME_H_DEFINES_STRUCT_TIMESPEC=1
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
25892 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
25893 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
25894 $as_echo_n "(cached) " >&6
25896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h. */
25898 #include <sys/time.h>
25903 static struct timespec x; x.tv_sec = x.tv_nsec;
25908 if ac_fn_c_try_compile "$LINENO"; then :
25909 gl_cv_sys_struct_timespec_in_sys_time_h=yes
25911 gl_cv_sys_struct_timespec_in_sys_time_h=no
25913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
25916 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
25917 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
25918 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
25921 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
25922 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
25923 $as_echo_n "(cached) " >&6
25925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25926 /* end confdefs.h. */
25927 #include <pthread.h>
25932 static struct timespec x; x.tv_sec = x.tv_nsec;
25937 if ac_fn_c_try_compile "$LINENO"; then :
25938 gl_cv_sys_struct_timespec_in_pthread_h=yes
25940 gl_cv_sys_struct_timespec_in_pthread_h=no
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
25945 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
25946 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
25947 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
25950 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
25951 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
25952 $as_echo_n "(cached) " >&6
25954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955 /* end confdefs.h. */
25956 #include <unistd.h>
25961 static struct timespec x; x.tv_sec = x.tv_nsec;
25966 if ac_fn_c_try_compile "$LINENO"; then :
25967 gl_cv_sys_struct_timespec_in_unistd_h=yes
25969 gl_cv_sys_struct_timespec_in_unistd_h=no
25971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
25974 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
25975 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
25976 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
25997 if test $gl_cv_have_include_next = yes; then
25998 gl_cv_next_time_h='<'time.h'>'
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
26001 $as_echo_n "checking absolute name of <time.h>... " >&6; }
26002 if ${gl_cv_next_time_h+:} false; then :
26003 $as_echo_n "(cached) " >&6
26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h. */
26013 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26014 *) gl_absname_cpp="$ac_cpp" ;;
26019 gl_dirsep_regex='[/\\]'
26022 gl_dirsep_regex='\/'
26025 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26026 gl_header_literal_regex=`echo 'time.h' \
26027 | sed -e "$gl_make_literal_regex_sed"`
26028 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26029 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26035 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26036 sed -n "$gl_absolute_header_sed"`
26038 gl_header=$gl_cv_absolute_time_h
26039 gl_cv_next_time_h='"'$gl_header'"'
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
26044 $as_echo "$gl_cv_next_time_h" >&6; }
26046 NEXT_TIME_H=$gl_cv_next_time_h
26048 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26050 gl_next_as_first_directive='<'time.h'>'
26052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26053 gl_next_as_first_directive=$gl_cv_next_time_h
26055 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
26068 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
26073 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
26078 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
26085 if test "$HAVE_LIBUNISTRING" = yes; then
26086 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
26087 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
26088 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
26091 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
26092 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
26098 cat >>confdefs.h <<_ACEOF
26099 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
26102 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
26103 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
26109 cat >>confdefs.h <<_ACEOF
26110 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
26113 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
26114 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
26120 cat >>confdefs.h <<_ACEOF
26121 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
26124 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
26125 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
26131 cat >>confdefs.h <<_ACEOF
26132 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
26135 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
26136 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
26142 cat >>confdefs.h <<_ACEOF
26143 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
26146 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
26147 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
26153 cat >>confdefs.h <<_ACEOF
26154 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
26157 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
26158 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
26164 cat >>confdefs.h <<_ACEOF
26165 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
26168 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
26169 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
26175 cat >>confdefs.h <<_ACEOF
26176 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
26179 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
26180 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
26186 cat >>confdefs.h <<_ACEOF
26187 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
26190 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
26191 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
26197 cat >>confdefs.h <<_ACEOF
26198 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
26201 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
26202 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
26208 cat >>confdefs.h <<_ACEOF
26209 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
26212 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
26213 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
26219 cat >>confdefs.h <<_ACEOF
26220 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
26225 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
26226 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
26227 $as_echo_n "(cached) " >&6
26229 gl_cv_header_wchar_h_correct_inline=yes
26230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26231 /* end confdefs.h. */
26233 #define wcstod renamed_wcstod
26234 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26236 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26237 included before <wchar.h>. */
26238 #include <stddef.h>
26242 extern int zero (void);
26243 int main () { return zero(); }
26246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26247 (eval $ac_compile) 2>&5
26249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26250 test $ac_status = 0; }; then
26251 mv conftest.$ac_objext conftest1.$ac_objext
26252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26255 #define wcstod renamed_wcstod
26256 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26258 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26259 included before <wchar.h>. */
26260 #include <stddef.h>
26264 int zero (void) { return 0; }
26267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26268 (eval $ac_compile) 2>&5
26270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26271 test $ac_status = 0; }; then
26272 mv conftest.$ac_objext conftest2.$ac_objext
26273 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
26276 gl_cv_header_wchar_h_correct_inline=no
26280 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
26284 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
26285 if test $gl_cv_header_wchar_h_correct_inline = no; then
26286 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
26287 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
26288 C99 mode. You have four options:
26289 - Add the flag -fgnu89-inline to CC and reconfigure, or
26290 - Fix your include files, using parts of
26291 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
26292 - Use a gcc version older than 4.3, or
26293 - Don't use the flags -std=c99 or -std=gnu99.
26294 Configuration aborted." "$LINENO" 5
26301 if test $ac_cv_header_features_h = yes; then
26312 GL_COND_LIBTOOL_TRUE=
26313 GL_COND_LIBTOOL_FALSE='#'
26315 GL_COND_LIBTOOL_TRUE='#'
26316 GL_COND_LIBTOOL_FALSE=
26319 gl_cond_libtool=false
26322 gl_m4_base='gnulib-m4'
26332 gl_source_base='gnulib-lib'
26338 if test $ac_cv_func_alloca_works = no; then
26345 # Define an additional variable used in the Makefile substitution.
26347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348 /* end confdefs.h. */
26350 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
26355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26356 $EGREP "Need own alloca" >/dev/null 2>&1; then :
26364 if test -n "$ALLOCA_H"; then
26365 GL_GENERATE_ALLOCA_H_TRUE=
26366 GL_GENERATE_ALLOCA_H_FALSE='#'
26368 GL_GENERATE_ALLOCA_H_TRUE='#'
26369 GL_GENERATE_ALLOCA_H_FALSE=
26376 if test "$CXX_CHOICE" = no; then
26379 if test -z "$CXX"; then
26380 if test -n "$CCC"; then
26383 if test -n "$ac_tool_prefix"; then
26384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
26386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26389 $as_echo_n "checking for $ac_word... " >&6; }
26390 if ${ac_cv_prog_CXX+:} false; then :
26391 $as_echo_n "(cached) " >&6
26393 if test -n "$CXX"; then
26394 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26397 for as_dir in $PATH
26400 test -z "$as_dir" && as_dir=.
26401 for ac_exec_ext in '' $ac_executable_extensions; do
26402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26403 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26413 CXX=$ac_cv_prog_CXX
26414 if test -n "$CXX"; then
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26416 $as_echo "$CXX" >&6; }
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26419 $as_echo "no" >&6; }
26423 test -n "$CXX" && break
26426 if test -z "$CXX"; then
26428 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
26430 # Extract the first word of "$ac_prog", so it can be a program name with args.
26431 set dummy $ac_prog; ac_word=$2
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26433 $as_echo_n "checking for $ac_word... " >&6; }
26434 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26435 $as_echo_n "(cached) " >&6
26437 if test -n "$ac_ct_CXX"; then
26438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26441 for as_dir in $PATH
26444 test -z "$as_dir" && as_dir=.
26445 for ac_exec_ext in '' $ac_executable_extensions; do
26446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26447 ac_cv_prog_ac_ct_CXX="$ac_prog"
26448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26457 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26458 if test -n "$ac_ct_CXX"; then
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26460 $as_echo "$ac_ct_CXX" >&6; }
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26463 $as_echo "no" >&6; }
26467 test -n "$ac_ct_CXX" && break
26470 if test "x$ac_ct_CXX" = x; then
26473 case $cross_compiling:$ac_tool_warned in
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26477 ac_tool_warned=yes ;;
26485 if test "$CXX" != no; then
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
26487 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
26489 ac_cpp='$CXXCPP $CPPFLAGS'
26490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26496 echo 'int main () { return 0; }' > conftest.$ac_ext
26497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26498 (eval $ac_link) 2>&5
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; } && test -s conftest$ac_exeext; then
26502 gl_cv_prog_ansicxx_works=yes
26503 if (./conftest; exit) 2>/dev/null; then
26504 gl_cv_prog_ansicxx_cross=no
26506 gl_cv_prog_ansicxx_cross=yes
26509 gl_cv_prog_ansicxx_works=no
26513 ac_cpp='$CPP $CPPFLAGS'
26514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
26519 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
26520 if test $gl_cv_prog_ansicxx_works = no; then
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
26524 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
26526 ac_cpp='$CXXCPP $CPPFLAGS'
26527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26531 cat <<EOF > conftest.$ac_ext
26532 #include <iostream>
26533 namespace test { using namespace std; }
26535 int main () { return 0; }
26537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26538 (eval $ac_link) 2>&5
26540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26541 test $ac_status = 0; } && test -s conftest$ac_exeext; then
26542 gl_cv_prog_ansicxx_namespaces=yes
26544 gl_cv_prog_ansicxx_namespaces=no
26548 ac_cpp='$CPP $CPPFLAGS'
26549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
26554 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
26555 if test $gl_cv_prog_ansicxx_namespaces = no; then
26563 if test "$CXX" != no; then
26572 if test "$CXX" != no; then
26574 depcc="$CXX" am_compiler_list=
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26577 $as_echo_n "checking dependency style of $depcc... " >&6; }
26578 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
26579 $as_echo_n "(cached) " >&6
26581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26582 # We make a subdir and do the tests there. Otherwise we can end up
26583 # making bogus files that we don't know about and never remove. For
26584 # instance it was reported that on HP-UX the gcc test will end up
26585 # making a dummy file named 'D' -- because '-MD' means "put the output
26587 rm -rf conftest.dir
26589 # Copy depcomp to subdir because otherwise we won't find it if we're
26590 # using a relative directory.
26591 cp "$am_depcomp" conftest.dir
26593 # We will build objects and dependencies in a subdirectory because
26594 # it helps to detect inapplicable dependency modes. For instance
26595 # both Tru64's cc and ICC support -MD to output dependencies as a
26596 # side effect of compilation, but ICC will put the dependencies in
26597 # the current directory while Tru64 will put them in the object
26601 am_cv_CXX_dependencies_compiler_type=none
26602 if test "$am_compiler_list" = ""; then
26603 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26605 am__universal=false
26606 case " $depcc " in #(
26607 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26610 for depmode in $am_compiler_list; do
26611 # Setup a source with many dependencies, because some compilers
26612 # like to wrap large dependency lists on column 80 (with \), and
26613 # we should not choose a depcomp mode which is confused by this.
26615 # We need to recreate these files for each test, as the compiler may
26616 # overwrite some of them when testing with obscure command lines.
26617 # This happens at least with the AIX C compiler.
26619 for i in 1 2 3 4 5 6; do
26620 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26621 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26622 # Solaris 10 /bin/sh.
26623 echo '/* dummy */' > sub/conftst$i.h
26625 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26627 # We check with '-c' and '-o' for the sake of the "dashmstdout"
26628 # mode. It turns out that the SunPro C++ compiler does not properly
26629 # handle '-M -o', and we need to detect this. Also, some Intel
26630 # versions had trouble with output in subdirs.
26631 am__obj=sub/conftest.${OBJEXT-o}
26632 am__minus_obj="-o $am__obj"
26635 # This depmode causes a compiler race in universal mode.
26636 test "$am__universal" = false || continue
26639 # After this tag, mechanisms are not by side-effect, so they'll
26640 # only be used when explicitly requested.
26641 if test "x$enable_dependency_tracking" = xyes; then
26647 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26648 # This compiler won't grok '-c -o', but also, the minuso test has
26649 # not run yet. These depmodes are late enough in the game, and
26650 # so weak that their functioning should not be impacted.
26651 am__obj=conftest.${OBJEXT-o}
26656 if depmode=$depmode \
26657 source=sub/conftest.c object=$am__obj \
26658 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26659 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26660 >/dev/null 2>conftest.err &&
26661 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26662 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26663 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26664 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26665 # icc doesn't choke on unknown options, it will just issue warnings
26666 # or remarks (even with -Werror). So we grep stderr for any message
26667 # that says an option was ignored or not supported.
26668 # When given -MP, icc 7.0 and 7.1 complain thusly:
26669 # icc: Command line warning: ignoring option '-M'; no argument required
26670 # The diagnosis changed in icc 8.0:
26671 # icc: Command line remark: option '-MP' not supported
26672 if (grep 'ignoring option' conftest.err ||
26673 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26674 am_cv_CXX_dependencies_compiler_type=$depmode
26681 rm -rf conftest.dir
26683 am_cv_CXX_dependencies_compiler_type=none
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26688 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26689 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26692 test "x$enable_dependency_tracking" != xno \
26693 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26694 am__fastdepCXX_TRUE=
26695 am__fastdepCXX_FALSE='#'
26697 am__fastdepCXX_TRUE='#'
26698 am__fastdepCXX_FALSE=
26704 am__fastdepCXX_TRUE=
26705 am__fastdepCXX_FALSE='#'
26707 am__fastdepCXX_TRUE='#'
26708 am__fastdepCXX_FALSE=
26714 for ac_func in atexit
26716 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
26717 if test "x$ac_cv_func_atexit" = xyes; then :
26718 cat >>confdefs.h <<_ACEOF
26719 #define HAVE_ATEXIT 1
26726 if test $ac_cv_func_atexit = no; then
26735 gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
26744 if test $ac_cv_func_canonicalize_file_name = no; then
26745 HAVE_CANONICALIZE_FILE_NAME=0
26746 if test $ac_cv_func_realpath = no; then
26749 case "$gl_cv_func_realpath_works" in
26751 *) REPLACE_REALPATH=1 ;;
26755 case "$gl_cv_func_realpath_works" in
26759 REPLACE_CANONICALIZE_FILE_NAME=1
26765 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
26774 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
26779 cat >>confdefs.h <<_ACEOF
26780 #define GNULIB_CANONICALIZE_LGPL 1
26789 GNULIB_CANONICALIZE_FILE_NAME=1
26795 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
26810 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
26816 if test "x$datarootdir" = x; then
26817 datarootdir='${datadir}'
26820 if test "x$docdir" = x; then
26821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
26824 if test "x$htmldir" = x; then
26825 htmldir='${docdir}'
26828 if test "x$dvidir" = x; then
26832 if test "x$pdfdir" = x; then
26836 if test "x$psdir" = x; then
26840 if test "x$lispdir" = x; then
26841 lispdir='${datarootdir}/emacs/site-lisp'
26844 if test "x$localedir" = x; then
26845 localedir='${datarootdir}/locale'
26848 if test "x$runstatedir" = x; then
26849 runstatedir='${localstatedir}/run'
26853 pkglibexecdir='${libexecdir}/${PACKAGE}'
26857 ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
26862 $as_echo_n "checking whether // is distinct from /... " >&6; }
26863 if ${gl_cv_double_slash_root+:} false; then :
26864 $as_echo_n "(cached) " >&6
26866 if test x"$cross_compiling" = xyes ; then
26867 # When cross-compiling, there is no way to tell whether // is special
26868 # short of a list of hosts. However, the only known hosts to date
26869 # that have a distinct // are Apollo DomainOS (too old to port to),
26870 # Cygwin, and z/OS. If anyone knows of another system for which // has
26871 # special semantics and is distinct from /, please report it to
26872 # <bug-gnulib@gnu.org>.
26874 *-cygwin | i370-ibm-openedition)
26875 gl_cv_double_slash_root=yes ;;
26877 # Be optimistic and assume that / and // are the same when we
26879 gl_cv_double_slash_root='unknown, assuming no' ;;
26882 set x `ls -di / // 2>/dev/null`
26883 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
26884 gl_cv_double_slash_root=no
26886 gl_cv_double_slash_root=yes
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
26891 $as_echo "$gl_cv_double_slash_root" >&6; }
26892 if test "$gl_cv_double_slash_root" = yes; then
26894 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
26910 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
26917 $as_echo_n "checking for error_at_line... " >&6; }
26918 if ${ac_cv_lib_error_at_line+:} false; then :
26919 $as_echo_n "(cached) " >&6
26921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26922 /* end confdefs.h. */
26927 error_at_line (0, 0, "", 0, "an error occurred");
26932 if ac_fn_c_try_link "$LINENO"; then :
26933 ac_cv_lib_error_at_line=yes
26935 ac_cv_lib_error_at_line=no
26937 rm -f core conftest.err conftest.$ac_objext \
26938 conftest$ac_exeext conftest.$ac_ext
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
26941 $as_echo "$ac_cv_lib_error_at_line" >&6; }
26943 if test $ac_cv_lib_error_at_line = no; then
26952 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
26961 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
26965 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
26970 cat >>confdefs.h <<_ACEOF
26971 #define GNULIB_FWRITEERROR 1
26980 if test $REPLACE_GETOPT = 1; then
26989 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
26999 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
27004 GNULIB_GL_UNISTD_H_GETOPT=1
27009 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
27018 if test -n "$gl_replace_getopt"; then
27022 if test $REPLACE_GETOPT = 1; then
27026 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
27032 if test $REPLACE_GETOPT = 1; then
27041 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
27051 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
27056 GNULIB_GL_UNISTD_H_GETOPT=1
27067 gl_gettimeofday_timezone=void
27068 if test $ac_cv_func_gettimeofday != yes; then
27069 HAVE_GETTIMEOFDAY=0
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
27075 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
27076 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
27077 $as_echo_n "(cached) " >&6
27079 if test "$cross_compiling" = yes; then :
27080 # When cross-compiling:
27082 # Guess all is fine on glibc systems.
27083 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
27084 # If we don't know, assume the worst.
27085 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
27089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27090 /* end confdefs.h. */
27091 #include <string.h>
27092 #include <sys/time.h>
27094 #include <stdlib.h>
27102 struct tm saved_lt;
27104 lt = localtime (&t);
27106 gettimeofday (&tv, NULL);
27107 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
27113 if ac_fn_c_try_run "$LINENO"; then :
27114 gl_cv_func_gettimeofday_clobber=no
27116 gl_cv_func_gettimeofday_clobber=yes
27118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27119 conftest.$ac_objext conftest.beam conftest.$ac_ext
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
27124 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
27126 case "$gl_cv_func_gettimeofday_clobber" in
27128 REPLACE_GETTIMEOFDAY=1
27131 REPLACE_LOCALTIME=1
27134 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
27140 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
27141 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
27142 $as_echo_n "(cached) " >&6
27144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27145 /* end confdefs.h. */
27146 #include <sys/time.h>
27148 int gettimeofday (struct timeval *restrict, void *restrict);
27153 /* glibc uses struct timezone * rather than the POSIX void *
27154 if _GNU_SOURCE is defined. However, since the only portable
27155 use of gettimeofday uses NULL as the second parameter, and
27156 since the glibc definition is actually more typesafe, it is
27157 not worth wrapping this to get a compliant signature. */
27158 int (*f) (struct timeval *restrict, void *restrict)
27161 return !(x | c.tv_sec | c.tv_usec);
27167 if ac_fn_c_try_compile "$LINENO"; then :
27168 gl_cv_func_gettimeofday_posix_signature=yes
27170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27172 #include <sys/time.h>
27173 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
27183 if ac_fn_c_try_compile "$LINENO"; then :
27184 gl_cv_func_gettimeofday_posix_signature=almost
27186 gl_cv_func_gettimeofday_posix_signature=no
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
27193 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
27194 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
27195 gl_gettimeofday_timezone='struct timezone'
27196 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
27197 REPLACE_GETTIMEOFDAY=1
27199 if test $REPLACE_STRUCT_TIMEVAL = 1; then
27200 REPLACE_GETTIMEOFDAY=1
27205 cat >>confdefs.h <<_ACEOF
27206 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
27210 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
27219 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
27222 for ac_header in sys/timeb.h
27224 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
27225 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
27226 cat >>confdefs.h <<_ACEOF
27227 #define HAVE_SYS_TIMEB_H 1
27234 for ac_func in _ftime
27236 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
27237 if test "x$ac_cv_func__ftime" = xyes; then :
27238 cat >>confdefs.h <<_ACEOF
27239 #define HAVE__FTIME 1
27252 GNULIB_GETTIMEOFDAY=1
27258 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
27288 if test $gl_cv_have_include_next = yes; then
27289 gl_cv_next_iconv_h='<'iconv.h'>'
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
27292 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
27293 if ${gl_cv_next_iconv_h+:} false; then :
27294 $as_echo_n "(cached) " >&6
27297 if test $ac_cv_header_iconv_h = yes; then
27302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27303 /* end confdefs.h. */
27307 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27308 *) gl_absname_cpp="$ac_cpp" ;;
27313 gl_dirsep_regex='[/\\]'
27316 gl_dirsep_regex='\/'
27319 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27320 gl_header_literal_regex=`echo 'iconv.h' \
27321 | sed -e "$gl_make_literal_regex_sed"`
27322 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27323 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27329 gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27330 sed -n "$gl_absolute_header_sed"`
27332 gl_header=$gl_cv_absolute_iconv_h
27333 gl_cv_next_iconv_h='"'$gl_header'"'
27335 gl_cv_next_iconv_h='<'iconv.h'>'
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
27341 $as_echo "$gl_cv_next_iconv_h" >&6; }
27343 NEXT_ICONV_H=$gl_cv_next_iconv_h
27345 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27346 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27347 gl_next_as_first_directive='<'iconv.h'>'
27349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27350 gl_next_as_first_directive=$gl_cv_next_iconv_h
27352 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
27362 if test "$am_cv_func_iconv" = yes; then
27366 if test -n "$ICONV_H"; then
27367 GL_GENERATE_ICONV_H_TRUE=
27368 GL_GENERATE_ICONV_H_FALSE='#'
27370 GL_GENERATE_ICONV_H_TRUE='#'
27371 GL_GENERATE_ICONV_H_FALSE=
27375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h. */
27379 #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
27384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27385 $EGREP "gnu_iconv" >/dev/null 2>&1; then :
27386 gl_func_iconv_gnu=yes
27388 gl_func_iconv_gnu=no
27392 if test $gl_func_iconv_gnu = no; then
27395 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
27396 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
27397 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
27398 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
27399 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
27401 if test -n "$iconv_flavor"; then
27403 cat >>confdefs.h <<_ACEOF
27404 #define ICONV_FLAVOR $iconv_flavor
27411 if test -n "$ICONV_H"; then
27412 GL_GENERATE_ICONV_H_TRUE=
27413 GL_GENERATE_ICONV_H_FALSE='#'
27415 GL_GENERATE_ICONV_H_TRUE='#'
27416 GL_GENERATE_ICONV_H_FALSE=
27420 REPLACE_ICONV_OPEN=1
27427 if test $REPLACE_ICONV_OPEN = 1; then
27436 gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
27439 if test $REPLACE_ICONV = 1; then
27448 gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
27458 gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
27464 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
27465 if ${gl_cv_c_inline_effective+:} false; then :
27466 $as_echo_n "(cached) " >&6
27468 if test $ac_cv_c_inline = no; then
27469 gl_cv_c_inline_effective=no
27471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27472 /* end confdefs.h. */
27477 #ifdef __NO_INLINE__
27478 #error "inline is not effective"
27484 if ac_fn_c_try_compile "$LINENO"; then :
27485 gl_cv_c_inline_effective=yes
27487 gl_cv_c_inline_effective=no
27489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
27494 $as_echo "$gl_cv_c_inline_effective" >&6; }
27495 if test $gl_cv_c_inline_effective = yes; then
27497 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
27506 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
27507 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27509 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
27510 before <wchar.h>. */
27511 #include <stddef.h>
27515 #include <wctype.h>
27518 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
27524 cat >>confdefs.h <<_ACEOF
27525 #define HAVE_DECL_ISWBLANK $ac_have_decl
27528 if test $ac_cv_func_iswblank = no; then
27530 if test $ac_cv_have_decl_iswblank = yes; then
27534 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27537 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
27543 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27546 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
27555 gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
27570 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
27576 $as_echo_n "checking whether to use Java... " >&6; }
27577 # Check whether --enable-java was given.
27578 if test "${enable_java+set}" = set; then :
27579 enableval=$enable_java; JAVA_CHOICE="$enableval"
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
27585 $as_echo "$JAVA_CHOICE" >&6; }
27586 if test "$JAVA_CHOICE" = yes; then
27587 # Check whether --enable-native-java was given.
27588 if test "${enable_native_java+set}" = set; then :
27589 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
27595 # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
27596 ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
27612 if test $gl_cv_have_include_next = yes; then
27613 gl_cv_next_langinfo_h='<'langinfo.h'>'
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
27616 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
27617 if ${gl_cv_next_langinfo_h+:} false; then :
27618 $as_echo_n "(cached) " >&6
27621 if test $ac_cv_header_langinfo_h = yes; then
27626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27627 /* end confdefs.h. */
27628 #include <langinfo.h>
27631 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27632 *) gl_absname_cpp="$ac_cpp" ;;
27637 gl_dirsep_regex='[/\\]'
27640 gl_dirsep_regex='\/'
27643 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27644 gl_header_literal_regex=`echo 'langinfo.h' \
27645 | sed -e "$gl_make_literal_regex_sed"`
27646 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27647 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27653 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27654 sed -n "$gl_absolute_header_sed"`
27656 gl_header=$gl_cv_absolute_langinfo_h
27657 gl_cv_next_langinfo_h='"'$gl_header'"'
27659 gl_cv_next_langinfo_h='<'langinfo.h'>'
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
27665 $as_echo "$gl_cv_next_langinfo_h" >&6; }
27667 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
27669 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27670 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27671 gl_next_as_first_directive='<'langinfo.h'>'
27673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27674 gl_next_as_first_directive=$gl_cv_next_langinfo_h
27676 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
27682 HAVE_LANGINFO_CODESET=0
27683 HAVE_LANGINFO_T_FMT_AMPM=0
27684 HAVE_LANGINFO_ERA=0
27685 HAVE_LANGINFO_YESEXPR=0
27687 if test $ac_cv_header_langinfo_h = yes; then
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
27690 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
27691 if ${gl_cv_header_langinfo_codeset+:} false; then :
27692 $as_echo_n "(cached) " >&6
27694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27695 /* end confdefs.h. */
27696 #include <langinfo.h>
27707 if ac_fn_c_try_compile "$LINENO"; then :
27708 gl_cv_header_langinfo_codeset=yes
27710 gl_cv_header_langinfo_codeset=no
27712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
27716 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
27717 if test $gl_cv_header_langinfo_codeset = yes; then
27718 HAVE_LANGINFO_CODESET=1
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
27721 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
27722 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
27723 $as_echo_n "(cached) " >&6
27725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27726 /* end confdefs.h. */
27727 #include <langinfo.h>
27728 int a = T_FMT_AMPM;
27738 if ac_fn_c_try_compile "$LINENO"; then :
27739 gl_cv_header_langinfo_t_fmt_ampm=yes
27741 gl_cv_header_langinfo_t_fmt_ampm=no
27743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
27747 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
27748 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
27749 HAVE_LANGINFO_T_FMT_AMPM=1
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
27752 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
27753 if ${gl_cv_header_langinfo_era+:} false; then :
27754 $as_echo_n "(cached) " >&6
27756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27757 /* end confdefs.h. */
27758 #include <langinfo.h>
27769 if ac_fn_c_try_compile "$LINENO"; then :
27770 gl_cv_header_langinfo_era=yes
27772 gl_cv_header_langinfo_era=no
27774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
27778 $as_echo "$gl_cv_header_langinfo_era" >&6; }
27779 if test $gl_cv_header_langinfo_era = yes; then
27780 HAVE_LANGINFO_ERA=1
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
27783 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
27784 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
27785 $as_echo_n "(cached) " >&6
27787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27789 #include <langinfo.h>
27800 if ac_fn_c_try_compile "$LINENO"; then :
27801 gl_cv_header_langinfo_yesexpr=yes
27803 gl_cv_header_langinfo_yesexpr=no
27805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
27809 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
27810 if test $gl_cv_header_langinfo_yesexpr = yes; then
27811 HAVE_LANGINFO_YESEXPR=1
27823 for gl_func in nl_langinfo; do
27824 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27826 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27827 if eval \${$as_gl_Symbol+:} false; then :
27828 $as_echo_n "(cached) " >&6
27830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h. */
27832 #include <langinfo.h>
27843 if ac_fn_c_try_compile "$LINENO"; then :
27844 eval "$as_gl_Symbol=yes"
27846 eval "$as_gl_Symbol=no"
27848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27850 eval ac_res=\$$as_gl_Symbol
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27852 $as_echo "$ac_res" >&6; }
27853 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27854 cat >>confdefs.h <<_ACEOF
27855 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27858 eval ac_cv_have_decl_$gl_func=yes
27872 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
27885 $as_echo "#define _LCONV_C99 1" >>confdefs.h
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 ${gl_cv_header_locale_h_posix2001+:} false; 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;
27899 int y = sizeof (((struct lconv *) 0)->decimal_point);
27908 if ac_fn_c_try_compile "$LINENO"; then :
27909 gl_cv_header_locale_h_posix2001=yes
27911 gl_cv_header_locale_h_posix2001=no
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
27916 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
27919 if test $ac_cv_header_xlocale_h = yes; then
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
27922 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
27923 if ${gl_cv_header_locale_has_locale_t+:} false; then :
27924 $as_echo_n "(cached) " >&6
27926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27927 /* end confdefs.h. */
27928 #include <locale.h>
27938 if ac_fn_c_try_compile "$LINENO"; then :
27939 gl_cv_header_locale_has_locale_t=yes
27941 gl_cv_header_locale_has_locale_t=no
27943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
27947 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
27948 if test $gl_cv_header_locale_has_locale_t = yes; then
27949 gl_cv_header_locale_h_needs_xlocale_h=no
27951 gl_cv_header_locale_h_needs_xlocale_h=yes
27955 gl_cv_header_locale_h_needs_xlocale_h=no
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
27960 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
27961 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
27962 $as_echo_n "(cached) " >&6
27964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27965 /* end confdefs.h. */
27966 #include <locale.h>
27968 int x = sizeof (l.decimal_point);
27969 int y = sizeof (l.int_p_cs_precedes);
27978 if ac_fn_c_try_compile "$LINENO"; then :
27979 gl_cv_sys_struct_lconv_ok=yes
27981 gl_cv_sys_struct_lconv_ok=no
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
27987 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
27988 if test $gl_cv_sys_struct_lconv_ok = no; then
27989 REPLACE_STRUCT_LCONV=1
28000 if test $gl_cv_have_include_next = yes; then
28001 gl_cv_next_locale_h='<'locale.h'>'
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
28004 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
28005 if ${gl_cv_next_locale_h+:} false; then :
28006 $as_echo_n "(cached) " >&6
28011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28012 /* end confdefs.h. */
28013 #include <locale.h>
28016 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28017 *) gl_absname_cpp="$ac_cpp" ;;
28022 gl_dirsep_regex='[/\\]'
28025 gl_dirsep_regex='\/'
28028 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28029 gl_header_literal_regex=`echo 'locale.h' \
28030 | sed -e "$gl_make_literal_regex_sed"`
28031 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28032 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28038 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28039 sed -n "$gl_absolute_header_sed"`
28041 gl_header=$gl_cv_absolute_locale_h
28042 gl_cv_next_locale_h='"'$gl_header'"'
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
28047 $as_echo "$gl_cv_next_locale_h" >&6; }
28049 NEXT_LOCALE_H=$gl_cv_next_locale_h
28051 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28053 gl_next_as_first_directive='<'locale.h'>'
28055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28056 gl_next_as_first_directive=$gl_cv_next_locale_h
28058 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
28065 for gl_func in setlocale duplocale; do
28066 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28068 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28069 if eval \${$as_gl_Symbol+:} false; then :
28070 $as_echo_n "(cached) " >&6
28072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h. */
28074 #include <locale.h>
28075 /* Some systems provide declarations in a non-standard header. */
28077 # include <xlocale.h>
28089 if ac_fn_c_try_compile "$LINENO"; then :
28090 eval "$as_gl_Symbol=yes"
28092 eval "$as_gl_Symbol=no"
28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28096 eval ac_res=\$$as_gl_Symbol
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28098 $as_echo "$ac_res" >&6; }
28099 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28100 cat >>confdefs.h <<_ACEOF
28101 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28104 eval ac_cv_have_decl_$gl_func=yes
28112 for ac_func in setlocale uselocale
28114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28117 cat >>confdefs.h <<_ACEOF
28118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28124 if test $ac_cv_func_uselocale = yes; then
28125 for ac_func in getlocalename_l
28127 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
28128 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
28129 cat >>confdefs.h <<_ACEOF
28130 #define HAVE_GETLOCALENAME_L 1
28140 if test "$gl_threads_api" = posix; then
28141 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
28142 # pthread_rwlock_* functions.
28143 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
28145 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
28147 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
28151 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
28152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28153 /* end confdefs.h. */
28155 #include <pthread.h>
28160 #if __FreeBSD__ == 4
28161 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
28162 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
28163 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
28164 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
28166 int x = (int)PTHREAD_MUTEX_RECURSIVE;
28174 if ac_fn_c_try_compile "$LINENO"; then :
28176 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
28179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28185 cat >>confdefs.h <<_ACEOF
28186 #define GNULIB_LOCK 1
28193 if test $ac_cv_func_lstat = yes; then
28195 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
28204 if test $REPLACE_LSTAT = 1; then
28213 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
28228 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
28253 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
28258 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
28259 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
28260 $as_echo_n "(cached) " >&6
28264 # Guess no on AIX and OSF/1.
28265 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
28266 # Guess yes otherwise.
28267 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
28269 if test $LOCALE_JA != none; then
28270 if test "$cross_compiling" = yes; then :
28273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28274 /* end confdefs.h. */
28276 #include <locale.h>
28277 #include <string.h>
28278 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28280 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28281 included before <wchar.h>. */
28282 #include <stddef.h>
28288 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28290 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28294 memset (&state, '\0', sizeof (mbstate_t));
28295 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28296 if (mbsinit (&state))
28302 if ac_fn_c_try_run "$LINENO"; then :
28303 gl_cv_func_mbrtowc_incomplete_state=yes
28305 gl_cv_func_mbrtowc_incomplete_state=no
28307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28308 conftest.$ac_objext conftest.beam conftest.$ac_ext
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
28315 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
28321 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
28322 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
28323 $as_echo_n "(cached) " >&6
28327 # Guess no on Solaris 8.
28328 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
28329 # Guess yes otherwise.
28330 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
28332 if test $LOCALE_ZH_CN != none; then
28333 if test "$cross_compiling" = yes; then :
28336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28337 /* end confdefs.h. */
28339 #include <locale.h>
28340 #include <stdlib.h>
28341 #include <string.h>
28342 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28344 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28345 included before <wchar.h>. */
28346 #include <stddef.h>
28352 /* This fails on Solaris 8:
28353 mbrtowc returns 2, and sets wc to 0x00F0.
28354 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
28355 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28357 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
28361 memset (&state, '\0', sizeof (mbstate_t));
28362 if (mbrtowc (&wc, input + 3, 6, &state) != 4
28363 && mbtowc (&wc, input + 3, 6) == 4)
28369 if ac_fn_c_try_run "$LINENO"; then :
28370 gl_cv_func_mbrtowc_sanitycheck=yes
28372 gl_cv_func_mbrtowc_sanitycheck=no
28374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28375 conftest.$ac_objext conftest.beam conftest.$ac_ext
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
28382 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
28384 REPLACE_MBSTATE_T=0
28385 case "$gl_cv_func_mbrtowc_incomplete_state" in
28387 *) REPLACE_MBSTATE_T=1 ;;
28389 case "$gl_cv_func_mbrtowc_sanitycheck" in
28391 *) REPLACE_MBSTATE_T=1 ;;
28394 REPLACE_MBSTATE_T=1
28399 if test $ac_cv_func_mbrtowc = no; then
28401 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
28402 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28404 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28405 included before <wchar.h>. */
28406 #include <stddef.h>
28412 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
28418 cat >>confdefs.h <<_ACEOF
28419 #define HAVE_DECL_MBRTOWC $ac_have_decl
28422 if test $ac_cv_have_decl_mbrtowc = yes; then
28426 if test $REPLACE_MBSTATE_T = 1; then
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
28433 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
28434 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
28435 $as_echo_n "(cached) " >&6
28439 # Guess no on Solaris.
28440 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
28441 # Guess yes otherwise.
28442 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
28444 if test $LOCALE_FR_UTF8 != none; then
28445 if test "$cross_compiling" = yes; then :
28448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28449 /* end confdefs.h. */
28451 #include <locale.h>
28452 #include <stdlib.h>
28453 #include <string.h>
28454 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28456 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28457 included before <wchar.h>. */
28458 #include <stddef.h>
28466 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28468 char input[] = "\303\237er";
28473 memset (&state, '\0', sizeof (mbstate_t));
28474 wc = (wchar_t) 0xBADFACE;
28475 ret = mbrtowc (&wc, input, 5, &state);
28478 if (!mbsinit (&state))
28481 memset (&state, '\0', sizeof (mbstate_t));
28482 ret = mbrtowc (NULL, input, 5, &state);
28483 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
28485 if (!mbsinit (&state))
28491 if ac_fn_c_try_run "$LINENO"; then :
28492 gl_cv_func_mbrtowc_null_arg1=yes
28494 gl_cv_func_mbrtowc_null_arg1=no
28496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28497 conftest.$ac_objext conftest.beam conftest.$ac_ext
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
28504 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
28510 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
28511 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
28512 $as_echo_n "(cached) " >&6
28516 # Guess no on OSF/1.
28517 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
28518 # Guess yes otherwise.
28519 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
28521 if test $LOCALE_FR_UTF8 != none; then
28522 if test "$cross_compiling" = yes; then :
28525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28526 /* end confdefs.h. */
28528 #include <locale.h>
28529 #include <string.h>
28530 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28532 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28533 included before <wchar.h>. */
28534 #include <stddef.h>
28540 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28546 memset (&state, '\0', sizeof (mbstate_t));
28547 wc = (wchar_t) 0xBADFACE;
28548 mbrtowc (&wc, NULL, 5, &state);
28549 /* Check that wc was not modified. */
28550 if (wc != (wchar_t) 0xBADFACE)
28556 if ac_fn_c_try_run "$LINENO"; then :
28557 gl_cv_func_mbrtowc_null_arg2=yes
28559 gl_cv_func_mbrtowc_null_arg2=no
28561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28562 conftest.$ac_objext conftest.beam conftest.$ac_ext
28568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
28569 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
28577 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
28578 if ${gl_cv_func_mbrtowc_retval+:} false; then :
28579 $as_echo_n "(cached) " >&6
28583 # Guess no on HP-UX, Solaris, native Windows.
28584 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
28585 # Guess yes otherwise.
28586 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
28588 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
28589 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
28590 if test "$cross_compiling" = yes; then :
28593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28594 /* end confdefs.h. */
28596 #include <locale.h>
28597 #include <string.h>
28598 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28600 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28601 included before <wchar.h>. */
28602 #include <stddef.h>
28609 int found_some_locale = 0;
28610 /* This fails on Solaris. */
28611 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28613 char input[] = "B\303\274\303\237er"; /* "Büßer" */
28617 memset (&state, '\0', sizeof (mbstate_t));
28618 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28621 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
28624 found_some_locale = 1;
28626 /* This fails on HP-UX 11.11. */
28627 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28629 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28633 memset (&state, '\0', sizeof (mbstate_t));
28634 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28637 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
28640 found_some_locale = 1;
28642 /* This fails on native Windows. */
28643 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
28645 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
28649 memset (&state, '\0', sizeof (mbstate_t));
28650 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28653 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28656 found_some_locale = 1;
28658 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
28660 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
28664 memset (&state, '\0', sizeof (mbstate_t));
28665 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28668 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28671 found_some_locale = 1;
28673 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
28675 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
28679 memset (&state, '\0', sizeof (mbstate_t));
28680 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28683 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28686 found_some_locale = 1;
28688 return (found_some_locale ? result : 77);
28691 if ac_fn_c_try_run "$LINENO"; then :
28692 gl_cv_func_mbrtowc_retval=yes
28694 if test $? != 77; then
28695 gl_cv_func_mbrtowc_retval=no
28699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28700 conftest.$ac_objext conftest.beam conftest.$ac_ext
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
28707 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
28713 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
28714 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
28715 $as_echo_n "(cached) " >&6
28719 # Guess no on Solaris 8 and 9.
28720 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
28721 # Guess yes otherwise.
28722 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
28724 if test $LOCALE_ZH_CN != none; then
28725 if test "$cross_compiling" = yes; then :
28728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28729 /* end confdefs.h. */
28731 #include <locale.h>
28732 #include <string.h>
28733 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28735 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28736 included before <wchar.h>. */
28737 #include <stddef.h>
28743 /* This fails on Solaris 8 and 9. */
28744 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28749 memset (&state, '\0', sizeof (mbstate_t));
28750 if (mbrtowc (&wc, "", 1, &state) != 0)
28756 if ac_fn_c_try_run "$LINENO"; then :
28757 gl_cv_func_mbrtowc_nul_retval=yes
28759 gl_cv_func_mbrtowc_nul_retval=no
28761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28762 conftest.$ac_objext conftest.beam conftest.$ac_ext
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
28769 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
28774 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
28775 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
28776 $as_echo_n "(cached) " >&6
28780 # Guess no on AIX and glibc systems.
28782 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
28783 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
28785 if test "$cross_compiling" = yes; then :
28788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28789 /* end confdefs.h. */
28793 static mbstate_t mbs;
28797 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
28800 if ac_fn_c_try_run "$LINENO"; then :
28801 gl_cv_func_mbrtowc_empty_input=yes
28803 gl_cv_func_mbrtowc_empty_input=no
28805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28806 conftest.$ac_objext conftest.beam conftest.$ac_ext
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
28812 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
28816 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
28817 if ${gl_cv_C_locale_sans_EILSEQ+:} false; then :
28818 $as_echo_n "(cached) " >&6
28821 gl_cv_C_locale_sans_EILSEQ="guessing no"
28823 if test "$cross_compiling" = yes; then :
28826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827 /* end confdefs.h. */
28828 #include <limits.h>
28829 #include <locale.h>
28837 char *locale = setlocale (LC_ALL, "C");
28840 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
28844 mbstate_t mbs = { 0, };
28845 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
28855 if ac_fn_c_try_run "$LINENO"; then :
28856 gl_cv_C_locale_sans_EILSEQ=yes
28858 gl_cv_C_locale_sans_EILSEQ=no
28860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28861 conftest.$ac_objext conftest.beam conftest.$ac_ext
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
28866 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
28868 case "$gl_cv_func_mbrtowc_null_arg1" in
28871 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
28876 case "$gl_cv_func_mbrtowc_null_arg2" in
28879 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
28884 case "$gl_cv_func_mbrtowc_retval" in
28887 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
28892 case "$gl_cv_func_mbrtowc_nul_retval" in
28895 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
28900 case "$gl_cv_func_mbrtowc_empty_input" in
28903 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
28908 case $gl_cv_C_locale_sans_EILSEQ in
28911 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
28919 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
28928 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
28945 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
28960 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
28965 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
28966 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
28967 $as_echo_n "(cached) " >&6
28971 # Guess no on AIX and OSF/1.
28972 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
28973 # Guess yes otherwise.
28974 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
28976 if test $LOCALE_JA != none; then
28977 if test "$cross_compiling" = yes; then :
28980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981 /* end confdefs.h. */
28983 #include <locale.h>
28984 #include <string.h>
28985 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28987 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28988 included before <wchar.h>. */
28989 #include <stddef.h>
28995 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28997 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
29001 memset (&state, '\0', sizeof (mbstate_t));
29002 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
29003 if (mbsinit (&state))
29009 if ac_fn_c_try_run "$LINENO"; then :
29010 gl_cv_func_mbrtowc_incomplete_state=yes
29012 gl_cv_func_mbrtowc_incomplete_state=no
29014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29015 conftest.$ac_objext conftest.beam conftest.$ac_ext
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
29022 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
29028 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
29029 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
29030 $as_echo_n "(cached) " >&6
29034 # Guess no on Solaris 8.
29035 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
29036 # Guess yes otherwise.
29037 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
29039 if test $LOCALE_ZH_CN != none; then
29040 if test "$cross_compiling" = yes; then :
29043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29044 /* end confdefs.h. */
29046 #include <locale.h>
29047 #include <stdlib.h>
29048 #include <string.h>
29049 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29051 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29052 included before <wchar.h>. */
29053 #include <stddef.h>
29059 /* This fails on Solaris 8:
29060 mbrtowc returns 2, and sets wc to 0x00F0.
29061 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
29062 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
29064 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
29068 memset (&state, '\0', sizeof (mbstate_t));
29069 if (mbrtowc (&wc, input + 3, 6, &state) != 4
29070 && mbtowc (&wc, input + 3, 6) == 4)
29076 if ac_fn_c_try_run "$LINENO"; then :
29077 gl_cv_func_mbrtowc_sanitycheck=yes
29079 gl_cv_func_mbrtowc_sanitycheck=no
29081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29082 conftest.$ac_objext conftest.beam conftest.$ac_ext
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
29089 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
29091 REPLACE_MBSTATE_T=0
29092 case "$gl_cv_func_mbrtowc_incomplete_state" in
29094 *) REPLACE_MBSTATE_T=1 ;;
29096 case "$gl_cv_func_mbrtowc_sanitycheck" in
29098 *) REPLACE_MBSTATE_T=1 ;;
29101 REPLACE_MBSTATE_T=1
29106 if test $ac_cv_func_mbsinit = no; then
29108 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
29109 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29111 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29112 included before <wchar.h>. */
29113 #include <stddef.h>
29119 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
29125 cat >>confdefs.h <<_ACEOF
29126 #define HAVE_DECL_MBSINIT $ac_have_decl
29129 if test $ac_cv_have_decl_mbsinit = yes; then
29133 if test $REPLACE_MBSTATE_T = 1; then
29137 mingw*) REPLACE_MBSINIT=1 ;;
29142 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
29151 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
29168 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
29175 if test $ac_cv_func_mbslen = yes; then
29192 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
29207 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
29216 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
29225 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
29228 for ac_header in bp-sym.h
29230 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
29231 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
29232 cat >>confdefs.h <<_ACEOF
29233 #define HAVE_BP_SYM_H 1
29253 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
29258 for ac_func in memmove
29260 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
29261 if test "x$ac_cv_func_memmove" = xyes; then :
29262 cat >>confdefs.h <<_ACEOF
29263 #define HAVE_MEMMOVE 1
29270 if test $ac_cv_func_memmove = no; then
29279 gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
29286 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29295 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
29299 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29308 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
29315 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
29317 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
29323 cat >>confdefs.h <<_ACEOF
29324 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
29327 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
29329 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
29335 cat >>confdefs.h <<_ACEOF
29336 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
29341 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
29345 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
29351 for ac_func in raise
29353 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
29354 if test "x$ac_cv_func_raise" = xyes; then :
29355 cat >>confdefs.h <<_ACEOF
29356 #define HAVE_RAISE 1
29362 if test $ac_cv_func_raise = no; then
29365 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29372 if test $gl_cv_type_sigset_t = yes; then
29373 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
29374 if test "x$ac_cv_func_sigprocmask" = xyes; then :
29375 gl_cv_func_sigprocmask=1
29379 if test -z "$gl_cv_func_sigprocmask"; then
29380 HAVE_POSIX_SIGNALBLOCKING=0
29383 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
29388 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
29396 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
29405 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
29420 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
29427 if test $ac_cv_func_readlink = no; then
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
29431 $as_echo_n "checking whether readlink signature is correct... " >&6; }
29432 if ${gl_cv_decl_readlink_works+:} false; then :
29433 $as_echo_n "(cached) " >&6
29435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29436 /* end confdefs.h. */
29437 #include <unistd.h>
29438 /* Cause compilation failure if original declaration has wrong type. */
29439 ssize_t readlink (const char *, char *, size_t);
29448 if ac_fn_c_try_compile "$LINENO"; then :
29449 gl_cv_decl_readlink_works=yes
29451 gl_cv_decl_readlink_works=no
29453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
29456 $as_echo "$gl_cv_decl_readlink_works" >&6; }
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
29458 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
29459 if ${gl_cv_func_readlink_works+:} false; then :
29460 $as_echo_n "(cached) " >&6
29462 # We have readlink, so assume ln -s works.
29463 ln -s conftest.no-such conftest.link
29464 ln -s conftest.link conftest.lnk2
29465 if test "$cross_compiling" = yes; then :
29467 # Guess yes on glibc systems.
29468 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
29469 # If we don't know, assume the worst.
29470 *) gl_cv_func_readlink_works="guessing no" ;;
29474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29475 /* end confdefs.h. */
29476 #include <unistd.h>
29482 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
29487 if ac_fn_c_try_run "$LINENO"; then :
29488 gl_cv_func_readlink_works=yes
29490 gl_cv_func_readlink_works=no
29492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29493 conftest.$ac_objext conftest.beam conftest.$ac_ext
29496 rm -f conftest.link conftest.lnk2
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
29499 $as_echo "$gl_cv_func_readlink_works" >&6; }
29500 case "$gl_cv_func_readlink_works" in
29502 if test "$gl_cv_decl_readlink_works" != yes; then
29508 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
29515 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
29524 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
29541 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
29550 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
29551 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
29552 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
29554 if test $RELOCATABLE = yes; then
29563 gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
29573 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
29599 if test $ac_cv_have_decl_setenv = no; then
29607 for ac_header in search.h
29609 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
29610 if test "x$ac_cv_header_search_h" = xyes; then :
29611 cat >>confdefs.h <<_ACEOF
29612 #define HAVE_SEARCH_H 1
29619 for ac_func in tsearch
29621 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
29622 if test "x$ac_cv_func_tsearch" = xyes; then :
29623 cat >>confdefs.h <<_ACEOF
29624 #define HAVE_TSEARCH 1
29636 mingw*) REPLACE_SETLOCALE=1 ;;
29639 1.5.*) REPLACE_SETLOCALE=1 ;;
29644 if test $REPLACE_SETLOCALE = 1; then
29653 gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
29670 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
29685 if test $gl_cv_have_include_next = yes; then
29686 gl_cv_next_signal_h='<'signal.h'>'
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
29689 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
29690 if ${gl_cv_next_signal_h+:} false; then :
29691 $as_echo_n "(cached) " >&6
29696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29698 #include <signal.h>
29701 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29702 *) gl_absname_cpp="$ac_cpp" ;;
29707 gl_dirsep_regex='[/\\]'
29710 gl_dirsep_regex='\/'
29713 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29714 gl_header_literal_regex=`echo 'signal.h' \
29715 | sed -e "$gl_make_literal_regex_sed"`
29716 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29717 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29723 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29724 sed -n "$gl_absolute_header_sed"`
29726 gl_header=$gl_cv_absolute_signal_h
29727 gl_cv_next_signal_h='"'$gl_header'"'
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
29732 $as_echo "$gl_cv_next_signal_h" >&6; }
29734 NEXT_SIGNAL_H=$gl_cv_next_signal_h
29736 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29738 gl_next_as_first_directive='<'signal.h'>'
29740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29741 gl_next_as_first_directive=$gl_cv_next_signal_h
29743 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
29749 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
29750 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
29751 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
29752 #include <signal.h>
29755 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
29758 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
29767 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
29768 #include <signal.h>
29771 if test "x$ac_cv_type_sighandler_t" = xyes; then :
29774 HAVE_SIGHANDLER_T=0
29779 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
29780 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29782 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29783 if eval \${$as_gl_Symbol+:} false; then :
29784 $as_echo_n "(cached) " >&6
29786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29787 /* end confdefs.h. */
29788 #include <signal.h>
29799 if ac_fn_c_try_compile "$LINENO"; then :
29800 eval "$as_gl_Symbol=yes"
29802 eval "$as_gl_Symbol=no"
29804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29806 eval ac_res=\$$as_gl_Symbol
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29808 $as_echo "$ac_res" >&6; }
29809 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29810 cat >>confdefs.h <<_ACEOF
29811 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29814 eval ac_cv_have_decl_$gl_func=yes
29824 cat >>confdefs.h <<_ACEOF
29825 #define GNULIB_SIGPIPE 1
29830 GNULIB_SIGNAL_H_SIGPIPE=1
29833 GNULIB_STDIO_H_SIGPIPE=1
29835 GNULIB_UNISTD_H_SIGPIPE=1
29839 if test $gl_cv_type_sigset_t = yes; then
29840 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
29841 if test "x$ac_cv_func_sigprocmask" = xyes; then :
29842 gl_cv_func_sigprocmask=1
29846 if test -z "$gl_cv_func_sigprocmask"; then
29847 HAVE_POSIX_SIGNALBLOCKING=0
29850 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
29859 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
29868 GNULIB_SIGPROCMASK=1
29874 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
29880 $as_echo_n "checking for ssize_t... " >&6; }
29881 if ${gt_cv_ssize_t+:} false; then :
29882 $as_echo_n "(cached) " >&6
29884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29885 /* end confdefs.h. */
29886 #include <sys/types.h>
29890 int x = sizeof (ssize_t *) + sizeof (ssize_t);
29896 if ac_fn_c_try_compile "$LINENO"; then :
29901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
29904 $as_echo "$gt_cv_ssize_t" >&6; }
29905 if test $gt_cv_ssize_t = no; then
29907 $as_echo "#define ssize_t int" >>confdefs.h
29914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
29915 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
29916 if ${gl_cv_func_stat_dir_slash+:} false; then :
29917 $as_echo_n "(cached) " >&6
29919 if test "$cross_compiling" = yes; then :
29921 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
29922 *) gl_cv_func_stat_dir_slash="guessing yes";;
29925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29926 /* end confdefs.h. */
29927 #include <sys/stat.h>
29932 struct stat st; return stat (".", &st) != stat ("./", &st);
29937 if ac_fn_c_try_run "$LINENO"; then :
29938 gl_cv_func_stat_dir_slash=yes
29940 gl_cv_func_stat_dir_slash=no
29942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29943 conftest.$ac_objext conftest.beam conftest.$ac_ext
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
29948 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
29950 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
29951 if ${gl_cv_func_stat_file_slash+:} false; then :
29952 $as_echo_n "(cached) " >&6
29955 # Assume that if we have lstat, we can also check symlinks.
29956 if test $ac_cv_func_lstat = yes; then
29957 ln -s conftest.tmp conftest.lnk
29959 if test "$cross_compiling" = yes; then :
29961 # Guess yes on glibc systems.
29962 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
29963 # If we don't know, assume the worst.
29964 *) gl_cv_func_stat_file_slash="guessing no" ;;
29968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29969 /* end confdefs.h. */
29970 #include <sys/stat.h>
29977 if (!stat ("conftest.tmp/", &st))
29980 if (!stat ("conftest.lnk/", &st))
29989 if ac_fn_c_try_run "$LINENO"; then :
29990 gl_cv_func_stat_file_slash=yes
29992 gl_cv_func_stat_file_slash=no
29994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29995 conftest.$ac_objext conftest.beam conftest.$ac_ext
29998 rm -f conftest.tmp conftest.lnk
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
30001 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
30002 case $gl_cv_func_stat_dir_slash in
30003 *no) REPLACE_STAT=1
30005 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
30008 case $gl_cv_func_stat_file_slash in
30009 *no) REPLACE_STAT=1
30011 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
30015 if test $REPLACE_STAT = 1; then
30024 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
30039 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
30046 # Define two additional variables used in the Makefile substitution.
30048 if test "$ac_cv_header_stdbool_h" = yes; then
30051 STDBOOL_H='stdbool.h'
30054 if test -n "$STDBOOL_H"; then
30055 GL_GENERATE_STDBOOL_H_TRUE=
30056 GL_GENERATE_STDBOOL_H_FALSE='#'
30058 GL_GENERATE_STDBOOL_H_TRUE='#'
30059 GL_GENERATE_STDBOOL_H_FALSE=
30063 if test "$ac_cv_type__Bool" = yes; then
30074 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
30077 if test "x$ac_cv_type_max_align_t" = xyes; then :
30080 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
30083 if test $gt_cv_c_wchar_t = no; then
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
30088 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
30089 if ${gl_cv_decl_null_works+:} false; then :
30090 $as_echo_n "(cached) " >&6
30092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30093 /* end confdefs.h. */
30094 #include <stddef.h>
30095 int test[2 * (sizeof NULL == sizeof (void *)) -1];
30105 if ac_fn_c_try_compile "$LINENO"; then :
30106 gl_cv_decl_null_works=yes
30108 gl_cv_decl_null_works=no
30110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
30113 $as_echo "$gl_cv_decl_null_works" >&6; }
30114 if test $gl_cv_decl_null_works = no; then
30119 if test -n "$STDDEF_H"; then
30120 GL_GENERATE_STDDEF_H_TRUE=
30121 GL_GENERATE_STDDEF_H_FALSE='#'
30123 GL_GENERATE_STDDEF_H_TRUE='#'
30124 GL_GENERATE_STDDEF_H_FALSE=
30127 if test -n "$STDDEF_H"; then
30136 if test $gl_cv_have_include_next = yes; then
30137 gl_cv_next_stddef_h='<'stddef.h'>'
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
30140 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
30141 if ${gl_cv_next_stddef_h+:} false; then :
30142 $as_echo_n "(cached) " >&6
30147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30148 /* end confdefs.h. */
30149 #include <stddef.h>
30152 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30153 *) gl_absname_cpp="$ac_cpp" ;;
30158 gl_dirsep_regex='[/\\]'
30161 gl_dirsep_regex='\/'
30164 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30165 gl_header_literal_regex=`echo 'stddef.h' \
30166 | sed -e "$gl_make_literal_regex_sed"`
30167 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30168 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30174 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30175 sed -n "$gl_absolute_header_sed"`
30177 gl_header=$gl_cv_absolute_stddef_h
30178 gl_cv_next_stddef_h='"'$gl_header'"'
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
30183 $as_echo "$gl_cv_next_stddef_h" >&6; }
30185 NEXT_STDDEF_H=$gl_cv_next_stddef_h
30187 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30188 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30189 gl_next_as_first_directive='<'stddef.h'>'
30191 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30192 gl_next_as_first_directive=$gl_cv_next_stddef_h
30194 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
30214 if test $gl_cv_have_include_next = yes; then
30215 gl_cv_next_stdio_h='<'stdio.h'>'
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
30218 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
30219 if ${gl_cv_next_stdio_h+:} false; then :
30220 $as_echo_n "(cached) " >&6
30225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30226 /* end confdefs.h. */
30230 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30231 *) gl_absname_cpp="$ac_cpp" ;;
30236 gl_dirsep_regex='[/\\]'
30239 gl_dirsep_regex='\/'
30242 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30243 gl_header_literal_regex=`echo 'stdio.h' \
30244 | sed -e "$gl_make_literal_regex_sed"`
30245 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30246 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30252 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30253 sed -n "$gl_absolute_header_sed"`
30255 gl_header=$gl_cv_absolute_stdio_h
30256 gl_cv_next_stdio_h='"'$gl_header'"'
30260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
30261 $as_echo "$gl_cv_next_stdio_h" >&6; }
30263 NEXT_STDIO_H=$gl_cv_next_stdio_h
30265 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30267 gl_next_as_first_directive='<'stdio.h'>'
30269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30270 gl_next_as_first_directive=$gl_cv_next_stdio_h
30272 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
30279 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
30280 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
30281 $as_echo_n "(cached) " >&6
30283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30284 /* end confdefs.h. */
30286 #define __STDC_FORMAT_MACROS 1
30288 #include <inttypes.h>
30289 /* For non-mingw systems, compilation will trivially succeed.
30290 For mingw, compilation will succeed for older mingw (system
30291 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
30292 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
30293 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
30294 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
30305 if ac_fn_c_try_compile "$LINENO"; then :
30306 gl_cv_func_printf_attribute_flavor=system
30308 gl_cv_func_printf_attribute_flavor=gnu
30310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
30313 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
30314 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
30316 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
30323 cat >>confdefs.h <<_ACEOF
30324 #define GNULIB_FSCANF 1
30331 cat >>confdefs.h <<_ACEOF
30332 #define GNULIB_SCANF 1
30357 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
30358 REPLACE_STDIO_WRITE_FUNCS=1
30367 gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
30374 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
30375 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30377 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30378 if eval \${$as_gl_Symbol+:} false; then :
30379 $as_echo_n "(cached) " >&6
30381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30382 /* end confdefs.h. */
30394 if ac_fn_c_try_compile "$LINENO"; then :
30395 eval "$as_gl_Symbol=yes"
30397 eval "$as_gl_Symbol=no"
30399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30401 eval ac_res=\$$as_gl_Symbol
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30403 $as_echo "$ac_res" >&6; }
30404 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30405 cat >>confdefs.h <<_ACEOF
30406 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30409 eval ac_cv_have_decl_$gl_func=yes
30424 if test $gl_cv_have_include_next = yes; then
30425 gl_cv_next_stdlib_h='<'stdlib.h'>'
30427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
30428 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
30429 if ${gl_cv_next_stdlib_h+:} false; then :
30430 $as_echo_n "(cached) " >&6
30435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30436 /* end confdefs.h. */
30437 #include <stdlib.h>
30440 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30441 *) gl_absname_cpp="$ac_cpp" ;;
30446 gl_dirsep_regex='[/\\]'
30449 gl_dirsep_regex='\/'
30452 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30453 gl_header_literal_regex=`echo 'stdlib.h' \
30454 | sed -e "$gl_make_literal_regex_sed"`
30455 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30456 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30462 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30463 sed -n "$gl_absolute_header_sed"`
30465 gl_header=$gl_cv_absolute_stdlib_h
30466 gl_cv_next_stdlib_h='"'$gl_header'"'
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
30471 $as_echo "$gl_cv_next_stdlib_h" >&6; }
30473 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
30475 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30476 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30477 gl_next_as_first_directive='<'stdlib.h'>'
30479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30480 gl_next_as_first_directive=$gl_cv_next_stdlib_h
30482 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
30489 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
30490 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30492 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30493 if eval \${$as_gl_Symbol+:} false; then :
30494 $as_echo_n "(cached) " >&6
30496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30497 /* end confdefs.h. */
30498 #include <stdlib.h>
30499 #if HAVE_SYS_LOADAVG_H
30500 # include <sys/loadavg.h>
30503 # include <random.h>
30515 if ac_fn_c_try_compile "$LINENO"; then :
30516 eval "$as_gl_Symbol=yes"
30518 eval "$as_gl_Symbol=no"
30520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30522 eval ac_res=\$$as_gl_Symbol
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30524 $as_echo "$ac_res" >&6; }
30525 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30526 cat >>confdefs.h <<_ACEOF
30527 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30530 eval ac_cv_have_decl_$gl_func=yes
30540 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
30542 $as_echo_n "checking for working strerror function... " >&6; }
30543 if ${gl_cv_func_working_strerror+:} false; then :
30544 $as_echo_n "(cached) " >&6
30546 if test "$cross_compiling" = yes; then :
30548 # Guess yes on glibc systems.
30549 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
30550 # If we don't know, assume the worst.
30551 *) gl_cv_func_working_strerror="guessing no" ;;
30555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30556 /* end confdefs.h. */
30557 #include <string.h>
30562 if (!*strerror (-2)) return 1;
30567 if ac_fn_c_try_run "$LINENO"; then :
30568 gl_cv_func_working_strerror=yes
30570 gl_cv_func_working_strerror=no
30572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30573 conftest.$ac_objext conftest.beam conftest.$ac_ext
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
30579 $as_echo "$gl_cv_func_working_strerror" >&6; }
30580 case "$gl_cv_func_working_strerror" in
30591 if test $REPLACE_STRERROR = 1; then
30600 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
30605 cat >>confdefs.h <<_ACEOF
30606 #define GNULIB_STRERROR 1
30621 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
30627 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
30636 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
30642 if test $ac_cv_header_sys_socket_h != yes; then
30643 for ac_header in winsock2.h
30645 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30646 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30647 cat >>confdefs.h <<_ACEOF
30648 #define HAVE_WINSOCK2_H 1
30656 if test "$ac_cv_header_winsock2_h" = yes; then
30658 UNISTD_H_HAVE_WINSOCK2_H=1
30659 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30666 if test $gl_cond_libtool = false; then
30667 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
30668 gl_libdeps="$gl_libdeps $LIBICONV"
30679 if test $ac_cv_have_decl_strnlen = no; then
30680 HAVE_DECL_STRNLEN=0
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
30684 $as_echo_n "checking for working strnlen... " >&6; }
30685 if ${ac_cv_func_strnlen_working+:} false; then :
30686 $as_echo_n "(cached) " >&6
30688 if test "$cross_compiling" = yes; then :
30689 # Guess no on AIX systems, yes otherwise.
30691 aix*) ac_cv_func_strnlen_working=no;;
30692 *) ac_cv_func_strnlen_working=yes;;
30695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696 /* end confdefs.h. */
30697 $ac_includes_default
30703 #define S_LEN (sizeof S - 1)
30705 /* At least one implementation is buggy: that of AIX 4.3 would
30706 give strnlen (S, 1) == 3. */
30709 for (i = 0; i < S_LEN + 1; ++i)
30711 int expected = i <= S_LEN ? i : S_LEN;
30712 if (strnlen (S, i) != expected)
30721 if ac_fn_c_try_run "$LINENO"; then :
30722 ac_cv_func_strnlen_working=yes
30724 ac_cv_func_strnlen_working=no
30726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30727 conftest.$ac_objext conftest.beam conftest.$ac_ext
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
30732 $as_echo "$ac_cv_func_strnlen_working" >&6; }
30733 test $ac_cv_func_strnlen_working = no && :
30736 if test $ac_cv_func_strnlen_working = no; then
30741 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
30750 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
30765 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
30770 for ac_func in strtoul
30772 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
30773 if test "x$ac_cv_func_strtoul" = xyes; then :
30774 cat >>confdefs.h <<_ACEOF
30775 #define HAVE_STRTOUL 1
30782 if test $ac_cv_func_strtoul = no; then
30791 gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
30808 if test $gl_cv_have_include_next = yes; then
30809 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
30812 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
30813 if ${gl_cv_next_sys_stat_h+:} false; then :
30814 $as_echo_n "(cached) " >&6
30817 if test $ac_cv_header_sys_stat_h = yes; then
30822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30823 /* end confdefs.h. */
30824 #include <sys/stat.h>
30827 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30828 *) gl_absname_cpp="$ac_cpp" ;;
30833 gl_dirsep_regex='[/\\]'
30836 gl_dirsep_regex='\/'
30839 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30840 gl_header_literal_regex=`echo 'sys/stat.h' \
30841 | sed -e "$gl_make_literal_regex_sed"`
30842 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30843 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30849 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30850 sed -n "$gl_absolute_header_sed"`
30852 gl_header=$gl_cv_absolute_sys_stat_h
30853 gl_cv_next_sys_stat_h='"'$gl_header'"'
30855 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
30861 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
30863 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
30865 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30866 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30867 gl_next_as_first_directive='<'sys/stat.h'>'
30869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30870 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
30872 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
30884 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
30886 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
30890 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
30891 #include <sys/stat.h>
30893 if test "x$ac_cv_type_nlink_t" = xyes; then :
30897 $as_echo "#define nlink_t int" >>confdefs.h
30903 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
30904 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30906 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30907 if eval \${$as_gl_Symbol+:} false; then :
30908 $as_echo_n "(cached) " >&6
30910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30911 /* end confdefs.h. */
30912 #include <sys/stat.h>
30923 if ac_fn_c_try_compile "$LINENO"; then :
30924 eval "$as_gl_Symbol=yes"
30926 eval "$as_gl_Symbol=no"
30928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30930 eval ac_res=\$$as_gl_Symbol
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30932 $as_echo "$ac_res" >&6; }
30933 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30934 cat >>confdefs.h <<_ACEOF
30935 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30938 eval ac_cv_have_decl_$gl_func=yes
30969 if test $gl_cv_have_include_next = yes; then
30970 gl_cv_next_unistd_h='<'unistd.h'>'
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
30973 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
30974 if ${gl_cv_next_unistd_h+:} false; then :
30975 $as_echo_n "(cached) " >&6
30978 if test $ac_cv_header_unistd_h = yes; then
30983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30984 /* end confdefs.h. */
30985 #include <unistd.h>
30988 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30989 *) gl_absname_cpp="$ac_cpp" ;;
30994 gl_dirsep_regex='[/\\]'
30997 gl_dirsep_regex='\/'
31000 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31001 gl_header_literal_regex=`echo 'unistd.h' \
31002 | sed -e "$gl_make_literal_regex_sed"`
31003 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31004 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31010 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31011 sed -n "$gl_absolute_header_sed"`
31013 gl_header=$gl_cv_absolute_unistd_h
31014 gl_cv_next_unistd_h='"'$gl_header'"'
31016 gl_cv_next_unistd_h='<'unistd.h'>'
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
31022 $as_echo "$gl_cv_next_unistd_h" >&6; }
31024 NEXT_UNISTD_H=$gl_cv_next_unistd_h
31026 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31028 gl_next_as_first_directive='<'unistd.h'>'
31030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31031 gl_next_as_first_directive=$gl_cv_next_unistd_h
31033 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
31038 if test $ac_cv_header_unistd_h = yes; then
31050 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
31051 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31053 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31054 if eval \${$as_gl_Symbol+:} false; then :
31055 $as_echo_n "(cached) " >&6
31057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31058 /* end confdefs.h. */
31061 # include <unistd.h>
31063 /* Some systems declare various items in the wrong headers. */
31064 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31065 # include <fcntl.h>
31066 # include <stdio.h>
31067 # include <stdlib.h>
31068 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
31082 if ac_fn_c_try_compile "$LINENO"; then :
31083 eval "$as_gl_Symbol=yes"
31085 eval "$as_gl_Symbol=no"
31087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31089 eval ac_res=\$$as_gl_Symbol
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31091 $as_echo "$ac_res" >&6; }
31092 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31093 cat >>confdefs.h <<_ACEOF
31094 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31097 eval ac_cv_have_decl_$gl_func=yes
31104 if { test "$HAVE_LIBUNISTRING" != yes \
31109 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31110 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31111 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31112 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31113 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31123 LIBUNISTRING_UNISTR_H='unistr.h'
31125 LIBUNISTRING_UNISTR_H=
31131 cat >>confdefs.h <<_ACEOF
31132 #define GNULIB_UNISTR_U8_MBTOUCR 1
31138 if { test "$HAVE_LIBUNISTRING" != yes \
31143 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31144 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31145 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31146 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31147 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
31157 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
31158 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
31160 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
31161 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
31167 cat >>confdefs.h <<_ACEOF
31168 #define GNULIB_UNISTR_U8_UCTOMB 1
31174 if { test "$HAVE_LIBUNISTRING" != yes \
31179 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31180 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31181 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31182 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31183 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
31193 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
31194 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
31196 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
31197 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
31203 if { test "$HAVE_LIBUNISTRING" != yes \
31208 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31209 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31210 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31211 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31212 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31222 LIBUNISTRING_UNITYPES_H='unitypes.h'
31224 LIBUNISTRING_UNITYPES_H=
31230 if { test "$HAVE_LIBUNISTRING" != yes \
31235 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31236 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31237 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31238 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31239 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31249 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
31251 LIBUNISTRING_UNIWIDTH_H=
31257 if { test "$HAVE_LIBUNISTRING" != yes \
31262 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31263 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31264 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31265 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31266 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
31276 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
31277 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
31279 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
31280 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
31286 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
31317 if test $gl_cv_have_include_next = yes; then
31318 gl_cv_next_wchar_h='<'wchar.h'>'
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
31321 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31322 if ${gl_cv_next_wchar_h+:} false; then :
31323 $as_echo_n "(cached) " >&6
31326 if test $ac_cv_header_wchar_h = yes; then
31331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31332 /* end confdefs.h. */
31336 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31337 *) gl_absname_cpp="$ac_cpp" ;;
31342 gl_dirsep_regex='[/\\]'
31345 gl_dirsep_regex='\/'
31348 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31349 gl_header_literal_regex=`echo 'wchar.h' \
31350 | sed -e "$gl_make_literal_regex_sed"`
31351 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31352 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31358 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31359 sed -n "$gl_absolute_header_sed"`
31361 gl_header=$gl_cv_absolute_wchar_h
31362 gl_cv_next_wchar_h='"'$gl_header'"'
31364 gl_cv_next_wchar_h='<'wchar.h'>'
31369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
31370 $as_echo "$gl_cv_next_wchar_h" >&6; }
31372 NEXT_WCHAR_H=$gl_cv_next_wchar_h
31374 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31376 gl_next_as_first_directive='<'wchar.h'>'
31378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31379 gl_next_as_first_directive=$gl_cv_next_wchar_h
31381 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
31386 if test $ac_cv_header_wchar_h = yes; then
31396 if test $gt_cv_c_wint_t = yes; then
31404 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
31405 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31407 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31408 if eval \${$as_gl_Symbol+:} false; then :
31409 $as_echo_n "(cached) " >&6
31411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412 /* end confdefs.h. */
31414 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31416 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31417 included before <wchar.h>. */
31418 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31419 # include <stddef.h>
31420 # include <stdio.h>
31434 if ac_fn_c_try_compile "$LINENO"; then :
31435 eval "$as_gl_Symbol=yes"
31437 eval "$as_gl_Symbol=no"
31439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31441 eval ac_res=\$$as_gl_Symbol
31442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31443 $as_echo "$ac_res" >&6; }
31444 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31445 cat >>confdefs.h <<_ACEOF
31446 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31449 eval ac_cv_have_decl_$gl_func=yes
31459 if test $ac_cv_func_iswcntrl = yes; then
31467 if test $gt_cv_c_wint_t = yes; then
31483 if test $gl_cv_have_include_next = yes; then
31484 gl_cv_next_wctype_h='<'wctype.h'>'
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
31487 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
31488 if ${gl_cv_next_wctype_h+:} false; then :
31489 $as_echo_n "(cached) " >&6
31492 if test $ac_cv_header_wctype_h = yes; then
31497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31498 /* end confdefs.h. */
31499 #include <wctype.h>
31502 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31503 *) gl_absname_cpp="$ac_cpp" ;;
31508 gl_dirsep_regex='[/\\]'
31511 gl_dirsep_regex='\/'
31514 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31515 gl_header_literal_regex=`echo 'wctype.h' \
31516 | sed -e "$gl_make_literal_regex_sed"`
31517 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31518 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31524 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31525 sed -n "$gl_absolute_header_sed"`
31527 gl_header=$gl_cv_absolute_wctype_h
31528 gl_cv_next_wctype_h='"'$gl_header'"'
31530 gl_cv_next_wctype_h='<'wctype.h'>'
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
31536 $as_echo "$gl_cv_next_wctype_h" >&6; }
31538 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
31540 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31542 gl_next_as_first_directive='<'wctype.h'>'
31544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31545 gl_next_as_first_directive=$gl_cv_next_wctype_h
31547 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
31552 if test $ac_cv_header_wctype_h = yes; then
31553 if test $ac_cv_func_iswcntrl = yes; then
31554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
31555 $as_echo_n "checking whether iswcntrl works... " >&6; }
31556 if ${gl_cv_func_iswcntrl_works+:} false; then :
31557 $as_echo_n "(cached) " >&6
31560 if test "$cross_compiling" = yes; then :
31561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31562 /* end confdefs.h. */
31563 #include <stdlib.h>
31564 #if __GNU_LIBRARY__ == 1
31565 Linux libc5 i18n is broken.
31575 if ac_fn_c_try_compile "$LINENO"; then :
31576 gl_cv_func_iswcntrl_works="guessing yes"
31578 gl_cv_func_iswcntrl_works="guessing no"
31580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31584 /* end confdefs.h. */
31586 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31587 included before <wchar.h>.
31588 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31589 must be included before <wchar.h>. */
31590 #include <stddef.h>
31594 #include <wctype.h>
31595 int main () { return iswprint ('x') == 0; }
31598 if ac_fn_c_try_run "$LINENO"; then :
31599 gl_cv_func_iswcntrl_works=yes
31601 gl_cv_func_iswcntrl_works=no
31603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31604 conftest.$ac_objext conftest.beam conftest.$ac_ext
31609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
31610 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
31618 case "$gl_cv_func_iswcntrl_works" in
31619 *yes) REPLACE_ISWCNTRL=0 ;;
31620 *) REPLACE_ISWCNTRL=1 ;;
31624 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
31628 if test $REPLACE_ISWCNTRL = 1; then
31631 for ac_func in towlower
31633 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
31634 if test "x$ac_cv_func_towlower" = xyes; then :
31635 cat >>confdefs.h <<_ACEOF
31636 #define HAVE_TOWLOWER 1
31642 if test $ac_cv_func_towlower = yes; then
31645 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31646 included before <wchar.h>.
31647 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31648 must be included before <wchar.h>. */
31649 #include <stddef.h>
31654 # include <wctype.h>
31658 if test "x$ac_cv_have_decl_towlower" = xyes; then :
31664 cat >>confdefs.h <<_ACEOF
31665 #define HAVE_DECL_TOWLOWER $ac_have_decl
31668 if test $ac_cv_have_decl_towlower = yes; then
31677 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
31681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
31682 $as_echo_n "checking for wctype_t... " >&6; }
31683 if ${gl_cv_type_wctype_t+:} false; then :
31684 $as_echo_n "(cached) " >&6
31686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31687 /* end confdefs.h. */
31688 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31689 included before <wchar.h>.
31690 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31691 must be included before <wchar.h>. */
31692 #include <stddef.h>
31697 # include <wctype.h>
31709 if ac_fn_c_try_compile "$LINENO"; then :
31710 gl_cv_type_wctype_t=yes
31712 gl_cv_type_wctype_t=no
31714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
31718 $as_echo "$gl_cv_type_wctype_t" >&6; }
31719 if test $gl_cv_type_wctype_t = no; then
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
31724 $as_echo_n "checking for wctrans_t... " >&6; }
31725 if ${gl_cv_type_wctrans_t+:} false; then :
31726 $as_echo_n "(cached) " >&6
31728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31729 /* end confdefs.h. */
31730 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31731 included before <wchar.h>.
31732 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31733 must be included before <wchar.h>. */
31734 #include <stddef.h>
31738 #include <wctype.h>
31749 if ac_fn_c_try_compile "$LINENO"; then :
31750 gl_cv_type_wctrans_t=yes
31752 gl_cv_type_wctrans_t=no
31754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
31758 $as_echo "$gl_cv_type_wctrans_t" >&6; }
31759 if test $gl_cv_type_wctrans_t = no; then
31764 for gl_func in wctype iswctype wctrans towctrans ; do
31765 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31767 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31768 if eval \${$as_gl_Symbol+:} false; then :
31769 $as_echo_n "(cached) " >&6
31771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31772 /* end confdefs.h. */
31774 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31776 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31777 included before <wchar.h>. */
31778 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31779 # include <stddef.h>
31780 # include <stdio.h>
31782 # include <wchar.h>
31784 #include <wctype.h>
31795 if ac_fn_c_try_compile "$LINENO"; then :
31796 eval "$as_gl_Symbol=yes"
31798 eval "$as_gl_Symbol=no"
31800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31802 eval ac_res=\$$as_gl_Symbol
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31804 $as_echo "$ac_res" >&6; }
31805 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31806 cat >>confdefs.h <<_ACEOF
31807 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31810 eval ac_cv_have_decl_$gl_func=yes
31826 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
31827 /* AIX 3.2.5 declares wcwidth in <string.h>. */
31828 #include <string.h>
31829 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
31832 before <wchar.h>. */
31833 #include <stddef.h>
31839 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
31845 cat >>confdefs.h <<_ACEOF
31846 #define HAVE_DECL_WCWIDTH $ac_have_decl
31849 if test $ac_cv_have_decl_wcwidth != yes; then
31850 HAVE_DECL_WCWIDTH=0
31853 if test $ac_cv_func_wcwidth = yes; then
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
31856 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
31857 if ${gl_cv_func_wcwidth_works+:} false; then :
31858 $as_echo_n "(cached) " >&6
31861 if test "$cross_compiling" = yes; then :
31864 # Guess yes on glibc and AIX 7 systems.
31865 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
31866 *) gl_cv_func_wcwidth_works="guessing no";;
31870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31871 /* end confdefs.h. */
31873 #include <locale.h>
31874 /* AIX 3.2.5 declares wcwidth in <string.h>. */
31875 #include <string.h>
31876 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31878 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
31879 before <wchar.h>. */
31880 #include <stddef.h>
31884 #if !HAVE_DECL_WCWIDTH
31886 # ifdef __cplusplus
31894 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
31896 if (wcwidth (0x0301) > 0)
31898 if (wcwidth (0x05B0) > 0)
31900 if (wcwidth (0x200B) > 0)
31902 if (wcwidth (0xFF1A) == 0)
31908 if ac_fn_c_try_run "$LINENO"; then :
31909 gl_cv_func_wcwidth_works=yes
31911 gl_cv_func_wcwidth_works=no
31913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31914 conftest.$ac_objext conftest.beam conftest.$ac_ext
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
31920 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
31921 case "$gl_cv_func_wcwidth_works" in
31923 *no) REPLACE_WCWIDTH=1 ;;
31929 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
31938 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
31952 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
31956 # End of code from modules
31977 gl_source_base='tests'
31978 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
31980 gl_module_indicator_condition=$gltests_WITNESS
31990 LIBGRT_LIBDEPS="$gl_libdeps"
31992 LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
31995 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
31996 if test "x$ac_cv_type_size_t" = xyes; then :
32000 cat >>confdefs.h <<_ACEOF
32001 #define size_t unsigned int
32006 for ac_func in setlocale
32008 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
32009 if test "x$ac_cv_func_setlocale" = xyes; then :
32010 cat >>confdefs.h <<_ACEOF
32011 #define HAVE_SETLOCALE 1
32020 if test "$enable_shared" = yes; then
32022 mingw* | cygwin*) is_woe32dll=yes ;;
32023 *) is_woe32dll=no ;;
32028 if test $is_woe32dll = yes; then
32036 if test $is_woe32dll = yes; then
32038 $as_echo "#define WOE32DLL 1" >>confdefs.h
32042 INTL_EXPORTS_FLAGS=
32043 if test "$USER_LABEL_PREFIX" = _; then
32044 INTL_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $INTL_EXPORTS_FLAGS"
32048 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
32049 # Extract the first word of "perl", so it can be a program name with args.
32050 set dummy perl; ac_word=$2
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32052 $as_echo_n "checking for $ac_word... " >&6; }
32053 if ${ac_cv_path_PERL+:} false; then :
32054 $as_echo_n "(cached) " >&6
32058 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32062 for as_dir in $PATH
32065 test -z "$as_dir" && as_dir=.
32066 for ac_exec_ext in '' $ac_executable_extensions; do
32067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32068 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32076 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
32080 PERL=$ac_cv_path_PERL
32081 if test -n "$PERL"; then
32082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32083 $as_echo "$PERL" >&6; }
32085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32086 $as_echo "no" >&6; }
32091 CROSS_COMPILING=$cross_compiling
32097 if test "$CXX_CHOICE" = no; then
32100 if test -z "$CXX"; then
32101 if test -n "$CCC"; then
32104 if test -n "$ac_tool_prefix"; then
32105 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
32107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32110 $as_echo_n "checking for $ac_word... " >&6; }
32111 if ${ac_cv_prog_CXX+:} false; then :
32112 $as_echo_n "(cached) " >&6
32114 if test -n "$CXX"; then
32115 ac_cv_prog_CXX="$CXX" # Let the user override the test.
32117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32118 for as_dir in $PATH
32121 test -z "$as_dir" && as_dir=.
32122 for ac_exec_ext in '' $ac_executable_extensions; do
32123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32124 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
32125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32134 CXX=$ac_cv_prog_CXX
32135 if test -n "$CXX"; then
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
32137 $as_echo "$CXX" >&6; }
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32140 $as_echo "no" >&6; }
32144 test -n "$CXX" && break
32147 if test -z "$CXX"; then
32149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
32151 # Extract the first word of "$ac_prog", so it can be a program name with args.
32152 set dummy $ac_prog; ac_word=$2
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32154 $as_echo_n "checking for $ac_word... " >&6; }
32155 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
32156 $as_echo_n "(cached) " >&6
32158 if test -n "$ac_ct_CXX"; then
32159 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
32161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32162 for as_dir in $PATH
32165 test -z "$as_dir" && as_dir=.
32166 for ac_exec_ext in '' $ac_executable_extensions; do
32167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32168 ac_cv_prog_ac_ct_CXX="$ac_prog"
32169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32178 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32179 if test -n "$ac_ct_CXX"; then
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
32181 $as_echo "$ac_ct_CXX" >&6; }
32183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32184 $as_echo "no" >&6; }
32188 test -n "$ac_ct_CXX" && break
32191 if test "x$ac_ct_CXX" = x; then
32194 case $cross_compiling:$ac_tool_warned in
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32198 ac_tool_warned=yes ;;
32206 if test "$CXX" != no; then
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
32208 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
32210 ac_cpp='$CXXCPP $CPPFLAGS'
32211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32217 echo 'int main () { return 0; }' > conftest.$ac_ext
32218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32219 (eval $ac_link) 2>&5
32221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32222 test $ac_status = 0; } && test -s conftest$ac_exeext; then
32223 gl_cv_prog_ansicxx_works=yes
32224 if (./conftest; exit) 2>/dev/null; then
32225 gl_cv_prog_ansicxx_cross=no
32227 gl_cv_prog_ansicxx_cross=yes
32230 gl_cv_prog_ansicxx_works=no
32234 ac_cpp='$CPP $CPPFLAGS'
32235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
32240 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
32241 if test $gl_cv_prog_ansicxx_works = no; then
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
32245 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
32247 ac_cpp='$CXXCPP $CPPFLAGS'
32248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32252 cat <<EOF > conftest.$ac_ext
32253 #include <iostream>
32254 namespace test { using namespace std; }
32256 int main () { return 0; }
32258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32259 (eval $ac_link) 2>&5
32261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32262 test $ac_status = 0; } && test -s conftest$ac_exeext; then
32263 gl_cv_prog_ansicxx_namespaces=yes
32265 gl_cv_prog_ansicxx_namespaces=no
32269 ac_cpp='$CPP $CPPFLAGS'
32270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
32275 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
32276 if test $gl_cv_prog_ansicxx_namespaces = no; then
32284 if test "$CXX" != no; then
32293 if test "$CXX" != no; then
32295 depcc="$CXX" am_compiler_list=
32297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
32298 $as_echo_n "checking dependency style of $depcc... " >&6; }
32299 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
32300 $as_echo_n "(cached) " >&6
32302 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32303 # We make a subdir and do the tests there. Otherwise we can end up
32304 # making bogus files that we don't know about and never remove. For
32305 # instance it was reported that on HP-UX the gcc test will end up
32306 # making a dummy file named 'D' -- because '-MD' means "put the output
32308 rm -rf conftest.dir
32310 # Copy depcomp to subdir because otherwise we won't find it if we're
32311 # using a relative directory.
32312 cp "$am_depcomp" conftest.dir
32314 # We will build objects and dependencies in a subdirectory because
32315 # it helps to detect inapplicable dependency modes. For instance
32316 # both Tru64's cc and ICC support -MD to output dependencies as a
32317 # side effect of compilation, but ICC will put the dependencies in
32318 # the current directory while Tru64 will put them in the object
32322 am_cv_CXX_dependencies_compiler_type=none
32323 if test "$am_compiler_list" = ""; then
32324 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32326 am__universal=false
32327 case " $depcc " in #(
32328 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32331 for depmode in $am_compiler_list; do
32332 # Setup a source with many dependencies, because some compilers
32333 # like to wrap large dependency lists on column 80 (with \), and
32334 # we should not choose a depcomp mode which is confused by this.
32336 # We need to recreate these files for each test, as the compiler may
32337 # overwrite some of them when testing with obscure command lines.
32338 # This happens at least with the AIX C compiler.
32340 for i in 1 2 3 4 5 6; do
32341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32342 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
32343 # Solaris 10 /bin/sh.
32344 echo '/* dummy */' > sub/conftst$i.h
32346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32348 # We check with '-c' and '-o' for the sake of the "dashmstdout"
32349 # mode. It turns out that the SunPro C++ compiler does not properly
32350 # handle '-M -o', and we need to detect this. Also, some Intel
32351 # versions had trouble with output in subdirs.
32352 am__obj=sub/conftest.${OBJEXT-o}
32353 am__minus_obj="-o $am__obj"
32356 # This depmode causes a compiler race in universal mode.
32357 test "$am__universal" = false || continue
32360 # After this tag, mechanisms are not by side-effect, so they'll
32361 # only be used when explicitly requested.
32362 if test "x$enable_dependency_tracking" = xyes; then
32368 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
32369 # This compiler won't grok '-c -o', but also, the minuso test has
32370 # not run yet. These depmodes are late enough in the game, and
32371 # so weak that their functioning should not be impacted.
32372 am__obj=conftest.${OBJEXT-o}
32377 if depmode=$depmode \
32378 source=sub/conftest.c object=$am__obj \
32379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32380 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32381 >/dev/null 2>conftest.err &&
32382 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32383 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32384 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32385 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32386 # icc doesn't choke on unknown options, it will just issue warnings
32387 # or remarks (even with -Werror). So we grep stderr for any message
32388 # that says an option was ignored or not supported.
32389 # When given -MP, icc 7.0 and 7.1 complain thusly:
32390 # icc: Command line warning: ignoring option '-M'; no argument required
32391 # The diagnosis changed in icc 8.0:
32392 # icc: Command line remark: option '-MP' not supported
32393 if (grep 'ignoring option' conftest.err ||
32394 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32395 am_cv_CXX_dependencies_compiler_type=$depmode
32402 rm -rf conftest.dir
32404 am_cv_CXX_dependencies_compiler_type=none
32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
32409 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32410 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32413 test "x$enable_dependency_tracking" != xno \
32414 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32415 am__fastdepCXX_TRUE=
32416 am__fastdepCXX_FALSE='#'
32418 am__fastdepCXX_TRUE='#'
32419 am__fastdepCXX_FALSE=
32425 am__fastdepCXX_TRUE=
32426 am__fastdepCXX_FALSE='#'
32428 am__fastdepCXX_TRUE='#'
32429 am__fastdepCXX_FALSE=
32436 if test $gl_threads_api = posix; then
32437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
32438 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
32439 if ${ac_cv_lib_rt_sched_yield+:} false; then :
32440 $as_echo_n "(cached) " >&6
32442 ac_check_lib_save_LIBS=$LIBS
32444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32445 /* end confdefs.h. */
32447 /* Override any GCC internal prototype to avoid an error.
32448 Use char because int might match the return type of a GCC
32449 builtin and then its argument prototype would still apply. */
32453 char sched_yield ();
32457 return sched_yield ();
32462 if ac_fn_c_try_link "$LINENO"; then :
32463 ac_cv_lib_rt_sched_yield=yes
32465 ac_cv_lib_rt_sched_yield=no
32467 rm -f core conftest.err conftest.$ac_objext \
32468 conftest$ac_exeext conftest.$ac_ext
32469 LIBS=$ac_check_lib_save_LIBS
32471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
32472 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
32473 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
32477 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
32478 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
32479 $as_echo_n "(cached) " >&6
32481 ac_check_lib_save_LIBS=$LIBS
32482 LIBS="-lposix4 $LIBS"
32483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32484 /* end confdefs.h. */
32486 /* Override any GCC internal prototype to avoid an error.
32487 Use char because int might match the return type of a GCC
32488 builtin and then its argument prototype would still apply. */
32492 char sched_yield ();
32496 return sched_yield ();
32501 if ac_fn_c_try_link "$LINENO"; then :
32502 ac_cv_lib_posix4_sched_yield=yes
32504 ac_cv_lib_posix4_sched_yield=no
32506 rm -f core conftest.err conftest.$ac_objext \
32507 conftest$ac_exeext conftest.$ac_ext
32508 LIBS=$ac_check_lib_save_LIBS
32510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
32511 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
32512 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
32521 # Check whether --enable-libasprintf was given.
32522 if test "${enable_libasprintf+set}" = set; then :
32523 enableval=$enable_libasprintf; if test "$enableval" != no; then
32524 SUBDIR_libasprintf=libasprintf
32526 SUBDIR_libasprintf=
32530 SUBDIR_libasprintf=libasprintf
32533 if test "$CXX" = "no"; then
32534 SUBDIR_libasprintf=
32536 if test -n "$SUBDIR_libasprintf"; then
32537 ENABLE_LIBASPRINTF_TRUE=
32538 ENABLE_LIBASPRINTF_FALSE='#'
32540 ENABLE_LIBASPRINTF_TRUE='#'
32541 ENABLE_LIBASPRINTF_FALSE=
32547 subdirs="$subdirs libasprintf"
32550 ac_config_files="$ac_config_files Makefile"
32553 ac_config_files="$ac_config_files doc/Makefile"
32556 ac_config_files="$ac_config_files intl/Makefile"
32559 ac_config_files="$ac_config_files intl-java/Makefile"
32562 ac_config_files="$ac_config_files intl-csharp/Makefile"
32565 ac_config_files="$ac_config_files gnulib-lib/Makefile"
32568 ac_config_files="$ac_config_files src/Makefile"
32570 ac_config_files="$ac_config_files src/gettext.sh"
32573 ac_config_files="$ac_config_files po/Makefile.in"
32576 ac_config_files="$ac_config_files man/Makefile"
32578 ac_config_files="$ac_config_files man/x-to-1"
32581 ac_config_files="$ac_config_files m4/Makefile"
32584 ac_config_files="$ac_config_files tests/Makefile"
32587 cat >confcache <<\_ACEOF
32588 # This file is a shell script that caches the results of configure
32589 # tests run on this system so they can be shared between configure
32590 # scripts and configure runs, see configure's option --config-cache.
32591 # It is not useful on other systems. If it contains results you don't
32592 # want to keep, you may remove or edit it.
32594 # config.status only pays attention to the cache file if you give it
32595 # the --recheck option to rerun configure.
32597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32599 # following values.
32603 # The following way of writing the cache mishandles newlines in values,
32604 # but we know of no workaround that is simple, portable, and efficient.
32605 # So, we kill variables containing newlines.
32606 # Ultrix sh set writes to stderr and can't be redirected directly,
32607 # and sets the high bit in the cache file unless we assign to the vars.
32609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32610 eval ac_val=\$$ac_var
32614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32618 _ | IFS | as_nl) ;; #(
32619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32620 *) { eval $ac_var=; unset $ac_var;} ;;
32626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32627 *${as_nl}ac_space=\ *)
32628 # `set' does not quote correctly, so add quotes: double-quote
32629 # substitution turns \\\\ into \\, and sed turns \\ into \.
32632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32635 # `set' quotes correctly as required by POSIX, so do not add quotes.
32636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32650 if test -w "$cache_file"; then
32651 if test "x$cache_file" != "x/dev/null"; then
32652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32653 $as_echo "$as_me: updating cache $cache_file" >&6;}
32654 if test ! -f "$cache_file" || test -h "$cache_file"; then
32655 cat confcache >"$cache_file"
32657 case $cache_file in #(
32659 mv -f confcache "$cache_file"$$ &&
32660 mv -f "$cache_file"$$ "$cache_file" ;; #(
32662 mv -f confcache "$cache_file" ;;
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32674 # Let make expand exec_prefix.
32675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32677 DEFS=-DHAVE_CONFIG_H
32682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32683 # 1. Remove the extension, and $U if already installed.
32684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32687 # will be set to the directory where LIBOBJS objects are built.
32688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32691 LIBOBJS=$ac_libobjs
32693 LTLIBOBJS=$ac_ltlibobjs
32696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32697 $as_echo_n "checking that generated files are newer than configure... " >&6; }
32698 if test -n "$am_sleep_pid"; then
32699 # Hide warnings about reused PIDs.
32700 wait $am_sleep_pid 2>/dev/null
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32703 $as_echo "done" >&6; }
32704 if test -n "$EXEEXT"; then
32706 am__EXEEXT_FALSE='#'
32708 am__EXEEXT_TRUE='#'
32712 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32713 as_fn_error $? "conditional \"AMDEP\" was never defined.
32714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32716 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32717 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32720 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
32721 as_fn_error $? "conditional \"WOE32\" was never defined.
32722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32724 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32725 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32728 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32729 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
32730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32732 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
32733 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
32734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32736 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
32737 as_fn_error $? "conditional \"ANSICXX\" was never defined.
32738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32740 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32741 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32744 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32745 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32748 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
32749 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
32750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32752 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32753 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32756 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32757 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32760 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32761 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
32762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32764 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
32765 as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
32766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32768 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
32769 as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
32770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32772 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
32773 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
32774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32776 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32777 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
32778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32780 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
32781 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
32782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32784 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
32785 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
32786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32788 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
32789 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
32790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32792 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
32793 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
32794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32799 if test -n "$gl_LIBOBJS"; then
32800 # Remove the extension.
32801 sed_drop_objext='s/\.o$//;s/\.obj$//'
32802 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32803 gl_libobjs="$gl_libobjs $i.$ac_objext"
32804 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
32807 gl_LIBOBJS=$gl_libobjs
32809 gl_LTLIBOBJS=$gl_ltlibobjs
32815 if test -n "$gltests_LIBOBJS"; then
32816 # Remove the extension.
32817 sed_drop_objext='s/\.o$//;s/\.obj$//'
32818 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32819 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
32820 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
32823 gltests_LIBOBJS=$gltests_libobjs
32825 gltests_LTLIBOBJS=$gltests_ltlibobjs
32828 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
32829 as_fn_error $? "conditional \"WOE32DLL\" was never defined.
32830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32832 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
32833 as_fn_error $? "conditional \"ANSICXX\" was never defined.
32834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32836 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32837 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32840 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32841 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32844 if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then
32845 as_fn_error $? "conditional \"ENABLE_LIBASPRINTF\" was never defined.
32846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32849 : "${CONFIG_STATUS=./config.status}"
32851 ac_clean_files_save=$ac_clean_files
32852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32854 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32856 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32858 # Generated by $as_me.
32859 # Run this file to recreate the current configuration.
32860 # Compiler output produced by configure, useful for debugging
32861 # configure, is in config.log if it exists.
32864 ac_cs_recheck=false
32867 SHELL=\${CONFIG_SHELL-$SHELL}
32870 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32871 ## -------------------- ##
32872 ## M4sh Initialization. ##
32873 ## -------------------- ##
32875 # Be more Bourne compatible
32876 DUALCASE=1; export DUALCASE # for MKS sh
32877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32880 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32881 # is contrary to our usage. Disable this feature.
32882 alias -g '${1+"$@"}'='"$@"'
32883 setopt NO_GLOB_SUBST
32885 case `(set -o) 2>/dev/null` in #(
32897 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32898 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32901 # Prefer a ksh shell builtin over an external printf program on Solaris,
32902 # but without wasting forks for bash or zsh.
32903 if test -z "$BASH_VERSION$ZSH_VERSION" \
32904 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32905 as_echo='print -r --'
32906 as_echo_n='print -rn --'
32907 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32908 as_echo='printf %s\n'
32909 as_echo_n='printf %s'
32911 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32912 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32913 as_echo_n='/usr/ucb/echo -n'
32915 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32916 as_echo_n_body='eval
32920 expr "X$arg" : "X\\(.*\\)$as_nl";
32921 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32923 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32925 export as_echo_n_body
32926 as_echo_n='sh -c $as_echo_n_body as_echo'
32928 export as_echo_body
32929 as_echo='sh -c $as_echo_body as_echo'
32932 # The user is always right.
32933 if test "${PATH_SEPARATOR+set}" != set; then
32935 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32936 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32943 # We need space, tab and new line, in precisely that order. Quoting is
32944 # there to prevent editors from complaining about space-tab.
32945 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32946 # splitting by setting IFS to empty value.)
32949 # Find who we are. Look in the path if we contain no directory separator.
32952 *[\\/]* ) as_myself=$0 ;;
32953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32954 for as_dir in $PATH
32957 test -z "$as_dir" && as_dir=.
32958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32964 # We did not find ourselves, most probably we were run as `sh COMMAND'
32965 # in which case we are not to be found in the path.
32966 if test "x$as_myself" = x; then
32969 if test ! -f "$as_myself"; then
32970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32974 # Unset variables that we do not need and which cause bugs (e.g. in
32975 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32976 # suppresses any "Segmentation fault" message there. '((' could
32977 # trigger a bug in pdksh 5.2.14.
32978 for as_var in BASH_ENV ENV MAIL MAILPATH
32979 do eval test x\${$as_var+set} = xset \
32980 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32996 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32997 # ----------------------------------------
32998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33000 # script with STATUS, using 1 if that was 0.
33003 as_status=$1; test $as_status -eq 0 && as_status=1
33005 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33008 $as_echo "$as_me: error: $2" >&2
33009 as_fn_exit $as_status
33013 # as_fn_set_status STATUS
33014 # -----------------------
33015 # Set $? to STATUS, without forking.
33016 as_fn_set_status ()
33019 } # as_fn_set_status
33021 # as_fn_exit STATUS
33022 # -----------------
33023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33027 as_fn_set_status $1
33033 # Portably unset VAR.
33036 { eval $1=; unset $1;}
33038 as_unset=as_fn_unset
33039 # as_fn_append VAR VALUE
33040 # ----------------------
33041 # Append the text in VALUE to the end of the definition contained in VAR. Take
33042 # advantage of any shell optimizations that allow amortized linear growth over
33043 # repeated appends, instead of the typical quadratic growth present in naive
33045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33046 eval 'as_fn_append ()
33057 # as_fn_arith ARG...
33058 # ------------------
33059 # Perform arithmetic evaluation on the ARGs, and store the result in the
33060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33061 # must be portable across $(()) and expr.
33062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33063 eval 'as_fn_arith ()
33070 as_val=`expr "$@" || test $? -eq 1`
33075 if expr a : '\(a\)' >/dev/null 2>&1 &&
33076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33083 as_basename=basename
33088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33094 as_me=`$as_basename -- "$0" ||
33095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33096 X"$0" : 'X\(//\)$' \| \
33097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33099 sed '/^.*\/\([^/][^/]*\)\/*$/{
33113 # Avoid depending upon Character Ranges.
33114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33117 as_cr_digits='0123456789'
33118 as_cr_alnum=$as_cr_Letters$as_cr_digits
33120 ECHO_C= ECHO_N= ECHO_T=
33121 case `echo -n x` in #(((((
33123 case `echo 'xy\c'` in
33124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33133 rm -f conf$$ conf$$.exe conf$$.file
33134 if test -d conf$$.dir; then
33135 rm -f conf$$.dir/conf$$.file
33138 mkdir conf$$.dir 2>/dev/null
33140 if (echo >conf$$.file) 2>/dev/null; then
33141 if ln -s conf$$.file conf$$ 2>/dev/null; then
33143 # ... but there are two gotchas:
33144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33146 # In both cases, we have to default to `cp -pR'.
33147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33149 elif ln conf$$.file conf$$ 2>/dev/null; then
33157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33158 rmdir conf$$.dir 2>/dev/null
33163 # Create "$as_dir" as a directory, including parents if necessary.
33168 -*) as_dir=./$as_dir;;
33170 test -d "$as_dir" || eval $as_mkdir_p || {
33174 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33175 *) as_qdir=$as_dir;;
33177 as_dirs="'$as_qdir' $as_dirs"
33178 as_dir=`$as_dirname -- "$as_dir" ||
33179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33180 X"$as_dir" : 'X\(//\)[^/]' \| \
33181 X"$as_dir" : 'X\(//\)$' \| \
33182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33183 $as_echo X"$as_dir" |
33184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33188 /^X\(\/\/\)[^/].*/{
33201 test -d "$as_dir" && break
33203 test -z "$as_dirs" || eval "mkdir $as_dirs"
33204 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33208 if mkdir -p . 2>/dev/null; then
33209 as_mkdir_p='mkdir -p "$as_dir"'
33211 test -d ./-p && rmdir ./-p
33216 # as_fn_executable_p FILE
33217 # -----------------------
33218 # Test if FILE is an executable regular file.
33219 as_fn_executable_p ()
33221 test -f "$1" && test -x "$1"
33222 } # as_fn_executable_p
33223 as_test_x='test -x'
33224 as_executable_p=as_fn_executable_p
33226 # Sed expression to map a string onto a valid CPP name.
33227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33229 # Sed expression to map a string onto a valid variable name.
33230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33234 ## ----------------------------------- ##
33235 ## Main body of $CONFIG_STATUS script. ##
33236 ## ----------------------------------- ##
33238 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33241 # Save the log message, to keep $0 and so on meaningful, and to
33242 # report actual input values of CONFIG_FILES etc. instead of their
33243 # values after options handling.
33245 This file was extended by gettext-runtime $as_me 0.19.8.1, which was
33246 generated by GNU Autoconf 2.69. Invocation command line was
33248 CONFIG_FILES = $CONFIG_FILES
33249 CONFIG_HEADERS = $CONFIG_HEADERS
33250 CONFIG_LINKS = $CONFIG_LINKS
33251 CONFIG_COMMANDS = $CONFIG_COMMANDS
33254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33259 case $ac_config_files in *"
33260 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33263 case $ac_config_headers in *"
33264 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33269 # Files that config.status was made for.
33270 config_files="$ac_config_files"
33271 config_headers="$ac_config_headers"
33272 config_commands="$ac_config_commands"
33276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33278 \`$as_me' instantiates files and other configuration actions
33279 from templates according to the current configuration. Unless the files
33280 and actions are specified as TAGs, all are instantiated by default.
33282 Usage: $0 [OPTION]... [TAG]...
33284 -h, --help print this help, then exit
33285 -V, --version print version number and configuration settings, then exit
33286 --config print configuration, then exit
33287 -q, --quiet, --silent
33288 do not print progress messages
33289 -d, --debug don't remove temporary files
33290 --recheck update $as_me by reconfiguring in the same conditions
33291 --file=FILE[:TEMPLATE]
33292 instantiate the configuration file FILE
33293 --header=FILE[:TEMPLATE]
33294 instantiate the configuration header FILE
33296 Configuration files:
33299 Configuration headers:
33302 Configuration commands:
33305 Report bugs to <bug-gnu-gettext@gnu.org>."
33308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33309 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33311 gettext-runtime config.status 0.19.8.1
33312 configured by $0, generated by GNU Autoconf 2.69,
33313 with options \\"\$ac_cs_config\\"
33315 Copyright (C) 2012 Free Software Foundation, Inc.
33316 This config.status script is free software; the Free Software Foundation
33317 gives unlimited permission to copy, distribute and modify it."
33324 test -n "\$AWK" || AWK=awk
33327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33328 # The default lists apply if the user does not specify any file.
33334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33339 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33351 # Handling of the options.
33352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33354 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33355 $as_echo "$ac_cs_version"; exit ;;
33356 --config | --confi | --conf | --con | --co | --c )
33357 $as_echo "$ac_cs_config"; exit ;;
33358 --debug | --debu | --deb | --de | --d | -d )
33360 --file | --fil | --fi | --f )
33363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33364 '') as_fn_error $? "missing file argument" ;;
33366 as_fn_append CONFIG_FILES " '$ac_optarg'"
33367 ac_need_defaults=false;;
33368 --header | --heade | --head | --hea )
33371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33373 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33374 ac_need_defaults=false;;
33376 # Conflict between --help and --header
33377 as_fn_error $? "ambiguous option: \`$1'
33378 Try \`$0 --help' for more information.";;
33379 --help | --hel | -h )
33380 $as_echo "$ac_cs_usage"; exit ;;
33381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33382 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33385 # This is an error.
33386 -*) as_fn_error $? "unrecognized option: \`$1'
33387 Try \`$0 --help' for more information." ;;
33389 *) as_fn_append ac_config_targets " $1"
33390 ac_need_defaults=false ;;
33396 ac_configure_extra_args=
33398 if $ac_cs_silent; then
33400 ac_configure_extra_args="$ac_configure_extra_args --silent"
33404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33405 if \$ac_cs_recheck; then
33406 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33408 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33409 CONFIG_SHELL='$SHELL'
33410 export CONFIG_SHELL
33415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33420 ## Running $as_me. ##
33426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33430 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33433 # The HP-UX ksh and POSIX shell print the target directory to stdout
33434 # if CDPATH is set.
33435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33437 sed_quote_subst='$sed_quote_subst'
33438 double_quote_subst='$double_quote_subst'
33439 delay_variable_subst='$delay_variable_subst'
33440 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33441 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33442 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33443 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33444 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33445 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33446 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33447 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33448 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33449 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33450 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33451 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33452 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33453 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33454 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33455 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33456 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33457 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33458 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33459 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33460 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33461 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33462 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33463 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33464 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33465 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33466 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33467 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33468 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33469 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33470 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33471 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33472 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33473 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33474 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33475 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33476 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33477 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33478 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33479 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33480 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33481 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33482 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33483 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33484 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33485 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33486 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33487 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33488 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33489 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33490 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33491 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33492 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33493 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33494 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33495 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33496 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33497 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
33498 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33499 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
33500 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
33501 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33502 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33503 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
33504 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33505 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33506 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33507 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33508 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33509 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33510 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33511 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33512 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33513 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33514 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33515 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33516 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33517 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33518 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33519 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33520 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33521 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33522 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33523 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33524 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33525 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33526 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33527 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33528 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33529 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33530 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33531 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33532 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33533 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33534 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33535 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33536 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33537 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33538 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33539 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33540 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33541 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33542 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33543 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33544 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33545 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33546 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33547 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33548 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33549 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33550 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33551 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33552 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33553 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33554 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33555 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33556 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33557 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33558 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33559 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33560 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33561 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33562 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33563 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33564 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33565 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33566 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33567 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33568 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
33569 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
33570 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33571 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33572 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33573 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33574 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33575 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33576 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
33577 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
33578 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
33579 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
33580 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
33581 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
33582 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
33583 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
33584 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
33585 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
33586 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
33587 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
33588 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
33589 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33590 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33591 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
33592 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
33593 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
33594 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
33595 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
33596 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
33597 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
33598 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
33599 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
33600 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
33601 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33602 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
33603 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
33604 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
33605 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
33606 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
33607 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
33608 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
33609 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
33610 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
33611 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
33612 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
33613 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
33614 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
33615 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
33616 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
33617 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
33620 LTCFLAGS='$LTCFLAGS'
33621 compiler='$compiler_DEFAULT'
33623 # A function that is used when there is no print builtin or printf.
33624 func_fallback_echo ()
33626 eval 'cat <<_LTECHO_EOF
33631 # Quote evaled strings.
33648 deplibs_check_method \
33652 sharedlib_from_linklib_cmd \
33655 archiver_list_spec \
33661 lt_cv_sys_global_symbol_pipe \
33662 lt_cv_sys_global_symbol_to_cdecl \
33663 lt_cv_sys_global_symbol_to_import \
33664 lt_cv_sys_global_symbol_to_c_name_address \
33665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33666 lt_cv_nm_interface \
33667 nm_file_list_spec \
33668 lt_cv_truncate_bin \
33669 lt_prog_compiler_no_builtin_flag \
33670 lt_prog_compiler_pic \
33671 lt_prog_compiler_wl \
33672 lt_prog_compiler_static \
33673 lt_cv_prog_compiler_c_o \
33682 export_dynamic_flag_spec \
33683 whole_archive_flag_spec \
33684 compiler_needs_object \
33686 allow_undefined_flag \
33687 no_undefined_flag \
33688 hardcode_libdir_flag_spec \
33689 hardcode_libdir_separator \
33693 variables_saved_for_relink \
33695 library_names_spec \
33697 install_override_mode \
33704 lt_prog_compiler_no_builtin_flag_RC \
33705 lt_prog_compiler_pic_RC \
33706 lt_prog_compiler_wl_RC \
33707 lt_prog_compiler_static_RC \
33708 lt_cv_prog_compiler_c_o_RC \
33709 export_dynamic_flag_spec_RC \
33710 whole_archive_flag_spec_RC \
33711 compiler_needs_object_RC \
33713 allow_undefined_flag_RC \
33714 no_undefined_flag_RC \
33715 hardcode_libdir_flag_spec_RC \
33716 hardcode_libdir_separator_RC \
33717 exclude_expsyms_RC \
33718 include_expsyms_RC \
33719 file_list_spec_RC; do
33720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33721 *[\\\\\\\`\\"\\\$]*)
33722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33730 # Double-quote double-evaled strings.
33731 for var in reload_cmds \
33732 old_postinstall_cmds \
33733 old_postuninstall_cmds \
33735 extract_expsyms_cmds \
33736 old_archive_from_new_cmds \
33737 old_archive_from_expsyms_cmds \
33739 archive_expsym_cmds \
33741 module_expsym_cmds \
33742 export_symbols_cmds \
33746 postuninstall_cmds \
33748 sys_lib_search_path_spec \
33749 configure_time_dlsearch_path \
33750 configure_time_lt_sys_library_path \
33752 old_archive_cmds_RC \
33753 old_archive_from_new_cmds_RC \
33754 old_archive_from_expsyms_cmds_RC \
33756 archive_expsym_cmds_RC \
33758 module_expsym_cmds_RC \
33759 export_symbols_cmds_RC \
33761 postlink_cmds_RC; do
33762 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33763 *[\\\\\\\`\\"\\\$]*)
33764 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33767 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33772 ac_aux_dir='$ac_aux_dir'
33774 # See if we are running on zsh, and set the options that allow our
33775 # commands through without removal of \ escapes INIT.
33776 if test -n "\${ZSH_VERSION+set}"; then
33777 setopt NO_GLOB_SUBST
33790 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33791 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33792 # from automake < 1.5.
33793 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33794 # Capture the value of LINGUAS because we need it to compute CATALOGS.
33795 LINGUAS="${LINGUAS-%UNSET%}"
33800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33802 # Handling of arguments.
33803 for ac_config_target in $ac_config_targets
33805 case $ac_config_target in
33806 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33807 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33808 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33809 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33810 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
33811 "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
33812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33813 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33814 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33815 "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
33816 "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
33817 "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
33818 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33819 "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;;
33820 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33821 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
33822 "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
33823 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33824 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33826 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33831 # If the user did not use the arguments to specify the items to instantiate,
33832 # then the envvar interface is used. Set only those that are not.
33833 # We use the long form for the default assignment because of an extremely
33834 # bizarre bug on SunOS 4.1.3.
33835 if $ac_need_defaults; then
33836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33837 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33838 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33841 # Have a temporary directory for convenience. Make it in the build tree
33842 # simply because there is no reason against having it here, and in addition,
33843 # creating and moving files from /tmp can sometimes cause problems.
33844 # Hook for its removal unless debugging.
33845 # Note that there is a small window in which the directory will not be cleaned:
33846 # after its creation but before its name has been assigned to `$tmp'.
33850 trap 'exit_status=$?
33851 : "${ac_tmp:=$tmp}"
33852 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33854 trap 'as_fn_exit 1' 1 2 13 15
33856 # Create a (secure) tmp directory for tmp files.
33859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33863 tmp=./conf$$-$RANDOM
33864 (umask 077 && mkdir "$tmp")
33865 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33868 # Set up the scripts for CONFIG_FILES section.
33869 # No need to generate them if there are no CONFIG_FILES.
33870 # This happens for instance with `./config.status config.h'.
33871 if test -n "$CONFIG_FILES"; then
33874 ac_cr=`echo X | tr X '\015'`
33875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33876 # But we know of no other shell where ac_cr would be empty at this
33877 # point, so we can use a bashism as a fallback.
33878 if test "x$ac_cr" = x; then
33879 eval ac_cr=\$\'\\r\'
33881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33885 ac_cs_awk_cr=$ac_cr
33888 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33893 echo "cat >conf$$subs.awk <<_ACEOF" &&
33894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33896 } >conf$$subs.sh ||
33897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33900 for ac_last_try in false false false false false :; do
33901 . ./conf$$subs.sh ||
33902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33905 if test $ac_delim_n = $ac_delim_num; then
33907 elif $ac_last_try; then
33908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33913 rm -f conf$$subs.sh
33915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33916 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33920 s/^/S["/; s/!.*/"]=/
33930 s/\(.\{148\}\)..*/\1/
33932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33944 s/\(.\{148\}\)..*/\1/
33946 s/["\\]/\\&/g; s/^/"/; s/$/"/
33950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33955 ' <conf$$subs.awk | sed '
33960 ' >>$CONFIG_STATUS || ac_write_fail=1
33961 rm -f conf$$subs.awk
33962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33964 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33965 for (key in S) S_is_set[key] = 1
33971 nfields = split(line, field, "@")
33973 len = length(field[1])
33974 for (i = 2; i < nfields; i++) {
33976 keylen = length(key)
33977 if (S_is_set[key]) {
33979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33980 len += length(value) + length(field[++i])
33991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34002 # trailing colons and then remove the whole line if VPATH becomes empty
34003 # (actually we leave an empty line to preserve line numbers).
34004 if test "x$srcdir" = x.; then
34005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34024 fi # test -n "$CONFIG_FILES"
34026 # Set up the scripts for CONFIG_HEADERS section.
34027 # No need to generate them if there are no CONFIG_HEADERS.
34028 # This happens for instance with `./config.status Makefile'.
34029 if test -n "$CONFIG_HEADERS"; then
34030 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34034 # Transform confdefs.h into an awk script `defines.awk', embedded as
34035 # here-document in config.status, that substitutes the proper values into
34036 # config.h.in to produce config.h.
34038 # Create a delimiter string that does not exist in confdefs.h, to ease
34039 # handling of long lines.
34041 for ac_last_try in false false :; do
34042 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34043 if test -z "$ac_tt"; then
34045 elif $ac_last_try; then
34046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34052 # For the awk script, D is an array of macro values keyed by name,
34053 # likewise P contains macro parameters if any. Preserve backslash
34054 # newline sequences.
34056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34058 s/.\{148\}/&'"$ac_delim"'/g
34061 s/^[ ]*#[ ]*define[ ][ ]*/ /
34068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34075 D["\1"]=" \3\\\\\\n"\\/p
34077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34082 s/.\{148\}/&'"$ac_delim"'/g
34087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34092 ' <confdefs.h | sed '
34093 s/'"$ac_delim"'/"\\\
34094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34097 for (key in D) D_is_set[key] = 1
34100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34102 split(line, arg, " ")
34103 if (arg[1] == "#") {
34107 defundef = substr(arg[1], 2)
34110 split(mac1, mac2, "(") #)
34112 prefix = substr(line, 1, index(line, defundef) - 1)
34113 if (D_is_set[macro]) {
34114 # Preserve the white space surrounding the "#".
34115 print prefix "define", macro P[macro] D[macro]
34118 # Replace #undef with comments. This is necessary, for example,
34119 # in the case of _POSIX_SOURCE, which is predefined and required
34120 # on some systems where configure will not decide to define it.
34121 if (defundef == "undef") {
34122 print "/*", prefix defundef, macro, "*/"
34130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34132 fi # test -n "$CONFIG_HEADERS"
34135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34140 :[FHLC]) ac_mode=$ac_tag; continue;;
34142 case $ac_mode$ac_tag in
34144 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34145 :[FH]-) ac_tag=-:-;;
34146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34163 -) ac_f="$ac_tmp/stdin";;
34164 *) # Look for the file first in the build tree, then in the source tree
34165 # (if the path is not absolute). The absolute path cannot be DOS-style,
34166 # because $ac_f cannot contain `:'.
34170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34172 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34175 as_fn_append ac_file_inputs " '$ac_f'"
34178 # Let's still pretend it is `configure' which instantiates (i.e., don't
34179 # use $as_me), people would be surprised to read:
34180 # /* config.h. Generated by config.status. */
34181 configure_input='Generated from '`
34182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34184 if test x"$ac_file" != x-; then
34185 configure_input="$ac_file. $configure_input"
34186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34187 $as_echo "$as_me: creating $ac_file" >&6;}
34189 # Neutralize special characters interpreted by sed in replacement strings.
34190 case $configure_input in #(
34191 *\&* | *\|* | *\\* )
34192 ac_sed_conf_input=`$as_echo "$configure_input" |
34193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34194 *) ac_sed_conf_input=$configure_input;;
34198 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34204 ac_dir=`$as_dirname -- "$ac_file" ||
34205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34206 X"$ac_file" : 'X\(//\)[^/]' \| \
34207 X"$ac_file" : 'X\(//\)$' \| \
34208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34209 $as_echo X"$ac_file" |
34210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34214 /^X\(\/\/\)[^/].*/{
34227 as_dir="$ac_dir"; as_fn_mkdir_p
34231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34233 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34234 # A ".." for each directory in $ac_dir_suffix.
34235 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34236 case $ac_top_builddir_sub in
34237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34241 ac_abs_top_builddir=$ac_pwd
34242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34243 # for backward compatibility:
34244 ac_top_builddir=$ac_top_build_prefix
34247 .) # We are building in place.
34249 ac_top_srcdir=$ac_top_builddir_sub
34250 ac_abs_top_srcdir=$ac_pwd ;;
34251 [\\/]* | ?:[\\/]* ) # Absolute name.
34252 ac_srcdir=$srcdir$ac_dir_suffix;
34253 ac_top_srcdir=$srcdir
34254 ac_abs_top_srcdir=$srcdir ;;
34255 *) # Relative name.
34256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34257 ac_top_srcdir=$ac_top_build_prefix$srcdir
34258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34273 ac_MKDIR_P=$MKDIR_P
34275 [\\/$]* | ?:[\\/]* ) ;;
34276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34281 # If the template does not know about datarootdir, expand it.
34282 # FIXME: This hack should be removed a few years after 2.60.
34283 ac_datarootdir_hack=; ac_datarootdir_seen=
34294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34295 *datarootdir*) ac_datarootdir_seen=yes;;
34296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34301 ac_datarootdir_hack='
34302 s&@datadir@&$datadir&g
34303 s&@docdir@&$docdir&g
34304 s&@infodir@&$infodir&g
34305 s&@localedir@&$localedir&g
34306 s&@mandir@&$mandir&g
34307 s&\\\${datarootdir}&$datarootdir&g' ;;
34311 # Neutralize VPATH when `$srcdir' = `.'.
34312 # Shell code in configure.ac might set extrasub.
34313 # FIXME: do we really want to maintain this feature?
34314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34315 ac_sed_extra="$ac_vpsub
34318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34321 s|@configure_input@|$ac_sed_conf_input|;t t
34322 s&@top_builddir@&$ac_top_builddir_sub&;t t
34323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34324 s&@srcdir@&$ac_srcdir&;t t
34325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34326 s&@top_srcdir@&$ac_top_srcdir&;t t
34327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34328 s&@builddir@&$ac_builddir&;t t
34329 s&@abs_builddir@&$ac_abs_builddir&;t t
34330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34331 s&@INSTALL@&$ac_INSTALL&;t t
34332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34333 $ac_datarootdir_hack
34335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34336 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34339 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34341 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34343 which seems to be undefined. Please make sure it is defined" >&5
34344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34345 which seems to be undefined. Please make sure it is defined" >&2;}
34347 rm -f "$ac_tmp/stdin"
34349 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34350 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34358 if test x"$ac_file" != x-; then
34360 $as_echo "/* $configure_input */" \
34361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34362 } >"$ac_tmp/config.h" \
34363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34365 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34369 mv "$ac_tmp/config.h" "$ac_file" \
34370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34373 $as_echo "/* $configure_input */" \
34374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34375 || as_fn_error $? "could not create -" "$LINENO" 5
34377 # Compute "$ac_file"'s index in $config_headers.
34380 for _am_header in $config_headers :; do
34381 case $_am_header in
34382 $_am_arg | $_am_arg:* )
34385 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34390 X"$_am_arg" : 'X\(//\)[^/]' \| \
34391 X"$_am_arg" : 'X\(//\)$' \| \
34392 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34393 $as_echo X"$_am_arg" |
34394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34398 /^X\(\/\/\)[^/].*/{
34410 s/.*/./; q'`/stamp-h$_am_stamp_count
34413 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34414 $as_echo "$as_me: executing $ac_file commands" >&6;}
34419 case $ac_file$ac_mode in
34420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34421 # Older Autoconf quotes --file arguments for eval, but not when files
34422 # are listed without --file. Let's play safe and only enable the eval
34423 # if we detect the quoting.
34424 case $CONFIG_FILES in
34425 *\'*) eval set x "$CONFIG_FILES" ;;
34426 *) set x $CONFIG_FILES ;;
34431 # Strip MF so we end up with the name of the file.
34432 mf=`echo "$mf" | sed -e 's/:.*$//'`
34433 # Check whether this is an Automake generated Makefile or not.
34434 # We used to match only the files named 'Makefile.in', but
34435 # some people rename them; so instead we look at the file content.
34436 # Grep'ing the first line is not enough: some people post-process
34437 # each Makefile.in and add a new line on top of each file to say so.
34438 # Grep'ing the whole file is not good either: AIX grep has a line
34439 # limit of 2048, but all sed's we know have understand at least 4000.
34440 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34441 dirpart=`$as_dirname -- "$mf" ||
34442 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34443 X"$mf" : 'X\(//\)[^/]' \| \
34444 X"$mf" : 'X\(//\)$' \| \
34445 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34451 /^X\(\/\/\)[^/].*/{
34467 # Extract the definition of DEPDIR, am__include, and am__quote
34468 # from the Makefile without running 'make'.
34469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34470 test -z "$DEPDIR" && continue
34471 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34472 test -z "$am__include" && continue
34473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34474 # Find all dependency output files, they are included files with
34475 # $(DEPDIR) in their names. We invoke sed twice because it is the
34476 # simplest approach to changing $(DEPDIR) to its actual value in the
34478 for file in `sed -n "
34479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
34481 # Make sure the directory exists.
34482 test -f "$dirpart/$file" && continue
34483 fdir=`$as_dirname -- "$file" ||
34484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34485 X"$file" : 'X\(//\)[^/]' \| \
34486 X"$file" : 'X\(//\)$' \| \
34487 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34488 $as_echo X"$file" |
34489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34493 /^X\(\/\/\)[^/].*/{
34506 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34507 # echo "creating $dirpart/$file"
34508 echo '# dummy' > "$dirpart/$file"
34515 # See if we are running on zsh, and set the options that allow our
34516 # commands through without removal of \ escapes.
34517 if test -n "${ZSH_VERSION+set}"; then
34518 setopt NO_GLOB_SUBST
34522 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34525 cat <<_LT_EOF >> "$cfgfile"
34527 # Generated automatically by $as_me ($PACKAGE) $VERSION
34528 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34529 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34531 # Provide generalized library-building support services.
34532 # Written by Gordon Matzigkeit, 1996
34534 # Copyright (C) 2014 Free Software Foundation, Inc.
34535 # This is free software; see the source for copying conditions. There is NO
34536 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34538 # GNU Libtool is free software; you can redistribute it and/or modify
34539 # it under the terms of the GNU General Public License as published by
34540 # the Free Software Foundation; either version 2 of of the License, or
34541 # (at your option) any later version.
34543 # As a special exception to the GNU General Public License, if you
34544 # distribute this file as part of a program or library that is built
34545 # using GNU Libtool, you may include this file under the same
34546 # distribution terms that you use for the rest of that program.
34548 # GNU Libtool is distributed in the hope that it will be useful, but
34549 # WITHOUT ANY WARRANTY; without even the implied warranty of
34550 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34551 # GNU General Public License for more details.
34553 # You should have received a copy of the GNU General Public License
34554 # along with this program. If not, see <http://www.gnu.org/licenses/>.
34557 # The names of the tagged configurations supported by this script.
34558 available_tags='RC '
34560 # Configured defaults for sys_lib_dlsearch_path munging.
34561 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
34563 # ### BEGIN LIBTOOL CONFIG
34565 # Which release of libtool.m4 was used?
34566 macro_version=$macro_version
34567 macro_revision=$macro_revision
34569 # Assembler program.
34572 # DLL creation program.
34573 DLLTOOL=$lt_DLLTOOL
34575 # Object dumper program.
34576 OBJDUMP=$lt_OBJDUMP
34578 # Whether or not to build shared libraries.
34579 build_libtool_libs=$enable_shared
34581 # Whether or not to build static libraries.
34582 build_old_libs=$enable_static
34584 # What type of objects to build.
34587 # Whether or not to optimize for fast installation.
34588 fast_install=$enable_fast_install
34590 # Shared archive member basename,for filename based shared library versioning on AIX.
34591 shared_archive_member_spec=$shared_archive_member_spec
34593 # Shell to use when invoking shell scripts.
34596 # An echo program that protects backslashes.
34599 # The PATH separator for the build system.
34600 PATH_SEPARATOR=$lt_PATH_SEPARATOR
34603 host_alias=$host_alias
34607 # The build system.
34608 build_alias=$build_alias
34612 # A sed program that does not truncate output.
34615 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34616 Xsed="\$SED -e 1s/^X//"
34618 # A grep program that handles long lines.
34624 # A literal string matcher.
34627 # A BSD- or MS-compatible name lister.
34630 # Whether we need soft or hard links.
34633 # What is the maximum length of a command?
34634 max_cmd_len=$max_cmd_len
34636 # Object file suffix (normally "o").
34639 # Executable file suffix (normally "").
34642 # whether the shell understands "unset".
34645 # turn spaces into newlines.
34648 # turn newlines into spaces.
34651 # convert \$build file names to \$host format.
34652 to_host_file_cmd=$lt_cv_to_host_file_cmd
34654 # convert \$build files to toolchain format.
34655 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
34657 # Method to check whether dependent libraries are shared objects.
34658 deplibs_check_method=$lt_deplibs_check_method
34660 # Command to use when deplibs_check_method = "file_magic".
34661 file_magic_cmd=$lt_file_magic_cmd
34663 # How to find potential files when deplibs_check_method = "file_magic".
34664 file_magic_glob=$lt_file_magic_glob
34666 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
34667 want_nocaseglob=$lt_want_nocaseglob
34669 # Command to associate shared and link libraries.
34670 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
34675 # Flags to create an archive.
34676 AR_FLAGS=$lt_AR_FLAGS
34678 # How to feed a file listing to the archiver.
34679 archiver_list_spec=$lt_archiver_list_spec
34681 # A symbol stripping program.
34684 # Commands used to install an old-style archive.
34686 old_postinstall_cmds=$lt_old_postinstall_cmds
34687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34689 # Whether to use a lock for old archive extraction.
34690 lock_old_archive_extraction=$lock_old_archive_extraction
34695 # LTCC compiler flags.
34696 LTCFLAGS=$lt_CFLAGS
34698 # Take the output of nm and produce a listing of raw symbols and C names.
34699 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34701 # Transform the output of nm in a proper C declaration.
34702 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34704 # Transform the output of nm into a list of symbols to manually relocate.
34705 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
34707 # Transform the output of nm in a C name address pair.
34708 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34710 # Transform the output of nm in a C name address pair when lib prefix is needed.
34711 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34713 # The name lister interface.
34714 nm_interface=$lt_lt_cv_nm_interface
34716 # Specify filename containing input files for \$NM.
34717 nm_file_list_spec=$lt_nm_file_list_spec
34719 # The root where to search for dependent libraries,and where our libraries should be installed.
34720 lt_sysroot=$lt_sysroot
34722 # Command to truncate a binary pipe.
34723 lt_truncate_bin=$lt_lt_cv_truncate_bin
34725 # The name of the directory that contains temporary libtool files.
34728 # Used to examine libraries when file_magic_cmd begins with "file".
34729 MAGIC_CMD=$MAGIC_CMD
34731 # Must we lock files when doing compilation?
34732 need_locks=$lt_need_locks
34735 MANIFEST_TOOL=$lt_MANIFEST_TOOL
34737 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34738 DSYMUTIL=$lt_DSYMUTIL
34740 # Tool to change global to local symbols on Mac OS X.
34743 # Tool to manipulate fat objects and archives on Mac OS X.
34746 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34749 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34750 OTOOL64=$lt_OTOOL64
34752 # Old archive suffix (normally "a").
34755 # Shared library suffix (normally ".so").
34756 shrext_cmds=$lt_shrext_cmds
34758 # The commands to extract the exported symbol list from a shared archive.
34759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34761 # Variables whose values should be saved in libtool wrapper scripts and
34762 # restored at link time.
34763 variables_saved_for_relink=$lt_variables_saved_for_relink
34765 # Do we need the "lib" prefix for modules?
34766 need_lib_prefix=$need_lib_prefix
34768 # Do we need a version for libraries?
34769 need_version=$need_version
34771 # Library versioning type.
34772 version_type=$version_type
34774 # Shared library runtime path variable.
34775 runpath_var=$runpath_var
34777 # Shared library path variable.
34778 shlibpath_var=$shlibpath_var
34780 # Is shlibpath searched before the hard-coded library search path?
34781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34783 # Format of library name prefix.
34784 libname_spec=$lt_libname_spec
34786 # List of archive names. First name is the real one, the rest are links.
34787 # The last name is the one that the linker finds with -lNAME
34788 library_names_spec=$lt_library_names_spec
34790 # The coded name of the library, if different from the real name.
34791 soname_spec=$lt_soname_spec
34793 # Permission mode override for installation of shared libraries.
34794 install_override_mode=$lt_install_override_mode
34796 # Command to use after installation of a shared archive.
34797 postinstall_cmds=$lt_postinstall_cmds
34799 # Command to use after uninstallation of a shared archive.
34800 postuninstall_cmds=$lt_postuninstall_cmds
34802 # Commands used to finish a libtool library installation in a directory.
34803 finish_cmds=$lt_finish_cmds
34805 # As "finish_cmds", except a single script fragment to be evaled but
34807 finish_eval=$lt_finish_eval
34809 # Whether we should hardcode library paths into libraries.
34810 hardcode_into_libs=$hardcode_into_libs
34812 # Compile-time system search path for libraries.
34813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34815 # Detected run-time system search path for libraries.
34816 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34818 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34819 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34821 # Whether dlopen is supported.
34822 dlopen_support=$enable_dlopen
34824 # Whether dlopen of programs is supported.
34825 dlopen_self=$enable_dlopen_self
34827 # Whether dlopen of statically linked programs is supported.
34828 dlopen_self_static=$enable_dlopen_self_static
34830 # Commands to strip libraries.
34831 old_striplib=$lt_old_striplib
34832 striplib=$lt_striplib
34835 # The linker used to build libraries.
34838 # How to create reloadable object files.
34839 reload_flag=$lt_reload_flag
34840 reload_cmds=$lt_reload_cmds
34842 # Commands used to build an old-style archive.
34843 old_archive_cmds=$lt_old_archive_cmds
34845 # A language specific compiler.
34848 # Is the compiler the GNU compiler?
34851 # Compiler flag to turn off builtin functions.
34852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34854 # Additional compiler flags for building library objects.
34855 pic_flag=$lt_lt_prog_compiler_pic
34857 # How to pass a linker flag through the compiler.
34858 wl=$lt_lt_prog_compiler_wl
34860 # Compiler flag to prevent dynamic linking.
34861 link_static_flag=$lt_lt_prog_compiler_static
34863 # Does compiler simultaneously support -c and -o options?
34864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34866 # Whether or not to add -lc for building shared libraries.
34867 build_libtool_need_lc=$archive_cmds_need_lc
34869 # Whether or not to disallow shared libs when runtime libs are static.
34870 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34872 # Compiler flag to allow reflexive dlopens.
34873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34875 # Compiler flag to generate shared objects directly from archives.
34876 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34878 # Whether the compiler copes with passing no objects directly.
34879 compiler_needs_object=$lt_compiler_needs_object
34881 # Create an old-style archive from a shared archive.
34882 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34884 # Create a temporary old-style archive to link instead of a shared archive.
34885 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34887 # Commands used to build a shared archive.
34888 archive_cmds=$lt_archive_cmds
34889 archive_expsym_cmds=$lt_archive_expsym_cmds
34891 # Commands used to build a loadable module if different from building
34892 # a shared archive.
34893 module_cmds=$lt_module_cmds
34894 module_expsym_cmds=$lt_module_expsym_cmds
34896 # Whether we are building with GNU ld or not.
34897 with_gnu_ld=$lt_with_gnu_ld
34899 # Flag that allows shared libraries with undefined symbols to be built.
34900 allow_undefined_flag=$lt_allow_undefined_flag
34902 # Flag that enforces no undefined symbols.
34903 no_undefined_flag=$lt_no_undefined_flag
34905 # Flag to hardcode \$libdir into a binary during linking.
34906 # This must work even if \$libdir does not exist
34907 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34909 # Whether we need a single "-rpath" flag with a separated argument.
34910 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34912 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34913 # DIR into the resulting binary.
34914 hardcode_direct=$hardcode_direct
34916 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34917 # DIR into the resulting binary and the resulting library dependency is
34918 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34919 # library is relocated.
34920 hardcode_direct_absolute=$hardcode_direct_absolute
34922 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34923 # into the resulting binary.
34924 hardcode_minus_L=$hardcode_minus_L
34926 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34927 # into the resulting binary.
34928 hardcode_shlibpath_var=$hardcode_shlibpath_var
34930 # Set to "yes" if building a shared library automatically hardcodes DIR
34931 # into the library and all subsequent libraries and executables linked
34933 hardcode_automatic=$hardcode_automatic
34935 # Set to yes if linker adds runtime paths of dependent libraries
34936 # to runtime path list.
34937 inherit_rpath=$inherit_rpath
34939 # Whether libtool must link a program against all its dependency libraries.
34940 link_all_deplibs=$link_all_deplibs
34942 # Set to "yes" if exported symbols are required.
34943 always_export_symbols=$always_export_symbols
34945 # The commands to list exported symbols.
34946 export_symbols_cmds=$lt_export_symbols_cmds
34948 # Symbols that should not be listed in the preloaded symbols.
34949 exclude_expsyms=$lt_exclude_expsyms
34951 # Symbols that must always be exported.
34952 include_expsyms=$lt_include_expsyms
34954 # Commands necessary for linking programs (against libraries) with templates.
34955 prelink_cmds=$lt_prelink_cmds
34957 # Commands necessary for finishing linking programs.
34958 postlink_cmds=$lt_postlink_cmds
34960 # Specify filename containing input files.
34961 file_list_spec=$lt_file_list_spec
34963 # How to hardcode a shared library path into an executable.
34964 hardcode_action=$hardcode_action
34966 # ### END LIBTOOL CONFIG
34970 cat <<'_LT_EOF' >> "$cfgfile"
34972 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34974 # func_munge_path_list VARIABLE PATH
34975 # -----------------------------------
34976 # VARIABLE is name of variable containing _space_ separated list of
34977 # directories to be munged by the contents of PATH, which is string
34980 # string "DIR[ DIR]" will be prepended to VARIABLE
34982 # string "DIR[ DIR]" will be appended to VARIABLE
34983 # "DIRP[:DIRP]::[DIRA:]DIRA"
34984 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34985 # "DIRA[ DIRA]" will be appended to VARIABLE
34987 # VARIABLE will be replaced by "DIR[ DIR]"
34988 func_munge_path_list ()
34994 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34997 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35000 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35001 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35004 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35010 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35011 func_cc_basename ()
35013 for cc_temp in $*""; do
35015 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35016 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35021 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35025 # ### END FUNCTIONS SHARED WITH CONFIGURE
35031 cat <<\_LT_EOF >> "$cfgfile"
35032 # AIX sometimes has problems with the GCC collect2 program. For some
35033 # reason, if we set the COLLECT_NAMES environment variable, the problems
35034 # vanish in a puff of smoke.
35035 if test set != "${COLLECT_NAMES+set}"; then
35037 export COLLECT_NAMES
35044 ltmain=$ac_aux_dir/ltmain.sh
35047 # We use sed instead of cat because bash on DJGPP gets confused if
35048 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35049 # text mode, it properly converts lines to CR/LF. This bash problem
35050 # is reportedly fixed, but why not run on old versions too?
35051 sed '$q' "$ltmain" >> "$cfgfile" \
35052 || (rm -f "$cfgfile"; exit 1)
35054 mv -f "$cfgfile" "$ofile" ||
35055 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35059 cat <<_LT_EOF >> "$ofile"
35061 # ### BEGIN LIBTOOL TAG CONFIG: RC
35063 # The linker used to build libraries.
35066 # How to create reloadable object files.
35067 reload_flag=$lt_reload_flag_RC
35068 reload_cmds=$lt_reload_cmds_RC
35070 # Commands used to build an old-style archive.
35071 old_archive_cmds=$lt_old_archive_cmds_RC
35073 # A language specific compiler.
35076 # Is the compiler the GNU compiler?
35079 # Compiler flag to turn off builtin functions.
35080 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
35082 # Additional compiler flags for building library objects.
35083 pic_flag=$lt_lt_prog_compiler_pic_RC
35085 # How to pass a linker flag through the compiler.
35086 wl=$lt_lt_prog_compiler_wl_RC
35088 # Compiler flag to prevent dynamic linking.
35089 link_static_flag=$lt_lt_prog_compiler_static_RC
35091 # Does compiler simultaneously support -c and -o options?
35092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
35094 # Whether or not to add -lc for building shared libraries.
35095 build_libtool_need_lc=$archive_cmds_need_lc_RC
35097 # Whether or not to disallow shared libs when runtime libs are static.
35098 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
35100 # Compiler flag to allow reflexive dlopens.
35101 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
35103 # Compiler flag to generate shared objects directly from archives.
35104 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
35106 # Whether the compiler copes with passing no objects directly.
35107 compiler_needs_object=$lt_compiler_needs_object_RC
35109 # Create an old-style archive from a shared archive.
35110 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
35112 # Create a temporary old-style archive to link instead of a shared archive.
35113 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
35115 # Commands used to build a shared archive.
35116 archive_cmds=$lt_archive_cmds_RC
35117 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
35119 # Commands used to build a loadable module if different from building
35120 # a shared archive.
35121 module_cmds=$lt_module_cmds_RC
35122 module_expsym_cmds=$lt_module_expsym_cmds_RC
35124 # Whether we are building with GNU ld or not.
35125 with_gnu_ld=$lt_with_gnu_ld_RC
35127 # Flag that allows shared libraries with undefined symbols to be built.
35128 allow_undefined_flag=$lt_allow_undefined_flag_RC
35130 # Flag that enforces no undefined symbols.
35131 no_undefined_flag=$lt_no_undefined_flag_RC
35133 # Flag to hardcode \$libdir into a binary during linking.
35134 # This must work even if \$libdir does not exist
35135 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
35137 # Whether we need a single "-rpath" flag with a separated argument.
35138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
35140 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35141 # DIR into the resulting binary.
35142 hardcode_direct=$hardcode_direct_RC
35144 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35145 # DIR into the resulting binary and the resulting library dependency is
35146 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
35147 # library is relocated.
35148 hardcode_direct_absolute=$hardcode_direct_absolute_RC
35150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35151 # into the resulting binary.
35152 hardcode_minus_L=$hardcode_minus_L_RC
35154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35155 # into the resulting binary.
35156 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
35158 # Set to "yes" if building a shared library automatically hardcodes DIR
35159 # into the library and all subsequent libraries and executables linked
35161 hardcode_automatic=$hardcode_automatic_RC
35163 # Set to yes if linker adds runtime paths of dependent libraries
35164 # to runtime path list.
35165 inherit_rpath=$inherit_rpath_RC
35167 # Whether libtool must link a program against all its dependency libraries.
35168 link_all_deplibs=$link_all_deplibs_RC
35170 # Set to "yes" if exported symbols are required.
35171 always_export_symbols=$always_export_symbols_RC
35173 # The commands to list exported symbols.
35174 export_symbols_cmds=$lt_export_symbols_cmds_RC
35176 # Symbols that should not be listed in the preloaded symbols.
35177 exclude_expsyms=$lt_exclude_expsyms_RC
35179 # Symbols that must always be exported.
35180 include_expsyms=$lt_include_expsyms_RC
35182 # Commands necessary for linking programs (against libraries) with templates.
35183 prelink_cmds=$lt_prelink_cmds_RC
35185 # Commands necessary for finishing linking programs.
35186 postlink_cmds=$lt_postlink_cmds_RC
35188 # Specify filename containing input files.
35189 file_list_spec=$lt_file_list_spec_RC
35191 # How to hardcode a shared library path into an executable.
35192 hardcode_action=$hardcode_action_RC
35194 # ### END LIBTOOL TAG CONFIG: RC
35198 "po-directories":C)
35199 for ac_file in $CONFIG_FILES; do
35200 # Support "outfile[:infile[:infile...]]"
35202 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35204 # PO directories have a Makefile.in generated from Makefile.in.in.
35205 case "$ac_file" in */Makefile.in)
35206 # Adjust a relative srcdir.
35207 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35208 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
35209 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35210 # In autoconf-2.13 it is called $ac_given_srcdir.
35211 # In autoconf-2.50 it is called $srcdir.
35212 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35213 case "$ac_given_srcdir" in
35214 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35215 /*) top_srcdir="$ac_given_srcdir" ;;
35216 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35218 # Treat a directory as a PO directory if and only if it has a
35219 # POTFILES.in file. This allows packages to have multiple PO
35220 # directories under different names or in different locations.
35221 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35222 rm -f "$ac_dir/POTFILES"
35223 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35224 gt_tab=`printf '\t'`
35225 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35226 POMAKEFILEDEPS="POTFILES.in"
35227 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35228 # on $ac_dir but don't depend on user-specified configuration
35230 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35231 # The LINGUAS file contains the set of available languages.
35232 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35233 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35235 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35236 # Hide the ALL_LINGUAS assignment from automake < 1.5.
35237 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35238 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35240 # The set of available languages was given in configure.in.
35241 # Hide the ALL_LINGUAS assignment from automake < 1.5.
35242 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35245 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35246 # Compute UPDATEPOFILES
35247 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35248 # Compute DUMMYPOFILES
35249 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35251 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35252 case "$ac_given_srcdir" in
35254 *) srcdirpre='$(srcdir)/' ;;
35260 for lang in $ALL_LINGUAS; do
35261 POFILES="$POFILES $srcdirpre$lang.po"
35262 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35263 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35264 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35266 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35267 # environment variable.
35269 if test -n "$ALL_LINGUAS"; then
35270 for presentlang in $ALL_LINGUAS; do
35272 if test "%UNSET%" != "$LINGUAS"; then
35273 desiredlanguages="$LINGUAS"
35275 desiredlanguages="$ALL_LINGUAS"
35277 for desiredlang in $desiredlanguages; do
35278 # Use the presentlang catalog if desiredlang is
35279 # a. equal to presentlang, or
35280 # b. a variant of presentlang (because in this case,
35281 # presentlang can be used as a fallback for messages
35282 # which are not translated in the desiredlang catalog).
35283 case "$desiredlang" in
35284 "$presentlang"*) useit=yes;;
35287 if test $useit = yes; then
35288 INST_LINGUAS="$INST_LINGUAS $presentlang"
35293 if test -n "$INST_LINGUAS"; then
35294 for lang in $INST_LINGUAS; do
35295 CATALOGS="$CATALOGS $lang.gmo"
35298 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35299 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
35300 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35301 if test -f "$f"; then
35303 *.orig | *.bak | *~) ;;
35304 *) cat "$f" >> "$ac_dir/Makefile" ;;
35312 "src/gettext.sh":F) chmod a+x src/gettext.sh ;;
35314 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
35315 mv $ac_file.tmp $ac_file
35324 ac_clean_files=$ac_clean_files_save
35326 test $ac_write_fail = 0 ||
35327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35330 # configure is writing to config.log, and then calls config.status.
35331 # config.status does its own redirection, appending to config.log.
35332 # Unfortunately, on DOS this fails, as config.log is still kept open
35333 # by configure, so config.status won't be able to write to it; its
35334 # output is simply discarded. So we exec the FD to /dev/null,
35335 # effectively closing config.log, so it can be properly (re)opened and
35336 # appended to by config.status. When coming back to configure, we
35337 # need to make the FD available again.
35338 if test "$no_create" != yes; then
35340 ac_config_status_args=
35341 test "$silent" = yes &&
35342 ac_config_status_args="$ac_config_status_args --quiet"
35344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35347 # would make configure fail if this is the last instruction.
35348 $ac_cs_success || as_fn_exit 1
35352 # CONFIG_SUBDIRS section.
35354 if test "$no_recursion" != yes; then
35356 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
35357 # so they do not pile up.
35358 ac_sub_configure_args=
35360 eval "set x $ac_configure_args"
35364 if test -n "$ac_prev"; then
35369 -cache-file | --cache-file | --cache-fil | --cache-fi \
35370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35371 ac_prev=cache_file ;;
35372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35376 --config-cache | -C)
35378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35382 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35384 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35386 --disable-option-checking)
35390 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35392 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
35396 # Always prepend --prefix to ensure using the same prefix
35397 # in subdir configurations.
35398 ac_arg="--prefix=$prefix"
35400 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35402 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
35405 if test "$silent" = yes; then
35406 ac_sub_configure_args="--silent $ac_sub_configure_args"
35409 # Always prepend --disable-option-checking to silence warnings, since
35410 # different subdirs can have different --enable and --with options.
35411 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
35414 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35416 # Do not complain, so a configure script can configure whichever
35417 # parts of a large source tree are present.
35418 test -d "$srcdir/$ac_dir" || continue
35420 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35421 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
35422 $as_echo "$ac_msg" >&6
35423 as_dir="$ac_dir"; as_fn_mkdir_p
35427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35430 # A ".." for each directory in $ac_dir_suffix.
35431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35432 case $ac_top_builddir_sub in
35433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35437 ac_abs_top_builddir=$ac_pwd
35438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35439 # for backward compatibility:
35440 ac_top_builddir=$ac_top_build_prefix
35443 .) # We are building in place.
35445 ac_top_srcdir=$ac_top_builddir_sub
35446 ac_abs_top_srcdir=$ac_pwd ;;
35447 [\\/]* | ?:[\\/]* ) # Absolute name.
35448 ac_srcdir=$srcdir$ac_dir_suffix;
35449 ac_top_srcdir=$srcdir
35450 ac_abs_top_srcdir=$srcdir ;;
35451 *) # Relative name.
35452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35453 ac_top_srcdir=$ac_top_build_prefix$srcdir
35454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35461 # Check for guested configure; otherwise get Cygnus style configure.
35462 if test -f "$ac_srcdir/configure.gnu"; then
35463 ac_sub_configure=$ac_srcdir/configure.gnu
35464 elif test -f "$ac_srcdir/configure"; then
35465 ac_sub_configure=$ac_srcdir/configure
35466 elif test -f "$ac_srcdir/configure.in"; then
35467 # This should be Cygnus configure.
35468 ac_sub_configure=$ac_aux_dir/configure
35470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
35471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35475 # The recursion is here.
35476 if test -n "$ac_sub_configure"; then
35477 # Make the cache file name correct relative to the subdirectory.
35478 case $cache_file in
35479 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35480 *) # Relative name.
35481 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35484 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35485 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35486 # The eval makes quoting arguments work.
35487 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35488 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35489 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
35495 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35497 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}