2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gettext-runtime 0.19.7.
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.7'
594 PACKAGE_STRING='gettext-runtime 0.19.7'
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.7 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.7:";;
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.7
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.7, 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 havelib:
7196 # Code from module iconv:
7197 # Code from module iconv-h:
7198 # Code from module iconv_open:
7199 # Code from module include_next:
7200 # Code from module inline:
7201 # Code from module intprops:
7202 # Code from module iswblank:
7203 # Code from module java:
7204 # Code from module javacomp-script:
7205 # Code from module langinfo:
7206 # Code from module largefile:
7208 # Code from module localcharset:
7209 # Code from module locale:
7210 # Code from module localename:
7211 # Code from module lock:
7212 # Code from module lstat:
7213 # Code from module malloca:
7214 # Code from module mbchar:
7215 # Code from module mbiter:
7216 # Code from module mbrtowc:
7217 # Code from module mbsinit:
7218 # Code from module mbslen:
7219 # Code from module mbsstr:
7220 # Code from module mbuiter:
7221 # Code from module memchr:
7222 # Code from module memmove:
7223 # Code from module msvc-inval:
7224 # Code from module msvc-nothrow:
7225 # Code from module multiarch:
7226 # Code from module nocrash:
7227 # Code from module pathmax:
7228 # Code from module progname:
7229 # Code from module propername:
7230 # Code from module raise:
7231 # Code from module readlink:
7232 # Code from module relocatable-prog:
7233 # Code from module relocatable-prog-wrapper:
7234 # Code from module setlocale:
7235 # Code from module signal-h:
7236 # Code from module sigpipe:
7237 # Code from module sigprocmask:
7238 # Code from module snippet/_Noreturn:
7239 # Code from module snippet/arg-nonnull:
7240 # Code from module snippet/c++defs:
7241 # Code from module snippet/unused-parameter:
7242 # Code from module snippet/warn-on-use:
7243 # Code from module ssize_t:
7244 # Code from module stat:
7245 # Code from module stdbool:
7246 # Code from module stddef:
7247 # Code from module stdint:
7248 # Code from module stdio:
7249 # Code from module stdlib:
7250 # Code from module streq:
7251 # Code from module strerror:
7252 # Code from module strerror-override:
7253 # Code from module striconv:
7254 # Code from module string:
7255 # Code from module strnlen:
7256 # Code from module strnlen1:
7257 # Code from module strtoul:
7258 # Code from module sys_stat:
7259 # Code from module sys_time:
7260 # Code from module sys_types:
7261 # Code from module threadlib:
7265 # Code from module time:
7266 # Code from module trim:
7267 # Code from module unistd:
7268 # Code from module unistr/base:
7269 # Code from module unistr/u8-mbtoucr:
7270 # Code from module unistr/u8-uctomb:
7271 # Code from module unitypes:
7272 # Code from module uniwidth/base:
7273 # Code from module uniwidth/width:
7274 # Code from module unlocked-io:
7275 # Code from module verify:
7276 # Code from module wchar:
7277 # Code from module wctype-h:
7278 # Code from module wcwidth:
7279 # Code from module xalloc:
7280 # Code from module xreadlink:
7281 # Code from module xstriconv:
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
7291 $as_echo_n "checking for auto-import of symbols... " >&6; }
7292 if ${gl_cv_ld_autoimport+:} false; then :
7293 $as_echo_n "(cached) " >&6
7296 gl_save_LDFLAGS="$LDFLAGS"
7297 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7309 if ac_fn_c_try_link "$LINENO"; then :
7310 gl_cv_ld_autoimport=yes
7312 gl_cv_ld_autoimport=no
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 LDFLAGS="$gl_save_LDFLAGS"
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
7320 $as_echo "$gl_cv_ld_autoimport" >&6; }
7321 if test $gl_cv_ld_autoimport = yes; then
7322 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7331 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7336 macro_version='2.4.6'
7337 macro_revision='2.4.6'
7351 ltmain=$ac_aux_dir/ltmain.sh
7353 # Backslashify metacharacters that are still active within
7354 # double-quoted strings.
7355 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7357 # Same as above, but do not quote variable references.
7358 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7360 # Sed substitution to delay expansion of an escaped shell variable in a
7361 # double_quote_subst'ed string.
7362 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7364 # Sed substitution to delay expansion of an escaped single quote.
7365 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7367 # Sed substitution to avoid accidental globbing in evaled expressions
7368 no_glob_subst='s/\*/\\\*/g'
7370 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7371 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7372 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7375 $as_echo_n "checking how to print strings... " >&6; }
7376 # Test print first, because it will be a builtin if present.
7377 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7378 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7380 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7383 # Use this function as a fallback that always works.
7384 func_fallback_echo ()
7386 eval 'cat <<_LTECHO_EOF
7390 ECHO='func_fallback_echo'
7393 # func_echo_all arg...
7394 # Invoke $ECHO with all args, space-separated.
7401 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7402 $as_echo "printf" >&6; } ;;
7403 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7404 $as_echo "print -r" >&6; } ;;
7405 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7406 $as_echo "cat" >&6; } ;;
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7423 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7424 if ${ac_cv_path_SED+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7428 for ac_i in 1 2 3 4 5 6 7; do
7429 ac_script="$ac_script$as_nl$ac_script"
7431 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7432 { ac_script=; unset ac_script;}
7433 if test -z "$SED"; then
7434 ac_path_SED_found=false
7435 # Loop through the user's path and test for each of PROGNAME-LIST
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_prog in sed gsed; do
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7444 as_fn_executable_p "$ac_path_SED" || continue
7445 # Check for GNU ac_path_SED and select it if it is found.
7446 # Check for GNU $ac_path_SED
7447 case `"$ac_path_SED" --version 2>&1` in
7449 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7452 $as_echo_n 0123456789 >"conftest.in"
7455 cat "conftest.in" "conftest.in" >"conftest.tmp"
7456 mv "conftest.tmp" "conftest.in"
7457 cp "conftest.in" "conftest.nl"
7458 $as_echo '' >> "conftest.nl"
7459 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7461 as_fn_arith $ac_count + 1 && ac_count=$as_val
7462 if test $ac_count -gt ${ac_path_SED_max-0}; then
7463 # Best one so far, save it but keep looking for a better one
7464 ac_cv_path_SED="$ac_path_SED"
7465 ac_path_SED_max=$ac_count
7467 # 10*(2^10) chars as input seems more than enough
7468 test $ac_count -gt 10 && break
7470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7473 $ac_path_SED_found && break 3
7478 if test -z "$ac_cv_path_SED"; then
7479 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7487 $as_echo "$ac_cv_path_SED" >&6; }
7488 SED="$ac_cv_path_SED"
7491 test -z "$SED" && SED=sed
7492 Xsed="$SED -e 1s/^X//"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7505 $as_echo_n "checking for fgrep... " >&6; }
7506 if ${ac_cv_path_FGREP+:} false; then :
7507 $as_echo_n "(cached) " >&6
7509 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7510 then ac_cv_path_FGREP="$GREP -F"
7512 if test -z "$FGREP"; then
7513 ac_path_FGREP_found=false
7514 # Loop through the user's path and test for each of PROGNAME-LIST
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7519 test -z "$as_dir" && as_dir=.
7520 for ac_prog in fgrep; do
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7523 as_fn_executable_p "$ac_path_FGREP" || continue
7524 # Check for GNU ac_path_FGREP and select it if it is found.
7525 # Check for GNU $ac_path_FGREP
7526 case `"$ac_path_FGREP" --version 2>&1` in
7528 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7531 $as_echo_n 0123456789 >"conftest.in"
7534 cat "conftest.in" "conftest.in" >"conftest.tmp"
7535 mv "conftest.tmp" "conftest.in"
7536 cp "conftest.in" "conftest.nl"
7537 $as_echo 'FGREP' >> "conftest.nl"
7538 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7540 as_fn_arith $ac_count + 1 && ac_count=$as_val
7541 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7542 # Best one so far, save it but keep looking for a better one
7543 ac_cv_path_FGREP="$ac_path_FGREP"
7544 ac_path_FGREP_max=$ac_count
7546 # 10*(2^10) chars as input seems more than enough
7547 test $ac_count -gt 10 && break
7549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7552 $ac_path_FGREP_found && break 3
7557 if test -z "$ac_cv_path_FGREP"; then
7558 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7561 ac_cv_path_FGREP=$FGREP
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7567 $as_echo "$ac_cv_path_FGREP" >&6; }
7568 FGREP="$ac_cv_path_FGREP"
7571 test -z "$GREP" && GREP=grep
7591 # Check whether --with-gnu-ld was given.
7592 if test "${with_gnu_ld+set}" = set; then :
7593 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7599 if test yes = "$GCC"; then
7600 # Check if gcc -print-prog-name=ld gives a path.
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7602 $as_echo_n "checking for ld used by $CC... " >&6; }
7605 # gcc leaves a trailing carriage return, which upsets mingw
7606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7611 # Accept absolute paths.
7613 re_direlt='/[^/][^/]*/\.\./'
7614 # Canonicalize the pathname of ld
7615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7619 test -z "$LD" && LD=$ac_prog
7622 # If it fails, then pretend we aren't using GCC.
7626 # If it is relative, then search for the first ld in PATH.
7630 elif test yes = "$with_gnu_ld"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7632 $as_echo_n "checking for GNU ld... " >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7635 $as_echo_n "checking for non-GNU ld... " >&6; }
7637 if ${lt_cv_path_LD+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 if test -z "$LD"; then
7641 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7642 for ac_dir in $PATH; do
7644 test -z "$ac_dir" && ac_dir=.
7645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7646 lt_cv_path_LD=$ac_dir/$ac_prog
7647 # Check to see if the program is GNU ld. I'd rather use --version,
7648 # but apparently some variants of GNU ld only accept -v.
7649 # Break only if it was the GNU/non-GNU ld that we prefer.
7650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7651 *GNU* | *'with BFD'*)
7652 test no != "$with_gnu_ld" && break
7655 test yes != "$with_gnu_ld" && break
7662 lt_cv_path_LD=$LD # Let the user override the test with a path.
7667 if test -n "$LD"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7669 $as_echo "$LD" >&6; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7674 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7676 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7677 if ${lt_cv_prog_gnu_ld+:} false; then :
7678 $as_echo_n "(cached) " >&6
7680 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7681 case `$LD -v 2>&1 </dev/null` in
7682 *GNU* | *'with BFD'*)
7683 lt_cv_prog_gnu_ld=yes
7686 lt_cv_prog_gnu_ld=no
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7691 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7692 with_gnu_ld=$lt_cv_prog_gnu_ld
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7703 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7704 if ${lt_cv_path_NM+:} false; then :
7705 $as_echo_n "(cached) " >&6
7707 if test -n "$NM"; then
7708 # Let the user override the test.
7711 lt_nm_to_check=${ac_tool_prefix}nm
7712 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7713 lt_nm_to_check="$lt_nm_to_check nm"
7715 for lt_tmp_nm in $lt_nm_to_check; do
7716 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7717 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7719 test -z "$ac_dir" && ac_dir=.
7720 tmp_nm=$ac_dir/$lt_tmp_nm
7721 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7722 # Check to see if the nm accepts a BSD-compat flag.
7723 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7724 # nm: unknown option "B" ignored
7725 # Tru64's nm complains that /dev/null is an invalid object file
7726 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7728 mingw*) lt_bad_file=conftest.nm/nofile ;;
7729 *) lt_bad_file=/dev/null ;;
7731 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7732 *$lt_bad_file* | *'Invalid file or object type'*)
7733 lt_cv_path_NM="$tmp_nm -B"
7737 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7739 lt_cv_path_NM="$tmp_nm -p"
7743 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7744 continue # so that we can try to find one that supports BSD flags
7753 : ${lt_cv_path_NM=no}
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7757 $as_echo "$lt_cv_path_NM" >&6; }
7758 if test no != "$lt_cv_path_NM"; then
7761 # Didn't find any BSD compatible name lister, look for dumpbin.
7762 if test -n "$DUMPBIN"; then :
7763 # Let the user override the test.
7765 if test -n "$ac_tool_prefix"; then
7766 for ac_prog in dumpbin "link -dump"
7768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if ${ac_cv_prog_DUMPBIN+:} false; then :
7773 $as_echo_n "(cached) " >&6
7775 if test -n "$DUMPBIN"; then
7776 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 DUMPBIN=$ac_cv_prog_DUMPBIN
7796 if test -n "$DUMPBIN"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7798 $as_echo "$DUMPBIN" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7805 test -n "$DUMPBIN" && break
7808 if test -z "$DUMPBIN"; then
7809 ac_ct_DUMPBIN=$DUMPBIN
7810 for ac_prog in dumpbin "link -dump"
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$ac_ct_DUMPBIN"; then
7820 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7840 if test -n "$ac_ct_DUMPBIN"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7842 $as_echo "$ac_ct_DUMPBIN" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 test -n "$ac_ct_DUMPBIN" && break
7852 if test "x$ac_ct_DUMPBIN" = x; then
7855 case $cross_compiling:$ac_tool_warned in
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7861 DUMPBIN=$ac_ct_DUMPBIN
7865 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7867 DUMPBIN="$DUMPBIN -symbols -headers"
7875 if test : != "$DUMPBIN"; then
7879 test -z "$NM" && NM=nm
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7887 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7888 if ${lt_cv_nm_interface+:} false; then :
7889 $as_echo_n "(cached) " >&6
7891 lt_cv_nm_interface="BSD nm"
7892 echo "int some_variable = 0;" > conftest.$ac_ext
7893 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7894 (eval "$ac_compile" 2>conftest.err)
7895 cat conftest.err >&5
7896 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7897 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7898 cat conftest.err >&5
7899 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7900 cat conftest.out >&5
7901 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7902 lt_cv_nm_interface="MS dumpbin"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7907 $as_echo "$lt_cv_nm_interface" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7910 $as_echo_n "checking whether ln -s works... " >&6; }
7912 if test "$LN_S" = "ln -s"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7917 $as_echo "no, using $LN_S" >&6; }
7920 # find the maximum length of command line arguments
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7922 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7923 if ${lt_cv_sys_max_cmd_len+:} false; then :
7924 $as_echo_n "(cached) " >&6
7931 # On DJGPP, this test can blow up pretty badly due to problems in libc
7932 # (any single argument exceeding 2000 bytes causes a buffer overrun
7933 # during glob expansion). Even if it were fixed, the result of this
7934 # check would be larger than it should be.
7935 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7939 # Under GNU Hurd, this test is not required because there is
7940 # no limit to the length of command line arguments.
7941 # Libtool will interpret -1 as no limit whatsoever
7942 lt_cv_sys_max_cmd_len=-1;
7945 cygwin* | mingw* | cegcc*)
7946 # On Win9x/ME, this test blows up -- it succeeds, but takes
7947 # about 5 minutes as the teststring grows exponentially.
7948 # Worse, since 9x/ME are not pre-emptively multitasking,
7949 # you end up with a "frozen" computer, even though with patience
7950 # the test eventually succeeds (with a max line length of 256k).
7951 # Instead, let's just punt: use the minimum linelength reported by
7952 # all of the supported platforms: 8192 (on NT/2K/XP).
7953 lt_cv_sys_max_cmd_len=8192;
7957 # On MiNT this can take a long time and run out of memory.
7958 lt_cv_sys_max_cmd_len=8192;
7962 # On AmigaOS with pdksh, this test takes hours, literally.
7963 # So we just punt and use a minimum line length of 8192.
7964 lt_cv_sys_max_cmd_len=8192;
7967 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7968 # This has been around since 386BSD, at least. Likely further.
7969 if test -x /sbin/sysctl; then
7970 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7971 elif test -x /usr/sbin/sysctl; then
7972 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7974 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7976 # And add a safety zone
7977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7982 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7983 lt_cv_sys_max_cmd_len=196608
7987 # The test takes a long time on OS/2.
7988 lt_cv_sys_max_cmd_len=8192
7992 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7993 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7994 # nice to cause kernel panics so lets avoid the loop below.
7995 # First set a reasonable default.
7996 lt_cv_sys_max_cmd_len=16384
7998 if test -x /sbin/sysconfig; then
7999 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8000 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8005 lt_cv_sys_max_cmd_len=102400
8007 sysv5* | sco5v6* | sysv4.2uw2*)
8008 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8009 if test -n "$kargmax"; then
8010 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8012 lt_cv_sys_max_cmd_len=32768
8016 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8017 if test -n "$lt_cv_sys_max_cmd_len" && \
8018 test undefined != "$lt_cv_sys_max_cmd_len"; then
8019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8022 # Make teststring a little bigger before we do anything with it.
8023 # a 1K string should be a reasonable start.
8024 for i in 1 2 3 4 5 6 7 8; do
8025 teststring=$teststring$teststring
8027 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8028 # If test is not a shell built-in, we'll probably end up computing a
8029 # maximum length that is only half of the actual maximum length, but
8031 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8032 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8033 test 17 != "$i" # 1/2 MB should be enough
8036 teststring=$teststring$teststring
8038 # Only check the string length outside the loop.
8039 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8041 # Add a significant safety factor because C++ compilers can tack on
8042 # massive amounts of additional arguments before passing them to the
8043 # linker. It appears as though 1/2 is a usable value.
8044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8051 if test -n "$lt_cv_sys_max_cmd_len"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8053 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8056 $as_echo "none" >&6; }
8058 max_cmd_len=$lt_cv_sys_max_cmd_len
8069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8079 # test EBCDIC or ASCII
8080 case `echo X|tr X '\101'` in
8081 A) # ASCII based system
8082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8083 lt_SP2NL='tr \040 \012'
8084 lt_NL2SP='tr \015\012 \040\040'
8086 *) # EBCDIC based system
8087 lt_SP2NL='tr \100 \n'
8088 lt_NL2SP='tr \r\n \100\100'
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8101 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8102 if ${lt_cv_to_host_file_cmd+:} false; then :
8103 $as_echo_n "(cached) " >&6
8108 *-*-mingw* ) # actually msys
8109 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8112 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8114 * ) # otherwise, assume *nix
8115 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8121 *-*-mingw* ) # actually msys
8122 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8125 lt_cv_to_host_file_cmd=func_convert_file_noop
8127 * ) # otherwise, assume *nix
8128 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8132 * ) # unhandled hosts (and "normal" native builds)
8133 lt_cv_to_host_file_cmd=func_convert_file_noop
8139 to_host_file_cmd=$lt_cv_to_host_file_cmd
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8141 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8148 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8149 if ${lt_cv_to_tool_file_cmd+:} false; then :
8150 $as_echo_n "(cached) " >&6
8152 #assume ordinary cross tools, or native build.
8153 lt_cv_to_tool_file_cmd=func_convert_file_noop
8157 *-*-mingw* ) # actually msys
8158 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8166 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8168 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8175 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8176 if ${lt_cv_ld_reload_flag+:} false; then :
8177 $as_echo_n "(cached) " >&6
8179 lt_cv_ld_reload_flag='-r'
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8182 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8183 reload_flag=$lt_cv_ld_reload_flag
8184 case $reload_flag in
8186 *) reload_flag=" $reload_flag" ;;
8188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8190 cygwin* | mingw* | pw32* | cegcc*)
8191 if test yes != "$GCC"; then
8196 if test yes = "$GCC"; then
8197 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_prog_OBJDUMP+:} false; then :
8218 $as_echo_n "(cached) " >&6
8220 if test -n "$OBJDUMP"; then
8221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 OBJDUMP=$ac_cv_prog_OBJDUMP
8241 if test -n "$OBJDUMP"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8243 $as_echo "$OBJDUMP" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8251 if test -z "$ac_cv_prog_OBJDUMP"; then
8252 ac_ct_OBJDUMP=$OBJDUMP
8253 # Extract the first word of "objdump", so it can be a program name with args.
8254 set dummy objdump; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8258 $as_echo_n "(cached) " >&6
8260 if test -n "$ac_ct_OBJDUMP"; then
8261 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8281 if test -n "$ac_ct_OBJDUMP"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8283 $as_echo "$ac_ct_OBJDUMP" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8289 if test "x$ac_ct_OBJDUMP" = x; then
8292 case $cross_compiling:$ac_tool_warned in
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8296 ac_tool_warned=yes ;;
8298 OBJDUMP=$ac_ct_OBJDUMP
8301 OBJDUMP="$ac_cv_prog_OBJDUMP"
8304 test -z "$OBJDUMP" && OBJDUMP=objdump
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8312 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8313 if ${lt_cv_deplibs_check_method+:} false; then :
8314 $as_echo_n "(cached) " >&6
8316 lt_cv_file_magic_cmd='$MAGIC_CMD'
8317 lt_cv_file_magic_test_file=
8318 lt_cv_deplibs_check_method='unknown'
8319 # Need to set the preceding variable on all platforms that support
8320 # interlibrary dependencies.
8321 # 'none' -- dependencies not supported.
8322 # 'unknown' -- same as none, but documents that we really don't know.
8323 # 'pass_all' -- all dependencies passed with no checks.
8324 # 'test_compile' -- check by making test program.
8325 # 'file_magic [[regex]]' -- check by looking for files in library path
8326 # that responds to the $file_magic_cmd with a given extended regex.
8327 # If you have 'file' or equivalent on your system and you're not sure
8328 # whether 'pass_all' will *always* work, you probably want this one.
8332 lt_cv_deplibs_check_method=pass_all
8336 lt_cv_deplibs_check_method=pass_all
8340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8341 lt_cv_file_magic_cmd='/usr/bin/file -L'
8342 lt_cv_file_magic_test_file=/shlib/libc.so
8346 # func_win32_libid is a shell function defined in ltmain.sh
8347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8348 lt_cv_file_magic_cmd='func_win32_libid'
8352 # Base MSYS/MinGW do not provide the 'file' command needed by
8353 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8354 # unless we find 'file', for example because we are cross-compiling.
8355 if ( file / ) >/dev/null 2>&1; then
8356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8357 lt_cv_file_magic_cmd='func_win32_libid'
8359 # Keep this pattern in sync with the one in func_win32_libid.
8360 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8361 lt_cv_file_magic_cmd='$OBJDUMP -f'
8366 # use the weaker test based on 'objdump'. See mingw*.
8367 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8368 lt_cv_file_magic_cmd='$OBJDUMP -f'
8371 darwin* | rhapsody*)
8372 lt_cv_deplibs_check_method=pass_all
8375 freebsd* | dragonfly*)
8376 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8379 # Not sure whether the presence of OpenBSD here was a mistake.
8380 # Let's accept both of them until this is cleared up.
8381 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8382 lt_cv_file_magic_cmd=/usr/bin/file
8383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8387 lt_cv_deplibs_check_method=pass_all
8392 lt_cv_deplibs_check_method=pass_all
8395 hpux10.20* | hpux11*)
8396 lt_cv_file_magic_cmd=/usr/bin/file
8399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8400 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8403 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]'
8404 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8408 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8414 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8418 irix5* | irix6* | nonstopux*)
8420 *-32|*"-32 ") libmagic=32-bit;;
8421 *-n32|*"-n32 ") libmagic=N32;;
8422 *-64|*"-64 ") libmagic=64-bit;;
8423 *) libmagic=never-match;;
8425 lt_cv_deplibs_check_method=pass_all
8428 # This must be glibc/ELF.
8429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8430 lt_cv_deplibs_check_method=pass_all
8434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8443 lt_cv_file_magic_cmd=/usr/bin/file
8444 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8448 lt_cv_deplibs_check_method=pass_all
8452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8459 osf3* | osf4* | osf5*)
8460 lt_cv_deplibs_check_method=pass_all
8464 lt_cv_deplibs_check_method=pass_all
8468 lt_cv_deplibs_check_method=pass_all
8471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8472 lt_cv_deplibs_check_method=pass_all
8476 case $host_vendor in
8478 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]'
8479 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8482 lt_cv_deplibs_check_method=pass_all
8485 lt_cv_file_magic_cmd='/bin/file'
8486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8489 lt_cv_file_magic_cmd='/bin/file'
8490 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8491 lt_cv_file_magic_test_file=/lib/libc.so
8494 lt_cv_deplibs_check_method=pass_all
8497 lt_cv_deplibs_check_method=pass_all
8503 lt_cv_deplibs_check_method=pass_all
8506 lt_cv_deplibs_check_method=pass_all
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8516 if test "$build" = "$host"; then
8519 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8522 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8528 file_magic_cmd=$lt_cv_file_magic_cmd
8529 deplibs_check_method=$lt_cv_deplibs_check_method
8530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8553 if test -n "$ac_tool_prefix"; then
8554 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8555 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if ${ac_cv_prog_DLLTOOL+:} false; then :
8559 $as_echo_n "(cached) " >&6
8561 if test -n "$DLLTOOL"; then
8562 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8571 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 DLLTOOL=$ac_cv_prog_DLLTOOL
8582 if test -n "$DLLTOOL"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8584 $as_echo "$DLLTOOL" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8592 if test -z "$ac_cv_prog_DLLTOOL"; then
8593 ac_ct_DLLTOOL=$DLLTOOL
8594 # Extract the first word of "dlltool", so it can be a program name with args.
8595 set dummy dlltool; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8599 $as_echo_n "(cached) " >&6
8601 if test -n "$ac_ct_DLLTOOL"; then
8602 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8622 if test -n "$ac_ct_DLLTOOL"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8624 $as_echo "$ac_ct_DLLTOOL" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8630 if test "x$ac_ct_DLLTOOL" = x; then
8633 case $cross_compiling:$ac_tool_warned in
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8637 ac_tool_warned=yes ;;
8639 DLLTOOL=$ac_ct_DLLTOOL
8642 DLLTOOL="$ac_cv_prog_DLLTOOL"
8645 test -z "$DLLTOOL" && DLLTOOL=dlltool
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8654 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8655 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8656 $as_echo_n "(cached) " >&6
8658 lt_cv_sharedlib_from_linklib_cmd='unknown'
8661 cygwin* | mingw* | pw32* | cegcc*)
8662 # two different shell functions defined in ltmain.sh;
8663 # decide which one to use based on capabilities of $DLLTOOL
8664 case `$DLLTOOL --help 2>&1` in
8665 *--identify-strict*)
8666 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8669 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8674 # fallback: assume linklib IS sharedlib
8675 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8681 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8682 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8683 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8691 if test -n "$ac_tool_prefix"; then
8694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_AR+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 if test -n "$AR"; then
8702 ac_cv_prog_AR="$AR" # Let the user override the test.
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 if test -n "$AR"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8724 $as_echo "$AR" >&6; }
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8731 test -n "$AR" && break
8734 if test -z "$AR"; then
8738 # Extract the first word of "$ac_prog", so it can be a program name with args.
8739 set dummy $ac_prog; ac_word=$2
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741 $as_echo_n "checking for $ac_word... " >&6; }
8742 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8743 $as_echo_n "(cached) " >&6
8745 if test -n "$ac_ct_AR"; then
8746 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755 ac_cv_prog_ac_ct_AR="$ac_prog"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8766 if test -n "$ac_ct_AR"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8768 $as_echo "$ac_ct_AR" >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8775 test -n "$ac_ct_AR" && break
8778 if test "x$ac_ct_AR" = x; then
8781 case $cross_compiling:$ac_tool_warned in
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8785 ac_tool_warned=yes ;;
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8805 $as_echo_n "checking for archiver @FILE support... " >&6; }
8806 if ${lt_cv_ar_at_file+:} false; then :
8807 $as_echo_n "(cached) " >&6
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822 echo conftest.$ac_objext > conftest.lst
8823 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8825 (eval $lt_ar_try) 2>&5
8827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8828 test $ac_status = 0; }
8829 if test 0 -eq "$ac_status"; then
8830 # Ensure the archiver fails upon bogus file names.
8831 rm -f conftest.$ac_objext libconftest.a
8832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8833 (eval $lt_ar_try) 2>&5
8835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8836 test $ac_status = 0; }
8837 if test 0 -ne "$ac_status"; then
8841 rm -f conftest.* libconftest.a
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8848 $as_echo "$lt_cv_ar_at_file" >&6; }
8850 if test no = "$lt_cv_ar_at_file"; then
8853 archiver_list_spec=$lt_cv_ar_at_file
8862 if test -n "$ac_tool_prefix"; then
8863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8864 set dummy ${ac_tool_prefix}strip; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_STRIP+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 if test -n "$STRIP"; then
8871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 STRIP=$ac_cv_prog_STRIP
8891 if test -n "$STRIP"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8893 $as_echo "$STRIP" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8901 if test -z "$ac_cv_prog_STRIP"; then
8903 # Extract the first word of "strip", so it can be a program name with args.
8904 set dummy strip; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8908 $as_echo_n "(cached) " >&6
8910 if test -n "$ac_ct_STRIP"; then
8911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920 ac_cv_prog_ac_ct_STRIP="strip"
8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8931 if test -n "$ac_ct_STRIP"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8933 $as_echo "$ac_ct_STRIP" >&6; }
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8939 if test "x$ac_ct_STRIP" = x; then
8942 case $cross_compiling:$ac_tool_warned in
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8946 ac_tool_warned=yes ;;
8951 STRIP="$ac_cv_prog_STRIP"
8954 test -z "$STRIP" && STRIP=:
8961 if test -n "$ac_tool_prefix"; then
8962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_RANLIB+:} false; then :
8967 $as_echo_n "(cached) " >&6
8969 if test -n "$RANLIB"; then
8970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 RANLIB=$ac_cv_prog_RANLIB
8990 if test -n "$RANLIB"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8992 $as_echo "$RANLIB" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
9000 if test -z "$ac_cv_prog_RANLIB"; then
9001 ac_ct_RANLIB=$RANLIB
9002 # Extract the first word of "ranlib", so it can be a program name with args.
9003 set dummy ranlib; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9007 $as_echo_n "(cached) " >&6
9009 if test -n "$ac_ct_RANLIB"; then
9010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9019 ac_cv_prog_ac_ct_RANLIB="ranlib"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9030 if test -n "$ac_ct_RANLIB"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9032 $as_echo "$ac_ct_RANLIB" >&6; }
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9038 if test "x$ac_ct_RANLIB" = x; then
9041 case $cross_compiling:$ac_tool_warned in
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9045 ac_tool_warned=yes ;;
9047 RANLIB=$ac_ct_RANLIB
9050 RANLIB="$ac_cv_prog_RANLIB"
9053 test -z "$RANLIB" && RANLIB=:
9060 # Determine commands to create old-style static archives.
9061 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9062 old_postinstall_cmds='chmod 644 $oldlib'
9063 old_postuninstall_cmds=
9065 if test -n "$RANLIB"; then
9068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9079 lock_old_archive_extraction=yes ;;
9081 lock_old_archive_extraction=no ;;
9122 # If no C compiler was specified, use CC.
9125 # If no C compiler flags were specified, use CFLAGS.
9126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9128 # Allow CC to be a program name with arguments.
9132 # Check for command to grab the raw symbol name followed by C symbol from nm.
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9134 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9135 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9136 $as_echo_n "(cached) " >&6
9139 # These are sane defaults that work on at least a few old systems.
9140 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9142 # Character class describing NM global symbol codes.
9143 symcode='[BCDEGRST]'
9145 # Regexp to match symbols that can be accessed directly from C.
9146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9148 # Define system-specific variables.
9153 cygwin* | mingw* | pw32* | cegcc*)
9154 symcode='[ABCDGISTW]'
9157 if test ia64 = "$host_cpu"; then
9158 symcode='[ABCDEGRST]'
9162 symcode='[BCDEGRST]'
9165 symcode='[BCDEGQRST]'
9176 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9184 # If we're using GNU nm, then use its standard symbol codes.
9185 case `$NM -V 2>&1` in
9186 *GNU* | *'with BFD'*)
9187 symcode='[ABCDGIRSTW]' ;;
9190 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9191 # Gets list of data symbols to import.
9192 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9193 # Adjust the below global symbol transforms to fixup imported variables.
9194 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9195 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9196 lt_c_name_lib_hook="\
9197 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9198 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9200 # Disable hooks by default.
9201 lt_cv_sys_global_symbol_to_import=
9207 # Transform an extracted symbol line into a proper C declaration.
9208 # Some systems (esp. on ia64) link data and code symbols differently,
9209 # so use this general approach.
9210 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9212 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9213 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9215 # Transform an extracted symbol line into symbol name and symbol address
9216 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9218 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9219 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9221 # Transform an extracted symbol line into symbol name with lib prefix and
9223 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9224 $lt_c_name_lib_hook\
9225 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9226 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9227 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9229 # Handle CRLF in mingw tool chain
9233 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9237 # Try without a prefix underscore, then with it.
9238 for ac_symprfx in "" "_"; do
9240 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9241 symxfrm="\\1 $ac_symprfx\\2 \\2"
9243 # Write the raw and C identifiers.
9244 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9245 # Fake it for dumpbin and say T for any non-static function,
9246 # D for any global variable and I for any imported variable.
9247 # Also find C++ and __fastcall symbols from MSVC++,
9248 # which start with @ or ?.
9249 lt_cv_sys_global_symbol_pipe="$AWK '"\
9250 " {last_section=section; section=\$ 3};"\
9251 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9252 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9253 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9254 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9255 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9256 " \$ 0!~/External *\|/{next};"\
9257 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9258 " {if(hide[section]) next};"\
9259 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9260 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9261 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9262 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9263 " ' prfx=^$ac_symprfx"
9265 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9267 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9269 # Check to see that the pipe works correctly.
9273 cat > conftest.$ac_ext <<_LT_EOF
9278 void nm_test_func(void);
9279 void nm_test_func(void){}
9283 int main(){nm_test_var='a';nm_test_func();return(0);}
9286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9287 (eval $ac_compile) 2>&5
9289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9290 test $ac_status = 0; }; then
9291 # Now try to grab the symbols.
9293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9294 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9297 test $ac_status = 0; } && test -s "$nlist"; then
9298 # Try sorting and uniquifying the output.
9299 if sort "$nlist" | uniq > "$nlist"T; then
9300 mv -f "$nlist"T "$nlist"
9305 # Make sure that we snagged all the symbols we need.
9306 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9307 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9308 cat <<_LT_EOF > conftest.$ac_ext
9309 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9310 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9311 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9312 relocations are performed -- see ld's documentation on pseudo-relocs. */
9313 # define LT_DLSYM_CONST
9314 #elif defined __osf__
9315 /* This system does not cope well with relocations in const data. */
9316 # define LT_DLSYM_CONST
9318 # define LT_DLSYM_CONST const
9326 # Now generate the symbol file.
9327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9329 cat <<_LT_EOF >> conftest.$ac_ext
9331 /* The mapping between symbol names and symbols. */
9332 LT_DLSYM_CONST struct {
9336 lt__PROGRAM__LTX_preloaded_symbols[] =
9338 { "@PROGRAM@", (void *) 0 },
9340 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9341 cat <<\_LT_EOF >> conftest.$ac_ext
9345 /* This works around a problem in FreeBSD linker */
9346 #ifdef FREEBSD_WORKAROUND
9347 static const void *lt_preloaded_setup() {
9348 return lt__PROGRAM__LTX_preloaded_symbols;
9356 # Now try linking the two files.
9357 mv conftest.$ac_objext conftstm.$ac_objext
9358 lt_globsym_save_LIBS=$LIBS
9359 lt_globsym_save_CFLAGS=$CFLAGS
9360 LIBS=conftstm.$ac_objext
9361 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9363 (eval $ac_link) 2>&5
9365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9366 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9369 LIBS=$lt_globsym_save_LIBS
9370 CFLAGS=$lt_globsym_save_CFLAGS
9372 echo "cannot find nm_test_func in $nlist" >&5
9375 echo "cannot find nm_test_var in $nlist" >&5
9378 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9381 echo "$progname: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9384 rm -rf conftest* conftst*
9386 # Do not use the global_symbol_pipe unless it works.
9387 if test yes = "$pipe_works"; then
9390 lt_cv_sys_global_symbol_pipe=
9396 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9397 lt_cv_sys_global_symbol_to_cdecl=
9399 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9401 $as_echo "failed" >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9404 $as_echo "ok" >&6; }
9407 # Response file support.
9408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9409 nm_file_list_spec='@'
9410 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9411 nm_file_list_spec='@'
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9451 $as_echo_n "checking for sysroot... " >&6; }
9453 # Check whether --with-sysroot was given.
9454 if test "${with_sysroot+set}" = set; then :
9455 withval=$with_sysroot;
9462 case $with_sysroot in #(
9464 if test yes = "$GCC"; then
9465 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9469 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9475 $as_echo "$with_sysroot" >&6; }
9476 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9481 $as_echo "${lt_sysroot:-no}" >&6; }
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9488 $as_echo_n "checking for a working dd... " >&6; }
9489 if ${ac_cv_path_lt_DD+:} false; then :
9490 $as_echo_n "(cached) " >&6
9492 printf 0123456789abcdef0123456789abcdef >conftest.i
9493 cat conftest.i conftest.i >conftest2.i
9495 if test -z "$lt_DD"; then
9496 ac_path_lt_DD_found=false
9497 # Loop through the user's path and test for each of PROGNAME-LIST
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 test -z "$as_dir" && as_dir=.
9503 for ac_prog in dd; do
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9506 as_fn_executable_p "$ac_path_lt_DD" || continue
9507 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9508 cmp -s conftest.i conftest.out \
9509 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9511 $ac_path_lt_DD_found && break 3
9516 if test -z "$ac_cv_path_lt_DD"; then
9520 ac_cv_path_lt_DD=$lt_DD
9523 rm -f conftest.i conftest2.i conftest.out
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9526 $as_echo "$ac_cv_path_lt_DD" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9530 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9531 if ${lt_cv_truncate_bin+:} false; then :
9532 $as_echo_n "(cached) " >&6
9534 printf 0123456789abcdef0123456789abcdef >conftest.i
9535 cat conftest.i conftest.i >conftest2.i
9537 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9538 cmp -s conftest.i conftest.out \
9539 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9541 rm -f conftest.i conftest2.i conftest.out
9542 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9545 $as_echo "$lt_cv_truncate_bin" >&6; }
9553 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9556 for cc_temp in $*""; do
9558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9564 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9567 # Check whether --enable-libtool-lock was given.
9568 if test "${enable_libtool_lock+set}" = set; then :
9569 enableval=$enable_libtool_lock;
9572 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9574 # Some flags need to be propagated to the compiler or linker for good
9578 # Find out what ABI is being produced by ac_compile, and set mode
9579 # options accordingly.
9580 echo 'int i;' > conftest.$ac_ext
9581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9582 (eval $ac_compile) 2>&5
9584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9585 test $ac_status = 0; }; then
9586 case `/usr/bin/file conftest.$ac_objext` in
9598 # Find out what ABI is being produced by ac_compile, and set linker
9599 # options accordingly.
9600 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9602 (eval $ac_compile) 2>&5
9604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605 test $ac_status = 0; }; then
9606 if test yes = "$lt_cv_prog_gnu_ld"; then
9607 case `/usr/bin/file conftest.$ac_objext` in
9609 LD="${LD-ld} -melf32bsmip"
9612 LD="${LD-ld} -melf32bmipn32"
9615 LD="${LD-ld} -melf64bmip"
9619 case `/usr/bin/file conftest.$ac_objext` in
9636 # Find out what ABI is being produced by ac_compile, and set linker
9637 # options accordingly.
9638 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9640 (eval $ac_compile) 2>&5
9642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9643 test $ac_status = 0; }; then
9645 case `/usr/bin/file conftest.$ac_objext` in
9653 case `/usr/bin/file conftest.$ac_objext` in
9655 emul="${emul}btsmip"
9658 emul="${emul}ltsmip"
9661 case `/usr/bin/file conftest.$ac_objext` in
9666 LD="${LD-ld} -m $emul"
9671 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9672 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9673 # Find out what ABI is being produced by ac_compile, and set linker
9674 # options accordingly. Note that the listed cases only cover the
9675 # situations where additional linker options are needed (such as when
9676 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9677 # vice versa); the common cases where no linker options are needed do
9678 # not appear in the list.
9679 echo 'int i;' > conftest.$ac_ext
9680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9681 (eval $ac_compile) 2>&5
9683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9684 test $ac_status = 0; }; then
9685 case `/usr/bin/file conftest.o` in
9688 x86_64-*kfreebsd*-gnu)
9689 LD="${LD-ld} -m elf_i386_fbsd"
9692 case `/usr/bin/file conftest.o` in
9694 LD="${LD-ld} -m elf32_x86_64"
9697 LD="${LD-ld} -m elf_i386"
9701 powerpc64le-*linux*)
9702 LD="${LD-ld} -m elf32lppclinux"
9705 LD="${LD-ld} -m elf32ppclinux"
9708 LD="${LD-ld} -m elf_s390"
9711 LD="${LD-ld} -m elf32_sparc"
9717 x86_64-*kfreebsd*-gnu)
9718 LD="${LD-ld} -m elf_x86_64_fbsd"
9721 LD="${LD-ld} -m elf_x86_64"
9724 LD="${LD-ld} -m elf64lppc"
9727 LD="${LD-ld} -m elf64ppc"
9729 s390*-*linux*|s390*-*tpf*)
9730 LD="${LD-ld} -m elf64_s390"
9733 LD="${LD-ld} -m elf64_sparc"
9743 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9745 CFLAGS="$CFLAGS -belf"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9747 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9748 if ${lt_cv_cc_needs_belf+:} false; then :
9749 $as_echo_n "(cached) " >&6
9752 ac_cpp='$CPP $CPPFLAGS'
9753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9768 if ac_fn_c_try_link "$LINENO"; then :
9769 lt_cv_cc_needs_belf=yes
9771 lt_cv_cc_needs_belf=no
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9776 ac_cpp='$CPP $CPPFLAGS'
9777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9783 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9784 if test yes != "$lt_cv_cc_needs_belf"; then
9785 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9790 # Find out what ABI is being produced by ac_compile, and set linker
9791 # options accordingly.
9792 echo 'int i;' > conftest.$ac_ext
9793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9794 (eval $ac_compile) 2>&5
9796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9797 test $ac_status = 0; }; then
9798 case `/usr/bin/file conftest.o` in
9800 case $lt_cv_prog_gnu_ld in
9803 i?86-*-solaris*|x86_64-*-solaris*)
9804 LD="${LD-ld} -m elf_x86_64"
9807 LD="${LD-ld} -m elf64_sparc"
9810 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9811 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9816 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9828 need_locks=$enable_libtool_lock
9830 if test -n "$ac_tool_prefix"; then
9831 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9832 set dummy ${ac_tool_prefix}mt; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9836 $as_echo_n "(cached) " >&6
9838 if test -n "$MANIFEST_TOOL"; then
9839 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9859 if test -n "$MANIFEST_TOOL"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9861 $as_echo "$MANIFEST_TOOL" >&6; }
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9869 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9870 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9871 # Extract the first word of "mt", so it can be a program name with args.
9872 set dummy mt; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9876 $as_echo_n "(cached) " >&6
9878 if test -n "$ac_ct_MANIFEST_TOOL"; then
9879 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9899 if test -n "$ac_ct_MANIFEST_TOOL"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9901 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9907 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9910 case $cross_compiling:$ac_tool_warned in
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9914 ac_tool_warned=yes ;;
9916 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9919 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9922 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9924 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9925 if ${lt_cv_path_mainfest_tool+:} false; then :
9926 $as_echo_n "(cached) " >&6
9928 lt_cv_path_mainfest_tool=no
9929 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9930 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9931 cat conftest.err >&5
9932 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9933 lt_cv_path_mainfest_tool=yes
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9938 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9939 if test yes != "$lt_cv_path_mainfest_tool"; then
9949 rhapsody* | darwin*)
9950 if test -n "$ac_tool_prefix"; then
9951 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9952 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 if test -n "$DSYMUTIL"; then
9959 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9979 if test -n "$DSYMUTIL"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9981 $as_echo "$DSYMUTIL" >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9989 if test -z "$ac_cv_prog_DSYMUTIL"; then
9990 ac_ct_DSYMUTIL=$DSYMUTIL
9991 # Extract the first word of "dsymutil", so it can be a program name with args.
9992 set dummy dsymutil; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9996 $as_echo_n "(cached) " >&6
9998 if test -n "$ac_ct_DSYMUTIL"; then
9999 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10019 if test -n "$ac_ct_DSYMUTIL"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10021 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10027 if test "x$ac_ct_DSYMUTIL" = x; then
10030 case $cross_compiling:$ac_tool_warned in
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10034 ac_tool_warned=yes ;;
10036 DSYMUTIL=$ac_ct_DSYMUTIL
10039 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10042 if test -n "$ac_tool_prefix"; then
10043 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10044 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_NMEDIT+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 if test -n "$NMEDIT"; then
10051 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 NMEDIT=$ac_cv_prog_NMEDIT
10071 if test -n "$NMEDIT"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10073 $as_echo "$NMEDIT" >&6; }
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10081 if test -z "$ac_cv_prog_NMEDIT"; then
10082 ac_ct_NMEDIT=$NMEDIT
10083 # Extract the first word of "nmedit", so it can be a program name with args.
10084 set dummy nmedit; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10088 $as_echo_n "(cached) " >&6
10090 if test -n "$ac_ct_NMEDIT"; then
10091 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10111 if test -n "$ac_ct_NMEDIT"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10113 $as_echo "$ac_ct_NMEDIT" >&6; }
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10119 if test "x$ac_ct_NMEDIT" = x; then
10122 case $cross_compiling:$ac_tool_warned in
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126 ac_tool_warned=yes ;;
10128 NMEDIT=$ac_ct_NMEDIT
10131 NMEDIT="$ac_cv_prog_NMEDIT"
10134 if test -n "$ac_tool_prefix"; then
10135 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10136 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_prog_LIPO+:} false; then :
10140 $as_echo_n "(cached) " >&6
10142 if test -n "$LIPO"; then
10143 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 LIPO=$ac_cv_prog_LIPO
10163 if test -n "$LIPO"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10165 $as_echo "$LIPO" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 if test -z "$ac_cv_prog_LIPO"; then
10175 # Extract the first word of "lipo", so it can be a program name with args.
10176 set dummy lipo; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10180 $as_echo_n "(cached) " >&6
10182 if test -n "$ac_ct_LIPO"; then
10183 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192 ac_cv_prog_ac_ct_LIPO="lipo"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10203 if test -n "$ac_ct_LIPO"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10205 $as_echo "$ac_ct_LIPO" >&6; }
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10211 if test "x$ac_ct_LIPO" = x; then
10214 case $cross_compiling:$ac_tool_warned in
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10218 ac_tool_warned=yes ;;
10223 LIPO="$ac_cv_prog_LIPO"
10226 if test -n "$ac_tool_prefix"; then
10227 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10228 set dummy ${ac_tool_prefix}otool; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_prog_OTOOL+:} false; then :
10232 $as_echo_n "(cached) " >&6
10234 if test -n "$OTOOL"; then
10235 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 OTOOL=$ac_cv_prog_OTOOL
10255 if test -n "$OTOOL"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10257 $as_echo "$OTOOL" >&6; }
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10265 if test -z "$ac_cv_prog_OTOOL"; then
10267 # Extract the first word of "otool", so it can be a program name with args.
10268 set dummy otool; ac_word=$2
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270 $as_echo_n "checking for $ac_word... " >&6; }
10271 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10272 $as_echo_n "(cached) " >&6
10274 if test -n "$ac_ct_OTOOL"; then
10275 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10284 ac_cv_prog_ac_ct_OTOOL="otool"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10295 if test -n "$ac_ct_OTOOL"; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10297 $as_echo "$ac_ct_OTOOL" >&6; }
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10303 if test "x$ac_ct_OTOOL" = x; then
10306 case $cross_compiling:$ac_tool_warned in
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10310 ac_tool_warned=yes ;;
10315 OTOOL="$ac_cv_prog_OTOOL"
10318 if test -n "$ac_tool_prefix"; then
10319 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10320 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if ${ac_cv_prog_OTOOL64+:} false; then :
10324 $as_echo_n "(cached) " >&6
10326 if test -n "$OTOOL64"; then
10327 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 OTOOL64=$ac_cv_prog_OTOOL64
10347 if test -n "$OTOOL64"; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10349 $as_echo "$OTOOL64" >&6; }
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10357 if test -z "$ac_cv_prog_OTOOL64"; then
10358 ac_ct_OTOOL64=$OTOOL64
10359 # Extract the first word of "otool64", so it can be a program name with args.
10360 set dummy otool64; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10364 $as_echo_n "(cached) " >&6
10366 if test -n "$ac_ct_OTOOL64"; then
10367 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 ac_cv_prog_ac_ct_OTOOL64="otool64"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10387 if test -n "$ac_ct_OTOOL64"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10389 $as_echo "$ac_ct_OTOOL64" >&6; }
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10395 if test "x$ac_ct_OTOOL64" = x; then
10398 case $cross_compiling:$ac_tool_warned in
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10402 ac_tool_warned=yes ;;
10404 OTOOL64=$ac_ct_OTOOL64
10407 OTOOL64="$ac_cv_prog_OTOOL64"
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10437 $as_echo_n "checking for -single_module linker flag... " >&6; }
10438 if ${lt_cv_apple_cc_single_mod+:} false; then :
10439 $as_echo_n "(cached) " >&6
10441 lt_cv_apple_cc_single_mod=no
10442 if test -z "$LT_MULTI_MODULE"; then
10443 # By default we will add the -single_module flag. You can override
10444 # by either setting the environment variable LT_MULTI_MODULE
10445 # non-empty at configure time, or by adding -multi_module to the
10447 rm -rf libconftest.dylib*
10448 echo "int foo(void){return 1;}" > conftest.c
10449 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10450 -dynamiclib -Wl,-single_module conftest.c" >&5
10451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10452 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10454 # If there is a non-empty error log, and "single_module"
10455 # appears in it, assume the flag caused a linker warning
10456 if test -s conftest.err && $GREP single_module conftest.err; then
10457 cat conftest.err >&5
10458 # Otherwise, if the output was created with a 0 exit code from
10459 # the compiler, it worked.
10460 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10461 lt_cv_apple_cc_single_mod=yes
10463 cat conftest.err >&5
10465 rm -rf libconftest.dylib*
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10470 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10473 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10474 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10475 $as_echo_n "(cached) " >&6
10477 lt_cv_ld_exported_symbols_list=no
10478 save_LDFLAGS=$LDFLAGS
10479 echo "_main" > conftest.sym
10480 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 lt_cv_ld_exported_symbols_list=yes
10495 lt_cv_ld_exported_symbols_list=no
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LDFLAGS=$save_LDFLAGS
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10503 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10506 $as_echo_n "checking for -force_load linker flag... " >&6; }
10507 if ${lt_cv_ld_force_load+:} false; then :
10508 $as_echo_n "(cached) " >&6
10510 lt_cv_ld_force_load=no
10511 cat > conftest.c << _LT_EOF
10512 int forced_loaded() { return 2;}
10514 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10515 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10516 echo "$AR cru libconftest.a conftest.o" >&5
10517 $AR cru libconftest.a conftest.o 2>&5
10518 echo "$RANLIB libconftest.a" >&5
10519 $RANLIB libconftest.a 2>&5
10520 cat > conftest.c << _LT_EOF
10521 int main() { return 0;}
10523 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10524 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10526 if test -s conftest.err && $GREP force_load conftest.err; then
10527 cat conftest.err >&5
10528 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10529 lt_cv_ld_force_load=yes
10531 cat conftest.err >&5
10533 rm -f conftest.err libconftest.a conftest conftest.c
10534 rm -rf conftest.dSYM
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10538 $as_echo "$lt_cv_ld_force_load" >&6; }
10540 rhapsody* | darwin1.[012])
10541 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10543 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10544 darwin*) # darwin 5.x on
10545 # if running on 10.5 or later, the deployment target defaults
10546 # to the OS version, if on x86, and 10.4, the deployment
10547 # target defaults to 10.4. Don't you love it?
10548 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10549 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10550 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10552 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10554 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10558 if test yes = "$lt_cv_apple_cc_single_mod"; then
10559 _lt_dar_single_mod='$single_module'
10561 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10562 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10564 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10566 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10567 _lt_dsymutil='~$DSYMUTIL $lib || :'
10574 # func_munge_path_list VARIABLE PATH
10575 # -----------------------------------
10576 # VARIABLE is name of variable containing _space_ separated list of
10577 # directories to be munged by the contents of PATH, which is string
10580 # string "DIR[ DIR]" will be prepended to VARIABLE
10582 # string "DIR[ DIR]" will be appended to VARIABLE
10583 # "DIRP[:DIRP]::[DIRA:]DIRA"
10584 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10585 # "DIRA[ DIRA]" will be appended to VARIABLE
10587 # VARIABLE will be replaced by "DIR[ DIR]"
10588 func_munge_path_list ()
10594 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10597 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10600 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10601 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10604 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10609 for ac_header in dlfcn.h
10611 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10613 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10614 cat >>confdefs.h <<_ACEOF
10615 #define HAVE_DLFCN_H 1
10627 enable_win32_dll=yes
10630 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10631 if test -n "$ac_tool_prefix"; then
10632 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10633 set dummy ${ac_tool_prefix}as; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if ${ac_cv_prog_AS+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 if test -n "$AS"; then
10640 ac_cv_prog_AS="$AS" # Let the user override the test.
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649 ac_cv_prog_AS="${ac_tool_prefix}as"
10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 if test -n "$AS"; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10662 $as_echo "$AS" >&6; }
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10670 if test -z "$ac_cv_prog_AS"; then
10672 # Extract the first word of "as", so it can be a program name with args.
10673 set dummy as; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10677 $as_echo_n "(cached) " >&6
10679 if test -n "$ac_ct_AS"; then
10680 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_ac_ct_AS="as"
10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10700 if test -n "$ac_ct_AS"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10702 $as_echo "$ac_ct_AS" >&6; }
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10708 if test "x$ac_ct_AS" = x; then
10711 case $cross_compiling:$ac_tool_warned in
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10715 ac_tool_warned=yes ;;
10720 AS="$ac_cv_prog_AS"
10723 if test -n "$ac_tool_prefix"; then
10724 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10725 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727 $as_echo_n "checking for $ac_word... " >&6; }
10728 if ${ac_cv_prog_DLLTOOL+:} false; then :
10729 $as_echo_n "(cached) " >&6
10731 if test -n "$DLLTOOL"; then
10732 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH
10738 test -z "$as_dir" && as_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10741 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 DLLTOOL=$ac_cv_prog_DLLTOOL
10752 if test -n "$DLLTOOL"; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10754 $as_echo "$DLLTOOL" >&6; }
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10762 if test -z "$ac_cv_prog_DLLTOOL"; then
10763 ac_ct_DLLTOOL=$DLLTOOL
10764 # Extract the first word of "dlltool", so it can be a program name with args.
10765 set dummy dlltool; ac_word=$2
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767 $as_echo_n "checking for $ac_word... " >&6; }
10768 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10769 $as_echo_n "(cached) " >&6
10771 if test -n "$ac_ct_DLLTOOL"; then
10772 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10781 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10792 if test -n "$ac_ct_DLLTOOL"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10794 $as_echo "$ac_ct_DLLTOOL" >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10800 if test "x$ac_ct_DLLTOOL" = x; then
10803 case $cross_compiling:$ac_tool_warned in
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10807 ac_tool_warned=yes ;;
10809 DLLTOOL=$ac_ct_DLLTOOL
10812 DLLTOOL="$ac_cv_prog_DLLTOOL"
10815 if test -n "$ac_tool_prefix"; then
10816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if ${ac_cv_prog_OBJDUMP+:} false; then :
10821 $as_echo_n "(cached) " >&6
10823 if test -n "$OBJDUMP"; then
10824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10833 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 OBJDUMP=$ac_cv_prog_OBJDUMP
10844 if test -n "$OBJDUMP"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10846 $as_echo "$OBJDUMP" >&6; }
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10854 if test -z "$ac_cv_prog_OBJDUMP"; then
10855 ac_ct_OBJDUMP=$OBJDUMP
10856 # Extract the first word of "objdump", so it can be a program name with args.
10857 set dummy objdump; ac_word=$2
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859 $as_echo_n "checking for $ac_word... " >&6; }
10860 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10861 $as_echo_n "(cached) " >&6
10863 if test -n "$ac_ct_OBJDUMP"; then
10864 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10884 if test -n "$ac_ct_OBJDUMP"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10886 $as_echo "$ac_ct_OBJDUMP" >&6; }
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10892 if test "x$ac_ct_OBJDUMP" = x; then
10895 case $cross_compiling:$ac_tool_warned in
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10899 ac_tool_warned=yes ;;
10901 OBJDUMP=$ac_ct_OBJDUMP
10904 OBJDUMP="$ac_cv_prog_OBJDUMP"
10910 test -z "$AS" && AS=as
10916 test -z "$DLLTOOL" && DLLTOOL=dlltool
10922 test -z "$OBJDUMP" && OBJDUMP=objdump
10934 # Check whether --enable-shared was given.
10935 if test "${enable_shared+set}" = set; then :
10936 enableval=$enable_shared; p=${PACKAGE-default}
10938 yes) enable_shared=yes ;;
10939 no) enable_shared=no ;;
10942 # Look at the argument we got. We use all the common list separators.
10943 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10944 for pkg in $enableval; do
10946 if test "X$pkg" = "X$p"; then
10965 # Check whether --enable-static was given.
10966 if test "${enable_static+set}" = set; then :
10967 enableval=$enable_static; p=${PACKAGE-default}
10969 yes) enable_static=yes ;;
10970 no) enable_static=no ;;
10973 # Look at the argument we got. We use all the common list separators.
10974 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10975 for pkg in $enableval; do
10977 if test "X$pkg" = "X$p"; then
10997 # Check whether --with-pic was given.
10998 if test "${with_pic+set}" = set; then :
10999 withval=$with_pic; lt_p=${PACKAGE-default}
11001 yes|no) pic_mode=$withval ;;
11004 # Look at the argument we got. We use all the common list separators.
11005 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11006 for lt_pkg in $withval; do
11008 if test "X$lt_pkg" = "X$lt_p"; then
11026 # Check whether --enable-fast-install was given.
11027 if test "${enable_fast_install+set}" = set; then :
11028 enableval=$enable_fast_install; p=${PACKAGE-default}
11030 yes) enable_fast_install=yes ;;
11031 no) enable_fast_install=no ;;
11033 enable_fast_install=no
11034 # Look at the argument we got. We use all the common list separators.
11035 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11036 for pkg in $enableval; do
11038 if test "X$pkg" = "X$p"; then
11039 enable_fast_install=yes
11046 enable_fast_install=yes
11056 shared_archive_member_spec=
11057 case $host,$enable_shared in
11058 power*-*-aix[5-9]*,yes)
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11060 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11062 # Check whether --with-aix-soname was given.
11063 if test "${with_aix_soname+set}" = set; then :
11064 withval=$with_aix_soname; case $withval in
11068 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11071 lt_cv_with_aix_soname=$with_aix_soname
11073 if ${lt_cv_with_aix_soname+:} false; then :
11074 $as_echo_n "(cached) " >&6
11076 lt_cv_with_aix_soname=aix
11079 with_aix_soname=$lt_cv_with_aix_soname
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11083 $as_echo "$with_aix_soname" >&6; }
11084 if test aix != "$with_aix_soname"; then
11085 # For the AIX way of multilib, we name the shared archive member
11086 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11087 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11088 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11089 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11090 if test 64 = "${OBJECT_MODE-32}"; then
11091 shared_archive_member_spec=shr_64
11093 shared_archive_member_spec=shr
11098 with_aix_soname=aix
11111 # This can be used to rebuild libtool when needed
11112 LIBTOOL_DEPS=$ltmain
11114 # Always use our own libtool.
11115 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
11146 test -z "$LN_S" && LN_S="ln -s"
11161 if test -n "${ZSH_VERSION+set}"; then
11162 setopt NO_GLOB_SUBST
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11166 $as_echo_n "checking for objdir... " >&6; }
11167 if ${lt_cv_objdir+:} false; then :
11168 $as_echo_n "(cached) " >&6
11170 rm -f .libs 2>/dev/null
11171 mkdir .libs 2>/dev/null
11172 if test -d .libs; then
11175 # MS-DOS does not allow filenames that begin with a dot.
11178 rmdir .libs 2>/dev/null
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11181 $as_echo "$lt_cv_objdir" >&6; }
11182 objdir=$lt_cv_objdir
11188 cat >>confdefs.h <<_ACEOF
11189 #define LT_OBJDIR "$lt_cv_objdir/"
11197 # AIX sometimes has problems with the GCC collect2 program. For some
11198 # reason, if we set the COLLECT_NAMES environment variable, the problems
11199 # vanish in a puff of smoke.
11200 if test set != "${COLLECT_NAMES+set}"; then
11202 export COLLECT_NAMES
11207 # Global variables:
11209 can_build_shared=yes
11211 # All known linkers require a '.a' archive for static linking (except MSVC,
11212 # which needs '.lib').
11215 with_gnu_ld=$lt_cv_prog_gnu_ld
11220 # Set sane defaults for various variables
11221 test -z "$CC" && CC=cc
11222 test -z "$LTCC" && LTCC=$CC
11223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11224 test -z "$LD" && LD=ld
11225 test -z "$ac_objext" && ac_objext=o
11227 func_cc_basename $compiler
11228 cc_basename=$func_cc_basename_result
11231 # Only perform the check for file, if the check method requires it
11232 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11233 case $deplibs_check_method in
11235 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11237 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11238 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11239 $as_echo_n "(cached) " >&6
11243 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11246 lt_save_MAGIC_CMD=$MAGIC_CMD
11247 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11248 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11249 for ac_dir in $ac_dummy; do
11251 test -z "$ac_dir" && ac_dir=.
11252 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11253 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11254 if test -n "$file_magic_test_file"; then
11255 case $deplibs_check_method in
11257 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11258 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11260 $EGREP "$file_magic_regex" > /dev/null; then
11265 *** Warning: the command libtool uses to detect shared libraries,
11266 *** $file_magic_cmd, produces output that libtool cannot recognize.
11267 *** The result is that libtool may fail to recognize shared libraries
11268 *** as such. This will affect the creation of libtool libraries that
11269 *** depend on shared libraries, but programs linked with such libtool
11270 *** libraries will work regardless of this problem. Nevertheless, you
11271 *** may want to report the problem to your system manager and/or to
11272 *** bug-libtool@gnu.org
11282 MAGIC_CMD=$lt_save_MAGIC_CMD
11287 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11288 if test -n "$MAGIC_CMD"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11290 $as_echo "$MAGIC_CMD" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11300 if test -z "$lt_cv_path_MAGIC_CMD"; then
11301 if test -n "$ac_tool_prefix"; then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11303 $as_echo_n "checking for file... " >&6; }
11304 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11305 $as_echo_n "(cached) " >&6
11309 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11312 lt_save_MAGIC_CMD=$MAGIC_CMD
11313 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11314 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11315 for ac_dir in $ac_dummy; do
11317 test -z "$ac_dir" && ac_dir=.
11318 if test -f "$ac_dir/file"; then
11319 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11320 if test -n "$file_magic_test_file"; then
11321 case $deplibs_check_method in
11323 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11324 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11325 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11326 $EGREP "$file_magic_regex" > /dev/null; then
11331 *** Warning: the command libtool uses to detect shared libraries,
11332 *** $file_magic_cmd, produces output that libtool cannot recognize.
11333 *** The result is that libtool may fail to recognize shared libraries
11334 *** as such. This will affect the creation of libtool libraries that
11335 *** depend on shared libraries, but programs linked with such libtool
11336 *** libraries will work regardless of this problem. Nevertheless, you
11337 *** may want to report the problem to your system manager and/or to
11338 *** bug-libtool@gnu.org
11348 MAGIC_CMD=$lt_save_MAGIC_CMD
11353 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11354 if test -n "$MAGIC_CMD"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11356 $as_echo "$MAGIC_CMD" >&6; }
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11372 # Use C for the default configuration in the libtool script
11376 ac_cpp='$CPP $CPPFLAGS'
11377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11382 # Source file extension for C test sources.
11385 # Object file extension for compiled C test sources.
11389 # Code to be used in simple compile tests
11390 lt_simple_compile_test_code="int some_variable = 0;"
11392 # Code to be used in simple link tests
11393 lt_simple_link_test_code='int main(){return(0);}'
11401 # If no C compiler was specified, use CC.
11404 # If no C compiler flags were specified, use CFLAGS.
11405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11407 # Allow CC to be a program name with arguments.
11410 # Save the default compiler, since it gets overwritten when the other
11411 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11412 compiler_DEFAULT=$CC
11414 # save warnings/boilerplate of simple test code
11415 ac_outfile=conftest.$ac_objext
11416 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11417 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11418 _lt_compiler_boilerplate=`cat conftest.err`
11421 ac_outfile=conftest.$ac_objext
11422 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11423 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11424 _lt_linker_boilerplate=`cat conftest.err`
11429 ## There is no encapsulation within the following macros, do not change
11430 ## the running order or otherwise move them around unless you know exactly
11431 ## what you are doing...
11432 if test -n "$compiler"; then
11434 lt_prog_compiler_no_builtin_flag=
11436 if test yes = "$GCC"; then
11437 case $cc_basename in
11439 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11441 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11445 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11446 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11447 $as_echo_n "(cached) " >&6
11449 lt_cv_prog_compiler_rtti_exceptions=no
11450 ac_outfile=conftest.$ac_objext
11451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11452 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11453 # Insert the option either (1) after the last *FLAGS variable, or
11454 # (2) before a word containing "conftest.", or (3) at the end.
11455 # Note that $ac_compile itself does not contain backslashes and begins
11456 # with a dollar sign (not a hyphen), so the echo should work correctly.
11457 # The option is referenced via a variable to avoid confusing sed.
11458 lt_compile=`echo "$ac_compile" | $SED \
11459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11461 -e 's:$: $lt_compiler_flag:'`
11462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11463 (eval "$lt_compile" 2>conftest.err)
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 if (exit $ac_status) && test -s "$ac_outfile"; then
11468 # The compiler can only warn and ignore the option if not recognized
11469 # So say no if there are warnings other than the usual output.
11470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11473 lt_cv_prog_compiler_rtti_exceptions=yes
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11480 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11482 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11483 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11495 lt_prog_compiler_wl=
11496 lt_prog_compiler_pic=
11497 lt_prog_compiler_static=
11500 if test yes = "$GCC"; then
11501 lt_prog_compiler_wl='-Wl,'
11502 lt_prog_compiler_static='-static'
11506 # All AIX code is PIC.
11507 if test ia64 = "$host_cpu"; then
11508 # AIX 5 now supports IA64 processor
11509 lt_prog_compiler_static='-Bstatic'
11511 lt_prog_compiler_pic='-fPIC'
11517 # see comment about AmigaOS4 .so support
11518 lt_prog_compiler_pic='-fPIC'
11521 # FIXME: we need at least 68020 code to build shared libraries, but
11522 # adding the '-m68020' flag to GCC prevents building anything better,
11524 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11529 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11530 # PIC is the default for these OSes.
11533 mingw* | cygwin* | pw32* | os2* | cegcc*)
11534 # This hack is so that the source file can tell whether it is being
11535 # built for inclusion in a dll (and should export symbols for example).
11536 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11537 # (--disable-auto-import) libraries
11538 lt_prog_compiler_pic='-DDLL_EXPORT'
11541 lt_prog_compiler_static='$wl-static'
11546 darwin* | rhapsody*)
11547 # PIC is the default on this platform
11548 # Common symbols not allowed in MH_DYLIB files
11549 lt_prog_compiler_pic='-fno-common'
11553 # PIC is the default for Haiku.
11554 # The "-static" flag exists, but is broken.
11555 lt_prog_compiler_static=
11559 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11560 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11561 # sets the default TLS model and affects inlining.
11567 lt_prog_compiler_pic='-fPIC'
11573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11574 # Instead, we relocate shared libraries at runtime.
11578 # Just because we use GCC doesn't mean we suddenly get shared libraries
11579 # on systems that don't support them.
11580 lt_prog_compiler_can_build_shared=no
11585 # QNX uses GNU C++, but need to define -shared option too, otherwise
11586 # it will coredump.
11587 lt_prog_compiler_pic='-fPIC -shared'
11591 if test -d /usr/nec; then
11592 lt_prog_compiler_pic=-Kconform_pic
11597 lt_prog_compiler_pic='-fPIC'
11601 case $cc_basename in
11602 nvcc*) # Cuda Compiler Driver 2.2
11603 lt_prog_compiler_wl='-Xlinker '
11604 if test -n "$lt_prog_compiler_pic"; then
11605 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11610 # PORTME Check for flag to pass linker flags through the system compiler.
11613 lt_prog_compiler_wl='-Wl,'
11614 if test ia64 = "$host_cpu"; then
11615 # AIX 5 now supports IA64 processor
11616 lt_prog_compiler_static='-Bstatic'
11618 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11622 darwin* | rhapsody*)
11623 # PIC is the default on this platform
11624 # Common symbols not allowed in MH_DYLIB files
11625 lt_prog_compiler_pic='-fno-common'
11626 case $cc_basename in
11628 # NAG Fortran compiler
11629 lt_prog_compiler_wl='-Wl,-Wl,,'
11630 lt_prog_compiler_pic='-PIC'
11631 lt_prog_compiler_static='-Bstatic'
11636 mingw* | cygwin* | pw32* | os2* | cegcc*)
11637 # This hack is so that the source file can tell whether it is being
11638 # built for inclusion in a dll (and should export symbols for example).
11639 lt_prog_compiler_pic='-DDLL_EXPORT'
11642 lt_prog_compiler_static='$wl-static'
11647 hpux9* | hpux10* | hpux11*)
11648 lt_prog_compiler_wl='-Wl,'
11649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11650 # not for PA HP-UX.
11656 lt_prog_compiler_pic='+Z'
11659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11660 lt_prog_compiler_static='$wl-a ${wl}archive'
11663 irix5* | irix6* | nonstopux*)
11664 lt_prog_compiler_wl='-Wl,'
11665 # PIC (with -KPIC) is the default.
11666 lt_prog_compiler_static='-non_shared'
11669 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11670 case $cc_basename in
11671 # old Intel for x86_64, which still supported -KPIC.
11673 lt_prog_compiler_wl='-Wl,'
11674 lt_prog_compiler_pic='-KPIC'
11675 lt_prog_compiler_static='-static'
11677 # icc used to be incompatible with GCC.
11678 # ICC 10 doesn't accept -KPIC any more.
11680 lt_prog_compiler_wl='-Wl,'
11681 lt_prog_compiler_pic='-fPIC'
11682 lt_prog_compiler_static='-static'
11684 # Lahey Fortran 8.1.
11686 lt_prog_compiler_wl='-Wl,'
11687 lt_prog_compiler_pic='--shared'
11688 lt_prog_compiler_static='--static'
11691 # NAG Fortran compiler
11692 lt_prog_compiler_wl='-Wl,-Wl,,'
11693 lt_prog_compiler_pic='-PIC'
11694 lt_prog_compiler_static='-Bstatic'
11697 # Fabrice Bellard et al's Tiny C Compiler
11698 lt_prog_compiler_wl='-Wl,'
11699 lt_prog_compiler_pic='-fPIC'
11700 lt_prog_compiler_static='-static'
11702 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11703 # Portland Group compilers (*not* the Pentium gcc compiler,
11704 # which looks to be a dead project)
11705 lt_prog_compiler_wl='-Wl,'
11706 lt_prog_compiler_pic='-fpic'
11707 lt_prog_compiler_static='-Bstatic'
11710 lt_prog_compiler_wl='-Wl,'
11711 # All Alpha code is PIC.
11712 lt_prog_compiler_static='-non_shared'
11714 xl* | bgxl* | bgf* | mpixl*)
11715 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11716 lt_prog_compiler_wl='-Wl,'
11717 lt_prog_compiler_pic='-qpic'
11718 lt_prog_compiler_static='-qstaticlink'
11721 case `$CC -V 2>&1 | sed 5q` in
11722 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11723 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11724 lt_prog_compiler_pic='-KPIC'
11725 lt_prog_compiler_static='-Bstatic'
11726 lt_prog_compiler_wl=''
11728 *Sun\ F* | *Sun*Fortran*)
11729 lt_prog_compiler_pic='-KPIC'
11730 lt_prog_compiler_static='-Bstatic'
11731 lt_prog_compiler_wl='-Qoption ld '
11735 lt_prog_compiler_pic='-KPIC'
11736 lt_prog_compiler_static='-Bstatic'
11737 lt_prog_compiler_wl='-Wl,'
11739 *Intel*\ [CF]*Compiler*)
11740 lt_prog_compiler_wl='-Wl,'
11741 lt_prog_compiler_pic='-fPIC'
11742 lt_prog_compiler_static='-static'
11745 lt_prog_compiler_wl='-Wl,'
11746 lt_prog_compiler_pic='-fpic'
11747 lt_prog_compiler_static='-Bstatic'
11755 lt_prog_compiler_pic='-KPIC'
11756 lt_prog_compiler_static='-Bstatic'
11760 # QNX uses GNU C++, but need to define -shared option too, otherwise
11761 # it will coredump.
11762 lt_prog_compiler_pic='-fPIC -shared'
11765 osf3* | osf4* | osf5*)
11766 lt_prog_compiler_wl='-Wl,'
11767 # All OSF/1 code is PIC.
11768 lt_prog_compiler_static='-non_shared'
11772 lt_prog_compiler_static='-non_shared'
11776 lt_prog_compiler_pic='-KPIC'
11777 lt_prog_compiler_static='-Bstatic'
11778 case $cc_basename in
11779 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11780 lt_prog_compiler_wl='-Qoption ld ';;
11782 lt_prog_compiler_wl='-Wl,';;
11787 lt_prog_compiler_wl='-Qoption ld '
11788 lt_prog_compiler_pic='-PIC'
11789 lt_prog_compiler_static='-Bstatic'
11792 sysv4 | sysv4.2uw2* | sysv4.3*)
11793 lt_prog_compiler_wl='-Wl,'
11794 lt_prog_compiler_pic='-KPIC'
11795 lt_prog_compiler_static='-Bstatic'
11799 if test -d /usr/nec; then
11800 lt_prog_compiler_pic='-Kconform_pic'
11801 lt_prog_compiler_static='-Bstatic'
11805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11806 lt_prog_compiler_wl='-Wl,'
11807 lt_prog_compiler_pic='-KPIC'
11808 lt_prog_compiler_static='-Bstatic'
11812 lt_prog_compiler_wl='-Wl,'
11813 lt_prog_compiler_can_build_shared=no
11817 lt_prog_compiler_pic='-pic'
11818 lt_prog_compiler_static='-Bstatic'
11822 lt_prog_compiler_can_build_shared=no
11828 # For platforms that do not support PIC, -DPIC is meaningless:
11830 lt_prog_compiler_pic=
11833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11838 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11839 if ${lt_cv_prog_compiler_pic+:} false; then :
11840 $as_echo_n "(cached) " >&6
11842 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11845 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11846 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11849 # Check to make sure the PIC flag actually works.
11851 if test -n "$lt_prog_compiler_pic"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11853 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11854 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11855 $as_echo_n "(cached) " >&6
11857 lt_cv_prog_compiler_pic_works=no
11858 ac_outfile=conftest.$ac_objext
11859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11860 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11861 # Insert the option either (1) after the last *FLAGS variable, or
11862 # (2) before a word containing "conftest.", or (3) at the end.
11863 # Note that $ac_compile itself does not contain backslashes and begins
11864 # with a dollar sign (not a hyphen), so the echo should work correctly.
11865 # The option is referenced via a variable to avoid confusing sed.
11866 lt_compile=`echo "$ac_compile" | $SED \
11867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11869 -e 's:$: $lt_compiler_flag:'`
11870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11871 (eval "$lt_compile" 2>conftest.err)
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 if (exit $ac_status) && test -s "$ac_outfile"; then
11876 # The compiler can only warn and ignore the option if not recognized
11877 # So say no if there are warnings other than the usual output.
11878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11881 lt_cv_prog_compiler_pic_works=yes
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11888 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11890 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11891 case $lt_prog_compiler_pic in
11893 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11896 lt_prog_compiler_pic=
11897 lt_prog_compiler_can_build_shared=no
11913 # Check to make sure the static flag actually works.
11915 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11917 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11918 if ${lt_cv_prog_compiler_static_works+:} false; then :
11919 $as_echo_n "(cached) " >&6
11921 lt_cv_prog_compiler_static_works=no
11922 save_LDFLAGS=$LDFLAGS
11923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11924 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11926 # The linker can only warn and ignore the option if not recognized
11927 # So say no if there are warnings
11928 if test -s conftest.err; then
11929 # Append any errors to the config.log.
11930 cat conftest.err 1>&5
11931 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11933 if diff conftest.exp conftest.er2 >/dev/null; then
11934 lt_cv_prog_compiler_static_works=yes
11937 lt_cv_prog_compiler_static_works=yes
11941 LDFLAGS=$save_LDFLAGS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11945 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11947 if test yes = "$lt_cv_prog_compiler_static_works"; then
11950 lt_prog_compiler_static=
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11961 if ${lt_cv_prog_compiler_c_o+:} false; then :
11962 $as_echo_n "(cached) " >&6
11964 lt_cv_prog_compiler_c_o=no
11965 $RM -r conftest 2>/dev/null
11969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11971 lt_compiler_flag="-o out/conftest2.$ac_objext"
11972 # Insert the option either (1) after the last *FLAGS variable, or
11973 # (2) before a word containing "conftest.", or (3) at the end.
11974 # Note that $ac_compile itself does not contain backslashes and begins
11975 # with a dollar sign (not a hyphen), so the echo should work correctly.
11976 lt_compile=`echo "$ac_compile" | $SED \
11977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11979 -e 's:$: $lt_compiler_flag:'`
11980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11981 (eval "$lt_compile" 2>out/conftest.err)
11983 cat out/conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11987 # The compiler can only warn and ignore the option if not recognized
11988 # So say no if there are warnings
11989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11992 lt_cv_prog_compiler_c_o=yes
11997 # SGI C++ compiler will create directory out/ii_files/ for
11998 # template instantiation
11999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12000 $RM out/* && rmdir out
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12016 if ${lt_cv_prog_compiler_c_o+:} false; then :
12017 $as_echo_n "(cached) " >&6
12019 lt_cv_prog_compiler_c_o=no
12020 $RM -r conftest 2>/dev/null
12024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12026 lt_compiler_flag="-o out/conftest2.$ac_objext"
12027 # Insert the option either (1) after the last *FLAGS variable, or
12028 # (2) before a word containing "conftest.", or (3) at the end.
12029 # Note that $ac_compile itself does not contain backslashes and begins
12030 # with a dollar sign (not a hyphen), so the echo should work correctly.
12031 lt_compile=`echo "$ac_compile" | $SED \
12032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12034 -e 's:$: $lt_compiler_flag:'`
12035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12036 (eval "$lt_compile" 2>out/conftest.err)
12038 cat out/conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12042 # The compiler can only warn and ignore the option if not recognized
12043 # So say no if there are warnings
12044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12047 lt_cv_prog_compiler_c_o=yes
12052 # SGI C++ compiler will create directory out/ii_files/ for
12053 # template instantiation
12054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12055 $RM out/* && rmdir out
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12067 hard_links=nottested
12068 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12069 # do not overwrite the value of need_locks provided by the user
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12071 $as_echo_n "checking if we can lock with hard links... " >&6; }
12074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076 ln conftest.a conftest.b 2>&5 || hard_links=no
12077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12079 $as_echo "$hard_links" >&6; }
12080 if test no = "$hard_links"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12082 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12098 allow_undefined_flag=
12099 always_export_symbols=no
12101 archive_expsym_cmds=
12102 compiler_needs_object=no
12103 enable_shared_with_static_runtimes=no
12104 export_dynamic_flag_spec=
12105 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12106 hardcode_automatic=no
12108 hardcode_direct_absolute=no
12109 hardcode_libdir_flag_spec=
12110 hardcode_libdir_separator=
12111 hardcode_minus_L=no
12112 hardcode_shlibpath_var=unsupported
12114 link_all_deplibs=unknown
12116 module_expsym_cmds=
12117 old_archive_from_new_cmds=
12118 old_archive_from_expsyms_cmds=
12119 thread_safe_flag_spec=
12120 whole_archive_flag_spec=
12121 # include_expsyms should be a list of space-separated symbols to be *always*
12122 # included in the symbol list
12124 # exclude_expsyms can be an extended regexp of symbols to exclude
12125 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12126 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12127 # as well as any symbol that contains 'd'.
12128 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12129 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12130 # platforms (ab)use it in PIC code, but their linkers get confused if
12131 # the symbol is explicitly referenced. Since portable code cannot
12132 # rely on this symbol name, it's probably fine to never include it in
12133 # preloaded symbol tables.
12134 # Exclude shared library initialization/finalization symbols.
12135 extract_expsyms_cmds=
12138 cygwin* | mingw* | pw32* | cegcc*)
12139 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12140 # When not using gcc, we currently assume that we are using
12141 # Microsoft Visual C++.
12142 if test yes != "$GCC"; then
12147 # we just hope/assume this is gcc and not c89 (= MSVC++)
12150 openbsd* | bitrig*)
12157 # On some targets, GNU ld is compatible enough with the native linker
12158 # that we're better off using the native interface for both.
12159 lt_use_gnu_ld_interface=no
12160 if test yes = "$with_gnu_ld"; then
12163 # The AIX port of GNU ld has always aspired to compatibility
12164 # with the native linker. However, as the warning in the GNU ld
12165 # block says, versions before 2.19.5* couldn't really create working
12166 # shared libraries, regardless of the interface used.
12167 case `$LD -v 2>&1` in
12168 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12169 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12170 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12172 lt_use_gnu_ld_interface=yes
12177 lt_use_gnu_ld_interface=yes
12182 if test yes = "$lt_use_gnu_ld_interface"; then
12183 # If archive_cmds runs LD, not CC, wlarc should be empty
12186 # Set some defaults for GNU ld with shared library support. These
12187 # are reset later if shared libraries are not supported. Putting them
12188 # here allows them to be overridden if necessary.
12189 runpath_var=LD_RUN_PATH
12190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12191 export_dynamic_flag_spec='$wl--export-dynamic'
12192 # ancient GNU ld didn't support --whole-archive et. al.
12193 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12194 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12196 whole_archive_flag_spec=
12198 supports_anon_versioning=no
12199 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12200 *GNU\ gold*) supports_anon_versioning=yes ;;
12201 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12202 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12203 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12204 *\ 2.11.*) ;; # other 2.11 versions
12205 *) supports_anon_versioning=yes ;;
12208 # See if GNU ld supports shared libraries.
12211 # On AIX/PPC, the GNU linker is very broken
12212 if test ia64 != "$host_cpu"; then
12216 *** Warning: the GNU linker, at least up to release 2.19, is reported
12217 *** to be unable to reliably create shared libraries on AIX.
12218 *** Therefore, libtool is disabling shared libraries support. If you
12219 *** really care for shared libraries, you may want to install binutils
12220 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12221 *** You will then need to restart the configuration process.
12230 # see comment about AmigaOS4 .so support
12231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12232 archive_expsym_cmds=''
12235 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)'
12236 hardcode_libdir_flag_spec='-L$libdir'
12237 hardcode_minus_L=yes
12243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12244 allow_undefined_flag=unsupported
12245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12246 # support --undefined. This deserves some investigation. FIXME
12247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12253 cygwin* | mingw* | pw32* | cegcc*)
12254 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12255 # as there is no search path for DLLs.
12256 hardcode_libdir_flag_spec='-L$libdir'
12257 export_dynamic_flag_spec='$wl--export-all-symbols'
12258 allow_undefined_flag=unsupported
12259 always_export_symbols=no
12260 enable_shared_with_static_runtimes=yes
12261 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'
12262 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12266 # If the export-symbols file already is a .def file, use it as
12267 # is; otherwise, prepend EXPORTS...
12268 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12269 cp $export_symbols $output_objdir/$soname.def;
12271 echo EXPORTS > $output_objdir/$soname.def;
12272 cat $export_symbols >> $output_objdir/$soname.def;
12274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12282 link_all_deplibs=yes
12286 hardcode_libdir_flag_spec='-L$libdir'
12287 hardcode_minus_L=yes
12288 allow_undefined_flag=unsupported
12290 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12291 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12292 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12293 $ECHO EXPORTS >> $output_objdir/$libname.def~
12294 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12296 emximp -o $lib $output_objdir/$libname.def'
12297 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12298 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12299 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12300 $ECHO EXPORTS >> $output_objdir/$libname.def~
12301 prefix_cmds="$SED"~
12302 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12303 prefix_cmds="$prefix_cmds -e 1d";
12305 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12306 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12307 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12308 emximp -o $lib $output_objdir/$libname.def'
12309 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12310 enable_shared_with_static_runtimes=yes
12315 hardcode_shlibpath_var=no
12316 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12317 export_dynamic_flag_spec='$wl-E'
12318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12319 # Instead, shared libraries are loaded at an image base (0x10000000 by
12320 # default) and relocated if they conflict, which is a slow very memory
12321 # consuming and fragmenting process. To avoid this, we pick a random,
12322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12325 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'
12328 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12330 if test linux-dietlibc = "$host_os"; then
12331 case $cc_basename in
12332 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12335 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12336 && test no = "$tmp_diet"
12338 tmp_addflag=' $pic_flag'
12339 tmp_sharedflag='-shared'
12340 case $cc_basename,$host_cpu in
12341 pgcc*) # Portland Group C compiler
12342 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'
12343 tmp_addflag=' $pic_flag'
12345 pgf77* | pgf90* | pgf95* | pgfortran*)
12346 # Portland Group f77 and f90 compilers
12347 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'
12348 tmp_addflag=' $pic_flag -Mnomain' ;;
12349 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12350 tmp_addflag=' -i_dynamic' ;;
12351 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12352 tmp_addflag=' -i_dynamic -nofor_main' ;;
12353 ifc* | ifort*) # Intel Fortran compiler
12354 tmp_addflag=' -nofor_main' ;;
12355 lf95*) # Lahey Fortran 8.1
12356 whole_archive_flag_spec=
12357 tmp_sharedflag='--shared' ;;
12358 nagfor*) # NAGFOR 5.3
12359 tmp_sharedflag='-Wl,-shared' ;;
12360 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12361 tmp_sharedflag='-qmkshrobj'
12363 nvcc*) # Cuda Compiler Driver 2.2
12364 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'
12365 compiler_needs_object=yes
12368 case `$CC -V 2>&1 | sed 5q` in
12369 *Sun\ C*) # Sun C 5.9
12370 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'
12371 compiler_needs_object=yes
12372 tmp_sharedflag='-G' ;;
12373 *Sun\ F*) # Sun Fortran 8.3
12374 tmp_sharedflag='-G' ;;
12376 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12378 if test yes = "$supports_anon_versioning"; then
12379 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12380 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12381 echo "local: *; };" >> $output_objdir/$libname.ver~
12382 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12385 case $cc_basename in
12387 export_dynamic_flag_spec='-rdynamic'
12389 xlf* | bgf* | bgxlf* | mpixlf*)
12390 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12391 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12392 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12393 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12394 if test yes = "$supports_anon_versioning"; then
12395 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12397 echo "local: *; };" >> $output_objdir/$libname.ver~
12398 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12409 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12412 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12413 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12418 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12422 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12423 *** create shared libraries on Solaris systems. Therefore, libtool
12424 *** is disabling shared libraries support. We urge you to upgrade GNU
12425 *** binutils to release 2.9.1 or newer. Another option is to modify
12426 *** your PATH or compiler configuration so that the native linker is
12427 *** used, and then restart.
12430 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12431 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12432 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12439 case `$LD -v 2>&1` in
12440 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12444 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12445 *** reliably create shared libraries on SCO systems. Therefore, libtool
12446 *** is disabling shared libraries support. We urge you to upgrade GNU
12447 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12448 *** your PATH or compiler configuration so that the native linker is
12449 *** used, and then restart.
12454 # For security reasons, it is highly recommended that you always
12455 # use absolute paths for naming shared libraries, and exclude the
12456 # DT_RUNPATH tag from executables and libraries. But doing so
12457 # requires that you compile everything twice, which is a pain.
12458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12470 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12472 hardcode_direct=yes
12473 hardcode_shlibpath_var=no
12477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12479 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12486 if test no = "$ld_shlibs"; then
12488 hardcode_libdir_flag_spec=
12489 export_dynamic_flag_spec=
12490 whole_archive_flag_spec=
12493 # PORTME fill in a description of your system's linker (not GNU ld)
12496 allow_undefined_flag=unsupported
12497 always_export_symbols=yes
12498 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'
12499 # Note: this linker hardcodes the directories in LIBPATH if there
12500 # are no directories specified by -L.
12501 hardcode_minus_L=yes
12502 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12503 # Neither direct hardcoding nor static linking is supported with a
12505 hardcode_direct=unsupported
12510 if test ia64 = "$host_cpu"; then
12511 # On IA64, the linker does run time linking by default, so we don't
12512 # have to do anything special.
12513 aix_use_runtimelinking=no
12514 exp_sym_flag='-Bexport'
12517 # If we're using GNU nm, then we don't want the "-C" option.
12518 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12519 # Without the "-l" option, or with the "-B" option, AIX nm treats
12520 # weak defined symbols like other global defined symbols, whereas
12521 # GNU nm marks them as "W".
12522 # While the 'weak' keyword is ignored in the Export File, we need
12523 # it in the Import File for the 'aix-soname' feature, so we have
12524 # to replace the "-B" option with "-P" for AIX nm.
12525 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12526 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'
12528 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'
12530 aix_use_runtimelinking=no
12532 # Test if we are trying to use run time linking or normal
12533 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12534 # have runtime linking enabled, and use it for executables.
12535 # For shared libraries, we enable/disable runtime linking
12536 # depending on the kind of the shared library created -
12537 # when "with_aix_soname,aix_use_runtimelinking" is:
12538 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12539 # "aix,yes" lib.so shared, rtl:yes, for executables
12540 # lib.a static archive
12541 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12542 # lib.a(lib.so.V) shared, rtl:no, for executables
12543 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12544 # lib.a(lib.so.V) shared, rtl:no
12545 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12546 # lib.a static archive
12547 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12548 for ld_flag in $LDFLAGS; do
12549 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12550 aix_use_runtimelinking=yes
12554 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12555 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12556 # so we don't have lib.a shared libs to link our executables.
12557 # We have to force runtime linking in this case.
12558 aix_use_runtimelinking=yes
12559 LDFLAGS="$LDFLAGS -Wl,-brtl"
12564 exp_sym_flag='-bexport'
12565 no_entry_flag='-bnoentry'
12568 # When large executables or shared objects are built, AIX ld can
12569 # have problems creating the table of contents. If linking a library
12570 # or program results in "error TOC overflow" add -mminimal-toc to
12571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12575 hardcode_direct=yes
12576 hardcode_direct_absolute=yes
12577 hardcode_libdir_separator=':'
12578 link_all_deplibs=yes
12579 file_list_spec='$wl-f,'
12580 case $with_aix_soname,$aix_use_runtimelinking in
12581 aix,*) ;; # traditional, no import file
12582 svr4,* | *,yes) # use import file
12583 # The Import File defines what to hardcode.
12585 hardcode_direct_absolute=no
12589 if test yes = "$GCC"; then
12590 case $host_os in aix4.[012]|aix4.[012].*)
12591 # We only want to do this on AIX 4.2 and lower, the check
12592 # below for broken collect2 doesn't work under 4.3+
12593 collect2name=`$CC -print-prog-name=collect2`
12594 if test -f "$collect2name" &&
12595 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12597 # We have reworked collect2
12600 # We have old collect2
12601 hardcode_direct=unsupported
12602 # It fails to find uninstalled libraries when the uninstalled
12603 # path is not listed in the libpath. Setting hardcode_minus_L
12604 # to unsupported forces relinking
12605 hardcode_minus_L=yes
12606 hardcode_libdir_flag_spec='-L$libdir'
12607 hardcode_libdir_separator=
12611 shared_flag='-shared'
12612 if test yes = "$aix_use_runtimelinking"; then
12613 shared_flag="$shared_flag "'$wl-G'
12615 # Need to ensure runtime linking is disabled for the traditional
12616 # shared library, or the linker may eventually find shared libraries
12617 # /with/ Import File - we do not want to mix them.
12618 shared_flag_aix='-shared'
12619 shared_flag_svr4='-shared $wl-G'
12622 if test ia64 = "$host_cpu"; then
12623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12624 # chokes on -Wl,-G. The following line is correct:
12627 if test yes = "$aix_use_runtimelinking"; then
12628 shared_flag='$wl-G'
12630 shared_flag='$wl-bM:SRE'
12632 shared_flag_aix='$wl-bM:SRE'
12633 shared_flag_svr4='$wl-G'
12637 export_dynamic_flag_spec='$wl-bexpall'
12638 # It seems that -bexpall does not export symbols beginning with
12639 # underscore (_), so it is better to generate a list of symbols to export.
12640 always_export_symbols=yes
12641 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12642 # Warning - without using the other runtime loading flags (-brtl),
12643 # -berok will link without error, but may produce a broken library.
12644 allow_undefined_flag='-berok'
12645 # Determine the default libpath from the value encoded in an
12646 # empty executable.
12647 if test set = "${lt_cv_aix_libpath+set}"; then
12648 aix_libpath=$lt_cv_aix_libpath
12650 if ${lt_cv_aix_libpath_+:} false; then :
12651 $as_echo_n "(cached) " >&6
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12664 if ac_fn_c_try_link "$LINENO"; then :
12666 lt_aix_libpath_sed='
12667 /Import File Strings/,/^$/ {
12669 s/^0 *\([^ ]*\) *$/\1/
12673 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12674 # Check for a 64-bit object if we didn't find anything.
12675 if test -z "$lt_cv_aix_libpath_"; then
12676 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 if test -z "$lt_cv_aix_libpath_"; then
12682 lt_cv_aix_libpath_=/usr/lib:/lib
12687 aix_libpath=$lt_cv_aix_libpath_
12690 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12691 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
12693 if test ia64 = "$host_cpu"; then
12694 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12695 allow_undefined_flag="-z nodefs"
12696 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"
12698 # Determine the default libpath from the value encoded in an
12699 # empty executable.
12700 if test set = "${lt_cv_aix_libpath+set}"; then
12701 aix_libpath=$lt_cv_aix_libpath
12703 if ${lt_cv_aix_libpath_+:} false; then :
12704 $as_echo_n "(cached) " >&6
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12717 if ac_fn_c_try_link "$LINENO"; then :
12719 lt_aix_libpath_sed='
12720 /Import File Strings/,/^$/ {
12722 s/^0 *\([^ ]*\) *$/\1/
12726 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12727 # Check for a 64-bit object if we didn't find anything.
12728 if test -z "$lt_cv_aix_libpath_"; then
12729 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12732 rm -f core conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
12734 if test -z "$lt_cv_aix_libpath_"; then
12735 lt_cv_aix_libpath_=/usr/lib:/lib
12740 aix_libpath=$lt_cv_aix_libpath_
12743 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12744 # Warning - without using the other run time loading flags,
12745 # -berok will link without error, but may produce a broken library.
12746 no_undefined_flag=' $wl-bernotok'
12747 allow_undefined_flag=' $wl-berok'
12748 if test yes = "$with_gnu_ld"; then
12749 # We only use this code for GNU lds that support --whole-archive.
12750 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12752 # Exported symbols can be pulled into shared objects from archives
12753 whole_archive_flag_spec='$convenience'
12755 archive_cmds_need_lc=yes
12756 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12757 # -brtl affects multiple linker settings, -berok does not and is overridden later
12758 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12759 if test svr4 != "$with_aix_soname"; then
12760 # This is similar to how AIX traditionally builds its shared libraries.
12761 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'
12763 if test aix != "$with_aix_soname"; then
12764 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'
12766 # used by -dlpreopen to get the symbols
12767 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12769 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12777 # see comment about AmigaOS4 .so support
12778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12779 archive_expsym_cmds=''
12782 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)'
12783 hardcode_libdir_flag_spec='-L$libdir'
12784 hardcode_minus_L=yes
12790 export_dynamic_flag_spec=-rdynamic
12793 cygwin* | mingw* | pw32* | cegcc*)
12794 # When not using gcc, we currently assume that we are using
12795 # Microsoft Visual C++.
12796 # hardcode_libdir_flag_spec is actually meaningless, as there is
12797 # no search path for DLLs.
12798 case $cc_basename in
12801 hardcode_libdir_flag_spec=' '
12802 allow_undefined_flag=unsupported
12803 always_export_symbols=yes
12805 # Tell ltmain to make .lib files, not .a files.
12807 # Tell ltmain to make .dll files, not .so files.
12809 # FIXME: Setting linknames here is a bad hack.
12810 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12811 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12812 cp "$export_symbols" "$output_objdir/$soname.def";
12813 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12815 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12817 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12819 # The linker will not automatically build a static lib if we build a DLL.
12820 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12821 enable_shared_with_static_runtimes=yes
12822 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12825 old_postinstall_cmds='chmod 644 $oldlib'
12826 postlink_cmds='lt_outputfile="@OUTPUT@"~
12827 lt_tool_outputfile="@TOOL_OUTPUT@"~
12828 case $lt_outputfile in
12831 lt_outputfile=$lt_outputfile.exe
12832 lt_tool_outputfile=$lt_tool_outputfile.exe
12835 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12836 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12837 $RM "$lt_outputfile.manifest";
12841 # Assume MSVC wrapper
12842 hardcode_libdir_flag_spec=' '
12843 allow_undefined_flag=unsupported
12844 # Tell ltmain to make .lib files, not .a files.
12846 # Tell ltmain to make .dll files, not .so files.
12848 # FIXME: Setting linknames here is a bad hack.
12849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12850 # The linker will automatically build a .lib file if we build a DLL.
12851 old_archive_from_new_cmds='true'
12852 # FIXME: Should let the user specify the lib program.
12853 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12854 enable_shared_with_static_runtimes=yes
12859 darwin* | rhapsody*)
12862 archive_cmds_need_lc=no
12864 hardcode_automatic=yes
12865 hardcode_shlibpath_var=unsupported
12866 if test yes = "$lt_cv_ld_force_load"; then
12867 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\"`'
12870 whole_archive_flag_spec=''
12872 link_all_deplibs=yes
12873 allow_undefined_flag=$_lt_dar_allow_undefined
12874 case $cc_basename in
12875 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12876 *) _lt_dar_can_shared=$GCC ;;
12878 if test yes = "$_lt_dar_can_shared"; then
12879 output_verbose_link_cmd=func_echo_all
12880 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12881 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12882 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"
12883 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"
12892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12893 hardcode_libdir_flag_spec='-L$libdir'
12894 hardcode_shlibpath_var=no
12897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12898 # support. Future versions do this automatically, but an explicit c++rt0.o
12899 # does not break anything, and helps significantly (at the cost of a little
12902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12903 hardcode_libdir_flag_spec='-R$libdir'
12904 hardcode_direct=yes
12905 hardcode_shlibpath_var=no
12908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12911 hardcode_direct=yes
12912 hardcode_minus_L=yes
12913 hardcode_shlibpath_var=no
12916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12917 freebsd* | dragonfly*)
12918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12919 hardcode_libdir_flag_spec='-R$libdir'
12920 hardcode_direct=yes
12921 hardcode_shlibpath_var=no
12925 if test yes = "$GCC"; then
12926 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'
12928 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'
12930 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12931 hardcode_libdir_separator=:
12932 hardcode_direct=yes
12934 # hardcode_minus_L: Not really in the search PATH,
12935 # but as the default location of the library.
12936 hardcode_minus_L=yes
12937 export_dynamic_flag_spec='$wl-E'
12941 if test yes,no = "$GCC,$with_gnu_ld"; then
12942 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12946 if test no = "$with_gnu_ld"; then
12947 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12948 hardcode_libdir_separator=:
12949 hardcode_direct=yes
12950 hardcode_direct_absolute=yes
12951 export_dynamic_flag_spec='$wl-E'
12952 # hardcode_minus_L: Not really in the search PATH,
12953 # but as the default location of the library.
12954 hardcode_minus_L=yes
12959 if test yes,no = "$GCC,$with_gnu_ld"; then
12962 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12965 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12968 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12974 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12977 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12981 # Older versions of the 11.00 compiler do not understand -b yet
12982 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12984 $as_echo_n "checking if $CC understands -b... " >&6; }
12985 if ${lt_cv_prog_compiler__b+:} false; then :
12986 $as_echo_n "(cached) " >&6
12988 lt_cv_prog_compiler__b=no
12989 save_LDFLAGS=$LDFLAGS
12990 LDFLAGS="$LDFLAGS -b"
12991 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12993 # The linker can only warn and ignore the option if not recognized
12994 # So say no if there are warnings
12995 if test -s conftest.err; then
12996 # Append any errors to the config.log.
12997 cat conftest.err 1>&5
12998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13000 if diff conftest.exp conftest.er2 >/dev/null; then
13001 lt_cv_prog_compiler__b=yes
13004 lt_cv_prog_compiler__b=yes
13008 LDFLAGS=$save_LDFLAGS
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13012 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13014 if test yes = "$lt_cv_prog_compiler__b"; then
13015 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13017 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13023 if test no = "$with_gnu_ld"; then
13024 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13025 hardcode_libdir_separator=:
13030 hardcode_shlibpath_var=no
13033 hardcode_direct=yes
13034 hardcode_direct_absolute=yes
13035 export_dynamic_flag_spec='$wl-E'
13037 # hardcode_minus_L: Not really in the search PATH,
13038 # but as the default location of the library.
13039 hardcode_minus_L=yes
13045 irix5* | irix6* | nonstopux*)
13046 if test yes = "$GCC"; then
13047 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'
13048 # Try to use the -exported_symbol ld option, if it does not
13049 # work, assume that -exports_file does not work either and
13050 # implicitly export all symbols.
13051 # This should be the same for all languages, so no per-tag cache variable.
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13053 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13054 if ${lt_cv_irix_exported_symbol+:} false; then :
13055 $as_echo_n "(cached) " >&6
13057 save_LDFLAGS=$LDFLAGS
13058 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 int foo (void) { return 0; }
13063 if ac_fn_c_try_link "$LINENO"; then :
13064 lt_cv_irix_exported_symbol=yes
13066 lt_cv_irix_exported_symbol=no
13068 rm -f core conftest.err conftest.$ac_objext \
13069 conftest$ac_exeext conftest.$ac_ext
13070 LDFLAGS=$save_LDFLAGS
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13073 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13074 if test yes = "$lt_cv_irix_exported_symbol"; then
13075 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'
13078 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'
13079 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'
13081 archive_cmds_need_lc='no'
13082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13083 hardcode_libdir_separator=:
13085 link_all_deplibs=yes
13089 case $cc_basename in
13091 # Fabrice Bellard et al's Tiny C Compiler
13093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13102 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13104 hardcode_libdir_flag_spec='-R$libdir'
13105 hardcode_direct=yes
13106 hardcode_shlibpath_var=no
13110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13111 hardcode_direct=yes
13112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13113 hardcode_libdir_separator=:
13114 hardcode_shlibpath_var=no
13120 openbsd* | bitrig*)
13121 if test -f /usr/libexec/ld.so; then
13122 hardcode_direct=yes
13123 hardcode_shlibpath_var=no
13124 hardcode_direct_absolute=yes
13125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13127 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13128 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13129 export_dynamic_flag_spec='$wl-E'
13131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13132 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13140 hardcode_libdir_flag_spec='-L$libdir'
13141 hardcode_minus_L=yes
13142 allow_undefined_flag=unsupported
13144 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13145 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13146 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13147 $ECHO EXPORTS >> $output_objdir/$libname.def~
13148 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13149 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13150 emximp -o $lib $output_objdir/$libname.def'
13151 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13152 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13153 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13154 $ECHO EXPORTS >> $output_objdir/$libname.def~
13155 prefix_cmds="$SED"~
13156 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13157 prefix_cmds="$prefix_cmds -e 1d";
13159 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13160 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13161 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13162 emximp -o $lib $output_objdir/$libname.def'
13163 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13164 enable_shared_with_static_runtimes=yes
13168 if test yes = "$GCC"; then
13169 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13170 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'
13172 allow_undefined_flag=' -expect_unresolved \*'
13173 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'
13175 archive_cmds_need_lc='no'
13176 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13177 hardcode_libdir_separator=:
13180 osf4* | osf5*) # as osf3* with the addition of -msym flag
13181 if test yes = "$GCC"; then
13182 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13183 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'
13184 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13186 allow_undefined_flag=' -expect_unresolved \*'
13187 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'
13188 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~
13189 $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'
13191 # Both c and cxx compiler support -rpath directly
13192 hardcode_libdir_flag_spec='-rpath $libdir'
13194 archive_cmds_need_lc='no'
13195 hardcode_libdir_separator=:
13199 no_undefined_flag=' -z defs'
13200 if test yes = "$GCC"; then
13202 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13203 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13204 $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'
13206 case `$CC -V 2>&1` in
13209 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13211 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13215 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13217 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13221 hardcode_libdir_flag_spec='-R$libdir'
13222 hardcode_shlibpath_var=no
13224 solaris2.[0-5] | solaris2.[0-5].*) ;;
13226 # The compiler driver will combine and reorder linker options,
13227 # but understands '-z linker_flag'. GCC discards it without '$wl',
13228 # but is careful enough not to reorder.
13229 # Supported since Solaris 2.6 (maybe 2.5.1?)
13230 if test yes = "$GCC"; then
13231 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13233 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13237 link_all_deplibs=yes
13241 if test sequent = "$host_vendor"; then
13242 # Use $CC to link under sequent, because it throws in some extra .o
13243 # files that make .init and .fini sections work.
13244 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13246 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13248 hardcode_libdir_flag_spec='-L$libdir'
13249 hardcode_direct=yes
13250 hardcode_minus_L=yes
13251 hardcode_shlibpath_var=no
13255 case $host_vendor in
13257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258 hardcode_direct=yes # is this really true???
13261 ## LD is ld it makes a PLAMLIB
13262 ## CC just makes a GrossModule.
13263 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13264 reload_cmds='$CC -r -o $output$reload_objs'
13268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13269 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13272 runpath_var='LD_RUN_PATH'
13273 hardcode_shlibpath_var=no
13277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13278 hardcode_shlibpath_var=no
13279 export_dynamic_flag_spec='-Bexport'
13283 if test -d /usr/nec; then
13284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13285 hardcode_shlibpath_var=no
13286 runpath_var=LD_RUN_PATH
13287 hardcode_runpath_var=yes
13292 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13293 no_undefined_flag='$wl-z,text'
13294 archive_cmds_need_lc=no
13295 hardcode_shlibpath_var=no
13296 runpath_var='LD_RUN_PATH'
13298 if test yes = "$GCC"; then
13299 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13307 sysv5* | sco3.2v5* | sco5v6*)
13308 # Note: We CANNOT use -z defs as we might desire, because we do not
13309 # link with -lc, and that would cause any symbols used from libc to
13310 # always be unresolved, which means just about no library would
13311 # ever link correctly. If we're not using GNU ld we use -z text
13312 # though, which does catch some bad symbols but isn't as heavy-handed
13314 no_undefined_flag='$wl-z,text'
13315 allow_undefined_flag='$wl-z,nodefs'
13316 archive_cmds_need_lc=no
13317 hardcode_shlibpath_var=no
13318 hardcode_libdir_flag_spec='$wl-R,$libdir'
13319 hardcode_libdir_separator=':'
13320 link_all_deplibs=yes
13321 export_dynamic_flag_spec='$wl-Bexport'
13322 runpath_var='LD_RUN_PATH'
13324 if test yes = "$GCC"; then
13325 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13335 hardcode_libdir_flag_spec='-L$libdir'
13336 hardcode_shlibpath_var=no
13344 if test sni = "$host_vendor"; then
13346 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13347 export_dynamic_flag_spec='$wl-Blargedynsym'
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13354 $as_echo "$ld_shlibs" >&6; }
13355 test no = "$ld_shlibs" && can_build_shared=no
13357 with_gnu_ld=$with_gnu_ld
13374 # Do we need to explicitly link libc?
13376 case "x$archive_cmds_need_lc" in
13378 # Assume -lc should be added
13379 archive_cmds_need_lc=yes
13381 if test yes,yes = "$GCC,$enable_shared"; then
13382 case $archive_cmds in
13384 # FIXME: we may have to deal with multi-command sequences.
13387 # Test whether the compiler implicitly links with -lc since on some
13388 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13389 # to ld, don't add -lc before -lgcc.
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13391 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13392 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13393 $as_echo_n "(cached) " >&6
13396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13399 (eval $ac_compile) 2>&5
13401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13402 test $ac_status = 0; } 2>conftest.err; then
13405 libobjs=conftest.$ac_objext
13407 wl=$lt_prog_compiler_wl
13408 pic_flag=$lt_prog_compiler_pic
13414 lt_save_allow_undefined_flag=$allow_undefined_flag
13415 allow_undefined_flag=
13416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13417 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420 test $ac_status = 0; }
13422 lt_cv_archive_cmds_need_lc=no
13424 lt_cv_archive_cmds_need_lc=yes
13426 allow_undefined_flag=$lt_save_allow_undefined_flag
13428 cat conftest.err 1>&5
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13434 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13435 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13594 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13596 if test yes = "$GCC"; then
13598 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13599 *) lt_awk_arg='/^libraries:/' ;;
13602 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13603 *) lt_sed_strip_eq='s|=/|/|g' ;;
13605 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13606 case $lt_search_path_spec in
13608 # if the path contains ";" then we assume it to be the separator
13609 # otherwise default to the standard path separator (i.e. ":") - it is
13610 # assumed that no part of a normal pathname contains ";" but that should
13611 # okay in the real world where ";" in dirpaths is itself problematic.
13612 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13615 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13618 # Ok, now we have the path, separated by spaces, we can step through it
13619 # and add multilib dir if necessary...
13620 lt_tmp_lt_search_path_spec=
13621 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13622 # ...but if some path component already ends with the multilib dir we assume
13623 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13624 case "$lt_multi_os_dir; $lt_search_path_spec " in
13625 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13629 for lt_sys_path in $lt_search_path_spec; do
13630 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13632 elif test -n "$lt_multi_os_dir"; then
13633 test -d "$lt_sys_path" && \
13634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13637 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13638 BEGIN {RS = " "; FS = "/|\n";} {
13641 for (lt_i = NF; lt_i > 0; lt_i--) {
13642 if ($lt_i != "" && $lt_i != ".") {
13643 if ($lt_i == "..") {
13646 if (lt_count == 0) {
13647 lt_foo = "/" $lt_i lt_foo;
13654 if (lt_foo != "") { lt_freq[lt_foo]++; }
13655 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13657 # AWK program above erroneously prepends '/' to C:/dos/paths
13660 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13661 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13663 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13667 library_names_spec=
13668 libname_spec='lib$name'
13672 postuninstall_cmds=
13676 shlibpath_overrides_runpath=unknown
13678 dynamic_linker="$host_os ld.so"
13679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13680 need_lib_prefix=unknown
13681 hardcode_into_libs=no
13683 # when you set need_version to no, make sure it does not cause -set_version
13684 # flags to be left without arguments
13685 need_version=unknown
13691 version_type=linux # correct to gnu/linux during the next big refactor
13692 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13693 shlibpath_var=LIBPATH
13695 # AIX 3 has no versioning support, so we append a major version to the name.
13696 soname_spec='$libname$release$shared_ext$major'
13700 version_type=linux # correct to gnu/linux during the next big refactor
13703 hardcode_into_libs=yes
13704 if test ia64 = "$host_cpu"; then
13705 # AIX 5 supports IA64
13706 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13707 shlibpath_var=LD_LIBRARY_PATH
13709 # With GCC up to 2.95.x, collect2 would create an import file
13710 # for dependence libraries. The import file would start with
13711 # the line '#! .'. This would cause the generated library to
13712 # depend on '.', always an invalid library. This was fixed in
13713 # development snapshots of GCC prior to 3.0.
13715 aix4 | aix4.[01] | aix4.[01].*)
13716 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13718 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13721 can_build_shared=no
13725 # Using Import Files as archive members, it is possible to support
13726 # filename-based versioning of shared library archives on AIX. While
13727 # this would work for both with and without runtime linking, it will
13728 # prevent static linking of such archives. So we do filename-based
13729 # shared library versioning with .so extension only, which is used
13730 # when both runtime linking and shared linking is enabled.
13731 # Unfortunately, runtime linking may impact performance, so we do
13732 # not want this to be the default eventually. Also, we use the
13733 # versioned .so libs for executables only if there is the -brtl
13734 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13735 # To allow for filename-based versioning support, we need to create
13736 # libNAME.so.V as an archive file, containing:
13737 # *) an Import File, referring to the versioned filename of the
13738 # archive as well as the shared archive member, telling the
13739 # bitwidth (32 or 64) of that shared object, and providing the
13740 # list of exported symbols of that shared object, eventually
13741 # decorated with the 'weak' keyword
13742 # *) the shared object with the F_LOADONLY flag set, to really avoid
13743 # it being seen by the linker.
13744 # At run time we better use the real file rather than another symlink,
13745 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13747 case $with_aix_soname,$aix_use_runtimelinking in
13748 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13749 # soname into executable. Probably we can add versioning support to
13750 # collect2, so additional links can be useful in future.
13751 aix,yes) # traditional libtool
13752 dynamic_linker='AIX unversionable lib.so'
13753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13754 # instead of lib<name>.a to let people know that these are not
13755 # typical AIX shared libraries.
13756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13758 aix,no) # traditional AIX only
13759 dynamic_linker='AIX lib.a(lib.so.V)'
13760 # We preserve .a as extension for shared libraries through AIX4.2
13761 # and later when we are not doing run time linking.
13762 library_names_spec='$libname$release.a $libname.a'
13763 soname_spec='$libname$release$shared_ext$major'
13765 svr4,*) # full svr4 only
13766 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13767 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13768 # We do not specify a path in Import Files, so LIBPATH fires.
13769 shlibpath_overrides_runpath=yes
13771 *,yes) # both, prefer svr4
13772 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13773 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13774 # unpreferred sharedlib libNAME.a needs extra handling
13775 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"'
13776 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"'
13777 # We do not specify a path in Import Files, so LIBPATH fires.
13778 shlibpath_overrides_runpath=yes
13780 *,no) # both, prefer aix
13781 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13782 library_names_spec='$libname$release.a $libname.a'
13783 soname_spec='$libname$release$shared_ext$major'
13784 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13785 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)'
13786 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"'
13789 shlibpath_var=LIBPATH
13796 # Since July 2007 AmigaOS4 officially supports .so libraries.
13797 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13801 library_names_spec='$libname.ixlibrary $libname.a'
13802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13803 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'
13809 library_names_spec='$libname$shared_ext'
13810 dynamic_linker="$host_os ld.so"
13811 shlibpath_var=LIBRARY_PATH
13815 version_type=linux # correct to gnu/linux during the next big refactor
13817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13818 soname_spec='$libname$release$shared_ext$major'
13819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13822 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13823 # the default ld.so.conf also contains /usr/contrib/lib and
13824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13825 # libtool to hard-code these into programs
13828 cygwin* | mingw* | pw32* | cegcc*)
13829 version_type=windows
13834 case $GCC,$cc_basename in
13837 library_names_spec='$libname.dll.a'
13838 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13839 postinstall_cmds='base_file=`basename \$file`~
13840 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13841 dldir=$destdir/`dirname \$dlpath`~
13842 test -d \$dldir || mkdir -p \$dldir~
13843 $install_prog $dir/$dlname \$dldir/$dlname~
13844 chmod a+x \$dldir/$dlname~
13845 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13846 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13849 dlpath=$dir/\$dldll~
13851 shlibpath_overrides_runpath=yes
13855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13856 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13858 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13861 # MinGW DLLs use traditional 'lib' prefix
13862 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13865 # pw32 DLLs use 'pw' prefix rather than 'lib'
13866 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13869 dynamic_linker='Win32 ld.exe'
13874 libname_spec='$name'
13875 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13876 library_names_spec='$libname.dll.lib'
13880 sys_lib_search_path_spec=
13883 for lt_path in $LIB
13886 # Let DOS variable expansion print the short 8.3 style file name.
13887 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13888 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13891 # Convert to MSYS style.
13892 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13895 # Convert to unix form, then to dos form, then back to unix form
13896 # but this time dos style (no spaces!) so that the unix form looks
13897 # like /cygdrive/c/PROGRA~1:/cygdr...
13898 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13899 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13900 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13903 sys_lib_search_path_spec=$LIB
13904 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13905 # It is most probably a Windows format PATH.
13906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13910 # FIXME: find the short name or the path components, as spaces are
13911 # common. (e.g. "Program Files" -> "PROGRA~1")
13915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13916 postinstall_cmds='base_file=`basename \$file`~
13917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13918 dldir=$destdir/`dirname \$dlpath`~
13919 test -d \$dldir || mkdir -p \$dldir~
13920 $install_prog $dir/$dlname \$dldir/$dlname'
13921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13922 dlpath=$dir/\$dldll~
13924 shlibpath_overrides_runpath=yes
13925 dynamic_linker='Win32 link.exe'
13929 # Assume MSVC wrapper
13930 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13931 dynamic_linker='Win32 ld.exe'
13934 # FIXME: first we should search . and the directory the executable is in
13938 darwin* | rhapsody*)
13939 dynamic_linker="$host_os dyld"
13940 version_type=darwin
13943 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13944 soname_spec='$libname$release$major$shared_ext'
13945 shlibpath_overrides_runpath=yes
13946 shlibpath_var=DYLD_LIBRARY_PATH
13947 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13949 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13950 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13954 version_type=linux # correct to gnu/linux during the next big refactor
13957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13958 soname_spec='$libname$release$shared_ext$major'
13959 shlibpath_var=LD_LIBRARY_PATH
13962 freebsd* | dragonfly*)
13963 # DragonFly does not have aout. When/if they implement a new
13964 # versioning mechanism, adjust this.
13965 if test -x /usr/bin/objformat; then
13966 objformat=`/usr/bin/objformat`
13969 freebsd[23].*) objformat=aout ;;
13970 *) objformat=elf ;;
13973 version_type=freebsd-$objformat
13974 case $version_type in
13976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13977 soname_spec='$libname$release$shared_ext$major'
13982 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13986 shlibpath_var=LD_LIBRARY_PATH
13989 shlibpath_overrides_runpath=yes
13991 freebsd3.[01]* | freebsdelf3.[01]*)
13992 shlibpath_overrides_runpath=yes
13993 hardcode_into_libs=yes
13995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13997 shlibpath_overrides_runpath=no
13998 hardcode_into_libs=yes
14000 *) # from 4.6 on, and DragonFly
14001 shlibpath_overrides_runpath=yes
14002 hardcode_into_libs=yes
14008 version_type=linux # correct to gnu/linux during the next big refactor
14011 dynamic_linker="$host_os runtime_loader"
14012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14013 soname_spec='$libname$release$shared_ext$major'
14014 shlibpath_var=LIBRARY_PATH
14015 shlibpath_overrides_runpath=no
14016 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14017 hardcode_into_libs=yes
14020 hpux9* | hpux10* | hpux11*)
14021 # Give a soname corresponding to the major version so that dld.sl refuses to
14022 # link against other versions.
14029 hardcode_into_libs=yes
14030 dynamic_linker="$host_os dld.so"
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14034 soname_spec='$libname$release$shared_ext$major'
14035 if test 32 = "$HPUX_IA64_MODE"; then
14036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14037 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14040 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14045 hardcode_into_libs=yes
14046 dynamic_linker="$host_os dld.sl"
14047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14050 soname_spec='$libname$release$shared_ext$major'
14051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14056 dynamic_linker="$host_os dld.sl"
14057 shlibpath_var=SHLIB_PATH
14058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14060 soname_spec='$libname$release$shared_ext$major'
14063 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14064 postinstall_cmds='chmod 555 $lib'
14065 # or fails outright, so override atomically:
14066 install_override_mode=555
14070 version_type=linux # correct to gnu/linux during the next big refactor
14073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14074 soname_spec='$libname$release$shared_ext$major'
14075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=no
14078 hardcode_into_libs=yes
14081 irix5* | irix6* | nonstopux*)
14083 nonstopux*) version_type=nonstopux ;;
14085 if test yes = "$lt_cv_prog_gnu_ld"; then
14086 version_type=linux # correct to gnu/linux during the next big refactor
14093 soname_spec='$libname$release$shared_ext$major'
14094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14096 irix5* | nonstopux*)
14097 libsuff= shlibsuff=
14100 case $LD in # libtool.m4 will add one of these switches to LD
14101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14102 libsuff= shlibsuff= libmagic=32-bit;;
14103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14104 libsuff=32 shlibsuff=N32 libmagic=N32;;
14105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14107 *) libsuff= shlibsuff= libmagic=never-match;;
14111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14112 shlibpath_overrides_runpath=no
14113 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14114 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14115 hardcode_into_libs=yes
14118 # No shared lib support for Linux oldld, aout, or coff.
14119 linux*oldld* | linux*aout* | linux*coff*)
14124 version_type=none # Android doesn't support versioned libraries.
14127 library_names_spec='$libname$release$shared_ext'
14128 soname_spec='$libname$release$shared_ext'
14130 shlibpath_var=LD_LIBRARY_PATH
14131 shlibpath_overrides_runpath=yes
14133 # This implies no fast_install, which is unacceptable.
14134 # Some rework will be needed to allow for fast_install
14135 # before this can be enabled.
14136 hardcode_into_libs=yes
14138 dynamic_linker='Android linker'
14139 # Don't embed -rpath directories since the linker doesn't support them.
14140 hardcode_libdir_flag_spec='-L$libdir'
14143 # This must be glibc/ELF.
14144 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14145 version_type=linux # correct to gnu/linux during the next big refactor
14148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14149 soname_spec='$libname$release$shared_ext$major'
14150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 shlibpath_overrides_runpath=no
14154 # Some binutils ld are patched to set DT_RUNPATH
14155 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14156 $as_echo_n "(cached) " >&6
14158 lt_cv_shlibpath_overrides_runpath=no
14159 save_LDFLAGS=$LDFLAGS
14160 save_libdir=$libdir
14161 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14162 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14174 if ac_fn_c_try_link "$LINENO"; then :
14175 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14176 lt_cv_shlibpath_overrides_runpath=yes
14179 rm -f core conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181 LDFLAGS=$save_LDFLAGS
14182 libdir=$save_libdir
14186 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14188 # This implies no fast_install, which is unacceptable.
14189 # Some rework will be needed to allow for fast_install
14190 # before this can be enabled.
14191 hardcode_into_libs=yes
14193 # Ideally, we could use ldconfig to report *all* directores which are
14194 # searched for libraries, however this is still not possible. Aside from not
14195 # being certain /sbin/ldconfig is available, command
14196 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14197 # even though it is searched at run-time. Try to do the best guess by
14198 # appending ld.so.conf contents (and includes) to the search path.
14199 if test -f /etc/ld.so.conf; then
14200 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' ' '`
14201 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14204 # We used to test for /lib/ld.so.1 and disable shared libraries on
14205 # powerpc, because MkLinux only supported shared libraries with the
14206 # GNU dynamic linker. Since this was broken with cross compilers,
14207 # most powerpc-linux boxes support dynamic linking these days and
14208 # people can always --disable-shared, the test was removed, and we
14209 # assume the GNU/Linux dynamic linker is in use.
14210 dynamic_linker='GNU/Linux ld.so'
14217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14218 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14220 dynamic_linker='NetBSD (a.out) ld.so'
14222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14223 soname_spec='$libname$release$shared_ext$major'
14224 dynamic_linker='NetBSD ld.elf_so'
14226 shlibpath_var=LD_LIBRARY_PATH
14227 shlibpath_overrides_runpath=yes
14228 hardcode_into_libs=yes
14232 version_type=linux # correct to gnu/linux during the next big refactor
14233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 shlibpath_overrides_runpath=yes
14242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14243 soname_spec='$libname$release$shared_ext$major'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 shlibpath_overrides_runpath=no
14246 hardcode_into_libs=yes
14247 dynamic_linker='ldqnx.so'
14250 openbsd* | bitrig*)
14252 sys_lib_dlsearch_path_spec=/usr/lib
14254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14259 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 shlibpath_overrides_runpath=yes
14266 libname_spec='$name'
14267 version_type=windows
14271 # OS/2 can only load a DLL with a base name of 8 characters or less.
14272 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14273 v=$($ECHO $release$versuffix | tr -d .-);
14274 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14275 $ECHO $n$v`$shared_ext'
14276 library_names_spec='${libname}_dll.$libext'
14277 dynamic_linker='OS/2 ld.exe'
14278 shlibpath_var=BEGINLIBPATH
14279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14281 postinstall_cmds='base_file=`basename \$file`~
14282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14283 dldir=$destdir/`dirname \$dlpath`~
14284 test -d \$dldir || mkdir -p \$dldir~
14285 $install_prog $dir/$dlname \$dldir/$dlname~
14286 chmod a+x \$dldir/$dlname~
14287 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14288 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14291 dlpath=$dir/\$dldll~
14295 osf3* | osf4* | osf5*)
14299 soname_spec='$libname$release$shared_ext$major'
14300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14311 version_type=linux # correct to gnu/linux during the next big refactor
14314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14315 soname_spec='$libname$release$shared_ext$major'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath=yes
14318 hardcode_into_libs=yes
14319 # ldd complains unless libraries are executable
14320 postinstall_cmds='chmod +x $lib'
14325 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 shlibpath_overrides_runpath=yes
14329 if test yes = "$with_gnu_ld"; then
14336 version_type=linux # correct to gnu/linux during the next big refactor
14337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14338 soname_spec='$libname$release$shared_ext$major'
14339 shlibpath_var=LD_LIBRARY_PATH
14340 case $host_vendor in
14342 shlibpath_overrides_runpath=no
14344 runpath_var=LD_RUN_PATH
14352 shlibpath_overrides_runpath=no
14353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14359 if test -d /usr/nec; then
14360 version_type=linux # correct to gnu/linux during the next big refactor
14361 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14362 soname_spec='$libname$shared_ext.$major'
14363 shlibpath_var=LD_LIBRARY_PATH
14367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14372 soname_spec='$libname$release$shared_ext$major'
14373 shlibpath_var=LD_LIBRARY_PATH
14374 shlibpath_overrides_runpath=yes
14375 hardcode_into_libs=yes
14376 if test yes = "$with_gnu_ld"; then
14377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14386 sys_lib_dlsearch_path_spec='/usr/lib'
14390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14391 version_type=linux # correct to gnu/linux during the next big refactor
14394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14395 shlibpath_var=LD_LIBRARY_PATH
14396 shlibpath_overrides_runpath=no
14397 hardcode_into_libs=yes
14401 version_type=linux # correct to gnu/linux during the next big refactor
14402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14403 soname_spec='$libname$release$shared_ext$major'
14404 shlibpath_var=LD_LIBRARY_PATH
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14412 $as_echo "$dynamic_linker" >&6; }
14413 test no = "$dynamic_linker" && can_build_shared=no
14415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14416 if test yes = "$GCC"; then
14417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14420 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14421 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14424 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14425 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14428 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14429 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14431 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14432 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14434 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14435 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14534 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14536 if test -n "$hardcode_libdir_flag_spec" ||
14537 test -n "$runpath_var" ||
14538 test yes = "$hardcode_automatic"; then
14540 # We can hardcode non-existent directories.
14541 if test no != "$hardcode_direct" &&
14542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14543 # have to relink, otherwise we might link with an installed library
14544 # when we should be linking with a yet-to-be-installed one
14545 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14546 test no != "$hardcode_minus_L"; then
14547 # Linking always hardcodes the temporary library directory.
14548 hardcode_action=relink
14550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14551 hardcode_action=immediate
14554 # We cannot hardcode anything, or else we can only hardcode existing
14556 hardcode_action=unsupported
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14559 $as_echo "$hardcode_action" >&6; }
14561 if test relink = "$hardcode_action" ||
14562 test yes = "$inherit_rpath"; then
14563 # Fast installation is not supported
14564 enable_fast_install=no
14565 elif test yes = "$shlibpath_overrides_runpath" ||
14566 test no = "$enable_shared"; then
14567 # Fast installation is not necessary
14568 enable_fast_install=needless
14576 if test yes != "$enable_dlopen"; then
14577 enable_dlopen=unknown
14578 enable_dlopen_self=unknown
14579 enable_dlopen_self_static=unknown
14586 lt_cv_dlopen=load_add_on
14588 lt_cv_dlopen_self=yes
14591 mingw* | pw32* | cegcc*)
14592 lt_cv_dlopen=LoadLibrary
14597 lt_cv_dlopen=dlopen
14602 # if libdl is installed we need to link against it
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14604 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14605 if ${ac_cv_lib_dl_dlopen+:} false; then :
14606 $as_echo_n "(cached) " >&6
14608 ac_check_lib_save_LIBS=$LIBS
14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14628 if ac_fn_c_try_link "$LINENO"; then :
14629 ac_cv_lib_dl_dlopen=yes
14631 ac_cv_lib_dl_dlopen=no
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS=$ac_check_lib_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14640 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14645 lt_cv_dlopen_self=yes
14652 # Don't try to run any link tests for TPF. We know it's impossible
14653 # because TPF is a cross-compiler, and we know how we open DSOs.
14654 lt_cv_dlopen=dlopen
14656 lt_cv_dlopen_self=no
14660 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14661 if test "x$ac_cv_func_shl_load" = xyes; then :
14662 lt_cv_dlopen=shl_load
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14665 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14666 if ${ac_cv_lib_dld_shl_load+:} false; then :
14667 $as_echo_n "(cached) " >&6
14669 ac_check_lib_save_LIBS=$LIBS
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14684 return shl_load ();
14689 if ac_fn_c_try_link "$LINENO"; then :
14690 ac_cv_lib_dld_shl_load=yes
14692 ac_cv_lib_dld_shl_load=no
14694 rm -f core conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext conftest.$ac_ext
14696 LIBS=$ac_check_lib_save_LIBS
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14699 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14700 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14701 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14703 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14704 if test "x$ac_cv_func_dlopen" = xyes; then :
14705 lt_cv_dlopen=dlopen
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14709 if ${ac_cv_lib_dl_dlopen+:} false; then :
14710 $as_echo_n "(cached) " >&6
14712 ac_check_lib_save_LIBS=$LIBS
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14717 /* Override any GCC internal prototype to avoid an error.
14718 Use char because int might match the return type of a GCC
14719 builtin and then its argument prototype would still apply. */
14732 if ac_fn_c_try_link "$LINENO"; then :
14733 ac_cv_lib_dl_dlopen=yes
14735 ac_cv_lib_dl_dlopen=no
14737 rm -f core conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14742 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14743 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14744 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14747 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14748 if ${ac_cv_lib_svld_dlopen+:} false; then :
14749 $as_echo_n "(cached) " >&6
14751 ac_check_lib_save_LIBS=$LIBS
14752 LIBS="-lsvld $LIBS"
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14771 if ac_fn_c_try_link "$LINENO"; then :
14772 ac_cv_lib_svld_dlopen=yes
14774 ac_cv_lib_svld_dlopen=no
14776 rm -f core conftest.err conftest.$ac_objext \
14777 conftest$ac_exeext conftest.$ac_ext
14778 LIBS=$ac_check_lib_save_LIBS
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14781 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14782 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14783 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14786 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14787 if ${ac_cv_lib_dld_dld_link+:} false; then :
14788 $as_echo_n "(cached) " >&6
14790 ac_check_lib_save_LIBS=$LIBS
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14805 return dld_link ();
14810 if ac_fn_c_try_link "$LINENO"; then :
14811 ac_cv_lib_dld_dld_link=yes
14813 ac_cv_lib_dld_dld_link=no
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14817 LIBS=$ac_check_lib_save_LIBS
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14820 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14821 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14822 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14843 if test no = "$lt_cv_dlopen"; then
14849 case $lt_cv_dlopen in
14851 save_CPPFLAGS=$CPPFLAGS
14852 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14854 save_LDFLAGS=$LDFLAGS
14855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14858 LIBS="$lt_cv_dlopen_libs $LIBS"
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14861 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14862 if ${lt_cv_dlopen_self+:} false; then :
14863 $as_echo_n "(cached) " >&6
14865 if test yes = "$cross_compiling"; then :
14866 lt_cv_dlopen_self=cross
14868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14869 lt_status=$lt_dlunknown
14870 cat > conftest.$ac_ext <<_LT_EOF
14871 #line $LINENO "configure"
14872 #include "confdefs.h"
14881 # define LT_DLGLOBAL RTLD_GLOBAL
14884 # define LT_DLGLOBAL DL_GLOBAL
14886 # define LT_DLGLOBAL 0
14890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14891 find out it does not work in some platform. */
14892 #ifndef LT_DLLAZY_OR_NOW
14894 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14897 # define LT_DLLAZY_OR_NOW DL_LAZY
14900 # define LT_DLLAZY_OR_NOW RTLD_NOW
14903 # define LT_DLLAZY_OR_NOW DL_NOW
14905 # define LT_DLLAZY_OR_NOW 0
14912 /* When -fvisibility=hidden is used, assume the code has been annotated
14913 correspondingly for the symbols needed. */
14914 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14915 int fnord () __attribute__((visibility("default")));
14918 int fnord () { return 42; }
14921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14922 int status = $lt_dlunknown;
14926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14929 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14930 else puts (dlerror ());
14932 /* dlclose (self); */
14940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14941 (eval $ac_link) 2>&5
14943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14944 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14945 (./conftest; exit; ) >&5 2>/dev/null
14947 case x$lt_status in
14948 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14949 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14950 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14953 # compilation failed
14954 lt_cv_dlopen_self=no
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14962 $as_echo "$lt_cv_dlopen_self" >&6; }
14964 if test yes = "$lt_cv_dlopen_self"; then
14965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14967 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14968 if ${lt_cv_dlopen_self_static+:} false; then :
14969 $as_echo_n "(cached) " >&6
14971 if test yes = "$cross_compiling"; then :
14972 lt_cv_dlopen_self_static=cross
14974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14975 lt_status=$lt_dlunknown
14976 cat > conftest.$ac_ext <<_LT_EOF
14977 #line $LINENO "configure"
14978 #include "confdefs.h"
14987 # define LT_DLGLOBAL RTLD_GLOBAL
14990 # define LT_DLGLOBAL DL_GLOBAL
14992 # define LT_DLGLOBAL 0
14996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14997 find out it does not work in some platform. */
14998 #ifndef LT_DLLAZY_OR_NOW
15000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15003 # define LT_DLLAZY_OR_NOW DL_LAZY
15006 # define LT_DLLAZY_OR_NOW RTLD_NOW
15009 # define LT_DLLAZY_OR_NOW DL_NOW
15011 # define LT_DLLAZY_OR_NOW 0
15018 /* When -fvisibility=hidden is used, assume the code has been annotated
15019 correspondingly for the symbols needed. */
15020 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15021 int fnord () __attribute__((visibility("default")));
15024 int fnord () { return 42; }
15027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15028 int status = $lt_dlunknown;
15032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15035 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15036 else puts (dlerror ());
15038 /* dlclose (self); */
15046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15047 (eval $ac_link) 2>&5
15049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15050 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15051 (./conftest; exit; ) >&5 2>/dev/null
15053 case x$lt_status in
15054 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15055 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15056 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15059 # compilation failed
15060 lt_cv_dlopen_self_static=no
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15068 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15071 CPPFLAGS=$save_CPPFLAGS
15072 LDFLAGS=$save_LDFLAGS
15077 case $lt_cv_dlopen_self in
15078 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15079 *) enable_dlopen_self=unknown ;;
15082 case $lt_cv_dlopen_self_static in
15083 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15084 *) enable_dlopen_self_static=unknown ;;
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15107 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15108 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15109 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15110 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15112 $as_echo "yes" >&6; }
15114 # FIXME - insert some real tests, host_os isn't really good enough
15117 if test -n "$STRIP"; then
15118 striplib="$STRIP -x"
15119 old_striplib="$STRIP -S"
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15121 $as_echo "yes" >&6; }
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15145 # Report what library types will actually be built
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15147 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15149 $as_echo "$can_build_shared" >&6; }
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15152 $as_echo_n "checking whether to build shared libraries... " >&6; }
15153 test no = "$can_build_shared" && enable_shared=no
15155 # On AIX, shared libraries and static libraries use the same namespace, and
15156 # are all built from PIC.
15159 test yes = "$enable_shared" && enable_static=no
15160 if test -n "$RANLIB"; then
15161 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15162 postinstall_cmds='$RANLIB $lib'
15167 if test ia64 != "$host_cpu"; then
15168 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15169 yes,aix,yes) ;; # shared object as lib.so file only
15170 yes,svr4,*) ;; # shared object as lib.so archive member only
15171 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15177 $as_echo "$enable_shared" >&6; }
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15180 $as_echo_n "checking whether to build static libraries... " >&6; }
15181 # Make sure either enable_shared or enable_static is yes.
15182 test yes = "$enable_shared" || enable_static=yes
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15184 $as_echo "$enable_static" >&6; }
15191 ac_cpp='$CPP $CPPFLAGS'
15192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15212 ac_config_commands="$ac_config_commands libtool"
15217 # Only expand once:
15221 if test -n "$ac_tool_prefix"; then
15222 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15223 set dummy ${ac_tool_prefix}windres; ac_word=$2
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15225 $as_echo_n "checking for $ac_word... " >&6; }
15226 if ${ac_cv_prog_RC+:} false; then :
15227 $as_echo_n "(cached) " >&6
15229 if test -n "$RC"; then
15230 ac_cv_prog_RC="$RC" # Let the user override the test.
15232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15233 for as_dir in $PATH
15236 test -z "$as_dir" && as_dir=.
15237 for ac_exec_ext in '' $ac_executable_extensions; do
15238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15239 ac_cv_prog_RC="${ac_tool_prefix}windres"
15240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15250 if test -n "$RC"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15252 $as_echo "$RC" >&6; }
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15260 if test -z "$ac_cv_prog_RC"; then
15262 # Extract the first word of "windres", so it can be a program name with args.
15263 set dummy windres; ac_word=$2
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15265 $as_echo_n "checking for $ac_word... " >&6; }
15266 if ${ac_cv_prog_ac_ct_RC+:} false; then :
15267 $as_echo_n "(cached) " >&6
15269 if test -n "$ac_ct_RC"; then
15270 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15273 for as_dir in $PATH
15276 test -z "$as_dir" && as_dir=.
15277 for ac_exec_ext in '' $ac_executable_extensions; do
15278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15279 ac_cv_prog_ac_ct_RC="windres"
15280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15289 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15290 if test -n "$ac_ct_RC"; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15292 $as_echo "$ac_ct_RC" >&6; }
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295 $as_echo "no" >&6; }
15298 if test "x$ac_ct_RC" = x; then
15301 case $cross_compiling:$ac_tool_warned in
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15305 ac_tool_warned=yes ;;
15310 RC="$ac_cv_prog_RC"
15316 # Source file extension for RC test sources.
15319 # Object file extension for compiled RC test sources.
15323 # Code to be used in simple compile tests
15324 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15326 # Code to be used in simple link tests
15327 lt_simple_link_test_code=$lt_simple_compile_test_code
15329 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15336 # If no C compiler was specified, use CC.
15339 # If no C compiler flags were specified, use CFLAGS.
15340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15342 # Allow CC to be a program name with arguments.
15346 # save warnings/boilerplate of simple test code
15347 ac_outfile=conftest.$ac_objext
15348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15350 _lt_compiler_boilerplate=`cat conftest.err`
15353 ac_outfile=conftest.$ac_objext
15354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15356 _lt_linker_boilerplate=`cat conftest.err`
15360 # Allow CC to be a program name with arguments.
15362 lt_save_CFLAGS=$CFLAGS
15369 func_cc_basename $compiler
15370 cc_basename=$func_cc_basename_result
15372 lt_cv_prog_compiler_c_o_RC=yes
15374 if test -n "$compiler"; then
15383 ac_cpp='$CPP $CPPFLAGS'
15384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15389 CFLAGS=$lt_save_CFLAGS
15393 mingw* | cygwin*) is_woe32=yes ;;
15396 if test $is_woe32 = yes; then
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15408 $as_echo_n "checking whether NLS is requested... " >&6; }
15409 # Check whether --enable-nls was given.
15410 if test "${enable_nls+set}" = set; then :
15411 enableval=$enable_nls; USE_NLS=$enableval
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15417 $as_echo "$USE_NLS" >&6; }
15422 GETTEXT_MACRO_VERSION=0.19
15427 # Prepare PATH_SEPARATOR.
15428 # The user is always right.
15429 if test "${PATH_SEPARATOR+set}" != set; then
15430 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15431 # contains only /bin. Note that ksh looks also at the FPATH variable,
15432 # so we have to set that as well for the test.
15434 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15435 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15436 || PATH_SEPARATOR=';'
15440 # Find out how to test for executable files. Don't use a zero-byte file,
15441 # as systems may use methods other than mode bits to determine executability.
15442 cat >conf$$.file <<_ASEOF
15446 chmod +x conf$$.file
15447 if test -x conf$$.file >/dev/null 2>&1; then
15448 ac_executable_p="test -x"
15450 ac_executable_p="test -f"
15454 # Extract the first word of "msgfmt", so it can be a program name with args.
15455 set dummy msgfmt; ac_word=$2
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15457 $as_echo_n "checking for $ac_word... " >&6; }
15458 if ${ac_cv_path_MSGFMT+:} false; then :
15459 $as_echo_n "(cached) " >&6
15463 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15466 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15467 for ac_dir in $PATH; do
15469 test -z "$ac_dir" && ac_dir=.
15470 for ac_exec_ext in '' $ac_executable_extensions; do
15471 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15472 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15473 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15474 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15475 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15482 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15486 MSGFMT="$ac_cv_path_MSGFMT"
15487 if test "$MSGFMT" != ":"; then
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15489 $as_echo "$MSGFMT" >&6; }
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15492 $as_echo "no" >&6; }
15495 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15496 set dummy gmsgfmt; ac_word=$2
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15498 $as_echo_n "checking for $ac_word... " >&6; }
15499 if ${ac_cv_path_GMSGFMT+:} false; then :
15500 $as_echo_n "(cached) " >&6
15504 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508 for as_dir in $PATH
15511 test -z "$as_dir" && as_dir=.
15512 for ac_exec_ext in '' $ac_executable_extensions; do
15513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15514 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15522 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15526 GMSGFMT=$ac_cv_path_GMSGFMT
15527 if test -n "$GMSGFMT"; then
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15529 $as_echo "$GMSGFMT" >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15537 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15538 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15539 *) MSGFMT_015=$MSGFMT ;;
15542 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15543 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15544 *) GMSGFMT_015=$GMSGFMT ;;
15549 # Prepare PATH_SEPARATOR.
15550 # The user is always right.
15551 if test "${PATH_SEPARATOR+set}" != set; then
15552 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15553 # contains only /bin. Note that ksh looks also at the FPATH variable,
15554 # so we have to set that as well for the test.
15556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15557 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15558 || PATH_SEPARATOR=';'
15562 # Find out how to test for executable files. Don't use a zero-byte file,
15563 # as systems may use methods other than mode bits to determine executability.
15564 cat >conf$$.file <<_ASEOF
15568 chmod +x conf$$.file
15569 if test -x conf$$.file >/dev/null 2>&1; then
15570 ac_executable_p="test -x"
15572 ac_executable_p="test -f"
15576 # Extract the first word of "xgettext", so it can be a program name with args.
15577 set dummy xgettext; ac_word=$2
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15579 $as_echo_n "checking for $ac_word... " >&6; }
15580 if ${ac_cv_path_XGETTEXT+:} false; then :
15581 $as_echo_n "(cached) " >&6
15583 case "$XGETTEXT" in
15585 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15588 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15589 for ac_dir in $PATH; do
15591 test -z "$ac_dir" && ac_dir=.
15592 for ac_exec_ext in '' $ac_executable_extensions; do
15593 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15594 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15595 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15596 (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
15597 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15604 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15608 XGETTEXT="$ac_cv_path_XGETTEXT"
15609 if test "$XGETTEXT" != ":"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15611 $as_echo "$XGETTEXT" >&6; }
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "no" >&6; }
15619 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15620 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15621 *) XGETTEXT_015=$XGETTEXT ;;
15626 # Prepare PATH_SEPARATOR.
15627 # The user is always right.
15628 if test "${PATH_SEPARATOR+set}" != set; then
15629 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15630 # contains only /bin. Note that ksh looks also at the FPATH variable,
15631 # so we have to set that as well for the test.
15633 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15634 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15635 || PATH_SEPARATOR=';'
15639 # Find out how to test for executable files. Don't use a zero-byte file,
15640 # as systems may use methods other than mode bits to determine executability.
15641 cat >conf$$.file <<_ASEOF
15645 chmod +x conf$$.file
15646 if test -x conf$$.file >/dev/null 2>&1; then
15647 ac_executable_p="test -x"
15649 ac_executable_p="test -f"
15653 # Extract the first word of "msgmerge", so it can be a program name with args.
15654 set dummy msgmerge; ac_word=$2
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15656 $as_echo_n "checking for $ac_word... " >&6; }
15657 if ${ac_cv_path_MSGMERGE+:} false; then :
15658 $as_echo_n "(cached) " >&6
15660 case "$MSGMERGE" in
15662 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15665 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15666 for ac_dir in $PATH; do
15668 test -z "$ac_dir" && ac_dir=.
15669 for ac_exec_ext in '' $ac_executable_extensions; do
15670 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15671 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15672 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15673 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15680 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15684 MSGMERGE="$ac_cv_path_MSGMERGE"
15685 if test "$MSGMERGE" != ":"; then
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15687 $as_echo "$MSGMERGE" >&6; }
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15690 $as_echo "no" >&6; }
15694 test -n "$localedir" || localedir='${datadir}/locale'
15697 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15700 ac_config_commands="$ac_config_commands po-directories"
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15705 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15706 if ${ac_cv_gnu_library_2+:} false; then :
15707 $as_echo_n "(cached) " >&6
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15712 #include <features.h>
15713 #ifdef __GNU_LIBRARY__
15714 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
15720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15721 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15722 ac_cv_gnu_library_2=yes
15724 ac_cv_gnu_library_2=no
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15732 $as_echo "$ac_cv_gnu_library_2" >&6; }
15734 GLIBC2="$ac_cv_gnu_library_2"
15741 if test -n "$GCC"; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15743 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15744 if ${gl_cv_cc_vis_werror+:} false; then :
15745 $as_echo_n "(cached) " >&6
15748 gl_save_CFLAGS="$CFLAGS"
15749 CFLAGS="$CFLAGS -Werror"
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15761 if ac_fn_c_try_compile "$LINENO"; then :
15762 gl_cv_cc_vis_werror=yes
15764 gl_cv_cc_vis_werror=no
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 CFLAGS="$gl_save_CFLAGS"
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15771 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15773 $as_echo_n "checking for simple visibility declarations... " >&6; }
15774 if ${gl_cv_cc_visibility+:} false; then :
15775 $as_echo_n "(cached) " >&6
15778 gl_save_CFLAGS="$CFLAGS"
15779 CFLAGS="$CFLAGS -fvisibility=hidden"
15780 if test $gl_cv_cc_vis_werror = yes; then
15781 CFLAGS="$CFLAGS -Werror"
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15786 extern __attribute__((__visibility__("default"))) int exportedvar;
15787 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15788 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15789 void dummyfunc (void) {}
15799 if ac_fn_c_try_compile "$LINENO"; then :
15800 gl_cv_cc_visibility=yes
15802 gl_cv_cc_visibility=no
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 CFLAGS="$gl_save_CFLAGS"
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15809 $as_echo "$gl_cv_cc_visibility" >&6; }
15810 if test $gl_cv_cc_visibility = yes; then
15811 CFLAG_VISIBILITY="-fvisibility=hidden"
15818 cat >>confdefs.h <<_ACEOF
15819 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15824 $as_echo_n "checking for inline... " >&6; }
15825 if ${ac_cv_c_inline+:} false; then :
15826 $as_echo_n "(cached) " >&6
15829 for ac_kw in inline __inline__ __inline; do
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832 #ifndef __cplusplus
15834 static $ac_kw foo_t static_foo () {return 0; }
15835 $ac_kw foo_t foo () {return 0; }
15839 if ac_fn_c_try_compile "$LINENO"; then :
15840 ac_cv_c_inline=$ac_kw
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 test "$ac_cv_c_inline" != no && break
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15848 $as_echo "$ac_cv_c_inline" >&6; }
15850 case $ac_cv_c_inline in
15853 case $ac_cv_c_inline in
15855 *) ac_val=$ac_cv_c_inline;;
15857 cat >>confdefs.h <<_ACEOF
15858 #ifndef __cplusplus
15859 #define inline $ac_val
15865 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15866 if test "x$ac_cv_type_size_t" = xyes; then :
15870 cat >>confdefs.h <<_ACEOF
15871 #define size_t unsigned int
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15878 $as_echo_n "checking for stdint.h... " >&6; }
15879 if ${gl_cv_header_stdint_h+:} false; then :
15880 $as_echo_n "(cached) " >&6
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884 #include <sys/types.h>
15885 #include <stdint.h>
15889 uintmax_t i = (uintmax_t) -1; return !i;
15894 if ac_fn_c_try_compile "$LINENO"; then :
15895 gl_cv_header_stdint_h=yes
15897 gl_cv_header_stdint_h=no
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15902 $as_echo "$gl_cv_header_stdint_h" >&6; }
15903 if test $gl_cv_header_stdint_h = yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define HAVE_STDINT_H_WITH_UINTMAX 1
15911 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15912 # for constant arguments. Useless!
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15914 $as_echo_n "checking for working alloca.h... " >&6; }
15915 if ${ac_cv_working_alloca_h+:} false; then :
15916 $as_echo_n "(cached) " >&6
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15920 #include <alloca.h>
15924 char *p = (char *) alloca (2 * sizeof (int));
15930 if ac_fn_c_try_link "$LINENO"; then :
15931 ac_cv_working_alloca_h=yes
15933 ac_cv_working_alloca_h=no
15935 rm -f core conftest.err conftest.$ac_objext \
15936 conftest$ac_exeext conftest.$ac_ext
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15939 $as_echo "$ac_cv_working_alloca_h" >&6; }
15940 if test $ac_cv_working_alloca_h = yes; then
15942 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15947 $as_echo_n "checking for alloca... " >&6; }
15948 if ${ac_cv_func_alloca_works+:} false; then :
15949 $as_echo_n "(cached) " >&6
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15954 # define alloca __builtin_alloca
15957 # include <malloc.h>
15958 # define alloca _alloca
15960 # ifdef HAVE_ALLOCA_H
15961 # include <alloca.h>
15966 # ifndef alloca /* predefined by HP cc +Olibcalls */
15967 void *alloca (size_t);
15977 char *p = (char *) alloca (1);
15983 if ac_fn_c_try_link "$LINENO"; then :
15984 ac_cv_func_alloca_works=yes
15986 ac_cv_func_alloca_works=no
15988 rm -f core conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15992 $as_echo "$ac_cv_func_alloca_works" >&6; }
15994 if test $ac_cv_func_alloca_works = yes; then
15996 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15999 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16000 # that cause trouble. Some versions do not even contain alloca or
16001 # contain a buggy version. If you still want to use their alloca,
16002 # use ar to extract alloca.o from them instead of compiling alloca.c.
16004 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16006 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16010 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16011 if ${ac_cv_os_cray+:} false; then :
16012 $as_echo_n "(cached) " >&6
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16016 #if defined CRAY && ! defined CRAY2
16023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16024 $EGREP "webecray" >/dev/null 2>&1; then :
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16033 $as_echo "$ac_cv_os_cray" >&6; }
16034 if test $ac_cv_os_cray = yes; then
16035 for ac_func in _getb67 GETB67 getb67; do
16036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16037 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16038 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16040 cat >>confdefs.h <<_ACEOF
16041 #define CRAY_STACKSEG_END $ac_func
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16051 $as_echo_n "checking stack direction for C alloca... " >&6; }
16052 if ${ac_cv_c_stack_direction+:} false; then :
16053 $as_echo_n "(cached) " >&6
16055 if test "$cross_compiling" = yes; then :
16056 ac_cv_c_stack_direction=0
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 $ac_includes_default
16062 find_stack_direction (int *addr, int depth)
16064 int dir, dummy = 0;
16067 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16068 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16069 return dir + dummy;
16073 main (int argc, char **argv)
16075 return find_stack_direction (0, argc + !argv + 20) < 0;
16078 if ac_fn_c_try_run "$LINENO"; then :
16079 ac_cv_c_stack_direction=1
16081 ac_cv_c_stack_direction=-1
16083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16084 conftest.$ac_objext conftest.beam conftest.$ac_ext
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16089 $as_echo "$ac_cv_c_stack_direction" >&6; }
16090 cat >>confdefs.h <<_ACEOF
16091 #define STACK_DIRECTION $ac_cv_c_stack_direction
16100 for ac_header in $ac_header_list
16102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16103 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16105 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16106 cat >>confdefs.h <<_ACEOF
16107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16121 for ac_func in getpagesize
16123 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16124 if test "x$ac_cv_func_getpagesize" = xyes; then :
16125 cat >>confdefs.h <<_ACEOF
16126 #define HAVE_GETPAGESIZE 1
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16133 $as_echo_n "checking for working mmap... " >&6; }
16134 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16135 $as_echo_n "(cached) " >&6
16137 if test "$cross_compiling" = yes; then :
16138 ac_cv_func_mmap_fixed_mapped=no
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142 $ac_includes_default
16143 /* malloc might have been renamed as rpl_malloc. */
16146 /* Thanks to Mike Haertel and Jim Avera for this test.
16147 Here is a matrix of mmap possibilities:
16148 mmap private not fixed
16149 mmap private fixed at somewhere currently unmapped
16150 mmap private fixed at somewhere already mapped
16151 mmap shared not fixed
16152 mmap shared fixed at somewhere currently unmapped
16153 mmap shared fixed at somewhere already mapped
16154 For private mappings, we should verify that changes cannot be read()
16155 back from the file, nor mmap's back from the file at a different
16156 address. (There have been systems where private was not correctly
16157 implemented like the infamous i386 svr4.0, and systems where the
16158 VM page cache was not coherent with the file system buffer cache
16159 like early versions of FreeBSD and possibly contemporary NetBSD.)
16160 For shared mappings, we should conversely verify that changes get
16161 propagated back to all the places they're supposed to be.
16163 Grep wants private fixed already mapped.
16164 The main things grep needs to know about mmap are:
16165 * does it exist and is it safe to write into the mmap'd area
16166 * how to use it (BSD variants) */
16169 #include <sys/mman.h>
16171 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16175 /* This mess was copied from the GNU getpagesize.h. */
16176 #ifndef HAVE_GETPAGESIZE
16177 # ifdef _SC_PAGESIZE
16178 # define getpagesize() sysconf(_SC_PAGESIZE)
16179 # else /* no _SC_PAGESIZE */
16180 # ifdef HAVE_SYS_PARAM_H
16181 # include <sys/param.h>
16182 # ifdef EXEC_PAGESIZE
16183 # define getpagesize() EXEC_PAGESIZE
16184 # else /* no EXEC_PAGESIZE */
16186 # define getpagesize() NBPG * CLSIZE
16189 # endif /* no CLSIZE */
16190 # else /* no NBPG */
16192 # define getpagesize() NBPC
16193 # else /* no NBPC */
16195 # define getpagesize() PAGESIZE
16196 # endif /* PAGESIZE */
16197 # endif /* no NBPC */
16198 # endif /* no NBPG */
16199 # endif /* no EXEC_PAGESIZE */
16200 # else /* no HAVE_SYS_PARAM_H */
16201 # define getpagesize() 8192 /* punt totally */
16202 # endif /* no HAVE_SYS_PARAM_H */
16203 # endif /* no _SC_PAGESIZE */
16205 #endif /* no HAVE_GETPAGESIZE */
16210 char *data, *data2, *data3;
16211 const char *cdata2;
16215 pagesize = getpagesize ();
16217 /* First, make a file with some known garbage in it. */
16218 data = (char *) malloc (pagesize);
16221 for (i = 0; i < pagesize; ++i)
16222 *(data + i) = rand ();
16224 fd = creat ("conftest.mmap", 0600);
16227 if (write (fd, data, pagesize) != pagesize)
16231 /* Next, check that the tail of a page is zero-filled. File must have
16232 non-zero length, otherwise we risk SIGBUS for entire page. */
16233 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16237 if (write (fd2, cdata2, 1) != 1)
16239 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16240 if (data2 == MAP_FAILED)
16242 for (i = 0; i < pagesize; ++i)
16246 if (munmap (data2, pagesize))
16249 /* Next, try to mmap the file at a fixed address which already has
16250 something else allocated at it. If we can, also make sure that
16251 we see the same garbage. */
16252 fd = open ("conftest.mmap", O_RDWR);
16255 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16256 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16258 for (i = 0; i < pagesize; ++i)
16259 if (*(data + i) != *(data2 + i))
16262 /* Finally, make sure that changes to the mapped area do not
16263 percolate back to the file as seen by read(). (This is a bug on
16264 some variants of i386 svr4.0.) */
16265 for (i = 0; i < pagesize; ++i)
16266 *(data2 + i) = *(data2 + i) + 1;
16267 data3 = (char *) malloc (pagesize);
16270 if (read (fd, data3, pagesize) != pagesize)
16272 for (i = 0; i < pagesize; ++i)
16273 if (*(data + i) != *(data3 + i))
16279 if ac_fn_c_try_run "$LINENO"; then :
16280 ac_cv_func_mmap_fixed_mapped=yes
16282 ac_cv_func_mmap_fixed_mapped=no
16284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16285 conftest.$ac_objext conftest.beam conftest.$ac_ext
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16290 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16291 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16293 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16296 rm -f conftest.mmap conftest.txt
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
16301 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
16302 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
16303 $as_echo_n "(cached) " >&6
16306 gt_cv_int_divbyzero_sigfpe=
16308 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
16309 # On Mac OS X 10.2 or newer, just assume the same as when cross-
16310 # compiling. If we were to perform the real test, 1 Crash Report
16311 # dialog window would pop up.
16312 case "$host_cpu" in
16313 i[34567]86 | x86_64)
16314 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
16318 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
16319 if test "$cross_compiling" = yes; then :
16321 # Guess based on the CPU.
16322 case "$host_cpu" in
16323 alpha* | i[34567]86 | x86_64 | m68k | s390*)
16324 gt_cv_int_divbyzero_sigfpe="guessing yes";;
16326 gt_cv_int_divbyzero_sigfpe="guessing no";;
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16333 #include <stdlib.h>
16334 #include <signal.h>
16337 sigfpe_handler (int sig)
16339 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
16340 exit (sig != SIGFPE);
16350 signal (SIGFPE, sigfpe_handler);
16351 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
16352 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
16353 signal (SIGTRAP, sigfpe_handler);
16355 /* Linux/SPARC yields signal SIGILL. */
16356 #if defined (__sparc__) && defined (__linux__)
16357 signal (SIGILL, sigfpe_handler);
16366 if ac_fn_c_try_run "$LINENO"; then :
16367 gt_cv_int_divbyzero_sigfpe=yes
16369 gt_cv_int_divbyzero_sigfpe=no
16371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16372 conftest.$ac_objext conftest.beam conftest.$ac_ext
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
16379 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
16380 case "$gt_cv_int_divbyzero_sigfpe" in
16385 cat >>confdefs.h <<_ACEOF
16386 #define INTDIV0_RAISES_SIGFPE $value
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16392 $as_echo_n "checking for inttypes.h... " >&6; }
16393 if ${gl_cv_header_inttypes_h+:} false; then :
16394 $as_echo_n "(cached) " >&6
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16399 #include <sys/types.h>
16400 #include <inttypes.h>
16405 uintmax_t i = (uintmax_t) -1; return !i;
16410 if ac_fn_c_try_compile "$LINENO"; then :
16411 gl_cv_header_inttypes_h=yes
16413 gl_cv_header_inttypes_h=no
16415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16418 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16419 if test $gl_cv_header_inttypes_h = yes; then
16421 cat >>confdefs.h <<_ACEOF
16422 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16429 $as_echo_n "checking for unsigned long long int... " >&6; }
16430 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16431 $as_echo_n "(cached) " >&6
16433 ac_cv_type_unsigned_long_long_int=yes
16434 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16438 /* For now, do not test the preprocessor; as of 2007 there are too many
16439 implementations with broken preprocessors. Perhaps this can
16440 be revisited in 2012. In the meantime, code should not expect
16441 #if to work with literals wider than 32 bits. */
16442 /* Test literals. */
16443 long long int ll = 9223372036854775807ll;
16444 long long int nll = -9223372036854775807LL;
16445 unsigned long long int ull = 18446744073709551615ULL;
16446 /* Test constant expressions. */
16447 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16449 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16455 /* Test availability of runtime routines for shift and division. */
16456 long long int llmax = 9223372036854775807ll;
16457 unsigned long long int ullmax = 18446744073709551615ull;
16458 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16459 | (llmax / ll) | (llmax % ll)
16460 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16461 | (ullmax / ull) | (ullmax % ull));
16467 if ac_fn_c_try_link "$LINENO"; then :
16470 ac_cv_type_unsigned_long_long_int=no
16472 rm -f core conftest.err conftest.$ac_objext \
16473 conftest$ac_exeext conftest.$ac_ext
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16477 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16478 if test $ac_cv_type_unsigned_long_long_int = yes; then
16480 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16487 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
16489 test $ac_cv_type_unsigned_long_long_int = yes \
16490 && ac_type='unsigned long long' \
16491 || ac_type='unsigned long'
16493 cat >>confdefs.h <<_ACEOF
16494 #define uintmax_t $ac_type
16499 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16504 for ac_header in inttypes.h
16506 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16507 if test "x$ac_cv_header_inttypes_h" = xyes; then :
16508 cat >>confdefs.h <<_ACEOF
16509 #define HAVE_INTTYPES_H 1
16516 if test $ac_cv_header_inttypes_h = yes; then
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
16518 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
16519 if ${gt_cv_inttypes_pri_broken+:} false; then :
16520 $as_echo_n "(cached) " >&6
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16526 #include <inttypes.h>
16539 if ac_fn_c_try_compile "$LINENO"; then :
16540 gt_cv_inttypes_pri_broken=no
16542 gt_cv_inttypes_pri_broken=yes
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
16548 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
16550 if test "$gt_cv_inttypes_pri_broken" = yes; then
16552 cat >>confdefs.h <<_ACEOF
16553 #define PRI_MACROS_BROKEN 1
16556 PRI_MACROS_BROKEN=1
16558 PRI_MACROS_BROKEN=0
16563 if test "X$prefix" = "XNONE"; then
16564 acl_final_prefix="$ac_default_prefix"
16566 acl_final_prefix="$prefix"
16568 if test "X$exec_prefix" = "XNONE"; then
16569 acl_final_exec_prefix='${prefix}'
16571 acl_final_exec_prefix="$exec_prefix"
16573 acl_save_prefix="$prefix"
16574 prefix="$acl_final_prefix"
16575 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16576 prefix="$acl_save_prefix"
16580 # Check whether --with-gnu-ld was given.
16581 if test "${with_gnu_ld+set}" = set; then :
16582 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16587 # Prepare PATH_SEPARATOR.
16588 # The user is always right.
16589 if test "${PATH_SEPARATOR+set}" != set; then
16590 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16591 # contains only /bin. Note that ksh looks also at the FPATH variable,
16592 # so we have to set that as well for the test.
16594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16595 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16596 || PATH_SEPARATOR=';'
16601 if test "$GCC" = yes; then
16602 # Check if gcc -print-prog-name=ld gives a path.
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16604 $as_echo_n "checking for ld used by $CC... " >&6; }
16607 # gcc leaves a trailing carriage return which upsets mingw
16608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16613 # Accept absolute paths.
16615 re_direlt='/[^/][^/]*/\.\./'
16616 # Canonicalize the pathname of ld
16617 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16618 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16619 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16621 test -z "$LD" && LD="$ac_prog"
16624 # If it fails, then pretend we aren't using GCC.
16628 # If it is relative, then search for the first ld in PATH.
16629 with_gnu_ld=unknown
16632 elif test "$with_gnu_ld" = yes; then
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16634 $as_echo_n "checking for GNU ld... " >&6; }
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16637 $as_echo_n "checking for non-GNU ld... " >&6; }
16639 if ${acl_cv_path_LD+:} false; then :
16640 $as_echo_n "(cached) " >&6
16642 if test -z "$LD"; then
16643 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16644 for ac_dir in $PATH; do
16645 IFS="$acl_save_ifs"
16646 test -z "$ac_dir" && ac_dir=.
16647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16648 acl_cv_path_LD="$ac_dir/$ac_prog"
16649 # Check to see if the program is GNU ld. I'd rather use --version,
16650 # but apparently some variants of GNU ld only accept -v.
16651 # Break only if it was the GNU/non-GNU ld that we prefer.
16652 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16653 *GNU* | *'with BFD'*)
16654 test "$with_gnu_ld" != no && break
16657 test "$with_gnu_ld" != yes && break
16662 IFS="$acl_save_ifs"
16664 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16668 LD="$acl_cv_path_LD"
16669 if test -n "$LD"; then
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16671 $as_echo "$LD" >&6; }
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16674 $as_echo "no" >&6; }
16676 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16678 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16679 if ${acl_cv_prog_gnu_ld+:} false; then :
16680 $as_echo_n "(cached) " >&6
16682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16683 case `$LD -v 2>&1 </dev/null` in
16684 *GNU* | *'with BFD'*)
16685 acl_cv_prog_gnu_ld=yes
16688 acl_cv_prog_gnu_ld=no
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16693 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16694 with_gnu_ld=$acl_cv_prog_gnu_ld
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16700 $as_echo_n "checking for shared library run path origin... " >&6; }
16701 if ${acl_cv_rpath+:} false; then :
16702 $as_echo_n "(cached) " >&6
16705 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16706 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16708 rm -f ./conftest.sh
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16713 $as_echo "$acl_cv_rpath" >&6; }
16715 acl_libext="$acl_cv_libext"
16716 acl_shlibext="$acl_cv_shlibext"
16717 acl_libname_spec="$acl_cv_libname_spec"
16718 acl_library_names_spec="$acl_cv_library_names_spec"
16719 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16720 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16721 acl_hardcode_direct="$acl_cv_hardcode_direct"
16722 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16723 # Check whether --enable-rpath was given.
16724 if test "${enable_rpath+set}" = set; then :
16725 enableval=$enable_rpath; :
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16738 $as_echo_n "checking for 64-bit host... " >&6; }
16739 if ${gl_cv_solaris_64bit+:} false; then :
16740 $as_echo_n "(cached) " >&6
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16751 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16752 gl_cv_solaris_64bit=yes
16754 gl_cv_solaris_64bit=no
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16761 $as_echo "$gl_cv_solaris_64bit" >&6; }
16762 if test $gl_cv_solaris_64bit = yes; then
16763 acl_libdirstem=lib/64
16764 case "$host_cpu" in
16765 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16766 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16771 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16772 if test -n "$searchpath"; then
16773 acl_save_IFS="${IFS= }"; IFS=":"
16774 for searchdir in $searchpath; do
16775 if test -d "$searchdir"; then
16776 case "$searchdir" in
16777 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16779 # Better ignore directories of this form. They are misleading.
16781 *) searchdir=`cd "$searchdir" && pwd`
16782 case "$searchdir" in
16783 */lib64 ) acl_libdirstem=lib64 ;;
16788 IFS="$acl_save_IFS"
16792 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16796 gl_threads_api=none
16801 if test "$gl_use_threads" != no; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16803 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16804 if ${gl_cv_have_weak+:} false; then :
16805 $as_echo_n "(cached) " >&6
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810 extern void xyzzy ();
16820 if ac_fn_c_try_link "$LINENO"; then :
16821 gl_cv_have_weak=maybe
16823 rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16825 if test $gl_cv_have_weak = maybe; then
16826 if test "$cross_compiling" = yes; then :
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16830 Extensible Linking Format
16834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16835 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16836 gl_cv_have_weak="guessing yes"
16838 gl_cv_have_weak="guessing no"
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16851 return (fputs == NULL);
16854 if ac_fn_c_try_run "$LINENO"; then :
16855 gl_cv_have_weak=yes
16859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16860 conftest.$ac_objext conftest.beam conftest.$ac_ext
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16867 $as_echo "$gl_cv_have_weak" >&6; }
16868 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16869 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16870 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16871 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16872 if test "x$ac_cv_header_pthread_h" = xyes; then :
16873 gl_have_pthread_h=yes
16875 gl_have_pthread_h=no
16879 if test "$gl_have_pthread_h" = yes; then
16880 # Other possible tests:
16881 # -lpthreads (FSU threads, PCthreads)
16884 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16885 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16886 # the second one only in libpthread, and lock.c needs it.
16888 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
16889 # needs -pthread for some reason. See:
16890 # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
16892 for gl_pthread in '' '-pthread'; do
16893 LIBS="$LIBS $gl_pthread"
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16896 #include <pthread.h>
16898 pthread_mutexattr_t ma;
16903 pthread_mutex_lock (&m);
16904 pthread_mutexattr_init (&ma);
16909 if ac_fn_c_try_link "$LINENO"; then :
16910 gl_have_pthread=yes
16911 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
16912 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
16914 rm -f core conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
16917 test -n "$gl_have_pthread" && break
16920 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16921 # since it is defined as a macro on OSF/1.)
16922 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
16923 # The program links fine without libpthread. But it may actually
16924 # need to link with libpthread in order to create multiple threads.
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16926 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16927 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16928 $as_echo_n "(cached) " >&6
16930 ac_check_lib_save_LIBS=$LIBS
16931 LIBS="-lpthread $LIBS"
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16935 /* Override any GCC internal prototype to avoid an error.
16936 Use char because int might match the return type of a GCC
16937 builtin and then its argument prototype would still apply. */
16941 char pthread_kill ();
16945 return pthread_kill ();
16950 if ac_fn_c_try_link "$LINENO"; then :
16951 ac_cv_lib_pthread_pthread_kill=yes
16953 ac_cv_lib_pthread_pthread_kill=no
16955 rm -f core conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16960 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16961 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16962 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16963 # On Solaris and HP-UX, most pthread functions exist also in libc.
16964 # Therefore pthread_in_use() needs to actually try to create a
16965 # thread: pthread_create from libc will fail, whereas
16966 # pthread_create will actually create a thread.
16970 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16976 elif test -z "$gl_have_pthread"; then
16977 # Some library is needed. Try libpthread and libc_r.
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16979 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16980 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16981 $as_echo_n "(cached) " >&6
16983 ac_check_lib_save_LIBS=$LIBS
16984 LIBS="-lpthread $LIBS"
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16988 /* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
16994 char pthread_kill ();
16998 return pthread_kill ();
17003 if ac_fn_c_try_link "$LINENO"; then :
17004 ac_cv_lib_pthread_pthread_kill=yes
17006 ac_cv_lib_pthread_pthread_kill=no
17008 rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17013 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17014 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17015 gl_have_pthread=yes
17016 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17017 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17020 if test -z "$gl_have_pthread"; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17023 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17024 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17025 $as_echo_n "(cached) " >&6
17027 ac_check_lib_save_LIBS=$LIBS
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17032 /* Override any GCC internal prototype to avoid an error.
17033 Use char because int might match the return type of a GCC
17034 builtin and then its argument prototype would still apply. */
17038 char pthread_kill ();
17042 return pthread_kill ();
17047 if ac_fn_c_try_link "$LINENO"; then :
17048 ac_cv_lib_c_r_pthread_kill=yes
17050 ac_cv_lib_c_r_pthread_kill=no
17052 rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17057 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17058 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17059 gl_have_pthread=yes
17060 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17061 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17066 if test -n "$gl_have_pthread"; then
17067 gl_threads_api=posix
17069 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17071 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17072 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17074 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17083 if test -z "$gl_have_pthread"; then
17084 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17085 gl_have_solaristhread=
17086 gl_save_LIBS="$LIBS"
17087 LIBS="$LIBS -lthread"
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17091 #include <thread.h>
17102 if ac_fn_c_try_link "$LINENO"; then :
17103 gl_have_solaristhread=yes
17105 rm -f core conftest.err conftest.$ac_objext \
17106 conftest$ac_exeext conftest.$ac_ext
17107 LIBS="$gl_save_LIBS"
17108 if test -n "$gl_have_solaristhread"; then
17109 gl_threads_api=solaris
17111 LTLIBTHREAD=-lthread
17112 LIBMULTITHREAD="$LIBTHREAD"
17113 LTLIBMULTITHREAD="$LTLIBTHREAD"
17115 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17117 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17119 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17127 if test "$gl_use_threads" = pth; then
17128 gl_save_CPPFLAGS="$CPPFLAGS"
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17135 $as_echo_n "checking how to link with libpth... " >&6; }
17136 if ${ac_cv_libpth_libs+:} false; then :
17137 $as_echo_n "(cached) " >&6
17149 acl_save_prefix="$prefix"
17150 prefix="$acl_final_prefix"
17151 acl_save_exec_prefix="$exec_prefix"
17152 exec_prefix="$acl_final_exec_prefix"
17154 eval additional_includedir=\"$includedir\"
17155 eval additional_libdir=\"$libdir\"
17157 exec_prefix="$acl_save_exec_prefix"
17158 prefix="$acl_save_prefix"
17161 # Check whether --with-libpth-prefix was given.
17162 if test "${with_libpth_prefix+set}" = set; then :
17163 withval=$with_libpth_prefix;
17164 if test "X$withval" = "Xno"; then
17167 if test "X$withval" = "X"; then
17169 acl_save_prefix="$prefix"
17170 prefix="$acl_final_prefix"
17171 acl_save_exec_prefix="$exec_prefix"
17172 exec_prefix="$acl_final_exec_prefix"
17174 eval additional_includedir=\"$includedir\"
17175 eval additional_libdir=\"$libdir\"
17177 exec_prefix="$acl_save_exec_prefix"
17178 prefix="$acl_save_prefix"
17181 additional_includedir="$withval/include"
17182 additional_libdir="$withval/$acl_libdirstem"
17183 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17184 && ! test -d "$withval/$acl_libdirstem"; then
17185 additional_libdir="$withval/$acl_libdirstem2"
17199 names_already_handled=
17200 names_next_round='pth '
17201 while test -n "$names_next_round"; do
17202 names_this_round="$names_next_round"
17204 for name in $names_this_round; do
17206 for n in $names_already_handled; do
17207 if test "$n" = "$name"; then
17208 already_handled=yes
17212 if test -z "$already_handled"; then
17213 names_already_handled="$names_already_handled $name"
17214 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17215 eval value=\"\$HAVE_LIB$uppername\"
17216 if test -n "$value"; then
17217 if test "$value" = yes; then
17218 eval value=\"\$LIB$uppername\"
17219 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17220 eval value=\"\$LTLIB$uppername\"
17221 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17230 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17231 if test -n "$acl_shlibext"; then
17232 shrext=".$acl_shlibext" # typically: shrext=.so
17236 if test $use_additional = yes; then
17237 dir="$additional_libdir"
17238 if test -n "$acl_shlibext"; then
17239 if test -f "$dir/$libname$shrext"; then
17241 found_so="$dir/$libname$shrext"
17243 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17244 ver=`(cd "$dir" && \
17245 for f in "$libname$shrext".*; do echo "$f"; done \
17246 | sed -e "s,^$libname$shrext\\\\.,," \
17247 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17248 | sed 1q ) 2>/dev/null`
17249 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17251 found_so="$dir/$libname$shrext.$ver"
17254 eval library_names=\"$acl_library_names_spec\"
17255 for f in $library_names; do
17256 if test -f "$dir/$f"; then
17265 if test "X$found_dir" = "X"; then
17266 if test -f "$dir/$libname.$acl_libext"; then
17268 found_a="$dir/$libname.$acl_libext"
17271 if test "X$found_dir" != "X"; then
17272 if test -f "$dir/$libname.la"; then
17273 found_la="$dir/$libname.la"
17277 if test "X$found_dir" = "X"; then
17278 for x in $LDFLAGS $LTLIBPTH; do
17280 acl_save_prefix="$prefix"
17281 prefix="$acl_final_prefix"
17282 acl_save_exec_prefix="$exec_prefix"
17283 exec_prefix="$acl_final_exec_prefix"
17285 exec_prefix="$acl_save_exec_prefix"
17286 prefix="$acl_save_prefix"
17290 dir=`echo "X$x" | sed -e 's/^X-L//'`
17291 if test -n "$acl_shlibext"; then
17292 if test -f "$dir/$libname$shrext"; then
17294 found_so="$dir/$libname$shrext"
17296 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17297 ver=`(cd "$dir" && \
17298 for f in "$libname$shrext".*; do echo "$f"; done \
17299 | sed -e "s,^$libname$shrext\\\\.,," \
17300 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17301 | sed 1q ) 2>/dev/null`
17302 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17304 found_so="$dir/$libname$shrext.$ver"
17307 eval library_names=\"$acl_library_names_spec\"
17308 for f in $library_names; do
17309 if test -f "$dir/$f"; then
17318 if test "X$found_dir" = "X"; then
17319 if test -f "$dir/$libname.$acl_libext"; then
17321 found_a="$dir/$libname.$acl_libext"
17324 if test "X$found_dir" != "X"; then
17325 if test -f "$dir/$libname.la"; then
17326 found_la="$dir/$libname.la"
17331 if test "X$found_dir" != "X"; then
17336 if test "X$found_dir" != "X"; then
17337 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17338 if test "X$found_so" != "X"; then
17339 if test "$enable_rpath" = no \
17340 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17341 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17342 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17345 for x in $ltrpathdirs; do
17346 if test "X$x" = "X$found_dir"; then
17351 if test -z "$haveit"; then
17352 ltrpathdirs="$ltrpathdirs $found_dir"
17354 if test "$acl_hardcode_direct" = yes; then
17355 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17357 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17358 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17360 for x in $rpathdirs; do
17361 if test "X$x" = "X$found_dir"; then
17366 if test -z "$haveit"; then
17367 rpathdirs="$rpathdirs $found_dir"
17371 for x in $LDFLAGS $LIBPTH; do
17373 acl_save_prefix="$prefix"
17374 prefix="$acl_final_prefix"
17375 acl_save_exec_prefix="$exec_prefix"
17376 exec_prefix="$acl_final_exec_prefix"
17378 exec_prefix="$acl_save_exec_prefix"
17379 prefix="$acl_save_prefix"
17381 if test "X$x" = "X-L$found_dir"; then
17386 if test -z "$haveit"; then
17387 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17389 if test "$acl_hardcode_minus_L" != no; then
17390 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17392 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17398 if test "X$found_a" != "X"; then
17399 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17401 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17404 additional_includedir=
17405 case "$found_dir" in
17406 */$acl_libdirstem | */$acl_libdirstem/)
17407 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17408 if test "$name" = 'pth'; then
17409 LIBPTH_PREFIX="$basedir"
17411 additional_includedir="$basedir/include"
17413 */$acl_libdirstem2 | */$acl_libdirstem2/)
17414 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17415 if test "$name" = 'pth'; then
17416 LIBPTH_PREFIX="$basedir"
17418 additional_includedir="$basedir/include"
17421 if test "X$additional_includedir" != "X"; then
17422 if test "X$additional_includedir" != "X/usr/include"; then
17424 if test "X$additional_includedir" = "X/usr/local/include"; then
17425 if test -n "$GCC"; then
17427 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17431 if test -z "$haveit"; then
17432 for x in $CPPFLAGS $INCPTH; do
17434 acl_save_prefix="$prefix"
17435 prefix="$acl_final_prefix"
17436 acl_save_exec_prefix="$exec_prefix"
17437 exec_prefix="$acl_final_exec_prefix"
17439 exec_prefix="$acl_save_exec_prefix"
17440 prefix="$acl_save_prefix"
17442 if test "X$x" = "X-I$additional_includedir"; then
17447 if test -z "$haveit"; then
17448 if test -d "$additional_includedir"; then
17449 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17455 if test -n "$found_la"; then
17456 save_libdir="$libdir"
17457 case "$found_la" in
17458 */* | *\\*) . "$found_la" ;;
17459 *) . "./$found_la" ;;
17461 libdir="$save_libdir"
17462 for dep in $dependency_libs; do
17465 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17466 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17467 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17469 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17470 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17471 if test -n "$GCC"; then
17473 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17477 if test -z "$haveit"; then
17479 for x in $LDFLAGS $LIBPTH; do
17481 acl_save_prefix="$prefix"
17482 prefix="$acl_final_prefix"
17483 acl_save_exec_prefix="$exec_prefix"
17484 exec_prefix="$acl_final_exec_prefix"
17486 exec_prefix="$acl_save_exec_prefix"
17487 prefix="$acl_save_prefix"
17489 if test "X$x" = "X-L$additional_libdir"; then
17494 if test -z "$haveit"; then
17495 if test -d "$additional_libdir"; then
17496 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17500 for x in $LDFLAGS $LTLIBPTH; do
17502 acl_save_prefix="$prefix"
17503 prefix="$acl_final_prefix"
17504 acl_save_exec_prefix="$exec_prefix"
17505 exec_prefix="$acl_final_exec_prefix"
17507 exec_prefix="$acl_save_exec_prefix"
17508 prefix="$acl_save_prefix"
17510 if test "X$x" = "X-L$additional_libdir"; then
17515 if test -z "$haveit"; then
17516 if test -d "$additional_libdir"; then
17517 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17524 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17525 if test "$enable_rpath" != no; then
17527 for x in $rpathdirs; do
17528 if test "X$x" = "X$dir"; then
17533 if test -z "$haveit"; then
17534 rpathdirs="$rpathdirs $dir"
17537 for x in $ltrpathdirs; do
17538 if test "X$x" = "X$dir"; then
17543 if test -z "$haveit"; then
17544 ltrpathdirs="$ltrpathdirs $dir"
17549 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17555 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17556 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17562 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17563 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17569 if test "X$rpathdirs" != "X"; then
17570 if test -n "$acl_hardcode_libdir_separator"; then
17572 for found_dir in $rpathdirs; do
17573 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17575 acl_save_libdir="$libdir"
17577 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17578 libdir="$acl_save_libdir"
17579 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17581 for found_dir in $rpathdirs; do
17582 acl_save_libdir="$libdir"
17583 libdir="$found_dir"
17584 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17585 libdir="$acl_save_libdir"
17586 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17590 if test "X$ltrpathdirs" != "X"; then
17591 for found_dir in $ltrpathdirs; do
17592 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17601 ac_cv_libpth_libs="$LIBPTH"
17602 ac_cv_libpth_ltlibs="$LTLIBPTH"
17603 ac_cv_libpth_cppflags="$INCPTH"
17604 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17608 $as_echo "$ac_cv_libpth_libs" >&6; }
17609 LIBPTH="$ac_cv_libpth_libs"
17610 LTLIBPTH="$ac_cv_libpth_ltlibs"
17611 INCPTH="$ac_cv_libpth_cppflags"
17612 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17614 for element in $INCPTH; do
17616 for x in $CPPFLAGS; do
17618 acl_save_prefix="$prefix"
17619 prefix="$acl_final_prefix"
17620 acl_save_exec_prefix="$exec_prefix"
17621 exec_prefix="$acl_final_exec_prefix"
17623 exec_prefix="$acl_save_exec_prefix"
17624 prefix="$acl_save_prefix"
17626 if test "X$x" = "X$element"; then
17631 if test -z "$haveit"; then
17632 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17644 gl_save_LIBS="$LIBS"
17645 LIBS="$LIBS $LIBPTH"
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17657 if ac_fn_c_try_link "$LINENO"; then :
17660 rm -f core conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17662 LIBS="$gl_save_LIBS"
17663 if test -n "$gl_have_pth"; then
17665 LIBTHREAD="$LIBPTH"
17666 LTLIBTHREAD="$LTLIBPTH"
17667 LIBMULTITHREAD="$LIBTHREAD"
17668 LTLIBMULTITHREAD="$LTLIBTHREAD"
17670 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17672 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17673 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17675 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17682 CPPFLAGS="$gl_save_CPPFLAGS"
17685 if test -z "$gl_have_pthread"; then
17686 case "$gl_use_threads" in
17687 yes | windows | win32) # The 'win32' is for backward compatibility.
17688 if { case "$host_os" in
17693 gl_threads_api=windows
17695 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17703 $as_echo_n "checking for multithread API to use... " >&6; }
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17705 $as_echo "$gl_threads_api" >&6; }
17717 if test "$gl_threads_api" = posix; then
17718 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
17719 # pthread_rwlock_* functions.
17720 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17722 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17724 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
17728 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17732 #include <pthread.h>
17737 #if __FreeBSD__ == 4
17738 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
17739 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
17740 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
17741 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
17743 int x = (int)PTHREAD_MUTEX_RECURSIVE;
17751 if ac_fn_c_try_compile "$LINENO"; then :
17753 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
17756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773 acl_save_prefix="$prefix"
17774 prefix="$acl_final_prefix"
17775 acl_save_exec_prefix="$exec_prefix"
17776 exec_prefix="$acl_final_exec_prefix"
17778 eval additional_includedir=\"$includedir\"
17779 eval additional_libdir=\"$libdir\"
17781 exec_prefix="$acl_save_exec_prefix"
17782 prefix="$acl_save_prefix"
17785 # Check whether --with-libiconv-prefix was given.
17786 if test "${with_libiconv_prefix+set}" = set; then :
17787 withval=$with_libiconv_prefix;
17788 if test "X$withval" = "Xno"; then
17791 if test "X$withval" = "X"; then
17793 acl_save_prefix="$prefix"
17794 prefix="$acl_final_prefix"
17795 acl_save_exec_prefix="$exec_prefix"
17796 exec_prefix="$acl_final_exec_prefix"
17798 eval additional_includedir=\"$includedir\"
17799 eval additional_libdir=\"$libdir\"
17801 exec_prefix="$acl_save_exec_prefix"
17802 prefix="$acl_save_prefix"
17805 additional_includedir="$withval/include"
17806 additional_libdir="$withval/$acl_libdirstem"
17807 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17808 && ! test -d "$withval/$acl_libdirstem"; then
17809 additional_libdir="$withval/$acl_libdirstem2"
17823 names_already_handled=
17824 names_next_round='iconv '
17825 while test -n "$names_next_round"; do
17826 names_this_round="$names_next_round"
17828 for name in $names_this_round; do
17830 for n in $names_already_handled; do
17831 if test "$n" = "$name"; then
17832 already_handled=yes
17836 if test -z "$already_handled"; then
17837 names_already_handled="$names_already_handled $name"
17838 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17839 eval value=\"\$HAVE_LIB$uppername\"
17840 if test -n "$value"; then
17841 if test "$value" = yes; then
17842 eval value=\"\$LIB$uppername\"
17843 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17844 eval value=\"\$LTLIB$uppername\"
17845 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17854 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17855 if test -n "$acl_shlibext"; then
17856 shrext=".$acl_shlibext" # typically: shrext=.so
17860 if test $use_additional = yes; then
17861 dir="$additional_libdir"
17862 if test -n "$acl_shlibext"; then
17863 if test -f "$dir/$libname$shrext"; then
17865 found_so="$dir/$libname$shrext"
17867 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17868 ver=`(cd "$dir" && \
17869 for f in "$libname$shrext".*; do echo "$f"; done \
17870 | sed -e "s,^$libname$shrext\\\\.,," \
17871 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17872 | sed 1q ) 2>/dev/null`
17873 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17875 found_so="$dir/$libname$shrext.$ver"
17878 eval library_names=\"$acl_library_names_spec\"
17879 for f in $library_names; do
17880 if test -f "$dir/$f"; then
17889 if test "X$found_dir" = "X"; then
17890 if test -f "$dir/$libname.$acl_libext"; then
17892 found_a="$dir/$libname.$acl_libext"
17895 if test "X$found_dir" != "X"; then
17896 if test -f "$dir/$libname.la"; then
17897 found_la="$dir/$libname.la"
17901 if test "X$found_dir" = "X"; then
17902 for x in $LDFLAGS $LTLIBICONV; do
17904 acl_save_prefix="$prefix"
17905 prefix="$acl_final_prefix"
17906 acl_save_exec_prefix="$exec_prefix"
17907 exec_prefix="$acl_final_exec_prefix"
17909 exec_prefix="$acl_save_exec_prefix"
17910 prefix="$acl_save_prefix"
17914 dir=`echo "X$x" | sed -e 's/^X-L//'`
17915 if test -n "$acl_shlibext"; then
17916 if test -f "$dir/$libname$shrext"; then
17918 found_so="$dir/$libname$shrext"
17920 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17921 ver=`(cd "$dir" && \
17922 for f in "$libname$shrext".*; do echo "$f"; done \
17923 | sed -e "s,^$libname$shrext\\\\.,," \
17924 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17925 | sed 1q ) 2>/dev/null`
17926 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17928 found_so="$dir/$libname$shrext.$ver"
17931 eval library_names=\"$acl_library_names_spec\"
17932 for f in $library_names; do
17933 if test -f "$dir/$f"; then
17942 if test "X$found_dir" = "X"; then
17943 if test -f "$dir/$libname.$acl_libext"; then
17945 found_a="$dir/$libname.$acl_libext"
17948 if test "X$found_dir" != "X"; then
17949 if test -f "$dir/$libname.la"; then
17950 found_la="$dir/$libname.la"
17955 if test "X$found_dir" != "X"; then
17960 if test "X$found_dir" != "X"; then
17961 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17962 if test "X$found_so" != "X"; then
17963 if test "$enable_rpath" = no \
17964 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17965 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17966 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17969 for x in $ltrpathdirs; do
17970 if test "X$x" = "X$found_dir"; then
17975 if test -z "$haveit"; then
17976 ltrpathdirs="$ltrpathdirs $found_dir"
17978 if test "$acl_hardcode_direct" = yes; then
17979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17981 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17982 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17984 for x in $rpathdirs; do
17985 if test "X$x" = "X$found_dir"; then
17990 if test -z "$haveit"; then
17991 rpathdirs="$rpathdirs $found_dir"
17995 for x in $LDFLAGS $LIBICONV; do
17997 acl_save_prefix="$prefix"
17998 prefix="$acl_final_prefix"
17999 acl_save_exec_prefix="$exec_prefix"
18000 exec_prefix="$acl_final_exec_prefix"
18002 exec_prefix="$acl_save_exec_prefix"
18003 prefix="$acl_save_prefix"
18005 if test "X$x" = "X-L$found_dir"; then
18010 if test -z "$haveit"; then
18011 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18013 if test "$acl_hardcode_minus_L" != no; then
18014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18016 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18022 if test "X$found_a" != "X"; then
18023 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18025 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18028 additional_includedir=
18029 case "$found_dir" in
18030 */$acl_libdirstem | */$acl_libdirstem/)
18031 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18032 if test "$name" = 'iconv'; then
18033 LIBICONV_PREFIX="$basedir"
18035 additional_includedir="$basedir/include"
18037 */$acl_libdirstem2 | */$acl_libdirstem2/)
18038 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18039 if test "$name" = 'iconv'; then
18040 LIBICONV_PREFIX="$basedir"
18042 additional_includedir="$basedir/include"
18045 if test "X$additional_includedir" != "X"; then
18046 if test "X$additional_includedir" != "X/usr/include"; then
18048 if test "X$additional_includedir" = "X/usr/local/include"; then
18049 if test -n "$GCC"; then
18051 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18055 if test -z "$haveit"; then
18056 for x in $CPPFLAGS $INCICONV; do
18058 acl_save_prefix="$prefix"
18059 prefix="$acl_final_prefix"
18060 acl_save_exec_prefix="$exec_prefix"
18061 exec_prefix="$acl_final_exec_prefix"
18063 exec_prefix="$acl_save_exec_prefix"
18064 prefix="$acl_save_prefix"
18066 if test "X$x" = "X-I$additional_includedir"; then
18071 if test -z "$haveit"; then
18072 if test -d "$additional_includedir"; then
18073 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18079 if test -n "$found_la"; then
18080 save_libdir="$libdir"
18081 case "$found_la" in
18082 */* | *\\*) . "$found_la" ;;
18083 *) . "./$found_la" ;;
18085 libdir="$save_libdir"
18086 for dep in $dependency_libs; do
18089 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18090 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18091 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18093 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18094 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18095 if test -n "$GCC"; then
18097 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18101 if test -z "$haveit"; then
18103 for x in $LDFLAGS $LIBICONV; do
18105 acl_save_prefix="$prefix"
18106 prefix="$acl_final_prefix"
18107 acl_save_exec_prefix="$exec_prefix"
18108 exec_prefix="$acl_final_exec_prefix"
18110 exec_prefix="$acl_save_exec_prefix"
18111 prefix="$acl_save_prefix"
18113 if test "X$x" = "X-L$additional_libdir"; then
18118 if test -z "$haveit"; then
18119 if test -d "$additional_libdir"; then
18120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18124 for x in $LDFLAGS $LTLIBICONV; do
18126 acl_save_prefix="$prefix"
18127 prefix="$acl_final_prefix"
18128 acl_save_exec_prefix="$exec_prefix"
18129 exec_prefix="$acl_final_exec_prefix"
18131 exec_prefix="$acl_save_exec_prefix"
18132 prefix="$acl_save_prefix"
18134 if test "X$x" = "X-L$additional_libdir"; then
18139 if test -z "$haveit"; then
18140 if test -d "$additional_libdir"; then
18141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18148 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18149 if test "$enable_rpath" != no; then
18151 for x in $rpathdirs; do
18152 if test "X$x" = "X$dir"; then
18157 if test -z "$haveit"; then
18158 rpathdirs="$rpathdirs $dir"
18161 for x in $ltrpathdirs; do
18162 if test "X$x" = "X$dir"; then
18167 if test -z "$haveit"; then
18168 ltrpathdirs="$ltrpathdirs $dir"
18173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18176 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18179 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18186 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18187 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18193 if test "X$rpathdirs" != "X"; then
18194 if test -n "$acl_hardcode_libdir_separator"; then
18196 for found_dir in $rpathdirs; do
18197 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18199 acl_save_libdir="$libdir"
18201 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18202 libdir="$acl_save_libdir"
18203 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18205 for found_dir in $rpathdirs; do
18206 acl_save_libdir="$libdir"
18207 libdir="$found_dir"
18208 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18209 libdir="$acl_save_libdir"
18210 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18214 if test "X$ltrpathdirs" != "X"; then
18215 for found_dir in $ltrpathdirs; do
18216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18230 REPLACE_ICONV_OPEN=0;
18231 REPLACE_ICONV_UTF=0;
18233 if test -n "$ICONV_H"; then
18234 GL_GENERATE_ICONV_H_TRUE=
18235 GL_GENERATE_ICONV_H_FALSE='#'
18237 GL_GENERATE_ICONV_H_TRUE='#'
18238 GL_GENERATE_ICONV_H_FALSE=
18247 am_save_CPPFLAGS="$CPPFLAGS"
18249 for element in $INCICONV; do
18251 for x in $CPPFLAGS; do
18253 acl_save_prefix="$prefix"
18254 prefix="$acl_final_prefix"
18255 acl_save_exec_prefix="$exec_prefix"
18256 exec_prefix="$acl_final_exec_prefix"
18258 exec_prefix="$acl_save_exec_prefix"
18259 prefix="$acl_save_prefix"
18261 if test "X$x" = "X$element"; then
18266 if test -z "$haveit"; then
18267 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18273 $as_echo_n "checking for iconv... " >&6; }
18274 if ${am_cv_func_iconv+:} false; then :
18275 $as_echo_n "(cached) " >&6
18278 am_cv_func_iconv="no, consider installing GNU libiconv"
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18283 #include <stdlib.h>
18289 iconv_t cd = iconv_open("","");
18290 iconv(cd,NULL,NULL,NULL,NULL);
18296 if ac_fn_c_try_link "$LINENO"; then :
18297 am_cv_func_iconv=yes
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 if test "$am_cv_func_iconv" != yes; then
18302 am_save_LIBS="$LIBS"
18303 LIBS="$LIBS $LIBICONV"
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18307 #include <stdlib.h>
18313 iconv_t cd = iconv_open("","");
18314 iconv(cd,NULL,NULL,NULL,NULL);
18320 if ac_fn_c_try_link "$LINENO"; then :
18321 am_cv_lib_iconv=yes
18322 am_cv_func_iconv=yes
18324 rm -f core conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
18326 LIBS="$am_save_LIBS"
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18331 $as_echo "$am_cv_func_iconv" >&6; }
18332 if test "$am_cv_func_iconv" = yes; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18334 $as_echo_n "checking for working iconv... " >&6; }
18335 if ${am_cv_func_iconv_works+:} false; then :
18336 $as_echo_n "(cached) " >&6
18339 am_save_LIBS="$LIBS"
18340 if test $am_cv_lib_iconv = yes; then
18341 LIBS="$LIBS $LIBICONV"
18343 am_cv_func_iconv_works=no
18344 for ac_iconv_const in '' 'const'; do
18345 if test "$cross_compiling" = yes; then :
18347 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18348 *) am_cv_func_iconv_works="guessing yes" ;;
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18355 #include <string.h>
18357 #ifndef ICONV_CONST
18358 # define ICONV_CONST $ac_iconv_const
18365 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18368 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18369 if (cd_utf8_to_88591 != (iconv_t)(-1))
18371 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18373 ICONV_CONST char *inptr = input;
18374 size_t inbytesleft = strlen (input);
18375 char *outptr = buf;
18376 size_t outbytesleft = sizeof (buf);
18377 size_t res = iconv (cd_utf8_to_88591,
18378 &inptr, &inbytesleft,
18379 &outptr, &outbytesleft);
18382 iconv_close (cd_utf8_to_88591);
18385 /* Test against Solaris 10 bug: Failures are not distinguishable from
18386 successful returns. */
18388 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18389 if (cd_ascii_to_88591 != (iconv_t)(-1))
18391 static ICONV_CONST char input[] = "\263";
18393 ICONV_CONST char *inptr = input;
18394 size_t inbytesleft = strlen (input);
18395 char *outptr = buf;
18396 size_t outbytesleft = sizeof (buf);
18397 size_t res = iconv (cd_ascii_to_88591,
18398 &inptr, &inbytesleft,
18399 &outptr, &outbytesleft);
18402 iconv_close (cd_ascii_to_88591);
18405 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
18407 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18408 if (cd_88591_to_utf8 != (iconv_t)(-1))
18410 static ICONV_CONST char input[] = "\304";
18411 static char buf[2] = { (char)0xDE, (char)0xAD };
18412 ICONV_CONST char *inptr = input;
18413 size_t inbytesleft = 1;
18414 char *outptr = buf;
18415 size_t outbytesleft = 1;
18416 size_t res = iconv (cd_88591_to_utf8,
18417 &inptr, &inbytesleft,
18418 &outptr, &outbytesleft);
18419 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18421 iconv_close (cd_88591_to_utf8);
18424 #if 0 /* This bug could be worked around by the caller. */
18425 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18427 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18428 if (cd_88591_to_utf8 != (iconv_t)(-1))
18430 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18432 ICONV_CONST char *inptr = input;
18433 size_t inbytesleft = strlen (input);
18434 char *outptr = buf;
18435 size_t outbytesleft = sizeof (buf);
18436 size_t res = iconv (cd_88591_to_utf8,
18437 &inptr, &inbytesleft,
18438 &outptr, &outbytesleft);
18441 iconv_close (cd_88591_to_utf8);
18445 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18447 if (/* Try standardized names. */
18448 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18449 /* Try IRIX, OSF/1 names. */
18450 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18451 /* Try AIX names. */
18452 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18453 /* Try HP-UX names. */
18454 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18462 if ac_fn_c_try_run "$LINENO"; then :
18463 am_cv_func_iconv_works=yes
18465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18466 conftest.$ac_objext conftest.beam conftest.$ac_ext
18469 test "$am_cv_func_iconv_works" = no || break
18471 LIBS="$am_save_LIBS"
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18475 $as_echo "$am_cv_func_iconv_works" >&6; }
18476 case "$am_cv_func_iconv_works" in
18477 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18478 *) am_func_iconv=yes ;;
18481 am_func_iconv=no am_cv_lib_iconv=no
18483 if test "$am_func_iconv" = yes; then
18485 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18488 if test "$am_cv_lib_iconv" = yes; then
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18490 $as_echo_n "checking how to link with libiconv... " >&6; }
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18492 $as_echo "$LIBICONV" >&6; }
18494 CPPFLAGS="$am_save_CPPFLAGS"
18501 if test "$am_cv_func_iconv" = yes; then
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18503 $as_echo_n "checking for iconv declaration... " >&6; }
18504 if ${am_cv_proto_iconv+:} false; then :
18505 $as_echo_n "(cached) " >&6
18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18511 #include <stdlib.h>
18517 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
18518 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18531 if ac_fn_c_try_compile "$LINENO"; then :
18532 am_cv_proto_iconv_arg1=""
18534 am_cv_proto_iconv_arg1="const"
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537 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);"
18540 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18542 $am_cv_proto_iconv" >&5
18544 $am_cv_proto_iconv" >&6; }
18546 cat >>confdefs.h <<_ACEOF
18547 #define ICONV_CONST $am_cv_proto_iconv_arg1
18551 if test -n "$am_cv_proto_iconv_arg1"; then
18552 ICONV_CONST="const"
18560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561 /* end confdefs.h. */
18562 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
18571 if ac_fn_c_try_link "$LINENO"; then :
18573 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18576 rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18579 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
18581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18582 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18583 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18584 cat >>confdefs.h <<_ACEOF
18585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18592 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
18593 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
18594 argz_stringify argz_next __fsetlocking
18596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18598 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18599 cat >>confdefs.h <<_ACEOF
18600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18607 if test $ac_cv_func_uselocale = yes; then
18608 for ac_func in getlocalename_l
18610 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
18611 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
18612 cat >>confdefs.h <<_ACEOF
18613 #define HAVE_GETLOCALENAME_L 1
18621 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
18623 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
18629 cat >>confdefs.h <<_ACEOF
18630 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
18632 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
18634 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
18640 cat >>confdefs.h <<_ACEOF
18641 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
18647 for ac_prog in bison
18649 # Extract the first word of "$ac_prog", so it can be a program name with args.
18650 set dummy $ac_prog; ac_word=$2
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18652 $as_echo_n "checking for $ac_word... " >&6; }
18653 if ${ac_cv_prog_INTLBISON+:} false; then :
18654 $as_echo_n "(cached) " >&6
18656 if test -n "$INTLBISON"; then
18657 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
18659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18660 for as_dir in $PATH
18663 test -z "$as_dir" && as_dir=.
18664 for ac_exec_ext in '' $ac_executable_extensions; do
18665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18666 ac_cv_prog_INTLBISON="$ac_prog"
18667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18676 INTLBISON=$ac_cv_prog_INTLBISON
18677 if test -n "$INTLBISON"; then
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
18679 $as_echo "$INTLBISON" >&6; }
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18682 $as_echo "no" >&6; }
18686 test -n "$INTLBISON" && break
18689 if test -z "$INTLBISON"; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
18693 $as_echo_n "checking version of bison... " >&6; }
18694 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
18695 case $ac_prog_version in
18696 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
18697 2.[7-9]* | [3-9].*)
18698 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
18699 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
18702 $as_echo "$ac_prog_version" >&6; }
18704 if test $ac_verc_fail = yes; then
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18711 $as_echo_n "checking for long long int... " >&6; }
18712 if ${ac_cv_type_long_long_int+:} false; then :
18713 $as_echo_n "(cached) " >&6
18715 ac_cv_type_long_long_int=yes
18716 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18717 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18718 if test $ac_cv_type_long_long_int = yes; then
18719 if test "$cross_compiling" = yes; then :
18722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723 /* end confdefs.h. */
18724 #include <limits.h>
18727 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18728 # define LLONG_MAX (HALF - 1 + HALF)
18733 long long int n = 1;
18737 long long int m = n << i;
18740 if (LLONG_MAX / 2 < m)
18748 if ac_fn_c_try_run "$LINENO"; then :
18751 ac_cv_type_long_long_int=no
18753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754 conftest.$ac_objext conftest.beam conftest.$ac_ext
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18761 $as_echo "$ac_cv_type_long_long_int" >&6; }
18762 if test $ac_cv_type_long_long_int = yes; then
18764 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18770 $as_echo_n "checking for wchar_t... " >&6; }
18771 if ${gt_cv_c_wchar_t+:} false; then :
18772 $as_echo_n "(cached) " >&6
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776 #include <stddef.h>
18777 wchar_t foo = (wchar_t)'\0';
18786 if ac_fn_c_try_compile "$LINENO"; then :
18787 gt_cv_c_wchar_t=yes
18791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18794 $as_echo "$gt_cv_c_wchar_t" >&6; }
18795 if test $gt_cv_c_wchar_t = yes; then
18797 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18803 $as_echo_n "checking for wint_t... " >&6; }
18804 if ${gt_cv_c_wint_t+:} false; then :
18805 $as_echo_n "(cached) " >&6
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18810 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18812 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18813 before <wchar.h>. */
18814 #include <stddef.h>
18818 wint_t foo = (wchar_t)'\0';
18827 if ac_fn_c_try_compile "$LINENO"; then :
18832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18835 $as_echo "$gt_cv_c_wint_t" >&6; }
18836 if test $gt_cv_c_wint_t = yes; then
18838 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18846 $as_echo_n "checking for intmax_t... " >&6; }
18847 if ${gt_cv_c_intmax_t+:} false; then :
18848 $as_echo_n "(cached) " >&6
18850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h. */
18853 #include <stddef.h>
18854 #include <stdlib.h>
18855 #if HAVE_STDINT_H_WITH_UINTMAX
18856 #include <stdint.h>
18858 #if HAVE_INTTYPES_H_WITH_UINTMAX
18859 #include <inttypes.h>
18871 if ac_fn_c_try_compile "$LINENO"; then :
18872 gt_cv_c_intmax_t=yes
18874 gt_cv_c_intmax_t=no
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18879 $as_echo "$gt_cv_c_intmax_t" >&6; }
18880 if test $gt_cv_c_intmax_t = yes; then
18882 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18889 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18890 if ${gt_cv_func_printf_posix+:} false; then :
18891 $as_echo_n "(cached) " >&6
18894 if test "$cross_compiling" = yes; then :
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897 /* end confdefs.h. */
18899 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18905 $EGREP "notposix" >/dev/null 2>&1; then :
18906 gt_cv_func_printf_posix="guessing no"
18908 gt_cv_func_printf_posix="guessing yes"
18914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h. */
18918 #include <string.h>
18919 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18920 dollar expansion (possibly an autoconf bug). */
18921 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18922 static char buf[100];
18925 sprintf (buf, format, 33, 55);
18926 return (strcmp (buf, "55 33") != 0);
18929 if ac_fn_c_try_run "$LINENO"; then :
18930 gt_cv_func_printf_posix=yes
18932 gt_cv_func_printf_posix=no
18934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18935 conftest.$ac_objext conftest.beam conftest.$ac_ext
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18941 $as_echo "$gt_cv_func_printf_posix" >&6; }
18942 case $gt_cv_func_printf_posix in
18945 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
18952 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
18953 if ${ac_cv_gnu_library_2_1+:} false; then :
18954 $as_echo_n "(cached) " >&6
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18959 #include <features.h>
18960 #ifdef __GNU_LIBRARY__
18961 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18971 $EGREP "Lucky" >/dev/null 2>&1; then :
18972 ac_cv_gnu_library_2_1=yes
18974 ac_cv_gnu_library_2_1=no
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18982 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18984 GLIBC21="$ac_cv_gnu_library_2_1"
18988 for ac_header in stdint.h
18990 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_stdint_h" = xyes; then :
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_STDINT_H 1
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19001 $as_echo_n "checking for SIZE_MAX... " >&6; }
19002 if ${gl_cv_size_max+:} false; then :
19003 $as_echo_n "(cached) " >&6
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19010 #include <limits.h>
19012 #include <stdint.h>
19019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19020 $EGREP "Found it" >/dev/null 2>&1; then :
19025 if test -z "$gl_cv_size_max"; then
19026 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
19027 #include <limits.h>"; then :
19030 size_t_bits_minus_1=
19033 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
19039 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
19040 if test $fits_in_uint = 1; then
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043 #include <stddef.h>
19045 extern unsigned long foo;
19055 if ac_fn_c_try_compile "$LINENO"; then :
19058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 if test $fits_in_uint = 1; then
19061 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
19063 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
19066 gl_cv_size_max='((size_t)~(size_t)0)'
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
19072 $as_echo "$gl_cv_size_max" >&6; }
19073 if test "$gl_cv_size_max" != yes; then
19075 cat >>confdefs.h <<_ACEOF
19076 #define SIZE_MAX $gl_cv_size_max
19084 for ac_header in stdint.h
19086 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19087 if test "x$ac_cv_header_stdint_h" = xyes; then :
19088 cat >>confdefs.h <<_ACEOF
19089 #define HAVE_STDINT_H 1
19100 for ac_func in $ac_func_list
19102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19105 cat >>confdefs.h <<_ACEOF
19106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
19120 $as_echo_n "checking for working fcntl.h... " >&6; }
19121 if ${gl_cv_header_working_fcntl_h+:} false; then :
19122 $as_echo_n "(cached) " >&6
19124 if test "$cross_compiling" = yes; then :
19125 gl_cv_header_working_fcntl_h=cross-compiling
19127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19128 /* end confdefs.h. */
19129 #include <sys/types.h>
19130 #include <sys/stat.h>
19132 # include <unistd.h>
19133 #else /* on Windows with MSVC */
19135 # include <stdlib.h>
19136 # defined sleep(n) _sleep ((n) * 1000)
19140 #define O_NOATIME 0
19143 #define O_NOFOLLOW 0
19145 static int const constants[] =
19147 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
19148 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
19155 int result = !constants;
19158 static char const sym[] = "conftest.sym";
19159 if (symlink ("/dev/null", sym) != 0)
19163 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
19170 if (unlink (sym) != 0 || symlink (".", sym) != 0)
19174 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
19185 static char const file[] = "confdefs.h";
19186 int fd = open (file, O_RDONLY | O_NOATIME);
19192 if (fstat (fd, &st0) != 0)
19198 if (read (fd, &c, 1) != 1)
19202 if (close (fd) != 0)
19207 if (stat (file, &st1) != 0)
19210 if (st0.st_atime != st1.st_atime)
19222 if ac_fn_c_try_run "$LINENO"; then :
19223 gl_cv_header_working_fcntl_h=yes
19226 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19227 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19228 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19229 *) gl_cv_header_working_fcntl_h='no';;
19232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19233 conftest.$ac_objext conftest.beam conftest.$ac_ext
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
19238 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
19240 case $gl_cv_header_working_fcntl_h in #(
19241 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19245 cat >>confdefs.h <<_ACEOF
19246 #define HAVE_WORKING_O_NOATIME $ac_val
19250 case $gl_cv_header_working_fcntl_h in #(
19251 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19255 cat >>confdefs.h <<_ACEOF
19256 #define HAVE_WORKING_O_NOFOLLOW $ac_val
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19262 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19263 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19264 $as_echo_n "(cached) " >&6
19266 gt_save_LIBS="$LIBS"
19267 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19270 #include <CoreFoundation/CFPreferences.h>
19274 CFPreferencesCopyAppValue(NULL, NULL)
19279 if ac_fn_c_try_link "$LINENO"; then :
19280 gt_cv_func_CFPreferencesCopyAppValue=yes
19282 gt_cv_func_CFPreferencesCopyAppValue=no
19284 rm -f core conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS="$gt_save_LIBS"
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19289 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19290 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19292 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19296 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19297 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19298 $as_echo_n "(cached) " >&6
19300 gt_save_LIBS="$LIBS"
19301 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19303 /* end confdefs.h. */
19304 #include <CoreFoundation/CFLocale.h>
19308 CFLocaleCopyCurrent();
19313 if ac_fn_c_try_link "$LINENO"; then :
19314 gt_cv_func_CFLocaleCopyCurrent=yes
19316 gt_cv_func_CFLocaleCopyCurrent=no
19318 rm -f core conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320 LIBS="$gt_save_LIBS"
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19323 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19324 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19326 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19330 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19331 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19345 case "$enable_silent_rules" in
19346 yes) INTL_DEFAULT_VERBOSITY=0;;
19347 no) INTL_DEFAULT_VERBOSITY=1;;
19348 *) INTL_DEFAULT_VERBOSITY=1;;
19352 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19353 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19357 $as_echo "#define ptrdiff_t long" >>confdefs.h
19362 for ac_header in features.h stddef.h stdlib.h string.h
19364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19367 cat >>confdefs.h <<_ACEOF
19368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19375 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
19376 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
19378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19379 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19380 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19381 cat >>confdefs.h <<_ACEOF
19382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19389 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
19391 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
19397 cat >>confdefs.h <<_ACEOF
19398 #define HAVE_DECL__SNPRINTF $ac_have_decl
19400 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
19402 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
19408 cat >>confdefs.h <<_ACEOF
19409 #define HAVE_DECL__SNWPRINTF $ac_have_decl
19413 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
19415 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
19421 cat >>confdefs.h <<_ACEOF
19422 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
19426 case $gt_cv_func_printf_posix in
19427 *yes) HAVE_POSIX_PRINTF=1 ;;
19428 *) HAVE_POSIX_PRINTF=0 ;;
19431 if test "$ac_cv_func_asprintf" = yes; then
19437 if test "$ac_cv_func_snprintf" = yes; then
19443 if test "$ac_cv_func_newlocale" = yes; then
19449 if test "$ac_cv_func_wprintf" = yes; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19458 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19459 if ${am_cv_langinfo_codeset+:} false; then :
19460 $as_echo_n "(cached) " >&6
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #include <langinfo.h>
19468 char* cs = nl_langinfo(CODESET); return !cs;
19473 if ac_fn_c_try_link "$LINENO"; then :
19474 am_cv_langinfo_codeset=yes
19476 am_cv_langinfo_codeset=no
19478 rm -f core conftest.err conftest.$ac_objext \
19479 conftest$ac_exeext conftest.$ac_ext
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19483 $as_echo "$am_cv_langinfo_codeset" >&6; }
19484 if test $am_cv_langinfo_codeset = yes; then
19486 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19492 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19493 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19494 $as_echo_n "(cached) " >&6
19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497 /* end confdefs.h. */
19498 #include <locale.h>
19507 if ac_fn_c_try_link "$LINENO"; then :
19508 gt_cv_val_LC_MESSAGES=yes
19510 gt_cv_val_LC_MESSAGES=no
19512 rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19516 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19517 if test $gt_cv_val_LC_MESSAGES = yes; then
19519 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19524 if test "$enable_shared" = yes; then
19526 mingw* | cygwin*) is_woe32dll=yes ;;
19527 *) is_woe32dll=no ;;
19532 WOE32DLL=$is_woe32dll
19536 mingw* | cygwin*) is_woe32=yes ;;
19541 if test $WOE32 = yes; then
19542 if test -n "$ac_tool_prefix"; then
19543 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19544 set dummy ${ac_tool_prefix}windres; ac_word=$2
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19546 $as_echo_n "checking for $ac_word... " >&6; }
19547 if ${ac_cv_prog_WINDRES+:} false; then :
19548 $as_echo_n "(cached) " >&6
19550 if test -n "$WINDRES"; then
19551 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19554 for as_dir in $PATH
19557 test -z "$as_dir" && as_dir=.
19558 for ac_exec_ext in '' $ac_executable_extensions; do
19559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19560 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19570 WINDRES=$ac_cv_prog_WINDRES
19571 if test -n "$WINDRES"; then
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19573 $as_echo "$WINDRES" >&6; }
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19576 $as_echo "no" >&6; }
19581 if test -z "$ac_cv_prog_WINDRES"; then
19582 ac_ct_WINDRES=$WINDRES
19583 # Extract the first word of "windres", so it can be a program name with args.
19584 set dummy windres; ac_word=$2
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19586 $as_echo_n "checking for $ac_word... " >&6; }
19587 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19588 $as_echo_n "(cached) " >&6
19590 if test -n "$ac_ct_WINDRES"; then
19591 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594 for as_dir in $PATH
19597 test -z "$as_dir" && as_dir=.
19598 for ac_exec_ext in '' $ac_executable_extensions; do
19599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19600 ac_cv_prog_ac_ct_WINDRES="windres"
19601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19610 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19611 if test -n "$ac_ct_WINDRES"; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19613 $as_echo "$ac_ct_WINDRES" >&6; }
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616 $as_echo "no" >&6; }
19619 if test "x$ac_ct_WINDRES" = x; then
19622 case $cross_compiling:$ac_tool_warned in
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19626 ac_tool_warned=yes ;;
19628 WINDRES=$ac_ct_WINDRES
19631 WINDRES="$ac_cv_prog_WINDRES"
19637 hpux*) LTLIBC="" ;;
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19668 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19669 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19670 $as_echo_n "(cached) " >&6
19672 gt_save_LIBS="$LIBS"
19673 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19676 #include <CoreFoundation/CFPreferences.h>
19680 CFPreferencesCopyAppValue(NULL, NULL)
19685 if ac_fn_c_try_link "$LINENO"; then :
19686 gt_cv_func_CFPreferencesCopyAppValue=yes
19688 gt_cv_func_CFPreferencesCopyAppValue=no
19690 rm -f core conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19692 LIBS="$gt_save_LIBS"
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19695 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19696 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19698 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19702 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19703 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19704 $as_echo_n "(cached) " >&6
19706 gt_save_LIBS="$LIBS"
19707 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19710 #include <CoreFoundation/CFLocale.h>
19714 CFLocaleCopyCurrent();
19719 if ac_fn_c_try_link "$LINENO"; then :
19720 gt_cv_func_CFLocaleCopyCurrent=yes
19722 gt_cv_func_CFLocaleCopyCurrent=no
19724 rm -f core conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS="$gt_save_LIBS"
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19729 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19730 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19732 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19736 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19737 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19745 BUILD_INCLUDED_LIBINTL=no
19746 USE_INCLUDED_LIBINTL=no
19752 case " $gt_needs " in
19753 *" need-formatstring-macros "*) gt_api_version=3 ;;
19754 *" need-ngettext "*) gt_api_version=2 ;;
19755 *) gt_api_version=1 ;;
19757 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19758 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19760 if test "$USE_NLS" = "yes"; then
19761 gt_use_preinstalled_gnugettext=no
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19764 $as_echo_n "checking whether included gettext is requested... " >&6; }
19766 # Check whether --with-included-gettext was given.
19767 if test "${with_included_gettext+set}" = set; then :
19768 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19770 nls_cv_force_use_gnu_gettext=no
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19774 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19776 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19777 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19780 if test $gt_api_version -ge 3; then
19781 gt_revision_test_code='
19782 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19783 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19785 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19788 gt_revision_test_code=
19790 if test $gt_api_version -ge 2; then
19791 gt_expression_test_code=' + * ngettext ("", "", 0)'
19793 gt_expression_test_code=
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19797 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19798 if eval \${$gt_func_gnugettext_libc+:} false; then :
19799 $as_echo_n "(cached) " >&6
19801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h. */
19804 #include <libintl.h>
19805 $gt_revision_test_code
19806 extern int _nl_msg_cat_cntr;
19807 extern int *_nl_domain_bindings;
19813 bindtextdomain ("", "");
19814 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
19820 if ac_fn_c_try_link "$LINENO"; then :
19821 eval "$gt_func_gnugettext_libc=yes"
19823 eval "$gt_func_gnugettext_libc=no"
19825 rm -f core conftest.err conftest.$ac_objext \
19826 conftest$ac_exeext conftest.$ac_ext
19828 eval ac_res=\$$gt_func_gnugettext_libc
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19830 $as_echo "$ac_res" >&6; }
19832 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19843 acl_save_prefix="$prefix"
19844 prefix="$acl_final_prefix"
19845 acl_save_exec_prefix="$exec_prefix"
19846 exec_prefix="$acl_final_exec_prefix"
19848 eval additional_includedir=\"$includedir\"
19849 eval additional_libdir=\"$libdir\"
19851 exec_prefix="$acl_save_exec_prefix"
19852 prefix="$acl_save_prefix"
19855 # Check whether --with-libintl-prefix was given.
19856 if test "${with_libintl_prefix+set}" = set; then :
19857 withval=$with_libintl_prefix;
19858 if test "X$withval" = "Xno"; then
19861 if test "X$withval" = "X"; then
19863 acl_save_prefix="$prefix"
19864 prefix="$acl_final_prefix"
19865 acl_save_exec_prefix="$exec_prefix"
19866 exec_prefix="$acl_final_exec_prefix"
19868 eval additional_includedir=\"$includedir\"
19869 eval additional_libdir=\"$libdir\"
19871 exec_prefix="$acl_save_exec_prefix"
19872 prefix="$acl_save_prefix"
19875 additional_includedir="$withval/include"
19876 additional_libdir="$withval/$acl_libdirstem"
19877 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19878 && ! test -d "$withval/$acl_libdirstem"; then
19879 additional_libdir="$withval/$acl_libdirstem2"
19893 names_already_handled=
19894 names_next_round='intl '
19895 while test -n "$names_next_round"; do
19896 names_this_round="$names_next_round"
19898 for name in $names_this_round; do
19900 for n in $names_already_handled; do
19901 if test "$n" = "$name"; then
19902 already_handled=yes
19906 if test -z "$already_handled"; then
19907 names_already_handled="$names_already_handled $name"
19908 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19909 eval value=\"\$HAVE_LIB$uppername\"
19910 if test -n "$value"; then
19911 if test "$value" = yes; then
19912 eval value=\"\$LIB$uppername\"
19913 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19914 eval value=\"\$LTLIB$uppername\"
19915 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19924 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19925 if test -n "$acl_shlibext"; then
19926 shrext=".$acl_shlibext" # typically: shrext=.so
19930 if test $use_additional = yes; then
19931 dir="$additional_libdir"
19932 if test -n "$acl_shlibext"; then
19933 if test -f "$dir/$libname$shrext"; then
19935 found_so="$dir/$libname$shrext"
19937 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19938 ver=`(cd "$dir" && \
19939 for f in "$libname$shrext".*; do echo "$f"; done \
19940 | sed -e "s,^$libname$shrext\\\\.,," \
19941 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19942 | sed 1q ) 2>/dev/null`
19943 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19945 found_so="$dir/$libname$shrext.$ver"
19948 eval library_names=\"$acl_library_names_spec\"
19949 for f in $library_names; do
19950 if test -f "$dir/$f"; then
19959 if test "X$found_dir" = "X"; then
19960 if test -f "$dir/$libname.$acl_libext"; then
19962 found_a="$dir/$libname.$acl_libext"
19965 if test "X$found_dir" != "X"; then
19966 if test -f "$dir/$libname.la"; then
19967 found_la="$dir/$libname.la"
19971 if test "X$found_dir" = "X"; then
19972 for x in $LDFLAGS $LTLIBINTL; do
19974 acl_save_prefix="$prefix"
19975 prefix="$acl_final_prefix"
19976 acl_save_exec_prefix="$exec_prefix"
19977 exec_prefix="$acl_final_exec_prefix"
19979 exec_prefix="$acl_save_exec_prefix"
19980 prefix="$acl_save_prefix"
19984 dir=`echo "X$x" | sed -e 's/^X-L//'`
19985 if test -n "$acl_shlibext"; then
19986 if test -f "$dir/$libname$shrext"; then
19988 found_so="$dir/$libname$shrext"
19990 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19991 ver=`(cd "$dir" && \
19992 for f in "$libname$shrext".*; do echo "$f"; done \
19993 | sed -e "s,^$libname$shrext\\\\.,," \
19994 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19995 | sed 1q ) 2>/dev/null`
19996 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19998 found_so="$dir/$libname$shrext.$ver"
20001 eval library_names=\"$acl_library_names_spec\"
20002 for f in $library_names; do
20003 if test -f "$dir/$f"; then
20012 if test "X$found_dir" = "X"; then
20013 if test -f "$dir/$libname.$acl_libext"; then
20015 found_a="$dir/$libname.$acl_libext"
20018 if test "X$found_dir" != "X"; then
20019 if test -f "$dir/$libname.la"; then
20020 found_la="$dir/$libname.la"
20025 if test "X$found_dir" != "X"; then
20030 if test "X$found_dir" != "X"; then
20031 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20032 if test "X$found_so" != "X"; then
20033 if test "$enable_rpath" = no \
20034 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20035 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20039 for x in $ltrpathdirs; do
20040 if test "X$x" = "X$found_dir"; then
20045 if test -z "$haveit"; then
20046 ltrpathdirs="$ltrpathdirs $found_dir"
20048 if test "$acl_hardcode_direct" = yes; then
20049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20051 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20052 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20054 for x in $rpathdirs; do
20055 if test "X$x" = "X$found_dir"; then
20060 if test -z "$haveit"; then
20061 rpathdirs="$rpathdirs $found_dir"
20065 for x in $LDFLAGS $LIBINTL; do
20067 acl_save_prefix="$prefix"
20068 prefix="$acl_final_prefix"
20069 acl_save_exec_prefix="$exec_prefix"
20070 exec_prefix="$acl_final_exec_prefix"
20072 exec_prefix="$acl_save_exec_prefix"
20073 prefix="$acl_save_prefix"
20075 if test "X$x" = "X-L$found_dir"; then
20080 if test -z "$haveit"; then
20081 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20083 if test "$acl_hardcode_minus_L" != no; then
20084 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20086 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20092 if test "X$found_a" != "X"; then
20093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20095 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20098 additional_includedir=
20099 case "$found_dir" in
20100 */$acl_libdirstem | */$acl_libdirstem/)
20101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20102 if test "$name" = 'intl'; then
20103 LIBINTL_PREFIX="$basedir"
20105 additional_includedir="$basedir/include"
20107 */$acl_libdirstem2 | */$acl_libdirstem2/)
20108 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20109 if test "$name" = 'intl'; then
20110 LIBINTL_PREFIX="$basedir"
20112 additional_includedir="$basedir/include"
20115 if test "X$additional_includedir" != "X"; then
20116 if test "X$additional_includedir" != "X/usr/include"; then
20118 if test "X$additional_includedir" = "X/usr/local/include"; then
20119 if test -n "$GCC"; then
20121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20125 if test -z "$haveit"; then
20126 for x in $CPPFLAGS $INCINTL; do
20128 acl_save_prefix="$prefix"
20129 prefix="$acl_final_prefix"
20130 acl_save_exec_prefix="$exec_prefix"
20131 exec_prefix="$acl_final_exec_prefix"
20133 exec_prefix="$acl_save_exec_prefix"
20134 prefix="$acl_save_prefix"
20136 if test "X$x" = "X-I$additional_includedir"; then
20141 if test -z "$haveit"; then
20142 if test -d "$additional_includedir"; then
20143 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20149 if test -n "$found_la"; then
20150 save_libdir="$libdir"
20151 case "$found_la" in
20152 */* | *\\*) . "$found_la" ;;
20153 *) . "./$found_la" ;;
20155 libdir="$save_libdir"
20156 for dep in $dependency_libs; do
20159 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20160 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20161 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20163 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20164 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20165 if test -n "$GCC"; then
20167 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20171 if test -z "$haveit"; then
20173 for x in $LDFLAGS $LIBINTL; do
20175 acl_save_prefix="$prefix"
20176 prefix="$acl_final_prefix"
20177 acl_save_exec_prefix="$exec_prefix"
20178 exec_prefix="$acl_final_exec_prefix"
20180 exec_prefix="$acl_save_exec_prefix"
20181 prefix="$acl_save_prefix"
20183 if test "X$x" = "X-L$additional_libdir"; then
20188 if test -z "$haveit"; then
20189 if test -d "$additional_libdir"; then
20190 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20194 for x in $LDFLAGS $LTLIBINTL; do
20196 acl_save_prefix="$prefix"
20197 prefix="$acl_final_prefix"
20198 acl_save_exec_prefix="$exec_prefix"
20199 exec_prefix="$acl_final_exec_prefix"
20201 exec_prefix="$acl_save_exec_prefix"
20202 prefix="$acl_save_prefix"
20204 if test "X$x" = "X-L$additional_libdir"; then
20209 if test -z "$haveit"; then
20210 if test -d "$additional_libdir"; then
20211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20218 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20219 if test "$enable_rpath" != no; then
20221 for x in $rpathdirs; do
20222 if test "X$x" = "X$dir"; then
20227 if test -z "$haveit"; then
20228 rpathdirs="$rpathdirs $dir"
20231 for x in $ltrpathdirs; do
20232 if test "X$x" = "X$dir"; then
20237 if test -z "$haveit"; then
20238 ltrpathdirs="$ltrpathdirs $dir"
20243 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20246 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20249 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20250 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20256 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20257 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20263 if test "X$rpathdirs" != "X"; then
20264 if test -n "$acl_hardcode_libdir_separator"; then
20266 for found_dir in $rpathdirs; do
20267 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20269 acl_save_libdir="$libdir"
20271 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20272 libdir="$acl_save_libdir"
20273 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20275 for found_dir in $rpathdirs; do
20276 acl_save_libdir="$libdir"
20277 libdir="$found_dir"
20278 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20279 libdir="$acl_save_libdir"
20280 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20284 if test "X$ltrpathdirs" != "X"; then
20285 for found_dir in $ltrpathdirs; do
20286 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20296 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20297 if eval \${$gt_func_gnugettext_libintl+:} false; then :
20298 $as_echo_n "(cached) " >&6
20300 gt_save_CPPFLAGS="$CPPFLAGS"
20301 CPPFLAGS="$CPPFLAGS $INCINTL"
20302 gt_save_LIBS="$LIBS"
20303 LIBS="$LIBS $LIBINTL"
20304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h. */
20307 #include <libintl.h>
20308 $gt_revision_test_code
20309 extern int _nl_msg_cat_cntr;
20314 const char *_nl_expand_alias (const char *);
20320 bindtextdomain ("", "");
20321 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20327 if ac_fn_c_try_link "$LINENO"; then :
20328 eval "$gt_func_gnugettext_libintl=yes"
20330 eval "$gt_func_gnugettext_libintl=no"
20332 rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20334 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20335 LIBS="$LIBS $LIBICONV"
20336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h. */
20339 #include <libintl.h>
20340 $gt_revision_test_code
20341 extern int _nl_msg_cat_cntr;
20346 const char *_nl_expand_alias (const char *);
20352 bindtextdomain ("", "");
20353 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20359 if ac_fn_c_try_link "$LINENO"; then :
20360 LIBINTL="$LIBINTL $LIBICONV"
20361 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20362 eval "$gt_func_gnugettext_libintl=yes"
20365 rm -f core conftest.err conftest.$ac_objext \
20366 conftest$ac_exeext conftest.$ac_ext
20368 CPPFLAGS="$gt_save_CPPFLAGS"
20369 LIBS="$gt_save_LIBS"
20371 eval ac_res=\$$gt_func_gnugettext_libintl
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20373 $as_echo "$ac_res" >&6; }
20376 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20377 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20378 && test "$PACKAGE" != gettext-runtime \
20379 && test "$PACKAGE" != gettext-tools; }; then
20380 gt_use_preinstalled_gnugettext=yes
20388 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20389 nls_cv_use_gnu_gettext=yes
20393 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20394 BUILD_INCLUDED_LIBINTL=yes
20395 USE_INCLUDED_LIBINTL=yes
20396 LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
20397 LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
20398 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20408 if test -n "$INTL_MACOSX_LIBS"; then
20409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20411 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20412 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20416 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20417 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20419 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20427 $as_echo_n "checking whether to use NLS... " >&6; }
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20429 $as_echo "$USE_NLS" >&6; }
20430 if test "$USE_NLS" = "yes"; then
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20432 $as_echo_n "checking where the gettext function comes from... " >&6; }
20433 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20434 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20435 gt_source="external libintl"
20440 gt_source="included intl directory"
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20443 $as_echo "$gt_source" >&6; }
20446 if test "$USE_NLS" = "yes"; then
20448 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20449 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20451 $as_echo_n "checking how to link with libintl... " >&6; }
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20453 $as_echo "$LIBINTL" >&6; }
20455 for element in $INCINTL; do
20457 for x in $CPPFLAGS; do
20459 acl_save_prefix="$prefix"
20460 prefix="$acl_final_prefix"
20461 acl_save_exec_prefix="$exec_prefix"
20462 exec_prefix="$acl_final_exec_prefix"
20464 exec_prefix="$acl_save_exec_prefix"
20465 prefix="$acl_save_prefix"
20467 if test "X$x" = "X$element"; then
20472 if test -z "$haveit"; then
20473 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20480 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20483 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20491 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20492 BUILD_INCLUDED_LIBINTL=yes
20499 nls_cv_header_intl=
20500 nls_cv_header_libgt=
20512 if test "$USE_INCLUDED_LIBINTL" = yes; then
20513 INTLOBJS="\$(GETTOBJS)"
20517 INTL_LIBTOOL_SUFFIX_PREFIX=l
20521 INTLLIBS="$LIBINTL"
20534 LIBC_FATAL_STDERR_=1
20535 export LIBC_FATAL_STDERR_
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
20541 $as_echo_n "checking whether to use C++... " >&6; }
20542 # Check whether --enable-c++ was given.
20543 if test "${enable_c__+set}" = set; then :
20544 enableval=$enable_c__; CXX_CHOICE="$enableval"
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
20550 $as_echo "$CXX_CHOICE" >&6; }
20556 GNULIB_CALLOC_POSIX=0;
20557 GNULIB_CANONICALIZE_FILE_NAME=0;
20558 GNULIB_GETLOADAVG=0;
20559 GNULIB_GETSUBOPT=0;
20561 GNULIB_MALLOC_POSIX=0;
20565 GNULIB_MKOSTEMPS=0;
20568 GNULIB_POSIX_OPENPT=0;
20570 GNULIB_PTSNAME_R=0;
20575 GNULIB_REALLOC_POSIX=0;
20578 GNULIB_SECURE_GETENV=0;
20583 GNULIB_SYSTEM_POSIX=0;
20589 HAVE_CANONICALIZE_FILE_NAME=1;
20590 HAVE_DECL_GETLOADAVG=1;
20598 HAVE_POSIX_OPENPT=1;
20606 HAVE_SECURE_GETENV=1;
20608 HAVE_DECL_SETENV=1;
20612 HAVE_STRUCT_RANDOM_DATA=1;
20613 HAVE_SYS_LOADAVG_H=0;
20615 HAVE_DECL_UNSETENV=1;
20617 REPLACE_CANONICALIZE_FILE_NAME=0;
20622 REPLACE_PTSNAME_R=0;
20625 REPLACE_RANDOM_R=0;
20627 REPLACE_REALPATH=0;
20630 REPLACE_UNSETENV=0;
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20642 $as_echo_n "checking whether // is distinct from /... " >&6; }
20643 if ${gl_cv_double_slash_root+:} false; then :
20644 $as_echo_n "(cached) " >&6
20646 if test x"$cross_compiling" = xyes ; then
20647 # When cross-compiling, there is no way to tell whether // is special
20648 # short of a list of hosts. However, the only known hosts to date
20649 # that have a distinct // are Apollo DomainOS (too old to port to),
20650 # Cygwin, and z/OS. If anyone knows of another system for which // has
20651 # special semantics and is distinct from /, please report it to
20652 # <bug-gnulib@gnu.org>.
20654 *-cygwin | i370-ibm-openedition)
20655 gl_cv_double_slash_root=yes ;;
20657 # Be optimistic and assume that / and // are the same when we
20659 gl_cv_double_slash_root='unknown, assuming no' ;;
20662 set x `ls -di / // 2>/dev/null`
20663 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20664 gl_cv_double_slash_root=no
20666 gl_cv_double_slash_root=yes
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20671 $as_echo "$gl_cv_double_slash_root" >&6; }
20672 if test "$gl_cv_double_slash_root" = yes; then
20674 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
20683 $as_echo_n "checking whether realpath works... " >&6; }
20684 if ${gl_cv_func_realpath_works+:} false; then :
20685 $as_echo_n "(cached) " >&6
20690 if test "$cross_compiling" = yes; then :
20692 # Guess yes on glibc systems.
20693 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
20694 # If we don't know, assume the worst.
20695 *) gl_cv_func_realpath_works="guessing no" ;;
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20704 #include <stdlib.h>
20705 #if defined __MACH__ && defined __APPLE__
20706 /* Avoid a crash on Mac OS X. */
20707 #include <mach/mach.h>
20708 #include <mach/mach_error.h>
20709 #include <mach/thread_status.h>
20710 #include <mach/exception.h>
20711 #include <mach/task.h>
20712 #include <pthread.h>
20713 /* The exception port on which our thread listens. */
20714 static mach_port_t our_exception_port;
20715 /* The main function of the thread listening for exceptions of type
20718 mach_exception_thread (void *arg)
20720 /* Buffer for a message to be received. */
20722 mach_msg_header_t head;
20723 mach_msg_body_t msgh_body;
20726 mach_msg_return_t retval;
20727 /* Wait for a message on the exception port. */
20728 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
20729 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
20730 if (retval != MACH_MSG_SUCCESS)
20735 nocrash_init (void)
20737 mach_port_t self = mach_task_self ();
20738 /* Allocate a port on which the thread shall listen for exceptions. */
20739 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
20741 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
20742 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
20743 MACH_MSG_TYPE_MAKE_SEND)
20745 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
20747 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20748 /* Create the thread listening on the exception port. */
20749 pthread_attr_t attr;
20751 if (pthread_attr_init (&attr) == 0
20752 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20753 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20754 pthread_attr_destroy (&attr);
20755 /* Replace the exception port info for these exceptions with our own.
20756 Note that we replace the exception port for the entire task, not only
20757 for a particular thread. This has the effect that when our exception
20758 port gets the message, the thread specific exception port has already
20759 been asked, and we don't need to bother about it.
20760 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
20761 task_set_exception_ports (self, mask, our_exception_port,
20762 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20767 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20768 /* Avoid a crash on native Windows. */
20769 #define WIN32_LEAN_AND_MEAN
20770 #include <windows.h>
20771 #include <winerror.h>
20773 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
20775 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
20777 case EXCEPTION_ACCESS_VIOLATION:
20778 case EXCEPTION_IN_PAGE_ERROR:
20779 case EXCEPTION_STACK_OVERFLOW:
20780 case EXCEPTION_GUARD_PAGE:
20781 case EXCEPTION_PRIV_INSTRUCTION:
20782 case EXCEPTION_ILLEGAL_INSTRUCTION:
20783 case EXCEPTION_DATATYPE_MISALIGNMENT:
20784 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
20785 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
20788 return EXCEPTION_CONTINUE_SEARCH;
20791 nocrash_init (void)
20793 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
20796 /* Avoid a crash on POSIX systems. */
20797 #include <signal.h>
20798 /* A POSIX signal handler. */
20800 exception_handler (int sig)
20805 nocrash_init (void)
20808 signal (SIGSEGV, exception_handler);
20811 signal (SIGBUS, exception_handler);
20816 #include <stdlib.h>
20817 #include <string.h>
20825 char *name = realpath ("conftest.a", NULL);
20826 if (!(name && *name == '/'))
20830 char *name = realpath ("conftest.b/../conftest.a", NULL);
20835 char *name = realpath ("conftest.a/", NULL);
20840 char *name1 = realpath (".", NULL);
20841 char *name2 = realpath ("conftest.d//./..", NULL);
20842 if (strcmp (name1, name2) != 0)
20852 if ac_fn_c_try_run "$LINENO"; then :
20853 gl_cv_func_realpath_works=yes
20855 gl_cv_func_realpath_works=no
20857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20858 conftest.$ac_objext conftest.beam conftest.$ac_ext
20861 rm -rf conftest.a conftest.d
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
20865 $as_echo "$gl_cv_func_realpath_works" >&6; }
20866 case "$gl_cv_func_realpath_works" in
20869 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
20891 GNULIB_EUIDACCESS=0;
20892 GNULIB_FACCESSAT=0;
20895 GNULIB_FDATASYNC=0;
20897 GNULIB_FTRUNCATE=0;
20899 GNULIB_GETDOMAINNAME=0;
20900 GNULIB_GETDTABLESIZE=0;
20901 GNULIB_GETGROUPS=0;
20902 GNULIB_GETHOSTNAME=0;
20904 GNULIB_GETLOGIN_R=0;
20905 GNULIB_GETPAGESIZE=0;
20906 GNULIB_GETUSERSHELL=0;
20907 GNULIB_GROUP_MEMBER=0;
20919 GNULIB_READLINKAT=0;
20921 GNULIB_SETHOSTNAME=0;
20924 GNULIB_SYMLINKAT=0;
20925 GNULIB_TTYNAME_R=0;
20926 GNULIB_UNISTD_H_NONBLOCKING=0;
20927 GNULIB_UNISTD_H_SIGPIPE=0;
20942 HAVE_GETDTABLESIZE=1;
20944 HAVE_GETHOSTNAME=1;
20946 HAVE_GETPAGESIZE=1;
20947 HAVE_GROUP_MEMBER=1;
20957 HAVE_SETHOSTNAME=1;
20963 HAVE_DECL_ENVIRON=1;
20964 HAVE_DECL_FCHDIR=1;
20965 HAVE_DECL_FDATASYNC=1;
20966 HAVE_DECL_GETDOMAINNAME=1;
20967 HAVE_DECL_GETLOGIN_R=1;
20968 HAVE_DECL_GETPAGESIZE=1;
20969 HAVE_DECL_GETUSERSHELL=1;
20970 HAVE_DECL_SETHOSTNAME=1;
20971 HAVE_DECL_TTYNAME_R=1;
20973 HAVE_SYS_PARAM_H=0;
20978 REPLACE_FCHOWNAT=0;
20979 REPLACE_FTRUNCATE=0;
20981 REPLACE_GETDOMAINNAME=0;
20982 REPLACE_GETDTABLESIZE=0;
20983 REPLACE_GETLOGIN_R=0;
20984 REPLACE_GETGROUPS=0;
20985 REPLACE_GETPAGESIZE=0;
20994 REPLACE_READLINK=0;
20995 REPLACE_READLINKAT=0;
20999 REPLACE_SYMLINKAT=0;
21000 REPLACE_TTYNAME_R=0;
21002 REPLACE_UNLINKAT=0;
21005 UNISTD_H_HAVE_WINSOCK2_H=0;
21006 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
21017 $as_echo_n "checking if environ is properly declared... " >&6; }
21018 if ${gt_cv_var_environ_declaration+:} false; then :
21019 $as_echo_n "(cached) " >&6
21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21025 #include <unistd.h>
21027 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
21028 #include <stdlib.h>
21030 extern struct { int foo; } environ;
21039 if ac_fn_c_try_compile "$LINENO"; then :
21040 gt_cv_var_environ_declaration=no
21042 gt_cv_var_environ_declaration=yes
21044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
21048 $as_echo "$gt_cv_var_environ_declaration" >&6; }
21049 if test $gt_cv_var_environ_declaration = yes; then
21051 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
21056 if test $gt_cv_var_environ_declaration != yes; then
21057 HAVE_DECL_ENVIRON=0
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
21063 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
21064 if ${gl_cv_have_include_next+:} false; then :
21065 $as_echo_n "(cached) " >&6
21067 rm -rf conftestd1a conftestd1b conftestd2
21068 mkdir conftestd1a conftestd1b conftestd2
21069 cat <<EOF > conftestd1a/conftest.h
21070 #define DEFINED_IN_CONFTESTD1
21071 #include_next <conftest.h>
21072 #ifdef DEFINED_IN_CONFTESTD2
21075 #error "include_next doesn't work"
21078 cat <<EOF > conftestd1b/conftest.h
21079 #define DEFINED_IN_CONFTESTD1
21081 #include_next <conftest.h>
21082 #ifdef DEFINED_IN_CONFTESTD2
21085 #error "include_next doesn't work"
21088 cat <<EOF > conftestd2/conftest.h
21089 #ifndef DEFINED_IN_CONFTESTD1
21090 #error "include_next test doesn't work"
21092 #define DEFINED_IN_CONFTESTD2
21094 gl_save_CPPFLAGS="$CPPFLAGS"
21095 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
21096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21097 /* end confdefs.h. */
21098 #include <conftest.h>
21100 if ac_fn_c_try_compile "$LINENO"; then :
21101 gl_cv_have_include_next=yes
21103 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
21104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21105 /* end confdefs.h. */
21106 #include <conftest.h>
21108 if ac_fn_c_try_compile "$LINENO"; then :
21109 gl_cv_have_include_next=buggy
21111 gl_cv_have_include_next=no
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 CPPFLAGS="$gl_save_CPPFLAGS"
21118 rm -rf conftestd1a conftestd1b conftestd2
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
21122 $as_echo "$gl_cv_have_include_next" >&6; }
21123 PRAGMA_SYSTEM_HEADER=
21124 if test $gl_cv_have_include_next = yes; then
21125 INCLUDE_NEXT=include_next
21126 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
21127 if test -n "$GCC"; then
21128 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
21131 if test $gl_cv_have_include_next = buggy; then
21132 INCLUDE_NEXT=include
21133 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
21135 INCLUDE_NEXT=include
21136 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
21143 $as_echo_n "checking whether system header files limit the line length... " >&6; }
21144 if ${gl_cv_pragma_columns+:} false; then :
21145 $as_echo_n "(cached) " >&6
21147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21148 /* end confdefs.h. */
21155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21156 $EGREP "choke me" >/dev/null 2>&1; then :
21157 gl_cv_pragma_columns=yes
21159 gl_cv_pragma_columns=no
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
21166 $as_echo "$gl_cv_pragma_columns" >&6; }
21167 if test $gl_cv_pragma_columns = yes; then
21168 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
21177 $as_echo_n "checking for complete errno.h... " >&6; }
21178 if ${gl_cv_header_errno_h_complete+:} false; then :
21179 $as_echo_n "(cached) " >&6
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21183 /* end confdefs.h. */
21186 #if !defined ETXTBSY
21189 #if !defined ENOMSG
21195 #if !defined ENOLINK
21198 #if !defined EPROTO
21201 #if !defined EMULTIHOP
21204 #if !defined EBADMSG
21207 #if !defined EOVERFLOW
21210 #if !defined ENOTSUP
21213 #if !defined ENETRESET
21216 #if !defined ECONNABORTED
21219 #if !defined ESTALE
21222 #if !defined EDQUOT
21225 #if !defined ECANCELED
21228 #if !defined EOWNERDEAD
21231 #if !defined ENOTRECOVERABLE
21234 #if !defined EILSEQ
21239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21240 $EGREP "booboo" >/dev/null 2>&1; then :
21241 gl_cv_header_errno_h_complete=no
21243 gl_cv_header_errno_h_complete=yes
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
21250 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
21251 if test $gl_cv_header_errno_h_complete = yes; then
21262 if test $gl_cv_have_include_next = yes; then
21263 gl_cv_next_errno_h='<'errno.h'>'
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
21266 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
21267 if ${gl_cv_next_errno_h+:} false; then :
21268 $as_echo_n "(cached) " >&6
21273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h. */
21278 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21279 *) gl_absname_cpp="$ac_cpp" ;;
21284 gl_dirsep_regex='[/\\]'
21287 gl_dirsep_regex='\/'
21290 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21291 gl_header_literal_regex=`echo 'errno.h' \
21292 | sed -e "$gl_make_literal_regex_sed"`
21293 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21294 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21300 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21301 sed -n "$gl_absolute_header_sed"`
21303 gl_header=$gl_cv_absolute_errno_h
21304 gl_cv_next_errno_h='"'$gl_header'"'
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
21309 $as_echo "$gl_cv_next_errno_h" >&6; }
21311 NEXT_ERRNO_H=$gl_cv_next_errno_h
21313 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21315 gl_next_as_first_directive='<'errno.h'>'
21317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21318 gl_next_as_first_directive=$gl_cv_next_errno_h
21320 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
21328 if test -n "$ERRNO_H"; then
21329 GL_GENERATE_ERRNO_H_TRUE=
21330 GL_GENERATE_ERRNO_H_FALSE='#'
21332 GL_GENERATE_ERRNO_H_TRUE='#'
21333 GL_GENERATE_ERRNO_H_FALSE=
21337 if test -n "$ERRNO_H"; then
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
21339 $as_echo_n "checking for EMULTIHOP value... " >&6; }
21340 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
21341 $as_echo_n "(cached) " >&6
21344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21354 $EGREP "yes" >/dev/null 2>&1; then :
21355 gl_cv_header_errno_h_EMULTIHOP=yes
21357 gl_cv_header_errno_h_EMULTIHOP=no
21361 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
21362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21365 #define _XOPEN_SOURCE_EXTENDED 1
21372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21373 $EGREP "yes" >/dev/null 2>&1; then :
21374 gl_cv_header_errno_h_EMULTIHOP=hidden
21378 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
21379 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
21380 #define _XOPEN_SOURCE_EXTENDED 1
21382 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21384 #include <stdlib.h>
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
21394 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
21395 case $gl_cv_header_errno_h_EMULTIHOP in
21397 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
21400 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
21408 if test -n "$ERRNO_H"; then
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
21410 $as_echo_n "checking for ENOLINK value... " >&6; }
21411 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
21412 $as_echo_n "(cached) " >&6
21415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21425 $EGREP "yes" >/dev/null 2>&1; then :
21426 gl_cv_header_errno_h_ENOLINK=yes
21428 gl_cv_header_errno_h_ENOLINK=no
21432 if test $gl_cv_header_errno_h_ENOLINK = no; then
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21436 #define _XOPEN_SOURCE_EXTENDED 1
21443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21444 $EGREP "yes" >/dev/null 2>&1; then :
21445 gl_cv_header_errno_h_ENOLINK=hidden
21449 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
21450 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
21451 #define _XOPEN_SOURCE_EXTENDED 1
21453 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21455 #include <stdlib.h>
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
21465 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
21466 case $gl_cv_header_errno_h_ENOLINK in
21468 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
21471 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
21479 if test -n "$ERRNO_H"; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
21481 $as_echo_n "checking for EOVERFLOW value... " >&6; }
21482 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
21483 $as_echo_n "(cached) " >&6
21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h. */
21495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21496 $EGREP "yes" >/dev/null 2>&1; then :
21497 gl_cv_header_errno_h_EOVERFLOW=yes
21499 gl_cv_header_errno_h_EOVERFLOW=no
21503 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21507 #define _XOPEN_SOURCE_EXTENDED 1
21514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21515 $EGREP "yes" >/dev/null 2>&1; then :
21516 gl_cv_header_errno_h_EOVERFLOW=hidden
21520 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21521 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
21522 #define _XOPEN_SOURCE_EXTENDED 1
21524 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21526 #include <stdlib.h>
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
21536 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
21537 case $gl_cv_header_errno_h_EOVERFLOW in
21539 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
21542 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
21550 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21551 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21557 cat >>confdefs.h <<_ACEOF
21558 #define HAVE_DECL_STRERROR_R $ac_have_decl
21561 for ac_func in strerror_r
21563 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21564 if test "x$ac_cv_func_strerror_r" = xyes; then :
21565 cat >>confdefs.h <<_ACEOF
21566 #define HAVE_STRERROR_R 1
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21573 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21574 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21575 $as_echo_n "(cached) " >&6
21578 ac_cv_func_strerror_r_char_p=no
21579 if test $ac_cv_have_decl_strerror_r = yes; then
21580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581 /* end confdefs.h. */
21582 $ac_includes_default
21588 char x = *strerror_r (0, buf, sizeof buf);
21589 char *p = strerror_r (0, buf, sizeof buf);
21596 if ac_fn_c_try_compile "$LINENO"; then :
21597 ac_cv_func_strerror_r_char_p=yes
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 # strerror_r is not declared. Choose between
21602 # systems that have relatively inaccessible declarations for the
21603 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21604 # former has a strerror_r that returns char*, while the latter
21605 # has a strerror_r that returns `int'.
21606 # This test should segfault on the DEC system.
21607 if test "$cross_compiling" = yes; then :
21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21612 $ac_includes_default
21613 extern char *strerror_r ();
21618 char x = *strerror_r (0, buf, sizeof buf);
21619 return ! isalpha (x);
21624 if ac_fn_c_try_run "$LINENO"; then :
21625 ac_cv_func_strerror_r_char_p=yes
21627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21628 conftest.$ac_objext conftest.beam conftest.$ac_ext
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21635 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21636 if test $ac_cv_func_strerror_r_char_p = yes; then
21638 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21643 XGETTEXT_EXTRA_OPTIONS=
21660 if test $gl_cv_have_include_next = yes; then
21661 gl_cv_next_getopt_h='<'getopt.h'>'
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
21664 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
21665 if ${gl_cv_next_getopt_h+:} false; then :
21666 $as_echo_n "(cached) " >&6
21669 if test $ac_cv_header_getopt_h = yes; then
21674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21675 /* end confdefs.h. */
21676 #include <getopt.h>
21679 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21680 *) gl_absname_cpp="$ac_cpp" ;;
21685 gl_dirsep_regex='[/\\]'
21688 gl_dirsep_regex='\/'
21691 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21692 gl_header_literal_regex=`echo 'getopt.h' \
21693 | sed -e "$gl_make_literal_regex_sed"`
21694 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21695 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21701 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21702 sed -n "$gl_absolute_header_sed"`
21704 gl_header=$gl_cv_absolute_getopt_h
21705 gl_cv_next_getopt_h='"'$gl_header'"'
21707 gl_cv_next_getopt_h='<'getopt.h'>'
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
21713 $as_echo "$gl_cv_next_getopt_h" >&6; }
21715 NEXT_GETOPT_H=$gl_cv_next_getopt_h
21717 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21719 gl_next_as_first_directive='<'getopt.h'>'
21721 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21722 gl_next_as_first_directive=$gl_cv_next_getopt_h
21724 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
21729 if test $ac_cv_header_getopt_h = yes; then
21738 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21739 for ac_header in getopt.h
21741 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
21742 if test "x$ac_cv_header_getopt_h" = xyes; then :
21743 cat >>confdefs.h <<_ACEOF
21744 #define HAVE_GETOPT_H 1
21748 gl_replace_getopt=yes
21755 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21756 for ac_func in getopt_long_only
21758 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21759 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
21760 cat >>confdefs.h <<_ACEOF
21761 #define HAVE_GETOPT_LONG_ONLY 1
21765 gl_replace_getopt=yes
21771 if test -z "$gl_replace_getopt"; then
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21773 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21774 if ${gl_cv_func_getopt_posix+:} false; then :
21775 $as_echo_n "(cached) " >&6
21778 if test $cross_compiling = no; then
21779 if test "$cross_compiling" = yes; then :
21780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21782 as_fn_error $? "cannot run test program while cross compiling
21783 See \`config.log' for more details" "$LINENO" 5; }
21785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21786 /* end confdefs.h. */
21788 #include <unistd.h>
21789 #include <stdlib.h>
21790 #include <string.h>
21795 static char program[] = "program";
21796 static char a[] = "-a";
21797 static char foo[] = "foo";
21798 static char bar[] = "bar";
21799 char *argv[] = { program, a, foo, bar, NULL };
21802 c = getopt (4, argv, "ab");
21805 c = getopt (4, argv, "ab");
21808 if (!(optind == 2))
21814 if ac_fn_c_try_run "$LINENO"; then :
21815 gl_cv_func_getopt_posix=maybe
21817 gl_cv_func_getopt_posix=no
21819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21820 conftest.$ac_objext conftest.beam conftest.$ac_ext
21823 if test $gl_cv_func_getopt_posix = maybe; then
21824 if test "$cross_compiling" = yes; then :
21825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21827 as_fn_error $? "cannot run test program while cross compiling
21828 See \`config.log' for more details" "$LINENO" 5; }
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21833 #include <unistd.h>
21834 #include <stdlib.h>
21835 #include <string.h>
21840 static char program[] = "program";
21841 static char donald[] = "donald";
21842 static char p[] = "-p";
21843 static char billy[] = "billy";
21844 static char duck[] = "duck";
21845 static char a[] = "-a";
21846 static char bar[] = "bar";
21847 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
21850 c = getopt (7, argv, "+abp:q:");
21853 if (!(strcmp (argv[0], "program") == 0))
21855 if (!(strcmp (argv[1], "donald") == 0))
21857 if (!(strcmp (argv[2], "-p") == 0))
21859 if (!(strcmp (argv[3], "billy") == 0))
21861 if (!(strcmp (argv[4], "duck") == 0))
21863 if (!(strcmp (argv[5], "-a") == 0))
21865 if (!(strcmp (argv[6], "bar") == 0))
21867 if (!(optind == 1))
21873 if ac_fn_c_try_run "$LINENO"; then :
21874 gl_cv_func_getopt_posix=maybe
21876 gl_cv_func_getopt_posix=no
21878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21879 conftest.$ac_objext conftest.beam conftest.$ac_ext
21883 if test $gl_cv_func_getopt_posix = maybe; then
21884 if test "$cross_compiling" = yes; then :
21885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21887 as_fn_error $? "cannot run test program while cross compiling
21888 See \`config.log' for more details" "$LINENO" 5; }
21890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21891 /* end confdefs.h. */
21893 #include <unistd.h>
21894 #include <stdlib.h>
21895 #include <string.h>
21900 static char program[] = "program";
21901 static char ab[] = "-ab";
21902 char *argv[3] = { program, ab, NULL };
21903 if (getopt (2, argv, "ab:") != 'a')
21905 if (getopt (2, argv, "ab:") != '?')
21915 if ac_fn_c_try_run "$LINENO"; then :
21916 gl_cv_func_getopt_posix=yes
21918 gl_cv_func_getopt_posix=no
21920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21921 conftest.$ac_objext conftest.beam conftest.$ac_ext
21927 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
21928 *) gl_cv_func_getopt_posix="guessing yes";;
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21934 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21935 case "$gl_cv_func_getopt_posix" in
21936 *no) gl_replace_getopt=yes ;;
21940 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21942 $as_echo_n "checking for working GNU getopt function... " >&6; }
21943 if ${gl_cv_func_getopt_gnu+:} false; then :
21944 $as_echo_n "(cached) " >&6
21946 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21947 # optstring is necessary for programs like m4 that have POSIX-mandated
21948 # semantics for supporting options interspersed with files.
21949 # Also, since getopt_long is a GNU extension, we require optind=0.
21950 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
21951 # so take care to revert to the correct (non-)export state.
21952 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
21953 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
21954 xx) gl_had_POSIXLY_CORRECT=exported ;;
21955 x) gl_had_POSIXLY_CORRECT=yes ;;
21956 *) gl_had_POSIXLY_CORRECT= ;;
21959 export POSIXLY_CORRECT
21960 if test "$cross_compiling" = yes; then :
21961 gl_cv_func_getopt_gnu="guessing no"
21964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21965 /* end confdefs.h. */
21966 #include <getopt.h>
21967 #include <stddef.h>
21968 #include <string.h>
21970 #include <stdlib.h>
21971 #if defined __MACH__ && defined __APPLE__
21972 /* Avoid a crash on Mac OS X. */
21973 #include <mach/mach.h>
21974 #include <mach/mach_error.h>
21975 #include <mach/thread_status.h>
21976 #include <mach/exception.h>
21977 #include <mach/task.h>
21978 #include <pthread.h>
21979 /* The exception port on which our thread listens. */
21980 static mach_port_t our_exception_port;
21981 /* The main function of the thread listening for exceptions of type
21984 mach_exception_thread (void *arg)
21986 /* Buffer for a message to be received. */
21988 mach_msg_header_t head;
21989 mach_msg_body_t msgh_body;
21992 mach_msg_return_t retval;
21993 /* Wait for a message on the exception port. */
21994 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21995 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21996 if (retval != MACH_MSG_SUCCESS)
22001 nocrash_init (void)
22003 mach_port_t self = mach_task_self ();
22004 /* Allocate a port on which the thread shall listen for exceptions. */
22005 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
22007 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
22008 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
22009 MACH_MSG_TYPE_MAKE_SEND)
22011 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
22013 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
22014 /* Create the thread listening on the exception port. */
22015 pthread_attr_t attr;
22017 if (pthread_attr_init (&attr) == 0
22018 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
22019 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
22020 pthread_attr_destroy (&attr);
22021 /* Replace the exception port info for these exceptions with our own.
22022 Note that we replace the exception port for the entire task, not only
22023 for a particular thread. This has the effect that when our exception
22024 port gets the message, the thread specific exception port has already
22025 been asked, and we don't need to bother about it.
22026 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
22027 task_set_exception_ports (self, mask, our_exception_port,
22028 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
22033 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22034 /* Avoid a crash on native Windows. */
22035 #define WIN32_LEAN_AND_MEAN
22036 #include <windows.h>
22037 #include <winerror.h>
22039 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
22041 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
22043 case EXCEPTION_ACCESS_VIOLATION:
22044 case EXCEPTION_IN_PAGE_ERROR:
22045 case EXCEPTION_STACK_OVERFLOW:
22046 case EXCEPTION_GUARD_PAGE:
22047 case EXCEPTION_PRIV_INSTRUCTION:
22048 case EXCEPTION_ILLEGAL_INSTRUCTION:
22049 case EXCEPTION_DATATYPE_MISALIGNMENT:
22050 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
22051 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
22054 return EXCEPTION_CONTINUE_SEARCH;
22057 nocrash_init (void)
22059 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
22062 /* Avoid a crash on POSIX systems. */
22063 #include <signal.h>
22064 /* A POSIX signal handler. */
22066 exception_handler (int sig)
22071 nocrash_init (void)
22074 signal (SIGSEGV, exception_handler);
22077 signal (SIGBUS, exception_handler);
22091 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
22092 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
22093 OSF/1 5.1, Solaris 10. */
22095 static char conftest[] = "conftest";
22096 static char plus[] = "-+";
22097 char *argv[3] = { conftest, plus, NULL };
22099 if (getopt (2, argv, "+a") != '?')
22102 /* This code succeeds on glibc 2.8, mingw,
22103 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
22104 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
22106 static char program[] = "program";
22107 static char p[] = "-p";
22108 static char foo[] = "foo";
22109 static char bar[] = "bar";
22110 char *argv[] = { program, p, foo, bar, NULL };
22113 if (getopt (4, argv, "p::") != 'p')
22115 else if (optarg != NULL)
22117 else if (getopt (4, argv, "p::") != -1)
22119 else if (optind != 2)
22122 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
22124 static char program[] = "program";
22125 static char foo[] = "foo";
22126 static char p[] = "-p";
22127 char *argv[] = { program, foo, p, NULL };
22129 if (getopt (3, argv, "-p") != 1)
22131 else if (getopt (3, argv, "-p") != 'p')
22134 /* This code fails on glibc 2.11. */
22136 static char program[] = "program";
22137 static char b[] = "-b";
22138 static char a[] = "-a";
22139 char *argv[] = { program, b, a, NULL };
22140 optind = opterr = 0;
22141 if (getopt (3, argv, "+:a:b") != 'b')
22143 else if (getopt (3, argv, "+:a:b") != ':')
22146 /* This code dumps core on glibc 2.14. */
22148 static char program[] = "program";
22149 static char w[] = "-W";
22150 static char dummy[] = "dummy";
22151 char *argv[] = { program, w, dummy, NULL };
22152 optind = opterr = 1;
22153 if (getopt (3, argv, "W;") != 'W')
22162 if ac_fn_c_try_run "$LINENO"; then :
22163 gl_cv_func_getopt_gnu=yes
22165 gl_cv_func_getopt_gnu=no
22167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22168 conftest.$ac_objext conftest.beam conftest.$ac_ext
22171 case $gl_had_POSIXLY_CORRECT in
22173 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
22174 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
22179 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
22180 if test "$gl_cv_func_getopt_gnu" != yes; then
22181 gl_replace_getopt=yes
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
22184 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
22185 if ${gl_cv_func_getopt_long_gnu+:} false; then :
22186 $as_echo_n "(cached) " >&6
22188 if test "$cross_compiling" = yes; then :
22190 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
22191 *) gl_cv_func_getopt_long_gnu="guessing yes";;
22195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h. */
22197 #include <getopt.h>
22198 #include <stddef.h>
22199 #include <string.h>
22204 static const struct option long_options[] =
22206 { "xtremely-",no_argument, NULL, 1003 },
22207 { "xtra", no_argument, NULL, 1001 },
22208 { "xtreme", no_argument, NULL, 1002 },
22209 { "xtremely", no_argument, NULL, 1003 },
22210 { NULL, 0, NULL, 0 }
22212 /* This code fails on OpenBSD 5.0. */
22214 static char program[] = "program";
22215 static char xtremel[] = "--xtremel";
22216 char *argv[] = { program, xtremel, NULL };
22218 optind = 1; opterr = 0;
22219 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
22228 if ac_fn_c_try_run "$LINENO"; then :
22229 gl_cv_func_getopt_long_gnu=yes
22231 gl_cv_func_getopt_long_gnu=no
22233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22234 conftest.$ac_objext conftest.beam conftest.$ac_ext
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
22240 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
22241 case "$gl_cv_func_getopt_long_gnu" in
22243 *) gl_replace_getopt=yes ;;
22254 if test -n "$gl_replace_getopt"; then
22258 if test $REPLACE_GETOPT = 1; then
22262 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22268 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22269 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22275 cat >>confdefs.h <<_ACEOF
22276 #define HAVE_DECL_GETENV $ac_have_decl
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22280 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22281 if ${ac_cv_c_restrict+:} false; then :
22282 $as_echo_n "(cached) " >&6
22284 ac_cv_c_restrict=no
22285 # The order here caters to the fact that C++ does not require restrict.
22286 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h. */
22289 typedef int *int_ptr;
22290 int foo (int_ptr $ac_kw ip) { return ip[0]; }
22291 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
22292 int bar (int ip[$ac_kw]) { return ip[0]; }
22300 return foo (t) + bar (t);
22306 if ac_fn_c_try_compile "$LINENO"; then :
22307 ac_cv_c_restrict=$ac_kw
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310 test "$ac_cv_c_restrict" != no && break
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22315 $as_echo "$ac_cv_c_restrict" >&6; }
22317 case $ac_cv_c_restrict in
22319 no) $as_echo "#define restrict /**/" >>confdefs.h
22321 *) cat >>confdefs.h <<_ACEOF
22322 #define restrict $ac_cv_c_restrict
22328 GNULIB_GETTIMEOFDAY=0;
22329 HAVE_GETTIMEOFDAY=1;
22330 HAVE_STRUCT_TIMEVAL=1;
22333 REPLACE_GETTIMEOFDAY=0;
22334 REPLACE_STRUCT_TIMEVAL=0;
22353 if test $gl_cv_have_include_next = yes; then
22354 gl_cv_next_sys_time_h='<'sys/time.h'>'
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
22357 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
22358 if ${gl_cv_next_sys_time_h+:} false; then :
22359 $as_echo_n "(cached) " >&6
22362 if test $ac_cv_header_sys_time_h = yes; then
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22369 #include <sys/time.h>
22372 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22373 *) gl_absname_cpp="$ac_cpp" ;;
22378 gl_dirsep_regex='[/\\]'
22381 gl_dirsep_regex='\/'
22384 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22385 gl_header_literal_regex=`echo 'sys/time.h' \
22386 | sed -e "$gl_make_literal_regex_sed"`
22387 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22388 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22394 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22395 sed -n "$gl_absolute_header_sed"`
22397 gl_header=$gl_cv_absolute_sys_time_h
22398 gl_cv_next_sys_time_h='"'$gl_header'"'
22400 gl_cv_next_sys_time_h='<'sys/time.h'>'
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
22406 $as_echo "$gl_cv_next_sys_time_h" >&6; }
22408 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
22410 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22412 gl_next_as_first_directive='<'sys/time.h'>'
22414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22415 gl_next_as_first_directive=$gl_cv_next_sys_time_h
22417 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
22423 if test $ac_cv_header_sys_time_h != yes; then
22431 if test $ac_cv_header_sys_socket_h != yes; then
22432 for ac_header in winsock2.h
22434 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22435 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_WINSOCK2_H 1
22445 if test "$ac_cv_header_winsock2_h" = yes; then
22447 UNISTD_H_HAVE_WINSOCK2_H=1
22448 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
22455 $as_echo_n "checking for struct timeval... " >&6; }
22456 if ${gl_cv_sys_struct_timeval+:} false; then :
22457 $as_echo_n "(cached) " >&6
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 #if HAVE_SYS_TIME_H
22462 #include <sys/time.h>
22465 #if HAVE_WINSOCK2_H
22466 # include <winsock2.h>
22472 static struct timeval x; x.tv_sec = x.tv_usec;
22477 if ac_fn_c_try_compile "$LINENO"; then :
22478 gl_cv_sys_struct_timeval=yes
22480 gl_cv_sys_struct_timeval=no
22482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
22486 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
22487 if test $gl_cv_sys_struct_timeval != yes; then
22488 HAVE_STRUCT_TIMEVAL=0
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
22491 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
22492 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
22493 $as_echo_n "(cached) " >&6
22495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22496 /* end confdefs.h. */
22497 #if HAVE_SYS_TIME_H
22498 #include <sys/time.h>
22501 #if HAVE_WINSOCK2_H
22502 # include <winsock2.h>
22508 static struct timeval x;
22509 typedef int verify_tv_sec_type[
22510 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
22517 if ac_fn_c_try_compile "$LINENO"; then :
22518 gl_cv_sys_struct_timeval_tv_sec=yes
22520 gl_cv_sys_struct_timeval_tv_sec=no
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
22526 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
22527 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
22528 REPLACE_STRUCT_TIMEVAL=1
22533 for gl_func in gettimeofday; do
22534 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22536 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22537 if eval \${$as_gl_Symbol+:} false; then :
22538 $as_echo_n "(cached) " >&6
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h. */
22543 #if HAVE_SYS_TIME_H
22544 # include <sys/time.h>
22557 if ac_fn_c_try_compile "$LINENO"; then :
22558 eval "$as_gl_Symbol=yes"
22560 eval "$as_gl_Symbol=no"
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 eval ac_res=\$$as_gl_Symbol
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22566 $as_echo "$ac_res" >&6; }
22567 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22568 cat >>confdefs.h <<_ACEOF
22569 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22572 eval ac_cv_have_decl_$gl_func=yes
22589 GNULIB_TOWCTRANS=0;
22593 REPLACE_ISWBLANK=0;
22604 if test $ac_cv_func_iswcntrl = yes; then
22612 if test $gt_cv_c_wint_t = yes; then
22628 if test $gl_cv_have_include_next = yes; then
22629 gl_cv_next_wctype_h='<'wctype.h'>'
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
22632 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
22633 if ${gl_cv_next_wctype_h+:} false; then :
22634 $as_echo_n "(cached) " >&6
22637 if test $ac_cv_header_wctype_h = yes; then
22642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22643 /* end confdefs.h. */
22644 #include <wctype.h>
22647 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22648 *) gl_absname_cpp="$ac_cpp" ;;
22653 gl_dirsep_regex='[/\\]'
22656 gl_dirsep_regex='\/'
22659 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22660 gl_header_literal_regex=`echo 'wctype.h' \
22661 | sed -e "$gl_make_literal_regex_sed"`
22662 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22663 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22669 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22670 sed -n "$gl_absolute_header_sed"`
22672 gl_header=$gl_cv_absolute_wctype_h
22673 gl_cv_next_wctype_h='"'$gl_header'"'
22675 gl_cv_next_wctype_h='<'wctype.h'>'
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
22681 $as_echo "$gl_cv_next_wctype_h" >&6; }
22683 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
22685 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22687 gl_next_as_first_directive='<'wctype.h'>'
22689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22690 gl_next_as_first_directive=$gl_cv_next_wctype_h
22692 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
22697 if test $ac_cv_header_wctype_h = yes; then
22698 if test $ac_cv_func_iswcntrl = yes; then
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
22700 $as_echo_n "checking whether iswcntrl works... " >&6; }
22701 if ${gl_cv_func_iswcntrl_works+:} false; then :
22702 $as_echo_n "(cached) " >&6
22705 if test "$cross_compiling" = yes; then :
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22708 #include <stdlib.h>
22709 #if __GNU_LIBRARY__ == 1
22710 Linux libc5 i18n is broken.
22720 if ac_fn_c_try_compile "$LINENO"; then :
22721 gl_cv_func_iswcntrl_works="guessing yes"
22723 gl_cv_func_iswcntrl_works="guessing no"
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h. */
22731 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22732 included before <wchar.h>.
22733 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22734 must be included before <wchar.h>. */
22735 #include <stddef.h>
22739 #include <wctype.h>
22740 int main () { return iswprint ('x') == 0; }
22743 if ac_fn_c_try_run "$LINENO"; then :
22744 gl_cv_func_iswcntrl_works=yes
22746 gl_cv_func_iswcntrl_works=no
22748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22749 conftest.$ac_objext conftest.beam conftest.$ac_ext
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
22755 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
22763 case "$gl_cv_func_iswcntrl_works" in
22764 *yes) REPLACE_ISWCNTRL=0 ;;
22765 *) REPLACE_ISWCNTRL=1 ;;
22769 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
22773 if test $REPLACE_ISWCNTRL = 1; then
22776 for ac_func in towlower
22778 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
22779 if test "x$ac_cv_func_towlower" = xyes; then :
22780 cat >>confdefs.h <<_ACEOF
22781 #define HAVE_TOWLOWER 1
22787 if test $ac_cv_func_towlower = yes; then
22790 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22791 included before <wchar.h>.
22792 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22793 must be included before <wchar.h>. */
22794 #include <stddef.h>
22799 # include <wctype.h>
22803 if test "x$ac_cv_have_decl_towlower" = xyes; then :
22809 cat >>confdefs.h <<_ACEOF
22810 #define HAVE_DECL_TOWLOWER $ac_have_decl
22813 if test $ac_cv_have_decl_towlower = yes; then
22822 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
22827 $as_echo_n "checking for wctype_t... " >&6; }
22828 if ${gl_cv_type_wctype_t+:} false; then :
22829 $as_echo_n "(cached) " >&6
22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832 /* end confdefs.h. */
22833 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22834 included before <wchar.h>.
22835 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22836 must be included before <wchar.h>. */
22837 #include <stddef.h>
22842 # include <wctype.h>
22854 if ac_fn_c_try_compile "$LINENO"; then :
22855 gl_cv_type_wctype_t=yes
22857 gl_cv_type_wctype_t=no
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
22863 $as_echo "$gl_cv_type_wctype_t" >&6; }
22864 if test $gl_cv_type_wctype_t = no; then
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
22869 $as_echo_n "checking for wctrans_t... " >&6; }
22870 if ${gl_cv_type_wctrans_t+:} false; then :
22871 $as_echo_n "(cached) " >&6
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22875 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22876 included before <wchar.h>.
22877 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22878 must be included before <wchar.h>. */
22879 #include <stddef.h>
22883 #include <wctype.h>
22894 if ac_fn_c_try_compile "$LINENO"; then :
22895 gl_cv_type_wctrans_t=yes
22897 gl_cv_type_wctrans_t=no
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
22903 $as_echo "$gl_cv_type_wctrans_t" >&6; }
22904 if test $gl_cv_type_wctrans_t = no; then
22909 for gl_func in wctype iswctype wctrans towctrans ; do
22910 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22912 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22913 if eval \${$as_gl_Symbol+:} false; then :
22914 $as_echo_n "(cached) " >&6
22916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22917 /* end confdefs.h. */
22919 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22921 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22922 included before <wchar.h>. */
22923 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22924 # include <stddef.h>
22925 # include <stdio.h>
22927 # include <wchar.h>
22929 #include <wctype.h>
22940 if ac_fn_c_try_compile "$LINENO"; then :
22941 eval "$as_gl_Symbol=yes"
22943 eval "$as_gl_Symbol=no"
22945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22947 eval ac_res=\$$as_gl_Symbol
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22949 $as_echo "$ac_res" >&6; }
22950 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22951 cat >>confdefs.h <<_ACEOF
22952 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22955 eval ac_cv_have_decl_$gl_func=yes
22963 GNULIB_NL_LANGINFO=0;
22964 HAVE_NL_LANGINFO=1;
22965 REPLACE_NL_LANGINFO=0;
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
22974 $as_echo_n "checking for 64-bit off_t... " >&6; }
22975 if ${gl_cv_type_off_t_64+:} false; then :
22976 $as_echo_n "(cached) " >&6
22978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22979 /* end confdefs.h. */
22980 #include <sys/types.h>
22981 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
22991 if ac_fn_c_try_compile "$LINENO"; then :
22992 gl_cv_type_off_t_64=yes
22994 gl_cv_type_off_t_64=no
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
23000 $as_echo "$gl_cv_type_off_t_64" >&6; }
23001 if test $gl_cv_type_off_t_64 = no; then
23002 WINDOWS_64_BIT_OFF_T=1
23004 WINDOWS_64_BIT_OFF_T=0
23006 WINDOWS_64_BIT_ST_SIZE=1
23009 WINDOWS_64_BIT_OFF_T=0
23010 WINDOWS_64_BIT_ST_SIZE=0
23014 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
23015 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
23021 cat >>confdefs.h <<_ACEOF
23022 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
23026 GNULIB_LOCALECONV=0;
23027 GNULIB_SETLOCALE=0;
23028 GNULIB_DUPLOCALE=0;
23030 REPLACE_LOCALECONV=0;
23031 REPLACE_SETLOCALE=0;
23032 REPLACE_DUPLOCALE=0;
23033 REPLACE_STRUCT_LCONV=0;
23037 HAVE_MAX_ALIGN_T=1;
23044 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23047 if test "x$ac_cv_type_max_align_t" = xyes; then :
23050 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
23053 if test $gt_cv_c_wchar_t = no; then
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23058 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23059 if ${gl_cv_decl_null_works+:} false; then :
23060 $as_echo_n "(cached) " >&6
23062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23063 /* end confdefs.h. */
23064 #include <stddef.h>
23065 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23075 if ac_fn_c_try_compile "$LINENO"; then :
23076 gl_cv_decl_null_works=yes
23078 gl_cv_decl_null_works=no
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23083 $as_echo "$gl_cv_decl_null_works" >&6; }
23084 if test $gl_cv_decl_null_works = no; then
23089 if test -n "$STDDEF_H"; then
23090 GL_GENERATE_STDDEF_H_TRUE=
23091 GL_GENERATE_STDDEF_H_FALSE='#'
23093 GL_GENERATE_STDDEF_H_TRUE='#'
23094 GL_GENERATE_STDDEF_H_FALSE=
23097 if test -n "$STDDEF_H"; then
23106 if test $gl_cv_have_include_next = yes; then
23107 gl_cv_next_stddef_h='<'stddef.h'>'
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23110 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23111 if ${gl_cv_next_stddef_h+:} false; then :
23112 $as_echo_n "(cached) " >&6
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h. */
23119 #include <stddef.h>
23122 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23123 *) gl_absname_cpp="$ac_cpp" ;;
23128 gl_dirsep_regex='[/\\]'
23131 gl_dirsep_regex='\/'
23134 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23135 gl_header_literal_regex=`echo 'stddef.h' \
23136 | sed -e "$gl_make_literal_regex_sed"`
23137 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23144 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23145 sed -n "$gl_absolute_header_sed"`
23147 gl_header=$gl_cv_absolute_stddef_h
23148 gl_cv_next_stddef_h='"'$gl_header'"'
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23153 $as_echo "$gl_cv_next_stddef_h" >&6; }
23155 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23157 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23159 gl_next_as_first_directive='<'stddef.h'>'
23161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23162 gl_next_as_first_directive=$gl_cv_next_stddef_h
23164 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23186 GNULIB_UTIMENSAT=0;
23200 REPLACE_FUTIMENS=0;
23206 REPLACE_UTIMENSAT=0;
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
23212 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
23213 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
23214 $as_echo_n "(cached) " >&6
23216 rm -f conftest.sym conftest.file
23217 echo >conftest.file
23218 if test "$cross_compiling" = yes; then :
23221 # Guess yes on glibc systems.
23222 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
23224 # If we don't know, assume the worst.
23225 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
23229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23230 /* end confdefs.h. */
23231 $ac_includes_default
23236 if (symlink ("conftest.file", "conftest.sym") != 0)
23238 /* Linux will dereference the symlink and fail, as required by
23239 POSIX. That is better in the sense that it means we will not
23240 have to compile and use the lstat wrapper. */
23241 return lstat ("conftest.sym/", &sbuf) == 0;
23247 if ac_fn_c_try_run "$LINENO"; then :
23248 gl_cv_func_lstat_dereferences_slashed_symlink=yes
23250 gl_cv_func_lstat_dereferences_slashed_symlink=no
23252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23253 conftest.$ac_objext conftest.beam conftest.$ac_ext
23256 rm -f conftest.sym conftest.file
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
23260 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23261 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23264 cat >>confdefs.h <<_ACEOF
23265 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23272 for ac_header in stdlib.h
23274 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23275 if test "x$ac_cv_header_stdlib_h" = xyes; then :
23276 cat >>confdefs.h <<_ACEOF
23277 #define HAVE_STDLIB_H 1
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
23285 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23286 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
23287 $as_echo_n "(cached) " >&6
23289 if test "$cross_compiling" = yes; then :
23290 ac_cv_func_malloc_0_nonnull=no
23292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23293 /* end confdefs.h. */
23294 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23295 # include <stdlib.h>
23303 return ! malloc (0);
23308 if ac_fn_c_try_run "$LINENO"; then :
23309 ac_cv_func_malloc_0_nonnull=yes
23311 ac_cv_func_malloc_0_nonnull=no
23313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23314 conftest.$ac_objext conftest.beam conftest.$ac_ext
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23319 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23320 if test $ac_cv_func_malloc_0_nonnull = yes; then :
23321 gl_cv_func_malloc_0_nonnull=1
23323 gl_cv_func_malloc_0_nonnull=0
23327 cat >>confdefs.h <<_ACEOF
23328 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23335 $as_echo_n "checking for mbstate_t... " >&6; }
23336 if ${ac_cv_type_mbstate_t+:} false; then :
23337 $as_echo_n "(cached) " >&6
23339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23340 /* end confdefs.h. */
23341 $ac_includes_default
23342 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23344 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23345 included before <wchar.h>. */
23346 #include <stddef.h>
23353 mbstate_t x; return sizeof x;
23358 if ac_fn_c_try_compile "$LINENO"; then :
23359 ac_cv_type_mbstate_t=yes
23361 ac_cv_type_mbstate_t=no
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23366 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23367 if test $ac_cv_type_mbstate_t = yes; then
23369 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23373 $as_echo "#define mbstate_t int" >>confdefs.h
23383 GNULIB_MBSRTOWCS=0;
23384 GNULIB_MBSNRTOWCS=0;
23386 GNULIB_WCSRTOMBS=0;
23387 GNULIB_WCSNRTOMBS=0;
23404 GNULIB_WCSCASECMP=0;
23405 GNULIB_WCSNCASECMP=0;
23442 HAVE_WCSNCASECMP=1;
23455 HAVE_DECL_WCWIDTH=1;
23456 REPLACE_MBSTATE_T=0;
23462 REPLACE_MBSRTOWCS=0;
23463 REPLACE_MBSNRTOWCS=0;
23465 REPLACE_WCSRTOMBS=0;
23466 REPLACE_WCSNRTOMBS=0;
23468 REPLACE_WCSWIDTH=0;
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
23478 $as_echo_n "checking for a traditional japanese locale... " >&6; }
23479 if ${gt_cv_locale_ja+:} false; then :
23480 $as_echo_n "(cached) " >&6
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23486 #include <locale.h>
23488 #if HAVE_LANGINFO_CODESET
23489 # include <langinfo.h>
23491 #include <stdlib.h>
23492 #include <string.h>
23498 /* Check whether the given locale name is recognized by the system. */
23499 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23500 /* On native Windows, setlocale(category, "") looks at the system settings,
23501 not at the environment variables. Also, when an encoding suffix such
23502 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23503 category of the locale to "C". */
23504 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23505 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23508 if (setlocale (LC_ALL, "") == NULL) return 1;
23510 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23511 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23512 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23513 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23514 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23515 some unit tests fail.
23516 On MirBSD 10, when an unsupported locale is specified, setlocale()
23517 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
23518 #if HAVE_LANGINFO_CODESET
23520 const char *cs = nl_langinfo (CODESET);
23521 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
23522 || strcmp (cs, "UTF-8") == 0)
23527 /* On Cygwin, avoid locale names without encoding suffix, because the
23528 locale_charset() function relies on the encoding suffix. Note that
23529 LC_ALL is set on the command line. */
23530 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23532 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
23533 on Cygwin 1.5.x. */
23534 if (MB_CUR_MAX == 1)
23536 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
23537 This excludes the UTF-8 encoding (except on MirBSD). */
23538 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23539 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
23540 for (p = buf; *p != '\0'; p++)
23541 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
23547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23548 (eval $ac_link) 2>&5
23550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23551 test $ac_status = 0; } && test -s conftest$ac_exeext; then
23553 # Handle native Windows specially, because there setlocale() interprets
23554 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23555 # "fr" or "fra" as "French" or "French_France.1252",
23556 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23557 # "ja" as "Japanese" or "Japanese_Japan.932",
23560 # Note that on native Windows, the Japanese locale is
23561 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
23562 # cannot use it here.
23563 gt_cv_locale_ja=none
23566 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23567 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23568 # configure script would override the LC_ALL setting. Likewise for
23569 # LC_CTYPE, which is also set at the beginning of the configure script.
23570 # Test for the AIX locale name.
23571 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23572 gt_cv_locale_ja=ja_JP
23574 # Test for the locale name with explicit encoding suffix.
23575 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23576 gt_cv_locale_ja=ja_JP.EUC-JP
23578 # Test for the HP-UX, OSF/1, NetBSD locale name.
23579 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23580 gt_cv_locale_ja=ja_JP.eucJP
23582 # Test for the IRIX, FreeBSD locale name.
23583 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23584 gt_cv_locale_ja=ja_JP.EUC
23586 # Test for the Solaris 7 locale name.
23587 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23590 # Special test for NetBSD 1.6.
23591 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
23592 gt_cv_locale_ja=ja_JP.eucJP
23595 gt_cv_locale_ja=none
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
23609 $as_echo "$gt_cv_locale_ja" >&6; }
23610 LOCALE_JA=$gt_cv_locale_ja
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
23617 $as_echo_n "checking for a transitional chinese locale... " >&6; }
23618 if ${gt_cv_locale_zh_CN+:} false; then :
23619 $as_echo_n "(cached) " >&6
23622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23623 /* end confdefs.h. */
23625 #include <locale.h>
23626 #include <stdlib.h>
23628 #if HAVE_LANGINFO_CODESET
23629 # include <langinfo.h>
23631 #include <stdlib.h>
23632 #include <string.h>
23638 /* Check whether the given locale name is recognized by the system. */
23639 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23640 /* On native Windows, setlocale(category, "") looks at the system settings,
23641 not at the environment variables. Also, when an encoding suffix such
23642 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23643 category of the locale to "C". */
23644 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23645 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23648 if (setlocale (LC_ALL, "") == NULL) return 1;
23650 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23651 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23652 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23653 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23654 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23655 some unit tests fail.
23656 On MirBSD 10, when an unsupported locale is specified, setlocale()
23657 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
23658 #if HAVE_LANGINFO_CODESET
23660 const char *cs = nl_langinfo (CODESET);
23661 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
23662 || strcmp (cs, "UTF-8") == 0)
23667 /* On Cygwin, avoid locale names without encoding suffix, because the
23668 locale_charset() function relies on the encoding suffix. Note that
23669 LC_ALL is set on the command line. */
23670 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23672 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
23673 This excludes the UTF-8 encoding (except on MirBSD). */
23674 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23675 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
23676 for (p = buf; *p != '\0'; p++)
23677 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
23679 /* Check whether a typical GB18030 multibyte sequence is recognized as a
23680 single wide character. This excludes the GB2312 and GBK encodings. */
23681 if (mblen ("\203\062\332\066", 5) != 4)
23687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23688 (eval $ac_link) 2>&5
23690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23691 test $ac_status = 0; } && test -s conftest$ac_exeext; then
23693 # Handle native Windows specially, because there setlocale() interprets
23694 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23695 # "fr" or "fra" as "French" or "French_France.1252",
23696 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23697 # "ja" as "Japanese" or "Japanese_Japan.932",
23700 # Test for the hypothetical native Windows locale name.
23701 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23702 gt_cv_locale_zh_CN=Chinese_China.54936
23705 gt_cv_locale_zh_CN=none
23709 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
23710 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
23711 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
23712 gt_cv_locale_zh_CN=none
23715 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23716 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23717 # configure script would override the LC_ALL setting. Likewise for
23718 # LC_CTYPE, which is also set at the beginning of the configure script.
23719 # Test for the locale name without encoding suffix.
23720 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23721 gt_cv_locale_zh_CN=zh_CN
23723 # Test for the locale name with explicit encoding suffix.
23724 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23725 gt_cv_locale_zh_CN=zh_CN.GB18030
23728 gt_cv_locale_zh_CN=none
23734 # If there was a link error, due to mblen(), the system is so old that
23735 # it certainly doesn't have a chinese locale.
23736 gt_cv_locale_zh_CN=none
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
23742 $as_echo "$gt_cv_locale_zh_CN" >&6; }
23743 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
23749 $as_echo_n "checking for a french Unicode locale... " >&6; }
23750 if ${gt_cv_locale_fr_utf8+:} false; then :
23751 $as_echo_n "(cached) " >&6
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23757 #include <locale.h>
23759 #if HAVE_LANGINFO_CODESET
23760 # include <langinfo.h>
23762 #include <stdlib.h>
23763 #include <string.h>
23767 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
23768 imitates locale dependent behaviour by looking at the environment
23769 variables, and all locales use the UTF-8 encoding. */
23770 #if !(defined __BEOS__ || defined __HAIKU__)
23771 /* Check whether the given locale name is recognized by the system. */
23772 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23773 /* On native Windows, setlocale(category, "") looks at the system settings,
23774 not at the environment variables. Also, when an encoding suffix such
23775 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23776 category of the locale to "C". */
23777 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23778 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23781 if (setlocale (LC_ALL, "") == NULL) return 1;
23783 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23784 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23785 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23786 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23787 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23788 some unit tests fail. */
23789 # if HAVE_LANGINFO_CODESET
23791 const char *cs = nl_langinfo (CODESET);
23792 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
23797 /* On Cygwin, avoid locale names without encoding suffix, because the
23798 locale_charset() function relies on the encoding suffix. Note that
23799 LC_ALL is set on the command line. */
23800 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23802 /* Check whether in the abbreviation of the second month, the second
23803 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
23804 two bytes long, with UTF-8 encoding. */
23805 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23806 if (strftime (buf, sizeof (buf), "%b", &t) < 4
23807 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
23810 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
23811 /* Check whether the decimal separator is a comma.
23812 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
23813 are nl_langinfo(RADIXCHAR) are both ".". */
23814 if (localeconv () ->decimal_point[0] != ',') return 1;
23820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23821 (eval $ac_link) 2>&5
23823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23824 test $ac_status = 0; } && test -s conftest$ac_exeext; then
23826 # Handle native Windows specially, because there setlocale() interprets
23827 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23828 # "fr" or "fra" as "French" or "French_France.1252",
23829 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23830 # "ja" as "Japanese" or "Japanese_Japan.932",
23833 # Test for the hypothetical native Windows locale name.
23834 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23835 gt_cv_locale_fr_utf8=French_France.65001
23838 gt_cv_locale_fr_utf8=none
23842 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23843 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23844 # configure script would override the LC_ALL setting. Likewise for
23845 # LC_CTYPE, which is also set at the beginning of the configure script.
23846 # Test for the usual locale name.
23847 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23848 gt_cv_locale_fr_utf8=fr_FR
23850 # Test for the locale name with explicit encoding suffix.
23851 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23852 gt_cv_locale_fr_utf8=fr_FR.UTF-8
23854 # Test for the Solaris 7 locale name.
23855 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23856 gt_cv_locale_fr_utf8=fr.UTF-8
23859 gt_cv_locale_fr_utf8=none
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
23870 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
23871 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
23881 GNULIB_RAWMEMCHR=0;
23884 GNULIB_STRCHRNUL=0;
23892 GNULIB_STRCASESTR=0;
23899 GNULIB_MBSCASECMP=0;
23900 GNULIB_MBSNCASECMP=0;
23901 GNULIB_MBSPCASECMP=0;
23902 GNULIB_MBSCASESTR=0;
23909 GNULIB_STRERROR_R=0;
23910 GNULIB_STRSIGNAL=0;
23911 GNULIB_STRVERSCMP=0;
23916 HAVE_DECL_MEMMEM=1;
23918 HAVE_DECL_MEMRCHR=1;
23923 HAVE_DECL_STRDUP=1;
23924 HAVE_DECL_STRNDUP=1;
23925 HAVE_DECL_STRNLEN=1;
23929 HAVE_DECL_STRTOK_R=1;
23930 HAVE_DECL_STRERROR_R=1;
23931 HAVE_DECL_STRSIGNAL=1;
23938 REPLACE_STRCASESTR=0;
23939 REPLACE_STRCHRNUL=0;
23940 REPLACE_STRERROR=0;
23941 REPLACE_STRERROR_R=0;
23945 REPLACE_STRSIGNAL=0;
23946 REPLACE_STRTOK_R=0;
23947 UNDEFINE_STRTOK_R=0;
23959 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
23960 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
23961 # irrelevant for anonymous mappings.
23962 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
23963 if test "x$ac_cv_func_mmap" = xyes; then :
23970 # Try to allow MAP_ANONYMOUS.
23971 gl_have_mmap_anonymous=no
23972 if test $gl_have_mmap = yes; then
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
23974 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
23975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23976 /* end confdefs.h. */
23978 #include <sys/mman.h>
23979 #ifdef MAP_ANONYMOUS
23980 I cannot identify this map
23984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23985 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
23986 gl_have_mmap_anonymous=yes
23990 if test $gl_have_mmap_anonymous != yes; then
23991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23992 /* end confdefs.h. */
23994 #include <sys/mman.h>
23996 I cannot identify this map
24000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24001 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24003 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
24005 gl_have_mmap_anonymous=yes
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
24011 $as_echo "$gl_have_mmap_anonymous" >&6; }
24012 if test $gl_have_mmap_anonymous = yes; then
24014 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
24024 if test $HAVE_MEMCHR = 1; then
24025 # Detect platform-specific bugs in some versions of glibc:
24026 # memchr should not dereference anything with length 0
24027 # http://bugzilla.redhat.com/499689
24028 # memchr should not dereference overestimated length after a match
24029 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24030 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
24031 # Assume that memchr works on platforms that lack mprotect.
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
24033 $as_echo_n "checking whether memchr works... " >&6; }
24034 if ${gl_cv_func_memchr_works+:} false; then :
24035 $as_echo_n "(cached) " >&6
24037 if test "$cross_compiling" = yes; then :
24038 gl_cv_func_memchr_works="guessing no"
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h. */
24043 #include <string.h>
24044 #if HAVE_SYS_MMAN_H
24045 # include <fcntl.h>
24046 # include <unistd.h>
24047 # include <sys/types.h>
24048 # include <sys/mman.h>
24050 # define MAP_FILE 0
24059 char *fence = NULL;
24060 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
24061 # if HAVE_MAP_ANONYMOUS
24062 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
24064 # else /* !HAVE_MAP_ANONYMOUS */
24065 const int flags = MAP_FILE | MAP_PRIVATE;
24066 int fd = open ("/dev/zero", O_RDONLY, 0666);
24070 int pagesize = getpagesize ();
24072 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
24074 if (two_pages != (char *)(-1)
24075 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
24076 fence = two_pages + pagesize;
24081 if (memchr (fence, 0, 0))
24083 strcpy (fence - 9, "12345678");
24084 if (memchr (fence - 9, 0, 79) != fence - 1)
24086 if (memchr (fence - 1, 0, 3) != fence - 1)
24095 if ac_fn_c_try_run "$LINENO"; then :
24096 gl_cv_func_memchr_works=yes
24098 gl_cv_func_memchr_works=no
24100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24101 conftest.$ac_objext conftest.beam conftest.$ac_ext
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
24106 $as_echo "$gl_cv_func_memchr_works" >&6; }
24107 if test "$gl_cv_func_memchr_works" != yes; then
24115 gl_cv_c_multiarch=no
24116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h. */
24118 #ifndef __APPLE_CC__
24119 not a universal capable compiler
24124 if ac_fn_c_try_compile "$LINENO"; then :
24128 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
24129 if test -n "$prev"; then
24131 i?86 | x86_64 | ppc | ppc64)
24132 if test -z "$arch" || test "$arch" = "$word"; then
24135 gl_cv_c_multiarch=yes
24141 if test "x$word" = "x-arch"; then
24148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149 if test $gl_cv_c_multiarch = yes; then
24150 APPLE_UNIVERSAL_BUILD=1
24152 APPLE_UNIVERSAL_BUILD=0
24157 GNULIB_PTHREAD_SIGMASK=0;
24159 GNULIB_SIGNAL_H_SIGPIPE=0;
24160 GNULIB_SIGPROCMASK=0;
24161 GNULIB_SIGACTION=0;
24162 HAVE_POSIX_SIGNALBLOCKING=1;
24163 HAVE_PTHREAD_SIGMASK=1;
24168 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
24170 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
24172 HAVE_SIGHANDLER_T=1;
24173 REPLACE_PTHREAD_SIGMASK=0;
24177 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
24178 #include <signal.h>
24179 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
24180 #include <sys/types.h>
24183 if test "x$ac_cv_type_sigset_t" = xyes; then :
24185 cat >>confdefs.h <<_ACEOF
24186 #define HAVE_SIGSET_T 1
24189 gl_cv_type_sigset_t=yes
24191 gl_cv_type_sigset_t=no
24194 if test $gl_cv_type_sigset_t != yes; then
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
24201 $as_echo_n "checking for SIGPIPE... " >&6; }
24202 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
24203 $as_echo_n "(cached) " >&6
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24209 #include <signal.h>
24210 #if !defined SIGPIPE
24215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24216 $EGREP "booboo" >/dev/null 2>&1; then :
24217 gl_cv_header_signal_h_SIGPIPE=no
24219 gl_cv_header_signal_h_SIGPIPE=yes
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
24226 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
24230 $as_echo_n "checking for shared library path variable... " >&6; }
24231 if ${acl_cv_libpath+:} false; then :
24232 $as_echo_n "(cached) " >&6
24236 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
24238 rm -f ./conftest.sh
24239 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
24243 $as_echo "$acl_cv_libpath" >&6; }
24244 shlibpath_var="$acl_cv_shlibpath_var"
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
24248 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
24249 # Check whether --enable-relocatable was given.
24250 if test "${enable_relocatable+set}" = set; then :
24251 enableval=$enable_relocatable; if test "$enableval" != no; then
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
24263 $as_echo "$RELOCATABLE" >&6; }
24267 if test "X$prefix" = "XNONE"; then
24268 reloc_final_prefix="$ac_default_prefix"
24270 reloc_final_prefix="$prefix"
24273 cat >>confdefs.h <<_ACEOF
24274 #define INSTALLPREFIX "${reloc_final_prefix}"
24277 if test $RELOCATABLE = yes; then
24279 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
24289 use_elf_origin_trick=no
24291 if test $RELOCATABLE = yes; then
24292 # --enable-relocatable implies --disable-rpath
24294 for ac_header in mach-o/dyld.h
24296 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
24297 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
24298 cat >>confdefs.h <<_ACEOF
24299 #define HAVE_MACH_O_DYLD_H 1
24306 for ac_func in _NSGetExecutablePath
24308 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
24309 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
24310 cat >>confdefs.h <<_ACEOF
24311 #define HAVE__NSGETEXECUTABLEPATH 1
24318 mingw*) is_noop=yes ;;
24319 linux* | kfreebsd*) use_elf_origin_trick=yes ;;
24321 if test $is_noop = yes; then
24322 RELOCATABLE_LDFLAGS=:
24325 if test $use_elf_origin_trick = yes; then
24326 case "$ac_aux_dir" in
24327 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
24328 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
24330 RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
24334 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\""
24336 case "$ac_aux_dir" in
24337 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
24338 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
24343 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
24344 RELOCATABLE_VIA_LD_TRUE=
24345 RELOCATABLE_VIA_LD_FALSE='#'
24347 RELOCATABLE_VIA_LD_TRUE='#'
24348 RELOCATABLE_VIA_LD_FALSE=
24351 if test $use_wrapper = yes; then
24352 RELOCATABLE_VIA_WRAPPER_TRUE=
24353 RELOCATABLE_VIA_WRAPPER_FALSE='#'
24355 RELOCATABLE_VIA_WRAPPER_TRUE='#'
24356 RELOCATABLE_VIA_WRAPPER_FALSE=
24366 RELOCATABLE_STRIP=':'
24369 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
24370 if test "x$ac_cv_have_decl_setenv" = xyes; then :
24376 cat >>confdefs.h <<_ACEOF
24377 #define HAVE_DECL_SETENV $ac_have_decl
24382 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24383 if test "x$ac_cv_type_pid_t" = xyes; then :
24387 cat >>confdefs.h <<_ACEOF
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24394 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24395 if ${ac_cv_type_uid_t+:} false; then :
24396 $as_echo_n "(cached) " >&6
24398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399 /* end confdefs.h. */
24400 #include <sys/types.h>
24403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24404 $EGREP "uid_t" >/dev/null 2>&1; then :
24405 ac_cv_type_uid_t=yes
24407 ac_cv_type_uid_t=no
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24413 $as_echo "$ac_cv_type_uid_t" >&6; }
24414 if test $ac_cv_type_uid_t = no; then
24416 $as_echo "#define uid_t int" >>confdefs.h
24419 $as_echo "#define gid_t int" >>confdefs.h
24432 GNULIB_FPRINTF_POSIX=0;
24448 GNULIB_OBSTACK_PRINTF=0;
24449 GNULIB_OBSTACK_PRINTF_POSIX=0;
24454 GNULIB_PRINTF_POSIX=0;
24463 GNULIB_SPRINTF_POSIX=0;
24464 GNULIB_STDIO_H_NONBLOCKING=0;
24465 GNULIB_STDIO_H_SIGPIPE=0;
24467 GNULIB_VASPRINTF=0;
24472 GNULIB_VFPRINTF_POSIX=0;
24474 GNULIB_VPRINTF_POSIX=0;
24475 GNULIB_VSNPRINTF=0;
24476 GNULIB_VSPRINTF_POSIX=0;
24477 HAVE_DECL_FPURGE=1;
24478 HAVE_DECL_FSEEKO=1;
24479 HAVE_DECL_FTELLO=1;
24480 HAVE_DECL_GETDELIM=1;
24481 HAVE_DECL_GETLINE=1;
24482 HAVE_DECL_OBSTACK_PRINTF=1;
24483 HAVE_DECL_SNPRINTF=1;
24484 HAVE_DECL_VSNPRINTF=1;
24505 REPLACE_GETDELIM=0;
24507 REPLACE_OBSTACK_PRINTF=0;
24513 REPLACE_RENAMEAT=0;
24514 REPLACE_SNPRINTF=0;
24516 REPLACE_STDIO_READ_FUNCS=0;
24517 REPLACE_STDIO_WRITE_FUNCS=0;
24519 REPLACE_VASPRINTF=0;
24520 REPLACE_VDPRINTF=0;
24521 REPLACE_VFPRINTF=0;
24523 REPLACE_VSNPRINTF=0;
24524 REPLACE_VSPRINTF=0;
24527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24528 /* end confdefs.h. */
24535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24536 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
24538 gl_c_asm_opt='-c -Fa'
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
24551 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
24552 if ${gl_cv_prog_as_underscore+:} false; then :
24553 $as_echo_n "(cached) " >&6
24555 cat > conftest.c <<EOF
24557 extern "C" int foo (void);
24559 int foo(void) { return 0; }
24561 # Look for the assembly language name in the .s file.
24562 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
24563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24564 (eval $ac_try) 2>&5
24566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24567 test $ac_status = 0; }; } >/dev/null 2>&1
24568 if grep _foo conftest.$gl_asmext >/dev/null ; then
24569 gl_cv_prog_as_underscore=yes
24571 gl_cv_prog_as_underscore=no
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
24577 $as_echo "$gl_cv_prog_as_underscore" >&6; }
24578 if test $gl_cv_prog_as_underscore = yes; then
24579 USER_LABEL_PREFIX=_
24584 cat >>confdefs.h <<_ACEOF
24585 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
24588 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
24592 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
24593 if ${ac_cv_header_stdbool_h+:} false; then :
24594 $as_echo_n "(cached) " >&6
24596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597 /* end confdefs.h. */
24599 #include <stdbool.h>
24601 "error: bool is not defined"
24604 "error: false is not defined"
24607 "error: false is not 0"
24610 "error: true is not defined"
24613 "error: true is not 1"
24615 #ifndef __bool_true_false_are_defined
24616 "error: __bool_true_false_are_defined is not defined"
24619 struct s { _Bool s: 1; _Bool t; } s;
24621 char a[true == 1 ? 1 : -1];
24622 char b[false == 0 ? 1 : -1];
24623 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
24624 char d[(bool) 0.5 == true ? 1 : -1];
24625 /* See body of main program for 'e'. */
24626 char f[(_Bool) 0.0 == false ? 1 : -1];
24628 char h[sizeof (_Bool)];
24629 char i[sizeof s.t];
24630 enum { j = false, k = true, l = false * true, m = true * 256 };
24631 /* The following fails for
24632 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
24634 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
24635 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
24636 /* Catch a bug in an HP-UX C compiler. See
24637 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
24638 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
24650 /* Refer to every declared value, to avoid compiler optimizations. */
24651 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24652 + !m + !n + !o + !p + !q + !pq);
24658 if ac_fn_c_try_compile "$LINENO"; then :
24659 ac_cv_header_stdbool_h=yes
24661 ac_cv_header_stdbool_h=no
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
24666 $as_echo "$ac_cv_header_stdbool_h" >&6; }
24667 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
24668 if test "x$ac_cv_type__Bool" = xyes; then :
24670 cat >>confdefs.h <<_ACEOF
24671 #define HAVE__BOOL 1
24685 if test $ac_cv_type_long_long_int = yes; then
24686 HAVE_LONG_LONG_INT=1
24688 HAVE_LONG_LONG_INT=0
24692 if test $ac_cv_type_unsigned_long_long_int = yes; then
24693 HAVE_UNSIGNED_LONG_LONG_INT=1
24695 HAVE_UNSIGNED_LONG_LONG_INT=0
24700 if test $ac_cv_header_wchar_h = yes; then
24707 if test $ac_cv_header_inttypes_h = yes; then
24714 if test $ac_cv_header_sys_types_h = yes; then
24730 if test $gl_cv_have_include_next = yes; then
24731 gl_cv_next_stdint_h='<'stdint.h'>'
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
24734 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
24735 if ${gl_cv_next_stdint_h+:} false; then :
24736 $as_echo_n "(cached) " >&6
24739 if test $ac_cv_header_stdint_h = yes; then
24744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24745 /* end confdefs.h. */
24746 #include <stdint.h>
24749 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24750 *) gl_absname_cpp="$ac_cpp" ;;
24755 gl_dirsep_regex='[/\\]'
24758 gl_dirsep_regex='\/'
24761 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24762 gl_header_literal_regex=`echo 'stdint.h' \
24763 | sed -e "$gl_make_literal_regex_sed"`
24764 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24765 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24771 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24772 sed -n "$gl_absolute_header_sed"`
24774 gl_header=$gl_cv_absolute_stdint_h
24775 gl_cv_next_stdint_h='"'$gl_header'"'
24777 gl_cv_next_stdint_h='<'stdint.h'>'
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
24783 $as_echo "$gl_cv_next_stdint_h" >&6; }
24785 NEXT_STDINT_H=$gl_cv_next_stdint_h
24787 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24789 gl_next_as_first_directive='<'stdint.h'>'
24791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24792 gl_next_as_first_directive=$gl_cv_next_stdint_h
24794 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
24799 if test $ac_cv_header_stdint_h = yes; then
24806 if test $ac_cv_header_stdint_h = yes; then
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
24808 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
24809 if ${gl_cv_header_working_stdint_h+:} false; then :
24810 $as_echo_n "(cached) " >&6
24812 gl_cv_header_working_stdint_h=no
24813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814 /* end confdefs.h. */
24817 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
24818 #include <stdint.h>
24819 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
24820 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
24821 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
24825 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24826 included before <wchar.h>. */
24827 #include <stddef.h>
24828 #include <signal.h>
24830 # include <stdio.h>
24832 # include <wchar.h>
24837 int8_t a1 = INT8_MAX;
24838 int8_t a1min = INT8_MIN;
24841 int16_t a2 = INT16_MAX;
24842 int16_t a2min = INT16_MIN;
24845 int32_t a3 = INT32_MAX;
24846 int32_t a3min = INT32_MIN;
24849 int64_t a4 = INT64_MAX;
24850 int64_t a4min = INT64_MIN;
24853 uint8_t b1 = UINT8_MAX;
24855 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
24858 uint16_t b2 = UINT16_MAX;
24861 uint32_t b3 = UINT32_MAX;
24864 uint64_t b4 = UINT64_MAX;
24866 int_least8_t c1 = INT8_C (0x7f);
24867 int_least8_t c1max = INT_LEAST8_MAX;
24868 int_least8_t c1min = INT_LEAST8_MIN;
24869 int_least16_t c2 = INT16_C (0x7fff);
24870 int_least16_t c2max = INT_LEAST16_MAX;
24871 int_least16_t c2min = INT_LEAST16_MIN;
24872 int_least32_t c3 = INT32_C (0x7fffffff);
24873 int_least32_t c3max = INT_LEAST32_MAX;
24874 int_least32_t c3min = INT_LEAST32_MIN;
24875 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
24876 int_least64_t c4max = INT_LEAST64_MAX;
24877 int_least64_t c4min = INT_LEAST64_MIN;
24878 uint_least8_t d1 = UINT8_C (0xff);
24879 uint_least8_t d1max = UINT_LEAST8_MAX;
24880 uint_least16_t d2 = UINT16_C (0xffff);
24881 uint_least16_t d2max = UINT_LEAST16_MAX;
24882 uint_least32_t d3 = UINT32_C (0xffffffff);
24883 uint_least32_t d3max = UINT_LEAST32_MAX;
24884 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
24885 uint_least64_t d4max = UINT_LEAST64_MAX;
24886 int_fast8_t e1 = INT_FAST8_MAX;
24887 int_fast8_t e1min = INT_FAST8_MIN;
24888 int_fast16_t e2 = INT_FAST16_MAX;
24889 int_fast16_t e2min = INT_FAST16_MIN;
24890 int_fast32_t e3 = INT_FAST32_MAX;
24891 int_fast32_t e3min = INT_FAST32_MIN;
24892 int_fast64_t e4 = INT_FAST64_MAX;
24893 int_fast64_t e4min = INT_FAST64_MIN;
24894 uint_fast8_t f1 = UINT_FAST8_MAX;
24895 uint_fast16_t f2 = UINT_FAST16_MAX;
24896 uint_fast32_t f3 = UINT_FAST32_MAX;
24897 uint_fast64_t f4 = UINT_FAST64_MAX;
24899 intptr_t g = INTPTR_MAX;
24900 intptr_t gmin = INTPTR_MIN;
24903 uintptr_t h = UINTPTR_MAX;
24905 intmax_t i = INTMAX_MAX;
24906 uintmax_t j = UINTMAX_MAX;
24908 #include <limits.h> /* for CHAR_BIT */
24909 #define TYPE_MINIMUM(t) \
24910 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
24911 #define TYPE_MAXIMUM(t) \
24912 ((t) ((t) 0 < (t) -1 \
24914 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
24917 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
24918 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
24920 /* Detect bug in FreeBSD 6.0 / ia64. */
24921 int check_SIG_ATOMIC:
24922 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
24923 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
24925 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
24927 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
24928 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
24930 /* Detect bug in mingw. */
24932 WINT_MIN == TYPE_MINIMUM (wint_t)
24933 && WINT_MAX == TYPE_MAXIMUM (wint_t)
24936 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
24938 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
24939 int check_UINT16_C:
24940 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
24942 /* Detect bugs in OpenBSD 3.9 stdint.h. */
24944 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
24947 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
24950 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
24953 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
24955 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
24956 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
24957 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
24958 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
24959 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
24960 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
24961 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
24962 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
24963 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
24964 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
24965 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
24976 if ac_fn_c_try_compile "$LINENO"; then :
24977 if test "$cross_compiling" = yes; then :
24978 gl_cv_header_working_stdint_h=yes
24981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24985 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
24986 #include <stdint.h>
24989 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24990 included before <wchar.h>. */
24991 #include <stddef.h>
24992 #include <signal.h>
24994 # include <stdio.h>
24996 # include <wchar.h>
25001 #include <string.h>
25002 #define MVAL(macro) MVAL1(macro)
25003 #define MVAL1(expression) #expression
25004 static const char *macro_values[] =
25038 for (mv = macro_values; *mv != NULL; mv++)
25040 const char *value = *mv;
25041 /* Test whether it looks like a cast expression. */
25042 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
25043 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
25044 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
25045 || strncmp (value, "((int)"/*)*/, 6) == 0
25046 || strncmp (value, "((signed short)"/*)*/, 15) == 0
25047 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
25048 return mv - macro_values + 1;
25056 if ac_fn_c_try_run "$LINENO"; then :
25057 gl_cv_header_working_stdint_h=yes
25059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25060 conftest.$ac_objext conftest.beam conftest.$ac_ext
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
25069 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
25071 if test "$gl_cv_header_working_stdint_h" = yes; then
25074 for ac_header in sys/inttypes.h sys/bitypes.h
25076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25077 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25079 cat >>confdefs.h <<_ACEOF
25080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25087 if test $ac_cv_header_sys_inttypes_h = yes; then
25088 HAVE_SYS_INTTYPES_H=1
25090 HAVE_SYS_INTTYPES_H=0
25093 if test $ac_cv_header_sys_bitypes_h = yes; then
25094 HAVE_SYS_BITYPES_H=1
25096 HAVE_SYS_BITYPES_H=0
25102 if test $APPLE_UNIVERSAL_BUILD = 0; then
25105 for gltype in ptrdiff_t size_t ; do
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
25107 $as_echo_n "checking for bit size of $gltype... " >&6; }
25108 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
25109 $as_echo_n "(cached) " >&6
25111 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
25112 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25113 included before <wchar.h>. */
25114 #include <stddef.h>
25115 #include <signal.h>
25117 # include <stdio.h>
25119 # include <wchar.h>
25122 #include <limits.h>"; then :
25128 eval gl_cv_bitsizeof_${gltype}=\$result
25131 eval ac_res=\$gl_cv_bitsizeof_${gltype}
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25133 $as_echo "$ac_res" >&6; }
25134 eval result=\$gl_cv_bitsizeof_${gltype}
25135 if test $result = unknown; then
25138 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25139 cat >>confdefs.h <<_ACEOF
25140 #define BITSIZEOF_${GLTYPE} $result
25143 eval BITSIZEOF_${GLTYPE}=\$result
25150 for gltype in sig_atomic_t wchar_t wint_t ; do
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
25152 $as_echo_n "checking for bit size of $gltype... " >&6; }
25153 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
25154 $as_echo_n "(cached) " >&6
25156 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
25157 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25158 included before <wchar.h>. */
25159 #include <stddef.h>
25160 #include <signal.h>
25162 # include <stdio.h>
25164 # include <wchar.h>
25167 #include <limits.h>"; then :
25173 eval gl_cv_bitsizeof_${gltype}=\$result
25176 eval ac_res=\$gl_cv_bitsizeof_${gltype}
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25178 $as_echo "$ac_res" >&6; }
25179 eval result=\$gl_cv_bitsizeof_${gltype}
25180 if test $result = unknown; then
25183 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25184 cat >>confdefs.h <<_ACEOF
25185 #define BITSIZEOF_${GLTYPE} $result
25188 eval BITSIZEOF_${GLTYPE}=\$result
25194 for gltype in sig_atomic_t wchar_t wint_t ; do
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
25196 $as_echo_n "checking whether $gltype is signed... " >&6; }
25197 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
25198 $as_echo_n "(cached) " >&6
25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25201 /* end confdefs.h. */
25203 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25204 included before <wchar.h>. */
25205 #include <stddef.h>
25206 #include <signal.h>
25208 # include <stdio.h>
25210 # include <wchar.h>
25213 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
25222 if ac_fn_c_try_compile "$LINENO"; then :
25227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228 eval gl_cv_type_${gltype}_signed=\$result
25231 eval ac_res=\$gl_cv_type_${gltype}_signed
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25233 $as_echo "$ac_res" >&6; }
25234 eval result=\$gl_cv_type_${gltype}_signed
25235 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25236 if test "$result" = yes; then
25237 cat >>confdefs.h <<_ACEOF
25238 #define HAVE_SIGNED_${GLTYPE} 1
25241 eval HAVE_SIGNED_${GLTYPE}=1
25243 eval HAVE_SIGNED_${GLTYPE}=0
25248 gl_cv_type_ptrdiff_t_signed=yes
25249 gl_cv_type_size_t_signed=no
25250 if test $APPLE_UNIVERSAL_BUILD = 0; then
25253 for gltype in ptrdiff_t size_t ; do
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
25255 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25256 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
25257 $as_echo_n "(cached) " >&6
25259 eval gl_cv_type_${gltype}_suffix=no
25260 eval result=\$gl_cv_type_${gltype}_signed
25261 if test "$result" = yes; then
25266 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25268 '') gltype1='int';;
25269 l) gltype1='long int';;
25270 ll) gltype1='long long int';;
25271 i64) gltype1='__int64';;
25272 u) gltype1='unsigned int';;
25273 ul) gltype1='unsigned long int';;
25274 ull) gltype1='unsigned long long int';;
25275 ui64)gltype1='unsigned __int64';;
25277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25278 /* end confdefs.h. */
25280 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25281 included before <wchar.h>. */
25282 #include <stddef.h>
25283 #include <signal.h>
25285 # include <stdio.h>
25287 # include <wchar.h>
25290 extern $gltype foo;
25291 extern $gltype1 foo;
25300 if ac_fn_c_try_compile "$LINENO"; then :
25301 eval gl_cv_type_${gltype}_suffix=\$glsuf
25303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25304 eval result=\$gl_cv_type_${gltype}_suffix
25305 test "$result" != no && break
25308 eval ac_res=\$gl_cv_type_${gltype}_suffix
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25310 $as_echo "$ac_res" >&6; }
25311 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25312 eval result=\$gl_cv_type_${gltype}_suffix
25313 test "$result" = no && result=
25314 eval ${GLTYPE}_SUFFIX=\$result
25315 cat >>confdefs.h <<_ACEOF
25316 #define ${GLTYPE}_SUFFIX $result
25325 for gltype in sig_atomic_t wchar_t wint_t ; do
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
25327 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25328 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
25329 $as_echo_n "(cached) " >&6
25331 eval gl_cv_type_${gltype}_suffix=no
25332 eval result=\$gl_cv_type_${gltype}_signed
25333 if test "$result" = yes; then
25338 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25340 '') gltype1='int';;
25341 l) gltype1='long int';;
25342 ll) gltype1='long long int';;
25343 i64) gltype1='__int64';;
25344 u) gltype1='unsigned int';;
25345 ul) gltype1='unsigned long int';;
25346 ull) gltype1='unsigned long long int';;
25347 ui64)gltype1='unsigned __int64';;
25349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25350 /* end confdefs.h. */
25352 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25353 included before <wchar.h>. */
25354 #include <stddef.h>
25355 #include <signal.h>
25357 # include <stdio.h>
25359 # include <wchar.h>
25362 extern $gltype foo;
25363 extern $gltype1 foo;
25372 if ac_fn_c_try_compile "$LINENO"; then :
25373 eval gl_cv_type_${gltype}_suffix=\$glsuf
25375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25376 eval result=\$gl_cv_type_${gltype}_suffix
25377 test "$result" != no && break
25380 eval ac_res=\$gl_cv_type_${gltype}_suffix
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25382 $as_echo "$ac_res" >&6; }
25383 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25384 eval result=\$gl_cv_type_${gltype}_suffix
25385 test "$result" = no && result=
25386 eval ${GLTYPE}_SUFFIX=\$result
25387 cat >>confdefs.h <<_ACEOF
25388 #define ${GLTYPE}_SUFFIX $result
25395 if test $BITSIZEOF_WINT_T -lt 32; then
25396 BITSIZEOF_WINT_T=32
25402 if test -n "$STDINT_H"; then
25403 GL_GENERATE_STDINT_H_TRUE=
25404 GL_GENERATE_STDINT_H_FALSE='#'
25406 GL_GENERATE_STDINT_H_TRUE='#'
25407 GL_GENERATE_STDINT_H_FALSE=
25412 REPLACE_STRERROR_0=0
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
25414 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
25415 if ${gl_cv_func_strerror_0_works+:} false; then :
25416 $as_echo_n "(cached) " >&6
25418 if test "$cross_compiling" = yes; then :
25420 # Guess yes on glibc systems.
25421 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
25422 # If we don't know, assume the worst.
25423 *) gl_cv_func_strerror_0_works="guessing no" ;;
25427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25428 /* end confdefs.h. */
25429 #include <string.h>
25438 str = strerror (0);
25439 if (!*str) result |= 1;
25440 if (errno) result |= 2;
25441 if (strstr (str, "nknown") || strstr (str, "ndefined"))
25448 if ac_fn_c_try_run "$LINENO"; then :
25449 gl_cv_func_strerror_0_works=yes
25451 gl_cv_func_strerror_0_works=no
25453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25454 conftest.$ac_objext conftest.beam conftest.$ac_ext
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
25460 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
25461 case "$gl_cv_func_strerror_0_works" in
25464 REPLACE_STRERROR_0=1
25466 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
25482 if test $gl_cv_have_include_next = yes; then
25483 gl_cv_next_string_h='<'string.h'>'
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
25486 $as_echo_n "checking absolute name of <string.h>... " >&6; }
25487 if ${gl_cv_next_string_h+:} false; then :
25488 $as_echo_n "(cached) " >&6
25493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25494 /* end confdefs.h. */
25495 #include <string.h>
25498 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25499 *) gl_absname_cpp="$ac_cpp" ;;
25504 gl_dirsep_regex='[/\\]'
25507 gl_dirsep_regex='\/'
25510 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25511 gl_header_literal_regex=`echo 'string.h' \
25512 | sed -e "$gl_make_literal_regex_sed"`
25513 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25514 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25520 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25521 sed -n "$gl_absolute_header_sed"`
25523 gl_header=$gl_cv_absolute_string_h
25524 gl_cv_next_string_h='"'$gl_header'"'
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
25529 $as_echo "$gl_cv_next_string_h" >&6; }
25531 NEXT_STRING_H=$gl_cv_next_string_h
25533 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25535 gl_next_as_first_directive='<'string.h'>'
25537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25538 gl_next_as_first_directive=$gl_cv_next_string_h
25540 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
25547 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
25548 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25550 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25551 if eval \${$as_gl_Symbol+:} false; then :
25552 $as_echo_n "(cached) " >&6
25554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25555 /* end confdefs.h. */
25556 #include <string.h>
25567 if ac_fn_c_try_compile "$LINENO"; then :
25568 eval "$as_gl_Symbol=yes"
25570 eval "$as_gl_Symbol=no"
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25574 eval ac_res=\$$as_gl_Symbol
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25576 $as_echo "$ac_res" >&6; }
25577 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25578 cat >>confdefs.h <<_ACEOF
25579 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25582 eval ac_cv_have_decl_$gl_func=yes
25587 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
25588 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
25594 cat >>confdefs.h <<_ACEOF
25595 #define HAVE_DECL_STRNLEN $ac_have_decl
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25599 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25600 if ${ac_cv_header_stat_broken+:} false; then :
25601 $as_echo_n "(cached) " >&6
25603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h. */
25605 #include <sys/types.h>
25606 #include <sys/stat.h>
25608 #if defined S_ISBLK && defined S_IFDIR
25609 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25612 #if defined S_ISBLK && defined S_IFCHR
25613 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25616 #if defined S_ISLNK && defined S_IFREG
25617 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25620 #if defined S_ISSOCK && defined S_IFREG
25621 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25625 if ac_fn_c_try_compile "$LINENO"; then :
25626 ac_cv_header_stat_broken=no
25628 ac_cv_header_stat_broken=yes
25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25633 $as_echo "$ac_cv_header_stat_broken" >&6; }
25634 if test $ac_cv_header_stat_broken = yes; then
25636 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25642 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25643 if test "x$ac_cv_type_mode_t" = xyes; then :
25647 cat >>confdefs.h <<_ACEOF
25671 if test $gl_cv_have_include_next = yes; then
25672 gl_cv_next_sys_types_h='<'sys/types.h'>'
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
25675 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
25676 if ${gl_cv_next_sys_types_h+:} false; then :
25677 $as_echo_n "(cached) " >&6
25682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25683 /* end confdefs.h. */
25684 #include <sys/types.h>
25687 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25688 *) gl_absname_cpp="$ac_cpp" ;;
25693 gl_dirsep_regex='[/\\]'
25696 gl_dirsep_regex='\/'
25699 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25700 gl_header_literal_regex=`echo 'sys/types.h' \
25701 | sed -e "$gl_make_literal_regex_sed"`
25702 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25703 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25709 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25710 sed -n "$gl_absolute_header_sed"`
25712 gl_header=$gl_cv_absolute_sys_types_h
25713 gl_cv_next_sys_types_h='"'$gl_header'"'
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
25718 $as_echo "$gl_cv_next_sys_types_h" >&6; }
25720 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
25722 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25724 gl_next_as_first_directive='<'sys/types.h'>'
25726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25727 gl_next_as_first_directive=$gl_cv_next_sys_types_h
25729 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
25743 GNULIB_NANOSLEEP=0;
25748 HAVE_DECL_LOCALTIME_R=1;
25752 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
25753 REPLACE_MKTIME=GNULIB_PORTCHECK;
25754 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
25755 REPLACE_TIMEGM=GNULIB_PORTCHECK;
25757 : ${GNULIB_GETTIMEOFDAY=0};
25759 REPLACE_LOCALTIME=0;
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
25764 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
25765 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
25766 $as_echo_n "(cached) " >&6
25768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25769 /* end confdefs.h. */
25775 static struct timespec x; x.tv_sec = x.tv_nsec;
25780 if ac_fn_c_try_compile "$LINENO"; then :
25781 gl_cv_sys_struct_timespec_in_time_h=yes
25783 gl_cv_sys_struct_timespec_in_time_h=no
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
25788 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
25790 TIME_H_DEFINES_STRUCT_TIMESPEC=0
25791 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
25792 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
25793 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
25794 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
25795 TIME_H_DEFINES_STRUCT_TIMESPEC=1
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
25798 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
25799 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
25800 $as_echo_n "(cached) " >&6
25802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h. */
25804 #include <sys/time.h>
25809 static struct timespec x; x.tv_sec = x.tv_nsec;
25814 if ac_fn_c_try_compile "$LINENO"; then :
25815 gl_cv_sys_struct_timespec_in_sys_time_h=yes
25817 gl_cv_sys_struct_timespec_in_sys_time_h=no
25819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
25822 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
25823 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
25824 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
25827 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
25828 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
25829 $as_echo_n "(cached) " >&6
25831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832 /* end confdefs.h. */
25833 #include <pthread.h>
25838 static struct timespec x; x.tv_sec = x.tv_nsec;
25843 if ac_fn_c_try_compile "$LINENO"; then :
25844 gl_cv_sys_struct_timespec_in_pthread_h=yes
25846 gl_cv_sys_struct_timespec_in_pthread_h=no
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
25851 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
25852 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
25853 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
25856 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
25857 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
25858 $as_echo_n "(cached) " >&6
25860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25861 /* end confdefs.h. */
25862 #include <unistd.h>
25867 static struct timespec x; x.tv_sec = x.tv_nsec;
25872 if ac_fn_c_try_compile "$LINENO"; then :
25873 gl_cv_sys_struct_timespec_in_unistd_h=yes
25875 gl_cv_sys_struct_timespec_in_unistd_h=no
25877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
25880 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
25881 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
25882 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
25903 if test $gl_cv_have_include_next = yes; then
25904 gl_cv_next_time_h='<'time.h'>'
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
25907 $as_echo_n "checking absolute name of <time.h>... " >&6; }
25908 if ${gl_cv_next_time_h+:} false; then :
25909 $as_echo_n "(cached) " >&6
25914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h. */
25919 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25920 *) gl_absname_cpp="$ac_cpp" ;;
25925 gl_dirsep_regex='[/\\]'
25928 gl_dirsep_regex='\/'
25931 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25932 gl_header_literal_regex=`echo 'time.h' \
25933 | sed -e "$gl_make_literal_regex_sed"`
25934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25941 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25942 sed -n "$gl_absolute_header_sed"`
25944 gl_header=$gl_cv_absolute_time_h
25945 gl_cv_next_time_h='"'$gl_header'"'
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
25950 $as_echo "$gl_cv_next_time_h" >&6; }
25952 NEXT_TIME_H=$gl_cv_next_time_h
25954 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25955 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25956 gl_next_as_first_directive='<'time.h'>'
25958 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25959 gl_next_as_first_directive=$gl_cv_next_time_h
25961 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
25974 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
25979 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
25984 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;}
25991 if test "$HAVE_LIBUNISTRING" = yes; then
25992 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
25993 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
25994 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
25997 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
25998 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
26004 cat >>confdefs.h <<_ACEOF
26005 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
26008 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
26009 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
26015 cat >>confdefs.h <<_ACEOF
26016 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
26019 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
26020 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
26026 cat >>confdefs.h <<_ACEOF
26027 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
26030 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
26031 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
26037 cat >>confdefs.h <<_ACEOF
26038 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
26041 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
26042 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
26048 cat >>confdefs.h <<_ACEOF
26049 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
26052 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
26053 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
26059 cat >>confdefs.h <<_ACEOF
26060 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
26063 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
26064 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
26070 cat >>confdefs.h <<_ACEOF
26071 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
26074 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
26075 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
26081 cat >>confdefs.h <<_ACEOF
26082 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
26085 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
26086 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
26092 cat >>confdefs.h <<_ACEOF
26093 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
26096 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
26097 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
26103 cat >>confdefs.h <<_ACEOF
26104 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
26107 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
26108 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
26114 cat >>confdefs.h <<_ACEOF
26115 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
26118 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
26119 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
26125 cat >>confdefs.h <<_ACEOF
26126 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
26131 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
26132 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
26133 $as_echo_n "(cached) " >&6
26135 gl_cv_header_wchar_h_correct_inline=yes
26136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26137 /* end confdefs.h. */
26139 #define wcstod renamed_wcstod
26140 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26142 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26143 included before <wchar.h>. */
26144 #include <stddef.h>
26148 extern int zero (void);
26149 int main () { return zero(); }
26152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26153 (eval $ac_compile) 2>&5
26155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156 test $ac_status = 0; }; then
26157 mv conftest.$ac_objext conftest1.$ac_objext
26158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26159 /* end confdefs.h. */
26161 #define wcstod renamed_wcstod
26162 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26164 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26165 included before <wchar.h>. */
26166 #include <stddef.h>
26170 int zero (void) { return 0; }
26173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26174 (eval $ac_compile) 2>&5
26176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26177 test $ac_status = 0; }; then
26178 mv conftest.$ac_objext conftest2.$ac_objext
26179 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
26182 gl_cv_header_wchar_h_correct_inline=no
26186 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
26190 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
26191 if test $gl_cv_header_wchar_h_correct_inline = no; then
26192 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
26193 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
26194 C99 mode. You have four options:
26195 - Add the flag -fgnu89-inline to CC and reconfigure, or
26196 - Fix your include files, using parts of
26197 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
26198 - Use a gcc version older than 4.3, or
26199 - Don't use the flags -std=c99 or -std=gnu99.
26200 Configuration aborted." "$LINENO" 5
26207 if test $ac_cv_header_features_h = yes; then
26218 GL_COND_LIBTOOL_TRUE=
26219 GL_COND_LIBTOOL_FALSE='#'
26221 GL_COND_LIBTOOL_TRUE='#'
26222 GL_COND_LIBTOOL_FALSE=
26225 gl_cond_libtool=false
26228 gl_m4_base='gnulib-m4'
26238 gl_source_base='gnulib-lib'
26244 if test $ac_cv_func_alloca_works = no; then
26251 # Define an additional variable used in the Makefile substitution.
26253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254 /* end confdefs.h. */
26256 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
26261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26262 $EGREP "Need own alloca" >/dev/null 2>&1; then :
26270 if test -n "$ALLOCA_H"; then
26271 GL_GENERATE_ALLOCA_H_TRUE=
26272 GL_GENERATE_ALLOCA_H_FALSE='#'
26274 GL_GENERATE_ALLOCA_H_TRUE='#'
26275 GL_GENERATE_ALLOCA_H_FALSE=
26282 if test "$CXX_CHOICE" = no; then
26285 if test -z "$CXX"; then
26286 if test -n "$CCC"; then
26289 if test -n "$ac_tool_prefix"; then
26290 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
26292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26295 $as_echo_n "checking for $ac_word... " >&6; }
26296 if ${ac_cv_prog_CXX+:} false; then :
26297 $as_echo_n "(cached) " >&6
26299 if test -n "$CXX"; then
26300 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26303 for as_dir in $PATH
26306 test -z "$as_dir" && as_dir=.
26307 for ac_exec_ext in '' $ac_executable_extensions; do
26308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26309 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26319 CXX=$ac_cv_prog_CXX
26320 if test -n "$CXX"; then
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26322 $as_echo "$CXX" >&6; }
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26325 $as_echo "no" >&6; }
26329 test -n "$CXX" && break
26332 if test -z "$CXX"; then
26334 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
26336 # Extract the first word of "$ac_prog", so it can be a program name with args.
26337 set dummy $ac_prog; ac_word=$2
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26339 $as_echo_n "checking for $ac_word... " >&6; }
26340 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26341 $as_echo_n "(cached) " >&6
26343 if test -n "$ac_ct_CXX"; then
26344 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26347 for as_dir in $PATH
26350 test -z "$as_dir" && as_dir=.
26351 for ac_exec_ext in '' $ac_executable_extensions; do
26352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26353 ac_cv_prog_ac_ct_CXX="$ac_prog"
26354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26363 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26364 if test -n "$ac_ct_CXX"; then
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26366 $as_echo "$ac_ct_CXX" >&6; }
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26369 $as_echo "no" >&6; }
26373 test -n "$ac_ct_CXX" && break
26376 if test "x$ac_ct_CXX" = x; then
26379 case $cross_compiling:$ac_tool_warned in
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26383 ac_tool_warned=yes ;;
26391 if test "$CXX" != no; then
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
26393 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
26395 ac_cpp='$CXXCPP $CPPFLAGS'
26396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26402 echo 'int main () { return 0; }' > conftest.$ac_ext
26403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26404 (eval $ac_link) 2>&5
26406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26407 test $ac_status = 0; } && test -s conftest$ac_exeext; then
26408 gl_cv_prog_ansicxx_works=yes
26409 if (./conftest; exit) 2>/dev/null; then
26410 gl_cv_prog_ansicxx_cross=no
26412 gl_cv_prog_ansicxx_cross=yes
26415 gl_cv_prog_ansicxx_works=no
26419 ac_cpp='$CPP $CPPFLAGS'
26420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
26425 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
26426 if test $gl_cv_prog_ansicxx_works = no; then
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
26430 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
26432 ac_cpp='$CXXCPP $CPPFLAGS'
26433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26437 cat <<EOF > conftest.$ac_ext
26438 #include <iostream>
26439 namespace test { using namespace std; }
26441 int main () { return 0; }
26443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26444 (eval $ac_link) 2>&5
26446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26447 test $ac_status = 0; } && test -s conftest$ac_exeext; then
26448 gl_cv_prog_ansicxx_namespaces=yes
26450 gl_cv_prog_ansicxx_namespaces=no
26454 ac_cpp='$CPP $CPPFLAGS'
26455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
26460 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
26461 if test $gl_cv_prog_ansicxx_namespaces = no; then
26469 if test "$CXX" != no; then
26478 if test "$CXX" != no; then
26480 depcc="$CXX" am_compiler_list=
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26483 $as_echo_n "checking dependency style of $depcc... " >&6; }
26484 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
26485 $as_echo_n "(cached) " >&6
26487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26488 # We make a subdir and do the tests there. Otherwise we can end up
26489 # making bogus files that we don't know about and never remove. For
26490 # instance it was reported that on HP-UX the gcc test will end up
26491 # making a dummy file named 'D' -- because '-MD' means "put the output
26493 rm -rf conftest.dir
26495 # Copy depcomp to subdir because otherwise we won't find it if we're
26496 # using a relative directory.
26497 cp "$am_depcomp" conftest.dir
26499 # We will build objects and dependencies in a subdirectory because
26500 # it helps to detect inapplicable dependency modes. For instance
26501 # both Tru64's cc and ICC support -MD to output dependencies as a
26502 # side effect of compilation, but ICC will put the dependencies in
26503 # the current directory while Tru64 will put them in the object
26507 am_cv_CXX_dependencies_compiler_type=none
26508 if test "$am_compiler_list" = ""; then
26509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26511 am__universal=false
26512 case " $depcc " in #(
26513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26516 for depmode in $am_compiler_list; do
26517 # Setup a source with many dependencies, because some compilers
26518 # like to wrap large dependency lists on column 80 (with \), and
26519 # we should not choose a depcomp mode which is confused by this.
26521 # We need to recreate these files for each test, as the compiler may
26522 # overwrite some of them when testing with obscure command lines.
26523 # This happens at least with the AIX C compiler.
26525 for i in 1 2 3 4 5 6; do
26526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26527 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26528 # Solaris 10 /bin/sh.
26529 echo '/* dummy */' > sub/conftst$i.h
26531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26533 # We check with '-c' and '-o' for the sake of the "dashmstdout"
26534 # mode. It turns out that the SunPro C++ compiler does not properly
26535 # handle '-M -o', and we need to detect this. Also, some Intel
26536 # versions had trouble with output in subdirs.
26537 am__obj=sub/conftest.${OBJEXT-o}
26538 am__minus_obj="-o $am__obj"
26541 # This depmode causes a compiler race in universal mode.
26542 test "$am__universal" = false || continue
26545 # After this tag, mechanisms are not by side-effect, so they'll
26546 # only be used when explicitly requested.
26547 if test "x$enable_dependency_tracking" = xyes; then
26553 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26554 # This compiler won't grok '-c -o', but also, the minuso test has
26555 # not run yet. These depmodes are late enough in the game, and
26556 # so weak that their functioning should not be impacted.
26557 am__obj=conftest.${OBJEXT-o}
26562 if depmode=$depmode \
26563 source=sub/conftest.c object=$am__obj \
26564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26566 >/dev/null 2>conftest.err &&
26567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26571 # icc doesn't choke on unknown options, it will just issue warnings
26572 # or remarks (even with -Werror). So we grep stderr for any message
26573 # that says an option was ignored or not supported.
26574 # When given -MP, icc 7.0 and 7.1 complain thusly:
26575 # icc: Command line warning: ignoring option '-M'; no argument required
26576 # The diagnosis changed in icc 8.0:
26577 # icc: Command line remark: option '-MP' not supported
26578 if (grep 'ignoring option' conftest.err ||
26579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26580 am_cv_CXX_dependencies_compiler_type=$depmode
26587 rm -rf conftest.dir
26589 am_cv_CXX_dependencies_compiler_type=none
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26594 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26595 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26598 test "x$enable_dependency_tracking" != xno \
26599 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26600 am__fastdepCXX_TRUE=
26601 am__fastdepCXX_FALSE='#'
26603 am__fastdepCXX_TRUE='#'
26604 am__fastdepCXX_FALSE=
26610 am__fastdepCXX_TRUE=
26611 am__fastdepCXX_FALSE='#'
26613 am__fastdepCXX_TRUE='#'
26614 am__fastdepCXX_FALSE=
26620 for ac_func in atexit
26622 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
26623 if test "x$ac_cv_func_atexit" = xyes; then :
26624 cat >>confdefs.h <<_ACEOF
26625 #define HAVE_ATEXIT 1
26632 if test $ac_cv_func_atexit = no; then
26641 gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
26650 if test $ac_cv_func_canonicalize_file_name = no; then
26651 HAVE_CANONICALIZE_FILE_NAME=0
26652 if test $ac_cv_func_realpath = no; then
26655 case "$gl_cv_func_realpath_works" in
26657 *) REPLACE_REALPATH=1 ;;
26661 case "$gl_cv_func_realpath_works" in
26665 REPLACE_CANONICALIZE_FILE_NAME=1
26671 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
26680 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
26685 cat >>confdefs.h <<_ACEOF
26686 #define GNULIB_CANONICALIZE_LGPL 1
26695 GNULIB_CANONICALIZE_FILE_NAME=1
26701 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
26716 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
26722 if test "x$datarootdir" = x; then
26723 datarootdir='${datadir}'
26726 if test "x$docdir" = x; then
26727 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
26730 if test "x$htmldir" = x; then
26731 htmldir='${docdir}'
26734 if test "x$dvidir" = x; then
26738 if test "x$pdfdir" = x; then
26742 if test "x$psdir" = x; then
26746 if test "x$lispdir" = x; then
26747 lispdir='${datarootdir}/emacs/site-lisp'
26750 if test "x$localedir" = x; then
26751 localedir='${datarootdir}/locale'
26754 if test "x$runstatedir" = x; then
26755 runstatedir='${localstatedir}/run'
26759 pkglibexecdir='${libexecdir}/${PACKAGE}'
26763 ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
26768 $as_echo_n "checking whether // is distinct from /... " >&6; }
26769 if ${gl_cv_double_slash_root+:} false; then :
26770 $as_echo_n "(cached) " >&6
26772 if test x"$cross_compiling" = xyes ; then
26773 # When cross-compiling, there is no way to tell whether // is special
26774 # short of a list of hosts. However, the only known hosts to date
26775 # that have a distinct // are Apollo DomainOS (too old to port to),
26776 # Cygwin, and z/OS. If anyone knows of another system for which // has
26777 # special semantics and is distinct from /, please report it to
26778 # <bug-gnulib@gnu.org>.
26780 *-cygwin | i370-ibm-openedition)
26781 gl_cv_double_slash_root=yes ;;
26783 # Be optimistic and assume that / and // are the same when we
26785 gl_cv_double_slash_root='unknown, assuming no' ;;
26788 set x `ls -di / // 2>/dev/null`
26789 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
26790 gl_cv_double_slash_root=no
26792 gl_cv_double_slash_root=yes
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
26797 $as_echo "$gl_cv_double_slash_root" >&6; }
26798 if test "$gl_cv_double_slash_root" = yes; then
26800 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
26816 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
26823 $as_echo_n "checking for error_at_line... " >&6; }
26824 if ${ac_cv_lib_error_at_line+:} false; then :
26825 $as_echo_n "(cached) " >&6
26827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26828 /* end confdefs.h. */
26833 error_at_line (0, 0, "", 0, "an error occurred");
26838 if ac_fn_c_try_link "$LINENO"; then :
26839 ac_cv_lib_error_at_line=yes
26841 ac_cv_lib_error_at_line=no
26843 rm -f core conftest.err conftest.$ac_objext \
26844 conftest$ac_exeext conftest.$ac_ext
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
26847 $as_echo "$ac_cv_lib_error_at_line" >&6; }
26849 if test $ac_cv_lib_error_at_line = no; then
26858 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
26867 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
26871 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
26876 cat >>confdefs.h <<_ACEOF
26877 #define GNULIB_FWRITEERROR 1
26886 if test $REPLACE_GETOPT = 1; then
26895 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
26905 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
26910 GNULIB_GL_UNISTD_H_GETOPT=1
26915 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
26924 if test -n "$gl_replace_getopt"; then
26928 if test $REPLACE_GETOPT = 1; then
26932 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
26938 if test $REPLACE_GETOPT = 1; then
26947 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
26957 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
26962 GNULIB_GL_UNISTD_H_GETOPT=1
26973 gl_gettimeofday_timezone=void
26974 if test $ac_cv_func_gettimeofday != yes; then
26975 HAVE_GETTIMEOFDAY=0
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
26981 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
26982 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
26983 $as_echo_n "(cached) " >&6
26985 if test "$cross_compiling" = yes; then :
26986 # When cross-compiling:
26988 # Guess all is fine on glibc systems.
26989 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
26990 # If we don't know, assume the worst.
26991 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
26995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26996 /* end confdefs.h. */
26997 #include <string.h>
26998 #include <sys/time.h>
27000 #include <stdlib.h>
27008 struct tm saved_lt;
27010 lt = localtime (&t);
27012 gettimeofday (&tv, NULL);
27013 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
27019 if ac_fn_c_try_run "$LINENO"; then :
27020 gl_cv_func_gettimeofday_clobber=no
27022 gl_cv_func_gettimeofday_clobber=yes
27024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27025 conftest.$ac_objext conftest.beam conftest.$ac_ext
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
27030 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
27032 case "$gl_cv_func_gettimeofday_clobber" in
27034 REPLACE_GETTIMEOFDAY=1
27037 REPLACE_LOCALTIME=1
27040 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
27046 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
27047 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
27048 $as_echo_n "(cached) " >&6
27050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27051 /* end confdefs.h. */
27052 #include <sys/time.h>
27054 int gettimeofday (struct timeval *restrict, void *restrict);
27059 /* glibc uses struct timezone * rather than the POSIX void *
27060 if _GNU_SOURCE is defined. However, since the only portable
27061 use of gettimeofday uses NULL as the second parameter, and
27062 since the glibc definition is actually more typesafe, it is
27063 not worth wrapping this to get a compliant signature. */
27064 int (*f) (struct timeval *restrict, void *restrict)
27067 return !(x | c.tv_sec | c.tv_usec);
27073 if ac_fn_c_try_compile "$LINENO"; then :
27074 gl_cv_func_gettimeofday_posix_signature=yes
27076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27077 /* end confdefs.h. */
27078 #include <sys/time.h>
27079 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
27089 if ac_fn_c_try_compile "$LINENO"; then :
27090 gl_cv_func_gettimeofday_posix_signature=almost
27092 gl_cv_func_gettimeofday_posix_signature=no
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
27099 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
27100 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
27101 gl_gettimeofday_timezone='struct timezone'
27102 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
27103 REPLACE_GETTIMEOFDAY=1
27105 if test $REPLACE_STRUCT_TIMEVAL = 1; then
27106 REPLACE_GETTIMEOFDAY=1
27111 cat >>confdefs.h <<_ACEOF
27112 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
27116 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
27125 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
27128 for ac_header in sys/timeb.h
27130 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
27131 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
27132 cat >>confdefs.h <<_ACEOF
27133 #define HAVE_SYS_TIMEB_H 1
27140 for ac_func in _ftime
27142 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
27143 if test "x$ac_cv_func__ftime" = xyes; then :
27144 cat >>confdefs.h <<_ACEOF
27145 #define HAVE__FTIME 1
27158 GNULIB_GETTIMEOFDAY=1
27164 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
27191 if test $gl_cv_have_include_next = yes; then
27192 gl_cv_next_iconv_h='<'iconv.h'>'
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
27195 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
27196 if ${gl_cv_next_iconv_h+:} false; then :
27197 $as_echo_n "(cached) " >&6
27200 if test $ac_cv_header_iconv_h = yes; then
27205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h. */
27210 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27211 *) gl_absname_cpp="$ac_cpp" ;;
27216 gl_dirsep_regex='[/\\]'
27219 gl_dirsep_regex='\/'
27222 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27223 gl_header_literal_regex=`echo 'iconv.h' \
27224 | sed -e "$gl_make_literal_regex_sed"`
27225 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27226 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27232 gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27233 sed -n "$gl_absolute_header_sed"`
27235 gl_header=$gl_cv_absolute_iconv_h
27236 gl_cv_next_iconv_h='"'$gl_header'"'
27238 gl_cv_next_iconv_h='<'iconv.h'>'
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
27244 $as_echo "$gl_cv_next_iconv_h" >&6; }
27246 NEXT_ICONV_H=$gl_cv_next_iconv_h
27248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27250 gl_next_as_first_directive='<'iconv.h'>'
27252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27253 gl_next_as_first_directive=$gl_cv_next_iconv_h
27255 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
27265 if test "$am_cv_func_iconv" = yes; then
27269 if test -n "$ICONV_H"; then
27270 GL_GENERATE_ICONV_H_TRUE=
27271 GL_GENERATE_ICONV_H_FALSE='#'
27273 GL_GENERATE_ICONV_H_TRUE='#'
27274 GL_GENERATE_ICONV_H_FALSE=
27278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27279 /* end confdefs.h. */
27282 #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
27287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27288 $EGREP "gnu_iconv" >/dev/null 2>&1; then :
27289 gl_func_iconv_gnu=yes
27291 gl_func_iconv_gnu=no
27295 if test $gl_func_iconv_gnu = no; then
27298 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
27299 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
27300 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
27301 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
27302 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
27304 if test -n "$iconv_flavor"; then
27306 cat >>confdefs.h <<_ACEOF
27307 #define ICONV_FLAVOR $iconv_flavor
27314 if test -n "$ICONV_H"; then
27315 GL_GENERATE_ICONV_H_TRUE=
27316 GL_GENERATE_ICONV_H_FALSE='#'
27318 GL_GENERATE_ICONV_H_TRUE='#'
27319 GL_GENERATE_ICONV_H_FALSE=
27323 REPLACE_ICONV_OPEN=1
27330 if test $REPLACE_ICONV_OPEN = 1; then
27339 gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
27342 if test $REPLACE_ICONV = 1; then
27351 gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
27361 gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
27367 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
27368 if ${gl_cv_c_inline_effective+:} false; then :
27369 $as_echo_n "(cached) " >&6
27371 if test $ac_cv_c_inline = no; then
27372 gl_cv_c_inline_effective=no
27374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27375 /* end confdefs.h. */
27380 #ifdef __NO_INLINE__
27381 #error "inline is not effective"
27387 if ac_fn_c_try_compile "$LINENO"; then :
27388 gl_cv_c_inline_effective=yes
27390 gl_cv_c_inline_effective=no
27392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
27397 $as_echo "$gl_cv_c_inline_effective" >&6; }
27398 if test $gl_cv_c_inline_effective = yes; then
27400 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
27409 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
27410 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27412 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
27413 before <wchar.h>. */
27414 #include <stddef.h>
27418 #include <wctype.h>
27421 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
27427 cat >>confdefs.h <<_ACEOF
27428 #define HAVE_DECL_ISWBLANK $ac_have_decl
27431 if test $ac_cv_func_iswblank = no; then
27433 if test $ac_cv_have_decl_iswblank = yes; then
27437 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27440 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
27446 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27449 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
27458 gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
27473 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
27479 $as_echo_n "checking whether to use Java... " >&6; }
27480 # Check whether --enable-java was given.
27481 if test "${enable_java+set}" = set; then :
27482 enableval=$enable_java; JAVA_CHOICE="$enableval"
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
27488 $as_echo "$JAVA_CHOICE" >&6; }
27489 if test "$JAVA_CHOICE" = yes; then
27490 # Check whether --enable-native-java was given.
27491 if test "${enable_native_java+set}" = set; then :
27492 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
27498 # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
27499 ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
27515 if test $gl_cv_have_include_next = yes; then
27516 gl_cv_next_langinfo_h='<'langinfo.h'>'
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
27519 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
27520 if ${gl_cv_next_langinfo_h+:} false; then :
27521 $as_echo_n "(cached) " >&6
27524 if test $ac_cv_header_langinfo_h = yes; then
27529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27530 /* end confdefs.h. */
27531 #include <langinfo.h>
27534 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27535 *) gl_absname_cpp="$ac_cpp" ;;
27540 gl_dirsep_regex='[/\\]'
27543 gl_dirsep_regex='\/'
27546 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27547 gl_header_literal_regex=`echo 'langinfo.h' \
27548 | sed -e "$gl_make_literal_regex_sed"`
27549 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27550 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27556 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27557 sed -n "$gl_absolute_header_sed"`
27559 gl_header=$gl_cv_absolute_langinfo_h
27560 gl_cv_next_langinfo_h='"'$gl_header'"'
27562 gl_cv_next_langinfo_h='<'langinfo.h'>'
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
27568 $as_echo "$gl_cv_next_langinfo_h" >&6; }
27570 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
27572 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27574 gl_next_as_first_directive='<'langinfo.h'>'
27576 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27577 gl_next_as_first_directive=$gl_cv_next_langinfo_h
27579 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
27585 HAVE_LANGINFO_CODESET=0
27586 HAVE_LANGINFO_T_FMT_AMPM=0
27587 HAVE_LANGINFO_ERA=0
27588 HAVE_LANGINFO_YESEXPR=0
27590 if test $ac_cv_header_langinfo_h = yes; then
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
27593 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
27594 if ${gl_cv_header_langinfo_codeset+:} false; then :
27595 $as_echo_n "(cached) " >&6
27597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27598 /* end confdefs.h. */
27599 #include <langinfo.h>
27610 if ac_fn_c_try_compile "$LINENO"; then :
27611 gl_cv_header_langinfo_codeset=yes
27613 gl_cv_header_langinfo_codeset=no
27615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
27619 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
27620 if test $gl_cv_header_langinfo_codeset = yes; then
27621 HAVE_LANGINFO_CODESET=1
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
27624 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
27625 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
27626 $as_echo_n "(cached) " >&6
27628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27630 #include <langinfo.h>
27631 int a = T_FMT_AMPM;
27641 if ac_fn_c_try_compile "$LINENO"; then :
27642 gl_cv_header_langinfo_t_fmt_ampm=yes
27644 gl_cv_header_langinfo_t_fmt_ampm=no
27646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
27650 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
27651 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
27652 HAVE_LANGINFO_T_FMT_AMPM=1
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
27655 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
27656 if ${gl_cv_header_langinfo_era+:} false; then :
27657 $as_echo_n "(cached) " >&6
27659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27660 /* end confdefs.h. */
27661 #include <langinfo.h>
27672 if ac_fn_c_try_compile "$LINENO"; then :
27673 gl_cv_header_langinfo_era=yes
27675 gl_cv_header_langinfo_era=no
27677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
27681 $as_echo "$gl_cv_header_langinfo_era" >&6; }
27682 if test $gl_cv_header_langinfo_era = yes; then
27683 HAVE_LANGINFO_ERA=1
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
27686 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
27687 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
27688 $as_echo_n "(cached) " >&6
27690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27691 /* end confdefs.h. */
27692 #include <langinfo.h>
27703 if ac_fn_c_try_compile "$LINENO"; then :
27704 gl_cv_header_langinfo_yesexpr=yes
27706 gl_cv_header_langinfo_yesexpr=no
27708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
27712 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
27713 if test $gl_cv_header_langinfo_yesexpr = yes; then
27714 HAVE_LANGINFO_YESEXPR=1
27726 for gl_func in nl_langinfo; do
27727 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27729 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27730 if eval \${$as_gl_Symbol+:} false; then :
27731 $as_echo_n "(cached) " >&6
27733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27734 /* end confdefs.h. */
27735 #include <langinfo.h>
27746 if ac_fn_c_try_compile "$LINENO"; then :
27747 eval "$as_gl_Symbol=yes"
27749 eval "$as_gl_Symbol=no"
27751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27753 eval ac_res=\$$as_gl_Symbol
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27755 $as_echo "$ac_res" >&6; }
27756 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27757 cat >>confdefs.h <<_ACEOF
27758 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27761 eval ac_cv_have_decl_$gl_func=yes
27775 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
27788 $as_echo "#define _LCONV_C99 1" >>confdefs.h
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
27794 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
27795 if ${gl_cv_header_locale_h_posix2001+:} false; then :
27796 $as_echo_n "(cached) " >&6
27798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27799 /* end confdefs.h. */
27800 #include <locale.h>
27801 int x = LC_MESSAGES;
27802 int y = sizeof (((struct lconv *) 0)->decimal_point);
27811 if ac_fn_c_try_compile "$LINENO"; then :
27812 gl_cv_header_locale_h_posix2001=yes
27814 gl_cv_header_locale_h_posix2001=no
27816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
27819 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
27822 if test $ac_cv_header_xlocale_h = yes; then
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
27825 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
27826 if ${gl_cv_header_locale_has_locale_t+:} false; then :
27827 $as_echo_n "(cached) " >&6
27829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27830 /* end confdefs.h. */
27831 #include <locale.h>
27841 if ac_fn_c_try_compile "$LINENO"; then :
27842 gl_cv_header_locale_has_locale_t=yes
27844 gl_cv_header_locale_has_locale_t=no
27846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
27850 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
27851 if test $gl_cv_header_locale_has_locale_t = yes; then
27852 gl_cv_header_locale_h_needs_xlocale_h=no
27854 gl_cv_header_locale_h_needs_xlocale_h=yes
27858 gl_cv_header_locale_h_needs_xlocale_h=no
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
27863 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
27864 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
27865 $as_echo_n "(cached) " >&6
27867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27868 /* end confdefs.h. */
27869 #include <locale.h>
27871 int x = sizeof (l.decimal_point);
27872 int y = sizeof (l.int_p_cs_precedes);
27881 if ac_fn_c_try_compile "$LINENO"; then :
27882 gl_cv_sys_struct_lconv_ok=yes
27884 gl_cv_sys_struct_lconv_ok=no
27886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
27890 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
27891 if test $gl_cv_sys_struct_lconv_ok = no; then
27892 REPLACE_STRUCT_LCONV=1
27903 if test $gl_cv_have_include_next = yes; then
27904 gl_cv_next_locale_h='<'locale.h'>'
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
27907 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
27908 if ${gl_cv_next_locale_h+:} false; then :
27909 $as_echo_n "(cached) " >&6
27914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27915 /* end confdefs.h. */
27916 #include <locale.h>
27919 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27920 *) gl_absname_cpp="$ac_cpp" ;;
27925 gl_dirsep_regex='[/\\]'
27928 gl_dirsep_regex='\/'
27931 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27932 gl_header_literal_regex=`echo 'locale.h' \
27933 | sed -e "$gl_make_literal_regex_sed"`
27934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27941 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27942 sed -n "$gl_absolute_header_sed"`
27944 gl_header=$gl_cv_absolute_locale_h
27945 gl_cv_next_locale_h='"'$gl_header'"'
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
27950 $as_echo "$gl_cv_next_locale_h" >&6; }
27952 NEXT_LOCALE_H=$gl_cv_next_locale_h
27954 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27955 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27956 gl_next_as_first_directive='<'locale.h'>'
27958 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27959 gl_next_as_first_directive=$gl_cv_next_locale_h
27961 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
27968 for gl_func in setlocale duplocale; do
27969 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27971 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27972 if eval \${$as_gl_Symbol+:} false; then :
27973 $as_echo_n "(cached) " >&6
27975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27976 /* end confdefs.h. */
27977 #include <locale.h>
27978 /* Some systems provide declarations in a non-standard header. */
27980 # include <xlocale.h>
27992 if ac_fn_c_try_compile "$LINENO"; then :
27993 eval "$as_gl_Symbol=yes"
27995 eval "$as_gl_Symbol=no"
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27999 eval ac_res=\$$as_gl_Symbol
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28001 $as_echo "$ac_res" >&6; }
28002 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28003 cat >>confdefs.h <<_ACEOF
28004 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28007 eval ac_cv_have_decl_$gl_func=yes
28015 for ac_func in setlocale uselocale
28017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28019 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28020 cat >>confdefs.h <<_ACEOF
28021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28027 if test $ac_cv_func_uselocale = yes; then
28028 for ac_func in getlocalename_l
28030 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
28031 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
28032 cat >>confdefs.h <<_ACEOF
28033 #define HAVE_GETLOCALENAME_L 1
28043 if test "$gl_threads_api" = posix; then
28044 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
28045 # pthread_rwlock_* functions.
28046 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
28048 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
28050 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
28054 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
28055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28056 /* end confdefs.h. */
28058 #include <pthread.h>
28063 #if __FreeBSD__ == 4
28064 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
28065 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
28066 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
28067 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
28069 int x = (int)PTHREAD_MUTEX_RECURSIVE;
28077 if ac_fn_c_try_compile "$LINENO"; then :
28079 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
28082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28088 cat >>confdefs.h <<_ACEOF
28089 #define GNULIB_LOCK 1
28096 if test $ac_cv_func_lstat = yes; then
28098 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
28107 if test $REPLACE_LSTAT = 1; then
28116 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
28131 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
28156 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
28161 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
28162 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
28163 $as_echo_n "(cached) " >&6
28167 # Guess no on AIX and OSF/1.
28168 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
28169 # Guess yes otherwise.
28170 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
28172 if test $LOCALE_JA != none; then
28173 if test "$cross_compiling" = yes; then :
28176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177 /* end confdefs.h. */
28179 #include <locale.h>
28180 #include <string.h>
28181 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28183 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28184 included before <wchar.h>. */
28185 #include <stddef.h>
28191 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28193 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28197 memset (&state, '\0', sizeof (mbstate_t));
28198 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28199 if (mbsinit (&state))
28205 if ac_fn_c_try_run "$LINENO"; then :
28206 gl_cv_func_mbrtowc_incomplete_state=yes
28208 gl_cv_func_mbrtowc_incomplete_state=no
28210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28211 conftest.$ac_objext conftest.beam conftest.$ac_ext
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
28218 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
28224 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
28225 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
28226 $as_echo_n "(cached) " >&6
28230 # Guess no on Solaris 8.
28231 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
28232 # Guess yes otherwise.
28233 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
28235 if test $LOCALE_ZH_CN != none; then
28236 if test "$cross_compiling" = yes; then :
28239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28240 /* end confdefs.h. */
28242 #include <locale.h>
28243 #include <stdlib.h>
28244 #include <string.h>
28245 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28247 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28248 included before <wchar.h>. */
28249 #include <stddef.h>
28255 /* This fails on Solaris 8:
28256 mbrtowc returns 2, and sets wc to 0x00F0.
28257 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
28258 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28260 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
28264 memset (&state, '\0', sizeof (mbstate_t));
28265 if (mbrtowc (&wc, input + 3, 6, &state) != 4
28266 && mbtowc (&wc, input + 3, 6) == 4)
28272 if ac_fn_c_try_run "$LINENO"; then :
28273 gl_cv_func_mbrtowc_sanitycheck=yes
28275 gl_cv_func_mbrtowc_sanitycheck=no
28277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28278 conftest.$ac_objext conftest.beam conftest.$ac_ext
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
28285 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
28287 REPLACE_MBSTATE_T=0
28288 case "$gl_cv_func_mbrtowc_incomplete_state" in
28290 *) REPLACE_MBSTATE_T=1 ;;
28292 case "$gl_cv_func_mbrtowc_sanitycheck" in
28294 *) REPLACE_MBSTATE_T=1 ;;
28297 REPLACE_MBSTATE_T=1
28302 if test $ac_cv_func_mbrtowc = no; then
28304 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
28305 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28307 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28308 included before <wchar.h>. */
28309 #include <stddef.h>
28315 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
28321 cat >>confdefs.h <<_ACEOF
28322 #define HAVE_DECL_MBRTOWC $ac_have_decl
28325 if test $ac_cv_have_decl_mbrtowc = yes; then
28329 if test $REPLACE_MBSTATE_T = 1; then
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
28336 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
28337 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
28338 $as_echo_n "(cached) " >&6
28342 # Guess no on Solaris.
28343 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
28344 # Guess yes otherwise.
28345 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
28347 if test $LOCALE_FR_UTF8 != none; then
28348 if test "$cross_compiling" = yes; then :
28351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28352 /* end confdefs.h. */
28354 #include <locale.h>
28355 #include <stdlib.h>
28356 #include <string.h>
28357 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28359 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28360 included before <wchar.h>. */
28361 #include <stddef.h>
28369 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28371 char input[] = "\303\237er";
28376 memset (&state, '\0', sizeof (mbstate_t));
28377 wc = (wchar_t) 0xBADFACE;
28378 ret = mbrtowc (&wc, input, 5, &state);
28381 if (!mbsinit (&state))
28384 memset (&state, '\0', sizeof (mbstate_t));
28385 ret = mbrtowc (NULL, input, 5, &state);
28386 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
28388 if (!mbsinit (&state))
28394 if ac_fn_c_try_run "$LINENO"; then :
28395 gl_cv_func_mbrtowc_null_arg1=yes
28397 gl_cv_func_mbrtowc_null_arg1=no
28399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28400 conftest.$ac_objext conftest.beam conftest.$ac_ext
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
28407 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
28413 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
28414 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
28415 $as_echo_n "(cached) " >&6
28419 # Guess no on OSF/1.
28420 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
28421 # Guess yes otherwise.
28422 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
28424 if test $LOCALE_FR_UTF8 != none; then
28425 if test "$cross_compiling" = yes; then :
28428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28429 /* end confdefs.h. */
28431 #include <locale.h>
28432 #include <string.h>
28433 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28435 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28436 included before <wchar.h>. */
28437 #include <stddef.h>
28443 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28449 memset (&state, '\0', sizeof (mbstate_t));
28450 wc = (wchar_t) 0xBADFACE;
28451 mbrtowc (&wc, NULL, 5, &state);
28452 /* Check that wc was not modified. */
28453 if (wc != (wchar_t) 0xBADFACE)
28459 if ac_fn_c_try_run "$LINENO"; then :
28460 gl_cv_func_mbrtowc_null_arg2=yes
28462 gl_cv_func_mbrtowc_null_arg2=no
28464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28465 conftest.$ac_objext conftest.beam conftest.$ac_ext
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
28472 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
28480 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
28481 if ${gl_cv_func_mbrtowc_retval+:} false; then :
28482 $as_echo_n "(cached) " >&6
28486 # Guess no on HP-UX, Solaris, native Windows.
28487 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
28488 # Guess yes otherwise.
28489 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
28491 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
28492 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
28493 if test "$cross_compiling" = yes; then :
28496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28497 /* end confdefs.h. */
28499 #include <locale.h>
28500 #include <string.h>
28501 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28503 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28504 included before <wchar.h>. */
28505 #include <stddef.h>
28512 int found_some_locale = 0;
28513 /* This fails on Solaris. */
28514 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28516 char input[] = "B\303\274\303\237er"; /* "Büßer" */
28520 memset (&state, '\0', sizeof (mbstate_t));
28521 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28524 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
28527 found_some_locale = 1;
28529 /* This fails on HP-UX 11.11. */
28530 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28532 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28536 memset (&state, '\0', sizeof (mbstate_t));
28537 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28540 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
28543 found_some_locale = 1;
28545 /* This fails on native Windows. */
28546 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
28548 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
28552 memset (&state, '\0', sizeof (mbstate_t));
28553 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28556 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28559 found_some_locale = 1;
28561 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
28563 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
28567 memset (&state, '\0', sizeof (mbstate_t));
28568 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28571 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28574 found_some_locale = 1;
28576 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
28578 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
28582 memset (&state, '\0', sizeof (mbstate_t));
28583 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28586 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28589 found_some_locale = 1;
28591 return (found_some_locale ? result : 77);
28594 if ac_fn_c_try_run "$LINENO"; then :
28595 gl_cv_func_mbrtowc_retval=yes
28597 if test $? != 77; then
28598 gl_cv_func_mbrtowc_retval=no
28602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28603 conftest.$ac_objext conftest.beam conftest.$ac_ext
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
28610 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
28616 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
28617 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
28618 $as_echo_n "(cached) " >&6
28622 # Guess no on Solaris 8 and 9.
28623 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
28624 # Guess yes otherwise.
28625 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
28627 if test $LOCALE_ZH_CN != none; then
28628 if test "$cross_compiling" = yes; then :
28631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28632 /* end confdefs.h. */
28634 #include <locale.h>
28635 #include <string.h>
28636 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28638 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28639 included before <wchar.h>. */
28640 #include <stddef.h>
28646 /* This fails on Solaris 8 and 9. */
28647 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28652 memset (&state, '\0', sizeof (mbstate_t));
28653 if (mbrtowc (&wc, "", 1, &state) != 0)
28659 if ac_fn_c_try_run "$LINENO"; then :
28660 gl_cv_func_mbrtowc_nul_retval=yes
28662 gl_cv_func_mbrtowc_nul_retval=no
28664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28665 conftest.$ac_objext conftest.beam conftest.$ac_ext
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
28672 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
28677 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
28678 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
28679 $as_echo_n "(cached) " >&6
28683 # Guess no on AIX and glibc systems.
28685 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
28686 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
28688 if test "$cross_compiling" = yes; then :
28691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28692 /* end confdefs.h. */
28696 static mbstate_t mbs;
28700 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
28703 if ac_fn_c_try_run "$LINENO"; then :
28704 gl_cv_func_mbrtowc_empty_input=yes
28706 gl_cv_func_mbrtowc_empty_input=no
28708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28709 conftest.$ac_objext conftest.beam conftest.$ac_ext
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
28715 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
28717 case "$gl_cv_func_mbrtowc_null_arg1" in
28720 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
28725 case "$gl_cv_func_mbrtowc_null_arg2" in
28728 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
28733 case "$gl_cv_func_mbrtowc_retval" in
28736 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
28741 case "$gl_cv_func_mbrtowc_nul_retval" in
28744 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
28749 case "$gl_cv_func_mbrtowc_empty_input" in
28752 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
28760 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
28769 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
28786 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
28801 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
28806 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
28807 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
28808 $as_echo_n "(cached) " >&6
28812 # Guess no on AIX and OSF/1.
28813 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
28814 # Guess yes otherwise.
28815 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
28817 if test $LOCALE_JA != none; then
28818 if test "$cross_compiling" = yes; then :
28821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28822 /* end confdefs.h. */
28824 #include <locale.h>
28825 #include <string.h>
28826 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28828 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28829 included before <wchar.h>. */
28830 #include <stddef.h>
28836 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28838 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28842 memset (&state, '\0', sizeof (mbstate_t));
28843 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28844 if (mbsinit (&state))
28850 if ac_fn_c_try_run "$LINENO"; then :
28851 gl_cv_func_mbrtowc_incomplete_state=yes
28853 gl_cv_func_mbrtowc_incomplete_state=no
28855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28856 conftest.$ac_objext conftest.beam conftest.$ac_ext
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
28863 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
28869 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
28870 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
28871 $as_echo_n "(cached) " >&6
28875 # Guess no on Solaris 8.
28876 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
28877 # Guess yes otherwise.
28878 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
28880 if test $LOCALE_ZH_CN != none; then
28881 if test "$cross_compiling" = yes; then :
28884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28885 /* end confdefs.h. */
28887 #include <locale.h>
28888 #include <stdlib.h>
28889 #include <string.h>
28890 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28892 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28893 included before <wchar.h>. */
28894 #include <stddef.h>
28900 /* This fails on Solaris 8:
28901 mbrtowc returns 2, and sets wc to 0x00F0.
28902 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
28903 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28905 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
28909 memset (&state, '\0', sizeof (mbstate_t));
28910 if (mbrtowc (&wc, input + 3, 6, &state) != 4
28911 && mbtowc (&wc, input + 3, 6) == 4)
28917 if ac_fn_c_try_run "$LINENO"; then :
28918 gl_cv_func_mbrtowc_sanitycheck=yes
28920 gl_cv_func_mbrtowc_sanitycheck=no
28922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28923 conftest.$ac_objext conftest.beam conftest.$ac_ext
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
28930 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
28932 REPLACE_MBSTATE_T=0
28933 case "$gl_cv_func_mbrtowc_incomplete_state" in
28935 *) REPLACE_MBSTATE_T=1 ;;
28937 case "$gl_cv_func_mbrtowc_sanitycheck" in
28939 *) REPLACE_MBSTATE_T=1 ;;
28942 REPLACE_MBSTATE_T=1
28947 if test $ac_cv_func_mbsinit = no; then
28949 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
28950 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28952 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28953 included before <wchar.h>. */
28954 #include <stddef.h>
28960 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
28966 cat >>confdefs.h <<_ACEOF
28967 #define HAVE_DECL_MBSINIT $ac_have_decl
28970 if test $ac_cv_have_decl_mbsinit = yes; then
28974 if test $REPLACE_MBSTATE_T = 1; then
28978 mingw*) REPLACE_MBSINIT=1 ;;
28983 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
28992 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
29009 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
29016 if test $ac_cv_func_mbslen = yes; then
29033 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
29048 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
29057 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
29066 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
29069 for ac_header in bp-sym.h
29071 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
29072 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
29073 cat >>confdefs.h <<_ACEOF
29074 #define HAVE_BP_SYM_H 1
29094 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
29099 for ac_func in memmove
29101 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
29102 if test "x$ac_cv_func_memmove" = xyes; then :
29103 cat >>confdefs.h <<_ACEOF
29104 #define HAVE_MEMMOVE 1
29111 if test $ac_cv_func_memmove = no; then
29120 gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
29128 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
29129 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
29131 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
29134 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
29138 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29147 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
29153 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29162 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
29169 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
29171 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
29177 cat >>confdefs.h <<_ACEOF
29178 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
29181 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
29183 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
29189 cat >>confdefs.h <<_ACEOF
29190 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
29195 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
29199 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
29205 for ac_func in raise
29207 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
29208 if test "x$ac_cv_func_raise" = xyes; then :
29209 cat >>confdefs.h <<_ACEOF
29210 #define HAVE_RAISE 1
29216 if test $ac_cv_func_raise = no; then
29219 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29226 if test $gl_cv_type_sigset_t = yes; then
29227 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
29228 if test "x$ac_cv_func_sigprocmask" = xyes; then :
29229 gl_cv_func_sigprocmask=1
29233 if test -z "$gl_cv_func_sigprocmask"; then
29234 HAVE_POSIX_SIGNALBLOCKING=0
29237 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
29242 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
29250 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
29259 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
29274 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
29281 if test $ac_cv_func_readlink = no; then
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
29285 $as_echo_n "checking whether readlink signature is correct... " >&6; }
29286 if ${gl_cv_decl_readlink_works+:} false; then :
29287 $as_echo_n "(cached) " >&6
29289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29290 /* end confdefs.h. */
29291 #include <unistd.h>
29292 /* Cause compilation failure if original declaration has wrong type. */
29293 ssize_t readlink (const char *, char *, size_t);
29302 if ac_fn_c_try_compile "$LINENO"; then :
29303 gl_cv_decl_readlink_works=yes
29305 gl_cv_decl_readlink_works=no
29307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
29310 $as_echo "$gl_cv_decl_readlink_works" >&6; }
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
29312 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
29313 if ${gl_cv_func_readlink_works+:} false; then :
29314 $as_echo_n "(cached) " >&6
29316 # We have readlink, so assume ln -s works.
29317 ln -s conftest.no-such conftest.link
29318 ln -s conftest.link conftest.lnk2
29319 if test "$cross_compiling" = yes; then :
29321 # Guess yes on glibc systems.
29322 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
29323 # If we don't know, assume the worst.
29324 *) gl_cv_func_readlink_works="guessing no" ;;
29328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29329 /* end confdefs.h. */
29330 #include <unistd.h>
29336 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
29341 if ac_fn_c_try_run "$LINENO"; then :
29342 gl_cv_func_readlink_works=yes
29344 gl_cv_func_readlink_works=no
29346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29347 conftest.$ac_objext conftest.beam conftest.$ac_ext
29350 rm -f conftest.link conftest.lnk2
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
29353 $as_echo "$gl_cv_func_readlink_works" >&6; }
29354 case "$gl_cv_func_readlink_works" in
29356 if test "$gl_cv_decl_readlink_works" != yes; then
29362 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
29369 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
29378 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
29395 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
29404 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
29405 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
29406 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
29408 if test $RELOCATABLE = yes; then
29417 gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
29427 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
29453 if test $ac_cv_have_decl_setenv = no; then
29461 for ac_header in search.h
29463 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
29464 if test "x$ac_cv_header_search_h" = xyes; then :
29465 cat >>confdefs.h <<_ACEOF
29466 #define HAVE_SEARCH_H 1
29473 for ac_func in tsearch
29475 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
29476 if test "x$ac_cv_func_tsearch" = xyes; then :
29477 cat >>confdefs.h <<_ACEOF
29478 #define HAVE_TSEARCH 1
29490 mingw*) REPLACE_SETLOCALE=1 ;;
29493 1.5.*) REPLACE_SETLOCALE=1 ;;
29498 if test $REPLACE_SETLOCALE = 1; then
29507 gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
29524 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
29539 if test $gl_cv_have_include_next = yes; then
29540 gl_cv_next_signal_h='<'signal.h'>'
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
29543 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
29544 if ${gl_cv_next_signal_h+:} false; then :
29545 $as_echo_n "(cached) " >&6
29550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29551 /* end confdefs.h. */
29552 #include <signal.h>
29555 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29556 *) gl_absname_cpp="$ac_cpp" ;;
29561 gl_dirsep_regex='[/\\]'
29564 gl_dirsep_regex='\/'
29567 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29568 gl_header_literal_regex=`echo 'signal.h' \
29569 | sed -e "$gl_make_literal_regex_sed"`
29570 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29571 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29577 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29578 sed -n "$gl_absolute_header_sed"`
29580 gl_header=$gl_cv_absolute_signal_h
29581 gl_cv_next_signal_h='"'$gl_header'"'
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
29586 $as_echo "$gl_cv_next_signal_h" >&6; }
29588 NEXT_SIGNAL_H=$gl_cv_next_signal_h
29590 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29592 gl_next_as_first_directive='<'signal.h'>'
29594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29595 gl_next_as_first_directive=$gl_cv_next_signal_h
29597 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
29603 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
29604 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
29605 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
29606 #include <signal.h>
29609 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
29612 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
29621 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
29622 #include <signal.h>
29625 if test "x$ac_cv_type_sighandler_t" = xyes; then :
29628 HAVE_SIGHANDLER_T=0
29633 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
29634 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29636 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29637 if eval \${$as_gl_Symbol+:} false; then :
29638 $as_echo_n "(cached) " >&6
29640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29641 /* end confdefs.h. */
29642 #include <signal.h>
29653 if ac_fn_c_try_compile "$LINENO"; then :
29654 eval "$as_gl_Symbol=yes"
29656 eval "$as_gl_Symbol=no"
29658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660 eval ac_res=\$$as_gl_Symbol
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29662 $as_echo "$ac_res" >&6; }
29663 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29664 cat >>confdefs.h <<_ACEOF
29665 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29668 eval ac_cv_have_decl_$gl_func=yes
29678 cat >>confdefs.h <<_ACEOF
29679 #define GNULIB_SIGPIPE 1
29684 GNULIB_SIGNAL_H_SIGPIPE=1
29687 GNULIB_STDIO_H_SIGPIPE=1
29689 GNULIB_UNISTD_H_SIGPIPE=1
29693 if test $gl_cv_type_sigset_t = yes; then
29694 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
29695 if test "x$ac_cv_func_sigprocmask" = xyes; then :
29696 gl_cv_func_sigprocmask=1
29700 if test -z "$gl_cv_func_sigprocmask"; then
29701 HAVE_POSIX_SIGNALBLOCKING=0
29704 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
29713 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
29722 GNULIB_SIGPROCMASK=1
29728 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
29734 $as_echo_n "checking for ssize_t... " >&6; }
29735 if ${gt_cv_ssize_t+:} false; then :
29736 $as_echo_n "(cached) " >&6
29738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29739 /* end confdefs.h. */
29740 #include <sys/types.h>
29744 int x = sizeof (ssize_t *) + sizeof (ssize_t);
29750 if ac_fn_c_try_compile "$LINENO"; then :
29755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
29758 $as_echo "$gt_cv_ssize_t" >&6; }
29759 if test $gt_cv_ssize_t = no; then
29761 $as_echo "#define ssize_t int" >>confdefs.h
29768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
29769 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
29770 if ${gl_cv_func_stat_dir_slash+:} false; then :
29771 $as_echo_n "(cached) " >&6
29773 if test "$cross_compiling" = yes; then :
29775 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
29776 *) gl_cv_func_stat_dir_slash="guessing yes";;
29779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29780 /* end confdefs.h. */
29781 #include <sys/stat.h>
29786 struct stat st; return stat (".", &st) != stat ("./", &st);
29791 if ac_fn_c_try_run "$LINENO"; then :
29792 gl_cv_func_stat_dir_slash=yes
29794 gl_cv_func_stat_dir_slash=no
29796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29797 conftest.$ac_objext conftest.beam conftest.$ac_ext
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
29802 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
29804 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
29805 if ${gl_cv_func_stat_file_slash+:} false; then :
29806 $as_echo_n "(cached) " >&6
29809 # Assume that if we have lstat, we can also check symlinks.
29810 if test $ac_cv_func_lstat = yes; then
29811 ln -s conftest.tmp conftest.lnk
29813 if test "$cross_compiling" = yes; then :
29815 # Guess yes on glibc systems.
29816 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
29817 # If we don't know, assume the worst.
29818 *) gl_cv_func_stat_file_slash="guessing no" ;;
29822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29823 /* end confdefs.h. */
29824 #include <sys/stat.h>
29831 if (!stat ("conftest.tmp/", &st))
29834 if (!stat ("conftest.lnk/", &st))
29843 if ac_fn_c_try_run "$LINENO"; then :
29844 gl_cv_func_stat_file_slash=yes
29846 gl_cv_func_stat_file_slash=no
29848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29849 conftest.$ac_objext conftest.beam conftest.$ac_ext
29852 rm -f conftest.tmp conftest.lnk
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
29855 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
29856 case $gl_cv_func_stat_dir_slash in
29857 *no) REPLACE_STAT=1
29859 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
29862 case $gl_cv_func_stat_file_slash in
29863 *no) REPLACE_STAT=1
29865 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
29869 if test $REPLACE_STAT = 1; then
29878 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
29893 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
29900 # Define two additional variables used in the Makefile substitution.
29902 if test "$ac_cv_header_stdbool_h" = yes; then
29905 STDBOOL_H='stdbool.h'
29908 if test -n "$STDBOOL_H"; then
29909 GL_GENERATE_STDBOOL_H_TRUE=
29910 GL_GENERATE_STDBOOL_H_FALSE='#'
29912 GL_GENERATE_STDBOOL_H_TRUE='#'
29913 GL_GENERATE_STDBOOL_H_FALSE=
29917 if test "$ac_cv_type__Bool" = yes; then
29928 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
29931 if test "x$ac_cv_type_max_align_t" = xyes; then :
29934 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
29937 if test $gt_cv_c_wchar_t = no; then
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
29942 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29943 if ${gl_cv_decl_null_works+:} false; then :
29944 $as_echo_n "(cached) " >&6
29946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29947 /* end confdefs.h. */
29948 #include <stddef.h>
29949 int test[2 * (sizeof NULL == sizeof (void *)) -1];
29959 if ac_fn_c_try_compile "$LINENO"; then :
29960 gl_cv_decl_null_works=yes
29962 gl_cv_decl_null_works=no
29964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
29967 $as_echo "$gl_cv_decl_null_works" >&6; }
29968 if test $gl_cv_decl_null_works = no; then
29973 if test -n "$STDDEF_H"; then
29974 GL_GENERATE_STDDEF_H_TRUE=
29975 GL_GENERATE_STDDEF_H_FALSE='#'
29977 GL_GENERATE_STDDEF_H_TRUE='#'
29978 GL_GENERATE_STDDEF_H_FALSE=
29981 if test -n "$STDDEF_H"; then
29990 if test $gl_cv_have_include_next = yes; then
29991 gl_cv_next_stddef_h='<'stddef.h'>'
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
29994 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
29995 if ${gl_cv_next_stddef_h+:} false; then :
29996 $as_echo_n "(cached) " >&6
30001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30002 /* end confdefs.h. */
30003 #include <stddef.h>
30006 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30007 *) gl_absname_cpp="$ac_cpp" ;;
30012 gl_dirsep_regex='[/\\]'
30015 gl_dirsep_regex='\/'
30018 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30019 gl_header_literal_regex=`echo 'stddef.h' \
30020 | sed -e "$gl_make_literal_regex_sed"`
30021 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30022 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30028 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30029 sed -n "$gl_absolute_header_sed"`
30031 gl_header=$gl_cv_absolute_stddef_h
30032 gl_cv_next_stddef_h='"'$gl_header'"'
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
30037 $as_echo "$gl_cv_next_stddef_h" >&6; }
30039 NEXT_STDDEF_H=$gl_cv_next_stddef_h
30041 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30042 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30043 gl_next_as_first_directive='<'stddef.h'>'
30045 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30046 gl_next_as_first_directive=$gl_cv_next_stddef_h
30048 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
30068 if test $gl_cv_have_include_next = yes; then
30069 gl_cv_next_stdio_h='<'stdio.h'>'
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
30072 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
30073 if ${gl_cv_next_stdio_h+:} false; then :
30074 $as_echo_n "(cached) " >&6
30079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30080 /* end confdefs.h. */
30084 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30085 *) gl_absname_cpp="$ac_cpp" ;;
30090 gl_dirsep_regex='[/\\]'
30093 gl_dirsep_regex='\/'
30096 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30097 gl_header_literal_regex=`echo 'stdio.h' \
30098 | sed -e "$gl_make_literal_regex_sed"`
30099 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30100 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30106 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30107 sed -n "$gl_absolute_header_sed"`
30109 gl_header=$gl_cv_absolute_stdio_h
30110 gl_cv_next_stdio_h='"'$gl_header'"'
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
30115 $as_echo "$gl_cv_next_stdio_h" >&6; }
30117 NEXT_STDIO_H=$gl_cv_next_stdio_h
30119 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30120 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30121 gl_next_as_first_directive='<'stdio.h'>'
30123 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30124 gl_next_as_first_directive=$gl_cv_next_stdio_h
30126 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
30132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
30133 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
30134 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
30135 $as_echo_n "(cached) " >&6
30137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30138 /* end confdefs.h. */
30140 #define __STDC_FORMAT_MACROS 1
30142 #include <inttypes.h>
30143 /* For non-mingw systems, compilation will trivially succeed.
30144 For mingw, compilation will succeed for older mingw (system
30145 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
30146 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
30147 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
30148 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
30159 if ac_fn_c_try_compile "$LINENO"; then :
30160 gl_cv_func_printf_attribute_flavor=system
30162 gl_cv_func_printf_attribute_flavor=gnu
30164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
30167 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
30168 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
30170 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
30177 cat >>confdefs.h <<_ACEOF
30178 #define GNULIB_FSCANF 1
30185 cat >>confdefs.h <<_ACEOF
30186 #define GNULIB_SCANF 1
30211 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
30212 REPLACE_STDIO_WRITE_FUNCS=1
30221 gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
30228 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
30229 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30231 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30232 if eval \${$as_gl_Symbol+:} false; then :
30233 $as_echo_n "(cached) " >&6
30235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30236 /* end confdefs.h. */
30248 if ac_fn_c_try_compile "$LINENO"; then :
30249 eval "$as_gl_Symbol=yes"
30251 eval "$as_gl_Symbol=no"
30253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30255 eval ac_res=\$$as_gl_Symbol
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30257 $as_echo "$ac_res" >&6; }
30258 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30259 cat >>confdefs.h <<_ACEOF
30260 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30263 eval ac_cv_have_decl_$gl_func=yes
30278 if test $gl_cv_have_include_next = yes; then
30279 gl_cv_next_stdlib_h='<'stdlib.h'>'
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
30282 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
30283 if ${gl_cv_next_stdlib_h+:} false; then :
30284 $as_echo_n "(cached) " >&6
30289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30290 /* end confdefs.h. */
30291 #include <stdlib.h>
30294 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30295 *) gl_absname_cpp="$ac_cpp" ;;
30300 gl_dirsep_regex='[/\\]'
30303 gl_dirsep_regex='\/'
30306 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30307 gl_header_literal_regex=`echo 'stdlib.h' \
30308 | sed -e "$gl_make_literal_regex_sed"`
30309 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30310 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30316 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30317 sed -n "$gl_absolute_header_sed"`
30319 gl_header=$gl_cv_absolute_stdlib_h
30320 gl_cv_next_stdlib_h='"'$gl_header'"'
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
30325 $as_echo "$gl_cv_next_stdlib_h" >&6; }
30327 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
30329 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30331 gl_next_as_first_directive='<'stdlib.h'>'
30333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30334 gl_next_as_first_directive=$gl_cv_next_stdlib_h
30336 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
30343 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
30344 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30346 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30347 if eval \${$as_gl_Symbol+:} false; then :
30348 $as_echo_n "(cached) " >&6
30350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30351 /* end confdefs.h. */
30352 #include <stdlib.h>
30353 #if HAVE_SYS_LOADAVG_H
30354 # include <sys/loadavg.h>
30357 # include <random.h>
30369 if ac_fn_c_try_compile "$LINENO"; then :
30370 eval "$as_gl_Symbol=yes"
30372 eval "$as_gl_Symbol=no"
30374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376 eval ac_res=\$$as_gl_Symbol
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30378 $as_echo "$ac_res" >&6; }
30379 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30380 cat >>confdefs.h <<_ACEOF
30381 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30384 eval ac_cv_have_decl_$gl_func=yes
30394 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
30396 $as_echo_n "checking for working strerror function... " >&6; }
30397 if ${gl_cv_func_working_strerror+:} false; then :
30398 $as_echo_n "(cached) " >&6
30400 if test "$cross_compiling" = yes; then :
30402 # Guess yes on glibc systems.
30403 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
30404 # If we don't know, assume the worst.
30405 *) gl_cv_func_working_strerror="guessing no" ;;
30409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30410 /* end confdefs.h. */
30411 #include <string.h>
30416 if (!*strerror (-2)) return 1;
30421 if ac_fn_c_try_run "$LINENO"; then :
30422 gl_cv_func_working_strerror=yes
30424 gl_cv_func_working_strerror=no
30426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30427 conftest.$ac_objext conftest.beam conftest.$ac_ext
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
30433 $as_echo "$gl_cv_func_working_strerror" >&6; }
30434 case "$gl_cv_func_working_strerror" in
30445 if test $REPLACE_STRERROR = 1; then
30454 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
30459 cat >>confdefs.h <<_ACEOF
30460 #define GNULIB_STRERROR 1
30475 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
30481 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
30490 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
30496 if test $ac_cv_header_sys_socket_h != yes; then
30497 for ac_header in winsock2.h
30499 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30500 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30501 cat >>confdefs.h <<_ACEOF
30502 #define HAVE_WINSOCK2_H 1
30510 if test "$ac_cv_header_winsock2_h" = yes; then
30512 UNISTD_H_HAVE_WINSOCK2_H=1
30513 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30520 if test $gl_cond_libtool = false; then
30521 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
30522 gl_libdeps="$gl_libdeps $LIBICONV"
30533 if test $ac_cv_have_decl_strnlen = no; then
30534 HAVE_DECL_STRNLEN=0
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
30538 $as_echo_n "checking for working strnlen... " >&6; }
30539 if ${ac_cv_func_strnlen_working+:} false; then :
30540 $as_echo_n "(cached) " >&6
30542 if test "$cross_compiling" = yes; then :
30543 # Guess no on AIX systems, yes otherwise.
30545 aix*) ac_cv_func_strnlen_working=no;;
30546 *) ac_cv_func_strnlen_working=yes;;
30549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30550 /* end confdefs.h. */
30551 $ac_includes_default
30557 #define S_LEN (sizeof S - 1)
30559 /* At least one implementation is buggy: that of AIX 4.3 would
30560 give strnlen (S, 1) == 3. */
30563 for (i = 0; i < S_LEN + 1; ++i)
30565 int expected = i <= S_LEN ? i : S_LEN;
30566 if (strnlen (S, i) != expected)
30575 if ac_fn_c_try_run "$LINENO"; then :
30576 ac_cv_func_strnlen_working=yes
30578 ac_cv_func_strnlen_working=no
30580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30581 conftest.$ac_objext conftest.beam conftest.$ac_ext
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
30586 $as_echo "$ac_cv_func_strnlen_working" >&6; }
30587 test $ac_cv_func_strnlen_working = no && :
30590 if test $ac_cv_func_strnlen_working = no; then
30595 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
30604 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
30619 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
30624 for ac_func in strtoul
30626 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
30627 if test "x$ac_cv_func_strtoul" = xyes; then :
30628 cat >>confdefs.h <<_ACEOF
30629 #define HAVE_STRTOUL 1
30636 if test $ac_cv_func_strtoul = no; then
30645 gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
30662 if test $gl_cv_have_include_next = yes; then
30663 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
30666 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
30667 if ${gl_cv_next_sys_stat_h+:} false; then :
30668 $as_echo_n "(cached) " >&6
30671 if test $ac_cv_header_sys_stat_h = yes; then
30676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30677 /* end confdefs.h. */
30678 #include <sys/stat.h>
30681 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30682 *) gl_absname_cpp="$ac_cpp" ;;
30687 gl_dirsep_regex='[/\\]'
30690 gl_dirsep_regex='\/'
30693 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30694 gl_header_literal_regex=`echo 'sys/stat.h' \
30695 | sed -e "$gl_make_literal_regex_sed"`
30696 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30697 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30703 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30704 sed -n "$gl_absolute_header_sed"`
30706 gl_header=$gl_cv_absolute_sys_stat_h
30707 gl_cv_next_sys_stat_h='"'$gl_header'"'
30709 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
30715 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
30717 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
30719 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30721 gl_next_as_first_directive='<'sys/stat.h'>'
30723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30724 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
30726 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
30738 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
30740 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
30744 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
30745 #include <sys/stat.h>
30747 if test "x$ac_cv_type_nlink_t" = xyes; then :
30751 $as_echo "#define nlink_t int" >>confdefs.h
30757 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
30758 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30761 if eval \${$as_gl_Symbol+:} false; then :
30762 $as_echo_n "(cached) " >&6
30764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30765 /* end confdefs.h. */
30766 #include <sys/stat.h>
30777 if ac_fn_c_try_compile "$LINENO"; then :
30778 eval "$as_gl_Symbol=yes"
30780 eval "$as_gl_Symbol=no"
30782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30784 eval ac_res=\$$as_gl_Symbol
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30786 $as_echo "$ac_res" >&6; }
30787 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30788 cat >>confdefs.h <<_ACEOF
30789 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30792 eval ac_cv_have_decl_$gl_func=yes
30823 if test $gl_cv_have_include_next = yes; then
30824 gl_cv_next_unistd_h='<'unistd.h'>'
30826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
30827 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
30828 if ${gl_cv_next_unistd_h+:} false; then :
30829 $as_echo_n "(cached) " >&6
30832 if test $ac_cv_header_unistd_h = yes; then
30837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838 /* end confdefs.h. */
30839 #include <unistd.h>
30842 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30843 *) gl_absname_cpp="$ac_cpp" ;;
30848 gl_dirsep_regex='[/\\]'
30851 gl_dirsep_regex='\/'
30854 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30855 gl_header_literal_regex=`echo 'unistd.h' \
30856 | sed -e "$gl_make_literal_regex_sed"`
30857 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30858 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30864 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30865 sed -n "$gl_absolute_header_sed"`
30867 gl_header=$gl_cv_absolute_unistd_h
30868 gl_cv_next_unistd_h='"'$gl_header'"'
30870 gl_cv_next_unistd_h='<'unistd.h'>'
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
30876 $as_echo "$gl_cv_next_unistd_h" >&6; }
30878 NEXT_UNISTD_H=$gl_cv_next_unistd_h
30880 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30881 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30882 gl_next_as_first_directive='<'unistd.h'>'
30884 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30885 gl_next_as_first_directive=$gl_cv_next_unistd_h
30887 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
30892 if test $ac_cv_header_unistd_h = yes; then
30904 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
30905 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30907 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30908 if eval \${$as_gl_Symbol+:} false; then :
30909 $as_echo_n "(cached) " >&6
30911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30912 /* end confdefs.h. */
30915 # include <unistd.h>
30917 /* Some systems declare various items in the wrong headers. */
30918 #if !(defined __GLIBC__ && !defined __UCLIBC__)
30919 # include <fcntl.h>
30920 # include <stdio.h>
30921 # include <stdlib.h>
30922 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
30936 if ac_fn_c_try_compile "$LINENO"; then :
30937 eval "$as_gl_Symbol=yes"
30939 eval "$as_gl_Symbol=no"
30941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30943 eval ac_res=\$$as_gl_Symbol
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30945 $as_echo "$ac_res" >&6; }
30946 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30947 cat >>confdefs.h <<_ACEOF
30948 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30951 eval ac_cv_have_decl_$gl_func=yes
30958 if { test "$HAVE_LIBUNISTRING" != yes \
30963 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
30964 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
30965 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
30966 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
30967 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
30977 LIBUNISTRING_UNISTR_H='unistr.h'
30979 LIBUNISTRING_UNISTR_H=
30985 cat >>confdefs.h <<_ACEOF
30986 #define GNULIB_UNISTR_U8_MBTOUCR 1
30992 if { test "$HAVE_LIBUNISTRING" != yes \
30997 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
30998 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
30999 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31000 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31001 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
31011 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
31012 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
31014 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
31015 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
31021 cat >>confdefs.h <<_ACEOF
31022 #define GNULIB_UNISTR_U8_UCTOMB 1
31028 if { test "$HAVE_LIBUNISTRING" != yes \
31033 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31034 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31035 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31036 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31037 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
31047 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
31048 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
31050 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
31051 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
31057 if { test "$HAVE_LIBUNISTRING" != yes \
31062 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31063 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31064 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31065 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31066 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31076 LIBUNISTRING_UNITYPES_H='unitypes.h'
31078 LIBUNISTRING_UNITYPES_H=
31084 if { test "$HAVE_LIBUNISTRING" != yes \
31089 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31090 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31091 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31092 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31093 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31103 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
31105 LIBUNISTRING_UNIWIDTH_H=
31111 if { test "$HAVE_LIBUNISTRING" != yes \
31116 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31117 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31118 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31119 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31120 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
31130 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
31131 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
31133 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
31134 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
31140 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
31171 if test $gl_cv_have_include_next = yes; then
31172 gl_cv_next_wchar_h='<'wchar.h'>'
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
31175 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31176 if ${gl_cv_next_wchar_h+:} false; then :
31177 $as_echo_n "(cached) " >&6
31180 if test $ac_cv_header_wchar_h = yes; then
31185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31186 /* end confdefs.h. */
31190 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31191 *) gl_absname_cpp="$ac_cpp" ;;
31196 gl_dirsep_regex='[/\\]'
31199 gl_dirsep_regex='\/'
31202 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31203 gl_header_literal_regex=`echo 'wchar.h' \
31204 | sed -e "$gl_make_literal_regex_sed"`
31205 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31206 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31212 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31213 sed -n "$gl_absolute_header_sed"`
31215 gl_header=$gl_cv_absolute_wchar_h
31216 gl_cv_next_wchar_h='"'$gl_header'"'
31218 gl_cv_next_wchar_h='<'wchar.h'>'
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
31224 $as_echo "$gl_cv_next_wchar_h" >&6; }
31226 NEXT_WCHAR_H=$gl_cv_next_wchar_h
31228 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31230 gl_next_as_first_directive='<'wchar.h'>'
31232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31233 gl_next_as_first_directive=$gl_cv_next_wchar_h
31235 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
31240 if test $ac_cv_header_wchar_h = yes; then
31250 if test $gt_cv_c_wint_t = yes; then
31258 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
31259 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31261 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31262 if eval \${$as_gl_Symbol+:} false; then :
31263 $as_echo_n "(cached) " >&6
31265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31266 /* end confdefs.h. */
31268 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31270 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31271 included before <wchar.h>. */
31272 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31273 # include <stddef.h>
31274 # include <stdio.h>
31288 if ac_fn_c_try_compile "$LINENO"; then :
31289 eval "$as_gl_Symbol=yes"
31291 eval "$as_gl_Symbol=no"
31293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31295 eval ac_res=\$$as_gl_Symbol
31296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31297 $as_echo "$ac_res" >&6; }
31298 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31299 cat >>confdefs.h <<_ACEOF
31300 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31303 eval ac_cv_have_decl_$gl_func=yes
31313 if test $ac_cv_func_iswcntrl = yes; then
31321 if test $gt_cv_c_wint_t = yes; then
31337 if test $gl_cv_have_include_next = yes; then
31338 gl_cv_next_wctype_h='<'wctype.h'>'
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
31341 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
31342 if ${gl_cv_next_wctype_h+:} false; then :
31343 $as_echo_n "(cached) " >&6
31346 if test $ac_cv_header_wctype_h = yes; then
31351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31352 /* end confdefs.h. */
31353 #include <wctype.h>
31356 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31357 *) gl_absname_cpp="$ac_cpp" ;;
31362 gl_dirsep_regex='[/\\]'
31365 gl_dirsep_regex='\/'
31368 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31369 gl_header_literal_regex=`echo 'wctype.h' \
31370 | sed -e "$gl_make_literal_regex_sed"`
31371 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31372 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31378 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31379 sed -n "$gl_absolute_header_sed"`
31381 gl_header=$gl_cv_absolute_wctype_h
31382 gl_cv_next_wctype_h='"'$gl_header'"'
31384 gl_cv_next_wctype_h='<'wctype.h'>'
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
31390 $as_echo "$gl_cv_next_wctype_h" >&6; }
31392 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
31394 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31396 gl_next_as_first_directive='<'wctype.h'>'
31398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31399 gl_next_as_first_directive=$gl_cv_next_wctype_h
31401 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
31406 if test $ac_cv_header_wctype_h = yes; then
31407 if test $ac_cv_func_iswcntrl = yes; then
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
31409 $as_echo_n "checking whether iswcntrl works... " >&6; }
31410 if ${gl_cv_func_iswcntrl_works+:} false; then :
31411 $as_echo_n "(cached) " >&6
31414 if test "$cross_compiling" = yes; then :
31415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31416 /* end confdefs.h. */
31417 #include <stdlib.h>
31418 #if __GNU_LIBRARY__ == 1
31419 Linux libc5 i18n is broken.
31429 if ac_fn_c_try_compile "$LINENO"; then :
31430 gl_cv_func_iswcntrl_works="guessing yes"
31432 gl_cv_func_iswcntrl_works="guessing no"
31434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31438 /* end confdefs.h. */
31440 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31441 included before <wchar.h>.
31442 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31443 must be included before <wchar.h>. */
31444 #include <stddef.h>
31448 #include <wctype.h>
31449 int main () { return iswprint ('x') == 0; }
31452 if ac_fn_c_try_run "$LINENO"; then :
31453 gl_cv_func_iswcntrl_works=yes
31455 gl_cv_func_iswcntrl_works=no
31457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31458 conftest.$ac_objext conftest.beam conftest.$ac_ext
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
31464 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
31472 case "$gl_cv_func_iswcntrl_works" in
31473 *yes) REPLACE_ISWCNTRL=0 ;;
31474 *) REPLACE_ISWCNTRL=1 ;;
31478 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
31482 if test $REPLACE_ISWCNTRL = 1; then
31485 for ac_func in towlower
31487 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
31488 if test "x$ac_cv_func_towlower" = xyes; then :
31489 cat >>confdefs.h <<_ACEOF
31490 #define HAVE_TOWLOWER 1
31496 if test $ac_cv_func_towlower = yes; then
31499 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31500 included before <wchar.h>.
31501 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31502 must be included before <wchar.h>. */
31503 #include <stddef.h>
31508 # include <wctype.h>
31512 if test "x$ac_cv_have_decl_towlower" = xyes; then :
31518 cat >>confdefs.h <<_ACEOF
31519 #define HAVE_DECL_TOWLOWER $ac_have_decl
31522 if test $ac_cv_have_decl_towlower = yes; then
31531 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
31536 $as_echo_n "checking for wctype_t... " >&6; }
31537 if ${gl_cv_type_wctype_t+:} false; then :
31538 $as_echo_n "(cached) " >&6
31540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31541 /* end confdefs.h. */
31542 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31543 included before <wchar.h>.
31544 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31545 must be included before <wchar.h>. */
31546 #include <stddef.h>
31551 # include <wctype.h>
31563 if ac_fn_c_try_compile "$LINENO"; then :
31564 gl_cv_type_wctype_t=yes
31566 gl_cv_type_wctype_t=no
31568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
31572 $as_echo "$gl_cv_type_wctype_t" >&6; }
31573 if test $gl_cv_type_wctype_t = no; then
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
31578 $as_echo_n "checking for wctrans_t... " >&6; }
31579 if ${gl_cv_type_wctrans_t+:} false; then :
31580 $as_echo_n "(cached) " >&6
31582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31583 /* end confdefs.h. */
31584 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31585 included before <wchar.h>.
31586 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31587 must be included before <wchar.h>. */
31588 #include <stddef.h>
31592 #include <wctype.h>
31603 if ac_fn_c_try_compile "$LINENO"; then :
31604 gl_cv_type_wctrans_t=yes
31606 gl_cv_type_wctrans_t=no
31608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
31612 $as_echo "$gl_cv_type_wctrans_t" >&6; }
31613 if test $gl_cv_type_wctrans_t = no; then
31618 for gl_func in wctype iswctype wctrans towctrans ; do
31619 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31621 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31622 if eval \${$as_gl_Symbol+:} false; then :
31623 $as_echo_n "(cached) " >&6
31625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31626 /* end confdefs.h. */
31628 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31630 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31631 included before <wchar.h>. */
31632 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31633 # include <stddef.h>
31634 # include <stdio.h>
31636 # include <wchar.h>
31638 #include <wctype.h>
31649 if ac_fn_c_try_compile "$LINENO"; then :
31650 eval "$as_gl_Symbol=yes"
31652 eval "$as_gl_Symbol=no"
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31656 eval ac_res=\$$as_gl_Symbol
31657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31658 $as_echo "$ac_res" >&6; }
31659 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31660 cat >>confdefs.h <<_ACEOF
31661 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31664 eval ac_cv_have_decl_$gl_func=yes
31680 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
31681 /* AIX 3.2.5 declares wcwidth in <string.h>. */
31682 #include <string.h>
31683 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31685 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
31686 before <wchar.h>. */
31687 #include <stddef.h>
31693 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
31699 cat >>confdefs.h <<_ACEOF
31700 #define HAVE_DECL_WCWIDTH $ac_have_decl
31703 if test $ac_cv_have_decl_wcwidth != yes; then
31704 HAVE_DECL_WCWIDTH=0
31707 if test $ac_cv_func_wcwidth = yes; then
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
31710 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
31711 if ${gl_cv_func_wcwidth_works+:} false; then :
31712 $as_echo_n "(cached) " >&6
31715 if test "$cross_compiling" = yes; then :
31718 # Guess yes on glibc and AIX 7 systems.
31719 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
31720 *) gl_cv_func_wcwidth_works="guessing no";;
31724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31725 /* end confdefs.h. */
31727 #include <locale.h>
31728 /* AIX 3.2.5 declares wcwidth in <string.h>. */
31729 #include <string.h>
31730 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31732 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
31733 before <wchar.h>. */
31734 #include <stddef.h>
31738 #if !HAVE_DECL_WCWIDTH
31740 # ifdef __cplusplus
31748 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
31750 if (wcwidth (0x0301) > 0)
31752 if (wcwidth (0x05B0) > 0)
31754 if (wcwidth (0x200B) > 0)
31760 if ac_fn_c_try_run "$LINENO"; then :
31761 gl_cv_func_wcwidth_works=yes
31763 gl_cv_func_wcwidth_works=no
31765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31766 conftest.$ac_objext conftest.beam conftest.$ac_ext
31771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
31772 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
31773 case "$gl_cv_func_wcwidth_works" in
31775 *no) REPLACE_WCWIDTH=1 ;;
31781 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
31790 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
31804 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
31808 # End of code from modules
31829 gl_source_base='tests'
31830 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
31832 gl_module_indicator_condition=$gltests_WITNESS
31842 LIBGRT_LIBDEPS="$gl_libdeps"
31844 LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
31847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
31848 if test "x$ac_cv_type_size_t" = xyes; then :
31852 cat >>confdefs.h <<_ACEOF
31853 #define size_t unsigned int
31858 for ac_func in setlocale
31860 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
31861 if test "x$ac_cv_func_setlocale" = xyes; then :
31862 cat >>confdefs.h <<_ACEOF
31863 #define HAVE_SETLOCALE 1
31872 if test "$enable_shared" = yes; then
31874 mingw* | cygwin*) is_woe32dll=yes ;;
31875 *) is_woe32dll=no ;;
31880 if test $is_woe32dll = yes; then
31888 if test $is_woe32dll = yes; then
31890 $as_echo "#define WOE32DLL 1" >>confdefs.h
31894 INTL_EXPORTS_FLAGS=
31895 if test "$USER_LABEL_PREFIX" = _; then
31896 INTL_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $INTL_EXPORTS_FLAGS"
31900 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
31901 # Extract the first word of "perl", so it can be a program name with args.
31902 set dummy perl; ac_word=$2
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31904 $as_echo_n "checking for $ac_word... " >&6; }
31905 if ${ac_cv_path_PERL+:} false; then :
31906 $as_echo_n "(cached) " >&6
31910 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31914 for as_dir in $PATH
31917 test -z "$as_dir" && as_dir=.
31918 for ac_exec_ext in '' $ac_executable_extensions; do
31919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31920 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31928 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
31932 PERL=$ac_cv_path_PERL
31933 if test -n "$PERL"; then
31934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31935 $as_echo "$PERL" >&6; }
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31938 $as_echo "no" >&6; }
31943 CROSS_COMPILING=$cross_compiling
31949 if test "$CXX_CHOICE" = no; then
31952 if test -z "$CXX"; then
31953 if test -n "$CCC"; then
31956 if test -n "$ac_tool_prefix"; then
31957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
31959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31962 $as_echo_n "checking for $ac_word... " >&6; }
31963 if ${ac_cv_prog_CXX+:} false; then :
31964 $as_echo_n "(cached) " >&6
31966 if test -n "$CXX"; then
31967 ac_cv_prog_CXX="$CXX" # Let the user override the test.
31969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31970 for as_dir in $PATH
31973 test -z "$as_dir" && as_dir=.
31974 for ac_exec_ext in '' $ac_executable_extensions; do
31975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31976 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
31977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31986 CXX=$ac_cv_prog_CXX
31987 if test -n "$CXX"; then
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
31989 $as_echo "$CXX" >&6; }
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31992 $as_echo "no" >&6; }
31996 test -n "$CXX" && break
31999 if test -z "$CXX"; then
32001 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
32003 # Extract the first word of "$ac_prog", so it can be a program name with args.
32004 set dummy $ac_prog; ac_word=$2
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32006 $as_echo_n "checking for $ac_word... " >&6; }
32007 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
32008 $as_echo_n "(cached) " >&6
32010 if test -n "$ac_ct_CXX"; then
32011 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
32013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32014 for as_dir in $PATH
32017 test -z "$as_dir" && as_dir=.
32018 for ac_exec_ext in '' $ac_executable_extensions; do
32019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32020 ac_cv_prog_ac_ct_CXX="$ac_prog"
32021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32030 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32031 if test -n "$ac_ct_CXX"; then
32032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
32033 $as_echo "$ac_ct_CXX" >&6; }
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32036 $as_echo "no" >&6; }
32040 test -n "$ac_ct_CXX" && break
32043 if test "x$ac_ct_CXX" = x; then
32046 case $cross_compiling:$ac_tool_warned in
32048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32050 ac_tool_warned=yes ;;
32058 if test "$CXX" != no; then
32059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
32060 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
32062 ac_cpp='$CXXCPP $CPPFLAGS'
32063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32069 echo 'int main () { return 0; }' > conftest.$ac_ext
32070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32071 (eval $ac_link) 2>&5
32073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32074 test $ac_status = 0; } && test -s conftest$ac_exeext; then
32075 gl_cv_prog_ansicxx_works=yes
32076 if (./conftest; exit) 2>/dev/null; then
32077 gl_cv_prog_ansicxx_cross=no
32079 gl_cv_prog_ansicxx_cross=yes
32082 gl_cv_prog_ansicxx_works=no
32086 ac_cpp='$CPP $CPPFLAGS'
32087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
32092 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
32093 if test $gl_cv_prog_ansicxx_works = no; then
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
32097 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
32099 ac_cpp='$CXXCPP $CPPFLAGS'
32100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32104 cat <<EOF > conftest.$ac_ext
32105 #include <iostream>
32106 namespace test { using namespace std; }
32108 int main () { return 0; }
32110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32111 (eval $ac_link) 2>&5
32113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32114 test $ac_status = 0; } && test -s conftest$ac_exeext; then
32115 gl_cv_prog_ansicxx_namespaces=yes
32117 gl_cv_prog_ansicxx_namespaces=no
32121 ac_cpp='$CPP $CPPFLAGS'
32122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
32127 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
32128 if test $gl_cv_prog_ansicxx_namespaces = no; then
32136 if test "$CXX" != no; then
32145 if test "$CXX" != no; then
32147 depcc="$CXX" am_compiler_list=
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
32150 $as_echo_n "checking dependency style of $depcc... " >&6; }
32151 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
32152 $as_echo_n "(cached) " >&6
32154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32155 # We make a subdir and do the tests there. Otherwise we can end up
32156 # making bogus files that we don't know about and never remove. For
32157 # instance it was reported that on HP-UX the gcc test will end up
32158 # making a dummy file named 'D' -- because '-MD' means "put the output
32160 rm -rf conftest.dir
32162 # Copy depcomp to subdir because otherwise we won't find it if we're
32163 # using a relative directory.
32164 cp "$am_depcomp" conftest.dir
32166 # We will build objects and dependencies in a subdirectory because
32167 # it helps to detect inapplicable dependency modes. For instance
32168 # both Tru64's cc and ICC support -MD to output dependencies as a
32169 # side effect of compilation, but ICC will put the dependencies in
32170 # the current directory while Tru64 will put them in the object
32174 am_cv_CXX_dependencies_compiler_type=none
32175 if test "$am_compiler_list" = ""; then
32176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32178 am__universal=false
32179 case " $depcc " in #(
32180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32183 for depmode in $am_compiler_list; do
32184 # Setup a source with many dependencies, because some compilers
32185 # like to wrap large dependency lists on column 80 (with \), and
32186 # we should not choose a depcomp mode which is confused by this.
32188 # We need to recreate these files for each test, as the compiler may
32189 # overwrite some of them when testing with obscure command lines.
32190 # This happens at least with the AIX C compiler.
32192 for i in 1 2 3 4 5 6; do
32193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32194 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
32195 # Solaris 10 /bin/sh.
32196 echo '/* dummy */' > sub/conftst$i.h
32198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32200 # We check with '-c' and '-o' for the sake of the "dashmstdout"
32201 # mode. It turns out that the SunPro C++ compiler does not properly
32202 # handle '-M -o', and we need to detect this. Also, some Intel
32203 # versions had trouble with output in subdirs.
32204 am__obj=sub/conftest.${OBJEXT-o}
32205 am__minus_obj="-o $am__obj"
32208 # This depmode causes a compiler race in universal mode.
32209 test "$am__universal" = false || continue
32212 # After this tag, mechanisms are not by side-effect, so they'll
32213 # only be used when explicitly requested.
32214 if test "x$enable_dependency_tracking" = xyes; then
32220 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
32221 # This compiler won't grok '-c -o', but also, the minuso test has
32222 # not run yet. These depmodes are late enough in the game, and
32223 # so weak that their functioning should not be impacted.
32224 am__obj=conftest.${OBJEXT-o}
32229 if depmode=$depmode \
32230 source=sub/conftest.c object=$am__obj \
32231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32233 >/dev/null 2>conftest.err &&
32234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32238 # icc doesn't choke on unknown options, it will just issue warnings
32239 # or remarks (even with -Werror). So we grep stderr for any message
32240 # that says an option was ignored or not supported.
32241 # When given -MP, icc 7.0 and 7.1 complain thusly:
32242 # icc: Command line warning: ignoring option '-M'; no argument required
32243 # The diagnosis changed in icc 8.0:
32244 # icc: Command line remark: option '-MP' not supported
32245 if (grep 'ignoring option' conftest.err ||
32246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32247 am_cv_CXX_dependencies_compiler_type=$depmode
32254 rm -rf conftest.dir
32256 am_cv_CXX_dependencies_compiler_type=none
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
32261 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32262 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32265 test "x$enable_dependency_tracking" != xno \
32266 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32267 am__fastdepCXX_TRUE=
32268 am__fastdepCXX_FALSE='#'
32270 am__fastdepCXX_TRUE='#'
32271 am__fastdepCXX_FALSE=
32277 am__fastdepCXX_TRUE=
32278 am__fastdepCXX_FALSE='#'
32280 am__fastdepCXX_TRUE='#'
32281 am__fastdepCXX_FALSE=
32288 if test $gl_threads_api = posix; then
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
32290 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
32291 if ${ac_cv_lib_rt_sched_yield+:} false; then :
32292 $as_echo_n "(cached) " >&6
32294 ac_check_lib_save_LIBS=$LIBS
32296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32297 /* end confdefs.h. */
32299 /* Override any GCC internal prototype to avoid an error.
32300 Use char because int might match the return type of a GCC
32301 builtin and then its argument prototype would still apply. */
32305 char sched_yield ();
32309 return sched_yield ();
32314 if ac_fn_c_try_link "$LINENO"; then :
32315 ac_cv_lib_rt_sched_yield=yes
32317 ac_cv_lib_rt_sched_yield=no
32319 rm -f core conftest.err conftest.$ac_objext \
32320 conftest$ac_exeext conftest.$ac_ext
32321 LIBS=$ac_check_lib_save_LIBS
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
32324 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
32325 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
32328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
32329 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
32330 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
32331 $as_echo_n "(cached) " >&6
32333 ac_check_lib_save_LIBS=$LIBS
32334 LIBS="-lposix4 $LIBS"
32335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336 /* end confdefs.h. */
32338 /* Override any GCC internal prototype to avoid an error.
32339 Use char because int might match the return type of a GCC
32340 builtin and then its argument prototype would still apply. */
32344 char sched_yield ();
32348 return sched_yield ();
32353 if ac_fn_c_try_link "$LINENO"; then :
32354 ac_cv_lib_posix4_sched_yield=yes
32356 ac_cv_lib_posix4_sched_yield=no
32358 rm -f core conftest.err conftest.$ac_objext \
32359 conftest$ac_exeext conftest.$ac_ext
32360 LIBS=$ac_check_lib_save_LIBS
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
32363 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
32364 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
32373 # Check whether --enable-libasprintf was given.
32374 if test "${enable_libasprintf+set}" = set; then :
32375 enableval=$enable_libasprintf; if test "$enableval" != no; then
32376 SUBDIR_libasprintf=libasprintf
32378 SUBDIR_libasprintf=
32382 SUBDIR_libasprintf=libasprintf
32385 if test "$CXX" = "no"; then
32386 SUBDIR_libasprintf=
32388 if test -n "$SUBDIR_libasprintf"; then
32389 ENABLE_LIBASPRINTF_TRUE=
32390 ENABLE_LIBASPRINTF_FALSE='#'
32392 ENABLE_LIBASPRINTF_TRUE='#'
32393 ENABLE_LIBASPRINTF_FALSE=
32399 subdirs="$subdirs libasprintf"
32402 ac_config_files="$ac_config_files Makefile"
32405 ac_config_files="$ac_config_files doc/Makefile"
32408 ac_config_files="$ac_config_files intl/Makefile"
32411 ac_config_files="$ac_config_files intl-java/Makefile"
32414 ac_config_files="$ac_config_files intl-csharp/Makefile"
32417 ac_config_files="$ac_config_files gnulib-lib/Makefile"
32420 ac_config_files="$ac_config_files src/Makefile"
32422 ac_config_files="$ac_config_files src/gettext.sh"
32425 ac_config_files="$ac_config_files po/Makefile.in"
32428 ac_config_files="$ac_config_files man/Makefile"
32430 ac_config_files="$ac_config_files man/x-to-1"
32433 ac_config_files="$ac_config_files m4/Makefile"
32436 ac_config_files="$ac_config_files tests/Makefile"
32439 cat >confcache <<\_ACEOF
32440 # This file is a shell script that caches the results of configure
32441 # tests run on this system so they can be shared between configure
32442 # scripts and configure runs, see configure's option --config-cache.
32443 # It is not useful on other systems. If it contains results you don't
32444 # want to keep, you may remove or edit it.
32446 # config.status only pays attention to the cache file if you give it
32447 # the --recheck option to rerun configure.
32449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32451 # following values.
32455 # The following way of writing the cache mishandles newlines in values,
32456 # but we know of no workaround that is simple, portable, and efficient.
32457 # So, we kill variables containing newlines.
32458 # Ultrix sh set writes to stderr and can't be redirected directly,
32459 # and sets the high bit in the cache file unless we assign to the vars.
32461 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32462 eval ac_val=\$$ac_var
32466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32470 _ | IFS | as_nl) ;; #(
32471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32472 *) { eval $ac_var=; unset $ac_var;} ;;
32478 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32479 *${as_nl}ac_space=\ *)
32480 # `set' does not quote correctly, so add quotes: double-quote
32481 # substitution turns \\\\ into \\, and sed turns \\ into \.
32484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32487 # `set' quotes correctly as required by POSIX, so do not add quotes.
32488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32499 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32501 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32502 if test -w "$cache_file"; then
32503 if test "x$cache_file" != "x/dev/null"; then
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32505 $as_echo "$as_me: updating cache $cache_file" >&6;}
32506 if test ! -f "$cache_file" || test -h "$cache_file"; then
32507 cat confcache >"$cache_file"
32509 case $cache_file in #(
32511 mv -f confcache "$cache_file"$$ &&
32512 mv -f "$cache_file"$$ "$cache_file" ;; #(
32514 mv -f confcache "$cache_file" ;;
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32520 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32526 # Let make expand exec_prefix.
32527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32529 DEFS=-DHAVE_CONFIG_H
32534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32535 # 1. Remove the extension, and $U if already installed.
32536 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32537 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32538 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32539 # will be set to the directory where LIBOBJS objects are built.
32540 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32541 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32543 LIBOBJS=$ac_libobjs
32545 LTLIBOBJS=$ac_ltlibobjs
32548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32549 $as_echo_n "checking that generated files are newer than configure... " >&6; }
32550 if test -n "$am_sleep_pid"; then
32551 # Hide warnings about reused PIDs.
32552 wait $am_sleep_pid 2>/dev/null
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32555 $as_echo "done" >&6; }
32556 if test -n "$EXEEXT"; then
32558 am__EXEEXT_FALSE='#'
32560 am__EXEEXT_TRUE='#'
32564 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32565 as_fn_error $? "conditional \"AMDEP\" was never defined.
32566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32568 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32569 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32572 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
32573 as_fn_error $? "conditional \"WOE32\" was never defined.
32574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32576 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32577 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32580 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32581 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
32582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32584 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
32585 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
32586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32588 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
32589 as_fn_error $? "conditional \"ANSICXX\" was never defined.
32590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32592 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32593 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32596 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32597 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32600 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
32601 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
32602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32604 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32605 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32608 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32609 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32612 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32613 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
32614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32616 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
32617 as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
32618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32620 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
32621 as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
32622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32624 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
32625 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
32626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32628 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32629 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
32630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32632 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
32633 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
32634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32636 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
32637 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
32638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32640 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
32641 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
32642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32644 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
32645 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
32646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32651 if test -n "$gl_LIBOBJS"; then
32652 # Remove the extension.
32653 sed_drop_objext='s/\.o$//;s/\.obj$//'
32654 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32655 gl_libobjs="$gl_libobjs $i.$ac_objext"
32656 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
32659 gl_LIBOBJS=$gl_libobjs
32661 gl_LTLIBOBJS=$gl_ltlibobjs
32667 if test -n "$gltests_LIBOBJS"; then
32668 # Remove the extension.
32669 sed_drop_objext='s/\.o$//;s/\.obj$//'
32670 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32671 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
32672 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
32675 gltests_LIBOBJS=$gltests_libobjs
32677 gltests_LTLIBOBJS=$gltests_ltlibobjs
32680 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
32681 as_fn_error $? "conditional \"WOE32DLL\" was never defined.
32682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32684 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
32685 as_fn_error $? "conditional \"ANSICXX\" was never defined.
32686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32688 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32689 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32693 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32696 if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then
32697 as_fn_error $? "conditional \"ENABLE_LIBASPRINTF\" was never defined.
32698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32701 : "${CONFIG_STATUS=./config.status}"
32703 ac_clean_files_save=$ac_clean_files
32704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32710 # Generated by $as_me.
32711 # Run this file to recreate the current configuration.
32712 # Compiler output produced by configure, useful for debugging
32713 # configure, is in config.log if it exists.
32716 ac_cs_recheck=false
32719 SHELL=\${CONFIG_SHELL-$SHELL}
32722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32723 ## -------------------- ##
32724 ## M4sh Initialization. ##
32725 ## -------------------- ##
32727 # Be more Bourne compatible
32728 DUALCASE=1; export DUALCASE # for MKS sh
32729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32733 # is contrary to our usage. Disable this feature.
32734 alias -g '${1+"$@"}'='"$@"'
32735 setopt NO_GLOB_SUBST
32737 case `(set -o) 2>/dev/null` in #(
32749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32753 # Prefer a ksh shell builtin over an external printf program on Solaris,
32754 # but without wasting forks for bash or zsh.
32755 if test -z "$BASH_VERSION$ZSH_VERSION" \
32756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32757 as_echo='print -r --'
32758 as_echo_n='print -rn --'
32759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32760 as_echo='printf %s\n'
32761 as_echo_n='printf %s'
32763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32765 as_echo_n='/usr/ucb/echo -n'
32767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32768 as_echo_n_body='eval
32772 expr "X$arg" : "X\\(.*\\)$as_nl";
32773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32777 export as_echo_n_body
32778 as_echo_n='sh -c $as_echo_n_body as_echo'
32780 export as_echo_body
32781 as_echo='sh -c $as_echo_body as_echo'
32784 # The user is always right.
32785 if test "${PATH_SEPARATOR+set}" != set; then
32787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32795 # We need space, tab and new line, in precisely that order. Quoting is
32796 # there to prevent editors from complaining about space-tab.
32797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32798 # splitting by setting IFS to empty value.)
32801 # Find who we are. Look in the path if we contain no directory separator.
32804 *[\\/]* ) as_myself=$0 ;;
32805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32806 for as_dir in $PATH
32809 test -z "$as_dir" && as_dir=.
32810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32816 # We did not find ourselves, most probably we were run as `sh COMMAND'
32817 # in which case we are not to be found in the path.
32818 if test "x$as_myself" = x; then
32821 if test ! -f "$as_myself"; then
32822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32826 # Unset variables that we do not need and which cause bugs (e.g. in
32827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32828 # suppresses any "Segmentation fault" message there. '((' could
32829 # trigger a bug in pdksh 5.2.14.
32830 for as_var in BASH_ENV ENV MAIL MAILPATH
32831 do eval test x\${$as_var+set} = xset \
32832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32848 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32849 # ----------------------------------------
32850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32852 # script with STATUS, using 1 if that was 0.
32855 as_status=$1; test $as_status -eq 0 && as_status=1
32857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32860 $as_echo "$as_me: error: $2" >&2
32861 as_fn_exit $as_status
32865 # as_fn_set_status STATUS
32866 # -----------------------
32867 # Set $? to STATUS, without forking.
32868 as_fn_set_status ()
32871 } # as_fn_set_status
32873 # as_fn_exit STATUS
32874 # -----------------
32875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32879 as_fn_set_status $1
32885 # Portably unset VAR.
32888 { eval $1=; unset $1;}
32890 as_unset=as_fn_unset
32891 # as_fn_append VAR VALUE
32892 # ----------------------
32893 # Append the text in VALUE to the end of the definition contained in VAR. Take
32894 # advantage of any shell optimizations that allow amortized linear growth over
32895 # repeated appends, instead of the typical quadratic growth present in naive
32897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32898 eval 'as_fn_append ()
32909 # as_fn_arith ARG...
32910 # ------------------
32911 # Perform arithmetic evaluation on the ARGs, and store the result in the
32912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32913 # must be portable across $(()) and expr.
32914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32915 eval 'as_fn_arith ()
32922 as_val=`expr "$@" || test $? -eq 1`
32927 if expr a : '\(a\)' >/dev/null 2>&1 &&
32928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32935 as_basename=basename
32940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32946 as_me=`$as_basename -- "$0" ||
32947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32948 X"$0" : 'X\(//\)$' \| \
32949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32951 sed '/^.*\/\([^/][^/]*\)\/*$/{
32965 # Avoid depending upon Character Ranges.
32966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32969 as_cr_digits='0123456789'
32970 as_cr_alnum=$as_cr_Letters$as_cr_digits
32972 ECHO_C= ECHO_N= ECHO_T=
32973 case `echo -n x` in #(((((
32975 case `echo 'xy\c'` in
32976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32985 rm -f conf$$ conf$$.exe conf$$.file
32986 if test -d conf$$.dir; then
32987 rm -f conf$$.dir/conf$$.file
32990 mkdir conf$$.dir 2>/dev/null
32992 if (echo >conf$$.file) 2>/dev/null; then
32993 if ln -s conf$$.file conf$$ 2>/dev/null; then
32995 # ... but there are two gotchas:
32996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32998 # In both cases, we have to default to `cp -pR'.
32999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33001 elif ln conf$$.file conf$$ 2>/dev/null; then
33009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33010 rmdir conf$$.dir 2>/dev/null
33015 # Create "$as_dir" as a directory, including parents if necessary.
33020 -*) as_dir=./$as_dir;;
33022 test -d "$as_dir" || eval $as_mkdir_p || {
33026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33027 *) as_qdir=$as_dir;;
33029 as_dirs="'$as_qdir' $as_dirs"
33030 as_dir=`$as_dirname -- "$as_dir" ||
33031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33032 X"$as_dir" : 'X\(//\)[^/]' \| \
33033 X"$as_dir" : 'X\(//\)$' \| \
33034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33035 $as_echo X"$as_dir" |
33036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33040 /^X\(\/\/\)[^/].*/{
33053 test -d "$as_dir" && break
33055 test -z "$as_dirs" || eval "mkdir $as_dirs"
33056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33060 if mkdir -p . 2>/dev/null; then
33061 as_mkdir_p='mkdir -p "$as_dir"'
33063 test -d ./-p && rmdir ./-p
33068 # as_fn_executable_p FILE
33069 # -----------------------
33070 # Test if FILE is an executable regular file.
33071 as_fn_executable_p ()
33073 test -f "$1" && test -x "$1"
33074 } # as_fn_executable_p
33075 as_test_x='test -x'
33076 as_executable_p=as_fn_executable_p
33078 # Sed expression to map a string onto a valid CPP name.
33079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33081 # Sed expression to map a string onto a valid variable name.
33082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33086 ## ----------------------------------- ##
33087 ## Main body of $CONFIG_STATUS script. ##
33088 ## ----------------------------------- ##
33090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33093 # Save the log message, to keep $0 and so on meaningful, and to
33094 # report actual input values of CONFIG_FILES etc. instead of their
33095 # values after options handling.
33097 This file was extended by gettext-runtime $as_me 0.19.7, which was
33098 generated by GNU Autoconf 2.69. Invocation command line was
33100 CONFIG_FILES = $CONFIG_FILES
33101 CONFIG_HEADERS = $CONFIG_HEADERS
33102 CONFIG_LINKS = $CONFIG_LINKS
33103 CONFIG_COMMANDS = $CONFIG_COMMANDS
33106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33111 case $ac_config_files in *"
33112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33115 case $ac_config_headers in *"
33116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33121 # Files that config.status was made for.
33122 config_files="$ac_config_files"
33123 config_headers="$ac_config_headers"
33124 config_commands="$ac_config_commands"
33128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33130 \`$as_me' instantiates files and other configuration actions
33131 from templates according to the current configuration. Unless the files
33132 and actions are specified as TAGs, all are instantiated by default.
33134 Usage: $0 [OPTION]... [TAG]...
33136 -h, --help print this help, then exit
33137 -V, --version print version number and configuration settings, then exit
33138 --config print configuration, then exit
33139 -q, --quiet, --silent
33140 do not print progress messages
33141 -d, --debug don't remove temporary files
33142 --recheck update $as_me by reconfiguring in the same conditions
33143 --file=FILE[:TEMPLATE]
33144 instantiate the configuration file FILE
33145 --header=FILE[:TEMPLATE]
33146 instantiate the configuration header FILE
33148 Configuration files:
33151 Configuration headers:
33154 Configuration commands:
33157 Report bugs to <bug-gnu-gettext@gnu.org>."
33160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33161 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33163 gettext-runtime config.status 0.19.7
33164 configured by $0, generated by GNU Autoconf 2.69,
33165 with options \\"\$ac_cs_config\\"
33167 Copyright (C) 2012 Free Software Foundation, Inc.
33168 This config.status script is free software; the Free Software Foundation
33169 gives unlimited permission to copy, distribute and modify it."
33176 test -n "\$AWK" || AWK=awk
33179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33180 # The default lists apply if the user does not specify any file.
33186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33203 # Handling of the options.
33204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33207 $as_echo "$ac_cs_version"; exit ;;
33208 --config | --confi | --conf | --con | --co | --c )
33209 $as_echo "$ac_cs_config"; exit ;;
33210 --debug | --debu | --deb | --de | --d | -d )
33212 --file | --fil | --fi | --f )
33215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33216 '') as_fn_error $? "missing file argument" ;;
33218 as_fn_append CONFIG_FILES " '$ac_optarg'"
33219 ac_need_defaults=false;;
33220 --header | --heade | --head | --hea )
33223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33226 ac_need_defaults=false;;
33228 # Conflict between --help and --header
33229 as_fn_error $? "ambiguous option: \`$1'
33230 Try \`$0 --help' for more information.";;
33231 --help | --hel | -h )
33232 $as_echo "$ac_cs_usage"; exit ;;
33233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33237 # This is an error.
33238 -*) as_fn_error $? "unrecognized option: \`$1'
33239 Try \`$0 --help' for more information." ;;
33241 *) as_fn_append ac_config_targets " $1"
33242 ac_need_defaults=false ;;
33248 ac_configure_extra_args=
33250 if $ac_cs_silent; then
33252 ac_configure_extra_args="$ac_configure_extra_args --silent"
33256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33257 if \$ac_cs_recheck; then
33258 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33261 CONFIG_SHELL='$SHELL'
33262 export CONFIG_SHELL
33267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33272 ## Running $as_me. ##
33278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33285 # The HP-UX ksh and POSIX shell print the target directory to stdout
33286 # if CDPATH is set.
33287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33289 sed_quote_subst='$sed_quote_subst'
33290 double_quote_subst='$double_quote_subst'
33291 delay_variable_subst='$delay_variable_subst'
33292 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33293 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33294 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33295 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33296 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33297 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33298 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33299 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33300 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33301 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33302 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33303 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33304 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33305 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33306 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33307 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33308 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33309 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33310 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33311 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33312 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33313 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33314 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33315 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33316 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33317 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33318 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33319 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33320 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33321 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33322 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33323 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33324 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33325 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33326 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33327 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33328 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33329 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33330 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33331 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33332 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33333 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33334 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33335 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33336 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33337 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33338 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33339 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33340 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33341 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33342 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33343 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33344 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33345 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33346 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33347 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33348 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33349 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
33350 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33351 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"`'
33352 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
33353 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33354 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33355 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
33356 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33357 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33358 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33360 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33361 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33362 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33363 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33364 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33365 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33366 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33367 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33368 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33369 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33370 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33371 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33372 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33373 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33374 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33375 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33376 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33377 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33378 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33379 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33380 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33381 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33382 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33383 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33384 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33385 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33386 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33387 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33388 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33389 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33390 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33391 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33392 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33393 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33394 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33395 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33401 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33402 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33403 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33404 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33405 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33406 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33407 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33408 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33409 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33410 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33411 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33412 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33413 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33414 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33415 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33416 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33417 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33418 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33419 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33420 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
33421 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
33422 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33423 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33424 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33425 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33426 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33427 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33428 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
33429 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
33430 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
33431 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
33432 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
33433 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
33434 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
33435 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
33436 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
33437 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
33438 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
33439 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
33440 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
33441 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33442 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33443 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
33444 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
33445 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
33446 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
33447 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
33448 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
33449 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
33450 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
33451 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
33452 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
33453 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33454 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
33455 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
33456 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
33457 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
33458 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
33459 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
33460 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
33461 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
33462 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
33463 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
33464 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
33465 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
33466 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
33467 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
33468 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
33469 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
33472 LTCFLAGS='$LTCFLAGS'
33473 compiler='$compiler_DEFAULT'
33475 # A function that is used when there is no print builtin or printf.
33476 func_fallback_echo ()
33478 eval 'cat <<_LTECHO_EOF
33483 # Quote evaled strings.
33500 deplibs_check_method \
33504 sharedlib_from_linklib_cmd \
33507 archiver_list_spec \
33513 lt_cv_sys_global_symbol_pipe \
33514 lt_cv_sys_global_symbol_to_cdecl \
33515 lt_cv_sys_global_symbol_to_import \
33516 lt_cv_sys_global_symbol_to_c_name_address \
33517 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33518 lt_cv_nm_interface \
33519 nm_file_list_spec \
33520 lt_cv_truncate_bin \
33521 lt_prog_compiler_no_builtin_flag \
33522 lt_prog_compiler_pic \
33523 lt_prog_compiler_wl \
33524 lt_prog_compiler_static \
33525 lt_cv_prog_compiler_c_o \
33534 export_dynamic_flag_spec \
33535 whole_archive_flag_spec \
33536 compiler_needs_object \
33538 allow_undefined_flag \
33539 no_undefined_flag \
33540 hardcode_libdir_flag_spec \
33541 hardcode_libdir_separator \
33545 variables_saved_for_relink \
33547 library_names_spec \
33549 install_override_mode \
33556 lt_prog_compiler_no_builtin_flag_RC \
33557 lt_prog_compiler_pic_RC \
33558 lt_prog_compiler_wl_RC \
33559 lt_prog_compiler_static_RC \
33560 lt_cv_prog_compiler_c_o_RC \
33561 export_dynamic_flag_spec_RC \
33562 whole_archive_flag_spec_RC \
33563 compiler_needs_object_RC \
33565 allow_undefined_flag_RC \
33566 no_undefined_flag_RC \
33567 hardcode_libdir_flag_spec_RC \
33568 hardcode_libdir_separator_RC \
33569 exclude_expsyms_RC \
33570 include_expsyms_RC \
33571 file_list_spec_RC; do
33572 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33573 *[\\\\\\\`\\"\\\$]*)
33574 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33577 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33582 # Double-quote double-evaled strings.
33583 for var in reload_cmds \
33584 old_postinstall_cmds \
33585 old_postuninstall_cmds \
33587 extract_expsyms_cmds \
33588 old_archive_from_new_cmds \
33589 old_archive_from_expsyms_cmds \
33591 archive_expsym_cmds \
33593 module_expsym_cmds \
33594 export_symbols_cmds \
33598 postuninstall_cmds \
33600 sys_lib_search_path_spec \
33601 configure_time_dlsearch_path \
33602 configure_time_lt_sys_library_path \
33604 old_archive_cmds_RC \
33605 old_archive_from_new_cmds_RC \
33606 old_archive_from_expsyms_cmds_RC \
33608 archive_expsym_cmds_RC \
33610 module_expsym_cmds_RC \
33611 export_symbols_cmds_RC \
33613 postlink_cmds_RC; do
33614 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33615 *[\\\\\\\`\\"\\\$]*)
33616 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33619 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33624 ac_aux_dir='$ac_aux_dir'
33626 # See if we are running on zsh, and set the options that allow our
33627 # commands through without removal of \ escapes INIT.
33628 if test -n "\${ZSH_VERSION+set}"; then
33629 setopt NO_GLOB_SUBST
33642 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33643 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33644 # from automake < 1.5.
33645 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33646 # Capture the value of LINGUAS because we need it to compute CATALOGS.
33647 LINGUAS="${LINGUAS-%UNSET%}"
33652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33654 # Handling of arguments.
33655 for ac_config_target in $ac_config_targets
33657 case $ac_config_target in
33658 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33659 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33660 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33661 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33662 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
33663 "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
33664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33665 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33666 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33667 "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
33668 "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
33669 "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
33670 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33671 "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;;
33672 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33673 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
33674 "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
33675 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33676 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33678 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33683 # If the user did not use the arguments to specify the items to instantiate,
33684 # then the envvar interface is used. Set only those that are not.
33685 # We use the long form for the default assignment because of an extremely
33686 # bizarre bug on SunOS 4.1.3.
33687 if $ac_need_defaults; then
33688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33693 # Have a temporary directory for convenience. Make it in the build tree
33694 # simply because there is no reason against having it here, and in addition,
33695 # creating and moving files from /tmp can sometimes cause problems.
33696 # Hook for its removal unless debugging.
33697 # Note that there is a small window in which the directory will not be cleaned:
33698 # after its creation but before its name has been assigned to `$tmp'.
33702 trap 'exit_status=$?
33703 : "${ac_tmp:=$tmp}"
33704 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33706 trap 'as_fn_exit 1' 1 2 13 15
33708 # Create a (secure) tmp directory for tmp files.
33711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33715 tmp=./conf$$-$RANDOM
33716 (umask 077 && mkdir "$tmp")
33717 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33720 # Set up the scripts for CONFIG_FILES section.
33721 # No need to generate them if there are no CONFIG_FILES.
33722 # This happens for instance with `./config.status config.h'.
33723 if test -n "$CONFIG_FILES"; then
33726 ac_cr=`echo X | tr X '\015'`
33727 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33728 # But we know of no other shell where ac_cr would be empty at this
33729 # point, so we can use a bashism as a fallback.
33730 if test "x$ac_cr" = x; then
33731 eval ac_cr=\$\'\\r\'
33733 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33734 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33737 ac_cs_awk_cr=$ac_cr
33740 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33745 echo "cat >conf$$subs.awk <<_ACEOF" &&
33746 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33748 } >conf$$subs.sh ||
33749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33750 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33752 for ac_last_try in false false false false false :; do
33753 . ./conf$$subs.sh ||
33754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33756 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33757 if test $ac_delim_n = $ac_delim_num; then
33759 elif $ac_last_try; then
33760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33765 rm -f conf$$subs.sh
33767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33768 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33772 s/^/S["/; s/!.*/"]=/
33782 s/\(.\{148\}\)..*/\1/
33784 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33796 s/\(.\{148\}\)..*/\1/
33798 s/["\\]/\\&/g; s/^/"/; s/$/"/
33802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33807 ' <conf$$subs.awk | sed '
33812 ' >>$CONFIG_STATUS || ac_write_fail=1
33813 rm -f conf$$subs.awk
33814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33816 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33817 for (key in S) S_is_set[key] = 1
33823 nfields = split(line, field, "@")
33825 len = length(field[1])
33826 for (i = 2; i < nfields; i++) {
33828 keylen = length(key)
33829 if (S_is_set[key]) {
33831 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33832 len += length(value) + length(field[++i])
33843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33844 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33845 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33848 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33849 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33852 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33853 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33854 # trailing colons and then remove the whole line if VPATH becomes empty
33855 # (actually we leave an empty line to preserve line numbers).
33856 if test "x$srcdir" = x.; then
33857 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33876 fi # test -n "$CONFIG_FILES"
33878 # Set up the scripts for CONFIG_HEADERS section.
33879 # No need to generate them if there are no CONFIG_HEADERS.
33880 # This happens for instance with `./config.status Makefile'.
33881 if test -n "$CONFIG_HEADERS"; then
33882 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33886 # Transform confdefs.h into an awk script `defines.awk', embedded as
33887 # here-document in config.status, that substitutes the proper values into
33888 # config.h.in to produce config.h.
33890 # Create a delimiter string that does not exist in confdefs.h, to ease
33891 # handling of long lines.
33893 for ac_last_try in false false :; do
33894 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33895 if test -z "$ac_tt"; then
33897 elif $ac_last_try; then
33898 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33904 # For the awk script, D is an array of macro values keyed by name,
33905 # likewise P contains macro parameters if any. Preserve backslash
33906 # newline sequences.
33908 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33910 s/.\{148\}/&'"$ac_delim"'/g
33913 s/^[ ]*#[ ]*define[ ][ ]*/ /
33920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33926 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33927 D["\1"]=" \3\\\\\\n"\\/p
33929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33934 s/.\{148\}/&'"$ac_delim"'/g
33939 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33942 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33944 ' <confdefs.h | sed '
33945 s/'"$ac_delim"'/"\\\
33946 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33949 for (key in D) D_is_set[key] = 1
33952 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33954 split(line, arg, " ")
33955 if (arg[1] == "#") {
33959 defundef = substr(arg[1], 2)
33962 split(mac1, mac2, "(") #)
33964 prefix = substr(line, 1, index(line, defundef) - 1)
33965 if (D_is_set[macro]) {
33966 # Preserve the white space surrounding the "#".
33967 print prefix "define", macro P[macro] D[macro]
33970 # Replace #undef with comments. This is necessary, for example,
33971 # in the case of _POSIX_SOURCE, which is predefined and required
33972 # on some systems where configure will not decide to define it.
33973 if (defundef == "undef") {
33974 print "/*", prefix defundef, macro, "*/"
33982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33983 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33984 fi # test -n "$CONFIG_HEADERS"
33987 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33992 :[FHLC]) ac_mode=$ac_tag; continue;;
33994 case $ac_mode$ac_tag in
33996 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33997 :[FH]-) ac_tag=-:-;;
33998 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34015 -) ac_f="$ac_tmp/stdin";;
34016 *) # Look for the file first in the build tree, then in the source tree
34017 # (if the path is not absolute). The absolute path cannot be DOS-style,
34018 # because $ac_f cannot contain `:'.
34022 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34024 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34026 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34027 as_fn_append ac_file_inputs " '$ac_f'"
34030 # Let's still pretend it is `configure' which instantiates (i.e., don't
34031 # use $as_me), people would be surprised to read:
34032 # /* config.h. Generated by config.status. */
34033 configure_input='Generated from '`
34034 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34036 if test x"$ac_file" != x-; then
34037 configure_input="$ac_file. $configure_input"
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34039 $as_echo "$as_me: creating $ac_file" >&6;}
34041 # Neutralize special characters interpreted by sed in replacement strings.
34042 case $configure_input in #(
34043 *\&* | *\|* | *\\* )
34044 ac_sed_conf_input=`$as_echo "$configure_input" |
34045 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34046 *) ac_sed_conf_input=$configure_input;;
34050 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34056 ac_dir=`$as_dirname -- "$ac_file" ||
34057 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34058 X"$ac_file" : 'X\(//\)[^/]' \| \
34059 X"$ac_file" : 'X\(//\)$' \| \
34060 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34061 $as_echo X"$ac_file" |
34062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34066 /^X\(\/\/\)[^/].*/{
34079 as_dir="$ac_dir"; as_fn_mkdir_p
34083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34086 # A ".." for each directory in $ac_dir_suffix.
34087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34088 case $ac_top_builddir_sub in
34089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34093 ac_abs_top_builddir=$ac_pwd
34094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34095 # for backward compatibility:
34096 ac_top_builddir=$ac_top_build_prefix
34099 .) # We are building in place.
34101 ac_top_srcdir=$ac_top_builddir_sub
34102 ac_abs_top_srcdir=$ac_pwd ;;
34103 [\\/]* | ?:[\\/]* ) # Absolute name.
34104 ac_srcdir=$srcdir$ac_dir_suffix;
34105 ac_top_srcdir=$srcdir
34106 ac_abs_top_srcdir=$srcdir ;;
34107 *) # Relative name.
34108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34109 ac_top_srcdir=$ac_top_build_prefix$srcdir
34110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34125 ac_MKDIR_P=$MKDIR_P
34127 [\\/$]* | ?:[\\/]* ) ;;
34128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34133 # If the template does not know about datarootdir, expand it.
34134 # FIXME: This hack should be removed a few years after 2.60.
34135 ac_datarootdir_hack=; ac_datarootdir_seen=
34146 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34147 *datarootdir*) ac_datarootdir_seen=yes;;
34148 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34150 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34153 ac_datarootdir_hack='
34154 s&@datadir@&$datadir&g
34155 s&@docdir@&$docdir&g
34156 s&@infodir@&$infodir&g
34157 s&@localedir@&$localedir&g
34158 s&@mandir@&$mandir&g
34159 s&\\\${datarootdir}&$datarootdir&g' ;;
34163 # Neutralize VPATH when `$srcdir' = `.'.
34164 # Shell code in configure.ac might set extrasub.
34165 # FIXME: do we really want to maintain this feature?
34166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34167 ac_sed_extra="$ac_vpsub
34170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34173 s|@configure_input@|$ac_sed_conf_input|;t t
34174 s&@top_builddir@&$ac_top_builddir_sub&;t t
34175 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34176 s&@srcdir@&$ac_srcdir&;t t
34177 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34178 s&@top_srcdir@&$ac_top_srcdir&;t t
34179 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34180 s&@builddir@&$ac_builddir&;t t
34181 s&@abs_builddir@&$ac_abs_builddir&;t t
34182 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34183 s&@INSTALL@&$ac_INSTALL&;t t
34184 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34185 $ac_datarootdir_hack
34187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34188 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34191 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34193 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34195 which seems to be undefined. Please make sure it is defined" >&5
34196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34197 which seems to be undefined. Please make sure it is defined" >&2;}
34199 rm -f "$ac_tmp/stdin"
34201 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34202 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34210 if test x"$ac_file" != x-; then
34212 $as_echo "/* $configure_input */" \
34213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34214 } >"$ac_tmp/config.h" \
34215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34216 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34221 mv "$ac_tmp/config.h" "$ac_file" \
34222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34225 $as_echo "/* $configure_input */" \
34226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34227 || as_fn_error $? "could not create -" "$LINENO" 5
34229 # Compute "$ac_file"'s index in $config_headers.
34232 for _am_header in $config_headers :; do
34233 case $_am_header in
34234 $_am_arg | $_am_arg:* )
34237 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34240 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34241 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34242 X"$_am_arg" : 'X\(//\)[^/]' \| \
34243 X"$_am_arg" : 'X\(//\)$' \| \
34244 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34245 $as_echo X"$_am_arg" |
34246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34250 /^X\(\/\/\)[^/].*/{
34262 s/.*/./; q'`/stamp-h$_am_stamp_count
34265 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34266 $as_echo "$as_me: executing $ac_file commands" >&6;}
34271 case $ac_file$ac_mode in
34272 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34273 # Older Autoconf quotes --file arguments for eval, but not when files
34274 # are listed without --file. Let's play safe and only enable the eval
34275 # if we detect the quoting.
34276 case $CONFIG_FILES in
34277 *\'*) eval set x "$CONFIG_FILES" ;;
34278 *) set x $CONFIG_FILES ;;
34283 # Strip MF so we end up with the name of the file.
34284 mf=`echo "$mf" | sed -e 's/:.*$//'`
34285 # Check whether this is an Automake generated Makefile or not.
34286 # We used to match only the files named 'Makefile.in', but
34287 # some people rename them; so instead we look at the file content.
34288 # Grep'ing the first line is not enough: some people post-process
34289 # each Makefile.in and add a new line on top of each file to say so.
34290 # Grep'ing the whole file is not good either: AIX grep has a line
34291 # limit of 2048, but all sed's we know have understand at least 4000.
34292 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34293 dirpart=`$as_dirname -- "$mf" ||
34294 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34295 X"$mf" : 'X\(//\)[^/]' \| \
34296 X"$mf" : 'X\(//\)$' \| \
34297 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34303 /^X\(\/\/\)[^/].*/{
34319 # Extract the definition of DEPDIR, am__include, and am__quote
34320 # from the Makefile without running 'make'.
34321 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34322 test -z "$DEPDIR" && continue
34323 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34324 test -z "$am__include" && continue
34325 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34326 # Find all dependency output files, they are included files with
34327 # $(DEPDIR) in their names. We invoke sed twice because it is the
34328 # simplest approach to changing $(DEPDIR) to its actual value in the
34330 for file in `sed -n "
34331 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
34333 # Make sure the directory exists.
34334 test -f "$dirpart/$file" && continue
34335 fdir=`$as_dirname -- "$file" ||
34336 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34337 X"$file" : 'X\(//\)[^/]' \| \
34338 X"$file" : 'X\(//\)$' \| \
34339 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34340 $as_echo X"$file" |
34341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34345 /^X\(\/\/\)[^/].*/{
34358 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34359 # echo "creating $dirpart/$file"
34360 echo '# dummy' > "$dirpart/$file"
34367 # See if we are running on zsh, and set the options that allow our
34368 # commands through without removal of \ escapes.
34369 if test -n "${ZSH_VERSION+set}"; then
34370 setopt NO_GLOB_SUBST
34374 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34377 cat <<_LT_EOF >> "$cfgfile"
34379 # Generated automatically by $as_me ($PACKAGE) $VERSION
34380 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34381 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34383 # Provide generalized library-building support services.
34384 # Written by Gordon Matzigkeit, 1996
34386 # Copyright (C) 2014 Free Software Foundation, Inc.
34387 # This is free software; see the source for copying conditions. There is NO
34388 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34390 # GNU Libtool is free software; you can redistribute it and/or modify
34391 # it under the terms of the GNU General Public License as published by
34392 # the Free Software Foundation; either version 2 of of the License, or
34393 # (at your option) any later version.
34395 # As a special exception to the GNU General Public License, if you
34396 # distribute this file as part of a program or library that is built
34397 # using GNU Libtool, you may include this file under the same
34398 # distribution terms that you use for the rest of that program.
34400 # GNU Libtool is distributed in the hope that it will be useful, but
34401 # WITHOUT ANY WARRANTY; without even the implied warranty of
34402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34403 # GNU General Public License for more details.
34405 # You should have received a copy of the GNU General Public License
34406 # along with this program. If not, see <http://www.gnu.org/licenses/>.
34409 # The names of the tagged configurations supported by this script.
34410 available_tags='RC '
34412 # Configured defaults for sys_lib_dlsearch_path munging.
34413 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
34415 # ### BEGIN LIBTOOL CONFIG
34417 # Which release of libtool.m4 was used?
34418 macro_version=$macro_version
34419 macro_revision=$macro_revision
34421 # Assembler program.
34424 # DLL creation program.
34425 DLLTOOL=$lt_DLLTOOL
34427 # Object dumper program.
34428 OBJDUMP=$lt_OBJDUMP
34430 # Whether or not to build shared libraries.
34431 build_libtool_libs=$enable_shared
34433 # Whether or not to build static libraries.
34434 build_old_libs=$enable_static
34436 # What type of objects to build.
34439 # Whether or not to optimize for fast installation.
34440 fast_install=$enable_fast_install
34442 # Shared archive member basename,for filename based shared library versioning on AIX.
34443 shared_archive_member_spec=$shared_archive_member_spec
34445 # Shell to use when invoking shell scripts.
34448 # An echo program that protects backslashes.
34451 # The PATH separator for the build system.
34452 PATH_SEPARATOR=$lt_PATH_SEPARATOR
34455 host_alias=$host_alias
34459 # The build system.
34460 build_alias=$build_alias
34464 # A sed program that does not truncate output.
34467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34468 Xsed="\$SED -e 1s/^X//"
34470 # A grep program that handles long lines.
34476 # A literal string matcher.
34479 # A BSD- or MS-compatible name lister.
34482 # Whether we need soft or hard links.
34485 # What is the maximum length of a command?
34486 max_cmd_len=$max_cmd_len
34488 # Object file suffix (normally "o").
34491 # Executable file suffix (normally "").
34494 # whether the shell understands "unset".
34497 # turn spaces into newlines.
34500 # turn newlines into spaces.
34503 # convert \$build file names to \$host format.
34504 to_host_file_cmd=$lt_cv_to_host_file_cmd
34506 # convert \$build files to toolchain format.
34507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
34509 # Method to check whether dependent libraries are shared objects.
34510 deplibs_check_method=$lt_deplibs_check_method
34512 # Command to use when deplibs_check_method = "file_magic".
34513 file_magic_cmd=$lt_file_magic_cmd
34515 # How to find potential files when deplibs_check_method = "file_magic".
34516 file_magic_glob=$lt_file_magic_glob
34518 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
34519 want_nocaseglob=$lt_want_nocaseglob
34521 # Command to associate shared and link libraries.
34522 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
34527 # Flags to create an archive.
34528 AR_FLAGS=$lt_AR_FLAGS
34530 # How to feed a file listing to the archiver.
34531 archiver_list_spec=$lt_archiver_list_spec
34533 # A symbol stripping program.
34536 # Commands used to install an old-style archive.
34538 old_postinstall_cmds=$lt_old_postinstall_cmds
34539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34541 # Whether to use a lock for old archive extraction.
34542 lock_old_archive_extraction=$lock_old_archive_extraction
34547 # LTCC compiler flags.
34548 LTCFLAGS=$lt_CFLAGS
34550 # Take the output of nm and produce a listing of raw symbols and C names.
34551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34553 # Transform the output of nm in a proper C declaration.
34554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34556 # Transform the output of nm into a list of symbols to manually relocate.
34557 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
34559 # Transform the output of nm in a C name address pair.
34560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34562 # Transform the output of nm in a C name address pair when lib prefix is needed.
34563 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34565 # The name lister interface.
34566 nm_interface=$lt_lt_cv_nm_interface
34568 # Specify filename containing input files for \$NM.
34569 nm_file_list_spec=$lt_nm_file_list_spec
34571 # The root where to search for dependent libraries,and where our libraries should be installed.
34572 lt_sysroot=$lt_sysroot
34574 # Command to truncate a binary pipe.
34575 lt_truncate_bin=$lt_lt_cv_truncate_bin
34577 # The name of the directory that contains temporary libtool files.
34580 # Used to examine libraries when file_magic_cmd begins with "file".
34581 MAGIC_CMD=$MAGIC_CMD
34583 # Must we lock files when doing compilation?
34584 need_locks=$lt_need_locks
34587 MANIFEST_TOOL=$lt_MANIFEST_TOOL
34589 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34590 DSYMUTIL=$lt_DSYMUTIL
34592 # Tool to change global to local symbols on Mac OS X.
34595 # Tool to manipulate fat objects and archives on Mac OS X.
34598 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34601 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34602 OTOOL64=$lt_OTOOL64
34604 # Old archive suffix (normally "a").
34607 # Shared library suffix (normally ".so").
34608 shrext_cmds=$lt_shrext_cmds
34610 # The commands to extract the exported symbol list from a shared archive.
34611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34613 # Variables whose values should be saved in libtool wrapper scripts and
34614 # restored at link time.
34615 variables_saved_for_relink=$lt_variables_saved_for_relink
34617 # Do we need the "lib" prefix for modules?
34618 need_lib_prefix=$need_lib_prefix
34620 # Do we need a version for libraries?
34621 need_version=$need_version
34623 # Library versioning type.
34624 version_type=$version_type
34626 # Shared library runtime path variable.
34627 runpath_var=$runpath_var
34629 # Shared library path variable.
34630 shlibpath_var=$shlibpath_var
34632 # Is shlibpath searched before the hard-coded library search path?
34633 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34635 # Format of library name prefix.
34636 libname_spec=$lt_libname_spec
34638 # List of archive names. First name is the real one, the rest are links.
34639 # The last name is the one that the linker finds with -lNAME
34640 library_names_spec=$lt_library_names_spec
34642 # The coded name of the library, if different from the real name.
34643 soname_spec=$lt_soname_spec
34645 # Permission mode override for installation of shared libraries.
34646 install_override_mode=$lt_install_override_mode
34648 # Command to use after installation of a shared archive.
34649 postinstall_cmds=$lt_postinstall_cmds
34651 # Command to use after uninstallation of a shared archive.
34652 postuninstall_cmds=$lt_postuninstall_cmds
34654 # Commands used to finish a libtool library installation in a directory.
34655 finish_cmds=$lt_finish_cmds
34657 # As "finish_cmds", except a single script fragment to be evaled but
34659 finish_eval=$lt_finish_eval
34661 # Whether we should hardcode library paths into libraries.
34662 hardcode_into_libs=$hardcode_into_libs
34664 # Compile-time system search path for libraries.
34665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34667 # Detected run-time system search path for libraries.
34668 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34670 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34671 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34673 # Whether dlopen is supported.
34674 dlopen_support=$enable_dlopen
34676 # Whether dlopen of programs is supported.
34677 dlopen_self=$enable_dlopen_self
34679 # Whether dlopen of statically linked programs is supported.
34680 dlopen_self_static=$enable_dlopen_self_static
34682 # Commands to strip libraries.
34683 old_striplib=$lt_old_striplib
34684 striplib=$lt_striplib
34687 # The linker used to build libraries.
34690 # How to create reloadable object files.
34691 reload_flag=$lt_reload_flag
34692 reload_cmds=$lt_reload_cmds
34694 # Commands used to build an old-style archive.
34695 old_archive_cmds=$lt_old_archive_cmds
34697 # A language specific compiler.
34700 # Is the compiler the GNU compiler?
34703 # Compiler flag to turn off builtin functions.
34704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34706 # Additional compiler flags for building library objects.
34707 pic_flag=$lt_lt_prog_compiler_pic
34709 # How to pass a linker flag through the compiler.
34710 wl=$lt_lt_prog_compiler_wl
34712 # Compiler flag to prevent dynamic linking.
34713 link_static_flag=$lt_lt_prog_compiler_static
34715 # Does compiler simultaneously support -c and -o options?
34716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34718 # Whether or not to add -lc for building shared libraries.
34719 build_libtool_need_lc=$archive_cmds_need_lc
34721 # Whether or not to disallow shared libs when runtime libs are static.
34722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34724 # Compiler flag to allow reflexive dlopens.
34725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34727 # Compiler flag to generate shared objects directly from archives.
34728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34730 # Whether the compiler copes with passing no objects directly.
34731 compiler_needs_object=$lt_compiler_needs_object
34733 # Create an old-style archive from a shared archive.
34734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34736 # Create a temporary old-style archive to link instead of a shared archive.
34737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34739 # Commands used to build a shared archive.
34740 archive_cmds=$lt_archive_cmds
34741 archive_expsym_cmds=$lt_archive_expsym_cmds
34743 # Commands used to build a loadable module if different from building
34744 # a shared archive.
34745 module_cmds=$lt_module_cmds
34746 module_expsym_cmds=$lt_module_expsym_cmds
34748 # Whether we are building with GNU ld or not.
34749 with_gnu_ld=$lt_with_gnu_ld
34751 # Flag that allows shared libraries with undefined symbols to be built.
34752 allow_undefined_flag=$lt_allow_undefined_flag
34754 # Flag that enforces no undefined symbols.
34755 no_undefined_flag=$lt_no_undefined_flag
34757 # Flag to hardcode \$libdir into a binary during linking.
34758 # This must work even if \$libdir does not exist
34759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34761 # Whether we need a single "-rpath" flag with a separated argument.
34762 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34764 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34765 # DIR into the resulting binary.
34766 hardcode_direct=$hardcode_direct
34768 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34769 # DIR into the resulting binary and the resulting library dependency is
34770 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34771 # library is relocated.
34772 hardcode_direct_absolute=$hardcode_direct_absolute
34774 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34775 # into the resulting binary.
34776 hardcode_minus_L=$hardcode_minus_L
34778 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34779 # into the resulting binary.
34780 hardcode_shlibpath_var=$hardcode_shlibpath_var
34782 # Set to "yes" if building a shared library automatically hardcodes DIR
34783 # into the library and all subsequent libraries and executables linked
34785 hardcode_automatic=$hardcode_automatic
34787 # Set to yes if linker adds runtime paths of dependent libraries
34788 # to runtime path list.
34789 inherit_rpath=$inherit_rpath
34791 # Whether libtool must link a program against all its dependency libraries.
34792 link_all_deplibs=$link_all_deplibs
34794 # Set to "yes" if exported symbols are required.
34795 always_export_symbols=$always_export_symbols
34797 # The commands to list exported symbols.
34798 export_symbols_cmds=$lt_export_symbols_cmds
34800 # Symbols that should not be listed in the preloaded symbols.
34801 exclude_expsyms=$lt_exclude_expsyms
34803 # Symbols that must always be exported.
34804 include_expsyms=$lt_include_expsyms
34806 # Commands necessary for linking programs (against libraries) with templates.
34807 prelink_cmds=$lt_prelink_cmds
34809 # Commands necessary for finishing linking programs.
34810 postlink_cmds=$lt_postlink_cmds
34812 # Specify filename containing input files.
34813 file_list_spec=$lt_file_list_spec
34815 # How to hardcode a shared library path into an executable.
34816 hardcode_action=$hardcode_action
34818 # ### END LIBTOOL CONFIG
34822 cat <<'_LT_EOF' >> "$cfgfile"
34824 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34826 # func_munge_path_list VARIABLE PATH
34827 # -----------------------------------
34828 # VARIABLE is name of variable containing _space_ separated list of
34829 # directories to be munged by the contents of PATH, which is string
34832 # string "DIR[ DIR]" will be prepended to VARIABLE
34834 # string "DIR[ DIR]" will be appended to VARIABLE
34835 # "DIRP[:DIRP]::[DIRA:]DIRA"
34836 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34837 # "DIRA[ DIRA]" will be appended to VARIABLE
34839 # VARIABLE will be replaced by "DIR[ DIR]"
34840 func_munge_path_list ()
34846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34849 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34852 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34853 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34856 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34862 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
34863 func_cc_basename ()
34865 for cc_temp in $*""; do
34867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34873 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34877 # ### END FUNCTIONS SHARED WITH CONFIGURE
34883 cat <<\_LT_EOF >> "$cfgfile"
34884 # AIX sometimes has problems with the GCC collect2 program. For some
34885 # reason, if we set the COLLECT_NAMES environment variable, the problems
34886 # vanish in a puff of smoke.
34887 if test set != "${COLLECT_NAMES+set}"; then
34889 export COLLECT_NAMES
34896 ltmain=$ac_aux_dir/ltmain.sh
34899 # We use sed instead of cat because bash on DJGPP gets confused if
34900 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34901 # text mode, it properly converts lines to CR/LF. This bash problem
34902 # is reportedly fixed, but why not run on old versions too?
34903 sed '$q' "$ltmain" >> "$cfgfile" \
34904 || (rm -f "$cfgfile"; exit 1)
34906 mv -f "$cfgfile" "$ofile" ||
34907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34911 cat <<_LT_EOF >> "$ofile"
34913 # ### BEGIN LIBTOOL TAG CONFIG: RC
34915 # The linker used to build libraries.
34918 # How to create reloadable object files.
34919 reload_flag=$lt_reload_flag_RC
34920 reload_cmds=$lt_reload_cmds_RC
34922 # Commands used to build an old-style archive.
34923 old_archive_cmds=$lt_old_archive_cmds_RC
34925 # A language specific compiler.
34928 # Is the compiler the GNU compiler?
34931 # Compiler flag to turn off builtin functions.
34932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
34934 # Additional compiler flags for building library objects.
34935 pic_flag=$lt_lt_prog_compiler_pic_RC
34937 # How to pass a linker flag through the compiler.
34938 wl=$lt_lt_prog_compiler_wl_RC
34940 # Compiler flag to prevent dynamic linking.
34941 link_static_flag=$lt_lt_prog_compiler_static_RC
34943 # Does compiler simultaneously support -c and -o options?
34944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
34946 # Whether or not to add -lc for building shared libraries.
34947 build_libtool_need_lc=$archive_cmds_need_lc_RC
34949 # Whether or not to disallow shared libs when runtime libs are static.
34950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
34952 # Compiler flag to allow reflexive dlopens.
34953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
34955 # Compiler flag to generate shared objects directly from archives.
34956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
34958 # Whether the compiler copes with passing no objects directly.
34959 compiler_needs_object=$lt_compiler_needs_object_RC
34961 # Create an old-style archive from a shared archive.
34962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
34964 # Create a temporary old-style archive to link instead of a shared archive.
34965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
34967 # Commands used to build a shared archive.
34968 archive_cmds=$lt_archive_cmds_RC
34969 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
34971 # Commands used to build a loadable module if different from building
34972 # a shared archive.
34973 module_cmds=$lt_module_cmds_RC
34974 module_expsym_cmds=$lt_module_expsym_cmds_RC
34976 # Whether we are building with GNU ld or not.
34977 with_gnu_ld=$lt_with_gnu_ld_RC
34979 # Flag that allows shared libraries with undefined symbols to be built.
34980 allow_undefined_flag=$lt_allow_undefined_flag_RC
34982 # Flag that enforces no undefined symbols.
34983 no_undefined_flag=$lt_no_undefined_flag_RC
34985 # Flag to hardcode \$libdir into a binary during linking.
34986 # This must work even if \$libdir does not exist
34987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
34989 # Whether we need a single "-rpath" flag with a separated argument.
34990 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
34992 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34993 # DIR into the resulting binary.
34994 hardcode_direct=$hardcode_direct_RC
34996 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34997 # DIR into the resulting binary and the resulting library dependency is
34998 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34999 # library is relocated.
35000 hardcode_direct_absolute=$hardcode_direct_absolute_RC
35002 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35003 # into the resulting binary.
35004 hardcode_minus_L=$hardcode_minus_L_RC
35006 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35007 # into the resulting binary.
35008 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
35010 # Set to "yes" if building a shared library automatically hardcodes DIR
35011 # into the library and all subsequent libraries and executables linked
35013 hardcode_automatic=$hardcode_automatic_RC
35015 # Set to yes if linker adds runtime paths of dependent libraries
35016 # to runtime path list.
35017 inherit_rpath=$inherit_rpath_RC
35019 # Whether libtool must link a program against all its dependency libraries.
35020 link_all_deplibs=$link_all_deplibs_RC
35022 # Set to "yes" if exported symbols are required.
35023 always_export_symbols=$always_export_symbols_RC
35025 # The commands to list exported symbols.
35026 export_symbols_cmds=$lt_export_symbols_cmds_RC
35028 # Symbols that should not be listed in the preloaded symbols.
35029 exclude_expsyms=$lt_exclude_expsyms_RC
35031 # Symbols that must always be exported.
35032 include_expsyms=$lt_include_expsyms_RC
35034 # Commands necessary for linking programs (against libraries) with templates.
35035 prelink_cmds=$lt_prelink_cmds_RC
35037 # Commands necessary for finishing linking programs.
35038 postlink_cmds=$lt_postlink_cmds_RC
35040 # Specify filename containing input files.
35041 file_list_spec=$lt_file_list_spec_RC
35043 # How to hardcode a shared library path into an executable.
35044 hardcode_action=$hardcode_action_RC
35046 # ### END LIBTOOL TAG CONFIG: RC
35050 "po-directories":C)
35051 for ac_file in $CONFIG_FILES; do
35052 # Support "outfile[:infile[:infile...]]"
35054 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35056 # PO directories have a Makefile.in generated from Makefile.in.in.
35057 case "$ac_file" in */Makefile.in)
35058 # Adjust a relative srcdir.
35059 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35060 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
35061 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35062 # In autoconf-2.13 it is called $ac_given_srcdir.
35063 # In autoconf-2.50 it is called $srcdir.
35064 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35065 case "$ac_given_srcdir" in
35066 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35067 /*) top_srcdir="$ac_given_srcdir" ;;
35068 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35070 # Treat a directory as a PO directory if and only if it has a
35071 # POTFILES.in file. This allows packages to have multiple PO
35072 # directories under different names or in different locations.
35073 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35074 rm -f "$ac_dir/POTFILES"
35075 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35076 gt_tab=`printf '\t'`
35077 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"
35078 POMAKEFILEDEPS="POTFILES.in"
35079 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35080 # on $ac_dir but don't depend on user-specified configuration
35082 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35083 # The LINGUAS file contains the set of available languages.
35084 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35085 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35087 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35088 # Hide the ALL_LINGUAS assignment from automake < 1.5.
35089 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35090 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35092 # The set of available languages was given in configure.in.
35093 # Hide the ALL_LINGUAS assignment from automake < 1.5.
35094 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35097 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35098 # Compute UPDATEPOFILES
35099 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35100 # Compute DUMMYPOFILES
35101 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35103 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35104 case "$ac_given_srcdir" in
35106 *) srcdirpre='$(srcdir)/' ;;
35112 for lang in $ALL_LINGUAS; do
35113 POFILES="$POFILES $srcdirpre$lang.po"
35114 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35115 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35116 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35118 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35119 # environment variable.
35121 if test -n "$ALL_LINGUAS"; then
35122 for presentlang in $ALL_LINGUAS; do
35124 if test "%UNSET%" != "$LINGUAS"; then
35125 desiredlanguages="$LINGUAS"
35127 desiredlanguages="$ALL_LINGUAS"
35129 for desiredlang in $desiredlanguages; do
35130 # Use the presentlang catalog if desiredlang is
35131 # a. equal to presentlang, or
35132 # b. a variant of presentlang (because in this case,
35133 # presentlang can be used as a fallback for messages
35134 # which are not translated in the desiredlang catalog).
35135 case "$desiredlang" in
35136 "$presentlang"*) useit=yes;;
35139 if test $useit = yes; then
35140 INST_LINGUAS="$INST_LINGUAS $presentlang"
35145 if test -n "$INST_LINGUAS"; then
35146 for lang in $INST_LINGUAS; do
35147 CATALOGS="$CATALOGS $lang.gmo"
35150 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35151 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"
35152 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35153 if test -f "$f"; then
35155 *.orig | *.bak | *~) ;;
35156 *) cat "$f" >> "$ac_dir/Makefile" ;;
35164 "src/gettext.sh":F) chmod a+x src/gettext.sh ;;
35166 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
35167 mv $ac_file.tmp $ac_file
35176 ac_clean_files=$ac_clean_files_save
35178 test $ac_write_fail = 0 ||
35179 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35182 # configure is writing to config.log, and then calls config.status.
35183 # config.status does its own redirection, appending to config.log.
35184 # Unfortunately, on DOS this fails, as config.log is still kept open
35185 # by configure, so config.status won't be able to write to it; its
35186 # output is simply discarded. So we exec the FD to /dev/null,
35187 # effectively closing config.log, so it can be properly (re)opened and
35188 # appended to by config.status. When coming back to configure, we
35189 # need to make the FD available again.
35190 if test "$no_create" != yes; then
35192 ac_config_status_args=
35193 test "$silent" = yes &&
35194 ac_config_status_args="$ac_config_status_args --quiet"
35196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35199 # would make configure fail if this is the last instruction.
35200 $ac_cs_success || as_fn_exit 1
35204 # CONFIG_SUBDIRS section.
35206 if test "$no_recursion" != yes; then
35208 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
35209 # so they do not pile up.
35210 ac_sub_configure_args=
35212 eval "set x $ac_configure_args"
35216 if test -n "$ac_prev"; then
35221 -cache-file | --cache-file | --cache-fil | --cache-fi \
35222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35223 ac_prev=cache_file ;;
35224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35228 --config-cache | -C)
35230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35238 --disable-option-checking)
35242 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35244 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
35248 # Always prepend --prefix to ensure using the same prefix
35249 # in subdir configurations.
35250 ac_arg="--prefix=$prefix"
35252 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35254 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
35257 if test "$silent" = yes; then
35258 ac_sub_configure_args="--silent $ac_sub_configure_args"
35261 # Always prepend --disable-option-checking to silence warnings, since
35262 # different subdirs can have different --enable and --with options.
35263 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
35266 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35268 # Do not complain, so a configure script can configure whichever
35269 # parts of a large source tree are present.
35270 test -d "$srcdir/$ac_dir" || continue
35272 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35273 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
35274 $as_echo "$ac_msg" >&6
35275 as_dir="$ac_dir"; as_fn_mkdir_p
35279 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35281 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35282 # A ".." for each directory in $ac_dir_suffix.
35283 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35284 case $ac_top_builddir_sub in
35285 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35286 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35289 ac_abs_top_builddir=$ac_pwd
35290 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35291 # for backward compatibility:
35292 ac_top_builddir=$ac_top_build_prefix
35295 .) # We are building in place.
35297 ac_top_srcdir=$ac_top_builddir_sub
35298 ac_abs_top_srcdir=$ac_pwd ;;
35299 [\\/]* | ?:[\\/]* ) # Absolute name.
35300 ac_srcdir=$srcdir$ac_dir_suffix;
35301 ac_top_srcdir=$srcdir
35302 ac_abs_top_srcdir=$srcdir ;;
35303 *) # Relative name.
35304 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35305 ac_top_srcdir=$ac_top_build_prefix$srcdir
35306 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35308 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35313 # Check for guested configure; otherwise get Cygnus style configure.
35314 if test -f "$ac_srcdir/configure.gnu"; then
35315 ac_sub_configure=$ac_srcdir/configure.gnu
35316 elif test -f "$ac_srcdir/configure"; then
35317 ac_sub_configure=$ac_srcdir/configure
35318 elif test -f "$ac_srcdir/configure.in"; then
35319 # This should be Cygnus configure.
35320 ac_sub_configure=$ac_aux_dir/configure
35322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
35323 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35327 # The recursion is here.
35328 if test -n "$ac_sub_configure"; then
35329 # Make the cache file name correct relative to the subdirectory.
35330 case $cache_file in
35331 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35332 *) # Relative name.
35333 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35336 { $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
35337 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35338 # The eval makes quoting arguments work.
35339 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35340 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35341 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
35347 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35349 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}