2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="intl/dcigettext.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 gl_use_threads_default=
636 gl_getopt_required=POSIX
637 gl_getopt_required=POSIX
638 enable_option_checking=no
639 ac_subst_vars='gltests_LTLIBOBJS
648 ENABLE_LIBASPRINTF_FALSE
649 ENABLE_LIBASPRINTF_TRUE
660 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
662 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
663 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
664 LIBUNISTRING_UNIWIDTH_H
665 LIBUNISTRING_UNITYPES_H
666 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
667 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
668 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
669 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
670 LIBUNISTRING_UNISTR_H
672 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
675 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
676 TIME_H_DEFINES_STRUCT_TIMESPEC
677 NEXT_AS_FIRST_DIRECTIVE_TIME_H
686 HAVE_DECL_LOCALTIME_R
693 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
695 WINDOWS_64_BIT_ST_SIZE
696 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
698 NEXT_AS_FIRST_DIRECTIVE_STRING_H
701 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
703 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
705 GL_GENERATE_STDINT_H_FALSE
706 GL_GENERATE_STDINT_H_TRUE
715 HAVE_SIGNED_SIG_ATOMIC_T
718 BITSIZEOF_SIG_ATOMIC_T
724 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
729 HAVE_UNSIGNED_LONG_LONG_INT
732 GL_GENERATE_STDBOOL_H_FALSE
733 GL_GENERATE_STDBOOL_H_TRUE
743 REPLACE_STDIO_WRITE_FUNCS
744 REPLACE_STDIO_READ_FUNCS
753 REPLACE_OBSTACK_PRINTF
778 HAVE_DECL_OBSTACK_PRINTF
784 GNULIB_VSPRINTF_POSIX
788 GNULIB_VFPRINTF_POSIX
795 GNULIB_STDIO_H_SIGPIPE
796 GNULIB_STDIO_H_NONBLOCKING
811 GNULIB_OBSTACK_PRINTF_POSIX
812 GNULIB_OBSTACK_PRINTF
837 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
840 RELOCATABLE_BUILD_DIR
842 RELOCATABLE_CONFIG_H_DIR
843 RELOCATABLE_LIBRARY_PATH
844 RELOCATABLE_VIA_WRAPPER_FALSE
845 RELOCATABLE_VIA_WRAPPER_TRUE
846 RELOCATABLE_VIA_LD_FALSE
847 RELOCATABLE_VIA_LD_TRUE
852 REPLACE_PTHREAD_SIGMASK
854 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
855 HAVE_STRUCT_SIGACTION_SA_SIGACTION
861 HAVE_POSIX_SIGNALBLOCKING
864 GNULIB_SIGNAL_H_SIGPIPE
866 GNULIB_PTHREAD_SIGMASK
867 APPLE_UNIVERSAL_BUILD
868 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1069 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1072 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1074 GL_GENERATE_STDDEF_H_FALSE
1075 GL_GENERATE_STDDEF_H_TRUE
1079 REPLACE_STRUCT_LCONV
1087 LOCALCHARSET_TESTS_ENVIRONMENT
1091 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1104 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1106 GNULIB_GL_UNISTD_H_GETOPT
1109 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1117 GL_GENERATE_ERRNO_H_FALSE
1118 GL_GENERATE_ERRNO_H_TRUE
1120 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1123 PRAGMA_SYSTEM_HEADER
1124 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1126 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1127 UNISTD_H_HAVE_WINSOCK2_H
1148 REPLACE_GETDOMAINNAME
1159 HAVE_DECL_SETHOSTNAME
1160 HAVE_DECL_GETUSERSHELL
1161 HAVE_DECL_GETPAGESIZE
1162 HAVE_DECL_GETLOGIN_R
1163 HAVE_DECL_GETDOMAINNAME
1202 GNULIB_UNISTD_H_SIGPIPE
1203 GNULIB_UNISTD_H_NONBLOCKING
1229 GNULIB_GETDTABLESIZE
1230 GNULIB_GETDOMAINNAME
1261 REPLACE_CANONICALIZE_FILE_NAME
1266 HAVE_STRUCT_RANDOM_DATA
1288 HAVE_DECL_GETLOADAVG
1289 HAVE_CANONICALIZE_FILE_NAME
1300 GNULIB_SECURE_GETENV
1303 GNULIB_REALLOC_POSIX
1320 GNULIB_CANONICALIZE_FILE_NAME
1324 am__fastdepCXX_FALSE
1333 GL_GENERATE_ALLOCA_H_FALSE
1334 GL_GENERATE_ALLOCA_H_TRUE
1336 GL_COND_LIBTOOL_FALSE
1337 GL_COND_LIBTOOL_TRUE
1342 INTL_LIBTOOL_SUFFIX_PREFIX
1348 USE_INCLUDED_LIBINTL
1349 BUILD_INCLUDED_LIBINTL
1359 INTL_DEFAULT_VERBOSITY
1363 GL_GENERATE_ICONV_H_FALSE
1364 GL_GENERATE_ICONV_H_TRUE
1385 XGETTEXT_EXTRA_OPTIONS
1393 GETTEXT_MACRO_VERSION
1472 AM_DEFAULT_VERBOSITY
1483 INSTALL_STRIP_PROGRAM
1525 program_transform_name
1538 enable_option_checking
1540 enable_dependency_tracking
1556 with_libiconv_prefix
1557 with_included_gettext
1563 ac_precious_vars='build_alias
1576 ac_subdirs_all='libasprintf'
1578 # Initialize some variables set by options.
1580 ac_init_version=false
1581 ac_unrecognized_opts=
1582 ac_unrecognized_sep=
1583 # The variables have the same names as the options, with
1584 # dashes changed to underlines.
1585 cache_file=/dev/null
1592 program_transform_name=s,x,x,
1600 # Installation directory options.
1601 # These are left unexpanded so users can "make install exec_prefix=/foo"
1602 # and all the variables that are supposed to be based on exec_prefix
1603 # by default will actually change.
1604 # Use braces instead of parens because sh, perl, etc. also accept them.
1605 # (The list follows the same order as the GNU Coding Standards.)
1606 bindir='${exec_prefix}/bin'
1607 sbindir='${exec_prefix}/sbin'
1608 libexecdir='${exec_prefix}/libexec'
1609 datarootdir='${prefix}/share'
1610 datadir='${datarootdir}'
1611 sysconfdir='${prefix}/etc'
1612 sharedstatedir='${prefix}/com'
1613 localstatedir='${prefix}/var'
1614 includedir='${prefix}/include'
1615 oldincludedir='/usr/include'
1616 docdir='${datarootdir}/doc/${PACKAGE}'
1617 infodir='${datarootdir}/info'
1622 libdir='${exec_prefix}/lib'
1623 localedir='${datarootdir}/locale'
1624 mandir='${datarootdir}/man'
1630 # If the previous option needs an argument, assign it.
1631 if test -n "$ac_prev"; then
1632 eval $ac_prev=\$ac_option
1638 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1643 # Accept the important Cygnus configure options, so we can diagnose typos.
1645 case $ac_dashdash$ac_option in
1649 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1651 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1652 bindir=$ac_optarg ;;
1654 -build | --build | --buil | --bui | --bu)
1655 ac_prev=build_alias ;;
1656 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1657 build_alias=$ac_optarg ;;
1659 -cache-file | --cache-file | --cache-fil | --cache-fi \
1660 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1661 ac_prev=cache_file ;;
1662 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1663 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1664 cache_file=$ac_optarg ;;
1666 --config-cache | -C)
1667 cache_file=config.cache ;;
1669 -datadir | --datadir | --datadi | --datad)
1671 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1672 datadir=$ac_optarg ;;
1674 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1675 | --dataroo | --dataro | --datar)
1676 ac_prev=datarootdir ;;
1677 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1678 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1679 datarootdir=$ac_optarg ;;
1681 -disable-* | --disable-*)
1682 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1683 # Reject names that are not valid shell variable names.
1684 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1685 as_fn_error $? "invalid feature name: $ac_useropt"
1686 ac_useropt_orig=$ac_useropt
1687 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1688 case $ac_user_opts in
1690 "enable_$ac_useropt"
1692 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1693 ac_unrecognized_sep=', ';;
1695 eval enable_$ac_useropt=no ;;
1697 -docdir | --docdir | --docdi | --doc | --do)
1699 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1700 docdir=$ac_optarg ;;
1702 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1704 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1705 dvidir=$ac_optarg ;;
1707 -enable-* | --enable-*)
1708 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1709 # Reject names that are not valid shell variable names.
1710 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1711 as_fn_error $? "invalid feature name: $ac_useropt"
1712 ac_useropt_orig=$ac_useropt
1713 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1714 case $ac_user_opts in
1716 "enable_$ac_useropt"
1718 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1719 ac_unrecognized_sep=', ';;
1721 eval enable_$ac_useropt=\$ac_optarg ;;
1723 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1724 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1725 | --exec | --exe | --ex)
1726 ac_prev=exec_prefix ;;
1727 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1728 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1729 | --exec=* | --exe=* | --ex=*)
1730 exec_prefix=$ac_optarg ;;
1732 -gas | --gas | --ga | --g)
1733 # Obsolete; use --with-gas.
1736 -help | --help | --hel | --he | -h)
1737 ac_init_help=long ;;
1738 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1739 ac_init_help=recursive ;;
1740 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1741 ac_init_help=short ;;
1743 -host | --host | --hos | --ho)
1744 ac_prev=host_alias ;;
1745 -host=* | --host=* | --hos=* | --ho=*)
1746 host_alias=$ac_optarg ;;
1748 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1750 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1752 htmldir=$ac_optarg ;;
1754 -includedir | --includedir | --includedi | --included | --include \
1755 | --includ | --inclu | --incl | --inc)
1756 ac_prev=includedir ;;
1757 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1758 | --includ=* | --inclu=* | --incl=* | --inc=*)
1759 includedir=$ac_optarg ;;
1761 -infodir | --infodir | --infodi | --infod | --info | --inf)
1763 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1764 infodir=$ac_optarg ;;
1766 -libdir | --libdir | --libdi | --libd)
1768 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1769 libdir=$ac_optarg ;;
1771 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1772 | --libexe | --libex | --libe)
1773 ac_prev=libexecdir ;;
1774 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1775 | --libexe=* | --libex=* | --libe=*)
1776 libexecdir=$ac_optarg ;;
1778 -localedir | --localedir | --localedi | --localed | --locale)
1779 ac_prev=localedir ;;
1780 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1781 localedir=$ac_optarg ;;
1783 -localstatedir | --localstatedir | --localstatedi | --localstated \
1784 | --localstate | --localstat | --localsta | --localst | --locals)
1785 ac_prev=localstatedir ;;
1786 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1787 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1788 localstatedir=$ac_optarg ;;
1790 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1792 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1793 mandir=$ac_optarg ;;
1795 -nfp | --nfp | --nf)
1796 # Obsolete; use --without-fp.
1799 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1800 | --no-cr | --no-c | -n)
1803 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1804 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1807 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1808 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1809 | --oldin | --oldi | --old | --ol | --o)
1810 ac_prev=oldincludedir ;;
1811 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1812 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1813 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1814 oldincludedir=$ac_optarg ;;
1816 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1818 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1819 prefix=$ac_optarg ;;
1821 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1822 | --program-pre | --program-pr | --program-p)
1823 ac_prev=program_prefix ;;
1824 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1825 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1826 program_prefix=$ac_optarg ;;
1828 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1829 | --program-suf | --program-su | --program-s)
1830 ac_prev=program_suffix ;;
1831 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1832 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1833 program_suffix=$ac_optarg ;;
1835 -program-transform-name | --program-transform-name \
1836 | --program-transform-nam | --program-transform-na \
1837 | --program-transform-n | --program-transform- \
1838 | --program-transform | --program-transfor \
1839 | --program-transfo | --program-transf \
1840 | --program-trans | --program-tran \
1841 | --progr-tra | --program-tr | --program-t)
1842 ac_prev=program_transform_name ;;
1843 -program-transform-name=* | --program-transform-name=* \
1844 | --program-transform-nam=* | --program-transform-na=* \
1845 | --program-transform-n=* | --program-transform-=* \
1846 | --program-transform=* | --program-transfor=* \
1847 | --program-transfo=* | --program-transf=* \
1848 | --program-trans=* | --program-tran=* \
1849 | --progr-tra=* | --program-tr=* | --program-t=*)
1850 program_transform_name=$ac_optarg ;;
1852 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1854 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1855 pdfdir=$ac_optarg ;;
1857 -psdir | --psdir | --psdi | --psd | --ps)
1859 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863 | -silent | --silent | --silen | --sile | --sil)
1866 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1868 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1870 sbindir=$ac_optarg ;;
1872 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1873 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1874 | --sharedst | --shareds | --shared | --share | --shar \
1876 ac_prev=sharedstatedir ;;
1877 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1878 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1879 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1881 sharedstatedir=$ac_optarg ;;
1883 -site | --site | --sit)
1885 -site=* | --site=* | --sit=*)
1888 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1890 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1891 srcdir=$ac_optarg ;;
1893 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1894 | --syscon | --sysco | --sysc | --sys | --sy)
1895 ac_prev=sysconfdir ;;
1896 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1897 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1898 sysconfdir=$ac_optarg ;;
1900 -target | --target | --targe | --targ | --tar | --ta | --t)
1901 ac_prev=target_alias ;;
1902 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1903 target_alias=$ac_optarg ;;
1905 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1908 -version | --version | --versio | --versi | --vers | -V)
1909 ac_init_version=: ;;
1912 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1913 # Reject names that are not valid shell variable names.
1914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1915 as_fn_error $? "invalid package name: $ac_useropt"
1916 ac_useropt_orig=$ac_useropt
1917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1918 case $ac_user_opts in
1922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1923 ac_unrecognized_sep=', ';;
1925 eval with_$ac_useropt=\$ac_optarg ;;
1927 -without-* | --without-*)
1928 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1929 # Reject names that are not valid shell variable names.
1930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1931 as_fn_error $? "invalid package name: $ac_useropt"
1932 ac_useropt_orig=$ac_useropt
1933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1934 case $ac_user_opts in
1938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1939 ac_unrecognized_sep=', ';;
1941 eval with_$ac_useropt=no ;;
1944 # Obsolete; use --with-x.
1947 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1948 | --x-incl | --x-inc | --x-in | --x-i)
1949 ac_prev=x_includes ;;
1950 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1951 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1952 x_includes=$ac_optarg ;;
1954 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1955 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1956 ac_prev=x_libraries ;;
1957 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1958 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1959 x_libraries=$ac_optarg ;;
1961 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1962 Try \`$0 --help' for more information"
1966 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1967 # Reject names that are not valid shell variable names.
1968 case $ac_envvar in #(
1969 '' | [0-9]* | *[!_$as_cr_alnum]* )
1970 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1972 eval $ac_envvar=\$ac_optarg
1973 export $ac_envvar ;;
1976 # FIXME: should be removed in autoconf 3.0.
1977 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1978 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1979 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1980 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1986 if test -n "$ac_prev"; then
1987 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1988 as_fn_error $? "missing argument to $ac_option"
1991 if test -n "$ac_unrecognized_opts"; then
1992 case $enable_option_checking in
1994 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1995 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1999 # Check all directory arguments for consistency.
2000 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2001 datadir sysconfdir sharedstatedir localstatedir includedir \
2002 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2003 libdir localedir mandir
2005 eval ac_val=\$$ac_var
2006 # Remove trailing slashes.
2009 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2010 eval $ac_var=\$ac_val;;
2012 # Be sure to have absolute directory names.
2014 [\\/$]* | ?:[\\/]* ) continue;;
2015 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2017 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2020 # There might be people who depend on the old broken behavior: `$host'
2021 # used to hold the argument of --host etc.
2022 # FIXME: To remove some day.
2025 target=$target_alias
2027 # FIXME: To remove some day.
2028 if test "x$host_alias" != x; then
2029 if test "x$build_alias" = x; then
2030 cross_compiling=maybe
2031 elif test "x$build_alias" != "x$host_alias"; then
2037 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2039 test "$silent" = yes && exec 6>/dev/null
2042 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2043 ac_ls_di=`ls -di .` &&
2044 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2045 as_fn_error $? "working directory cannot be determined"
2046 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2047 as_fn_error $? "pwd does not report name of working directory"
2050 # Find the source files, if location was not specified.
2051 if test -z "$srcdir"; then
2052 ac_srcdir_defaulted=yes
2053 # Try the directory containing this script, then the parent directory.
2054 ac_confdir=`$as_dirname -- "$as_myself" ||
2055 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2056 X"$as_myself" : 'X\(//\)[^/]' \| \
2057 X"$as_myself" : 'X\(//\)$' \| \
2058 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2059 $as_echo X"$as_myself" |
2060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2078 if test ! -r "$srcdir/$ac_unique_file"; then
2082 ac_srcdir_defaulted=no
2084 if test ! -r "$srcdir/$ac_unique_file"; then
2085 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2086 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2088 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2090 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2092 # When building in place, set srcdir=.
2093 if test "$ac_abs_confdir" = "$ac_pwd"; then
2096 # Remove unnecessary trailing slashes from srcdir.
2097 # Double slashes in file names in object file debugging info
2098 # mess up M-x gdb in Emacs.
2100 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2102 for ac_var in $ac_precious_vars; do
2103 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2104 eval ac_env_${ac_var}_value=\$${ac_var}
2105 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2106 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2110 # Report the --help message.
2112 if test "$ac_init_help" = "long"; then
2113 # Omit some internal or obsolete options to make the list less imposing.
2114 # This message is too long to be a string in the A/UX 3.1 sh.
2116 \`configure' configures this package to adapt to many kinds of systems.
2118 Usage: $0 [OPTION]... [VAR=VALUE]...
2120 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2121 VAR=VALUE. See below for descriptions of some of the useful variables.
2123 Defaults for the options are specified in brackets.
2126 -h, --help display this help and exit
2127 --help=short display options specific to this package
2128 --help=recursive display the short help of all the included packages
2129 -V, --version display version information and exit
2130 -q, --quiet, --silent do not print \`checking ...' messages
2131 --cache-file=FILE cache test results in FILE [disabled]
2132 -C, --config-cache alias for \`--cache-file=config.cache'
2133 -n, --no-create do not create output files
2134 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2136 Installation directories:
2137 --prefix=PREFIX install architecture-independent files in PREFIX
2138 [$ac_default_prefix]
2139 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2142 By default, \`make install' will install all the files in
2143 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2144 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2145 for instance \`--prefix=\$HOME'.
2147 For better control, use the options below.
2149 Fine tuning of the installation directories:
2150 --bindir=DIR user executables [EPREFIX/bin]
2151 --sbindir=DIR system admin executables [EPREFIX/sbin]
2152 --libexecdir=DIR program executables [EPREFIX/libexec]
2153 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2154 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2155 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2156 --libdir=DIR object code libraries [EPREFIX/lib]
2157 --includedir=DIR C header files [PREFIX/include]
2158 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2159 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2160 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2161 --infodir=DIR info documentation [DATAROOTDIR/info]
2162 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2163 --mandir=DIR man documentation [DATAROOTDIR/man]
2164 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2165 --htmldir=DIR html documentation [DOCDIR]
2166 --dvidir=DIR dvi documentation [DOCDIR]
2167 --pdfdir=DIR pdf documentation [DOCDIR]
2168 --psdir=DIR ps documentation [DOCDIR]
2174 --program-prefix=PREFIX prepend PREFIX to installed program names
2175 --program-suffix=SUFFIX append SUFFIX to installed program names
2176 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2179 --build=BUILD configure for building on BUILD [guessed]
2180 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2184 if test -n "$ac_init_help"; then
2189 --disable-option-checking ignore unrecognized --enable/--with options
2190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2192 --enable-silent-rules less verbose build output (undo: "make V=1")
2193 --disable-silent-rules verbose build output (undo: "make V=0")
2194 --enable-dependency-tracking
2195 do not reject slow dependency extractors
2196 --disable-dependency-tracking
2197 speeds up one-time build
2198 --disable-java do not build Java sources
2199 --disable-native-java do not compile Java to native executables
2200 --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono)
2201 --disable-largefile omit support for large files
2202 --enable-threads={posix|solaris|pth|windows}
2203 specify multithreading API
2204 --disable-threads build without multithread safety
2205 --enable-shared[=PKGS] build shared libraries [default=yes]
2206 --enable-static[=PKGS] build static libraries [default=yes]
2207 --enable-fast-install[=PKGS]
2208 optimize for fast installation [default=yes]
2209 --disable-libtool-lock avoid locking (might break parallel builds)
2210 --disable-nls do not use Native Language Support
2211 --disable-rpath do not hardcode runtime library paths
2212 --disable-c++ do not build C++ sources
2213 --enable-relocatable install a package that can be moved in the file
2215 --disable-libasprintf do not build libasprintf
2218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2220 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2222 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2223 --with-sysroot=DIR Search for dependent libraries within DIR
2224 (or the compiler's sysroot if not specified).
2225 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2226 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2227 --without-libpth-prefix don't search for libpth in includedir and libdir
2228 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2229 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2230 --with-included-gettext use the GNU gettext library included here
2231 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2232 --without-libintl-prefix don't search for libintl in includedir and libdir
2234 Some influential environment variables:
2235 CC C compiler command
2236 CFLAGS C compiler flags
2237 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2238 nonstandard directory <lib dir>
2239 LIBS libraries to pass to the linker, e.g. -l<library>
2240 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2241 you have headers in a nonstandard directory <include dir>
2242 YACC The `Yet Another Compiler Compiler' implementation to use.
2243 Defaults to the first program found out of: `bison -y', `byacc',
2245 YFLAGS The list of arguments that will be passed by default to $YACC.
2246 This script will default YFLAGS to the empty string to avoid a
2247 default value of `-d' given by some make applications.
2249 CXX C++ compiler command
2250 CXXFLAGS C++ compiler flags
2252 Use these variables to override the choices made by `configure' or to help
2253 it to find libraries and programs with nonstandard names/locations.
2255 Report bugs to the package provider.
2260 if test "$ac_init_help" = "recursive"; then
2261 # If there are subdirs, report their specific --help.
2262 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2263 test -d "$ac_dir" ||
2264 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2272 # A ".." for each directory in $ac_dir_suffix.
2273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2274 case $ac_top_builddir_sub in
2275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2279 ac_abs_top_builddir=$ac_pwd
2280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2281 # for backward compatibility:
2282 ac_top_builddir=$ac_top_build_prefix
2285 .) # We are building in place.
2287 ac_top_srcdir=$ac_top_builddir_sub
2288 ac_abs_top_srcdir=$ac_pwd ;;
2289 [\\/]* | ?:[\\/]* ) # Absolute name.
2290 ac_srcdir=$srcdir$ac_dir_suffix;
2291 ac_top_srcdir=$srcdir
2292 ac_abs_top_srcdir=$srcdir ;;
2294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2295 ac_top_srcdir=$ac_top_build_prefix$srcdir
2296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2300 cd "$ac_dir" || { ac_status=$?; continue; }
2301 # Check for guested configure.
2302 if test -f "$ac_srcdir/configure.gnu"; then
2304 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2305 elif test -f "$ac_srcdir/configure"; then
2307 $SHELL "$ac_srcdir/configure" --help=recursive
2309 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2311 cd "$ac_pwd" || { ac_status=$?; break; }
2315 test -n "$ac_init_help" && exit $ac_status
2316 if $ac_init_version; then
2319 generated by GNU Autoconf 2.69
2321 Copyright (C) 2012 Free Software Foundation, Inc.
2322 This configure script is free software; the Free Software Foundation
2323 gives unlimited permission to copy, distribute and modify it.
2328 ## ------------------------ ##
2329 ## Autoconf initialization. ##
2330 ## ------------------------ ##
2332 # ac_fn_c_try_compile LINENO
2333 # --------------------------
2334 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2335 ac_fn_c_try_compile ()
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 rm -f conftest.$ac_objext
2339 if { { ac_try="$ac_compile"
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2345 $as_echo "$ac_try_echo"; } >&5
2346 (eval "$ac_compile") 2>conftest.err
2348 if test -s conftest.err; then
2349 grep -v '^ *+' conftest.err >conftest.er1
2350 cat conftest.er1 >&5
2351 mv -f conftest.er1 conftest.err
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; } && {
2355 test -z "$ac_c_werror_flag" ||
2356 test ! -s conftest.err
2357 } && test -s conftest.$ac_objext; then :
2360 $as_echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 as_fn_set_status $ac_retval
2368 } # ac_fn_c_try_compile
2370 # ac_fn_c_try_cpp LINENO
2371 # ----------------------
2372 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 if { { ac_try="$ac_cpp conftest.$ac_ext"
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } > conftest.i && {
2392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2393 test ! -s conftest.err
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403 as_fn_set_status $ac_retval
2407 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2408 # -------------------------------------------------------
2409 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2410 # the include files in INCLUDES and setting the cache variable VAR
2412 ac_fn_c_check_header_mongrel ()
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 if eval \${$3+:} false; then :
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if eval \${$3+:} false; then :
2419 $as_echo_n "(cached) " >&6
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423 $as_echo "$ac_res" >&6; }
2425 # Is the header compilable?
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2427 $as_echo_n "checking $2 usability... " >&6; }
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 ac_header_compiler=yes
2436 ac_header_compiler=no
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2440 $as_echo "$ac_header_compiler" >&6; }
2442 # Is the header present?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2444 $as_echo_n "checking $2 presence... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2449 if ac_fn_c_try_cpp "$LINENO"; then :
2450 ac_header_preproc=yes
2452 ac_header_preproc=no
2454 rm -f conftest.err conftest.i conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2456 $as_echo "$ac_header_preproc" >&6; }
2458 # So? What about this header?
2459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2462 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2464 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2468 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2470 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2472 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2474 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2476 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if eval \${$3+:} false; then :
2482 $as_echo_n "(cached) " >&6
2484 eval "$3=\$ac_header_compiler"
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 } # ac_fn_c_check_header_mongrel
2494 # ac_fn_c_try_run LINENO
2495 # ----------------------
2496 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2497 # that executables *can* be run.
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 if { { ac_try="$ac_link"
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 $as_echo "$ac_try_echo"; } >&5
2508 (eval "$ac_link") 2>&5
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512 { { case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_try") 2>&5
2520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521 test $ac_status = 0; }; }; then :
2524 $as_echo "$as_me: program exited with status $ac_status" >&5
2525 $as_echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 ac_retval=$ac_status
2530 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 as_fn_set_status $ac_retval
2536 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2537 # -------------------------------------------------------
2538 # Tests whether HEADER exists and can be compiled using the include files in
2539 # INCLUDES, setting the cache variable VAR accordingly.
2540 ac_fn_c_check_header_compile ()
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if eval \${$3+:} false; then :
2546 $as_echo_n "(cached) " >&6
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2553 if ac_fn_c_try_compile "$LINENO"; then :
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565 } # ac_fn_c_check_header_compile
2567 # ac_fn_c_try_link LINENO
2568 # -----------------------
2569 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 rm -f conftest.$ac_objext conftest$ac_exeext
2574 if { { ac_try="$ac_link"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>conftest.err
2583 if test -s conftest.err; then
2584 grep -v '^ *+' conftest.err >conftest.er1
2585 cat conftest.er1 >&5
2586 mv -f conftest.er1 conftest.err
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; } && {
2590 test -z "$ac_c_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest$ac_exeext && {
2593 test "$cross_compiling" = yes ||
2594 test -x conftest$ac_exeext
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605 # interfere with the next link command; also delete a directory that is
2606 # left behind by Apple's compiler. We do this before executing the actions.
2607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2609 as_fn_set_status $ac_retval
2611 } # ac_fn_c_try_link
2613 # ac_fn_c_check_func LINENO FUNC VAR
2614 # ----------------------------------
2615 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2616 ac_fn_c_check_func ()
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620 $as_echo_n "checking for $2... " >&6; }
2621 if eval \${$3+:} false; then :
2622 $as_echo_n "(cached) " >&6
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2626 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2628 #define $2 innocuous_$2
2630 /* System header to define __stub macros and hopefully few prototypes,
2631 which can conflict with char $2 (); below.
2632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2633 <limits.h> exists even on freestanding compilers. */
2636 # include <limits.h>
2638 # include <assert.h>
2643 /* Override any GCC internal prototype to avoid an error.
2644 Use char because int might match the return type of a GCC
2645 builtin and then its argument prototype would still apply. */
2650 /* The GNU C library defines this for functions which it implements
2651 to always fail with ENOSYS. Some functions are actually named
2652 something starting with __ and the normal name is an alias. */
2653 #if defined __stub_$2 || defined __stub___$2
2665 if ac_fn_c_try_link "$LINENO"; then :
2670 rm -f core conftest.err conftest.$ac_objext \
2671 conftest$ac_exeext conftest.$ac_ext
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 } # ac_fn_c_check_func
2680 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2681 # -------------------------------------------
2682 # Tests whether TYPE exists after having included INCLUDES, setting cache
2683 # variable VAR accordingly.
2684 ac_fn_c_check_type ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2688 $as_echo_n "checking for $2... " >&6; }
2689 if eval \${$3+:} false; then :
2690 $as_echo_n "(cached) " >&6
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2718 if ac_fn_c_try_compile "$LINENO"; then :
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2729 $as_echo "$ac_res" >&6; }
2730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2732 } # ac_fn_c_check_type
2734 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2735 # ---------------------------------------------
2736 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2738 ac_fn_c_check_decl ()
2740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741 as_decl_name=`echo $2|sed 's/ *(.*//'`
2742 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2744 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2745 if eval \${$3+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2754 #ifndef $as_decl_name
2756 (void) $as_decl_use;
2758 (void) $as_decl_name;
2766 if ac_fn_c_try_compile "$LINENO"; then :
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2775 $as_echo "$ac_res" >&6; }
2776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2778 } # ac_fn_c_check_decl
2780 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2781 # --------------------------------------------
2782 # Tries to find the compile-time value of EXPR in a program that includes
2783 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2785 ac_fn_c_compute_int ()
2787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2788 if test "$cross_compiling" = yes; then
2789 # Depending upon the size, compute the lo and hi bounds.
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2796 static int test_array [1 - 2 * !(($2) >= 0)];
2798 return test_array [0];
2804 if ac_fn_c_try_compile "$LINENO"; then :
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2813 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2815 return test_array [0];
2821 if ac_fn_c_try_compile "$LINENO"; then :
2822 ac_hi=$ac_mid; break
2824 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2825 if test $ac_lo -le $ac_mid; then
2829 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2840 static int test_array [1 - 2 * !(($2) < 0)];
2842 return test_array [0];
2848 if ac_fn_c_try_compile "$LINENO"; then :
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2857 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2859 return test_array [0];
2865 if ac_fn_c_try_compile "$LINENO"; then :
2866 ac_lo=$ac_mid; break
2868 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2869 if test $ac_mid -le $ac_hi; then
2873 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 # Binary search between lo and hi bounds.
2884 while test "x$ac_lo" != "x$ac_hi"; do
2885 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2892 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2894 return test_array [0];
2900 if ac_fn_c_try_compile "$LINENO"; then :
2903 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2915 static long int longval () { return $2; }
2916 static unsigned long int ulongval () { return $2; }
2923 FILE *f = fopen ("conftest.val", "w");
2928 long int i = longval ();
2931 fprintf (f, "%ld", i);
2935 unsigned long int i = ulongval ();
2938 fprintf (f, "%lu", i);
2940 /* Do not output a trailing newline, as this causes \r\n confusion
2941 on some platforms. */
2942 return ferror (f) || fclose (f) != 0;
2948 if ac_fn_c_try_run "$LINENO"; then :
2949 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2954 conftest.$ac_objext conftest.beam conftest.$ac_ext
2958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2959 as_fn_set_status $ac_retval
2961 } # ac_fn_c_compute_int
2962 cat >config.log <<_ACEOF
2963 This file contains any messages produced by compilers while
2964 running configure, to aid debugging if configure makes a mistake.
2966 It was created by $as_me, which was
2967 generated by GNU Autoconf 2.69. Invocation command line was
2979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir=.
3003 $as_echo "PATH: $as_dir"
3019 # Keep a trace of the command line.
3020 # Strip out --no-create and --no-recursion so they do not pile up.
3021 # Strip out --silent because we don't want to record it for future runs.
3022 # Also quote any args containing shell meta-characters.
3023 # Make two passes to allow for proper duplicate-argument suppression.
3027 ac_must_keep_next=false
3033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3035 | -silent | --silent | --silen | --sile | --sil)
3038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3043 as_fn_append ac_configure_args1 " '$ac_arg'"
3044 if test $ac_must_keep_next = true; then
3045 ac_must_keep_next=false # Got value, back to normal.
3048 *=* | --config-cache | -C | -disable-* | --disable-* \
3049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3051 | -with-* | --with-* | -without-* | --without-* | --x)
3052 case "$ac_configure_args0 " in
3053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3056 -* ) ac_must_keep_next=true ;;
3059 as_fn_append ac_configure_args " '$ac_arg'"
3064 { ac_configure_args0=; unset ac_configure_args0;}
3065 { ac_configure_args1=; unset ac_configure_args1;}
3067 # When interrupted or exit'd, cleanup temporary files, and complete
3068 # config.log. We remove comments because anyway the quotes in there
3069 # would cause problems or look ugly.
3070 # WARNING: Use '\'' to represent an apostrophe within the trap.
3071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3072 trap 'exit_status=$?
3073 # Save into config.log some information that might help in debugging.
3077 $as_echo "## ---------------- ##
3078 ## Cache variables. ##
3079 ## ---------------- ##"
3081 # The following way of writing the cache mishandles newlines in values,
3083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3084 eval ac_val=\$$ac_var
3088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3092 _ | IFS | as_nl) ;; #(
3093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3094 *) { eval $ac_var=; unset $ac_var;} ;;
3099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3100 *${as_nl}ac_space=\ *)
3102 "s/'\''/'\''\\\\'\'''\''/g;
3103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3113 $as_echo "## ----------------- ##
3114 ## Output variables. ##
3115 ## ----------------- ##"
3117 for ac_var in $ac_subst_vars
3119 eval ac_val=\$$ac_var
3121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3123 $as_echo "$ac_var='\''$ac_val'\''"
3127 if test -n "$ac_subst_files"; then
3128 $as_echo "## ------------------- ##
3129 ## File substitutions. ##
3130 ## ------------------- ##"
3132 for ac_var in $ac_subst_files
3134 eval ac_val=\$$ac_var
3136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3138 $as_echo "$ac_var='\''$ac_val'\''"
3143 if test -s confdefs.h; then
3144 $as_echo "## ----------- ##
3151 test "$ac_signal" != 0 &&
3152 $as_echo "$as_me: caught signal $ac_signal"
3153 $as_echo "$as_me: exit $exit_status"
3155 rm -f core *.core core.conftest.* &&
3156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3159 for ac_signal in 1 2 13 15; do
3160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3165 rm -f -r conftest* confdefs.h
3167 $as_echo "/* confdefs.h */" > confdefs.h
3169 # Predefined preprocessor variables.
3171 cat >>confdefs.h <<_ACEOF
3172 #define PACKAGE_NAME "$PACKAGE_NAME"
3175 cat >>confdefs.h <<_ACEOF
3176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_STRING "$PACKAGE_STRING"
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_URL "$PACKAGE_URL"
3196 # Let the site file select an alternate cache file if it wants to.
3197 # Prefer an explicitly selected file to automatically selected ones.
3200 if test -n "$CONFIG_SITE"; then
3201 # We do not want a PATH search for config.site.
3202 case $CONFIG_SITE in #((
3203 -*) ac_site_file1=./$CONFIG_SITE;;
3204 */*) ac_site_file1=$CONFIG_SITE;;
3205 *) ac_site_file1=./$CONFIG_SITE;;
3207 elif test "x$prefix" != xNONE; then
3208 ac_site_file1=$prefix/share/config.site
3209 ac_site_file2=$prefix/etc/config.site
3211 ac_site_file1=$ac_default_prefix/share/config.site
3212 ac_site_file2=$ac_default_prefix/etc/config.site
3214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3216 test "x$ac_site_file" = xNONE && continue
3217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3220 sed 's/^/| /' "$ac_site_file" >&5
3222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "failed to load site script $ac_site_file
3225 See \`config.log' for more details" "$LINENO" 5; }
3229 if test -r "$cache_file"; then
3230 # Some versions of bash will fail to source /dev/null (special files
3231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3234 $as_echo "$as_me: loading cache $cache_file" >&6;}
3236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3237 *) . "./$cache_file";;
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3242 $as_echo "$as_me: creating cache $cache_file" >&6;}
3246 gt_needs="$gt_needs need-ngettext"
3247 as_fn_append ac_header_list " stdlib.h"
3248 as_fn_append ac_header_list " unistd.h"
3249 as_fn_append ac_header_list " sys/param.h"
3250 as_fn_append ac_func_list " symlink"
3251 as_fn_append ac_header_list " string.h"
3252 as_fn_append ac_func_list " canonicalize_file_name"
3253 as_fn_append ac_func_list " getcwd"
3254 as_fn_append ac_func_list " readlink"
3255 as_fn_append ac_func_list " realpath"
3256 as_fn_append ac_func_list " readlinkat"
3257 gl_getopt_required=GNU
3258 as_fn_append ac_header_list " getopt.h"
3259 as_fn_append ac_header_list " iconv.h"
3260 as_fn_append ac_func_list " iswcntrl"
3261 as_fn_append ac_header_list " wctype.h"
3262 as_fn_append ac_func_list " iswblank"
3263 as_fn_append ac_header_list " xlocale.h"
3264 as_fn_append ac_func_list " lstat"
3265 as_fn_append ac_func_list " mbsinit"
3266 as_fn_append ac_func_list " mbrtowc"
3267 as_fn_append ac_func_list " mbslen"
3268 as_fn_append ac_header_list " sys/mman.h"
3269 as_fn_append ac_func_list " mprotect"
3270 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3271 as_fn_append ac_func_list " setenv"
3272 as_fn_append ac_header_list " wchar.h"
3273 as_fn_append ac_header_list " stdint.h"
3274 as_fn_append ac_header_list " sys/socket.h"
3275 as_fn_append ac_header_list " sys/stat.h"
3276 as_fn_append ac_header_list " sys/time.h"
3277 as_fn_append ac_header_list " features.h"
3278 as_fn_append ac_func_list " wcwidth"
3279 # Check that the precious variables saved in the cache have kept the same
3281 ac_cache_corrupted=false
3282 for ac_var in $ac_precious_vars; do
3283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3284 eval ac_new_set=\$ac_env_${ac_var}_set
3285 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3286 eval ac_new_val=\$ac_env_${ac_var}_value
3287 case $ac_old_set,$ac_new_set in
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3290 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3291 ac_cache_corrupted=: ;;
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3294 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3295 ac_cache_corrupted=: ;;
3298 if test "x$ac_old_val" != "x$ac_new_val"; then
3299 # differences in whitespace do not lead to failure.
3300 ac_old_val_w=`echo x $ac_old_val`
3301 ac_new_val_w=`echo x $ac_new_val`
3302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3304 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3305 ac_cache_corrupted=:
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3308 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3309 eval $ac_var=\$ac_old_val
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3312 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3314 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3317 # Pass precious variables to config.status.
3318 if test "$ac_new_set" = set; then
3320 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3321 *) ac_arg=$ac_var=$ac_new_val ;;
3323 case " $ac_configure_args " in
3324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3325 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3329 if $ac_cache_corrupted; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3333 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3334 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3336 ## -------------------- ##
3337 ## Main body of script. ##
3338 ## -------------------- ##
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3350 if test -f "$ac_dir/install-sh"; then
3352 ac_install_sh="$ac_aux_dir/install-sh -c"
3354 elif test -f "$ac_dir/install.sh"; then
3356 ac_install_sh="$ac_aux_dir/install.sh -c"
3358 elif test -f "$ac_dir/shtool"; then
3360 ac_install_sh="$ac_aux_dir/shtool install -c"
3364 if test -z "$ac_aux_dir"; then
3365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
3368 # These three variables are undocumented and unsupported,
3369 # and are intended to be withdrawn in a future Autoconf release.
3370 # They can cause serious problems if a builder's source tree is in a directory
3371 # whose full name contains unusual characters.
3372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3377 . $srcdir/../version.sh
3384 am__api_version='1.14'
3386 # Find a good install program. We prefer a C program (faster),
3387 # so one script is as good as another. But avoid the broken or
3388 # incompatible versions:
3389 # SysV /etc/install, /usr/sbin/install
3390 # SunOS /usr/etc/install
3391 # IRIX /sbin/install
3393 # AmigaOS /C/install, which installs bootblocks on floppy discs
3394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397 # OS/2's system install, which has a completely different semantic
3398 # ./install, which can be erroneously created by make from ./install.sh.
3399 # Reject install programs that cannot install multiple files.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3401 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3402 if test -z "$INSTALL"; then
3403 if ${ac_cv_path_install+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 # Account for people who put trailing slashes in PATH elements.
3412 case $as_dir/ in #((
3413 ./ | .// | /[cC]/* | \
3414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3415 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3418 # OSF1 and SCO ODT 3.0 have their own names for install.
3419 # Don't use installbsd from OSF since it installs stuff as root
3421 for ac_prog in ginstall scoinst install; do
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3424 if test $ac_prog = install &&
3425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426 # AIX install. It has an incompatible calling convention.
3428 elif test $ac_prog = install &&
3429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430 # program-specific install script used by HP pwplus--don't use.
3433 rm -rf conftest.one conftest.two conftest.dir
3434 echo one > conftest.one
3435 echo two > conftest.two
3437 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3438 test -s conftest.one && test -s conftest.two &&
3439 test -s conftest.dir/conftest.one &&
3440 test -s conftest.dir/conftest.two
3442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3455 rm -rf conftest.one conftest.two conftest.dir
3458 if test "${ac_cv_path_install+set}" = set; then
3459 INSTALL=$ac_cv_path_install
3461 # As a last resort, use the slow shell script. Don't cache a
3462 # value for INSTALL within a source directory, because that will
3463 # break other packages using the cache if that directory is
3464 # removed, or if the value is a relative name.
3465 INSTALL=$ac_install_sh
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3469 $as_echo "$INSTALL" >&6; }
3471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3472 # It thinks the first close brace ends the variable substitution.
3473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3480 $as_echo_n "checking whether build environment is sane... " >&6; }
3481 # Reject unsafe characters in $srcdir or the absolute working directory
3482 # name. Accept space and tab only in the latter.
3486 *[\\\"\#\$\&\'\`$am_lf]*)
3487 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3490 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3491 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3494 # Do 'set' in a subshell so we don't clobber the current shell's
3495 # arguments. Must try -L first in case configure is actually a
3496 # symlink; some systems play weird games with the mod time of symlinks
3497 # (eg FreeBSD returns the mod time of the symlink's containing
3501 for am_try in 1 2; do
3502 echo "timestamp, slept: $am_has_slept" > conftest.file
3503 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3504 if test "$*" = "X"; then
3506 set X `ls -t "$srcdir/configure" conftest.file`
3508 if test "$*" != "X $srcdir/configure conftest.file" \
3509 && test "$*" != "X conftest.file $srcdir/configure"; then
3511 # If neither matched, then we have a broken ls. This can happen
3512 # if, for instance, CONFIG_SHELL is bash and it inherits a
3513 # broken ls alias from the environment. This has actually
3514 # happened. Such a system could not be considered "sane".
3515 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3516 alias in your environment" "$LINENO" 5
3518 if test "$2" = conftest.file || test $am_try -eq 2; then
3525 test "$2" = conftest.file
3531 as_fn_error $? "newly created file is older than distributed files!
3532 Check your system clock" "$LINENO" 5
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535 $as_echo "yes" >&6; }
3536 # If we didn't sleep, we still need to ensure time stamps of config.status and
3537 # generated files are strictly newer.
3539 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3546 test "$program_prefix" != NONE &&
3547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3548 # Use a double $ so make ignores it.
3549 test "$program_suffix" != NONE &&
3550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3551 # Double any \ or $.
3552 # By default was `s,x,x', remove it if useless.
3553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3556 # expand $ac_aux_dir to an absolute path
3557 am_aux_dir=`cd $ac_aux_dir && pwd`
3559 if test x"${MISSING+set}" != xset; then
3562 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3564 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3567 # Use eval to expand $SHELL
3568 if eval "$MISSING --is-lightweight"; then
3569 am_missing_run="$MISSING "
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3573 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3576 if test x"${install_sh}" != xset; then
3579 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3581 install_sh="\${SHELL} $am_aux_dir/install-sh"
3585 # Installed binaries are usually stripped using 'strip' when the user
3586 # run "make install-strip". However 'strip' might not be the right
3587 # tool to use in cross-compilation environments, therefore Automake
3588 # will honor the 'STRIP' environment variable to overrule this program.
3589 if test "$cross_compiling" != no; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}strip; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_STRIP+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$STRIP"; then
3599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 STRIP=$ac_cv_prog_STRIP
3619 if test -n "$STRIP"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3621 $as_echo "$STRIP" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3629 if test -z "$ac_cv_prog_STRIP"; then
3631 # Extract the first word of "strip", so it can be a program name with args.
3632 set dummy strip; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$ac_ct_STRIP"; then
3639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_ac_ct_STRIP="strip"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3659 if test -n "$ac_ct_STRIP"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3661 $as_echo "$ac_ct_STRIP" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3667 if test "x$ac_ct_STRIP" = x; then
3670 case $cross_compiling:$ac_tool_warned in
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3679 STRIP="$ac_cv_prog_STRIP"
3683 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3686 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3687 if test -z "$MKDIR_P"; then
3688 if ${ac_cv_path_mkdir+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3695 test -z "$as_dir" && as_dir=.
3696 for ac_prog in mkdir gmkdir; do
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3699 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3700 'mkdir (GNU coreutils) '* | \
3701 'mkdir (coreutils) '* | \
3702 'mkdir (fileutils) '4.1*)
3703 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3713 test -d ./--version && rmdir ./--version
3714 if test "${ac_cv_path_mkdir+set}" = set; then
3715 MKDIR_P="$ac_cv_path_mkdir -p"
3717 # As a last resort, use the slow shell script. Don't cache a
3718 # value for MKDIR_P within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the value is a relative name.
3721 MKDIR_P="$ac_install_sh -d"
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3725 $as_echo "$MKDIR_P" >&6; }
3727 for ac_prog in gawk mawk nawk awk
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if ${ac_cv_prog_AWK+:} false; then :
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$AWK"; then
3737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_AWK="$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 if test -n "$AWK"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3759 $as_echo "$AWK" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3766 test -n "$AWK" && break
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3770 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3772 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3773 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 cat >conftest.make <<\_ACEOF
3779 @echo '@@@%%%=$(MAKE)=@@@%%%'
3781 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3782 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3784 eval ac_cv_prog_make_${ac_make}_set=yes;;
3786 eval ac_cv_prog_make_${ac_make}_set=no;;
3790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3792 $as_echo "yes" >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797 SET_MAKE="MAKE=${MAKE-make}"
3800 rm -rf .tst 2>/dev/null
3801 mkdir .tst 2>/dev/null
3802 if test -d .tst; then
3807 rmdir .tst 2>/dev/null
3809 # Check whether --enable-silent-rules was given.
3810 if test "${enable_silent_rules+set}" = set; then :
3811 enableval=$enable_silent_rules;
3814 case $enable_silent_rules in # (((
3815 yes) AM_DEFAULT_VERBOSITY=0;;
3816 no) AM_DEFAULT_VERBOSITY=1;;
3817 *) AM_DEFAULT_VERBOSITY=1;;
3819 am_make=${MAKE-make}
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3821 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3822 if ${am_cv_make_support_nested_variables+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 if $as_echo 'TRUE=$(BAR$(V))
3831 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3832 am_cv_make_support_nested_variables=yes
3834 am_cv_make_support_nested_variables=no
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3838 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3839 if test $am_cv_make_support_nested_variables = yes; then
3841 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3843 AM_V=$AM_DEFAULT_VERBOSITY
3844 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3850 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3851 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3852 # is not polluted with repeated "-I."
3853 am__isrc=' -I$(srcdir)'
3854 # test to see if srcdir already configured
3855 if test -f $srcdir/config.status; then
3856 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3860 # test whether we have cygpath
3861 if test -z "$CYGPATH_W"; then
3862 if (cygpath --version) >/dev/null 2>/dev/null; then
3863 CYGPATH_W='cygpath -w'
3870 # Define the identity of the package.
3875 # Some tools Automake needs.
3877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3891 # For better backward compatibility. To be removed once Automake 1.9.x
3892 # dies out for good. For more background, see:
3893 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3894 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3895 mkdir_p='$(MKDIR_P)'
3897 # We need awk for the "check" target. The system "awk" is bad on
3899 # Always define AMTAR for backward compatibility. Yes, it's still used
3900 # in the wild :-( We should find a proper way to deprecate it ...
3904 # We'll loop over all known methods to create a tar archive until one works.
3905 _am_tools='gnutar pax cpio none'
3907 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3914 # POSIX will say in a future version that running "rm -f" with no argument
3915 # is OK; and we want to be able to make that assumption in our Makefile
3916 # recipes. So use an aggressive probe to check that the usage we want is
3917 # actually supported "in the wild" to an acceptable degree.
3918 # See automake bug#10828.
3919 # To make any issue more visible, cause the running configure to be aborted
3920 # by default if the 'rm' program in use doesn't match our expectations; the
3921 # user can still override this though.
3922 if rm -f && rm -fr && rm -rf; then : OK; else
3926 Your 'rm' program seems unable to run without file operands specified
3927 on the command line, even when the '-f' option is present. This is contrary
3928 to the behaviour of most rm programs out there, and not conforming with
3929 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3931 Please tell bug-automake@gnu.org about your system, including the value
3932 of your $PATH and any error possibly output before this message. This
3933 can help us improve future automake versions.
3936 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3937 echo 'Configuration will proceed anyway, since you have set the' >&2
3938 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3942 Aborting the configuration process, to ensure you take notice of the issue.
3944 You can download and install GNU coreutils to get an 'rm' implementation
3945 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3947 If you want to complete the configuration process using your problematic
3948 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3949 to "yes", and re-run configure.
3952 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3955 PACKAGE=gettext-runtime
3957 VERSION=$VERSION_NUMBER
3961 cat >>confdefs.h <<_ACEOF
3962 #define PACKAGE "$PACKAGE"
3966 cat >>confdefs.h <<_ACEOF
3967 #define VERSION "$VERSION"
3972 ac_config_headers="$ac_config_headers config.h"
3975 test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 if test -n "$ac_tool_prefix"; then
3983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if ${ac_cv_prog_CC+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 if test -n "$CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 $as_echo "$CC" >&6; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4021 if test -z "$ac_cv_prog_CC"; then
4023 # Extract the first word of "gcc", so it can be a program name with args.
4024 set dummy gcc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 if test -n "$ac_ct_CC"; then
4031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_CC="gcc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4051 if test -n "$ac_ct_CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4053 $as_echo "$ac_ct_CC" >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4059 if test "x$ac_ct_CC" = x; then
4062 case $cross_compiling:$ac_tool_warned in
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4074 if test -z "$CC"; then
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}cc; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if ${ac_cv_prog_CC+:} false; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_CC="${ac_tool_prefix}cc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 if test -n "$CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 $as_echo "$CC" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4115 if test -z "$CC"; then
4116 # Extract the first word of "cc", so it can be a program name with args.
4117 set dummy cc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if ${ac_cv_prog_CC+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4135 ac_prog_rejected=yes
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 if test $ac_prog_rejected = yes; then
4147 # We found a bogon in the path, so make sure we never use it.
4148 set dummy $ac_cv_prog_CC
4150 if test $# != 0; then
4151 # We chose a different compiler from the bogus one.
4152 # However, it has the same basename, so the bogon will be chosen
4153 # first if we set CC to just the basename; use the full file name.
4155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4161 if test -n "$CC"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4163 $as_echo "$CC" >&6; }
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4171 if test -z "$CC"; then
4172 if test -n "$ac_tool_prefix"; then
4173 for ac_prog in cl.exe
4175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_prog_CC+:} false; then :
4180 $as_echo_n "(cached) " >&6
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CC"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205 $as_echo "$CC" >&6; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4212 test -n "$CC" && break
4215 if test -z "$CC"; then
4217 for ac_prog in cl.exe
4219 # Extract the first word of "$ac_prog", so it can be a program name with args.
4220 set dummy $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_ac_ct_CC+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -n "$ac_ct_CC"; then
4227 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4247 if test -n "$ac_ct_CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4249 $as_echo "$ac_ct_CC" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4256 test -n "$ac_ct_CC" && break
4259 if test "x$ac_ct_CC" = x; then
4262 case $cross_compiling:$ac_tool_warned in
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4275 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error $? "no acceptable C compiler found in \$PATH
4278 See \`config.log' for more details" "$LINENO" 5; }
4280 # Provide some information about the compiler.
4281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4284 for ac_option in --version -v -V -qversion; do
4285 { { ac_try="$ac_compiler $ac_option >&5"
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4294 if test -s conftest.err; then
4296 ... rest of stderr output deleted ...
4297 10q' conftest.err >conftest.er1
4298 cat conftest.er1 >&5
4300 rm -f conftest.er1 conftest.err
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4316 ac_clean_files_save=$ac_clean_files
4317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4318 # Try to create an executable without -o first, disregard a.out.
4319 # It will help us diagnose broken compilers, and finding out an intuition
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4322 $as_echo_n "checking whether the C compiler works... " >&6; }
4323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4325 # The possible output files:
4326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4329 for ac_file in $ac_files
4332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4338 if { { ac_try="$ac_link_default"
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 $as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_link_default") 2>&5
4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; }; then :
4349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4351 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4352 # so that the user can short-circuit this test for compilers unknown to
4354 for ac_file in $ac_files ''
4356 test -f "$ac_file" || continue
4358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4361 # We found the default executable, but exeext='' is most
4365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4369 # We set ac_cv_exeext here because the later test for it is not
4370 # safe: cross compilers may not add the suffix if given an `-o'
4371 # argument, so we may need to know it at that point already.
4372 # Even if this section looks crufty: it has the advantage of
4379 test "$ac_cv_exeext" = no && ac_cv_exeext=
4384 if test -z "$ac_file"; then :
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 $as_echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error 77 "C compiler cannot create executables
4393 See \`config.log' for more details" "$LINENO" 5; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 $as_echo "yes" >&6; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4399 $as_echo_n "checking for C compiler default output file name... " >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4401 $as_echo "$ac_file" >&6; }
4402 ac_exeext=$ac_cv_exeext
4404 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4405 ac_clean_files=$ac_clean_files_save
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4407 $as_echo_n "checking for suffix of executables... " >&6; }
4408 if { { ac_try="$ac_link"
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_link") 2>&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
4419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4421 # work properly (i.e., refer to `conftest.exe'), while it won't with
4423 for ac_file in conftest.exe conftest conftest.*; do
4424 test -f "$ac_file" || continue
4426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4436 See \`config.log' for more details" "$LINENO" 5; }
4438 rm -f conftest conftest$ac_cv_exeext
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4440 $as_echo "$ac_cv_exeext" >&6; }
4442 rm -f conftest.$ac_ext
4443 EXEEXT=$ac_cv_exeext
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4451 FILE *f = fopen ("conftest.out", "w");
4452 return ferror (f) || fclose (f) != 0;
4458 ac_clean_files="$ac_clean_files conftest.out"
4459 # Check that the compiler produces executables we can run. If not, either
4460 # the compiler is broken, or we cross compile.
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4462 $as_echo_n "checking whether we are cross compiling... " >&6; }
4463 if test "$cross_compiling" != yes; then
4464 { { ac_try="$ac_link"
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4470 $as_echo "$ac_try_echo"; } >&5
4471 (eval "$ac_link") 2>&5
4473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474 test $ac_status = 0; }
4475 if { ac_try='./conftest$ac_cv_exeext'
4476 { { case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481 $as_echo "$ac_try_echo"; } >&5
4482 (eval "$ac_try") 2>&5
4484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }; }; then
4488 if test "$cross_compiling" = maybe; then
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error $? "cannot run C compiled programs.
4494 If you meant to cross compile, use \`--host'.
4495 See \`config.log' for more details" "$LINENO" 5; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4500 $as_echo "$cross_compiling" >&6; }
4502 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4503 ac_clean_files=$ac_clean_files_save
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4505 $as_echo_n "checking for suffix of object files... " >&6; }
4506 if ${ac_cv_objext+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4520 rm -f conftest.o conftest.obj
4521 if { { ac_try="$ac_compile"
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527 $as_echo "$ac_try_echo"; } >&5
4528 (eval "$ac_compile") 2>&5
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }; then :
4532 for ac_file in conftest.o conftest.obj conftest.*; do
4533 test -f "$ac_file" || continue;
4535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4536 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4541 $as_echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of object files: cannot compile
4547 See \`config.log' for more details" "$LINENO" 5; }
4549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4552 $as_echo "$ac_cv_objext" >&6; }
4553 OBJEXT=$ac_cv_objext
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4557 if ${ac_cv_c_compiler_gnu+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4574 if ac_fn_c_try_compile "$LINENO"; then :
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4585 if test $ac_compiler_gnu = yes; then
4590 ac_test_CFLAGS=${CFLAGS+set}
4591 ac_save_CFLAGS=$CFLAGS
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4594 if ${ac_cv_prog_cc_g+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 ac_save_c_werror_flag=$ac_c_werror_flag
4598 ac_c_werror_flag=yes
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4612 if ac_fn_c_try_compile "$LINENO"; then :
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4627 if ac_fn_c_try_compile "$LINENO"; then :
4630 ac_c_werror_flag=$ac_save_c_werror_flag
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4643 if ac_fn_c_try_compile "$LINENO"; then :
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 ac_c_werror_flag=$ac_save_c_werror_flag
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4654 $as_echo "$ac_cv_prog_cc_g" >&6; }
4655 if test "$ac_test_CFLAGS" = set; then
4656 CFLAGS=$ac_save_CFLAGS
4657 elif test $ac_cv_prog_cc_g = yes; then
4658 if test "$GCC" = yes; then
4664 if test "$GCC" = yes; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4672 if ${ac_cv_prog_cc_c89+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 ac_cv_prog_cc_c89=no
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4683 struct buf { int x; };
4684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4685 static char *e (p, i)
4691 static char *f (char * (*g) (char **, int), char **p, ...)
4696 s = g (p, va_arg (v,int));
4701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4702 function prototypes and stuff, but not '\xHH' hex character constants.
4703 These don't provoke an error unfortunately, instead are silently treated
4704 as 'x'. The following induces an error, until -std is added to get
4705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4706 array size at least. It's necessary to write '\x00'==0 to get something
4707 that's true only with -std. */
4708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4711 inside strings and character constants. */
4713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4715 int test (int i, double x);
4716 struct s1 {int (*f) (int a);};
4717 struct s2 {int (*f) (double a);};
4718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4732 CC="$ac_save_CC $ac_arg"
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_prog_cc_c89=$ac_arg
4736 rm -f core conftest.err conftest.$ac_objext
4737 test "x$ac_cv_prog_cc_c89" != "xno" && break
4739 rm -f conftest.$ac_ext
4744 case "x$ac_cv_prog_cc_c89" in
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4747 $as_echo "none needed" >&6; } ;;
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4750 $as_echo "unsupported" >&6; } ;;
4752 CC="$CC $ac_cv_prog_cc_c89"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4756 if test "x$ac_cv_prog_cc_c89" != xno; then :
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4772 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4773 if ${am_cv_prog_cc_c_o+:} false; then :
4774 $as_echo_n "(cached) " >&6
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4787 # Make sure it works both with $CC and with simple cc.
4788 # Following AC_PROG_CC_C_O, we do the test twice because some
4789 # compilers refuse to overwrite an existing .o file with -o,
4790 # though they will create one.
4791 am_cv_prog_cc_c_o=yes
4793 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4794 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } \
4798 && test -f conftest2.$ac_objext; then
4801 am_cv_prog_cc_c_o=no
4805 rm -f core conftest*
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4809 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4810 if test "$am_cv_prog_cc_c_o" != yes; then
4811 # Losing compiler, so override with the script.
4812 # FIXME: It is wrong to rewrite CC.
4813 # But if we don't then we get into trouble of one sort or another.
4814 # A longer-term fix would be to have automake use am__CC in this case,
4815 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4816 CC="$am_aux_dir/compile $CC"
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824 DEPDIR="${am__leading_dot}deps"
4826 ac_config_commands="$ac_config_commands depfiles"
4829 am_make=${MAKE-make}
4830 cat > confinc << 'END'
4832 @echo this is the am__doit target
4835 # If we don't find an include directive, just comment out the code.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4837 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4841 # First try GNU make style include.
4842 echo "include confinc" > confmf
4843 # Ignore all kinds of additional output from 'make'.
4844 case `$am_make -s -f confmf 2> /dev/null` in #(
4845 *the\ am__doit\ target*)
4851 # Now try BSD make style include.
4852 if test "$am__include" = "#"; then
4853 echo '.include "confinc"' > confmf
4854 case `$am_make -s -f confmf 2> /dev/null` in #(
4855 *the\ am__doit\ target*)
4856 am__include=.include
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4865 $as_echo "$_am_result" >&6; }
4866 rm -f confinc confmf
4868 # Check whether --enable-dependency-tracking was given.
4869 if test "${enable_dependency_tracking+set}" = set; then :
4870 enableval=$enable_dependency_tracking;
4873 if test "x$enable_dependency_tracking" != xno; then
4874 am_depcomp="$ac_aux_dir/depcomp"
4878 if test "x$enable_dependency_tracking" != xno; then
4888 depcc="$CC" am_compiler_list=
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891 $as_echo_n "checking dependency style of $depcc... " >&6; }
4892 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896 # We make a subdir and do the tests there. Otherwise we can end up
4897 # making bogus files that we don't know about and never remove. For
4898 # instance it was reported that on HP-UX the gcc test will end up
4899 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # Copy depcomp to subdir because otherwise we won't find it if we're
4904 # using a relative directory.
4905 cp "$am_depcomp" conftest.dir
4907 # We will build objects and dependencies in a subdirectory because
4908 # it helps to detect inapplicable dependency modes. For instance
4909 # both Tru64's cc and ICC support -MD to output dependencies as a
4910 # side effect of compilation, but ICC will put the dependencies in
4911 # the current directory while Tru64 will put them in the object
4915 am_cv_CC_dependencies_compiler_type=none
4916 if test "$am_compiler_list" = ""; then
4917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4920 case " $depcc " in #(
4921 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4924 for depmode in $am_compiler_list; do
4925 # Setup a source with many dependencies, because some compilers
4926 # like to wrap large dependency lists on column 80 (with \), and
4927 # we should not choose a depcomp mode which is confused by this.
4929 # We need to recreate these files for each test, as the compiler may
4930 # overwrite some of them when testing with obscure command lines.
4931 # This happens at least with the AIX C compiler.
4933 for i in 1 2 3 4 5 6; do
4934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4935 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4936 # Solaris 10 /bin/sh.
4937 echo '/* dummy */' > sub/conftst$i.h
4939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4941 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4942 # mode. It turns out that the SunPro C++ compiler does not properly
4943 # handle '-M -o', and we need to detect this. Also, some Intel
4944 # versions had trouble with output in subdirs.
4945 am__obj=sub/conftest.${OBJEXT-o}
4946 am__minus_obj="-o $am__obj"
4949 # This depmode causes a compiler race in universal mode.
4950 test "$am__universal" = false || continue
4953 # After this tag, mechanisms are not by side-effect, so they'll
4954 # only be used when explicitly requested.
4955 if test "x$enable_dependency_tracking" = xyes; then
4961 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4962 # This compiler won't grok '-c -o', but also, the minuso test has
4963 # not run yet. These depmodes are late enough in the game, and
4964 # so weak that their functioning should not be impacted.
4965 am__obj=conftest.${OBJEXT-o}
4970 if depmode=$depmode \
4971 source=sub/conftest.c object=$am__obj \
4972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4974 >/dev/null 2>conftest.err &&
4975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979 # icc doesn't choke on unknown options, it will just issue warnings
4980 # or remarks (even with -Werror). So we grep stderr for any message
4981 # that says an option was ignored or not supported.
4982 # When given -MP, icc 7.0 and 7.1 complain thusly:
4983 # icc: Command line warning: ignoring option '-M'; no argument required
4984 # The diagnosis changed in icc 8.0:
4985 # icc: Command line remark: option '-MP' not supported
4986 if (grep 'ignoring option' conftest.err ||
4987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988 am_cv_CC_dependencies_compiler_type=$depmode
4997 am_cv_CC_dependencies_compiler_type=none
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5006 test "x$enable_dependency_tracking" != xno \
5007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5009 am__fastdepCC_FALSE='#'
5011 am__fastdepCC_TRUE='#'
5012 am__fastdepCC_FALSE=
5017 for ac_prog in 'bison -y' byacc
5019 # Extract the first word of "$ac_prog", so it can be a program name with args.
5020 set dummy $ac_prog; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_YACC+:} false; then :
5024 $as_echo_n "(cached) " >&6
5026 if test -n "$YACC"; then
5027 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_YACC="$ac_prog"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 YACC=$ac_cv_prog_YACC
5047 if test -n "$YACC"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5049 $as_echo "$YACC" >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5056 test -n "$YACC" && break
5058 test -n "$YACC" || YACC="yacc"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5063 $as_echo_n "checking whether to use Java... " >&6; }
5064 # Check whether --enable-java was given.
5065 if test "${enable_java+set}" = set; then :
5066 enableval=$enable_java; JAVA_CHOICE="$enableval"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5072 $as_echo "$JAVA_CHOICE" >&6; }
5073 if test "$JAVA_CHOICE" = yes; then
5074 # Check whether --enable-native-java was given.
5075 if test "${enable_native_java+set}" = set; then :
5076 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5090 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5091 # On Suns, sometimes $CPP names a directory.
5092 if test -n "$CPP" && test -d "$CPP"; then
5095 if test -z "$CPP"; then
5096 if ${ac_cv_prog_CPP+:} false; then :
5097 $as_echo_n "(cached) " >&6
5099 # Double quotes because CPP needs to be expanded
5100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5103 for ac_c_preproc_warn_flag in '' yes
5105 # Use a header file that comes with gcc, so configuring glibc
5106 # with a fresh cross-compiler works.
5107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108 # <limits.h> exists even on freestanding compilers.
5109 # On the NeXT, cc -E runs the code through the compiler's parser,
5110 # not just through cpp. "Syntax error" is here to catch this case.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5114 # include <limits.h>
5116 # include <assert.h>
5120 if ac_fn_c_try_cpp "$LINENO"; then :
5123 # Broken: fails on valid input.
5126 rm -f conftest.err conftest.i conftest.$ac_ext
5128 # OK, works on sane cases. Now check whether nonexistent headers
5129 # can be detected and how.
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 #include <ac_nonexistent.h>
5134 if ac_fn_c_try_cpp "$LINENO"; then :
5135 # Broken: success on invalid input.
5138 # Passes both tests.
5142 rm -f conftest.err conftest.i conftest.$ac_ext
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.i conftest.err conftest.$ac_ext
5147 if $ac_preproc_ok; then :
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5160 $as_echo "$CPP" >&6; }
5162 for ac_c_preproc_warn_flag in '' yes
5164 # Use a header file that comes with gcc, so configuring glibc
5165 # with a fresh cross-compiler works.
5166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167 # <limits.h> exists even on freestanding compilers.
5168 # On the NeXT, cc -E runs the code through the compiler's parser,
5169 # not just through cpp. "Syntax error" is here to catch this case.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5173 # include <limits.h>
5175 # include <assert.h>
5179 if ac_fn_c_try_cpp "$LINENO"; then :
5182 # Broken: fails on valid input.
5185 rm -f conftest.err conftest.i conftest.$ac_ext
5187 # OK, works on sane cases. Now check whether nonexistent headers
5188 # can be detected and how.
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <ac_nonexistent.h>
5193 if ac_fn_c_try_cpp "$LINENO"; then :
5194 # Broken: success on invalid input.
5197 # Passes both tests.
5201 rm -f conftest.err conftest.i conftest.$ac_ext
5204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205 rm -f conftest.i conftest.err conftest.$ac_ext
5206 if $ac_preproc_ok; then :
5209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5211 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5212 See \`config.log' for more details" "$LINENO" 5; }
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5223 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5224 if ${ac_cv_path_GREP+:} false; then :
5225 $as_echo_n "(cached) " >&6
5227 if test -z "$GREP"; then
5228 ac_path_GREP_found=false
5229 # Loop through the user's path and test for each of PROGNAME-LIST
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5234 test -z "$as_dir" && as_dir=.
5235 for ac_prog in grep ggrep; do
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5238 as_fn_executable_p "$ac_path_GREP" || continue
5239 # Check for GNU ac_path_GREP and select it if it is found.
5240 # Check for GNU $ac_path_GREP
5241 case `"$ac_path_GREP" --version 2>&1` in
5243 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5246 $as_echo_n 0123456789 >"conftest.in"
5249 cat "conftest.in" "conftest.in" >"conftest.tmp"
5250 mv "conftest.tmp" "conftest.in"
5251 cp "conftest.in" "conftest.nl"
5252 $as_echo 'GREP' >> "conftest.nl"
5253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5255 as_fn_arith $ac_count + 1 && ac_count=$as_val
5256 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5257 # Best one so far, save it but keep looking for a better one
5258 ac_cv_path_GREP="$ac_path_GREP"
5259 ac_path_GREP_max=$ac_count
5261 # 10*(2^10) chars as input seems more than enough
5262 test $ac_count -gt 10 && break
5264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 $ac_path_GREP_found && break 3
5272 if test -z "$ac_cv_path_GREP"; then
5273 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5276 ac_cv_path_GREP=$GREP
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5281 $as_echo "$ac_cv_path_GREP" >&6; }
5282 GREP="$ac_cv_path_GREP"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5286 $as_echo_n "checking for egrep... " >&6; }
5287 if ${ac_cv_path_EGREP+:} false; then :
5288 $as_echo_n "(cached) " >&6
5290 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5291 then ac_cv_path_EGREP="$GREP -E"
5293 if test -z "$EGREP"; then
5294 ac_path_EGREP_found=false
5295 # Loop through the user's path and test for each of PROGNAME-LIST
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300 test -z "$as_dir" && as_dir=.
5301 for ac_prog in egrep; do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5304 as_fn_executable_p "$ac_path_EGREP" || continue
5305 # Check for GNU ac_path_EGREP and select it if it is found.
5306 # Check for GNU $ac_path_EGREP
5307 case `"$ac_path_EGREP" --version 2>&1` in
5309 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5312 $as_echo_n 0123456789 >"conftest.in"
5315 cat "conftest.in" "conftest.in" >"conftest.tmp"
5316 mv "conftest.tmp" "conftest.in"
5317 cp "conftest.in" "conftest.nl"
5318 $as_echo 'EGREP' >> "conftest.nl"
5319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321 as_fn_arith $ac_count + 1 && ac_count=$as_val
5322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5323 # Best one so far, save it but keep looking for a better one
5324 ac_cv_path_EGREP="$ac_path_EGREP"
5325 ac_path_EGREP_max=$ac_count
5327 # 10*(2^10) chars as input seems more than enough
5328 test $ac_count -gt 10 && break
5330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333 $ac_path_EGREP_found && break 3
5338 if test -z "$ac_cv_path_EGREP"; then
5339 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5342 ac_cv_path_EGREP=$EGREP
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5348 $as_echo "$ac_cv_path_EGREP" >&6; }
5349 EGREP="$ac_cv_path_EGREP"
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5357 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "yes" >/dev/null 2>&1; then :
5364 CLASSPATH_SEPARATOR=';'
5366 CLASSPATH_SEPARATOR=':'
5371 test -n "$source_version" || {
5372 as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
5375 case "$source_version" in
5376 1.3) goodcode='class conftest {}'
5377 failcode='class conftestfail { static { assert(true); } }' ;;
5378 1.4) goodcode='class conftest { static { assert(true); } }'
5379 failcode='class conftestfail<T> { T foo() { return null; } }' ;;
5380 1.5) goodcode='class conftest<T> { T foo() { return null; } }'
5381 failcode='class conftestfail syntax error' ;;
5382 *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
5384 case "$target_version" in
5385 1.1) cfversion=45 ;;
5386 1.2) cfversion=46 ;;
5387 1.3) cfversion=47 ;;
5388 1.4) cfversion=48 ;;
5389 1.5) cfversion=49 ;;
5390 1.6) cfversion=50 ;;
5391 *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
5393 # Function to output the classfile version of a file (8th byte) in decimal.
5394 if od -A x < /dev/null >/dev/null 2>/dev/null; then
5396 func_classfile_version ()
5398 od -A n -t d1 -j 7 -N 1 "$1"
5402 func_classfile_version ()
5404 dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
5409 $as_echo_n "checking for Java compiler... " >&6; }
5416 cat > conftestlib.java <<EOF
5417 public class conftestlib {
5418 public static void main (String[] args) {
5422 echo "$goodcode" > conftest.java
5423 echo "$failcode" > conftestfail.java
5424 if test -n "$JAVAC"; then
5425 if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
5426 if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5427 rm -f conftest.class
5428 if { echo "$as_me:5428: $JAVAC -d . conftest.java" >&5
5429 $JAVAC -d . conftest.java >&5 2>&1
5431 && test -f conftest.class \
5432 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5433 rm -f conftest.class
5434 rm -f conftestfail.class
5435 if { echo "$as_me:5435: $JAVAC -fsource=$source_version -d . conftest.java" >&5
5436 $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
5438 && test -f conftest.class \
5439 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5440 && { echo "$as_me:5440: $JAVAC -d . conftestfail.java" >&5
5441 $JAVAC -d . conftestfail.java >&5 2>&1
5443 && test -f conftestfail.class \
5444 && ! { echo "$as_me:5444: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
5445 $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5447 CONF_JAVAC="$JAVAC -fsource=$source_version"
5456 rm -f conftest.class
5457 rm -f conftestfail.class
5458 if { echo "$as_me:5458: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5459 $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5461 && test -f conftest.class \
5462 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5463 CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
5469 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5470 rm -f conftest.class
5471 if { echo "$as_me:5471: $JAVAC -d . conftest.java" >&5
5472 $JAVAC -d . conftest.java >&5 2>&1
5474 && test -f conftest.class; then
5480 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5482 rm -f conftest.class
5483 if { echo "$as_me:5483: $JAVAC -d . conftest.java" >&5
5484 $JAVAC -d . conftest.java >&5 2>&1
5486 && test -f conftest.class; then
5489 javac_noassert_works=
5490 rm -f conftest.class
5491 if { echo "$as_me:5491: $JAVAC -fno-assert -d . conftest.java" >&5
5492 $JAVAC -fno-assert -d . conftest.java >&5 2>&1
5494 && test -f conftest.class; then
5495 javac_noassert_works=1
5497 if test -n "$javac_works" && test -n "$javac_noassert_works"; then
5498 rm -f conftestfail.class
5499 if { echo "$as_me:5499: $JAVAC -d . conftestfail.java" >&5
5500 $JAVAC -d . conftestfail.java >&5 2>&1
5502 && test -f conftestfail.class \
5503 && ! { echo "$as_me:5503: $JAVAC -fno-assert -d . conftestfail.java" >&5
5504 $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
5509 if test -n "$javac_works"; then
5514 if test -n "$javac_noassert_works"; then
5515 CONF_JAVAC="$JAVAC -fno-assert"
5524 rm -f conftest.class
5525 if { echo "$as_me:5525: $JAVAC -d . conftest.java" >&5
5526 $JAVAC -d . conftest.java >&5 2>&1
5528 && test -f conftest.class \
5529 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5530 rm -f conftest.class
5531 rm -f conftestfail.class
5532 if { echo "$as_me:5532: $JAVAC -source $source_version -d . conftest.java" >&5
5533 $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
5535 && test -f conftest.class \
5536 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5537 && { echo "$as_me:5537: $JAVAC -d . conftestfail.java" >&5
5538 $JAVAC -d . conftestfail.java >&5 2>&1
5540 && test -f conftestfail.class \
5541 && ! { echo "$as_me:5541: $JAVAC -source $source_version -d . conftestfail.java" >&5
5542 $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
5544 CONF_JAVAC="$JAVAC -source $source_version"
5553 rm -f conftest.class
5554 if { echo "$as_me:5554: $JAVAC -target $target_version -d . conftest.java" >&5
5555 $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
5557 && test -f conftest.class \
5558 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5559 rm -f conftest.class
5560 rm -f conftestfail.class
5561 if { echo "$as_me:5561: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5562 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5564 && test -f conftest.class \
5565 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5566 && { echo "$as_me:5566: $JAVAC -target $target_version -d . conftestfail.java" >&5
5567 $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
5569 && test -f conftestfail.class \
5570 && ! { echo "$as_me:5570: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
5571 $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5573 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5577 CONF_JAVAC="$JAVAC -target $target_version"
5582 rm -f conftest.class
5583 if { echo "$as_me:5583: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5584 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5586 && test -f conftest.class \
5587 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5588 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5596 if test -z "$HAVE_JAVACOMP"; then
5597 # Extract the first word of "gcj", so it can be a program name with args.
5598 set dummy gcj; ac_word=$2
5600 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
5601 $as_echo_n "(cached) " >&6
5603 if test -n "$HAVE_GCJ_IN_PATH"; then
5604 ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
5624 if test -n "$HAVE_GCJ_IN_PATH"; then
5631 # Extract the first word of "javac", so it can be a program name with args.
5632 set dummy javac; ac_word=$2
5634 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
5635 $as_echo_n "(cached) " >&6
5637 if test -n "$HAVE_JAVAC_IN_PATH"; then
5638 ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
5658 if test -n "$HAVE_JAVAC_IN_PATH"; then
5665 # Extract the first word of "jikes", so it can be a program name with args.
5666 set dummy jikes; ac_word=$2
5668 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 if test -n "$HAVE_JIKES_IN_PATH"; then
5672 ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
5692 if test -n "$HAVE_JIKES_IN_PATH"; then
5699 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
5700 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
5701 if { echo "$as_me:5701: gcj -C -d . conftestlib.java" >&5
5702 gcj -C -d . conftestlib.java >&5 2>&1
5704 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5705 rm -f conftest.class
5706 if { echo "$as_me:5706: gcj -C -d . conftest.java" >&5
5707 gcj -C -d . conftest.java >&5 2>&1
5709 && test -f conftest.class \
5710 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5711 rm -f conftest.class
5712 rm -f conftestfail.class
5713 if { echo "$as_me:5713: gcj -C -fsource=$source_version -d . conftest.java" >&5
5714 gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
5716 && test -f conftest.class \
5717 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5718 && { echo "$as_me:5718: gcj -C -d . conftestfail.java" >&5
5719 gcj -C -d . conftestfail.java >&5 2>&1
5721 && test -f conftestfail.class \
5722 && ! { echo "$as_me:5722: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
5723 gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5725 CONF_JAVAC="gcj -C -fsource=$source_version"
5734 rm -f conftest.class
5735 rm -f conftestfail.class
5736 if { echo "$as_me:5736: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5737 gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5739 && test -f conftest.class \
5740 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5741 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
5747 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5748 rm -f conftest.class
5749 if { echo "$as_me:5749: gcj -C -d . conftest.java" >&5
5750 gcj -C -d . conftest.java >&5 2>&1
5752 && test -f conftest.class; then
5758 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5759 rm -f conftest.class
5760 if { echo "$as_me:5760: gcj -C -fno-assert -d . conftest.java" >&5
5761 gcj -C -fno-assert -d . conftest.java >&5 2>&1
5763 && test -f conftest.class; then
5764 CONF_JAVAC="gcj -C -fno-assert"
5768 rm -f conftest.class
5769 if { echo "$as_me:5769: gcj -C -d . conftest.java" >&5
5770 gcj -C -d . conftest.java >&5 2>&1
5772 && test -f conftest.class; then
5784 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
5785 if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
5786 && ( 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
5787 rm -f conftest.class
5788 if { echo "$as_me:5788: javac -d . conftest.java" >&5
5789 javac -d . conftest.java >&5 2>&1
5791 && test -f conftest.class \
5792 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5793 rm -f conftest.class
5794 rm -f conftestfail.class
5795 if { echo "$as_me:5795: javac -source $source_version -d . conftest.java" >&5
5796 javac -source "$source_version" -d . conftest.java >&5 2>&1
5798 && test -f conftest.class \
5799 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5800 && { echo "$as_me:5800: javac -d . conftestfail.java" >&5
5801 javac -d . conftestfail.java >&5 2>&1
5803 && test -f conftestfail.class \
5804 && ! { echo "$as_me:5804: javac -source $source_version -d . conftestfail.java" >&5
5805 javac -source "$source_version" -d . conftestfail.java >&5 2>&1
5807 CONF_JAVAC="javac -source $source_version"
5816 rm -f conftest.class
5817 if { echo "$as_me:5817: javac -target $target_version -d . conftest.java" >&5
5818 javac -target "$target_version" -d . conftest.java >&5 2>&1
5820 && test -f conftest.class \
5821 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5822 rm -f conftest.class
5823 rm -f conftestfail.class
5824 if { echo "$as_me:5824: javac -target $target_version -source $source_version -d . conftest.java" >&5
5825 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5827 && test -f conftest.class \
5828 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5829 && { echo "$as_me:5829: javac -target $target_version -d . conftestfail.java" >&5
5830 javac -target "$target_version" -d . conftestfail.java >&5 2>&1
5832 && test -f conftestfail.class \
5833 && ! { echo "$as_me:5833: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
5834 javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5836 CONF_JAVAC="javac -target $target_version -source $source_version"
5840 CONF_JAVAC="javac -target $target_version"
5845 rm -f conftest.class
5846 if { echo "$as_me:5846: javac -target $target_version -source $source_version -d . conftest.java" >&5
5847 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5849 && test -f conftest.class \
5850 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5851 CONF_JAVAC="javac -target $target_version -source $source_version"
5859 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
5860 if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
5862 # See if the existing CLASSPATH is sufficient to make jikes work.
5864 jikes conftestlib.java >&5 2>&1
5866 rm -f conftestlib.class
5869 if test "$source_version" = 1.3; then
5877 rm -f conftest*.java conftest*.class
5878 if test -n "$HAVE_JAVACOMP"; then
5879 ac_result="$CONF_JAVAC"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5884 $as_echo "$ac_result" >&6; }
5893 # Extract the first word of "jar", so it can be a program name with args.
5894 set dummy jar; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_JAR+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$JAR"; then
5901 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_JAR="jar"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 if test -n "$JAR"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5923 $as_echo "$JAR" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5930 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
5939 $as_echo_n "checking for preferred C# implementation... " >&6; }
5940 # Check whether --enable-csharp was given.
5941 if test "${enable_csharp+set}" = set; then :
5942 enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
5949 $as_echo "$CSHARP_CHOICE" >&6; }
5950 case "$CSHARP_CHOICE" in
5953 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
5958 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
5966 $as_echo_n "checking for C# compiler... " >&6; }
5968 # Extract the first word of "cscc", so it can be a program name with args.
5969 set dummy cscc; ac_word=$2
5971 if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then :
5972 $as_echo_n "(cached) " >&6
5974 if test -n "$HAVE_CSCC_IN_PATH"; then
5975 ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
5995 if test -n "$HAVE_CSCC_IN_PATH"; then
6002 # Extract the first word of "mcs", so it can be a program name with args.
6003 set dummy mcs; ac_word=$2
6005 if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
6006 $as_echo_n "(cached) " >&6
6008 if test -n "$HAVE_MCS_IN_PATH"; then
6009 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018 ac_cv_prog_HAVE_MCS_IN_PATH="yes"
6019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
6029 if test -n "$HAVE_MCS_IN_PATH"; then
6036 # Extract the first word of "csc", so it can be a program name with args.
6037 set dummy csc; ac_word=$2
6039 if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$HAVE_CSC_IN_PATH"; then
6043 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_HAVE_CSC_IN_PATH="yes"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
6063 if test -n "$HAVE_CSC_IN_PATH"; then
6070 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
6073 if test -n "$HAVE_CSCC_IN_PATH" \
6074 && cscc --version >/dev/null 2>/dev/null \
6076 # See if pnetlib is well installed.
6077 echo 'class ConfTest { static void Main() { } }' > conftest.cs
6078 cscc -o conftest.exe conftest.cs 2>/dev/null
6080 rm -f conftest.cs conftest.exe
6089 if test -n "$HAVE_MCS_IN_PATH" \
6090 && mcs --version >/dev/null 2>/dev/null \
6091 && mcs --version 2>/dev/null | grep Mono >/dev/null; then
6098 if test -n "$HAVE_CSC_IN_PATH" \
6099 && csc -help >/dev/null 2>/dev/null \
6100 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6114 $as_echo "$ac_result" >&6; }
6118 if test -z "${CSHARPCOMPFLAGS+set}"; then
6119 CSHARPCOMPFLAGS="-O -g"
6123 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
6130 # Make sure we can run config.sub.
6131 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6132 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6135 $as_echo_n "checking build system type... " >&6; }
6136 if ${ac_cv_build+:} false; then :
6137 $as_echo_n "(cached) " >&6
6139 ac_build_alias=$build_alias
6140 test "x$ac_build_alias" = x &&
6141 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6142 test "x$ac_build_alias" = x &&
6143 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6145 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6149 $as_echo "$ac_cv_build" >&6; }
6150 case $ac_cv_build in
6152 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6155 ac_save_IFS=$IFS; IFS='-'
6161 # Remember, the first character of IFS is used to create $*,
6162 # except with old shells:
6165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6169 $as_echo_n "checking host system type... " >&6; }
6170 if ${ac_cv_host+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 if test "x$host_alias" = x; then
6174 ac_cv_host=$ac_cv_build
6176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6177 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6182 $as_echo "$ac_cv_host" >&6; }
6185 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6188 ac_save_IFS=$IFS; IFS='-'
6194 # Remember, the first character of IFS is used to create $*,
6195 # except with old shells:
6198 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6208 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6209 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6210 $as_echo_n "(cached) " >&6
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6222 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6223 gl_cv_c_amsterdam_compiler=yes
6225 gl_cv_c_amsterdam_compiler=no
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6232 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6233 if test -z "$AR"; then
6234 if test $gl_cv_c_amsterdam_compiler = yes; then
6236 if test -z "$ARFLAGS"; then
6240 if test -n "$ac_tool_prefix"; then
6241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6242 set dummy ${ac_tool_prefix}ar; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_AR+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$AR"; then
6249 ac_cv_prog_AR="$AR" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_AR="${ac_tool_prefix}ar"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 if test -n "$AR"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6271 $as_echo "$AR" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6279 if test -z "$ac_cv_prog_AR"; then
6281 # Extract the first word of "ar", so it can be a program name with args.
6282 set dummy ar; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$ac_ct_AR"; then
6289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_ac_ct_AR="ar"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6309 if test -n "$ac_ct_AR"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6311 $as_echo "$ac_ct_AR" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6317 if test "x$ac_ct_AR" = x; then
6320 case $cross_compiling:$ac_tool_warned in
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324 ac_tool_warned=yes ;;
6332 if test -z "$ARFLAGS"; then
6337 if test -z "$ARFLAGS"; then
6343 if test -z "$RANLIB"; then
6344 if test $gl_cv_c_amsterdam_compiler = yes; then
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_RANLIB+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$RANLIB"; then
6356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 RANLIB=$ac_cv_prog_RANLIB
6376 if test -n "$RANLIB"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6378 $as_echo "$RANLIB" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6386 if test -z "$ac_cv_prog_RANLIB"; then
6387 ac_ct_RANLIB=$RANLIB
6388 # Extract the first word of "ranlib", so it can be a program name with args.
6389 set dummy ranlib; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$ac_ct_RANLIB"; then
6396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ac_ct_RANLIB="ranlib"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6416 if test -n "$ac_ct_RANLIB"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6418 $as_echo "$ac_ct_RANLIB" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6424 if test "x$ac_ct_RANLIB" = x; then
6427 case $cross_compiling:$ac_tool_warned in
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6433 RANLIB=$ac_ct_RANLIB
6436 RANLIB="$ac_cv_prog_RANLIB"
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6445 $as_echo_n "checking for ANSI C header files... " >&6; }
6446 if ${ac_cv_header_stdc+:} false; then :
6447 $as_echo_n "(cached) " >&6
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465 ac_cv_header_stdc=yes
6467 ac_cv_header_stdc=no
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 if test $ac_cv_header_stdc = yes; then
6472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6479 $EGREP "memchr" >/dev/null 2>&1; then :
6482 ac_cv_header_stdc=no
6488 if test $ac_cv_header_stdc = yes; then
6489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496 $EGREP "free" >/dev/null 2>&1; then :
6499 ac_cv_header_stdc=no
6505 if test $ac_cv_header_stdc = yes; then
6506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6507 if test "$cross_compiling" = yes; then :
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6514 #if ((' ' & 0x0FF) == 0x020)
6515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6518 # define ISLOWER(c) \
6519 (('a' <= (c) && (c) <= 'i') \
6520 || ('j' <= (c) && (c) <= 'r') \
6521 || ('s' <= (c) && (c) <= 'z'))
6522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6530 for (i = 0; i < 256; i++)
6531 if (XOR (islower (i), ISLOWER (i))
6532 || toupper (i) != TOUPPER (i))
6537 if ac_fn_c_try_run "$LINENO"; then :
6540 ac_cv_header_stdc=no
6542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6543 conftest.$ac_objext conftest.beam conftest.$ac_ext
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6549 $as_echo "$ac_cv_header_stdc" >&6; }
6550 if test $ac_cv_header_stdc = yes; then
6552 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6558 inttypes.h stdint.h unistd.h
6560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6564 cat >>confdefs.h <<_ACEOF
6565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6574 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6575 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6582 if test "$MINIX" = yes; then
6584 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6587 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6590 $as_echo "#define _MINIX 1" >>confdefs.h
6593 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6600 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6601 $as_echo_n "(cached) " >&6
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6606 # define __EXTENSIONS__ 1
6607 $ac_includes_default
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 ac_cv_safe_to_define___extensions__=yes
6619 ac_cv_safe_to_define___extensions__=no
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6625 test $ac_cv_safe_to_define___extensions__ = yes &&
6626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6630 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6634 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6636 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6639 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6640 if ${ac_cv_should_define__xopen_source+:} false; then :
6641 $as_echo_n "(cached) " >&6
6643 ac_cv_should_define__xopen_source=no
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6657 if ac_fn_c_try_compile "$LINENO"; then :
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6663 #define _XOPEN_SOURCE 500
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675 ac_cv_should_define__xopen_source=yes
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6682 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6683 test $ac_cv_should_define__xopen_source = yes &&
6684 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6693 # Check whether --enable-largefile was given.
6694 if test "${enable_largefile+set}" = set; then :
6695 enableval=$enable_largefile;
6698 if test "$enable_largefile" != no; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6701 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6702 if ${ac_cv_sys_largefile_CC+:} false; then :
6703 $as_echo_n "(cached) " >&6
6705 ac_cv_sys_largefile_CC=no
6706 if test "$GCC" != yes; then
6709 # IRIX 6.2 and later do not support large files by default,
6710 # so use the C compiler's -n32 option if that helps.
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #include <sys/types.h>
6714 /* Check that off_t can represent 2**63 - 1 correctly.
6715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6716 since some C++ compilers masquerading as C compilers
6717 incorrectly reject 9223372036854775807. */
6718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6720 && LARGE_OFF_T % 2147483647 == 1)
6730 if ac_fn_c_try_compile "$LINENO"; then :
6733 rm -f core conftest.err conftest.$ac_objext
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736 ac_cv_sys_largefile_CC=' -n32'; break
6738 rm -f core conftest.err conftest.$ac_objext
6742 rm -f conftest.$ac_ext
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6746 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6747 if test "$ac_cv_sys_largefile_CC" != no; then
6748 CC=$CC$ac_cv_sys_largefile_CC
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6752 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6753 if ${ac_cv_sys_file_offset_bits+:} false; then :
6754 $as_echo_n "(cached) " >&6
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 #include <sys/types.h>
6760 /* Check that off_t can represent 2**63 - 1 correctly.
6761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6762 since some C++ compilers masquerading as C compilers
6763 incorrectly reject 9223372036854775807. */
6764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6766 && LARGE_OFF_T % 2147483647 == 1)
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 ac_cv_sys_file_offset_bits=no; break
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #define _FILE_OFFSET_BITS 64
6783 #include <sys/types.h>
6784 /* Check that off_t can represent 2**63 - 1 correctly.
6785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6786 since some C++ compilers masquerading as C compilers
6787 incorrectly reject 9223372036854775807. */
6788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6790 && LARGE_OFF_T % 2147483647 == 1)
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 ac_cv_sys_file_offset_bits=64; break
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 ac_cv_sys_file_offset_bits=unknown
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6809 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6810 case $ac_cv_sys_file_offset_bits in #(
6813 cat >>confdefs.h <<_ACEOF
6814 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6819 if test $ac_cv_sys_file_offset_bits = unknown; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6821 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6822 if ${ac_cv_sys_large_files+:} false; then :
6823 $as_echo_n "(cached) " >&6
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6829 /* Check that off_t can represent 2**63 - 1 correctly.
6830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6831 since some C++ compilers masquerading as C compilers
6832 incorrectly reject 9223372036854775807. */
6833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6835 && LARGE_OFF_T % 2147483647 == 1)
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 ac_cv_sys_large_files=no; break
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #define _LARGE_FILES 1
6852 #include <sys/types.h>
6853 /* Check that off_t can represent 2**63 - 1 correctly.
6854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6855 since some C++ compilers masquerading as C compilers
6856 incorrectly reject 9223372036854775807. */
6857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6859 && LARGE_OFF_T % 2147483647 == 1)
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870 ac_cv_sys_large_files=1; break
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 ac_cv_sys_large_files=unknown
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6878 $as_echo "$ac_cv_sys_large_files" >&6; }
6879 case $ac_cv_sys_large_files in #(
6882 cat >>confdefs.h <<_ACEOF
6883 #define _LARGE_FILES $ac_cv_sys_large_files
6891 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6900 # Check whether --enable-threads was given.
6901 if test "${enable_threads+set}" = set; then :
6902 enableval=$enable_threads; gl_use_threads=$enableval
6904 if test -n "$gl_use_threads_default"; then
6905 gl_use_threads="$gl_use_threads_default"
6908 osf*) gl_use_threads=no ;;
6911 1.[0-5].*) gl_use_threads=no ;;
6912 *) gl_use_threads=yes ;;
6915 *) gl_use_threads=yes ;;
6921 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6922 # For using <pthread.h>:
6925 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6926 # groks <pthread.h>. cc also understands the flag -pthread, but
6927 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6928 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6929 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6930 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6931 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6934 # Some systems optimize for single-threaded programs by default, and
6935 # need special flags to disable these optimizations. For example, the
6936 # definition of 'errno' in <errno.h>.
6938 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6939 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6946 # Code from module alloca-opt:
6947 # Code from module allocator:
6948 # Code from module ansi-c++-opt:
6949 # Code from module areadlink:
6950 # Code from module atexit:
6951 # Code from module basename:
6952 # Code from module c-ctype:
6953 # Code from module c-strcase:
6954 # Code from module canonicalize-lgpl:
6955 # Code from module careadlinkat:
6956 # Code from module closeout:
6957 # Code from module configmake:
6958 # Code from module csharpcomp-script:
6959 # Code from module dosname:
6960 # Code from module double-slash-root:
6961 # Code from module environ:
6962 # Code from module errno:
6963 # Code from module error:
6964 # Code from module extensions:
6966 # Code from module extern-inline:
6967 # Code from module fwriteerror:
6968 # Code from module getopt-gnu:
6969 # Code from module getopt-posix:
6970 # Code from module gettext-h:
6971 # Code from module gettext-runtime-misc:
6972 # Code from module gperf:
6973 # Code from module havelib:
6974 # Code from module iconv:
6975 # Code from module iconv-h:
6976 # Code from module iconv_open:
6977 # Code from module include_next:
6978 # Code from module inline:
6979 # Code from module intprops:
6980 # Code from module iswblank:
6981 # Code from module java:
6982 # Code from module javacomp-script:
6983 # Code from module largefile:
6985 # Code from module localcharset:
6986 # Code from module locale:
6987 # Code from module localename:
6988 # Code from module lock:
6989 # Code from module lstat:
6990 # Code from module malloca:
6991 # Code from module mbchar:
6992 # Code from module mbiter:
6993 # Code from module mbrtowc:
6994 # Code from module mbsinit:
6995 # Code from module mbslen:
6996 # Code from module mbsstr:
6997 # Code from module mbuiter:
6998 # Code from module memchr:
6999 # Code from module memmove:
7000 # Code from module msvc-inval:
7001 # Code from module msvc-nothrow:
7002 # Code from module multiarch:
7003 # Code from module nocrash:
7004 # Code from module pathmax:
7005 # Code from module progname:
7006 # Code from module propername:
7007 # Code from module raise:
7008 # Code from module readlink:
7009 # Code from module relocatable-prog:
7010 # Code from module relocatable-prog-wrapper:
7011 # Code from module setlocale:
7012 # Code from module signal-h:
7013 # Code from module sigpipe:
7014 # Code from module sigprocmask:
7015 # Code from module snippet/_Noreturn:
7016 # Code from module snippet/arg-nonnull:
7017 # Code from module snippet/c++defs:
7018 # Code from module snippet/unused-parameter:
7019 # Code from module snippet/warn-on-use:
7020 # Code from module ssize_t:
7021 # Code from module stat:
7022 # Code from module stdbool:
7023 # Code from module stddef:
7024 # Code from module stdint:
7025 # Code from module stdio:
7026 # Code from module stdlib:
7027 # Code from module streq:
7028 # Code from module strerror:
7029 # Code from module strerror-override:
7030 # Code from module striconv:
7031 # Code from module string:
7032 # Code from module strnlen:
7033 # Code from module strnlen1:
7034 # Code from module strtoul:
7035 # Code from module sys_stat:
7036 # Code from module sys_types:
7037 # Code from module threadlib:
7041 # Code from module time:
7042 # Code from module trim:
7043 # Code from module unistd:
7044 # Code from module unistr/base:
7045 # Code from module unistr/u8-mbtoucr:
7046 # Code from module unistr/u8-uctomb:
7047 # Code from module unitypes:
7048 # Code from module uniwidth/base:
7049 # Code from module uniwidth/width:
7050 # Code from module unlocked-io:
7051 # Code from module verify:
7052 # Code from module wchar:
7053 # Code from module wctype-h:
7054 # Code from module wcwidth:
7055 # Code from module xalloc:
7056 # Code from module xreadlink:
7057 # Code from module xstriconv:
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
7066 $as_echo_n "checking for auto-import of symbols... " >&6; }
7067 if ${gl_cv_ld_autoimport+:} false; then :
7068 $as_echo_n "(cached) " >&6
7071 gl_save_LDFLAGS="$LDFLAGS"
7072 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7084 if ac_fn_c_try_link "$LINENO"; then :
7085 gl_cv_ld_autoimport=yes
7087 gl_cv_ld_autoimport=no
7089 rm -f core conftest.err conftest.$ac_objext \
7090 conftest$ac_exeext conftest.$ac_ext
7091 LDFLAGS="$gl_save_LDFLAGS"
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
7095 $as_echo "$gl_cv_ld_autoimport" >&6; }
7096 if test $gl_cv_ld_autoimport = yes; then
7097 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7106 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7111 macro_version='2.4.2'
7112 macro_revision='1.3337'
7126 ltmain="$ac_aux_dir/ltmain.sh"
7128 # Backslashify metacharacters that are still active within
7129 # double-quoted strings.
7130 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7132 # Same as above, but do not quote variable references.
7133 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7135 # Sed substitution to delay expansion of an escaped shell variable in a
7136 # double_quote_subst'ed string.
7137 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7139 # Sed substitution to delay expansion of an escaped single quote.
7140 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7142 # Sed substitution to avoid accidental globbing in evaled expressions
7143 no_glob_subst='s/\*/\\\*/g'
7145 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7146 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7147 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7150 $as_echo_n "checking how to print strings... " >&6; }
7151 # Test print first, because it will be a builtin if present.
7152 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7153 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7155 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7158 # Use this function as a fallback that always works.
7159 func_fallback_echo ()
7161 eval 'cat <<_LTECHO_EOF
7165 ECHO='func_fallback_echo'
7168 # func_echo_all arg...
7169 # Invoke $ECHO with all args, space-separated.
7176 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7177 $as_echo "printf" >&6; } ;;
7178 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7179 $as_echo "print -r" >&6; } ;;
7180 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7181 $as_echo "cat" >&6; } ;;
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7198 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7199 if ${ac_cv_path_SED+:} false; then :
7200 $as_echo_n "(cached) " >&6
7202 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7203 for ac_i in 1 2 3 4 5 6 7; do
7204 ac_script="$ac_script$as_nl$ac_script"
7206 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7207 { ac_script=; unset ac_script;}
7208 if test -z "$SED"; then
7209 ac_path_SED_found=false
7210 # Loop through the user's path and test for each of PROGNAME-LIST
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_prog in sed gsed; do
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7219 as_fn_executable_p "$ac_path_SED" || continue
7220 # Check for GNU ac_path_SED and select it if it is found.
7221 # Check for GNU $ac_path_SED
7222 case `"$ac_path_SED" --version 2>&1` in
7224 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7227 $as_echo_n 0123456789 >"conftest.in"
7230 cat "conftest.in" "conftest.in" >"conftest.tmp"
7231 mv "conftest.tmp" "conftest.in"
7232 cp "conftest.in" "conftest.nl"
7233 $as_echo '' >> "conftest.nl"
7234 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7236 as_fn_arith $ac_count + 1 && ac_count=$as_val
7237 if test $ac_count -gt ${ac_path_SED_max-0}; then
7238 # Best one so far, save it but keep looking for a better one
7239 ac_cv_path_SED="$ac_path_SED"
7240 ac_path_SED_max=$ac_count
7242 # 10*(2^10) chars as input seems more than enough
7243 test $ac_count -gt 10 && break
7245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7248 $ac_path_SED_found && break 3
7253 if test -z "$ac_cv_path_SED"; then
7254 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7262 $as_echo "$ac_cv_path_SED" >&6; }
7263 SED="$ac_cv_path_SED"
7266 test -z "$SED" && SED=sed
7267 Xsed="$SED -e 1s/^X//"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7280 $as_echo_n "checking for fgrep... " >&6; }
7281 if ${ac_cv_path_FGREP+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7285 then ac_cv_path_FGREP="$GREP -F"
7287 if test -z "$FGREP"; then
7288 ac_path_FGREP_found=false
7289 # Loop through the user's path and test for each of PROGNAME-LIST
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7294 test -z "$as_dir" && as_dir=.
7295 for ac_prog in fgrep; do
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7298 as_fn_executable_p "$ac_path_FGREP" || continue
7299 # Check for GNU ac_path_FGREP and select it if it is found.
7300 # Check for GNU $ac_path_FGREP
7301 case `"$ac_path_FGREP" --version 2>&1` in
7303 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7306 $as_echo_n 0123456789 >"conftest.in"
7309 cat "conftest.in" "conftest.in" >"conftest.tmp"
7310 mv "conftest.tmp" "conftest.in"
7311 cp "conftest.in" "conftest.nl"
7312 $as_echo 'FGREP' >> "conftest.nl"
7313 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7315 as_fn_arith $ac_count + 1 && ac_count=$as_val
7316 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7317 # Best one so far, save it but keep looking for a better one
7318 ac_cv_path_FGREP="$ac_path_FGREP"
7319 ac_path_FGREP_max=$ac_count
7321 # 10*(2^10) chars as input seems more than enough
7322 test $ac_count -gt 10 && break
7324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7327 $ac_path_FGREP_found && break 3
7332 if test -z "$ac_cv_path_FGREP"; then
7333 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7336 ac_cv_path_FGREP=$FGREP
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7342 $as_echo "$ac_cv_path_FGREP" >&6; }
7343 FGREP="$ac_cv_path_FGREP"
7346 test -z "$GREP" && GREP=grep
7366 # Check whether --with-gnu-ld was given.
7367 if test "${with_gnu_ld+set}" = set; then :
7368 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7374 if test "$GCC" = yes; then
7375 # Check if gcc -print-prog-name=ld gives a path.
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7377 $as_echo_n "checking for ld used by $CC... " >&6; }
7380 # gcc leaves a trailing carriage return which upsets mingw
7381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7386 # Accept absolute paths.
7388 re_direlt='/[^/][^/]*/\.\./'
7389 # Canonicalize the pathname of ld
7390 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7391 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7392 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7394 test -z "$LD" && LD="$ac_prog"
7397 # If it fails, then pretend we aren't using GCC.
7401 # If it is relative, then search for the first ld in PATH.
7405 elif test "$with_gnu_ld" = yes; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7407 $as_echo_n "checking for GNU ld... " >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7410 $as_echo_n "checking for non-GNU ld... " >&6; }
7412 if ${lt_cv_path_LD+:} false; then :
7413 $as_echo_n "(cached) " >&6
7415 if test -z "$LD"; then
7416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7417 for ac_dir in $PATH; do
7419 test -z "$ac_dir" && ac_dir=.
7420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7421 lt_cv_path_LD="$ac_dir/$ac_prog"
7422 # Check to see if the program is GNU ld. I'd rather use --version,
7423 # but apparently some variants of GNU ld only accept -v.
7424 # Break only if it was the GNU/non-GNU ld that we prefer.
7425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7426 *GNU* | *'with BFD'*)
7427 test "$with_gnu_ld" != no && break
7430 test "$with_gnu_ld" != yes && break
7437 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7442 if test -n "$LD"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7444 $as_echo "$LD" >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7449 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7452 if ${lt_cv_prog_gnu_ld+:} false; then :
7453 $as_echo_n "(cached) " >&6
7455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7456 case `$LD -v 2>&1 </dev/null` in
7457 *GNU* | *'with BFD'*)
7458 lt_cv_prog_gnu_ld=yes
7461 lt_cv_prog_gnu_ld=no
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7466 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7467 with_gnu_ld=$lt_cv_prog_gnu_ld
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7478 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7479 if ${lt_cv_path_NM+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 if test -n "$NM"; then
7483 # Let the user override the test.
7486 lt_nm_to_check="${ac_tool_prefix}nm"
7487 if test -n "$ac_tool_prefix" \
7488 && { test "$build" = "$host" \
7489 || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
7491 lt_nm_to_check="$lt_nm_to_check nm"
7493 for lt_tmp_nm in $lt_nm_to_check; do
7494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7497 test -z "$ac_dir" && ac_dir=.
7498 tmp_nm="$ac_dir/$lt_tmp_nm"
7499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7500 # Check to see if the nm accepts a BSD-compat flag.
7501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7502 # nm: unknown option "B" ignored
7503 # Tru64's nm complains that /dev/null is an invalid object file
7504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7505 */dev/null* | *'Invalid file or object type'*)
7506 lt_cv_path_NM="$tmp_nm -B"
7510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7512 lt_cv_path_NM="$tmp_nm -p"
7516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7517 continue # so that we can try to find one that supports BSD flags
7526 : ${lt_cv_path_NM=no}
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7530 $as_echo "$lt_cv_path_NM" >&6; }
7531 if test "$lt_cv_path_NM" != "no"; then
7534 # Didn't find any BSD compatible name lister, look for dumpbin.
7535 if test -n "$DUMPBIN"; then :
7536 # Let the user override the test.
7538 if test -n "$ac_tool_prefix"; then
7539 for ac_prog in dumpbin "link -dump"
7541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_DUMPBIN+:} false; then :
7546 $as_echo_n "(cached) " >&6
7548 if test -n "$DUMPBIN"; then
7549 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 DUMPBIN=$ac_cv_prog_DUMPBIN
7569 if test -n "$DUMPBIN"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7571 $as_echo "$DUMPBIN" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7578 test -n "$DUMPBIN" && break
7581 if test -z "$DUMPBIN"; then
7582 ac_ct_DUMPBIN=$DUMPBIN
7583 for ac_prog in dumpbin "link -dump"
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$ac_ct_DUMPBIN"; then
7593 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7613 if test -n "$ac_ct_DUMPBIN"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7615 $as_echo "$ac_ct_DUMPBIN" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7622 test -n "$ac_ct_DUMPBIN" && break
7625 if test "x$ac_ct_DUMPBIN" = x; then
7628 case $cross_compiling:$ac_tool_warned in
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7634 DUMPBIN=$ac_ct_DUMPBIN
7638 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7640 DUMPBIN="$DUMPBIN -symbols"
7648 if test "$DUMPBIN" != ":"; then
7652 test -z "$NM" && NM=nm
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7660 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7661 if ${lt_cv_nm_interface+:} false; then :
7662 $as_echo_n "(cached) " >&6
7664 lt_cv_nm_interface="BSD nm"
7665 echo "int some_variable = 0;" > conftest.$ac_ext
7666 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7667 (eval "$ac_compile" 2>conftest.err)
7668 cat conftest.err >&5
7669 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7670 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7671 cat conftest.err >&5
7672 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7673 cat conftest.out >&5
7674 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7675 lt_cv_nm_interface="MS dumpbin"
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7680 $as_echo "$lt_cv_nm_interface" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7683 $as_echo_n "checking whether ln -s works... " >&6; }
7685 if test "$LN_S" = "ln -s"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7690 $as_echo "no, using $LN_S" >&6; }
7693 # find the maximum length of command line arguments
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7695 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7696 if ${lt_cv_sys_max_cmd_len+:} false; then :
7697 $as_echo_n "(cached) " >&6
7704 # On DJGPP, this test can blow up pretty badly due to problems in libc
7705 # (any single argument exceeding 2000 bytes causes a buffer overrun
7706 # during glob expansion). Even if it were fixed, the result of this
7707 # check would be larger than it should be.
7708 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7712 # Under GNU Hurd, this test is not required because there is
7713 # no limit to the length of command line arguments.
7714 # Libtool will interpret -1 as no limit whatsoever
7715 lt_cv_sys_max_cmd_len=-1;
7718 cygwin* | mingw* | cegcc*)
7719 # On Win9x/ME, this test blows up -- it succeeds, but takes
7720 # about 5 minutes as the teststring grows exponentially.
7721 # Worse, since 9x/ME are not pre-emptively multitasking,
7722 # you end up with a "frozen" computer, even though with patience
7723 # the test eventually succeeds (with a max line length of 256k).
7724 # Instead, let's just punt: use the minimum linelength reported by
7725 # all of the supported platforms: 8192 (on NT/2K/XP).
7726 lt_cv_sys_max_cmd_len=8192;
7730 # On MiNT this can take a long time and run out of memory.
7731 lt_cv_sys_max_cmd_len=8192;
7735 # On AmigaOS with pdksh, this test takes hours, literally.
7736 # So we just punt and use a minimum line length of 8192.
7737 lt_cv_sys_max_cmd_len=8192;
7740 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7741 # This has been around since 386BSD, at least. Likely further.
7742 if test -x /sbin/sysctl; then
7743 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7744 elif test -x /usr/sbin/sysctl; then
7745 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7747 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7749 # And add a safety zone
7750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7755 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7756 lt_cv_sys_max_cmd_len=196608
7760 # The test takes a long time on OS/2.
7761 lt_cv_sys_max_cmd_len=8192
7765 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7766 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7767 # nice to cause kernel panics so lets avoid the loop below.
7768 # First set a reasonable default.
7769 lt_cv_sys_max_cmd_len=16384
7771 if test -x /sbin/sysconfig; then
7772 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7773 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7778 lt_cv_sys_max_cmd_len=102400
7780 sysv5* | sco5v6* | sysv4.2uw2*)
7781 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7782 if test -n "$kargmax"; then
7783 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7785 lt_cv_sys_max_cmd_len=32768
7789 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7790 if test -n "$lt_cv_sys_max_cmd_len"; then
7791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7794 # Make teststring a little bigger before we do anything with it.
7795 # a 1K string should be a reasonable start.
7796 for i in 1 2 3 4 5 6 7 8 ; do
7797 teststring=$teststring$teststring
7799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7800 # If test is not a shell built-in, we'll probably end up computing a
7801 # maximum length that is only half of the actual maximum length, but
7803 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7804 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7805 test $i != 17 # 1/2 MB should be enough
7808 teststring=$teststring$teststring
7810 # Only check the string length outside the loop.
7811 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7813 # Add a significant safety factor because C++ compilers can tack on
7814 # massive amounts of additional arguments before passing them to the
7815 # linker. It appears as though 1/2 is a usable value.
7816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7823 if test -n $lt_cv_sys_max_cmd_len ; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7825 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7828 $as_echo "none" >&6; }
7830 max_cmd_len=$lt_cv_sys_max_cmd_len
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7842 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7843 # Try some XSI features
7846 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7848 && eval 'test $(( 1 + 1 )) -eq 2 \
7849 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7852 $as_echo "$xsi_shell" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7856 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7858 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7860 && lt_shell_append=yes
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7862 $as_echo "$lt_shell_append" >&6; }
7865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7875 # test EBCDIC or ASCII
7876 case `echo X|tr X '\101'` in
7877 A) # ASCII based system
7878 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7879 lt_SP2NL='tr \040 \012'
7880 lt_NL2SP='tr \015\012 \040\040'
7882 *) # EBCDIC based system
7883 lt_SP2NL='tr \100 \n'
7884 lt_NL2SP='tr \r\n \100\100'
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7898 if ${lt_cv_to_host_file_cmd+:} false; then :
7899 $as_echo_n "(cached) " >&6
7904 *-*-mingw* ) # actually msys
7905 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7908 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7910 * ) # otherwise, assume *nix
7911 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7917 *-*-mingw* ) # actually msys
7918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7921 lt_cv_to_host_file_cmd=func_convert_file_noop
7923 * ) # otherwise, assume *nix
7924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7928 * ) # unhandled hosts (and "normal" native builds)
7929 lt_cv_to_host_file_cmd=func_convert_file_noop
7935 to_host_file_cmd=$lt_cv_to_host_file_cmd
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7945 if ${lt_cv_to_tool_file_cmd+:} false; then :
7946 $as_echo_n "(cached) " >&6
7948 #assume ordinary cross tools, or native build.
7949 lt_cv_to_tool_file_cmd=func_convert_file_noop
7953 *-*-mingw* ) # actually msys
7954 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7972 if ${lt_cv_ld_reload_flag+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 lt_cv_ld_reload_flag='-r'
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7979 reload_flag=$lt_cv_ld_reload_flag
7980 case $reload_flag in
7982 *) reload_flag=" $reload_flag" ;;
7984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7986 cygwin* | mingw* | pw32* | cegcc*)
7987 if test "$GCC" != yes; then
7992 if test "$GCC" = yes; then
7993 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_OBJDUMP+:} false; then :
8014 $as_echo_n "(cached) " >&6
8016 if test -n "$OBJDUMP"; then
8017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 OBJDUMP=$ac_cv_prog_OBJDUMP
8037 if test -n "$OBJDUMP"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8039 $as_echo "$OBJDUMP" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8047 if test -z "$ac_cv_prog_OBJDUMP"; then
8048 ac_ct_OBJDUMP=$OBJDUMP
8049 # Extract the first word of "objdump", so it can be a program name with args.
8050 set dummy objdump; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$ac_ct_OBJDUMP"; then
8057 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8077 if test -n "$ac_ct_OBJDUMP"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8079 $as_echo "$ac_ct_OBJDUMP" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8085 if test "x$ac_ct_OBJDUMP" = x; then
8088 case $cross_compiling:$ac_tool_warned in
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092 ac_tool_warned=yes ;;
8094 OBJDUMP=$ac_ct_OBJDUMP
8097 OBJDUMP="$ac_cv_prog_OBJDUMP"
8100 test -z "$OBJDUMP" && OBJDUMP=objdump
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8109 if ${lt_cv_deplibs_check_method+:} false; then :
8110 $as_echo_n "(cached) " >&6
8112 lt_cv_file_magic_cmd='$MAGIC_CMD'
8113 lt_cv_file_magic_test_file=
8114 lt_cv_deplibs_check_method='unknown'
8115 # Need to set the preceding variable on all platforms that support
8116 # interlibrary dependencies.
8117 # 'none' -- dependencies not supported.
8118 # `unknown' -- same as none, but documents that we really don't know.
8119 # 'pass_all' -- all dependencies passed with no checks.
8120 # 'test_compile' -- check by making test program.
8121 # 'file_magic [[regex]]' -- check by looking for files in library path
8122 # which responds to the $file_magic_cmd with a given extended regex.
8123 # If you have `file' or equivalent on your system and you're not sure
8124 # whether `pass_all' will *always* work, you probably want this one.
8128 lt_cv_deplibs_check_method=pass_all
8132 lt_cv_deplibs_check_method=pass_all
8136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8137 lt_cv_file_magic_cmd='/usr/bin/file -L'
8138 lt_cv_file_magic_test_file=/shlib/libc.so
8142 # func_win32_libid is a shell function defined in ltmain.sh
8143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8144 lt_cv_file_magic_cmd='func_win32_libid'
8148 # Base MSYS/MinGW do not provide the 'file' command needed by
8149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8150 # unless we find 'file', for example because we are cross-compiling.
8151 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8152 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8154 lt_cv_file_magic_cmd='func_win32_libid'
8156 # Keep this pattern in sync with the one in func_win32_libid.
8157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8158 lt_cv_file_magic_cmd='$OBJDUMP -f'
8163 # use the weaker test based on 'objdump'. See mingw*.
8164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8165 lt_cv_file_magic_cmd='$OBJDUMP -f'
8168 darwin* | rhapsody*)
8169 lt_cv_deplibs_check_method=pass_all
8172 freebsd* | dragonfly*)
8173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8176 # Not sure whether the presence of OpenBSD here was a mistake.
8177 # Let's accept both of them until this is cleared up.
8178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8179 lt_cv_file_magic_cmd=/usr/bin/file
8180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8184 lt_cv_deplibs_check_method=pass_all
8189 lt_cv_deplibs_check_method=pass_all
8193 lt_cv_deplibs_check_method=pass_all
8196 hpux10.20* | hpux11*)
8197 lt_cv_file_magic_cmd=/usr/bin/file
8200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8201 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8204 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]'
8205 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8209 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8215 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8219 irix5* | irix6* | nonstopux*)
8221 *-32|*"-32 ") libmagic=32-bit;;
8222 *-n32|*"-n32 ") libmagic=N32;;
8223 *-64|*"-64 ") libmagic=64-bit;;
8224 *) libmagic=never-match;;
8226 lt_cv_deplibs_check_method=pass_all
8229 # This must be glibc/ELF.
8230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8231 lt_cv_deplibs_check_method=pass_all
8235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8244 lt_cv_file_magic_cmd=/usr/bin/file
8245 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8249 lt_cv_deplibs_check_method=pass_all
8253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8260 osf3* | osf4* | osf5*)
8261 lt_cv_deplibs_check_method=pass_all
8265 lt_cv_deplibs_check_method=pass_all
8269 lt_cv_deplibs_check_method=pass_all
8272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8273 lt_cv_deplibs_check_method=pass_all
8277 case $host_vendor in
8279 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]'
8280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8283 lt_cv_deplibs_check_method=pass_all
8286 lt_cv_file_magic_cmd='/bin/file'
8287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8290 lt_cv_file_magic_cmd='/bin/file'
8291 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8292 lt_cv_file_magic_test_file=/lib/libc.so
8295 lt_cv_deplibs_check_method=pass_all
8298 lt_cv_deplibs_check_method=pass_all
8304 lt_cv_deplibs_check_method=pass_all
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8310 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8314 if test "$build" = "$host"; then
8317 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8320 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8326 file_magic_cmd=$lt_cv_file_magic_cmd
8327 deplibs_check_method=$lt_cv_deplibs_check_method
8328 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8351 if test -n "$ac_tool_prefix"; then
8352 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if ${ac_cv_prog_DLLTOOL+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 if test -n "$DLLTOOL"; then
8360 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 DLLTOOL=$ac_cv_prog_DLLTOOL
8380 if test -n "$DLLTOOL"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8382 $as_echo "$DLLTOOL" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8390 if test -z "$ac_cv_prog_DLLTOOL"; then
8391 ac_ct_DLLTOOL=$DLLTOOL
8392 # Extract the first word of "dlltool", so it can be a program name with args.
8393 set dummy dlltool; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8397 $as_echo_n "(cached) " >&6
8399 if test -n "$ac_ct_DLLTOOL"; then
8400 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8420 if test -n "$ac_ct_DLLTOOL"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8422 $as_echo "$ac_ct_DLLTOOL" >&6; }
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8428 if test "x$ac_ct_DLLTOOL" = x; then
8431 case $cross_compiling:$ac_tool_warned in
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435 ac_tool_warned=yes ;;
8437 DLLTOOL=$ac_ct_DLLTOOL
8440 DLLTOOL="$ac_cv_prog_DLLTOOL"
8443 test -z "$DLLTOOL" && DLLTOOL=dlltool
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8452 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8453 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8454 $as_echo_n "(cached) " >&6
8456 lt_cv_sharedlib_from_linklib_cmd='unknown'
8459 cygwin* | mingw* | pw32* | cegcc*)
8460 # two different shell functions defined in ltmain.sh
8461 # decide which to use based on capabilities of $DLLTOOL
8462 case `$DLLTOOL --help 2>&1` in
8463 *--identify-strict*)
8464 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8467 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8472 # fallback: assume linklib IS sharedlib
8473 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8479 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8480 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8481 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8489 if test -n "$ac_tool_prefix"; then
8492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_AR+:} false; then :
8497 $as_echo_n "(cached) " >&6
8499 if test -n "$AR"; then
8500 ac_cv_prog_AR="$AR" # Let the user override the test.
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 if test -n "$AR"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8522 $as_echo "$AR" >&6; }
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8529 test -n "$AR" && break
8532 if test -z "$AR"; then
8536 # Extract the first word of "$ac_prog", so it can be a program name with args.
8537 set dummy $ac_prog; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8541 $as_echo_n "(cached) " >&6
8543 if test -n "$ac_ct_AR"; then
8544 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_ac_ct_AR="$ac_prog"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8564 if test -n "$ac_ct_AR"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8566 $as_echo "$ac_ct_AR" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8573 test -n "$ac_ct_AR" && break
8576 if test "x$ac_ct_AR" = x; then
8579 case $cross_compiling:$ac_tool_warned in
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8583 ac_tool_warned=yes ;;
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8603 $as_echo_n "checking for archiver @FILE support... " >&6; }
8604 if ${lt_cv_ar_at_file+:} false; then :
8605 $as_echo_n "(cached) " >&6
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620 echo conftest.$ac_objext > conftest.lst
8621 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8623 (eval $lt_ar_try) 2>&5
8625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8626 test $ac_status = 0; }
8627 if test "$ac_status" -eq 0; then
8628 # Ensure the archiver fails upon bogus file names.
8629 rm -f conftest.$ac_objext libconftest.a
8630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8631 (eval $lt_ar_try) 2>&5
8633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8634 test $ac_status = 0; }
8635 if test "$ac_status" -ne 0; then
8639 rm -f conftest.* libconftest.a
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8646 $as_echo "$lt_cv_ar_at_file" >&6; }
8648 if test "x$lt_cv_ar_at_file" = xno; then
8651 archiver_list_spec=$lt_cv_ar_at_file
8660 if test -n "$ac_tool_prefix"; then
8661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8662 set dummy ${ac_tool_prefix}strip; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if ${ac_cv_prog_STRIP+:} false; then :
8666 $as_echo_n "(cached) " >&6
8668 if test -n "$STRIP"; then
8669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 STRIP=$ac_cv_prog_STRIP
8689 if test -n "$STRIP"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8691 $as_echo "$STRIP" >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8699 if test -z "$ac_cv_prog_STRIP"; then
8701 # Extract the first word of "strip", so it can be a program name with args.
8702 set dummy strip; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8706 $as_echo_n "(cached) " >&6
8708 if test -n "$ac_ct_STRIP"; then
8709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_ac_ct_STRIP="strip"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8729 if test -n "$ac_ct_STRIP"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8731 $as_echo "$ac_ct_STRIP" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8737 if test "x$ac_ct_STRIP" = x; then
8740 case $cross_compiling:$ac_tool_warned in
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8744 ac_tool_warned=yes ;;
8749 STRIP="$ac_cv_prog_STRIP"
8752 test -z "$STRIP" && STRIP=:
8759 if test -n "$ac_tool_prefix"; then
8760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if ${ac_cv_prog_RANLIB+:} false; then :
8765 $as_echo_n "(cached) " >&6
8767 if test -n "$RANLIB"; then
8768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 test -z "$as_dir" && as_dir=.
8775 for ac_exec_ext in '' $ac_executable_extensions; do
8776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 RANLIB=$ac_cv_prog_RANLIB
8788 if test -n "$RANLIB"; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8790 $as_echo "$RANLIB" >&6; }
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8798 if test -z "$ac_cv_prog_RANLIB"; then
8799 ac_ct_RANLIB=$RANLIB
8800 # Extract the first word of "ranlib", so it can be a program name with args.
8801 set dummy ranlib; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 if test -n "$ac_ct_RANLIB"; then
8808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_ac_ct_RANLIB="ranlib"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8828 if test -n "$ac_ct_RANLIB"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8830 $as_echo "$ac_ct_RANLIB" >&6; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8836 if test "x$ac_ct_RANLIB" = x; then
8839 case $cross_compiling:$ac_tool_warned in
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8843 ac_tool_warned=yes ;;
8845 RANLIB=$ac_ct_RANLIB
8848 RANLIB="$ac_cv_prog_RANLIB"
8851 test -z "$RANLIB" && RANLIB=:
8858 # Determine commands to create old-style static archives.
8859 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8860 old_postinstall_cmds='chmod 644 $oldlib'
8861 old_postuninstall_cmds=
8863 if test -n "$RANLIB"; then
8866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8872 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8877 lock_old_archive_extraction=yes ;;
8879 lock_old_archive_extraction=no ;;
8920 # If no C compiler was specified, use CC.
8923 # If no C compiler flags were specified, use CFLAGS.
8924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8926 # Allow CC to be a program name with arguments.
8930 # Check for command to grab the raw symbol name followed by C symbol from nm.
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8932 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8933 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8934 $as_echo_n "(cached) " >&6
8937 # These are sane defaults that work on at least a few old systems.
8938 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8940 # Character class describing NM global symbol codes.
8941 symcode='[BCDEGRST]'
8943 # Regexp to match symbols that can be accessed directly from C.
8944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8946 # Define system-specific variables.
8951 cygwin* | mingw* | pw32* | cegcc*)
8952 symcode='[ABCDGISTW]'
8955 if test "$host_cpu" = ia64; then
8956 symcode='[ABCDEGRST]'
8960 symcode='[BCDEGRST]'
8963 symcode='[BCDEGQRST]'
8974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8982 # If we're using GNU nm, then use its standard symbol codes.
8983 case `$NM -V 2>&1` in
8984 *GNU* | *'with BFD'*)
8985 symcode='[ABCDGIRSTW]' ;;
8988 # Transform an extracted symbol line into a proper C declaration.
8989 # Some systems (esp. on ia64) link data and code symbols differently,
8990 # so use this general approach.
8991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8993 # Transform an extracted symbol line into symbol name and symbol address
8994 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8997 # Handle CRLF in mingw tool chain
9001 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9005 # Try without a prefix underscore, then with it.
9006 for ac_symprfx in "" "_"; do
9008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9009 symxfrm="\\1 $ac_symprfx\\2 \\2"
9011 # Write the raw and C identifiers.
9012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9013 # Fake it for dumpbin and say T for any non-static function
9014 # and D for any global variable.
9015 # Also find C++ and __fastcall symbols from MSVC++,
9016 # which start with @ or ?.
9017 lt_cv_sys_global_symbol_pipe="$AWK '"\
9018 " {last_section=section; section=\$ 3};"\
9019 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9020 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9021 " \$ 0!~/External *\|/{next};"\
9022 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9023 " {if(hide[section]) next};"\
9024 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9025 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9026 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9027 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9028 " ' prfx=^$ac_symprfx"
9030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9032 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9034 # Check to see that the pipe works correctly.
9038 cat > conftest.$ac_ext <<_LT_EOF
9043 void nm_test_func(void);
9044 void nm_test_func(void){}
9048 int main(){nm_test_var='a';nm_test_func();return(0);}
9051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9052 (eval $ac_compile) 2>&5
9054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9055 test $ac_status = 0; }; then
9056 # Now try to grab the symbols.
9058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9059 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9062 test $ac_status = 0; } && test -s "$nlist"; then
9063 # Try sorting and uniquifying the output.
9064 if sort "$nlist" | uniq > "$nlist"T; then
9065 mv -f "$nlist"T "$nlist"
9070 # Make sure that we snagged all the symbols we need.
9071 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9072 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9073 cat <<_LT_EOF > conftest.$ac_ext
9074 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9075 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9076 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9077 relocations are performed -- see ld's documentation on pseudo-relocs. */
9078 # define LT_DLSYM_CONST
9079 #elif defined(__osf__)
9080 /* This system does not cope well with relocations in const data. */
9081 # define LT_DLSYM_CONST
9083 # define LT_DLSYM_CONST const
9091 # Now generate the symbol file.
9092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9094 cat <<_LT_EOF >> conftest.$ac_ext
9096 /* The mapping between symbol names and symbols. */
9097 LT_DLSYM_CONST struct {
9101 lt__PROGRAM__LTX_preloaded_symbols[] =
9103 { "@PROGRAM@", (void *) 0 },
9105 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9106 cat <<\_LT_EOF >> conftest.$ac_ext
9110 /* This works around a problem in FreeBSD linker */
9111 #ifdef FREEBSD_WORKAROUND
9112 static const void *lt_preloaded_setup() {
9113 return lt__PROGRAM__LTX_preloaded_symbols;
9121 # Now try linking the two files.
9122 mv conftest.$ac_objext conftstm.$ac_objext
9123 lt_globsym_save_LIBS=$LIBS
9124 lt_globsym_save_CFLAGS=$CFLAGS
9125 LIBS="conftstm.$ac_objext"
9126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9128 (eval $ac_link) 2>&5
9130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9131 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9134 LIBS=$lt_globsym_save_LIBS
9135 CFLAGS=$lt_globsym_save_CFLAGS
9137 echo "cannot find nm_test_func in $nlist" >&5
9140 echo "cannot find nm_test_var in $nlist" >&5
9143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9146 echo "$progname: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 rm -rf conftest* conftst*
9151 # Do not use the global_symbol_pipe unless it works.
9152 if test "$pipe_works" = yes; then
9155 lt_cv_sys_global_symbol_pipe=
9161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9162 lt_cv_sys_global_symbol_to_cdecl=
9164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9166 $as_echo "failed" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9169 $as_echo "ok" >&6; }
9172 # Response file support.
9173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9174 nm_file_list_spec='@'
9175 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9176 nm_file_list_spec='@'
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9206 $as_echo_n "checking for sysroot... " >&6; }
9208 # Check whether --with-sysroot was given.
9209 if test "${with_sysroot+set}" = set; then :
9210 withval=$with_sysroot;
9217 case ${with_sysroot} in #(
9219 if test "$GCC" = yes; then
9220 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9224 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9230 $as_echo "${with_sysroot}" >&6; }
9231 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9236 $as_echo "${lt_sysroot:-no}" >&6; }
9242 # Check whether --enable-libtool-lock was given.
9243 if test "${enable_libtool_lock+set}" = set; then :
9244 enableval=$enable_libtool_lock;
9247 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9249 # Some flags need to be propagated to the compiler or linker for good
9253 # Find out which ABI we are using.
9254 echo 'int i;' > conftest.$ac_ext
9255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9256 (eval $ac_compile) 2>&5
9258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259 test $ac_status = 0; }; then
9260 case `/usr/bin/file conftest.$ac_objext` in
9272 # Find out which ABI we are using.
9273 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9275 (eval $ac_compile) 2>&5
9277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9278 test $ac_status = 0; }; then
9279 if test "$lt_cv_prog_gnu_ld" = yes; then
9280 case `/usr/bin/file conftest.$ac_objext` in
9282 LD="${LD-ld} -melf32bsmip"
9285 LD="${LD-ld} -melf32bmipn32"
9288 LD="${LD-ld} -melf64bmip"
9292 case `/usr/bin/file conftest.$ac_objext` in
9308 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9309 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9310 # Find out which ABI we are using.
9311 echo 'int i;' > conftest.$ac_ext
9312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9313 (eval $ac_compile) 2>&5
9315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316 test $ac_status = 0; }; then
9317 case `/usr/bin/file conftest.o` in
9320 x86_64-*kfreebsd*-gnu)
9321 LD="${LD-ld} -m elf_i386_fbsd"
9324 LD="${LD-ld} -m elf_i386"
9326 ppc64-*linux*|powerpc64-*linux*)
9327 LD="${LD-ld} -m elf32ppclinux"
9330 LD="${LD-ld} -m elf_s390"
9333 LD="${LD-ld} -m elf32_sparc"
9339 x86_64-*kfreebsd*-gnu)
9340 LD="${LD-ld} -m elf_x86_64_fbsd"
9343 LD="${LD-ld} -m elf_x86_64"
9345 ppc*-*linux*|powerpc*-*linux*)
9346 LD="${LD-ld} -m elf64ppc"
9348 s390*-*linux*|s390*-*tpf*)
9349 LD="${LD-ld} -m elf64_s390"
9352 LD="${LD-ld} -m elf64_sparc"
9362 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9363 SAVE_CFLAGS="$CFLAGS"
9364 CFLAGS="$CFLAGS -belf"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9366 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9367 if ${lt_cv_cc_needs_belf+:} false; then :
9368 $as_echo_n "(cached) " >&6
9371 ac_cpp='$CPP $CPPFLAGS'
9372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9387 if ac_fn_c_try_link "$LINENO"; then :
9388 lt_cv_cc_needs_belf=yes
9390 lt_cv_cc_needs_belf=no
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9395 ac_cpp='$CPP $CPPFLAGS'
9396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9402 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9403 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9404 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9405 CFLAGS="$SAVE_CFLAGS"
9409 # Find out which ABI we are using.
9410 echo 'int i;' > conftest.$ac_ext
9411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9412 (eval $ac_compile) 2>&5
9414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9415 test $ac_status = 0; }; then
9416 case `/usr/bin/file conftest.o` in
9418 case $lt_cv_prog_gnu_ld in
9422 LD="${LD-ld} -m elf_x86_64"
9425 LD="${LD-ld} -m elf64_sparc"
9428 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9429 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9434 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9446 need_locks="$enable_libtool_lock"
9448 if test -n "$ac_tool_prefix"; then
9449 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9450 set dummy ${ac_tool_prefix}mt; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9454 $as_echo_n "(cached) " >&6
9456 if test -n "$MANIFEST_TOOL"; then
9457 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9466 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9476 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9477 if test -n "$MANIFEST_TOOL"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9479 $as_echo "$MANIFEST_TOOL" >&6; }
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9487 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9488 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9489 # Extract the first word of "mt", so it can be a program name with args.
9490 set dummy mt; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9494 $as_echo_n "(cached) " >&6
9496 if test -n "$ac_ct_MANIFEST_TOOL"; then
9497 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9517 if test -n "$ac_ct_MANIFEST_TOOL"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9519 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9525 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9528 case $cross_compiling:$ac_tool_warned in
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9532 ac_tool_warned=yes ;;
9534 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9537 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9540 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9542 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9543 if ${lt_cv_path_mainfest_tool+:} false; then :
9544 $as_echo_n "(cached) " >&6
9546 lt_cv_path_mainfest_tool=no
9547 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9548 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9549 cat conftest.err >&5
9550 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9551 lt_cv_path_mainfest_tool=yes
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9556 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9557 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9567 rhapsody* | darwin*)
9568 if test -n "$ac_tool_prefix"; then
9569 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9570 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9574 $as_echo_n "(cached) " >&6
9576 if test -n "$DSYMUTIL"; then
9577 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9586 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9597 if test -n "$DSYMUTIL"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9599 $as_echo "$DSYMUTIL" >&6; }
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9607 if test -z "$ac_cv_prog_DSYMUTIL"; then
9608 ac_ct_DSYMUTIL=$DSYMUTIL
9609 # Extract the first word of "dsymutil", so it can be a program name with args.
9610 set dummy dsymutil; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9614 $as_echo_n "(cached) " >&6
9616 if test -n "$ac_ct_DSYMUTIL"; then
9617 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9637 if test -n "$ac_ct_DSYMUTIL"; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9639 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9645 if test "x$ac_ct_DSYMUTIL" = x; then
9648 case $cross_compiling:$ac_tool_warned in
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9652 ac_tool_warned=yes ;;
9654 DSYMUTIL=$ac_ct_DSYMUTIL
9657 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9660 if test -n "$ac_tool_prefix"; then
9661 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9662 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if ${ac_cv_prog_NMEDIT+:} false; then :
9666 $as_echo_n "(cached) " >&6
9668 if test -n "$NMEDIT"; then
9669 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 NMEDIT=$ac_cv_prog_NMEDIT
9689 if test -n "$NMEDIT"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9691 $as_echo "$NMEDIT" >&6; }
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9699 if test -z "$ac_cv_prog_NMEDIT"; then
9700 ac_ct_NMEDIT=$NMEDIT
9701 # Extract the first word of "nmedit", so it can be a program name with args.
9702 set dummy nmedit; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704 $as_echo_n "checking for $ac_word... " >&6; }
9705 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9706 $as_echo_n "(cached) " >&6
9708 if test -n "$ac_ct_NMEDIT"; then
9709 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9729 if test -n "$ac_ct_NMEDIT"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9731 $as_echo "$ac_ct_NMEDIT" >&6; }
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9737 if test "x$ac_ct_NMEDIT" = x; then
9740 case $cross_compiling:$ac_tool_warned in
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9744 ac_tool_warned=yes ;;
9746 NMEDIT=$ac_ct_NMEDIT
9749 NMEDIT="$ac_cv_prog_NMEDIT"
9752 if test -n "$ac_tool_prefix"; then
9753 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9754 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if ${ac_cv_prog_LIPO+:} false; then :
9758 $as_echo_n "(cached) " >&6
9760 if test -n "$LIPO"; then
9761 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 test -z "$as_dir" && as_dir=.
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9770 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 LIPO=$ac_cv_prog_LIPO
9781 if test -n "$LIPO"; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9783 $as_echo "$LIPO" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9791 if test -z "$ac_cv_prog_LIPO"; then
9793 # Extract the first word of "lipo", so it can be a program name with args.
9794 set dummy lipo; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9798 $as_echo_n "(cached) " >&6
9800 if test -n "$ac_ct_LIPO"; then
9801 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_ac_ct_LIPO="lipo"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9821 if test -n "$ac_ct_LIPO"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9823 $as_echo "$ac_ct_LIPO" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9829 if test "x$ac_ct_LIPO" = x; then
9832 case $cross_compiling:$ac_tool_warned in
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9836 ac_tool_warned=yes ;;
9841 LIPO="$ac_cv_prog_LIPO"
9844 if test -n "$ac_tool_prefix"; then
9845 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9846 set dummy ${ac_tool_prefix}otool; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_prog_OTOOL+:} false; then :
9850 $as_echo_n "(cached) " >&6
9852 if test -n "$OTOOL"; then
9853 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 OTOOL=$ac_cv_prog_OTOOL
9873 if test -n "$OTOOL"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9875 $as_echo "$OTOOL" >&6; }
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9883 if test -z "$ac_cv_prog_OTOOL"; then
9885 # Extract the first word of "otool", so it can be a program name with args.
9886 set dummy otool; ac_word=$2
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9888 $as_echo_n "checking for $ac_word... " >&6; }
9889 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9890 $as_echo_n "(cached) " >&6
9892 if test -n "$ac_ct_OTOOL"; then
9893 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9902 ac_cv_prog_ac_ct_OTOOL="otool"
9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9913 if test -n "$ac_ct_OTOOL"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9915 $as_echo "$ac_ct_OTOOL" >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9921 if test "x$ac_ct_OTOOL" = x; then
9924 case $cross_compiling:$ac_tool_warned in
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9928 ac_tool_warned=yes ;;
9933 OTOOL="$ac_cv_prog_OTOOL"
9936 if test -n "$ac_tool_prefix"; then
9937 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9938 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_prog_OTOOL64+:} false; then :
9942 $as_echo_n "(cached) " >&6
9944 if test -n "$OTOOL64"; then
9945 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 OTOOL64=$ac_cv_prog_OTOOL64
9965 if test -n "$OTOOL64"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9967 $as_echo "$OTOOL64" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9975 if test -z "$ac_cv_prog_OTOOL64"; then
9976 ac_ct_OTOOL64=$OTOOL64
9977 # Extract the first word of "otool64", so it can be a program name with args.
9978 set dummy otool64; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9982 $as_echo_n "(cached) " >&6
9984 if test -n "$ac_ct_OTOOL64"; then
9985 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994 ac_cv_prog_ac_ct_OTOOL64="otool64"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10005 if test -n "$ac_ct_OTOOL64"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10007 $as_echo "$ac_ct_OTOOL64" >&6; }
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10013 if test "x$ac_ct_OTOOL64" = x; then
10016 case $cross_compiling:$ac_tool_warned in
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10020 ac_tool_warned=yes ;;
10022 OTOOL64=$ac_ct_OTOOL64
10025 OTOOL64="$ac_cv_prog_OTOOL64"
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10055 $as_echo_n "checking for -single_module linker flag... " >&6; }
10056 if ${lt_cv_apple_cc_single_mod+:} false; then :
10057 $as_echo_n "(cached) " >&6
10059 lt_cv_apple_cc_single_mod=no
10060 if test -z "${LT_MULTI_MODULE}"; then
10061 # By default we will add the -single_module flag. You can override
10062 # by either setting the environment variable LT_MULTI_MODULE
10063 # non-empty at configure time, or by adding -multi_module to the
10065 rm -rf libconftest.dylib*
10066 echo "int foo(void){return 1;}" > conftest.c
10067 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10068 -dynamiclib -Wl,-single_module conftest.c" >&5
10069 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10070 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10072 # If there is a non-empty error log, and "single_module"
10073 # appears in it, assume the flag caused a linker warning
10074 if test -s conftest.err && $GREP single_module conftest.err; then
10075 cat conftest.err >&5
10076 # Otherwise, if the output was created with a 0 exit code from
10077 # the compiler, it worked.
10078 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10079 lt_cv_apple_cc_single_mod=yes
10081 cat conftest.err >&5
10083 rm -rf libconftest.dylib*
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10088 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10091 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10092 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10093 $as_echo_n "(cached) " >&6
10095 lt_cv_ld_exported_symbols_list=no
10096 save_LDFLAGS=$LDFLAGS
10097 echo "_main" > conftest.sym
10098 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10110 if ac_fn_c_try_link "$LINENO"; then :
10111 lt_cv_ld_exported_symbols_list=yes
10113 lt_cv_ld_exported_symbols_list=no
10115 rm -f core conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 LDFLAGS="$save_LDFLAGS"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10121 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10124 $as_echo_n "checking for -force_load linker flag... " >&6; }
10125 if ${lt_cv_ld_force_load+:} false; then :
10126 $as_echo_n "(cached) " >&6
10128 lt_cv_ld_force_load=no
10129 cat > conftest.c << _LT_EOF
10130 int forced_loaded() { return 2;}
10132 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10133 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10134 echo "$AR cru libconftest.a conftest.o" >&5
10135 $AR cru libconftest.a conftest.o 2>&5
10136 echo "$RANLIB libconftest.a" >&5
10137 $RANLIB libconftest.a 2>&5
10138 cat > conftest.c << _LT_EOF
10139 int main() { return 0;}
10141 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10142 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10144 if test -s conftest.err && $GREP force_load conftest.err; then
10145 cat conftest.err >&5
10146 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10147 lt_cv_ld_force_load=yes
10149 cat conftest.err >&5
10151 rm -f conftest.err libconftest.a conftest conftest.c
10152 rm -rf conftest.dSYM
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10156 $as_echo "$lt_cv_ld_force_load" >&6; }
10158 rhapsody* | darwin1.[012])
10159 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10161 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10162 darwin*) # darwin 5.x on
10163 # if running on 10.5 or later, the deployment target defaults
10164 # to the OS version, if on x86, and 10.4, the deployment
10165 # target defaults to 10.4. Don't you love it?
10166 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10167 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10168 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10172 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10176 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10177 _lt_dar_single_mod='$single_module'
10179 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10180 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10182 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10184 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10185 _lt_dsymutil='~$DSYMUTIL $lib || :'
10192 for ac_header in dlfcn.h
10194 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10196 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10197 cat >>confdefs.h <<_ACEOF
10198 #define HAVE_DLFCN_H 1
10210 enable_win32_dll=yes
10213 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10214 if test -n "$ac_tool_prefix"; then
10215 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10216 set dummy ${ac_tool_prefix}as; ac_word=$2
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 $as_echo_n "checking for $ac_word... " >&6; }
10219 if ${ac_cv_prog_AS+:} false; then :
10220 $as_echo_n "(cached) " >&6
10222 if test -n "$AS"; then
10223 ac_cv_prog_AS="$AS" # Let the user override the test.
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_prog_AS="${ac_tool_prefix}as"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10243 if test -n "$AS"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10245 $as_echo "$AS" >&6; }
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10253 if test -z "$ac_cv_prog_AS"; then
10255 # Extract the first word of "as", so it can be a program name with args.
10256 set dummy as; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10260 $as_echo_n "(cached) " >&6
10262 if test -n "$ac_ct_AS"; then
10263 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10272 ac_cv_prog_ac_ct_AS="as"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10283 if test -n "$ac_ct_AS"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10285 $as_echo "$ac_ct_AS" >&6; }
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10291 if test "x$ac_ct_AS" = x; then
10294 case $cross_compiling:$ac_tool_warned in
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10298 ac_tool_warned=yes ;;
10303 AS="$ac_cv_prog_AS"
10306 if test -n "$ac_tool_prefix"; then
10307 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10308 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_prog_DLLTOOL+:} false; then :
10312 $as_echo_n "(cached) " >&6
10314 if test -n "$DLLTOOL"; then
10315 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 DLLTOOL=$ac_cv_prog_DLLTOOL
10335 if test -n "$DLLTOOL"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10337 $as_echo "$DLLTOOL" >&6; }
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10345 if test -z "$ac_cv_prog_DLLTOOL"; then
10346 ac_ct_DLLTOOL=$DLLTOOL
10347 # Extract the first word of "dlltool", so it can be a program name with args.
10348 set dummy dlltool; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10352 $as_echo_n "(cached) " >&6
10354 if test -n "$ac_ct_DLLTOOL"; then
10355 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10375 if test -n "$ac_ct_DLLTOOL"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10377 $as_echo "$ac_ct_DLLTOOL" >&6; }
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10383 if test "x$ac_ct_DLLTOOL" = x; then
10386 case $cross_compiling:$ac_tool_warned in
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10390 ac_tool_warned=yes ;;
10392 DLLTOOL=$ac_ct_DLLTOOL
10395 DLLTOOL="$ac_cv_prog_DLLTOOL"
10398 if test -n "$ac_tool_prefix"; then
10399 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10400 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_prog_OBJDUMP+:} false; then :
10404 $as_echo_n "(cached) " >&6
10406 if test -n "$OBJDUMP"; then
10407 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 OBJDUMP=$ac_cv_prog_OBJDUMP
10427 if test -n "$OBJDUMP"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10429 $as_echo "$OBJDUMP" >&6; }
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; }
10437 if test -z "$ac_cv_prog_OBJDUMP"; then
10438 ac_ct_OBJDUMP=$OBJDUMP
10439 # Extract the first word of "objdump", so it can be a program name with args.
10440 set dummy objdump; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10444 $as_echo_n "(cached) " >&6
10446 if test -n "$ac_ct_OBJDUMP"; then
10447 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10467 if test -n "$ac_ct_OBJDUMP"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10469 $as_echo "$ac_ct_OBJDUMP" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10475 if test "x$ac_ct_OBJDUMP" = x; then
10478 case $cross_compiling:$ac_tool_warned in
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10482 ac_tool_warned=yes ;;
10484 OBJDUMP=$ac_ct_OBJDUMP
10487 OBJDUMP="$ac_cv_prog_OBJDUMP"
10493 test -z "$AS" && AS=as
10499 test -z "$DLLTOOL" && DLLTOOL=dlltool
10505 test -z "$OBJDUMP" && OBJDUMP=objdump
10517 # Check whether --enable-shared was given.
10518 if test "${enable_shared+set}" = set; then :
10519 enableval=$enable_shared; p=${PACKAGE-default}
10521 yes) enable_shared=yes ;;
10522 no) enable_shared=no ;;
10525 # Look at the argument we got. We use all the common list separators.
10526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10527 for pkg in $enableval; do
10529 if test "X$pkg" = "X$p"; then
10548 # Check whether --enable-static was given.
10549 if test "${enable_static+set}" = set; then :
10550 enableval=$enable_static; p=${PACKAGE-default}
10552 yes) enable_static=yes ;;
10553 no) enable_static=no ;;
10556 # Look at the argument we got. We use all the common list separators.
10557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10558 for pkg in $enableval; do
10560 if test "X$pkg" = "X$p"; then
10580 # Check whether --with-pic was given.
10581 if test "${with_pic+set}" = set; then :
10582 withval=$with_pic; lt_p=${PACKAGE-default}
10584 yes|no) pic_mode=$withval ;;
10587 # Look at the argument we got. We use all the common list separators.
10588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10589 for lt_pkg in $withval; do
10591 if test "X$lt_pkg" = "X$lt_p"; then
10603 test -z "$pic_mode" && pic_mode=default
10611 # Check whether --enable-fast-install was given.
10612 if test "${enable_fast_install+set}" = set; then :
10613 enableval=$enable_fast_install; p=${PACKAGE-default}
10615 yes) enable_fast_install=yes ;;
10616 no) enable_fast_install=no ;;
10618 enable_fast_install=no
10619 # Look at the argument we got. We use all the common list separators.
10620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10621 for pkg in $enableval; do
10623 if test "X$pkg" = "X$p"; then
10624 enable_fast_install=yes
10631 enable_fast_install=yes
10644 # This can be used to rebuild libtool when needed
10645 LIBTOOL_DEPS="$ltmain"
10647 # Always use our own libtool.
10648 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
10679 test -z "$LN_S" && LN_S="ln -s"
10694 if test -n "${ZSH_VERSION+set}" ; then
10695 setopt NO_GLOB_SUBST
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10699 $as_echo_n "checking for objdir... " >&6; }
10700 if ${lt_cv_objdir+:} false; then :
10701 $as_echo_n "(cached) " >&6
10703 rm -f .libs 2>/dev/null
10704 mkdir .libs 2>/dev/null
10705 if test -d .libs; then
10708 # MS-DOS does not allow filenames that begin with a dot.
10711 rmdir .libs 2>/dev/null
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10714 $as_echo "$lt_cv_objdir" >&6; }
10715 objdir=$lt_cv_objdir
10721 cat >>confdefs.h <<_ACEOF
10722 #define LT_OBJDIR "$lt_cv_objdir/"
10730 # AIX sometimes has problems with the GCC collect2 program. For some
10731 # reason, if we set the COLLECT_NAMES environment variable, the problems
10732 # vanish in a puff of smoke.
10733 if test "X${COLLECT_NAMES+set}" != Xset; then
10735 export COLLECT_NAMES
10740 # Global variables:
10742 can_build_shared=yes
10744 # All known linkers require a `.a' archive for static linking (except MSVC,
10745 # which needs '.lib').
10748 with_gnu_ld="$lt_cv_prog_gnu_ld"
10751 old_CFLAGS="$CFLAGS"
10753 # Set sane defaults for various variables
10754 test -z "$CC" && CC=cc
10755 test -z "$LTCC" && LTCC=$CC
10756 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10757 test -z "$LD" && LD=ld
10758 test -z "$ac_objext" && ac_objext=o
10760 for cc_temp in $compiler""; do
10762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10768 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10771 # Only perform the check for file, if the check method requires it
10772 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10773 case $deplibs_check_method in
10775 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10777 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10778 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10779 $as_echo_n "(cached) " >&6
10783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10786 lt_save_MAGIC_CMD="$MAGIC_CMD"
10787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10788 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10789 for ac_dir in $ac_dummy; do
10791 test -z "$ac_dir" && ac_dir=.
10792 if test -f $ac_dir/${ac_tool_prefix}file; then
10793 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10794 if test -n "$file_magic_test_file"; then
10795 case $deplibs_check_method in
10797 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10799 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10800 $EGREP "$file_magic_regex" > /dev/null; then
10805 *** Warning: the command libtool uses to detect shared libraries,
10806 *** $file_magic_cmd, produces output that libtool cannot recognize.
10807 *** The result is that libtool may fail to recognize shared libraries
10808 *** as such. This will affect the creation of libtool libraries that
10809 *** depend on shared libraries, but programs linked with such libtool
10810 *** libraries will work regardless of this problem. Nevertheless, you
10811 *** may want to report the problem to your system manager and/or to
10812 *** bug-libtool@gnu.org
10822 MAGIC_CMD="$lt_save_MAGIC_CMD"
10827 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10828 if test -n "$MAGIC_CMD"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10830 $as_echo "$MAGIC_CMD" >&6; }
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10840 if test -z "$lt_cv_path_MAGIC_CMD"; then
10841 if test -n "$ac_tool_prefix"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10843 $as_echo_n "checking for file... " >&6; }
10844 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10845 $as_echo_n "(cached) " >&6
10849 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10852 lt_save_MAGIC_CMD="$MAGIC_CMD"
10853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10854 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10855 for ac_dir in $ac_dummy; do
10857 test -z "$ac_dir" && ac_dir=.
10858 if test -f $ac_dir/file; then
10859 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10860 if test -n "$file_magic_test_file"; then
10861 case $deplibs_check_method in
10863 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10865 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10866 $EGREP "$file_magic_regex" > /dev/null; then
10871 *** Warning: the command libtool uses to detect shared libraries,
10872 *** $file_magic_cmd, produces output that libtool cannot recognize.
10873 *** The result is that libtool may fail to recognize shared libraries
10874 *** as such. This will affect the creation of libtool libraries that
10875 *** depend on shared libraries, but programs linked with such libtool
10876 *** libraries will work regardless of this problem. Nevertheless, you
10877 *** may want to report the problem to your system manager and/or to
10878 *** bug-libtool@gnu.org
10888 MAGIC_CMD="$lt_save_MAGIC_CMD"
10893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10894 if test -n "$MAGIC_CMD"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10896 $as_echo "$MAGIC_CMD" >&6; }
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10912 # Use C for the default configuration in the libtool script
10916 ac_cpp='$CPP $CPPFLAGS'
10917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10922 # Source file extension for C test sources.
10925 # Object file extension for compiled C test sources.
10929 # Code to be used in simple compile tests
10930 lt_simple_compile_test_code="int some_variable = 0;"
10932 # Code to be used in simple link tests
10933 lt_simple_link_test_code='int main(){return(0);}'
10941 # If no C compiler was specified, use CC.
10944 # If no C compiler flags were specified, use CFLAGS.
10945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10947 # Allow CC to be a program name with arguments.
10950 # Save the default compiler, since it gets overwritten when the other
10951 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10952 compiler_DEFAULT=$CC
10954 # save warnings/boilerplate of simple test code
10955 ac_outfile=conftest.$ac_objext
10956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10958 _lt_compiler_boilerplate=`cat conftest.err`
10961 ac_outfile=conftest.$ac_objext
10962 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10964 _lt_linker_boilerplate=`cat conftest.err`
10969 ## There is no encapsulation within the following macros, do not change
10970 ## the running order or otherwise move them around unless you know exactly
10971 ## what you are doing...
10972 if test -n "$compiler"; then
10974 lt_prog_compiler_no_builtin_flag=
10976 if test "$GCC" = yes; then
10977 case $cc_basename in
10979 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10981 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10985 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10986 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10987 $as_echo_n "(cached) " >&6
10989 lt_cv_prog_compiler_rtti_exceptions=no
10990 ac_outfile=conftest.$ac_objext
10991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10992 lt_compiler_flag="-fno-rtti -fno-exceptions"
10993 # Insert the option either (1) after the last *FLAGS variable, or
10994 # (2) before a word containing "conftest.", or (3) at the end.
10995 # Note that $ac_compile itself does not contain backslashes and begins
10996 # with a dollar sign (not a hyphen), so the echo should work correctly.
10997 # The option is referenced via a variable to avoid confusing sed.
10998 lt_compile=`echo "$ac_compile" | $SED \
10999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11001 -e 's:$: $lt_compiler_flag:'`
11002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11003 (eval "$lt_compile" 2>conftest.err)
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 if (exit $ac_status) && test -s "$ac_outfile"; then
11008 # The compiler can only warn and ignore the option if not recognized
11009 # So say no if there are warnings other than the usual output.
11010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11013 lt_cv_prog_compiler_rtti_exceptions=yes
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11020 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11023 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11035 lt_prog_compiler_wl=
11036 lt_prog_compiler_pic=
11037 lt_prog_compiler_static=
11040 if test "$GCC" = yes; then
11041 lt_prog_compiler_wl='-Wl,'
11042 lt_prog_compiler_static='-static'
11046 # All AIX code is PIC.
11047 if test "$host_cpu" = ia64; then
11048 # AIX 5 now supports IA64 processor
11049 lt_prog_compiler_static='-Bstatic'
11056 # see comment about AmigaOS4 .so support
11057 lt_prog_compiler_pic='-fPIC'
11060 # FIXME: we need at least 68020 code to build shared libraries, but
11061 # adding the `-m68020' flag to GCC prevents building anything better,
11063 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11068 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11069 # PIC is the default for these OSes.
11072 mingw* | cygwin* | pw32* | os2* | cegcc*)
11073 # This hack is so that the source file can tell whether it is being
11074 # built for inclusion in a dll (and should export symbols for example).
11075 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11076 # (--disable-auto-import) libraries
11077 lt_prog_compiler_pic='-DDLL_EXPORT'
11080 darwin* | rhapsody*)
11081 # PIC is the default on this platform
11082 # Common symbols not allowed in MH_DYLIB files
11083 lt_prog_compiler_pic='-fno-common'
11087 # PIC is the default for Haiku.
11088 # The "-static" flag exists, but is broken.
11089 lt_prog_compiler_static=
11093 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11094 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11095 # sets the default TLS model and affects inlining.
11101 lt_prog_compiler_pic='-fPIC'
11107 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11108 # Instead, we relocate shared libraries at runtime.
11112 # Just because we use GCC doesn't mean we suddenly get shared libraries
11113 # on systems that don't support them.
11114 lt_prog_compiler_can_build_shared=no
11119 # QNX uses GNU C++, but need to define -shared option too, otherwise
11120 # it will coredump.
11121 lt_prog_compiler_pic='-fPIC -shared'
11125 if test -d /usr/nec; then
11126 lt_prog_compiler_pic=-Kconform_pic
11131 lt_prog_compiler_pic='-fPIC'
11135 case $cc_basename in
11136 nvcc*) # Cuda Compiler Driver 2.2
11137 lt_prog_compiler_wl='-Xlinker '
11138 if test -n "$lt_prog_compiler_pic"; then
11139 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11144 # PORTME Check for flag to pass linker flags through the system compiler.
11147 lt_prog_compiler_wl='-Wl,'
11148 if test "$host_cpu" = ia64; then
11149 # AIX 5 now supports IA64 processor
11150 lt_prog_compiler_static='-Bstatic'
11152 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11156 mingw* | cygwin* | pw32* | os2* | cegcc*)
11157 # This hack is so that the source file can tell whether it is being
11158 # built for inclusion in a dll (and should export symbols for example).
11159 lt_prog_compiler_pic='-DDLL_EXPORT'
11162 hpux9* | hpux10* | hpux11*)
11163 lt_prog_compiler_wl='-Wl,'
11164 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11165 # not for PA HP-UX.
11171 lt_prog_compiler_pic='+Z'
11174 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11175 lt_prog_compiler_static='${wl}-a ${wl}archive'
11178 irix5* | irix6* | nonstopux*)
11179 lt_prog_compiler_wl='-Wl,'
11180 # PIC (with -KPIC) is the default.
11181 lt_prog_compiler_static='-non_shared'
11184 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11185 case $cc_basename in
11186 # old Intel for x86_64 which still supported -KPIC.
11188 lt_prog_compiler_wl='-Wl,'
11189 lt_prog_compiler_pic='-KPIC'
11190 lt_prog_compiler_static='-static'
11192 # icc used to be incompatible with GCC.
11193 # ICC 10 doesn't accept -KPIC any more.
11195 lt_prog_compiler_wl='-Wl,'
11196 lt_prog_compiler_pic='-fPIC'
11197 lt_prog_compiler_static='-static'
11199 # Lahey Fortran 8.1.
11201 lt_prog_compiler_wl='-Wl,'
11202 lt_prog_compiler_pic='--shared'
11203 lt_prog_compiler_static='--static'
11206 # NAG Fortran compiler
11207 lt_prog_compiler_wl='-Wl,-Wl,,'
11208 lt_prog_compiler_pic='-PIC'
11209 lt_prog_compiler_static='-Bstatic'
11211 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11212 # Portland Group compilers (*not* the Pentium gcc compiler,
11213 # which looks to be a dead project)
11214 lt_prog_compiler_wl='-Wl,'
11215 lt_prog_compiler_pic='-fpic'
11216 lt_prog_compiler_static='-Bstatic'
11219 lt_prog_compiler_wl='-Wl,'
11220 # All Alpha code is PIC.
11221 lt_prog_compiler_static='-non_shared'
11223 xl* | bgxl* | bgf* | mpixl*)
11224 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11225 lt_prog_compiler_wl='-Wl,'
11226 lt_prog_compiler_pic='-qpic'
11227 lt_prog_compiler_static='-qstaticlink'
11230 case `$CC -V 2>&1 | sed 5q` in
11231 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11232 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11233 lt_prog_compiler_pic='-KPIC'
11234 lt_prog_compiler_static='-Bstatic'
11235 lt_prog_compiler_wl=''
11237 *Sun\ F* | *Sun*Fortran*)
11238 lt_prog_compiler_pic='-KPIC'
11239 lt_prog_compiler_static='-Bstatic'
11240 lt_prog_compiler_wl='-Qoption ld '
11244 lt_prog_compiler_pic='-KPIC'
11245 lt_prog_compiler_static='-Bstatic'
11246 lt_prog_compiler_wl='-Wl,'
11248 *Intel*\ [CF]*Compiler*)
11249 lt_prog_compiler_wl='-Wl,'
11250 lt_prog_compiler_pic='-fPIC'
11251 lt_prog_compiler_static='-static'
11254 lt_prog_compiler_wl='-Wl,'
11255 lt_prog_compiler_pic='-fpic'
11256 lt_prog_compiler_static='-Bstatic'
11264 lt_prog_compiler_pic='-KPIC'
11265 lt_prog_compiler_static='-Bstatic'
11269 # QNX uses GNU C++, but need to define -shared option too, otherwise
11270 # it will coredump.
11271 lt_prog_compiler_pic='-fPIC -shared'
11274 osf3* | osf4* | osf5*)
11275 lt_prog_compiler_wl='-Wl,'
11276 # All OSF/1 code is PIC.
11277 lt_prog_compiler_static='-non_shared'
11281 lt_prog_compiler_static='-non_shared'
11285 lt_prog_compiler_pic='-KPIC'
11286 lt_prog_compiler_static='-Bstatic'
11287 case $cc_basename in
11288 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11289 lt_prog_compiler_wl='-Qoption ld ';;
11291 lt_prog_compiler_wl='-Wl,';;
11296 lt_prog_compiler_wl='-Qoption ld '
11297 lt_prog_compiler_pic='-PIC'
11298 lt_prog_compiler_static='-Bstatic'
11301 sysv4 | sysv4.2uw2* | sysv4.3*)
11302 lt_prog_compiler_wl='-Wl,'
11303 lt_prog_compiler_pic='-KPIC'
11304 lt_prog_compiler_static='-Bstatic'
11308 if test -d /usr/nec ;then
11309 lt_prog_compiler_pic='-Kconform_pic'
11310 lt_prog_compiler_static='-Bstatic'
11314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11315 lt_prog_compiler_wl='-Wl,'
11316 lt_prog_compiler_pic='-KPIC'
11317 lt_prog_compiler_static='-Bstatic'
11321 lt_prog_compiler_wl='-Wl,'
11322 lt_prog_compiler_can_build_shared=no
11326 lt_prog_compiler_pic='-pic'
11327 lt_prog_compiler_static='-Bstatic'
11331 lt_prog_compiler_can_build_shared=no
11337 # For platforms which do not support PIC, -DPIC is meaningless:
11339 lt_prog_compiler_pic=
11342 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11348 if ${lt_cv_prog_compiler_pic+:} false; then :
11349 $as_echo_n "(cached) " >&6
11351 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11354 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11355 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11358 # Check to make sure the PIC flag actually works.
11360 if test -n "$lt_prog_compiler_pic"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11363 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11364 $as_echo_n "(cached) " >&6
11366 lt_cv_prog_compiler_pic_works=no
11367 ac_outfile=conftest.$ac_objext
11368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11369 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11370 # Insert the option either (1) after the last *FLAGS variable, or
11371 # (2) before a word containing "conftest.", or (3) at the end.
11372 # Note that $ac_compile itself does not contain backslashes and begins
11373 # with a dollar sign (not a hyphen), so the echo should work correctly.
11374 # The option is referenced via a variable to avoid confusing sed.
11375 lt_compile=`echo "$ac_compile" | $SED \
11376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11378 -e 's:$: $lt_compiler_flag:'`
11379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11380 (eval "$lt_compile" 2>conftest.err)
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 if (exit $ac_status) && test -s "$ac_outfile"; then
11385 # The compiler can only warn and ignore the option if not recognized
11386 # So say no if there are warnings other than the usual output.
11387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11390 lt_cv_prog_compiler_pic_works=yes
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11397 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11399 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11400 case $lt_prog_compiler_pic in
11402 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11405 lt_prog_compiler_pic=
11406 lt_prog_compiler_can_build_shared=no
11422 # Check to make sure the static flag actually works.
11424 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11427 if ${lt_cv_prog_compiler_static_works+:} false; then :
11428 $as_echo_n "(cached) " >&6
11430 lt_cv_prog_compiler_static_works=no
11431 save_LDFLAGS="$LDFLAGS"
11432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11435 # The linker can only warn and ignore the option if not recognized
11436 # So say no if there are warnings
11437 if test -s conftest.err; then
11438 # Append any errors to the config.log.
11439 cat conftest.err 1>&5
11440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11442 if diff conftest.exp conftest.er2 >/dev/null; then
11443 lt_cv_prog_compiler_static_works=yes
11446 lt_cv_prog_compiler_static_works=yes
11450 LDFLAGS="$save_LDFLAGS"
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11454 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11456 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11459 lt_prog_compiler_static=
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11470 if ${lt_cv_prog_compiler_c_o+:} false; then :
11471 $as_echo_n "(cached) " >&6
11473 lt_cv_prog_compiler_c_o=no
11474 $RM -r conftest 2>/dev/null
11478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11480 lt_compiler_flag="-o out/conftest2.$ac_objext"
11481 # Insert the option either (1) after the last *FLAGS variable, or
11482 # (2) before a word containing "conftest.", or (3) at the end.
11483 # Note that $ac_compile itself does not contain backslashes and begins
11484 # with a dollar sign (not a hyphen), so the echo should work correctly.
11485 lt_compile=`echo "$ac_compile" | $SED \
11486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11488 -e 's:$: $lt_compiler_flag:'`
11489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11490 (eval "$lt_compile" 2>out/conftest.err)
11492 cat out/conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11496 # The compiler can only warn and ignore the option if not recognized
11497 # So say no if there are warnings
11498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11501 lt_cv_prog_compiler_c_o=yes
11506 # SGI C++ compiler will create directory out/ii_files/ for
11507 # template instantiation
11508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11509 $RM out/* && rmdir out
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11524 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11525 if ${lt_cv_prog_compiler_c_o+:} false; then :
11526 $as_echo_n "(cached) " >&6
11528 lt_cv_prog_compiler_c_o=no
11529 $RM -r conftest 2>/dev/null
11533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11535 lt_compiler_flag="-o out/conftest2.$ac_objext"
11536 # Insert the option either (1) after the last *FLAGS variable, or
11537 # (2) before a word containing "conftest.", or (3) at the end.
11538 # Note that $ac_compile itself does not contain backslashes and begins
11539 # with a dollar sign (not a hyphen), so the echo should work correctly.
11540 lt_compile=`echo "$ac_compile" | $SED \
11541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11543 -e 's:$: $lt_compiler_flag:'`
11544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11545 (eval "$lt_compile" 2>out/conftest.err)
11547 cat out/conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11551 # The compiler can only warn and ignore the option if not recognized
11552 # So say no if there are warnings
11553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11556 lt_cv_prog_compiler_c_o=yes
11561 # SGI C++ compiler will create directory out/ii_files/ for
11562 # template instantiation
11563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11564 $RM out/* && rmdir out
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11571 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11576 hard_links="nottested"
11577 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11578 # do not overwrite the value of need_locks provided by the user
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11580 $as_echo_n "checking if we can lock with hard links... " >&6; }
11583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11585 ln conftest.a conftest.b 2>&5 || hard_links=no
11586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11588 $as_echo "$hard_links" >&6; }
11589 if test "$hard_links" = no; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11591 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11604 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11607 allow_undefined_flag=
11608 always_export_symbols=no
11610 archive_expsym_cmds=
11611 compiler_needs_object=no
11612 enable_shared_with_static_runtimes=no
11613 export_dynamic_flag_spec=
11614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11615 hardcode_automatic=no
11617 hardcode_direct_absolute=no
11618 hardcode_libdir_flag_spec=
11619 hardcode_libdir_separator=
11620 hardcode_minus_L=no
11621 hardcode_shlibpath_var=unsupported
11623 link_all_deplibs=unknown
11625 module_expsym_cmds=
11626 old_archive_from_new_cmds=
11627 old_archive_from_expsyms_cmds=
11628 thread_safe_flag_spec=
11629 whole_archive_flag_spec=
11630 # include_expsyms should be a list of space-separated symbols to be *always*
11631 # included in the symbol list
11633 # exclude_expsyms can be an extended regexp of symbols to exclude
11634 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11636 # as well as any symbol that contains `d'.
11637 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11639 # platforms (ab)use it in PIC code, but their linkers get confused if
11640 # the symbol is explicitly referenced. Since portable code cannot
11641 # rely on this symbol name, it's probably fine to never include it in
11642 # preloaded symbol tables.
11643 # Exclude shared library initialization/finalization symbols.
11644 extract_expsyms_cmds=
11647 cygwin* | mingw* | pw32* | cegcc*)
11648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11649 # When not using gcc, we currently assume that we are using
11650 # Microsoft Visual C++.
11651 if test "$GCC" != yes; then
11656 # we just hope/assume this is gcc and not c89 (= MSVC++)
11666 # On some targets, GNU ld is compatible enough with the native linker
11667 # that we're better off using the native interface for both.
11668 lt_use_gnu_ld_interface=no
11669 if test "$with_gnu_ld" = yes; then
11672 # The AIX port of GNU ld has always aspired to compatibility
11673 # with the native linker. However, as the warning in the GNU ld
11674 # block says, versions before 2.19.5* couldn't really create working
11675 # shared libraries, regardless of the interface used.
11676 case `$LD -v 2>&1` in
11677 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11678 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11679 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11681 lt_use_gnu_ld_interface=yes
11686 lt_use_gnu_ld_interface=yes
11691 if test "$lt_use_gnu_ld_interface" = yes; then
11692 # If archive_cmds runs LD, not CC, wlarc should be empty
11695 # Set some defaults for GNU ld with shared library support. These
11696 # are reset later if shared libraries are not supported. Putting them
11697 # here allows them to be overridden if necessary.
11698 runpath_var=LD_RUN_PATH
11699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11700 export_dynamic_flag_spec='${wl}--export-dynamic'
11701 # ancient GNU ld didn't support --whole-archive et. al.
11702 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11703 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11705 whole_archive_flag_spec=
11707 supports_anon_versioning=no
11708 case `$LD -v 2>&1` in
11709 *GNU\ gold*) supports_anon_versioning=yes ;;
11710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11713 *\ 2.11.*) ;; # other 2.11 versions
11714 *) supports_anon_versioning=yes ;;
11717 # See if GNU ld supports shared libraries.
11720 # On AIX/PPC, the GNU linker is very broken
11721 if test "$host_cpu" != ia64; then
11725 *** Warning: the GNU linker, at least up to release 2.19, is reported
11726 *** to be unable to reliably create shared libraries on AIX.
11727 *** Therefore, libtool is disabling shared libraries support. If you
11728 *** really care for shared libraries, you may want to install binutils
11729 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11730 *** You will then need to restart the configuration process.
11739 # see comment about AmigaOS4 .so support
11740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741 archive_expsym_cmds=''
11744 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)'
11745 hardcode_libdir_flag_spec='-L$libdir'
11746 hardcode_minus_L=yes
11752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11753 allow_undefined_flag=unsupported
11754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11755 # support --undefined. This deserves some investigation. FIXME
11756 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762 cygwin* | mingw* | pw32* | cegcc*)
11763 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11764 # as there is no search path for DLLs.
11765 hardcode_libdir_flag_spec='-L$libdir'
11766 export_dynamic_flag_spec='${wl}--export-all-symbols'
11767 allow_undefined_flag=unsupported
11768 always_export_symbols=no
11769 enable_shared_with_static_runtimes=yes
11770 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'
11771 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11773 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11775 # If the export-symbols file already is a .def file (1st line
11776 # is EXPORTS), use it as is; otherwise, prepend...
11777 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11778 cp $export_symbols $output_objdir/$soname.def;
11780 echo EXPORTS > $output_objdir/$soname.def;
11781 cat $export_symbols >> $output_objdir/$soname.def;
11783 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11791 link_all_deplibs=yes
11796 hardcode_shlibpath_var=no
11797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11798 export_dynamic_flag_spec='${wl}-E'
11799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11800 # Instead, shared libraries are loaded at an image base (0x10000000 by
11801 # default) and relocated if they conflict, which is a slow very memory
11802 # consuming and fragmenting process. To avoid this, we pick a random,
11803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11806 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'
11809 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11811 if test "$host_os" = linux-dietlibc; then
11812 case $cc_basename in
11813 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11816 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11817 && test "$tmp_diet" = no
11819 tmp_addflag=' $pic_flag'
11820 tmp_sharedflag='-shared'
11821 case $cc_basename,$host_cpu in
11822 pgcc*) # Portland Group C compiler
11823 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'
11824 tmp_addflag=' $pic_flag'
11826 pgf77* | pgf90* | pgf95* | pgfortran*)
11827 # Portland Group f77 and f90 compilers
11828 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'
11829 tmp_addflag=' $pic_flag -Mnomain' ;;
11830 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11831 tmp_addflag=' -i_dynamic' ;;
11832 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11833 tmp_addflag=' -i_dynamic -nofor_main' ;;
11834 ifc* | ifort*) # Intel Fortran compiler
11835 tmp_addflag=' -nofor_main' ;;
11836 lf95*) # Lahey Fortran 8.1
11837 whole_archive_flag_spec=
11838 tmp_sharedflag='--shared' ;;
11839 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11840 tmp_sharedflag='-qmkshrobj'
11842 nvcc*) # Cuda Compiler Driver 2.2
11843 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'
11844 compiler_needs_object=yes
11847 case `$CC -V 2>&1 | sed 5q` in
11848 *Sun\ C*) # Sun C 5.9
11849 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'
11850 compiler_needs_object=yes
11851 tmp_sharedflag='-G' ;;
11852 *Sun\ F*) # Sun Fortran 8.3
11853 tmp_sharedflag='-G' ;;
11855 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11857 if test "x$supports_anon_versioning" = xyes; then
11858 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11860 echo "local: *; };" >> $output_objdir/$libname.ver~
11861 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11864 case $cc_basename in
11865 xlf* | bgf* | bgxlf* | mpixlf*)
11866 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11867 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11869 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11870 if test "x$supports_anon_versioning" = xyes; then
11871 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11873 echo "local: *; };" >> $output_objdir/$libname.ver~
11874 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11885 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11889 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11894 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11898 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11899 *** create shared libraries on Solaris systems. Therefore, libtool
11900 *** is disabling shared libraries support. We urge you to upgrade GNU
11901 *** binutils to release 2.9.1 or newer. Another option is to modify
11902 *** your PATH or compiler configuration so that the native linker is
11903 *** used, and then restart.
11906 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11907 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11908 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11915 case `$LD -v 2>&1` in
11916 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11920 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11921 *** reliably create shared libraries on SCO systems. Therefore, libtool
11922 *** is disabling shared libraries support. We urge you to upgrade GNU
11923 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11924 *** your PATH or compiler configuration so that the native linker is
11925 *** used, and then restart.
11930 # For security reasons, it is highly recommended that you always
11931 # use absolute paths for naming shared libraries, and exclude the
11932 # DT_RUNPATH tag from executables and libraries. But doing so
11933 # requires that you compile everything twice, which is a pain.
11934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11946 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11948 hardcode_direct=yes
11949 hardcode_shlibpath_var=no
11953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11954 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11955 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11962 if test "$ld_shlibs" = no; then
11964 hardcode_libdir_flag_spec=
11965 export_dynamic_flag_spec=
11966 whole_archive_flag_spec=
11969 # PORTME fill in a description of your system's linker (not GNU ld)
11972 allow_undefined_flag=unsupported
11973 always_export_symbols=yes
11974 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'
11975 # Note: this linker hardcodes the directories in LIBPATH if there
11976 # are no directories specified by -L.
11977 hardcode_minus_L=yes
11978 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11979 # Neither direct hardcoding nor static linking is supported with a
11981 hardcode_direct=unsupported
11986 if test "$host_cpu" = ia64; then
11987 # On IA64, the linker does run time linking by default, so we don't
11988 # have to do anything special.
11989 aix_use_runtimelinking=no
11990 exp_sym_flag='-Bexport'
11993 # If we're using GNU nm, then we don't want the "-C" option.
11994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11995 # Also, AIX nm treats weak defined symbols like other global
11996 # defined symbols, whereas GNU nm marks them as "W".
11997 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11998 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12000 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12002 aix_use_runtimelinking=no
12004 # Test if we are trying to use run time linking or normal
12005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12006 # need to do runtime linking.
12007 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12008 for ld_flag in $LDFLAGS; do
12009 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12010 aix_use_runtimelinking=yes
12017 exp_sym_flag='-bexport'
12018 no_entry_flag='-bnoentry'
12021 # When large executables or shared objects are built, AIX ld can
12022 # have problems creating the table of contents. If linking a library
12023 # or program results in "error TOC overflow" add -mminimal-toc to
12024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12028 hardcode_direct=yes
12029 hardcode_direct_absolute=yes
12030 hardcode_libdir_separator=':'
12031 link_all_deplibs=yes
12032 file_list_spec='${wl}-f,'
12034 if test "$GCC" = yes; then
12035 case $host_os in aix4.[012]|aix4.[012].*)
12036 # We only want to do this on AIX 4.2 and lower, the check
12037 # below for broken collect2 doesn't work under 4.3+
12038 collect2name=`${CC} -print-prog-name=collect2`
12039 if test -f "$collect2name" &&
12040 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12042 # We have reworked collect2
12045 # We have old collect2
12046 hardcode_direct=unsupported
12047 # It fails to find uninstalled libraries when the uninstalled
12048 # path is not listed in the libpath. Setting hardcode_minus_L
12049 # to unsupported forces relinking
12050 hardcode_minus_L=yes
12051 hardcode_libdir_flag_spec='-L$libdir'
12052 hardcode_libdir_separator=
12056 shared_flag='-shared'
12057 if test "$aix_use_runtimelinking" = yes; then
12058 shared_flag="$shared_flag "'${wl}-G'
12062 if test "$host_cpu" = ia64; then
12063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12064 # chokes on -Wl,-G. The following line is correct:
12067 if test "$aix_use_runtimelinking" = yes; then
12068 shared_flag='${wl}-G'
12070 shared_flag='${wl}-bM:SRE'
12075 export_dynamic_flag_spec='${wl}-bexpall'
12076 # It seems that -bexpall does not export symbols beginning with
12077 # underscore (_), so it is better to generate a list of symbols to export.
12078 always_export_symbols=yes
12079 if test "$aix_use_runtimelinking" = yes; then
12080 # Warning - without using the other runtime loading flags (-brtl),
12081 # -berok will link without error, but may produce a broken library.
12082 allow_undefined_flag='-berok'
12083 # Determine the default libpath from the value encoded in an
12084 # empty executable.
12085 if test "${lt_cv_aix_libpath+set}" = set; then
12086 aix_libpath=$lt_cv_aix_libpath
12088 if ${lt_cv_aix_libpath_+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12102 if ac_fn_c_try_link "$LINENO"; then :
12104 lt_aix_libpath_sed='
12105 /Import File Strings/,/^$/ {
12107 s/^0 *\([^ ]*\) *$/\1/
12111 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12112 # Check for a 64-bit object if we didn't find anything.
12113 if test -z "$lt_cv_aix_libpath_"; then
12114 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12117 rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 if test -z "$lt_cv_aix_libpath_"; then
12120 lt_cv_aix_libpath_="/usr/lib:/lib"
12125 aix_libpath=$lt_cv_aix_libpath_
12128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12129 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12131 if test "$host_cpu" = ia64; then
12132 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12133 allow_undefined_flag="-z nodefs"
12134 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"
12136 # Determine the default libpath from the value encoded in an
12137 # empty executable.
12138 if test "${lt_cv_aix_libpath+set}" = set; then
12139 aix_libpath=$lt_cv_aix_libpath
12141 if ${lt_cv_aix_libpath_+:} false; then :
12142 $as_echo_n "(cached) " >&6
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12155 if ac_fn_c_try_link "$LINENO"; then :
12157 lt_aix_libpath_sed='
12158 /Import File Strings/,/^$/ {
12160 s/^0 *\([^ ]*\) *$/\1/
12164 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12165 # Check for a 64-bit object if we didn't find anything.
12166 if test -z "$lt_cv_aix_libpath_"; then
12167 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 if test -z "$lt_cv_aix_libpath_"; then
12173 lt_cv_aix_libpath_="/usr/lib:/lib"
12178 aix_libpath=$lt_cv_aix_libpath_
12181 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12182 # Warning - without using the other run time loading flags,
12183 # -berok will link without error, but may produce a broken library.
12184 no_undefined_flag=' ${wl}-bernotok'
12185 allow_undefined_flag=' ${wl}-berok'
12186 if test "$with_gnu_ld" = yes; then
12187 # We only use this code for GNU lds that support --whole-archive.
12188 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12190 # Exported symbols can be pulled into shared objects from archives
12191 whole_archive_flag_spec='$convenience'
12193 archive_cmds_need_lc=yes
12194 # This is similar to how AIX traditionally builds its shared libraries.
12195 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12203 # see comment about AmigaOS4 .so support
12204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12205 archive_expsym_cmds=''
12208 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)'
12209 hardcode_libdir_flag_spec='-L$libdir'
12210 hardcode_minus_L=yes
12216 export_dynamic_flag_spec=-rdynamic
12219 cygwin* | mingw* | pw32* | cegcc*)
12220 # When not using gcc, we currently assume that we are using
12221 # Microsoft Visual C++.
12222 # hardcode_libdir_flag_spec is actually meaningless, as there is
12223 # no search path for DLLs.
12224 case $cc_basename in
12227 hardcode_libdir_flag_spec=' '
12228 allow_undefined_flag=unsupported
12229 always_export_symbols=yes
12231 # Tell ltmain to make .lib files, not .a files.
12233 # Tell ltmain to make .dll files, not .so files.
12235 # FIXME: Setting linknames here is a bad hack.
12236 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12238 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12240 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12242 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12244 # The linker will not automatically build a static lib if we build a DLL.
12245 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12246 enable_shared_with_static_runtimes=yes
12247 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12250 old_postinstall_cmds='chmod 644 $oldlib'
12251 postlink_cmds='lt_outputfile="@OUTPUT@"~
12252 lt_tool_outputfile="@TOOL_OUTPUT@"~
12253 case $lt_outputfile in
12256 lt_outputfile="$lt_outputfile.exe"
12257 lt_tool_outputfile="$lt_tool_outputfile.exe"
12260 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12261 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12262 $RM "$lt_outputfile.manifest";
12266 # Assume MSVC wrapper
12267 hardcode_libdir_flag_spec=' '
12268 allow_undefined_flag=unsupported
12269 # Tell ltmain to make .lib files, not .a files.
12271 # Tell ltmain to make .dll files, not .so files.
12273 # FIXME: Setting linknames here is a bad hack.
12274 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12275 # The linker will automatically build a .lib file if we build a DLL.
12276 old_archive_from_new_cmds='true'
12277 # FIXME: Should let the user specify the lib program.
12278 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12279 enable_shared_with_static_runtimes=yes
12284 darwin* | rhapsody*)
12287 archive_cmds_need_lc=no
12289 hardcode_automatic=yes
12290 hardcode_shlibpath_var=unsupported
12291 if test "$lt_cv_ld_force_load" = "yes"; then
12292 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\"`'
12295 whole_archive_flag_spec=''
12297 link_all_deplibs=yes
12298 allow_undefined_flag="$_lt_dar_allow_undefined"
12299 case $cc_basename in
12300 ifort*) _lt_dar_can_shared=yes ;;
12301 *) _lt_dar_can_shared=$GCC ;;
12303 if test "$_lt_dar_can_shared" = "yes"; then
12304 output_verbose_link_cmd=func_echo_all
12305 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12306 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12307 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}"
12308 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}"
12317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12318 hardcode_libdir_flag_spec='-L$libdir'
12319 hardcode_shlibpath_var=no
12322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12323 # support. Future versions do this automatically, but an explicit c++rt0.o
12324 # does not break anything, and helps significantly (at the cost of a little
12327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12328 hardcode_libdir_flag_spec='-R$libdir'
12329 hardcode_direct=yes
12330 hardcode_shlibpath_var=no
12333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12336 hardcode_direct=yes
12337 hardcode_minus_L=yes
12338 hardcode_shlibpath_var=no
12341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12342 freebsd* | dragonfly*)
12343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12344 hardcode_libdir_flag_spec='-R$libdir'
12345 hardcode_direct=yes
12346 hardcode_shlibpath_var=no
12350 if test "$GCC" = yes; then
12351 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12353 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12356 hardcode_libdir_separator=:
12357 hardcode_direct=yes
12359 # hardcode_minus_L: Not really in the search PATH,
12360 # but as the default location of the library.
12361 hardcode_minus_L=yes
12362 export_dynamic_flag_spec='${wl}-E'
12366 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12367 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12371 if test "$with_gnu_ld" = no; then
12372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12373 hardcode_libdir_separator=:
12374 hardcode_direct=yes
12375 hardcode_direct_absolute=yes
12376 export_dynamic_flag_spec='${wl}-E'
12377 # hardcode_minus_L: Not really in the search PATH,
12378 # but as the default location of the library.
12379 hardcode_minus_L=yes
12384 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12387 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12390 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12393 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12399 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12406 # Older versions of the 11.00 compiler do not understand -b yet
12407 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12409 $as_echo_n "checking if $CC understands -b... " >&6; }
12410 if ${lt_cv_prog_compiler__b+:} false; then :
12411 $as_echo_n "(cached) " >&6
12413 lt_cv_prog_compiler__b=no
12414 save_LDFLAGS="$LDFLAGS"
12415 LDFLAGS="$LDFLAGS -b"
12416 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12418 # The linker can only warn and ignore the option if not recognized
12419 # So say no if there are warnings
12420 if test -s conftest.err; then
12421 # Append any errors to the config.log.
12422 cat conftest.err 1>&5
12423 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12425 if diff conftest.exp conftest.er2 >/dev/null; then
12426 lt_cv_prog_compiler__b=yes
12429 lt_cv_prog_compiler__b=yes
12433 LDFLAGS="$save_LDFLAGS"
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12437 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12439 if test x"$lt_cv_prog_compiler__b" = xyes; then
12440 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12448 if test "$with_gnu_ld" = no; then
12449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12450 hardcode_libdir_separator=:
12455 hardcode_shlibpath_var=no
12458 hardcode_direct=yes
12459 hardcode_direct_absolute=yes
12460 export_dynamic_flag_spec='${wl}-E'
12462 # hardcode_minus_L: Not really in the search PATH,
12463 # but as the default location of the library.
12464 hardcode_minus_L=yes
12470 irix5* | irix6* | nonstopux*)
12471 if test "$GCC" = yes; then
12472 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'
12473 # Try to use the -exported_symbol ld option, if it does not
12474 # work, assume that -exports_file does not work either and
12475 # implicitly export all symbols.
12476 # This should be the same for all languages, so no per-tag cache variable.
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12478 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12479 if ${lt_cv_irix_exported_symbol+:} false; then :
12480 $as_echo_n "(cached) " >&6
12482 save_LDFLAGS="$LDFLAGS"
12483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 int foo (void) { return 0; }
12488 if ac_fn_c_try_link "$LINENO"; then :
12489 lt_cv_irix_exported_symbol=yes
12491 lt_cv_irix_exported_symbol=no
12493 rm -f core conftest.err conftest.$ac_objext \
12494 conftest$ac_exeext conftest.$ac_ext
12495 LDFLAGS="$save_LDFLAGS"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12498 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12499 if test "$lt_cv_irix_exported_symbol" = yes; then
12500 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'
12503 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'
12504 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'
12506 archive_cmds_need_lc='no'
12507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12508 hardcode_libdir_separator=:
12510 link_all_deplibs=yes
12514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12517 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12519 hardcode_libdir_flag_spec='-R$libdir'
12520 hardcode_direct=yes
12521 hardcode_shlibpath_var=no
12525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12526 hardcode_direct=yes
12527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12528 hardcode_libdir_separator=:
12529 hardcode_shlibpath_var=no
12536 if test -f /usr/libexec/ld.so; then
12537 hardcode_direct=yes
12538 hardcode_shlibpath_var=no
12539 hardcode_direct_absolute=yes
12540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12544 export_dynamic_flag_spec='${wl}-E'
12547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12549 hardcode_libdir_flag_spec='-R$libdir'
12552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12563 hardcode_libdir_flag_spec='-L$libdir'
12564 hardcode_minus_L=yes
12565 allow_undefined_flag=unsupported
12566 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12567 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12571 if test "$GCC" = yes; then
12572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12573 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'
12575 allow_undefined_flag=' -expect_unresolved \*'
12576 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'
12578 archive_cmds_need_lc='no'
12579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12580 hardcode_libdir_separator=:
12583 osf4* | osf5*) # as osf3* with the addition of -msym flag
12584 if test "$GCC" = yes; then
12585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12586 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'
12587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12589 allow_undefined_flag=' -expect_unresolved \*'
12590 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'
12591 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~
12592 $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'
12594 # Both c and cxx compiler support -rpath directly
12595 hardcode_libdir_flag_spec='-rpath $libdir'
12597 archive_cmds_need_lc='no'
12598 hardcode_libdir_separator=:
12602 no_undefined_flag=' -z defs'
12603 if test "$GCC" = yes; then
12605 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12607 $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'
12609 case `$CC -V 2>&1` in
12612 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12614 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12618 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12620 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12624 hardcode_libdir_flag_spec='-R$libdir'
12625 hardcode_shlibpath_var=no
12627 solaris2.[0-5] | solaris2.[0-5].*) ;;
12629 # The compiler driver will combine and reorder linker options,
12630 # but understands `-z linker_flag'. GCC discards it without `$wl',
12631 # but is careful enough not to reorder.
12632 # Supported since Solaris 2.6 (maybe 2.5.1?)
12633 if test "$GCC" = yes; then
12634 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12636 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12640 link_all_deplibs=yes
12644 if test "x$host_vendor" = xsequent; then
12645 # Use $CC to link under sequent, because it throws in some extra .o
12646 # files that make .init and .fini sections work.
12647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12651 hardcode_libdir_flag_spec='-L$libdir'
12652 hardcode_direct=yes
12653 hardcode_minus_L=yes
12654 hardcode_shlibpath_var=no
12658 case $host_vendor in
12660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12661 hardcode_direct=yes # is this really true???
12664 ## LD is ld it makes a PLAMLIB
12665 ## CC just makes a GrossModule.
12666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12667 reload_cmds='$CC -r -o $output$reload_objs'
12671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12675 runpath_var='LD_RUN_PATH'
12676 hardcode_shlibpath_var=no
12680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12681 hardcode_shlibpath_var=no
12682 export_dynamic_flag_spec='-Bexport'
12686 if test -d /usr/nec; then
12687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12688 hardcode_shlibpath_var=no
12689 runpath_var=LD_RUN_PATH
12690 hardcode_runpath_var=yes
12695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12696 no_undefined_flag='${wl}-z,text'
12697 archive_cmds_need_lc=no
12698 hardcode_shlibpath_var=no
12699 runpath_var='LD_RUN_PATH'
12701 if test "$GCC" = yes; then
12702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12710 sysv5* | sco3.2v5* | sco5v6*)
12711 # Note: We can NOT use -z defs as we might desire, because we do not
12712 # link with -lc, and that would cause any symbols used from libc to
12713 # always be unresolved, which means just about no library would
12714 # ever link correctly. If we're not using GNU ld we use -z text
12715 # though, which does catch some bad symbols but isn't as heavy-handed
12717 no_undefined_flag='${wl}-z,text'
12718 allow_undefined_flag='${wl}-z,nodefs'
12719 archive_cmds_need_lc=no
12720 hardcode_shlibpath_var=no
12721 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12722 hardcode_libdir_separator=':'
12723 link_all_deplibs=yes
12724 export_dynamic_flag_spec='${wl}-Bexport'
12725 runpath_var='LD_RUN_PATH'
12727 if test "$GCC" = yes; then
12728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738 hardcode_libdir_flag_spec='-L$libdir'
12739 hardcode_shlibpath_var=no
12747 if test x$host_vendor = xsni; then
12749 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12750 export_dynamic_flag_spec='${wl}-Blargedynsym'
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12757 $as_echo "$ld_shlibs" >&6; }
12758 test "$ld_shlibs" = no && can_build_shared=no
12760 with_gnu_ld=$with_gnu_ld
12777 # Do we need to explicitly link libc?
12779 case "x$archive_cmds_need_lc" in
12781 # Assume -lc should be added
12782 archive_cmds_need_lc=yes
12784 if test "$enable_shared" = yes && test "$GCC" = yes; then
12785 case $archive_cmds in
12787 # FIXME: we may have to deal with multi-command sequences.
12790 # Test whether the compiler implicitly links with -lc since on some
12791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12792 # to ld, don't add -lc before -lgcc.
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12794 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12795 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12796 $as_echo_n "(cached) " >&6
12799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12802 (eval $ac_compile) 2>&5
12804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12805 test $ac_status = 0; } 2>conftest.err; then
12808 libobjs=conftest.$ac_objext
12810 wl=$lt_prog_compiler_wl
12811 pic_flag=$lt_prog_compiler_pic
12817 lt_save_allow_undefined_flag=$allow_undefined_flag
12818 allow_undefined_flag=
12819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12820 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823 test $ac_status = 0; }
12825 lt_cv_archive_cmds_need_lc=no
12827 lt_cv_archive_cmds_need_lc=yes
12829 allow_undefined_flag=$lt_save_allow_undefined_flag
12831 cat conftest.err 1>&5
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12837 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12838 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12999 if test "$GCC" = yes; then
13001 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13002 *) lt_awk_arg="/^libraries:/" ;;
13005 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13006 *) lt_sed_strip_eq="s,=/,/,g" ;;
13008 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13009 case $lt_search_path_spec in
13011 # if the path contains ";" then we assume it to be the separator
13012 # otherwise default to the standard path separator (i.e. ":") - it is
13013 # assumed that no part of a normal pathname contains ";" but that should
13014 # okay in the real world where ";" in dirpaths is itself problematic.
13015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13021 # Ok, now we have the path, separated by spaces, we can step through it
13022 # and add multilib dir if necessary.
13023 lt_tmp_lt_search_path_spec=
13024 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13025 for lt_sys_path in $lt_search_path_spec; do
13026 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13029 test -d "$lt_sys_path" && \
13030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13033 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13034 BEGIN {RS=" "; FS="/|\n";} {
13037 for (lt_i = NF; lt_i > 0; lt_i--) {
13038 if ($lt_i != "" && $lt_i != ".") {
13039 if ($lt_i == "..") {
13042 if (lt_count == 0) {
13043 lt_foo="/" $lt_i lt_foo;
13050 if (lt_foo != "") { lt_freq[lt_foo]++; }
13051 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13053 # AWK program above erroneously prepends '/' to C:/dos/paths
13056 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13057 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13059 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13063 library_names_spec=
13064 libname_spec='lib$name'
13068 postuninstall_cmds=
13072 shlibpath_overrides_runpath=unknown
13074 dynamic_linker="$host_os ld.so"
13075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13076 need_lib_prefix=unknown
13077 hardcode_into_libs=no
13079 # when you set need_version to no, make sure it does not cause -set_version
13080 # flags to be left without arguments
13081 need_version=unknown
13085 version_type=linux # correct to gnu/linux during the next big refactor
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13087 shlibpath_var=LIBPATH
13089 # AIX 3 has no versioning support, so we append a major version to the name.
13090 soname_spec='${libname}${release}${shared_ext}$major'
13094 version_type=linux # correct to gnu/linux during the next big refactor
13097 hardcode_into_libs=yes
13098 if test "$host_cpu" = ia64; then
13099 # AIX 5 supports IA64
13100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13101 shlibpath_var=LD_LIBRARY_PATH
13103 # With GCC up to 2.95.x, collect2 would create an import file
13104 # for dependence libraries. The import file would start with
13105 # the line `#! .'. This would cause the generated library to
13106 # depend on `.', always an invalid library. This was fixed in
13107 # development snapshots of GCC prior to 3.0.
13109 aix4 | aix4.[01] | aix4.[01].*)
13110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13112 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13115 can_build_shared=no
13119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13120 # soname into executable. Probably we can add versioning support to
13121 # collect2, so additional links can be useful in future.
13122 if test "$aix_use_runtimelinking" = yes; then
13123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13124 # instead of lib<name>.a to let people know that these are not
13125 # typical AIX shared libraries.
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128 # We preserve .a as extension for shared libraries through AIX4.2
13129 # and later when we are not doing run time linking.
13130 library_names_spec='${libname}${release}.a $libname.a'
13131 soname_spec='${libname}${release}${shared_ext}$major'
13133 shlibpath_var=LIBPATH
13140 # Since July 2007 AmigaOS4 officially supports .so libraries.
13141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13145 library_names_spec='$libname.ixlibrary $libname.a'
13146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13147 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13153 library_names_spec='${libname}${shared_ext}'
13154 dynamic_linker="$host_os ld.so"
13155 shlibpath_var=LIBRARY_PATH
13159 version_type=linux # correct to gnu/linux during the next big refactor
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13167 # the default ld.so.conf also contains /usr/contrib/lib and
13168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13169 # libtool to hard-code these into programs
13172 cygwin* | mingw* | pw32* | cegcc*)
13173 version_type=windows
13178 case $GCC,$cc_basename in
13181 library_names_spec='$libname.dll.a'
13182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13183 postinstall_cmds='base_file=`basename \${file}`~
13184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13185 dldir=$destdir/`dirname \$dlpath`~
13186 test -d \$dldir || mkdir -p \$dldir~
13187 $install_prog $dir/$dlname \$dldir/$dlname~
13188 chmod a+x \$dldir/$dlname~
13189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13193 dlpath=$dir/\$dldll~
13195 shlibpath_overrides_runpath=yes
13199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13205 # MinGW DLLs use traditional 'lib' prefix
13206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13209 # pw32 DLLs use 'pw' prefix rather than 'lib'
13210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13213 dynamic_linker='Win32 ld.exe'
13218 libname_spec='$name'
13219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13220 library_names_spec='${libname}.dll.lib'
13224 sys_lib_search_path_spec=
13227 for lt_path in $LIB
13230 # Let DOS variable expansion print the short 8.3 style file name.
13231 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13232 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13235 # Convert to MSYS style.
13236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13239 # Convert to unix form, then to dos form, then back to unix form
13240 # but this time dos style (no spaces!) so that the unix form looks
13241 # like /cygdrive/c/PROGRA~1:/cygdr...
13242 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13243 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13244 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13247 sys_lib_search_path_spec="$LIB"
13248 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13249 # It is most probably a Windows format PATH.
13250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13254 # FIXME: find the short name or the path components, as spaces are
13255 # common. (e.g. "Program Files" -> "PROGRA~1")
13259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13260 postinstall_cmds='base_file=`basename \${file}`~
13261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13262 dldir=$destdir/`dirname \$dlpath`~
13263 test -d \$dldir || mkdir -p \$dldir~
13264 $install_prog $dir/$dlname \$dldir/$dlname'
13265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13266 dlpath=$dir/\$dldll~
13268 shlibpath_overrides_runpath=yes
13269 dynamic_linker='Win32 link.exe'
13273 # Assume MSVC wrapper
13274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13275 dynamic_linker='Win32 ld.exe'
13278 # FIXME: first we should search . and the directory the executable is in
13282 darwin* | rhapsody*)
13283 dynamic_linker="$host_os dyld"
13284 version_type=darwin
13287 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13288 soname_spec='${libname}${release}${major}$shared_ext'
13289 shlibpath_overrides_runpath=yes
13290 shlibpath_var=DYLD_LIBRARY_PATH
13291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13293 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13298 version_type=linux # correct to gnu/linux during the next big refactor
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13306 freebsd* | dragonfly*)
13307 # DragonFly does not have aout. When/if they implement a new
13308 # versioning mechanism, adjust this.
13309 if test -x /usr/bin/objformat; then
13310 objformat=`/usr/bin/objformat`
13313 freebsd[23].*) objformat=aout ;;
13314 *) objformat=elf ;;
13317 version_type=freebsd-$objformat
13318 case $version_type in
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13329 shlibpath_var=LD_LIBRARY_PATH
13332 shlibpath_overrides_runpath=yes
13334 freebsd3.[01]* | freebsdelf3.[01]*)
13335 shlibpath_overrides_runpath=yes
13336 hardcode_into_libs=yes
13338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13340 shlibpath_overrides_runpath=no
13341 hardcode_into_libs=yes
13343 *) # from 4.6 on, and DragonFly
13344 shlibpath_overrides_runpath=yes
13345 hardcode_into_libs=yes
13351 version_type=linux # correct to gnu/linux during the next big refactor
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13355 soname_spec='${libname}${release}${shared_ext}$major'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 shlibpath_overrides_runpath=no
13358 hardcode_into_libs=yes
13362 version_type=linux # correct to gnu/linux during the next big refactor
13365 dynamic_linker="$host_os runtime_loader"
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 shlibpath_var=LIBRARY_PATH
13369 shlibpath_overrides_runpath=yes
13370 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13371 hardcode_into_libs=yes
13374 hpux9* | hpux10* | hpux11*)
13375 # Give a soname corresponding to the major version so that dld.sl refuses to
13376 # link against other versions.
13383 hardcode_into_libs=yes
13384 dynamic_linker="$host_os dld.so"
13385 shlibpath_var=LD_LIBRARY_PATH
13386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13389 if test "X$HPUX_IA64_MODE" = X32; then
13390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13398 hardcode_into_libs=yes
13399 dynamic_linker="$host_os dld.sl"
13400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13409 dynamic_linker="$host_os dld.sl"
13410 shlibpath_var=SHLIB_PATH
13411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413 soname_spec='${libname}${release}${shared_ext}$major'
13416 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13417 postinstall_cmds='chmod 555 $lib'
13418 # or fails outright, so override atomically:
13419 install_override_mode=555
13423 version_type=linux # correct to gnu/linux during the next big refactor
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427 soname_spec='${libname}${release}${shared_ext}$major'
13428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13429 shlibpath_var=LD_LIBRARY_PATH
13430 shlibpath_overrides_runpath=no
13431 hardcode_into_libs=yes
13434 irix5* | irix6* | nonstopux*)
13436 nonstopux*) version_type=nonstopux ;;
13438 if test "$lt_cv_prog_gnu_ld" = yes; then
13439 version_type=linux # correct to gnu/linux during the next big refactor
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13449 irix5* | nonstopux*)
13450 libsuff= shlibsuff=
13453 case $LD in # libtool.m4 will add one of these switches to LD
13454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13455 libsuff= shlibsuff= libmagic=32-bit;;
13456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13457 libsuff=32 shlibsuff=N32 libmagic=N32;;
13458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13459 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13460 *) libsuff= shlibsuff= libmagic=never-match;;
13464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13465 shlibpath_overrides_runpath=no
13466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13468 hardcode_into_libs=yes
13471 # No shared lib support for Linux oldld, aout, or coff.
13472 linux*oldld* | linux*aout* | linux*coff*)
13476 # This must be glibc/ELF.
13477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13478 version_type=linux # correct to gnu/linux during the next big refactor
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13484 shlibpath_var=LD_LIBRARY_PATH
13485 shlibpath_overrides_runpath=no
13487 # Some binutils ld are patched to set DT_RUNPATH
13488 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13489 $as_echo_n "(cached) " >&6
13491 lt_cv_shlibpath_overrides_runpath=no
13492 save_LDFLAGS=$LDFLAGS
13493 save_libdir=$libdir
13494 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13495 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13507 if ac_fn_c_try_link "$LINENO"; then :
13508 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13509 lt_cv_shlibpath_overrides_runpath=yes
13512 rm -f core conftest.err conftest.$ac_objext \
13513 conftest$ac_exeext conftest.$ac_ext
13514 LDFLAGS=$save_LDFLAGS
13515 libdir=$save_libdir
13519 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13521 # This implies no fast_install, which is unacceptable.
13522 # Some rework will be needed to allow for fast_install
13523 # before this can be enabled.
13524 hardcode_into_libs=yes
13526 # Append ld.so.conf contents to the search path
13527 if test -f /etc/ld.so.conf; then
13528 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' ' '`
13529 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13532 # We used to test for /lib/ld.so.1 and disable shared libraries on
13533 # powerpc, because MkLinux only supported shared libraries with the
13534 # GNU dynamic linker. Since this was broken with cross compilers,
13535 # most powerpc-linux boxes support dynamic linking these days and
13536 # people can always --disable-shared, the test was removed, and we
13537 # assume the GNU/Linux dynamic linker is in use.
13538 dynamic_linker='GNU/Linux ld.so'
13545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548 dynamic_linker='NetBSD (a.out) ld.so'
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13551 soname_spec='${libname}${release}${shared_ext}$major'
13552 dynamic_linker='NetBSD ld.elf_so'
13554 shlibpath_var=LD_LIBRARY_PATH
13555 shlibpath_overrides_runpath=yes
13556 hardcode_into_libs=yes
13560 version_type=linux # correct to gnu/linux during the next big refactor
13561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=yes
13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571 soname_spec='${libname}${release}${shared_ext}$major'
13572 shlibpath_var=LD_LIBRARY_PATH
13573 shlibpath_overrides_runpath=no
13574 hardcode_into_libs=yes
13575 dynamic_linker='ldqnx.so'
13580 sys_lib_dlsearch_path_spec="/usr/lib"
13582 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13584 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13585 *) need_version=no ;;
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13592 openbsd2.[89] | openbsd2.[89].*)
13593 shlibpath_overrides_runpath=no
13596 shlibpath_overrides_runpath=yes
13600 shlibpath_overrides_runpath=yes
13605 libname_spec='$name'
13608 library_names_spec='$libname${shared_ext} $libname.a'
13609 dynamic_linker='OS/2 ld.exe'
13610 shlibpath_var=LIBPATH
13613 osf3* | osf4* | osf5*)
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13621 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13629 version_type=linux # correct to gnu/linux during the next big refactor
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 shlibpath_overrides_runpath=yes
13636 hardcode_into_libs=yes
13637 # ldd complains unless libraries are executable
13638 postinstall_cmds='chmod +x $lib'
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13644 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 shlibpath_overrides_runpath=yes
13647 if test "$with_gnu_ld" = yes; then
13654 version_type=linux # correct to gnu/linux during the next big refactor
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 case $host_vendor in
13660 shlibpath_overrides_runpath=no
13662 runpath_var=LD_RUN_PATH
13670 shlibpath_overrides_runpath=no
13671 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13677 if test -d /usr/nec ;then
13678 version_type=linux # correct to gnu/linux during the next big refactor
13679 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13680 soname_spec='$libname${shared_ext}.$major'
13681 shlibpath_var=LD_LIBRARY_PATH
13685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13686 version_type=freebsd-elf
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=yes
13693 hardcode_into_libs=yes
13694 if test "$with_gnu_ld" = yes; then
13695 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13697 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13700 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13704 sys_lib_dlsearch_path_spec='/usr/lib'
13708 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13709 version_type=linux # correct to gnu/linux during the next big refactor
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 shlibpath_overrides_runpath=no
13715 hardcode_into_libs=yes
13719 version_type=linux # correct to gnu/linux during the next big refactor
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13721 soname_spec='${libname}${release}${shared_ext}$major'
13722 shlibpath_var=LD_LIBRARY_PATH
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13730 $as_echo "$dynamic_linker" >&6; }
13731 test "$dynamic_linker" = no && can_build_shared=no
13733 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13734 if test "$GCC" = yes; then
13735 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13738 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13739 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13741 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13742 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13837 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13839 if test -n "$hardcode_libdir_flag_spec" ||
13840 test -n "$runpath_var" ||
13841 test "X$hardcode_automatic" = "Xyes" ; then
13843 # We can hardcode non-existent directories.
13844 if test "$hardcode_direct" != no &&
13845 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13846 # have to relink, otherwise we might link with an installed library
13847 # when we should be linking with a yet-to-be-installed one
13848 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13849 test "$hardcode_minus_L" != no; then
13850 # Linking always hardcodes the temporary library directory.
13851 hardcode_action=relink
13853 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13854 hardcode_action=immediate
13857 # We cannot hardcode anything, or else we can only hardcode existing
13859 hardcode_action=unsupported
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13862 $as_echo "$hardcode_action" >&6; }
13864 if test "$hardcode_action" = relink ||
13865 test "$inherit_rpath" = yes; then
13866 # Fast installation is not supported
13867 enable_fast_install=no
13868 elif test "$shlibpath_overrides_runpath" = yes ||
13869 test "$enable_shared" = no; then
13870 # Fast installation is not necessary
13871 enable_fast_install=needless
13879 if test "x$enable_dlopen" != xyes; then
13880 enable_dlopen=unknown
13881 enable_dlopen_self=unknown
13882 enable_dlopen_self_static=unknown
13889 lt_cv_dlopen="load_add_on"
13891 lt_cv_dlopen_self=yes
13894 mingw* | pw32* | cegcc*)
13895 lt_cv_dlopen="LoadLibrary"
13900 lt_cv_dlopen="dlopen"
13905 # if libdl is installed we need to link against it
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13907 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13908 if ${ac_cv_lib_dl_dlopen+:} false; then :
13909 $as_echo_n "(cached) " >&6
13911 ac_check_lib_save_LIBS=$LIBS
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13931 if ac_fn_c_try_link "$LINENO"; then :
13932 ac_cv_lib_dl_dlopen=yes
13934 ac_cv_lib_dl_dlopen=no
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13942 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13946 lt_cv_dlopen="dyld"
13948 lt_cv_dlopen_self=yes
13955 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13956 if test "x$ac_cv_func_shl_load" = xyes; then :
13957 lt_cv_dlopen="shl_load"
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13960 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13961 if ${ac_cv_lib_dld_shl_load+:} false; then :
13962 $as_echo_n "(cached) " >&6
13964 ac_check_lib_save_LIBS=$LIBS
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13969 /* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
13979 return shl_load ();
13984 if ac_fn_c_try_link "$LINENO"; then :
13985 ac_cv_lib_dld_shl_load=yes
13987 ac_cv_lib_dld_shl_load=no
13989 rm -f core conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13994 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13995 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13996 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13998 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13999 if test "x$ac_cv_func_dlopen" = xyes; then :
14000 lt_cv_dlopen="dlopen"
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14003 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14004 if ${ac_cv_lib_dl_dlopen+:} false; then :
14005 $as_echo_n "(cached) " >&6
14007 ac_check_lib_save_LIBS=$LIBS
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14012 /* Override any GCC internal prototype to avoid an error.
14013 Use char because int might match the return type of a GCC
14014 builtin and then its argument prototype would still apply. */
14027 if ac_fn_c_try_link "$LINENO"; then :
14028 ac_cv_lib_dl_dlopen=yes
14030 ac_cv_lib_dl_dlopen=no
14032 rm -f core conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14034 LIBS=$ac_check_lib_save_LIBS
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14037 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14038 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14042 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14043 if ${ac_cv_lib_svld_dlopen+:} false; then :
14044 $as_echo_n "(cached) " >&6
14046 ac_check_lib_save_LIBS=$LIBS
14047 LIBS="-lsvld $LIBS"
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14051 /* Override any GCC internal prototype to avoid an error.
14052 Use char because int might match the return type of a GCC
14053 builtin and then its argument prototype would still apply. */
14066 if ac_fn_c_try_link "$LINENO"; then :
14067 ac_cv_lib_svld_dlopen=yes
14069 ac_cv_lib_svld_dlopen=no
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14076 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14077 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14081 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14082 if ${ac_cv_lib_dld_dld_link+:} false; then :
14083 $as_echo_n "(cached) " >&6
14085 ac_check_lib_save_LIBS=$LIBS
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14090 /* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14100 return dld_link ();
14105 if ac_fn_c_try_link "$LINENO"; then :
14106 ac_cv_lib_dld_dld_link=yes
14108 ac_cv_lib_dld_dld_link=no
14110 rm -f core conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14115 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14116 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14117 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14138 if test "x$lt_cv_dlopen" != xno; then
14144 case $lt_cv_dlopen in
14146 save_CPPFLAGS="$CPPFLAGS"
14147 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14149 save_LDFLAGS="$LDFLAGS"
14150 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14153 LIBS="$lt_cv_dlopen_libs $LIBS"
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14156 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14157 if ${lt_cv_dlopen_self+:} false; then :
14158 $as_echo_n "(cached) " >&6
14160 if test "$cross_compiling" = yes; then :
14161 lt_cv_dlopen_self=cross
14163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14164 lt_status=$lt_dlunknown
14165 cat > conftest.$ac_ext <<_LT_EOF
14166 #line $LINENO "configure"
14167 #include "confdefs.h"
14176 # define LT_DLGLOBAL RTLD_GLOBAL
14179 # define LT_DLGLOBAL DL_GLOBAL
14181 # define LT_DLGLOBAL 0
14185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14186 find out it does not work in some platform. */
14187 #ifndef LT_DLLAZY_OR_NOW
14189 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14192 # define LT_DLLAZY_OR_NOW DL_LAZY
14195 # define LT_DLLAZY_OR_NOW RTLD_NOW
14198 # define LT_DLLAZY_OR_NOW DL_NOW
14200 # define LT_DLLAZY_OR_NOW 0
14207 /* When -fvisbility=hidden is used, assume the code has been annotated
14208 correspondingly for the symbols needed. */
14209 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14210 int fnord () __attribute__((visibility("default")));
14213 int fnord () { return 42; }
14216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14217 int status = $lt_dlunknown;
14221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14224 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14225 else puts (dlerror ());
14227 /* dlclose (self); */
14235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14236 (eval $ac_link) 2>&5
14238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14240 (./conftest; exit; ) >&5 2>/dev/null
14242 case x$lt_status in
14243 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14244 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14245 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14248 # compilation failed
14249 lt_cv_dlopen_self=no
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14257 $as_echo "$lt_cv_dlopen_self" >&6; }
14259 if test "x$lt_cv_dlopen_self" = xyes; then
14260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14262 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14263 if ${lt_cv_dlopen_self_static+:} false; then :
14264 $as_echo_n "(cached) " >&6
14266 if test "$cross_compiling" = yes; then :
14267 lt_cv_dlopen_self_static=cross
14269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14270 lt_status=$lt_dlunknown
14271 cat > conftest.$ac_ext <<_LT_EOF
14272 #line $LINENO "configure"
14273 #include "confdefs.h"
14282 # define LT_DLGLOBAL RTLD_GLOBAL
14285 # define LT_DLGLOBAL DL_GLOBAL
14287 # define LT_DLGLOBAL 0
14291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14292 find out it does not work in some platform. */
14293 #ifndef LT_DLLAZY_OR_NOW
14295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14298 # define LT_DLLAZY_OR_NOW DL_LAZY
14301 # define LT_DLLAZY_OR_NOW RTLD_NOW
14304 # define LT_DLLAZY_OR_NOW DL_NOW
14306 # define LT_DLLAZY_OR_NOW 0
14313 /* When -fvisbility=hidden is used, assume the code has been annotated
14314 correspondingly for the symbols needed. */
14315 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14316 int fnord () __attribute__((visibility("default")));
14319 int fnord () { return 42; }
14322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14323 int status = $lt_dlunknown;
14327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14330 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14331 else puts (dlerror ());
14333 /* dlclose (self); */
14341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14342 (eval $ac_link) 2>&5
14344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14345 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14346 (./conftest; exit; ) >&5 2>/dev/null
14348 case x$lt_status in
14349 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14350 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14351 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14354 # compilation failed
14355 lt_cv_dlopen_self_static=no
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14363 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14366 CPPFLAGS="$save_CPPFLAGS"
14367 LDFLAGS="$save_LDFLAGS"
14372 case $lt_cv_dlopen_self in
14373 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14374 *) enable_dlopen_self=unknown ;;
14377 case $lt_cv_dlopen_self_static in
14378 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14379 *) enable_dlopen_self_static=unknown ;;
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14402 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14403 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14404 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14405 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14407 $as_echo "yes" >&6; }
14409 # FIXME - insert some real tests, host_os isn't really good enough
14412 if test -n "$STRIP" ; then
14413 striplib="$STRIP -x"
14414 old_striplib="$STRIP -S"
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14416 $as_echo "yes" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14440 # Report which library types will actually be built
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14442 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14444 $as_echo "$can_build_shared" >&6; }
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14447 $as_echo_n "checking whether to build shared libraries... " >&6; }
14448 test "$can_build_shared" = "no" && enable_shared=no
14450 # On AIX, shared libraries and static libraries use the same namespace, and
14451 # are all built from PIC.
14454 test "$enable_shared" = yes && enable_static=no
14455 if test -n "$RANLIB"; then
14456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14457 postinstall_cmds='$RANLIB $lib'
14462 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14463 test "$enable_shared" = yes && enable_static=no
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14468 $as_echo "$enable_shared" >&6; }
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14471 $as_echo_n "checking whether to build static libraries... " >&6; }
14472 # Make sure either enable_shared or enable_static is yes.
14473 test "$enable_shared" = yes || enable_static=yes
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14475 $as_echo "$enable_static" >&6; }
14482 ac_cpp='$CPP $CPPFLAGS'
14483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14503 ac_config_commands="$ac_config_commands libtool"
14508 # Only expand once:
14512 if test -n "$ac_tool_prefix"; then
14513 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14514 set dummy ${ac_tool_prefix}windres; ac_word=$2
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14516 $as_echo_n "checking for $ac_word... " >&6; }
14517 if ${ac_cv_prog_RC+:} false; then :
14518 $as_echo_n "(cached) " >&6
14520 if test -n "$RC"; then
14521 ac_cv_prog_RC="$RC" # Let the user override the test.
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
14529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14530 ac_cv_prog_RC="${ac_tool_prefix}windres"
14531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14541 if test -n "$RC"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14543 $as_echo "$RC" >&6; }
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14551 if test -z "$ac_cv_prog_RC"; then
14553 # Extract the first word of "windres", so it can be a program name with args.
14554 set dummy windres; ac_word=$2
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14556 $as_echo_n "checking for $ac_word... " >&6; }
14557 if ${ac_cv_prog_ac_ct_RC+:} false; then :
14558 $as_echo_n "(cached) " >&6
14560 if test -n "$ac_ct_RC"; then
14561 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14564 for as_dir in $PATH
14567 test -z "$as_dir" && as_dir=.
14568 for ac_exec_ext in '' $ac_executable_extensions; do
14569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14570 ac_cv_prog_ac_ct_RC="windres"
14571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14580 ac_ct_RC=$ac_cv_prog_ac_ct_RC
14581 if test -n "$ac_ct_RC"; then
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14583 $as_echo "$ac_ct_RC" >&6; }
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586 $as_echo "no" >&6; }
14589 if test "x$ac_ct_RC" = x; then
14592 case $cross_compiling:$ac_tool_warned in
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14596 ac_tool_warned=yes ;;
14601 RC="$ac_cv_prog_RC"
14607 # Source file extension for RC test sources.
14610 # Object file extension for compiled RC test sources.
14614 # Code to be used in simple compile tests
14615 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14617 # Code to be used in simple link tests
14618 lt_simple_link_test_code="$lt_simple_compile_test_code"
14620 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14627 # If no C compiler was specified, use CC.
14630 # If no C compiler flags were specified, use CFLAGS.
14631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14633 # Allow CC to be a program name with arguments.
14637 # save warnings/boilerplate of simple test code
14638 ac_outfile=conftest.$ac_objext
14639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14641 _lt_compiler_boilerplate=`cat conftest.err`
14644 ac_outfile=conftest.$ac_objext
14645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14647 _lt_linker_boilerplate=`cat conftest.err`
14651 # Allow CC to be a program name with arguments.
14653 lt_save_CFLAGS=$CFLAGS
14660 for cc_temp in $compiler""; do
14662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14668 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14670 lt_cv_prog_compiler_c_o_RC=yes
14672 if test -n "$compiler"; then
14681 ac_cpp='$CPP $CPPFLAGS'
14682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14687 CFLAGS=$lt_save_CFLAGS
14691 mingw* | cygwin*) is_woe32=yes ;;
14694 if test $is_woe32 = yes; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14706 $as_echo_n "checking whether NLS is requested... " >&6; }
14707 # Check whether --enable-nls was given.
14708 if test "${enable_nls+set}" = set; then :
14709 enableval=$enable_nls; USE_NLS=$enableval
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14715 $as_echo "$USE_NLS" >&6; }
14720 GETTEXT_MACRO_VERSION=0.18
14725 # Prepare PATH_SEPARATOR.
14726 # The user is always right.
14727 if test "${PATH_SEPARATOR+set}" != set; then
14728 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14729 # contains only /bin. Note that ksh looks also at the FPATH variable,
14730 # so we have to set that as well for the test.
14732 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14733 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14734 || PATH_SEPARATOR=';'
14738 # Find out how to test for executable files. Don't use a zero-byte file,
14739 # as systems may use methods other than mode bits to determine executability.
14740 cat >conf$$.file <<_ASEOF
14744 chmod +x conf$$.file
14745 if test -x conf$$.file >/dev/null 2>&1; then
14746 ac_executable_p="test -x"
14748 ac_executable_p="test -f"
14752 # Extract the first word of "msgfmt", so it can be a program name with args.
14753 set dummy msgfmt; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14755 $as_echo_n "checking for $ac_word... " >&6; }
14756 if ${ac_cv_path_MSGFMT+:} false; then :
14757 $as_echo_n "(cached) " >&6
14761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14764 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14765 for ac_dir in $PATH; do
14767 test -z "$ac_dir" && ac_dir=.
14768 for ac_exec_ext in '' $ac_executable_extensions; do
14769 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14770 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14771 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14772 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14773 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14780 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14784 MSGFMT="$ac_cv_path_MSGFMT"
14785 if test "$MSGFMT" != ":"; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14787 $as_echo "$MSGFMT" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 $as_echo "no" >&6; }
14793 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14794 set dummy gmsgfmt; ac_word=$2
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14796 $as_echo_n "checking for $ac_word... " >&6; }
14797 if ${ac_cv_path_GMSGFMT+:} false; then :
14798 $as_echo_n "(cached) " >&6
14802 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14809 test -z "$as_dir" && as_dir=.
14810 for ac_exec_ext in '' $ac_executable_extensions; do
14811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14812 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14824 GMSGFMT=$ac_cv_path_GMSGFMT
14825 if test -n "$GMSGFMT"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14827 $as_echo "$GMSGFMT" >&6; }
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14835 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14836 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14837 *) MSGFMT_015=$MSGFMT ;;
14840 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14841 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14842 *) GMSGFMT_015=$GMSGFMT ;;
14847 # Prepare PATH_SEPARATOR.
14848 # The user is always right.
14849 if test "${PATH_SEPARATOR+set}" != set; then
14850 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14851 # contains only /bin. Note that ksh looks also at the FPATH variable,
14852 # so we have to set that as well for the test.
14854 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14855 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14856 || PATH_SEPARATOR=';'
14860 # Find out how to test for executable files. Don't use a zero-byte file,
14861 # as systems may use methods other than mode bits to determine executability.
14862 cat >conf$$.file <<_ASEOF
14866 chmod +x conf$$.file
14867 if test -x conf$$.file >/dev/null 2>&1; then
14868 ac_executable_p="test -x"
14870 ac_executable_p="test -f"
14874 # Extract the first word of "xgettext", so it can be a program name with args.
14875 set dummy xgettext; ac_word=$2
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14877 $as_echo_n "checking for $ac_word... " >&6; }
14878 if ${ac_cv_path_XGETTEXT+:} false; then :
14879 $as_echo_n "(cached) " >&6
14881 case "$XGETTEXT" in
14883 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14886 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14887 for ac_dir in $PATH; do
14889 test -z "$ac_dir" && ac_dir=.
14890 for ac_exec_ext in '' $ac_executable_extensions; do
14891 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14892 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14893 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14894 (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
14895 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14902 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14906 XGETTEXT="$ac_cv_path_XGETTEXT"
14907 if test "$XGETTEXT" != ":"; then
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14909 $as_echo "$XGETTEXT" >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912 $as_echo "no" >&6; }
14917 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14918 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14919 *) XGETTEXT_015=$XGETTEXT ;;
14924 # Prepare PATH_SEPARATOR.
14925 # The user is always right.
14926 if test "${PATH_SEPARATOR+set}" != set; then
14927 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14928 # contains only /bin. Note that ksh looks also at the FPATH variable,
14929 # so we have to set that as well for the test.
14931 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14932 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14933 || PATH_SEPARATOR=';'
14937 # Find out how to test for executable files. Don't use a zero-byte file,
14938 # as systems may use methods other than mode bits to determine executability.
14939 cat >conf$$.file <<_ASEOF
14943 chmod +x conf$$.file
14944 if test -x conf$$.file >/dev/null 2>&1; then
14945 ac_executable_p="test -x"
14947 ac_executable_p="test -f"
14951 # Extract the first word of "msgmerge", so it can be a program name with args.
14952 set dummy msgmerge; ac_word=$2
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14954 $as_echo_n "checking for $ac_word... " >&6; }
14955 if ${ac_cv_path_MSGMERGE+:} false; then :
14956 $as_echo_n "(cached) " >&6
14958 case "$MSGMERGE" in
14960 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14963 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14964 for ac_dir in $PATH; do
14966 test -z "$ac_dir" && ac_dir=.
14967 for ac_exec_ext in '' $ac_executable_extensions; do
14968 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14969 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14970 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14971 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14978 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14982 MSGMERGE="$ac_cv_path_MSGMERGE"
14983 if test "$MSGMERGE" != ":"; then
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14985 $as_echo "$MSGMERGE" >&6; }
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14988 $as_echo "no" >&6; }
14992 test -n "$localedir" || localedir='${datadir}/locale'
14995 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14998 ac_config_commands="$ac_config_commands po-directories"
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15003 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15004 if ${ac_cv_gnu_library_2+:} false; then :
15005 $as_echo_n "(cached) " >&6
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15010 #include <features.h>
15011 #ifdef __GNU_LIBRARY__
15012 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15020 ac_cv_gnu_library_2=yes
15022 ac_cv_gnu_library_2=no
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15030 $as_echo "$ac_cv_gnu_library_2" >&6; }
15032 GLIBC2="$ac_cv_gnu_library_2"
15039 if test -n "$GCC"; then
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15041 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15042 if ${gl_cv_cc_vis_werror+:} false; then :
15043 $as_echo_n "(cached) " >&6
15046 gl_save_CFLAGS="$CFLAGS"
15047 CFLAGS="$CFLAGS -Werror"
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15059 if ac_fn_c_try_compile "$LINENO"; then :
15060 gl_cv_cc_vis_werror=yes
15062 gl_cv_cc_vis_werror=no
15064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15065 CFLAGS="$gl_save_CFLAGS"
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15069 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15071 $as_echo_n "checking for simple visibility declarations... " >&6; }
15072 if ${gl_cv_cc_visibility+:} false; then :
15073 $as_echo_n "(cached) " >&6
15076 gl_save_CFLAGS="$CFLAGS"
15077 CFLAGS="$CFLAGS -fvisibility=hidden"
15078 if test $gl_cv_cc_vis_werror = yes; then
15079 CFLAGS="$CFLAGS -Werror"
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15084 extern __attribute__((__visibility__("default"))) int exportedvar;
15085 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15086 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15087 void dummyfunc (void) {}
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098 gl_cv_cc_visibility=yes
15100 gl_cv_cc_visibility=no
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 CFLAGS="$gl_save_CFLAGS"
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15107 $as_echo "$gl_cv_cc_visibility" >&6; }
15108 if test $gl_cv_cc_visibility = yes; then
15109 CFLAG_VISIBILITY="-fvisibility=hidden"
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15122 $as_echo_n "checking for inline... " >&6; }
15123 if ${ac_cv_c_inline+:} false; then :
15124 $as_echo_n "(cached) " >&6
15127 for ac_kw in inline __inline__ __inline; do
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 #ifndef __cplusplus
15132 static $ac_kw foo_t static_foo () {return 0; }
15133 $ac_kw foo_t foo () {return 0; }
15137 if ac_fn_c_try_compile "$LINENO"; then :
15138 ac_cv_c_inline=$ac_kw
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15141 test "$ac_cv_c_inline" != no && break
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15146 $as_echo "$ac_cv_c_inline" >&6; }
15148 case $ac_cv_c_inline in
15151 case $ac_cv_c_inline in
15153 *) ac_val=$ac_cv_c_inline;;
15155 cat >>confdefs.h <<_ACEOF
15156 #ifndef __cplusplus
15157 #define inline $ac_val
15163 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15164 if test "x$ac_cv_type_size_t" = xyes; then :
15168 cat >>confdefs.h <<_ACEOF
15169 #define size_t unsigned int
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15176 $as_echo_n "checking for stdint.h... " >&6; }
15177 if ${gl_cv_header_stdint_h+:} false; then :
15178 $as_echo_n "(cached) " >&6
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182 #include <sys/types.h>
15183 #include <stdint.h>
15187 uintmax_t i = (uintmax_t) -1; return !i;
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193 gl_cv_header_stdint_h=yes
15195 gl_cv_header_stdint_h=no
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15200 $as_echo "$gl_cv_header_stdint_h" >&6; }
15201 if test $gl_cv_header_stdint_h = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_STDINT_H_WITH_UINTMAX 1
15209 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15210 # for constant arguments. Useless!
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15212 $as_echo_n "checking for working alloca.h... " >&6; }
15213 if ${ac_cv_working_alloca_h+:} false; then :
15214 $as_echo_n "(cached) " >&6
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15218 #include <alloca.h>
15222 char *p = (char *) alloca (2 * sizeof (int));
15228 if ac_fn_c_try_link "$LINENO"; then :
15229 ac_cv_working_alloca_h=yes
15231 ac_cv_working_alloca_h=no
15233 rm -f core conftest.err conftest.$ac_objext \
15234 conftest$ac_exeext conftest.$ac_ext
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15237 $as_echo "$ac_cv_working_alloca_h" >&6; }
15238 if test $ac_cv_working_alloca_h = yes; then
15240 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15245 $as_echo_n "checking for alloca... " >&6; }
15246 if ${ac_cv_func_alloca_works+:} false; then :
15247 $as_echo_n "(cached) " >&6
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h. */
15252 # define alloca __builtin_alloca
15255 # include <malloc.h>
15256 # define alloca _alloca
15258 # ifdef HAVE_ALLOCA_H
15259 # include <alloca.h>
15264 # ifndef alloca /* predefined by HP cc +Olibcalls */
15265 void *alloca (size_t);
15275 char *p = (char *) alloca (1);
15281 if ac_fn_c_try_link "$LINENO"; then :
15282 ac_cv_func_alloca_works=yes
15284 ac_cv_func_alloca_works=no
15286 rm -f core conftest.err conftest.$ac_objext \
15287 conftest$ac_exeext conftest.$ac_ext
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15290 $as_echo "$ac_cv_func_alloca_works" >&6; }
15292 if test $ac_cv_func_alloca_works = yes; then
15294 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15297 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15298 # that cause trouble. Some versions do not even contain alloca or
15299 # contain a buggy version. If you still want to use their alloca,
15300 # use ar to extract alloca.o from them instead of compiling alloca.c.
15302 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15304 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15308 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15309 if ${ac_cv_os_cray+:} false; then :
15310 $as_echo_n "(cached) " >&6
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 #if defined CRAY && ! defined CRAY2
15321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15322 $EGREP "webecray" >/dev/null 2>&1; then :
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15331 $as_echo "$ac_cv_os_cray" >&6; }
15332 if test $ac_cv_os_cray = yes; then
15333 for ac_func in _getb67 GETB67 getb67; do
15334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15335 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15336 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15338 cat >>confdefs.h <<_ACEOF
15339 #define CRAY_STACKSEG_END $ac_func
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15349 $as_echo_n "checking stack direction for C alloca... " >&6; }
15350 if ${ac_cv_c_stack_direction+:} false; then :
15351 $as_echo_n "(cached) " >&6
15353 if test "$cross_compiling" = yes; then :
15354 ac_cv_c_stack_direction=0
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 $ac_includes_default
15360 find_stack_direction (int *addr, int depth)
15362 int dir, dummy = 0;
15365 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15366 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15367 return dir + dummy;
15371 main (int argc, char **argv)
15373 return find_stack_direction (0, argc + !argv + 20) < 0;
15376 if ac_fn_c_try_run "$LINENO"; then :
15377 ac_cv_c_stack_direction=1
15379 ac_cv_c_stack_direction=-1
15381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15382 conftest.$ac_objext conftest.beam conftest.$ac_ext
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15387 $as_echo "$ac_cv_c_stack_direction" >&6; }
15388 cat >>confdefs.h <<_ACEOF
15389 #define STACK_DIRECTION $ac_cv_c_stack_direction
15398 for ac_header in $ac_header_list
15400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15404 cat >>confdefs.h <<_ACEOF
15405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15419 for ac_func in getpagesize
15421 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15422 if test "x$ac_cv_func_getpagesize" = xyes; then :
15423 cat >>confdefs.h <<_ACEOF
15424 #define HAVE_GETPAGESIZE 1
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15431 $as_echo_n "checking for working mmap... " >&6; }
15432 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15433 $as_echo_n "(cached) " >&6
15435 if test "$cross_compiling" = yes; then :
15436 ac_cv_func_mmap_fixed_mapped=no
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440 $ac_includes_default
15441 /* malloc might have been renamed as rpl_malloc. */
15444 /* Thanks to Mike Haertel and Jim Avera for this test.
15445 Here is a matrix of mmap possibilities:
15446 mmap private not fixed
15447 mmap private fixed at somewhere currently unmapped
15448 mmap private fixed at somewhere already mapped
15449 mmap shared not fixed
15450 mmap shared fixed at somewhere currently unmapped
15451 mmap shared fixed at somewhere already mapped
15452 For private mappings, we should verify that changes cannot be read()
15453 back from the file, nor mmap's back from the file at a different
15454 address. (There have been systems where private was not correctly
15455 implemented like the infamous i386 svr4.0, and systems where the
15456 VM page cache was not coherent with the file system buffer cache
15457 like early versions of FreeBSD and possibly contemporary NetBSD.)
15458 For shared mappings, we should conversely verify that changes get
15459 propagated back to all the places they're supposed to be.
15461 Grep wants private fixed already mapped.
15462 The main things grep needs to know about mmap are:
15463 * does it exist and is it safe to write into the mmap'd area
15464 * how to use it (BSD variants) */
15467 #include <sys/mman.h>
15469 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15473 /* This mess was copied from the GNU getpagesize.h. */
15474 #ifndef HAVE_GETPAGESIZE
15475 # ifdef _SC_PAGESIZE
15476 # define getpagesize() sysconf(_SC_PAGESIZE)
15477 # else /* no _SC_PAGESIZE */
15478 # ifdef HAVE_SYS_PARAM_H
15479 # include <sys/param.h>
15480 # ifdef EXEC_PAGESIZE
15481 # define getpagesize() EXEC_PAGESIZE
15482 # else /* no EXEC_PAGESIZE */
15484 # define getpagesize() NBPG * CLSIZE
15487 # endif /* no CLSIZE */
15488 # else /* no NBPG */
15490 # define getpagesize() NBPC
15491 # else /* no NBPC */
15493 # define getpagesize() PAGESIZE
15494 # endif /* PAGESIZE */
15495 # endif /* no NBPC */
15496 # endif /* no NBPG */
15497 # endif /* no EXEC_PAGESIZE */
15498 # else /* no HAVE_SYS_PARAM_H */
15499 # define getpagesize() 8192 /* punt totally */
15500 # endif /* no HAVE_SYS_PARAM_H */
15501 # endif /* no _SC_PAGESIZE */
15503 #endif /* no HAVE_GETPAGESIZE */
15508 char *data, *data2, *data3;
15509 const char *cdata2;
15513 pagesize = getpagesize ();
15515 /* First, make a file with some known garbage in it. */
15516 data = (char *) malloc (pagesize);
15519 for (i = 0; i < pagesize; ++i)
15520 *(data + i) = rand ();
15522 fd = creat ("conftest.mmap", 0600);
15525 if (write (fd, data, pagesize) != pagesize)
15529 /* Next, check that the tail of a page is zero-filled. File must have
15530 non-zero length, otherwise we risk SIGBUS for entire page. */
15531 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15535 if (write (fd2, cdata2, 1) != 1)
15537 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15538 if (data2 == MAP_FAILED)
15540 for (i = 0; i < pagesize; ++i)
15544 if (munmap (data2, pagesize))
15547 /* Next, try to mmap the file at a fixed address which already has
15548 something else allocated at it. If we can, also make sure that
15549 we see the same garbage. */
15550 fd = open ("conftest.mmap", O_RDWR);
15553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15556 for (i = 0; i < pagesize; ++i)
15557 if (*(data + i) != *(data2 + i))
15560 /* Finally, make sure that changes to the mapped area do not
15561 percolate back to the file as seen by read(). (This is a bug on
15562 some variants of i386 svr4.0.) */
15563 for (i = 0; i < pagesize; ++i)
15564 *(data2 + i) = *(data2 + i) + 1;
15565 data3 = (char *) malloc (pagesize);
15568 if (read (fd, data3, pagesize) != pagesize)
15570 for (i = 0; i < pagesize; ++i)
15571 if (*(data + i) != *(data3 + i))
15577 if ac_fn_c_try_run "$LINENO"; then :
15578 ac_cv_func_mmap_fixed_mapped=yes
15580 ac_cv_func_mmap_fixed_mapped=no
15582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15583 conftest.$ac_objext conftest.beam conftest.$ac_ext
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15588 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15589 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15591 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15594 rm -f conftest.mmap conftest.txt
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
15599 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
15600 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
15601 $as_echo_n "(cached) " >&6
15604 gt_cv_int_divbyzero_sigfpe=
15606 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
15607 # On Mac OS X 10.2 or newer, just assume the same as when cross-
15608 # compiling. If we were to perform the real test, 1 Crash Report
15609 # dialog window would pop up.
15610 case "$host_cpu" in
15611 i[34567]86 | x86_64)
15612 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
15616 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
15617 if test "$cross_compiling" = yes; then :
15619 # Guess based on the CPU.
15620 case "$host_cpu" in
15621 alpha* | i[34567]86 | x86_64 | m68k | s390*)
15622 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15624 gt_cv_int_divbyzero_sigfpe="guessing no";;
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h. */
15631 #include <stdlib.h>
15632 #include <signal.h>
15635 sigfpe_handler (int sig)
15637 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15638 exit (sig != SIGFPE);
15648 signal (SIGFPE, sigfpe_handler);
15649 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15650 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15651 signal (SIGTRAP, sigfpe_handler);
15653 /* Linux/SPARC yields signal SIGILL. */
15654 #if defined (__sparc__) && defined (__linux__)
15655 signal (SIGILL, sigfpe_handler);
15664 if ac_fn_c_try_run "$LINENO"; then :
15665 gt_cv_int_divbyzero_sigfpe=yes
15667 gt_cv_int_divbyzero_sigfpe=no
15669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15670 conftest.$ac_objext conftest.beam conftest.$ac_ext
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
15677 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
15678 case "$gt_cv_int_divbyzero_sigfpe" in
15683 cat >>confdefs.h <<_ACEOF
15684 #define INTDIV0_RAISES_SIGFPE $value
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
15690 $as_echo_n "checking for inttypes.h... " >&6; }
15691 if ${gl_cv_header_inttypes_h+:} false; then :
15692 $as_echo_n "(cached) " >&6
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15697 #include <sys/types.h>
15698 #include <inttypes.h>
15703 uintmax_t i = (uintmax_t) -1; return !i;
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709 gl_cv_header_inttypes_h=yes
15711 gl_cv_header_inttypes_h=no
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
15716 $as_echo "$gl_cv_header_inttypes_h" >&6; }
15717 if test $gl_cv_header_inttypes_h = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15727 $as_echo_n "checking for unsigned long long int... " >&6; }
15728 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
15729 $as_echo_n "(cached) " >&6
15731 ac_cv_type_unsigned_long_long_int=yes
15732 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15736 /* For now, do not test the preprocessor; as of 2007 there are too many
15737 implementations with broken preprocessors. Perhaps this can
15738 be revisited in 2012. In the meantime, code should not expect
15739 #if to work with literals wider than 32 bits. */
15740 /* Test literals. */
15741 long long int ll = 9223372036854775807ll;
15742 long long int nll = -9223372036854775807LL;
15743 unsigned long long int ull = 18446744073709551615ULL;
15744 /* Test constant expressions. */
15745 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15747 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15753 /* Test availability of runtime routines for shift and division. */
15754 long long int llmax = 9223372036854775807ll;
15755 unsigned long long int ullmax = 18446744073709551615ull;
15756 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15757 | (llmax / ll) | (llmax % ll)
15758 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15759 | (ullmax / ull) | (ullmax % ull));
15765 if ac_fn_c_try_link "$LINENO"; then :
15768 ac_cv_type_unsigned_long_long_int=no
15770 rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15775 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15776 if test $ac_cv_type_unsigned_long_long_int = yes; then
15778 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15785 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
15787 test $ac_cv_type_unsigned_long_long_int = yes \
15788 && ac_type='unsigned long long' \
15789 || ac_type='unsigned long'
15791 cat >>confdefs.h <<_ACEOF
15792 #define uintmax_t $ac_type
15797 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
15802 for ac_header in inttypes.h
15804 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15805 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15806 cat >>confdefs.h <<_ACEOF
15807 #define HAVE_INTTYPES_H 1
15814 if test $ac_cv_header_inttypes_h = yes; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
15816 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
15817 if ${gt_cv_inttypes_pri_broken+:} false; then :
15818 $as_echo_n "(cached) " >&6
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15824 #include <inttypes.h>
15837 if ac_fn_c_try_compile "$LINENO"; then :
15838 gt_cv_inttypes_pri_broken=no
15840 gt_cv_inttypes_pri_broken=yes
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
15846 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
15848 if test "$gt_cv_inttypes_pri_broken" = yes; then
15850 cat >>confdefs.h <<_ACEOF
15851 #define PRI_MACROS_BROKEN 1
15854 PRI_MACROS_BROKEN=1
15856 PRI_MACROS_BROKEN=0
15861 if test "X$prefix" = "XNONE"; then
15862 acl_final_prefix="$ac_default_prefix"
15864 acl_final_prefix="$prefix"
15866 if test "X$exec_prefix" = "XNONE"; then
15867 acl_final_exec_prefix='${prefix}'
15869 acl_final_exec_prefix="$exec_prefix"
15871 acl_save_prefix="$prefix"
15872 prefix="$acl_final_prefix"
15873 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15874 prefix="$acl_save_prefix"
15878 # Check whether --with-gnu-ld was given.
15879 if test "${with_gnu_ld+set}" = set; then :
15880 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15885 # Prepare PATH_SEPARATOR.
15886 # The user is always right.
15887 if test "${PATH_SEPARATOR+set}" != set; then
15888 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15889 # contains only /bin. Note that ksh looks also at the FPATH variable,
15890 # so we have to set that as well for the test.
15892 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15893 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15894 || PATH_SEPARATOR=';'
15899 if test "$GCC" = yes; then
15900 # Check if gcc -print-prog-name=ld gives a path.
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15902 $as_echo_n "checking for ld used by $CC... " >&6; }
15905 # gcc leaves a trailing carriage return which upsets mingw
15906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15911 # Accept absolute paths.
15913 re_direlt='/[^/][^/]*/\.\./'
15914 # Canonicalize the pathname of ld
15915 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
15916 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
15917 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15919 test -z "$LD" && LD="$ac_prog"
15922 # If it fails, then pretend we aren't using GCC.
15926 # If it is relative, then search for the first ld in PATH.
15927 with_gnu_ld=unknown
15930 elif test "$with_gnu_ld" = yes; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15932 $as_echo_n "checking for GNU ld... " >&6; }
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15935 $as_echo_n "checking for non-GNU ld... " >&6; }
15937 if ${acl_cv_path_LD+:} false; then :
15938 $as_echo_n "(cached) " >&6
15940 if test -z "$LD"; then
15941 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15942 for ac_dir in $PATH; do
15943 IFS="$acl_save_ifs"
15944 test -z "$ac_dir" && ac_dir=.
15945 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15946 acl_cv_path_LD="$ac_dir/$ac_prog"
15947 # Check to see if the program is GNU ld. I'd rather use --version,
15948 # but apparently some variants of GNU ld only accept -v.
15949 # Break only if it was the GNU/non-GNU ld that we prefer.
15950 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15951 *GNU* | *'with BFD'*)
15952 test "$with_gnu_ld" != no && break
15955 test "$with_gnu_ld" != yes && break
15960 IFS="$acl_save_ifs"
15962 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15966 LD="$acl_cv_path_LD"
15967 if test -n "$LD"; then
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15969 $as_echo "$LD" >&6; }
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15972 $as_echo "no" >&6; }
15974 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15976 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15977 if ${acl_cv_prog_gnu_ld+:} false; then :
15978 $as_echo_n "(cached) " >&6
15980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15981 case `$LD -v 2>&1 </dev/null` in
15982 *GNU* | *'with BFD'*)
15983 acl_cv_prog_gnu_ld=yes
15986 acl_cv_prog_gnu_ld=no
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15991 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15992 with_gnu_ld=$acl_cv_prog_gnu_ld
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15998 $as_echo_n "checking for shared library run path origin... " >&6; }
15999 if ${acl_cv_rpath+:} false; then :
16000 $as_echo_n "(cached) " >&6
16003 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16004 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16006 rm -f ./conftest.sh
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16011 $as_echo "$acl_cv_rpath" >&6; }
16013 acl_libext="$acl_cv_libext"
16014 acl_shlibext="$acl_cv_shlibext"
16015 acl_libname_spec="$acl_cv_libname_spec"
16016 acl_library_names_spec="$acl_cv_library_names_spec"
16017 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16018 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16019 acl_hardcode_direct="$acl_cv_hardcode_direct"
16020 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16021 # Check whether --enable-rpath was given.
16022 if test "${enable_rpath+set}" = set; then :
16023 enableval=$enable_rpath; :
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16036 $as_echo_n "checking for 64-bit host... " >&6; }
16037 if ${gl_cv_solaris_64bit+:} false; then :
16038 $as_echo_n "(cached) " >&6
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16049 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16050 gl_cv_solaris_64bit=yes
16052 gl_cv_solaris_64bit=no
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16059 $as_echo "$gl_cv_solaris_64bit" >&6; }
16060 if test $gl_cv_solaris_64bit = yes; then
16061 acl_libdirstem=lib/64
16062 case "$host_cpu" in
16063 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16064 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16069 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16070 if test -n "$searchpath"; then
16071 acl_save_IFS="${IFS= }"; IFS=":"
16072 for searchdir in $searchpath; do
16073 if test -d "$searchdir"; then
16074 case "$searchdir" in
16075 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16077 # Better ignore directories of this form. They are misleading.
16079 *) searchdir=`cd "$searchdir" && pwd`
16080 case "$searchdir" in
16081 */lib64 ) acl_libdirstem=lib64 ;;
16086 IFS="$acl_save_IFS"
16090 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16094 gl_threads_api=none
16099 if test "$gl_use_threads" != no; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16101 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16102 if ${gl_cv_have_weak+:} false; then :
16103 $as_echo_n "(cached) " >&6
16106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h. */
16108 extern void xyzzy ();
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 gl_cv_have_weak=maybe
16121 rm -f core conftest.err conftest.$ac_objext \
16122 conftest$ac_exeext conftest.$ac_ext
16123 if test $gl_cv_have_weak = maybe; then
16124 if test "$cross_compiling" = yes; then :
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16128 Extensible Linking Format
16132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16133 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16134 gl_cv_have_weak="guessing yes"
16136 gl_cv_have_weak="guessing no"
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16149 return (fputs == NULL);
16152 if ac_fn_c_try_run "$LINENO"; then :
16153 gl_cv_have_weak=yes
16157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16158 conftest.$ac_objext conftest.beam conftest.$ac_ext
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16165 $as_echo "$gl_cv_have_weak" >&6; }
16166 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16167 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16168 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16169 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16170 if test "x$ac_cv_header_pthread_h" = xyes; then :
16171 gl_have_pthread_h=yes
16173 gl_have_pthread_h=no
16177 if test "$gl_have_pthread_h" = yes; then
16178 # Other possible tests:
16179 # -lpthreads (FSU threads, PCthreads)
16182 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16183 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16184 # the second one only in libpthread, and lock.c needs it.
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 #include <pthread.h>
16191 pthread_mutex_lock((pthread_mutex_t*)0);
16192 pthread_mutexattr_init((pthread_mutexattr_t*)0);
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 gl_have_pthread=yes
16200 rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16202 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16203 # since it is defined as a macro on OSF/1.)
16204 if test -n "$gl_have_pthread"; then
16205 # The program links fine without libpthread. But it may actually
16206 # need to link with libpthread in order to create multiple threads.
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16208 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16209 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16210 $as_echo_n "(cached) " >&6
16212 ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-lpthread $LIBS"
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16217 /* Override any GCC internal prototype to avoid an error.
16218 Use char because int might match the return type of a GCC
16219 builtin and then its argument prototype would still apply. */
16223 char pthread_kill ();
16227 return pthread_kill ();
16232 if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_lib_pthread_pthread_kill=yes
16235 ac_cv_lib_pthread_pthread_kill=no
16237 rm -f core conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16242 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16243 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16244 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16245 # On Solaris and HP-UX, most pthread functions exist also in libc.
16246 # Therefore pthread_in_use() needs to actually try to create a
16247 # thread: pthread_create from libc will fail, whereas
16248 # pthread_create will actually create a thread.
16252 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16259 # Some library is needed. Try libpthread and libc_r.
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16261 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16262 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16263 $as_echo_n "(cached) " >&6
16265 ac_check_lib_save_LIBS=$LIBS
16266 LIBS="-lpthread $LIBS"
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16270 /* Override any GCC internal prototype to avoid an error.
16271 Use char because int might match the return type of a GCC
16272 builtin and then its argument prototype would still apply. */
16276 char pthread_kill ();
16280 return pthread_kill ();
16285 if ac_fn_c_try_link "$LINENO"; then :
16286 ac_cv_lib_pthread_pthread_kill=yes
16288 ac_cv_lib_pthread_pthread_kill=no
16290 rm -f core conftest.err conftest.$ac_objext \
16291 conftest$ac_exeext conftest.$ac_ext
16292 LIBS=$ac_check_lib_save_LIBS
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16295 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16296 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16297 gl_have_pthread=yes
16298 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16299 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16302 if test -z "$gl_have_pthread"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16305 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16306 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16307 $as_echo_n "(cached) " >&6
16309 ac_check_lib_save_LIBS=$LIBS
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16314 /* Override any GCC internal prototype to avoid an error.
16315 Use char because int might match the return type of a GCC
16316 builtin and then its argument prototype would still apply. */
16320 char pthread_kill ();
16324 return pthread_kill ();
16329 if ac_fn_c_try_link "$LINENO"; then :
16330 ac_cv_lib_c_r_pthread_kill=yes
16332 ac_cv_lib_c_r_pthread_kill=no
16334 rm -f core conftest.err conftest.$ac_objext \
16335 conftest$ac_exeext conftest.$ac_ext
16336 LIBS=$ac_check_lib_save_LIBS
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16339 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16340 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16341 gl_have_pthread=yes
16342 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16343 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16348 if test -n "$gl_have_pthread"; then
16349 gl_threads_api=posix
16351 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16353 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16354 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16356 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16365 if test -z "$gl_have_pthread"; then
16366 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16367 gl_have_solaristhread=
16368 gl_save_LIBS="$LIBS"
16369 LIBS="$LIBS -lthread"
16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16373 #include <thread.h>
16384 if ac_fn_c_try_link "$LINENO"; then :
16385 gl_have_solaristhread=yes
16387 rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16389 LIBS="$gl_save_LIBS"
16390 if test -n "$gl_have_solaristhread"; then
16391 gl_threads_api=solaris
16393 LTLIBTHREAD=-lthread
16394 LIBMULTITHREAD="$LIBTHREAD"
16395 LTLIBMULTITHREAD="$LTLIBTHREAD"
16397 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16399 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16401 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16409 if test "$gl_use_threads" = pth; then
16410 gl_save_CPPFLAGS="$CPPFLAGS"
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16417 $as_echo_n "checking how to link with libpth... " >&6; }
16418 if ${ac_cv_libpth_libs+:} false; then :
16419 $as_echo_n "(cached) " >&6
16431 acl_save_prefix="$prefix"
16432 prefix="$acl_final_prefix"
16433 acl_save_exec_prefix="$exec_prefix"
16434 exec_prefix="$acl_final_exec_prefix"
16436 eval additional_includedir=\"$includedir\"
16437 eval additional_libdir=\"$libdir\"
16439 exec_prefix="$acl_save_exec_prefix"
16440 prefix="$acl_save_prefix"
16443 # Check whether --with-libpth-prefix was given.
16444 if test "${with_libpth_prefix+set}" = set; then :
16445 withval=$with_libpth_prefix;
16446 if test "X$withval" = "Xno"; then
16449 if test "X$withval" = "X"; then
16451 acl_save_prefix="$prefix"
16452 prefix="$acl_final_prefix"
16453 acl_save_exec_prefix="$exec_prefix"
16454 exec_prefix="$acl_final_exec_prefix"
16456 eval additional_includedir=\"$includedir\"
16457 eval additional_libdir=\"$libdir\"
16459 exec_prefix="$acl_save_exec_prefix"
16460 prefix="$acl_save_prefix"
16463 additional_includedir="$withval/include"
16464 additional_libdir="$withval/$acl_libdirstem"
16465 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16466 && ! test -d "$withval/$acl_libdirstem"; then
16467 additional_libdir="$withval/$acl_libdirstem2"
16481 names_already_handled=
16482 names_next_round='pth '
16483 while test -n "$names_next_round"; do
16484 names_this_round="$names_next_round"
16486 for name in $names_this_round; do
16488 for n in $names_already_handled; do
16489 if test "$n" = "$name"; then
16490 already_handled=yes
16494 if test -z "$already_handled"; then
16495 names_already_handled="$names_already_handled $name"
16496 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16497 eval value=\"\$HAVE_LIB$uppername\"
16498 if test -n "$value"; then
16499 if test "$value" = yes; then
16500 eval value=\"\$LIB$uppername\"
16501 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16502 eval value=\"\$LTLIB$uppername\"
16503 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16512 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16513 if test -n "$acl_shlibext"; then
16514 shrext=".$acl_shlibext" # typically: shrext=.so
16518 if test $use_additional = yes; then
16519 dir="$additional_libdir"
16520 if test -n "$acl_shlibext"; then
16521 if test -f "$dir/$libname$shrext"; then
16523 found_so="$dir/$libname$shrext"
16525 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16526 ver=`(cd "$dir" && \
16527 for f in "$libname$shrext".*; do echo "$f"; done \
16528 | sed -e "s,^$libname$shrext\\\\.,," \
16529 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16530 | sed 1q ) 2>/dev/null`
16531 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16533 found_so="$dir/$libname$shrext.$ver"
16536 eval library_names=\"$acl_library_names_spec\"
16537 for f in $library_names; do
16538 if test -f "$dir/$f"; then
16547 if test "X$found_dir" = "X"; then
16548 if test -f "$dir/$libname.$acl_libext"; then
16550 found_a="$dir/$libname.$acl_libext"
16553 if test "X$found_dir" != "X"; then
16554 if test -f "$dir/$libname.la"; then
16555 found_la="$dir/$libname.la"
16559 if test "X$found_dir" = "X"; then
16560 for x in $LDFLAGS $LTLIBPTH; do
16562 acl_save_prefix="$prefix"
16563 prefix="$acl_final_prefix"
16564 acl_save_exec_prefix="$exec_prefix"
16565 exec_prefix="$acl_final_exec_prefix"
16567 exec_prefix="$acl_save_exec_prefix"
16568 prefix="$acl_save_prefix"
16572 dir=`echo "X$x" | sed -e 's/^X-L//'`
16573 if test -n "$acl_shlibext"; then
16574 if test -f "$dir/$libname$shrext"; then
16576 found_so="$dir/$libname$shrext"
16578 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16579 ver=`(cd "$dir" && \
16580 for f in "$libname$shrext".*; do echo "$f"; done \
16581 | sed -e "s,^$libname$shrext\\\\.,," \
16582 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16583 | sed 1q ) 2>/dev/null`
16584 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16586 found_so="$dir/$libname$shrext.$ver"
16589 eval library_names=\"$acl_library_names_spec\"
16590 for f in $library_names; do
16591 if test -f "$dir/$f"; then
16600 if test "X$found_dir" = "X"; then
16601 if test -f "$dir/$libname.$acl_libext"; then
16603 found_a="$dir/$libname.$acl_libext"
16606 if test "X$found_dir" != "X"; then
16607 if test -f "$dir/$libname.la"; then
16608 found_la="$dir/$libname.la"
16613 if test "X$found_dir" != "X"; then
16618 if test "X$found_dir" != "X"; then
16619 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16620 if test "X$found_so" != "X"; then
16621 if test "$enable_rpath" = no \
16622 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16623 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16624 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16627 for x in $ltrpathdirs; do
16628 if test "X$x" = "X$found_dir"; then
16633 if test -z "$haveit"; then
16634 ltrpathdirs="$ltrpathdirs $found_dir"
16636 if test "$acl_hardcode_direct" = yes; then
16637 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16639 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16640 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16642 for x in $rpathdirs; do
16643 if test "X$x" = "X$found_dir"; then
16648 if test -z "$haveit"; then
16649 rpathdirs="$rpathdirs $found_dir"
16653 for x in $LDFLAGS $LIBPTH; do
16655 acl_save_prefix="$prefix"
16656 prefix="$acl_final_prefix"
16657 acl_save_exec_prefix="$exec_prefix"
16658 exec_prefix="$acl_final_exec_prefix"
16660 exec_prefix="$acl_save_exec_prefix"
16661 prefix="$acl_save_prefix"
16663 if test "X$x" = "X-L$found_dir"; then
16668 if test -z "$haveit"; then
16669 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
16671 if test "$acl_hardcode_minus_L" != no; then
16672 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16674 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16680 if test "X$found_a" != "X"; then
16681 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
16683 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
16686 additional_includedir=
16687 case "$found_dir" in
16688 */$acl_libdirstem | */$acl_libdirstem/)
16689 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16690 if test "$name" = 'pth'; then
16691 LIBPTH_PREFIX="$basedir"
16693 additional_includedir="$basedir/include"
16695 */$acl_libdirstem2 | */$acl_libdirstem2/)
16696 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16697 if test "$name" = 'pth'; then
16698 LIBPTH_PREFIX="$basedir"
16700 additional_includedir="$basedir/include"
16703 if test "X$additional_includedir" != "X"; then
16704 if test "X$additional_includedir" != "X/usr/include"; then
16706 if test "X$additional_includedir" = "X/usr/local/include"; then
16707 if test -n "$GCC"; then
16709 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16713 if test -z "$haveit"; then
16714 for x in $CPPFLAGS $INCPTH; do
16716 acl_save_prefix="$prefix"
16717 prefix="$acl_final_prefix"
16718 acl_save_exec_prefix="$exec_prefix"
16719 exec_prefix="$acl_final_exec_prefix"
16721 exec_prefix="$acl_save_exec_prefix"
16722 prefix="$acl_save_prefix"
16724 if test "X$x" = "X-I$additional_includedir"; then
16729 if test -z "$haveit"; then
16730 if test -d "$additional_includedir"; then
16731 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
16737 if test -n "$found_la"; then
16738 save_libdir="$libdir"
16739 case "$found_la" in
16740 */* | *\\*) . "$found_la" ;;
16741 *) . "./$found_la" ;;
16743 libdir="$save_libdir"
16744 for dep in $dependency_libs; do
16747 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16748 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16749 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16751 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16752 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16753 if test -n "$GCC"; then
16755 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16759 if test -z "$haveit"; then
16761 for x in $LDFLAGS $LIBPTH; do
16763 acl_save_prefix="$prefix"
16764 prefix="$acl_final_prefix"
16765 acl_save_exec_prefix="$exec_prefix"
16766 exec_prefix="$acl_final_exec_prefix"
16768 exec_prefix="$acl_save_exec_prefix"
16769 prefix="$acl_save_prefix"
16771 if test "X$x" = "X-L$additional_libdir"; then
16776 if test -z "$haveit"; then
16777 if test -d "$additional_libdir"; then
16778 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
16782 for x in $LDFLAGS $LTLIBPTH; do
16784 acl_save_prefix="$prefix"
16785 prefix="$acl_final_prefix"
16786 acl_save_exec_prefix="$exec_prefix"
16787 exec_prefix="$acl_final_exec_prefix"
16789 exec_prefix="$acl_save_exec_prefix"
16790 prefix="$acl_save_prefix"
16792 if test "X$x" = "X-L$additional_libdir"; then
16797 if test -z "$haveit"; then
16798 if test -d "$additional_libdir"; then
16799 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
16806 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16807 if test "$enable_rpath" != no; then
16809 for x in $rpathdirs; do
16810 if test "X$x" = "X$dir"; then
16815 if test -z "$haveit"; then
16816 rpathdirs="$rpathdirs $dir"
16819 for x in $ltrpathdirs; do
16820 if test "X$x" = "X$dir"; then
16825 if test -z "$haveit"; then
16826 ltrpathdirs="$ltrpathdirs $dir"
16831 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16834 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16837 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
16838 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
16844 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16845 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
16851 if test "X$rpathdirs" != "X"; then
16852 if test -n "$acl_hardcode_libdir_separator"; then
16854 for found_dir in $rpathdirs; do
16855 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16857 acl_save_libdir="$libdir"
16859 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16860 libdir="$acl_save_libdir"
16861 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16863 for found_dir in $rpathdirs; do
16864 acl_save_libdir="$libdir"
16865 libdir="$found_dir"
16866 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16867 libdir="$acl_save_libdir"
16868 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16872 if test "X$ltrpathdirs" != "X"; then
16873 for found_dir in $ltrpathdirs; do
16874 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
16883 ac_cv_libpth_libs="$LIBPTH"
16884 ac_cv_libpth_ltlibs="$LTLIBPTH"
16885 ac_cv_libpth_cppflags="$INCPTH"
16886 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
16890 $as_echo "$ac_cv_libpth_libs" >&6; }
16891 LIBPTH="$ac_cv_libpth_libs"
16892 LTLIBPTH="$ac_cv_libpth_ltlibs"
16893 INCPTH="$ac_cv_libpth_cppflags"
16894 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
16896 for element in $INCPTH; do
16898 for x in $CPPFLAGS; do
16900 acl_save_prefix="$prefix"
16901 prefix="$acl_final_prefix"
16902 acl_save_exec_prefix="$exec_prefix"
16903 exec_prefix="$acl_final_exec_prefix"
16905 exec_prefix="$acl_save_exec_prefix"
16906 prefix="$acl_save_prefix"
16908 if test "X$x" = "X$element"; then
16913 if test -z "$haveit"; then
16914 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16926 gl_save_LIBS="$LIBS"
16927 LIBS="$LIBS $LIBPTH"
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16939 if ac_fn_c_try_link "$LINENO"; then :
16942 rm -f core conftest.err conftest.$ac_objext \
16943 conftest$ac_exeext conftest.$ac_ext
16944 LIBS="$gl_save_LIBS"
16945 if test -n "$gl_have_pth"; then
16947 LIBTHREAD="$LIBPTH"
16948 LTLIBTHREAD="$LTLIBPTH"
16949 LIBMULTITHREAD="$LIBTHREAD"
16950 LTLIBMULTITHREAD="$LTLIBTHREAD"
16952 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
16954 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16955 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16957 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
16964 CPPFLAGS="$gl_save_CPPFLAGS"
16967 if test -z "$gl_have_pthread"; then
16968 case "$gl_use_threads" in
16969 yes | windows | win32) # The 'win32' is for backward compatibility.
16970 if { case "$host_os" in
16975 gl_threads_api=windows
16977 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
16985 $as_echo_n "checking for multithread API to use... " >&6; }
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
16987 $as_echo "$gl_threads_api" >&6; }
16999 if test "$gl_threads_api" = posix; then
17000 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
17001 # pthread_rwlock_* functions.
17002 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17004 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17006 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
17010 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17014 #include <pthread.h>
17019 #if __FreeBSD__ == 4
17020 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
17021 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
17022 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
17023 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
17025 int x = (int)PTHREAD_MUTEX_RECURSIVE;
17033 if ac_fn_c_try_compile "$LINENO"; then :
17035 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 acl_save_prefix="$prefix"
17056 prefix="$acl_final_prefix"
17057 acl_save_exec_prefix="$exec_prefix"
17058 exec_prefix="$acl_final_exec_prefix"
17060 eval additional_includedir=\"$includedir\"
17061 eval additional_libdir=\"$libdir\"
17063 exec_prefix="$acl_save_exec_prefix"
17064 prefix="$acl_save_prefix"
17067 # Check whether --with-libiconv-prefix was given.
17068 if test "${with_libiconv_prefix+set}" = set; then :
17069 withval=$with_libiconv_prefix;
17070 if test "X$withval" = "Xno"; then
17073 if test "X$withval" = "X"; then
17075 acl_save_prefix="$prefix"
17076 prefix="$acl_final_prefix"
17077 acl_save_exec_prefix="$exec_prefix"
17078 exec_prefix="$acl_final_exec_prefix"
17080 eval additional_includedir=\"$includedir\"
17081 eval additional_libdir=\"$libdir\"
17083 exec_prefix="$acl_save_exec_prefix"
17084 prefix="$acl_save_prefix"
17087 additional_includedir="$withval/include"
17088 additional_libdir="$withval/$acl_libdirstem"
17089 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17090 && ! test -d "$withval/$acl_libdirstem"; then
17091 additional_libdir="$withval/$acl_libdirstem2"
17105 names_already_handled=
17106 names_next_round='iconv '
17107 while test -n "$names_next_round"; do
17108 names_this_round="$names_next_round"
17110 for name in $names_this_round; do
17112 for n in $names_already_handled; do
17113 if test "$n" = "$name"; then
17114 already_handled=yes
17118 if test -z "$already_handled"; then
17119 names_already_handled="$names_already_handled $name"
17120 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17121 eval value=\"\$HAVE_LIB$uppername\"
17122 if test -n "$value"; then
17123 if test "$value" = yes; then
17124 eval value=\"\$LIB$uppername\"
17125 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17126 eval value=\"\$LTLIB$uppername\"
17127 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17136 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17137 if test -n "$acl_shlibext"; then
17138 shrext=".$acl_shlibext" # typically: shrext=.so
17142 if test $use_additional = yes; then
17143 dir="$additional_libdir"
17144 if test -n "$acl_shlibext"; then
17145 if test -f "$dir/$libname$shrext"; then
17147 found_so="$dir/$libname$shrext"
17149 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17150 ver=`(cd "$dir" && \
17151 for f in "$libname$shrext".*; do echo "$f"; done \
17152 | sed -e "s,^$libname$shrext\\\\.,," \
17153 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17154 | sed 1q ) 2>/dev/null`
17155 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17157 found_so="$dir/$libname$shrext.$ver"
17160 eval library_names=\"$acl_library_names_spec\"
17161 for f in $library_names; do
17162 if test -f "$dir/$f"; then
17171 if test "X$found_dir" = "X"; then
17172 if test -f "$dir/$libname.$acl_libext"; then
17174 found_a="$dir/$libname.$acl_libext"
17177 if test "X$found_dir" != "X"; then
17178 if test -f "$dir/$libname.la"; then
17179 found_la="$dir/$libname.la"
17183 if test "X$found_dir" = "X"; then
17184 for x in $LDFLAGS $LTLIBICONV; do
17186 acl_save_prefix="$prefix"
17187 prefix="$acl_final_prefix"
17188 acl_save_exec_prefix="$exec_prefix"
17189 exec_prefix="$acl_final_exec_prefix"
17191 exec_prefix="$acl_save_exec_prefix"
17192 prefix="$acl_save_prefix"
17196 dir=`echo "X$x" | sed -e 's/^X-L//'`
17197 if test -n "$acl_shlibext"; then
17198 if test -f "$dir/$libname$shrext"; then
17200 found_so="$dir/$libname$shrext"
17202 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17203 ver=`(cd "$dir" && \
17204 for f in "$libname$shrext".*; do echo "$f"; done \
17205 | sed -e "s,^$libname$shrext\\\\.,," \
17206 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17207 | sed 1q ) 2>/dev/null`
17208 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17210 found_so="$dir/$libname$shrext.$ver"
17213 eval library_names=\"$acl_library_names_spec\"
17214 for f in $library_names; do
17215 if test -f "$dir/$f"; then
17224 if test "X$found_dir" = "X"; then
17225 if test -f "$dir/$libname.$acl_libext"; then
17227 found_a="$dir/$libname.$acl_libext"
17230 if test "X$found_dir" != "X"; then
17231 if test -f "$dir/$libname.la"; then
17232 found_la="$dir/$libname.la"
17237 if test "X$found_dir" != "X"; then
17242 if test "X$found_dir" != "X"; then
17243 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17244 if test "X$found_so" != "X"; then
17245 if test "$enable_rpath" = no \
17246 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17247 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17248 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17251 for x in $ltrpathdirs; do
17252 if test "X$x" = "X$found_dir"; then
17257 if test -z "$haveit"; then
17258 ltrpathdirs="$ltrpathdirs $found_dir"
17260 if test "$acl_hardcode_direct" = yes; then
17261 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17263 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17264 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17266 for x in $rpathdirs; do
17267 if test "X$x" = "X$found_dir"; then
17272 if test -z "$haveit"; then
17273 rpathdirs="$rpathdirs $found_dir"
17277 for x in $LDFLAGS $LIBICONV; do
17279 acl_save_prefix="$prefix"
17280 prefix="$acl_final_prefix"
17281 acl_save_exec_prefix="$exec_prefix"
17282 exec_prefix="$acl_final_exec_prefix"
17284 exec_prefix="$acl_save_exec_prefix"
17285 prefix="$acl_save_prefix"
17287 if test "X$x" = "X-L$found_dir"; then
17292 if test -z "$haveit"; then
17293 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17295 if test "$acl_hardcode_minus_L" != no; then
17296 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17298 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17304 if test "X$found_a" != "X"; then
17305 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17307 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17310 additional_includedir=
17311 case "$found_dir" in
17312 */$acl_libdirstem | */$acl_libdirstem/)
17313 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17314 if test "$name" = 'iconv'; then
17315 LIBICONV_PREFIX="$basedir"
17317 additional_includedir="$basedir/include"
17319 */$acl_libdirstem2 | */$acl_libdirstem2/)
17320 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17321 if test "$name" = 'iconv'; then
17322 LIBICONV_PREFIX="$basedir"
17324 additional_includedir="$basedir/include"
17327 if test "X$additional_includedir" != "X"; then
17328 if test "X$additional_includedir" != "X/usr/include"; then
17330 if test "X$additional_includedir" = "X/usr/local/include"; then
17331 if test -n "$GCC"; then
17333 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17337 if test -z "$haveit"; then
17338 for x in $CPPFLAGS $INCICONV; do
17340 acl_save_prefix="$prefix"
17341 prefix="$acl_final_prefix"
17342 acl_save_exec_prefix="$exec_prefix"
17343 exec_prefix="$acl_final_exec_prefix"
17345 exec_prefix="$acl_save_exec_prefix"
17346 prefix="$acl_save_prefix"
17348 if test "X$x" = "X-I$additional_includedir"; then
17353 if test -z "$haveit"; then
17354 if test -d "$additional_includedir"; then
17355 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17361 if test -n "$found_la"; then
17362 save_libdir="$libdir"
17363 case "$found_la" in
17364 */* | *\\*) . "$found_la" ;;
17365 *) . "./$found_la" ;;
17367 libdir="$save_libdir"
17368 for dep in $dependency_libs; do
17371 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17372 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17373 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17375 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17376 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17377 if test -n "$GCC"; then
17379 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17383 if test -z "$haveit"; then
17385 for x in $LDFLAGS $LIBICONV; do
17387 acl_save_prefix="$prefix"
17388 prefix="$acl_final_prefix"
17389 acl_save_exec_prefix="$exec_prefix"
17390 exec_prefix="$acl_final_exec_prefix"
17392 exec_prefix="$acl_save_exec_prefix"
17393 prefix="$acl_save_prefix"
17395 if test "X$x" = "X-L$additional_libdir"; then
17400 if test -z "$haveit"; then
17401 if test -d "$additional_libdir"; then
17402 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17406 for x in $LDFLAGS $LTLIBICONV; do
17408 acl_save_prefix="$prefix"
17409 prefix="$acl_final_prefix"
17410 acl_save_exec_prefix="$exec_prefix"
17411 exec_prefix="$acl_final_exec_prefix"
17413 exec_prefix="$acl_save_exec_prefix"
17414 prefix="$acl_save_prefix"
17416 if test "X$x" = "X-L$additional_libdir"; then
17421 if test -z "$haveit"; then
17422 if test -d "$additional_libdir"; then
17423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17430 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17431 if test "$enable_rpath" != no; then
17433 for x in $rpathdirs; do
17434 if test "X$x" = "X$dir"; then
17439 if test -z "$haveit"; then
17440 rpathdirs="$rpathdirs $dir"
17443 for x in $ltrpathdirs; do
17444 if test "X$x" = "X$dir"; then
17449 if test -z "$haveit"; then
17450 ltrpathdirs="$ltrpathdirs $dir"
17455 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17458 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17461 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17462 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17468 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17469 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17475 if test "X$rpathdirs" != "X"; then
17476 if test -n "$acl_hardcode_libdir_separator"; then
17478 for found_dir in $rpathdirs; do
17479 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17481 acl_save_libdir="$libdir"
17483 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17484 libdir="$acl_save_libdir"
17485 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17487 for found_dir in $rpathdirs; do
17488 acl_save_libdir="$libdir"
17489 libdir="$found_dir"
17490 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17491 libdir="$acl_save_libdir"
17492 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17496 if test "X$ltrpathdirs" != "X"; then
17497 for found_dir in $ltrpathdirs; do
17498 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17512 REPLACE_ICONV_OPEN=0;
17513 REPLACE_ICONV_UTF=0;
17515 if test -n "$ICONV_H"; then
17516 GL_GENERATE_ICONV_H_TRUE=
17517 GL_GENERATE_ICONV_H_FALSE='#'
17519 GL_GENERATE_ICONV_H_TRUE='#'
17520 GL_GENERATE_ICONV_H_FALSE=
17529 am_save_CPPFLAGS="$CPPFLAGS"
17531 for element in $INCICONV; do
17533 for x in $CPPFLAGS; do
17535 acl_save_prefix="$prefix"
17536 prefix="$acl_final_prefix"
17537 acl_save_exec_prefix="$exec_prefix"
17538 exec_prefix="$acl_final_exec_prefix"
17540 exec_prefix="$acl_save_exec_prefix"
17541 prefix="$acl_save_prefix"
17543 if test "X$x" = "X$element"; then
17548 if test -z "$haveit"; then
17549 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17555 $as_echo_n "checking for iconv... " >&6; }
17556 if ${am_cv_func_iconv+:} false; then :
17557 $as_echo_n "(cached) " >&6
17560 am_cv_func_iconv="no, consider installing GNU libiconv"
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17565 #include <stdlib.h>
17571 iconv_t cd = iconv_open("","");
17572 iconv(cd,NULL,NULL,NULL,NULL);
17578 if ac_fn_c_try_link "$LINENO"; then :
17579 am_cv_func_iconv=yes
17581 rm -f core conftest.err conftest.$ac_objext \
17582 conftest$ac_exeext conftest.$ac_ext
17583 if test "$am_cv_func_iconv" != yes; then
17584 am_save_LIBS="$LIBS"
17585 LIBS="$LIBS $LIBICONV"
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17589 #include <stdlib.h>
17595 iconv_t cd = iconv_open("","");
17596 iconv(cd,NULL,NULL,NULL,NULL);
17602 if ac_fn_c_try_link "$LINENO"; then :
17603 am_cv_lib_iconv=yes
17604 am_cv_func_iconv=yes
17606 rm -f core conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
17608 LIBS="$am_save_LIBS"
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17613 $as_echo "$am_cv_func_iconv" >&6; }
17614 if test "$am_cv_func_iconv" = yes; then
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17616 $as_echo_n "checking for working iconv... " >&6; }
17617 if ${am_cv_func_iconv_works+:} false; then :
17618 $as_echo_n "(cached) " >&6
17621 am_save_LIBS="$LIBS"
17622 if test $am_cv_lib_iconv = yes; then
17623 LIBS="$LIBS $LIBICONV"
17625 if test "$cross_compiling" = yes; then :
17628 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17629 *) am_cv_func_iconv_works="guessing yes" ;;
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17637 #include <string.h>
17641 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17644 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17645 if (cd_utf8_to_88591 != (iconv_t)(-1))
17647 static const char input[] = "\342\202\254"; /* EURO SIGN */
17649 const char *inptr = input;
17650 size_t inbytesleft = strlen (input);
17651 char *outptr = buf;
17652 size_t outbytesleft = sizeof (buf);
17653 size_t res = iconv (cd_utf8_to_88591,
17654 (char **) &inptr, &inbytesleft,
17655 &outptr, &outbytesleft);
17658 iconv_close (cd_utf8_to_88591);
17661 /* Test against Solaris 10 bug: Failures are not distinguishable from
17662 successful returns. */
17664 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17665 if (cd_ascii_to_88591 != (iconv_t)(-1))
17667 static const char input[] = "\263";
17669 const char *inptr = input;
17670 size_t inbytesleft = strlen (input);
17671 char *outptr = buf;
17672 size_t outbytesleft = sizeof (buf);
17673 size_t res = iconv (cd_ascii_to_88591,
17674 (char **) &inptr, &inbytesleft,
17675 &outptr, &outbytesleft);
17678 iconv_close (cd_ascii_to_88591);
17681 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17683 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17684 if (cd_88591_to_utf8 != (iconv_t)(-1))
17686 static const char input[] = "\304";
17687 static char buf[2] = { (char)0xDE, (char)0xAD };
17688 const char *inptr = input;
17689 size_t inbytesleft = 1;
17690 char *outptr = buf;
17691 size_t outbytesleft = 1;
17692 size_t res = iconv (cd_88591_to_utf8,
17693 (char **) &inptr, &inbytesleft,
17694 &outptr, &outbytesleft);
17695 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17697 iconv_close (cd_88591_to_utf8);
17700 #if 0 /* This bug could be worked around by the caller. */
17701 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17703 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17704 if (cd_88591_to_utf8 != (iconv_t)(-1))
17706 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17708 const char *inptr = input;
17709 size_t inbytesleft = strlen (input);
17710 char *outptr = buf;
17711 size_t outbytesleft = sizeof (buf);
17712 size_t res = iconv (cd_88591_to_utf8,
17713 (char **) &inptr, &inbytesleft,
17714 &outptr, &outbytesleft);
17717 iconv_close (cd_88591_to_utf8);
17721 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17723 if (/* Try standardized names. */
17724 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17725 /* Try IRIX, OSF/1 names. */
17726 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17727 /* Try AIX names. */
17728 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17729 /* Try HP-UX names. */
17730 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17735 if ac_fn_c_try_run "$LINENO"; then :
17736 am_cv_func_iconv_works=yes
17738 am_cv_func_iconv_works=no
17740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17741 conftest.$ac_objext conftest.beam conftest.$ac_ext
17744 LIBS="$am_save_LIBS"
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17748 $as_echo "$am_cv_func_iconv_works" >&6; }
17749 case "$am_cv_func_iconv_works" in
17750 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17751 *) am_func_iconv=yes ;;
17754 am_func_iconv=no am_cv_lib_iconv=no
17756 if test "$am_func_iconv" = yes; then
17758 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17761 if test "$am_cv_lib_iconv" = yes; then
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17763 $as_echo_n "checking how to link with libiconv... " >&6; }
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17765 $as_echo "$LIBICONV" >&6; }
17767 CPPFLAGS="$am_save_CPPFLAGS"
17774 if test "$am_cv_func_iconv" = yes; then
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
17776 $as_echo_n "checking for iconv declaration... " >&6; }
17777 if ${am_cv_proto_iconv+:} false; then :
17778 $as_echo_n "(cached) " >&6
17781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17784 #include <stdlib.h>
17790 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
17791 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17804 if ac_fn_c_try_compile "$LINENO"; then :
17805 am_cv_proto_iconv_arg1=""
17807 am_cv_proto_iconv_arg1="const"
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 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);"
17813 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17815 $am_cv_proto_iconv" >&5
17817 $am_cv_proto_iconv" >&6; }
17819 cat >>confdefs.h <<_ACEOF
17820 #define ICONV_CONST $am_cv_proto_iconv_arg1
17824 if test -n "$am_cv_proto_iconv_arg1"; then
17825 ICONV_CONST="const"
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17835 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
17844 if ac_fn_c_try_link "$LINENO"; then :
17846 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
17849 rm -f core conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17852 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
17854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17855 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17857 cat >>confdefs.h <<_ACEOF
17858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17865 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
17866 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
17867 argz_stringify argz_next __fsetlocking
17869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17872 cat >>confdefs.h <<_ACEOF
17873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17880 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
17882 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
17888 cat >>confdefs.h <<_ACEOF
17889 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
17891 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
17893 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
17906 for ac_prog in bison
17908 # Extract the first word of "$ac_prog", so it can be a program name with args.
17909 set dummy $ac_prog; ac_word=$2
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17911 $as_echo_n "checking for $ac_word... " >&6; }
17912 if ${ac_cv_prog_INTLBISON+:} false; then :
17913 $as_echo_n "(cached) " >&6
17915 if test -n "$INTLBISON"; then
17916 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17919 for as_dir in $PATH
17922 test -z "$as_dir" && as_dir=.
17923 for ac_exec_ext in '' $ac_executable_extensions; do
17924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17925 ac_cv_prog_INTLBISON="$ac_prog"
17926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17935 INTLBISON=$ac_cv_prog_INTLBISON
17936 if test -n "$INTLBISON"; then
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
17938 $as_echo "$INTLBISON" >&6; }
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941 $as_echo "no" >&6; }
17945 test -n "$INTLBISON" && break
17948 if test -z "$INTLBISON"; then
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
17952 $as_echo_n "checking version of bison... " >&6; }
17953 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17954 case $ac_prog_version in
17955 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17956 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17957 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17958 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
17961 $as_echo "$ac_prog_version" >&6; }
17963 if test $ac_verc_fail = yes; then
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17970 $as_echo_n "checking for long long int... " >&6; }
17971 if ${ac_cv_type_long_long_int+:} false; then :
17972 $as_echo_n "(cached) " >&6
17974 ac_cv_type_long_long_int=yes
17975 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17976 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17977 if test $ac_cv_type_long_long_int = yes; then
17978 if test "$cross_compiling" = yes; then :
17981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982 /* end confdefs.h. */
17983 #include <limits.h>
17986 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17987 # define LLONG_MAX (HALF - 1 + HALF)
17992 long long int n = 1;
17996 long long int m = n << i;
17999 if (LLONG_MAX / 2 < m)
18007 if ac_fn_c_try_run "$LINENO"; then :
18010 ac_cv_type_long_long_int=no
18012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18013 conftest.$ac_objext conftest.beam conftest.$ac_ext
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18020 $as_echo "$ac_cv_type_long_long_int" >&6; }
18021 if test $ac_cv_type_long_long_int = yes; then
18023 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18029 $as_echo_n "checking for wchar_t... " >&6; }
18030 if ${gt_cv_c_wchar_t+:} false; then :
18031 $as_echo_n "(cached) " >&6
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18035 #include <stddef.h>
18036 wchar_t foo = (wchar_t)'\0';
18045 if ac_fn_c_try_compile "$LINENO"; then :
18046 gt_cv_c_wchar_t=yes
18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18053 $as_echo "$gt_cv_c_wchar_t" >&6; }
18054 if test $gt_cv_c_wchar_t = yes; then
18056 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18062 $as_echo_n "checking for wint_t... " >&6; }
18063 if ${gt_cv_c_wint_t+:} false; then :
18064 $as_echo_n "(cached) " >&6
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h. */
18069 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18071 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18072 before <wchar.h>. */
18073 #include <stddef.h>
18077 wint_t foo = (wchar_t)'\0';
18086 if ac_fn_c_try_compile "$LINENO"; then :
18091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18094 $as_echo "$gt_cv_c_wint_t" >&6; }
18095 if test $gt_cv_c_wint_t = yes; then
18097 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18105 $as_echo_n "checking for intmax_t... " >&6; }
18106 if ${gt_cv_c_intmax_t+:} false; then :
18107 $as_echo_n "(cached) " >&6
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18112 #include <stddef.h>
18113 #include <stdlib.h>
18114 #if HAVE_STDINT_H_WITH_UINTMAX
18115 #include <stdint.h>
18117 #if HAVE_INTTYPES_H_WITH_UINTMAX
18118 #include <inttypes.h>
18130 if ac_fn_c_try_compile "$LINENO"; then :
18131 gt_cv_c_intmax_t=yes
18133 gt_cv_c_intmax_t=no
18135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18138 $as_echo "$gt_cv_c_intmax_t" >&6; }
18139 if test $gt_cv_c_intmax_t = yes; then
18141 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18148 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18149 if ${gt_cv_func_printf_posix+:} false; then :
18150 $as_echo_n "(cached) " >&6
18153 if test "$cross_compiling" = yes; then :
18155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h. */
18158 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18164 $EGREP "notposix" >/dev/null 2>&1; then :
18165 gt_cv_func_printf_posix="guessing no"
18167 gt_cv_func_printf_posix="guessing yes"
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18177 #include <string.h>
18178 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18179 dollar expansion (possibly an autoconf bug). */
18180 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18181 static char buf[100];
18184 sprintf (buf, format, 33, 55);
18185 return (strcmp (buf, "55 33") != 0);
18188 if ac_fn_c_try_run "$LINENO"; then :
18189 gt_cv_func_printf_posix=yes
18191 gt_cv_func_printf_posix=no
18193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18194 conftest.$ac_objext conftest.beam conftest.$ac_ext
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18200 $as_echo "$gt_cv_func_printf_posix" >&6; }
18201 case $gt_cv_func_printf_posix in
18204 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
18211 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
18212 if ${ac_cv_gnu_library_2_1+:} false; then :
18213 $as_echo_n "(cached) " >&6
18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h. */
18218 #include <features.h>
18219 #ifdef __GNU_LIBRARY__
18220 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18230 $EGREP "Lucky" >/dev/null 2>&1; then :
18231 ac_cv_gnu_library_2_1=yes
18233 ac_cv_gnu_library_2_1=no
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18241 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18243 GLIBC21="$ac_cv_gnu_library_2_1"
18247 for ac_header in stdint.h
18249 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18250 if test "x$ac_cv_header_stdint_h" = xyes; then :
18251 cat >>confdefs.h <<_ACEOF
18252 #define HAVE_STDINT_H 1
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18260 $as_echo_n "checking for SIZE_MAX... " >&6; }
18261 if ${gl_cv_size_max+:} false; then :
18262 $as_echo_n "(cached) " >&6
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18269 #include <limits.h>
18271 #include <stdint.h>
18278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18279 $EGREP "Found it" >/dev/null 2>&1; then :
18284 if test -z "$gl_cv_size_max"; then
18285 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
18286 #include <limits.h>"; then :
18289 size_t_bits_minus_1=
18292 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
18298 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18299 if test $fits_in_uint = 1; then
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18302 #include <stddef.h>
18304 extern unsigned long foo;
18314 if ac_fn_c_try_compile "$LINENO"; then :
18317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 if test $fits_in_uint = 1; then
18320 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18322 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18325 gl_cv_size_max='((size_t)~(size_t)0)'
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18331 $as_echo "$gl_cv_size_max" >&6; }
18332 if test "$gl_cv_size_max" != yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define SIZE_MAX $gl_cv_size_max
18343 for ac_header in stdint.h
18345 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18346 if test "x$ac_cv_header_stdint_h" = xyes; then :
18347 cat >>confdefs.h <<_ACEOF
18348 #define HAVE_STDINT_H 1
18359 for ac_func in $ac_func_list
18361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18362 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18363 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18364 cat >>confdefs.h <<_ACEOF
18365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
18379 $as_echo_n "checking for working fcntl.h... " >&6; }
18380 if ${gl_cv_header_working_fcntl_h+:} false; then :
18381 $as_echo_n "(cached) " >&6
18383 if test "$cross_compiling" = yes; then :
18384 gl_cv_header_working_fcntl_h=cross-compiling
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18388 #include <sys/types.h>
18389 #include <sys/stat.h>
18391 # include <unistd.h>
18392 #else /* on Windows with MSVC */
18394 # include <stdlib.h>
18395 # defined sleep(n) _sleep ((n) * 1000)
18399 #define O_NOATIME 0
18402 #define O_NOFOLLOW 0
18404 static int const constants[] =
18406 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18407 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18414 int result = !constants;
18417 static char const sym[] = "conftest.sym";
18418 if (symlink ("/dev/null", sym) != 0)
18422 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
18429 if (unlink (sym) != 0 || symlink (".", sym) != 0)
18433 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
18444 static char const file[] = "confdefs.h";
18445 int fd = open (file, O_RDONLY | O_NOATIME);
18451 if (fstat (fd, &st0) != 0)
18457 if (read (fd, &c, 1) != 1)
18461 if (close (fd) != 0)
18466 if (stat (file, &st1) != 0)
18469 if (st0.st_atime != st1.st_atime)
18481 if ac_fn_c_try_run "$LINENO"; then :
18482 gl_cv_header_working_fcntl_h=yes
18485 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
18486 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
18487 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
18488 *) gl_cv_header_working_fcntl_h='no';;
18491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18492 conftest.$ac_objext conftest.beam conftest.$ac_ext
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
18497 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
18499 case $gl_cv_header_working_fcntl_h in #(
18500 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
18504 cat >>confdefs.h <<_ACEOF
18505 #define HAVE_WORKING_O_NOATIME $ac_val
18509 case $gl_cv_header_working_fcntl_h in #(
18510 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
18514 cat >>confdefs.h <<_ACEOF
18515 #define HAVE_WORKING_O_NOFOLLOW $ac_val
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18521 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18522 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18523 $as_echo_n "(cached) " >&6
18525 gt_save_LIBS="$LIBS"
18526 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529 #include <CoreFoundation/CFPreferences.h>
18533 CFPreferencesCopyAppValue(NULL, NULL)
18538 if ac_fn_c_try_link "$LINENO"; then :
18539 gt_cv_func_CFPreferencesCopyAppValue=yes
18541 gt_cv_func_CFPreferencesCopyAppValue=no
18543 rm -f core conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS="$gt_save_LIBS"
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18548 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18549 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18551 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18555 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18556 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18557 $as_echo_n "(cached) " >&6
18559 gt_save_LIBS="$LIBS"
18560 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 #include <CoreFoundation/CFLocale.h>
18567 CFLocaleCopyCurrent();
18572 if ac_fn_c_try_link "$LINENO"; then :
18573 gt_cv_func_CFLocaleCopyCurrent=yes
18575 gt_cv_func_CFLocaleCopyCurrent=no
18577 rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18579 LIBS="$gt_save_LIBS"
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18582 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18583 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18585 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18589 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18590 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18602 case "$enable_silent_rules" in
18603 yes) INTL_DEFAULT_VERBOSITY=0;;
18604 no) INTL_DEFAULT_VERBOSITY=1;;
18605 *) INTL_DEFAULT_VERBOSITY=1;;
18609 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18610 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18614 $as_echo "#define ptrdiff_t long" >>confdefs.h
18619 for ac_header in features.h stddef.h stdlib.h string.h
18621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18622 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18624 cat >>confdefs.h <<_ACEOF
18625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18632 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
18633 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18638 cat >>confdefs.h <<_ACEOF
18639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18646 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18648 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
18654 cat >>confdefs.h <<_ACEOF
18655 #define HAVE_DECL__SNPRINTF $ac_have_decl
18657 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
18659 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
18665 cat >>confdefs.h <<_ACEOF
18666 #define HAVE_DECL__SNWPRINTF $ac_have_decl
18670 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
18672 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
18678 cat >>confdefs.h <<_ACEOF
18679 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
18683 case $gt_cv_func_printf_posix in
18684 *yes) HAVE_POSIX_PRINTF=1 ;;
18685 *) HAVE_POSIX_PRINTF=0 ;;
18688 if test "$ac_cv_func_asprintf" = yes; then
18694 if test "$ac_cv_func_snprintf" = yes; then
18700 if test "$ac_cv_func_newlocale" = yes; then
18706 if test "$ac_cv_func_wprintf" = yes; then
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18715 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18716 if ${am_cv_langinfo_codeset+:} false; then :
18717 $as_echo_n "(cached) " >&6
18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h. */
18721 #include <langinfo.h>
18725 char* cs = nl_langinfo(CODESET); return !cs;
18730 if ac_fn_c_try_link "$LINENO"; then :
18731 am_cv_langinfo_codeset=yes
18733 am_cv_langinfo_codeset=no
18735 rm -f core conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
18740 $as_echo "$am_cv_langinfo_codeset" >&6; }
18741 if test $am_cv_langinfo_codeset = yes; then
18743 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
18749 $as_echo_n "checking for LC_MESSAGES... " >&6; }
18750 if ${gt_cv_val_LC_MESSAGES+:} false; then :
18751 $as_echo_n "(cached) " >&6
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 #include <locale.h>
18764 if ac_fn_c_try_link "$LINENO"; then :
18765 gt_cv_val_LC_MESSAGES=yes
18767 gt_cv_val_LC_MESSAGES=no
18769 rm -f core conftest.err conftest.$ac_objext \
18770 conftest$ac_exeext conftest.$ac_ext
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
18773 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
18774 if test $gt_cv_val_LC_MESSAGES = yes; then
18776 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
18781 if test "$enable_shared" = yes; then
18783 mingw* | cygwin*) is_woe32dll=yes ;;
18784 *) is_woe32dll=no ;;
18789 WOE32DLL=$is_woe32dll
18793 mingw* | cygwin*) is_woe32=yes ;;
18798 if test $WOE32 = yes; then
18799 if test -n "$ac_tool_prefix"; then
18800 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
18801 set dummy ${ac_tool_prefix}windres; ac_word=$2
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18803 $as_echo_n "checking for $ac_word... " >&6; }
18804 if ${ac_cv_prog_WINDRES+:} false; then :
18805 $as_echo_n "(cached) " >&6
18807 if test -n "$WINDRES"; then
18808 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18811 for as_dir in $PATH
18814 test -z "$as_dir" && as_dir=.
18815 for ac_exec_ext in '' $ac_executable_extensions; do
18816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18817 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
18818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18827 WINDRES=$ac_cv_prog_WINDRES
18828 if test -n "$WINDRES"; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
18830 $as_echo "$WINDRES" >&6; }
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18833 $as_echo "no" >&6; }
18838 if test -z "$ac_cv_prog_WINDRES"; then
18839 ac_ct_WINDRES=$WINDRES
18840 # Extract the first word of "windres", so it can be a program name with args.
18841 set dummy windres; ac_word=$2
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18843 $as_echo_n "checking for $ac_word... " >&6; }
18844 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
18845 $as_echo_n "(cached) " >&6
18847 if test -n "$ac_ct_WINDRES"; then
18848 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18851 for as_dir in $PATH
18854 test -z "$as_dir" && as_dir=.
18855 for ac_exec_ext in '' $ac_executable_extensions; do
18856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18857 ac_cv_prog_ac_ct_WINDRES="windres"
18858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18867 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18868 if test -n "$ac_ct_WINDRES"; then
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
18870 $as_echo "$ac_ct_WINDRES" >&6; }
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873 $as_echo "no" >&6; }
18876 if test "x$ac_ct_WINDRES" = x; then
18879 case $cross_compiling:$ac_tool_warned in
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18883 ac_tool_warned=yes ;;
18885 WINDRES=$ac_ct_WINDRES
18888 WINDRES="$ac_cv_prog_WINDRES"
18894 hpux*) LTLIBC="" ;;
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18925 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18926 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18927 $as_echo_n "(cached) " >&6
18929 gt_save_LIBS="$LIBS"
18930 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18933 #include <CoreFoundation/CFPreferences.h>
18937 CFPreferencesCopyAppValue(NULL, NULL)
18942 if ac_fn_c_try_link "$LINENO"; then :
18943 gt_cv_func_CFPreferencesCopyAppValue=yes
18945 gt_cv_func_CFPreferencesCopyAppValue=no
18947 rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949 LIBS="$gt_save_LIBS"
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18952 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18953 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18955 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18959 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18960 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18961 $as_echo_n "(cached) " >&6
18963 gt_save_LIBS="$LIBS"
18964 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h. */
18967 #include <CoreFoundation/CFLocale.h>
18971 CFLocaleCopyCurrent();
18976 if ac_fn_c_try_link "$LINENO"; then :
18977 gt_cv_func_CFLocaleCopyCurrent=yes
18979 gt_cv_func_CFLocaleCopyCurrent=no
18981 rm -f core conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18983 LIBS="$gt_save_LIBS"
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18986 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18987 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18989 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18993 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18994 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19002 BUILD_INCLUDED_LIBINTL=no
19003 USE_INCLUDED_LIBINTL=no
19009 case " $gt_needs " in
19010 *" need-formatstring-macros "*) gt_api_version=3 ;;
19011 *" need-ngettext "*) gt_api_version=2 ;;
19012 *) gt_api_version=1 ;;
19014 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19015 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19017 if test "$USE_NLS" = "yes"; then
19018 gt_use_preinstalled_gnugettext=no
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19021 $as_echo_n "checking whether included gettext is requested... " >&6; }
19023 # Check whether --with-included-gettext was given.
19024 if test "${with_included_gettext+set}" = set; then :
19025 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19027 nls_cv_force_use_gnu_gettext=no
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19031 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19033 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19034 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19037 if test $gt_api_version -ge 3; then
19038 gt_revision_test_code='
19039 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19040 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19042 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19045 gt_revision_test_code=
19047 if test $gt_api_version -ge 2; then
19048 gt_expression_test_code=' + * ngettext ("", "", 0)'
19050 gt_expression_test_code=
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19054 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19055 if eval \${$gt_func_gnugettext_libc+:} false; then :
19056 $as_echo_n "(cached) " >&6
19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19061 #include <libintl.h>
19062 $gt_revision_test_code
19063 extern int _nl_msg_cat_cntr;
19064 extern int *_nl_domain_bindings;
19070 bindtextdomain ("", "");
19071 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
19077 if ac_fn_c_try_link "$LINENO"; then :
19078 eval "$gt_func_gnugettext_libc=yes"
19080 eval "$gt_func_gnugettext_libc=no"
19082 rm -f core conftest.err conftest.$ac_objext \
19083 conftest$ac_exeext conftest.$ac_ext
19085 eval ac_res=\$$gt_func_gnugettext_libc
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19087 $as_echo "$ac_res" >&6; }
19089 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19100 acl_save_prefix="$prefix"
19101 prefix="$acl_final_prefix"
19102 acl_save_exec_prefix="$exec_prefix"
19103 exec_prefix="$acl_final_exec_prefix"
19105 eval additional_includedir=\"$includedir\"
19106 eval additional_libdir=\"$libdir\"
19108 exec_prefix="$acl_save_exec_prefix"
19109 prefix="$acl_save_prefix"
19112 # Check whether --with-libintl-prefix was given.
19113 if test "${with_libintl_prefix+set}" = set; then :
19114 withval=$with_libintl_prefix;
19115 if test "X$withval" = "Xno"; then
19118 if test "X$withval" = "X"; then
19120 acl_save_prefix="$prefix"
19121 prefix="$acl_final_prefix"
19122 acl_save_exec_prefix="$exec_prefix"
19123 exec_prefix="$acl_final_exec_prefix"
19125 eval additional_includedir=\"$includedir\"
19126 eval additional_libdir=\"$libdir\"
19128 exec_prefix="$acl_save_exec_prefix"
19129 prefix="$acl_save_prefix"
19132 additional_includedir="$withval/include"
19133 additional_libdir="$withval/$acl_libdirstem"
19134 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19135 && ! test -d "$withval/$acl_libdirstem"; then
19136 additional_libdir="$withval/$acl_libdirstem2"
19150 names_already_handled=
19151 names_next_round='intl '
19152 while test -n "$names_next_round"; do
19153 names_this_round="$names_next_round"
19155 for name in $names_this_round; do
19157 for n in $names_already_handled; do
19158 if test "$n" = "$name"; then
19159 already_handled=yes
19163 if test -z "$already_handled"; then
19164 names_already_handled="$names_already_handled $name"
19165 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19166 eval value=\"\$HAVE_LIB$uppername\"
19167 if test -n "$value"; then
19168 if test "$value" = yes; then
19169 eval value=\"\$LIB$uppername\"
19170 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19171 eval value=\"\$LTLIB$uppername\"
19172 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19181 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19182 if test -n "$acl_shlibext"; then
19183 shrext=".$acl_shlibext" # typically: shrext=.so
19187 if test $use_additional = yes; then
19188 dir="$additional_libdir"
19189 if test -n "$acl_shlibext"; then
19190 if test -f "$dir/$libname$shrext"; then
19192 found_so="$dir/$libname$shrext"
19194 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19195 ver=`(cd "$dir" && \
19196 for f in "$libname$shrext".*; do echo "$f"; done \
19197 | sed -e "s,^$libname$shrext\\\\.,," \
19198 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19199 | sed 1q ) 2>/dev/null`
19200 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19202 found_so="$dir/$libname$shrext.$ver"
19205 eval library_names=\"$acl_library_names_spec\"
19206 for f in $library_names; do
19207 if test -f "$dir/$f"; then
19216 if test "X$found_dir" = "X"; then
19217 if test -f "$dir/$libname.$acl_libext"; then
19219 found_a="$dir/$libname.$acl_libext"
19222 if test "X$found_dir" != "X"; then
19223 if test -f "$dir/$libname.la"; then
19224 found_la="$dir/$libname.la"
19228 if test "X$found_dir" = "X"; then
19229 for x in $LDFLAGS $LTLIBINTL; do
19231 acl_save_prefix="$prefix"
19232 prefix="$acl_final_prefix"
19233 acl_save_exec_prefix="$exec_prefix"
19234 exec_prefix="$acl_final_exec_prefix"
19236 exec_prefix="$acl_save_exec_prefix"
19237 prefix="$acl_save_prefix"
19241 dir=`echo "X$x" | sed -e 's/^X-L//'`
19242 if test -n "$acl_shlibext"; then
19243 if test -f "$dir/$libname$shrext"; then
19245 found_so="$dir/$libname$shrext"
19247 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19248 ver=`(cd "$dir" && \
19249 for f in "$libname$shrext".*; do echo "$f"; done \
19250 | sed -e "s,^$libname$shrext\\\\.,," \
19251 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19252 | sed 1q ) 2>/dev/null`
19253 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19255 found_so="$dir/$libname$shrext.$ver"
19258 eval library_names=\"$acl_library_names_spec\"
19259 for f in $library_names; do
19260 if test -f "$dir/$f"; then
19269 if test "X$found_dir" = "X"; then
19270 if test -f "$dir/$libname.$acl_libext"; then
19272 found_a="$dir/$libname.$acl_libext"
19275 if test "X$found_dir" != "X"; then
19276 if test -f "$dir/$libname.la"; then
19277 found_la="$dir/$libname.la"
19282 if test "X$found_dir" != "X"; then
19287 if test "X$found_dir" != "X"; then
19288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19289 if test "X$found_so" != "X"; then
19290 if test "$enable_rpath" = no \
19291 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19292 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19296 for x in $ltrpathdirs; do
19297 if test "X$x" = "X$found_dir"; then
19302 if test -z "$haveit"; then
19303 ltrpathdirs="$ltrpathdirs $found_dir"
19305 if test "$acl_hardcode_direct" = yes; then
19306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19308 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19309 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19311 for x in $rpathdirs; do
19312 if test "X$x" = "X$found_dir"; then
19317 if test -z "$haveit"; then
19318 rpathdirs="$rpathdirs $found_dir"
19322 for x in $LDFLAGS $LIBINTL; do
19324 acl_save_prefix="$prefix"
19325 prefix="$acl_final_prefix"
19326 acl_save_exec_prefix="$exec_prefix"
19327 exec_prefix="$acl_final_exec_prefix"
19329 exec_prefix="$acl_save_exec_prefix"
19330 prefix="$acl_save_prefix"
19332 if test "X$x" = "X-L$found_dir"; then
19337 if test -z "$haveit"; then
19338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19340 if test "$acl_hardcode_minus_L" != no; then
19341 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19343 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19349 if test "X$found_a" != "X"; then
19350 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19352 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19355 additional_includedir=
19356 case "$found_dir" in
19357 */$acl_libdirstem | */$acl_libdirstem/)
19358 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19359 if test "$name" = 'intl'; then
19360 LIBINTL_PREFIX="$basedir"
19362 additional_includedir="$basedir/include"
19364 */$acl_libdirstem2 | */$acl_libdirstem2/)
19365 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19366 if test "$name" = 'intl'; then
19367 LIBINTL_PREFIX="$basedir"
19369 additional_includedir="$basedir/include"
19372 if test "X$additional_includedir" != "X"; then
19373 if test "X$additional_includedir" != "X/usr/include"; then
19375 if test "X$additional_includedir" = "X/usr/local/include"; then
19376 if test -n "$GCC"; then
19378 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19382 if test -z "$haveit"; then
19383 for x in $CPPFLAGS $INCINTL; do
19385 acl_save_prefix="$prefix"
19386 prefix="$acl_final_prefix"
19387 acl_save_exec_prefix="$exec_prefix"
19388 exec_prefix="$acl_final_exec_prefix"
19390 exec_prefix="$acl_save_exec_prefix"
19391 prefix="$acl_save_prefix"
19393 if test "X$x" = "X-I$additional_includedir"; then
19398 if test -z "$haveit"; then
19399 if test -d "$additional_includedir"; then
19400 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19406 if test -n "$found_la"; then
19407 save_libdir="$libdir"
19408 case "$found_la" in
19409 */* | *\\*) . "$found_la" ;;
19410 *) . "./$found_la" ;;
19412 libdir="$save_libdir"
19413 for dep in $dependency_libs; do
19416 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19417 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19418 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19420 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19421 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19422 if test -n "$GCC"; then
19424 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19428 if test -z "$haveit"; then
19430 for x in $LDFLAGS $LIBINTL; do
19432 acl_save_prefix="$prefix"
19433 prefix="$acl_final_prefix"
19434 acl_save_exec_prefix="$exec_prefix"
19435 exec_prefix="$acl_final_exec_prefix"
19437 exec_prefix="$acl_save_exec_prefix"
19438 prefix="$acl_save_prefix"
19440 if test "X$x" = "X-L$additional_libdir"; then
19445 if test -z "$haveit"; then
19446 if test -d "$additional_libdir"; then
19447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19451 for x in $LDFLAGS $LTLIBINTL; do
19453 acl_save_prefix="$prefix"
19454 prefix="$acl_final_prefix"
19455 acl_save_exec_prefix="$exec_prefix"
19456 exec_prefix="$acl_final_exec_prefix"
19458 exec_prefix="$acl_save_exec_prefix"
19459 prefix="$acl_save_prefix"
19461 if test "X$x" = "X-L$additional_libdir"; then
19466 if test -z "$haveit"; then
19467 if test -d "$additional_libdir"; then
19468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19475 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19476 if test "$enable_rpath" != no; then
19478 for x in $rpathdirs; do
19479 if test "X$x" = "X$dir"; then
19484 if test -z "$haveit"; then
19485 rpathdirs="$rpathdirs $dir"
19488 for x in $ltrpathdirs; do
19489 if test "X$x" = "X$dir"; then
19494 if test -z "$haveit"; then
19495 ltrpathdirs="$ltrpathdirs $dir"
19500 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19506 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19513 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19520 if test "X$rpathdirs" != "X"; then
19521 if test -n "$acl_hardcode_libdir_separator"; then
19523 for found_dir in $rpathdirs; do
19524 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19526 acl_save_libdir="$libdir"
19528 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19529 libdir="$acl_save_libdir"
19530 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19532 for found_dir in $rpathdirs; do
19533 acl_save_libdir="$libdir"
19534 libdir="$found_dir"
19535 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19536 libdir="$acl_save_libdir"
19537 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19541 if test "X$ltrpathdirs" != "X"; then
19542 for found_dir in $ltrpathdirs; do
19543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19553 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
19554 if eval \${$gt_func_gnugettext_libintl+:} false; then :
19555 $as_echo_n "(cached) " >&6
19557 gt_save_CPPFLAGS="$CPPFLAGS"
19558 CPPFLAGS="$CPPFLAGS $INCINTL"
19559 gt_save_LIBS="$LIBS"
19560 LIBS="$LIBS $LIBINTL"
19561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19562 /* end confdefs.h. */
19564 #include <libintl.h>
19565 $gt_revision_test_code
19566 extern int _nl_msg_cat_cntr;
19571 const char *_nl_expand_alias (const char *);
19577 bindtextdomain ("", "");
19578 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19584 if ac_fn_c_try_link "$LINENO"; then :
19585 eval "$gt_func_gnugettext_libintl=yes"
19587 eval "$gt_func_gnugettext_libintl=no"
19589 rm -f core conftest.err conftest.$ac_objext \
19590 conftest$ac_exeext conftest.$ac_ext
19591 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19592 LIBS="$LIBS $LIBICONV"
19593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19594 /* end confdefs.h. */
19596 #include <libintl.h>
19597 $gt_revision_test_code
19598 extern int _nl_msg_cat_cntr;
19603 const char *_nl_expand_alias (const char *);
19609 bindtextdomain ("", "");
19610 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19616 if ac_fn_c_try_link "$LINENO"; then :
19617 LIBINTL="$LIBINTL $LIBICONV"
19618 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19619 eval "$gt_func_gnugettext_libintl=yes"
19622 rm -f core conftest.err conftest.$ac_objext \
19623 conftest$ac_exeext conftest.$ac_ext
19625 CPPFLAGS="$gt_save_CPPFLAGS"
19626 LIBS="$gt_save_LIBS"
19628 eval ac_res=\$$gt_func_gnugettext_libintl
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19630 $as_echo "$ac_res" >&6; }
19633 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19634 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19635 && test "$PACKAGE" != gettext-runtime \
19636 && test "$PACKAGE" != gettext-tools; }; then
19637 gt_use_preinstalled_gnugettext=yes
19645 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
19646 nls_cv_use_gnu_gettext=yes
19650 if test "$nls_cv_use_gnu_gettext" = "yes"; then
19651 BUILD_INCLUDED_LIBINTL=yes
19652 USE_INCLUDED_LIBINTL=yes
19653 LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
19654 LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
19655 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
19659 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19660 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19665 if test -n "$INTL_MACOSX_LIBS"; then
19666 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19667 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19668 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19669 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19673 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19674 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19676 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19684 $as_echo_n "checking whether to use NLS... " >&6; }
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19686 $as_echo "$USE_NLS" >&6; }
19687 if test "$USE_NLS" = "yes"; then
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
19689 $as_echo_n "checking where the gettext function comes from... " >&6; }
19690 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19691 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19692 gt_source="external libintl"
19697 gt_source="included intl directory"
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
19700 $as_echo "$gt_source" >&6; }
19703 if test "$USE_NLS" = "yes"; then
19705 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19706 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
19708 $as_echo_n "checking how to link with libintl... " >&6; }
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
19710 $as_echo "$LIBINTL" >&6; }
19712 for element in $INCINTL; do
19714 for x in $CPPFLAGS; do
19716 acl_save_prefix="$prefix"
19717 prefix="$acl_final_prefix"
19718 acl_save_exec_prefix="$exec_prefix"
19719 exec_prefix="$acl_final_exec_prefix"
19721 exec_prefix="$acl_save_exec_prefix"
19722 prefix="$acl_save_prefix"
19724 if test "X$x" = "X$element"; then
19729 if test -z "$haveit"; then
19730 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19737 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19740 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
19748 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
19749 BUILD_INCLUDED_LIBINTL=yes
19756 nls_cv_header_intl=
19757 nls_cv_header_libgt=
19769 if test "$USE_INCLUDED_LIBINTL" = yes; then
19770 INTLOBJS="\$(GETTOBJS)"
19774 INTL_LIBTOOL_SUFFIX_PREFIX=l
19778 INTLLIBS="$LIBINTL"
19791 LIBC_FATAL_STDERR_=1
19792 export LIBC_FATAL_STDERR_
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
19798 $as_echo_n "checking whether to use C++... " >&6; }
19799 # Check whether --enable-c++ was given.
19800 if test "${enable_c__+set}" = set; then :
19801 enableval=$enable_c__; CXX_CHOICE="$enableval"
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
19807 $as_echo "$CXX_CHOICE" >&6; }
19813 GNULIB_CALLOC_POSIX=0;
19814 GNULIB_CANONICALIZE_FILE_NAME=0;
19815 GNULIB_GETLOADAVG=0;
19816 GNULIB_GETSUBOPT=0;
19818 GNULIB_MALLOC_POSIX=0;
19822 GNULIB_MKOSTEMPS=0;
19825 GNULIB_POSIX_OPENPT=0;
19827 GNULIB_PTSNAME_R=0;
19831 GNULIB_REALLOC_POSIX=0;
19834 GNULIB_SECURE_GETENV=0;
19839 GNULIB_SYSTEM_POSIX=0;
19845 HAVE_CANONICALIZE_FILE_NAME=1;
19846 HAVE_DECL_GETLOADAVG=1;
19854 HAVE_POSIX_OPENPT=1;
19862 HAVE_SECURE_GETENV=1;
19864 HAVE_DECL_SETENV=1;
19868 HAVE_STRUCT_RANDOM_DATA=1;
19869 HAVE_SYS_LOADAVG_H=0;
19871 HAVE_DECL_UNSETENV=1;
19873 REPLACE_CANONICALIZE_FILE_NAME=0;
19878 REPLACE_PTSNAME_R=0;
19880 REPLACE_RANDOM_R=0;
19882 REPLACE_REALPATH=0;
19885 REPLACE_UNSETENV=0;
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19897 $as_echo_n "checking whether // is distinct from /... " >&6; }
19898 if ${gl_cv_double_slash_root+:} false; then :
19899 $as_echo_n "(cached) " >&6
19901 if test x"$cross_compiling" = xyes ; then
19902 # When cross-compiling, there is no way to tell whether // is special
19903 # short of a list of hosts. However, the only known hosts to date
19904 # that have a distinct // are Apollo DomainOS (too old to port to),
19905 # Cygwin, and z/OS. If anyone knows of another system for which // has
19906 # special semantics and is distinct from /, please report it to
19907 # <bug-gnulib@gnu.org>.
19909 *-cygwin | i370-ibm-openedition)
19910 gl_cv_double_slash_root=yes ;;
19912 # Be optimistic and assume that / and // are the same when we
19914 gl_cv_double_slash_root='unknown, assuming no' ;;
19917 set x `ls -di / // 2>/dev/null`
19918 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19919 gl_cv_double_slash_root=no
19921 gl_cv_double_slash_root=yes
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19926 $as_echo "$gl_cv_double_slash_root" >&6; }
19927 if test "$gl_cv_double_slash_root" = yes; then
19929 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
19938 $as_echo_n "checking whether realpath works... " >&6; }
19939 if ${gl_cv_func_realpath_works+:} false; then :
19940 $as_echo_n "(cached) " >&6
19945 if test "$cross_compiling" = yes; then :
19947 # Guess yes on glibc systems.
19948 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
19949 # If we don't know, assume the worst.
19950 *) gl_cv_func_realpath_works="guessing no" ;;
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h. */
19959 #include <stdlib.h>
19960 #if defined __MACH__ && defined __APPLE__
19961 /* Avoid a crash on Mac OS X. */
19962 #include <mach/mach.h>
19963 #include <mach/mach_error.h>
19964 #include <mach/thread_status.h>
19965 #include <mach/exception.h>
19966 #include <mach/task.h>
19967 #include <pthread.h>
19968 /* The exception port on which our thread listens. */
19969 static mach_port_t our_exception_port;
19970 /* The main function of the thread listening for exceptions of type
19973 mach_exception_thread (void *arg)
19975 /* Buffer for a message to be received. */
19977 mach_msg_header_t head;
19978 mach_msg_body_t msgh_body;
19981 mach_msg_return_t retval;
19982 /* Wait for a message on the exception port. */
19983 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19984 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19985 if (retval != MACH_MSG_SUCCESS)
19990 nocrash_init (void)
19992 mach_port_t self = mach_task_self ();
19993 /* Allocate a port on which the thread shall listen for exceptions. */
19994 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19996 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19997 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19998 MACH_MSG_TYPE_MAKE_SEND)
20000 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
20002 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20003 /* Create the thread listening on the exception port. */
20004 pthread_attr_t attr;
20006 if (pthread_attr_init (&attr) == 0
20007 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20008 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20009 pthread_attr_destroy (&attr);
20010 /* Replace the exception port info for these exceptions with our own.
20011 Note that we replace the exception port for the entire task, not only
20012 for a particular thread. This has the effect that when our exception
20013 port gets the message, the thread specific exception port has already
20014 been asked, and we don't need to bother about it.
20015 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
20016 task_set_exception_ports (self, mask, our_exception_port,
20017 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20022 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20023 /* Avoid a crash on native Windows. */
20024 #define WIN32_LEAN_AND_MEAN
20025 #include <windows.h>
20026 #include <winerror.h>
20028 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
20030 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
20032 case EXCEPTION_ACCESS_VIOLATION:
20033 case EXCEPTION_IN_PAGE_ERROR:
20034 case EXCEPTION_STACK_OVERFLOW:
20035 case EXCEPTION_GUARD_PAGE:
20036 case EXCEPTION_PRIV_INSTRUCTION:
20037 case EXCEPTION_ILLEGAL_INSTRUCTION:
20038 case EXCEPTION_DATATYPE_MISALIGNMENT:
20039 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
20040 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
20043 return EXCEPTION_CONTINUE_SEARCH;
20046 nocrash_init (void)
20048 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
20051 /* Avoid a crash on POSIX systems. */
20052 #include <signal.h>
20053 /* A POSIX signal handler. */
20055 exception_handler (int sig)
20060 nocrash_init (void)
20063 signal (SIGSEGV, exception_handler);
20066 signal (SIGBUS, exception_handler);
20071 #include <stdlib.h>
20072 #include <string.h>
20080 char *name = realpath ("conftest.a", NULL);
20081 if (!(name && *name == '/'))
20085 char *name = realpath ("conftest.b/../conftest.a", NULL);
20090 char *name = realpath ("conftest.a/", NULL);
20095 char *name1 = realpath (".", NULL);
20096 char *name2 = realpath ("conftest.d//./..", NULL);
20097 if (strcmp (name1, name2) != 0)
20107 if ac_fn_c_try_run "$LINENO"; then :
20108 gl_cv_func_realpath_works=yes
20110 gl_cv_func_realpath_works=no
20112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20113 conftest.$ac_objext conftest.beam conftest.$ac_ext
20116 rm -rf conftest.a conftest.d
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
20120 $as_echo "$gl_cv_func_realpath_works" >&6; }
20121 case "$gl_cv_func_realpath_works" in
20124 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
20146 GNULIB_EUIDACCESS=0;
20147 GNULIB_FACCESSAT=0;
20150 GNULIB_FDATASYNC=0;
20152 GNULIB_FTRUNCATE=0;
20154 GNULIB_GETDOMAINNAME=0;
20155 GNULIB_GETDTABLESIZE=0;
20156 GNULIB_GETGROUPS=0;
20157 GNULIB_GETHOSTNAME=0;
20159 GNULIB_GETLOGIN_R=0;
20160 GNULIB_GETPAGESIZE=0;
20161 GNULIB_GETUSERSHELL=0;
20162 GNULIB_GROUP_MEMBER=0;
20174 GNULIB_READLINKAT=0;
20176 GNULIB_SETHOSTNAME=0;
20179 GNULIB_SYMLINKAT=0;
20180 GNULIB_TTYNAME_R=0;
20181 GNULIB_UNISTD_H_NONBLOCKING=0;
20182 GNULIB_UNISTD_H_SIGPIPE=0;
20197 HAVE_GETDTABLESIZE=1;
20199 HAVE_GETHOSTNAME=1;
20201 HAVE_GETPAGESIZE=1;
20202 HAVE_GROUP_MEMBER=1;
20212 HAVE_SETHOSTNAME=1;
20218 HAVE_DECL_ENVIRON=1;
20219 HAVE_DECL_FCHDIR=1;
20220 HAVE_DECL_FDATASYNC=1;
20221 HAVE_DECL_GETDOMAINNAME=1;
20222 HAVE_DECL_GETLOGIN_R=1;
20223 HAVE_DECL_GETPAGESIZE=1;
20224 HAVE_DECL_GETUSERSHELL=1;
20225 HAVE_DECL_SETHOSTNAME=1;
20226 HAVE_DECL_TTYNAME_R=1;
20228 HAVE_SYS_PARAM_H=0;
20233 REPLACE_FCHOWNAT=0;
20234 REPLACE_FTRUNCATE=0;
20236 REPLACE_GETDOMAINNAME=0;
20237 REPLACE_GETLOGIN_R=0;
20238 REPLACE_GETGROUPS=0;
20239 REPLACE_GETPAGESIZE=0;
20248 REPLACE_READLINK=0;
20252 REPLACE_TTYNAME_R=0;
20254 REPLACE_UNLINKAT=0;
20257 UNISTD_H_HAVE_WINSOCK2_H=0;
20258 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
20269 $as_echo_n "checking if environ is properly declared... " >&6; }
20270 if ${gt_cv_var_environ_declaration+:} false; then :
20271 $as_echo_n "(cached) " >&6
20274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20277 #include <unistd.h>
20279 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
20280 #include <stdlib.h>
20282 extern struct { int foo; } environ;
20291 if ac_fn_c_try_compile "$LINENO"; then :
20292 gt_cv_var_environ_declaration=no
20294 gt_cv_var_environ_declaration=yes
20296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
20300 $as_echo "$gt_cv_var_environ_declaration" >&6; }
20301 if test $gt_cv_var_environ_declaration = yes; then
20303 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
20308 if test $gt_cv_var_environ_declaration != yes; then
20309 HAVE_DECL_ENVIRON=0
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
20315 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
20316 if ${gl_cv_have_include_next+:} false; then :
20317 $as_echo_n "(cached) " >&6
20319 rm -rf conftestd1a conftestd1b conftestd2
20320 mkdir conftestd1a conftestd1b conftestd2
20321 cat <<EOF > conftestd1a/conftest.h
20322 #define DEFINED_IN_CONFTESTD1
20323 #include_next <conftest.h>
20324 #ifdef DEFINED_IN_CONFTESTD2
20327 #error "include_next doesn't work"
20330 cat <<EOF > conftestd1b/conftest.h
20331 #define DEFINED_IN_CONFTESTD1
20333 #include_next <conftest.h>
20334 #ifdef DEFINED_IN_CONFTESTD2
20337 #error "include_next doesn't work"
20340 cat <<EOF > conftestd2/conftest.h
20341 #ifndef DEFINED_IN_CONFTESTD1
20342 #error "include_next test doesn't work"
20344 #define DEFINED_IN_CONFTESTD2
20346 gl_save_CPPFLAGS="$CPPFLAGS"
20347 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20350 #include <conftest.h>
20352 if ac_fn_c_try_compile "$LINENO"; then :
20353 gl_cv_have_include_next=yes
20355 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20358 #include <conftest.h>
20360 if ac_fn_c_try_compile "$LINENO"; then :
20361 gl_cv_have_include_next=buggy
20363 gl_cv_have_include_next=no
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 CPPFLAGS="$gl_save_CPPFLAGS"
20370 rm -rf conftestd1a conftestd1b conftestd2
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
20374 $as_echo "$gl_cv_have_include_next" >&6; }
20375 PRAGMA_SYSTEM_HEADER=
20376 if test $gl_cv_have_include_next = yes; then
20377 INCLUDE_NEXT=include_next
20378 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20379 if test -n "$GCC"; then
20380 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
20383 if test $gl_cv_have_include_next = buggy; then
20384 INCLUDE_NEXT=include
20385 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20387 INCLUDE_NEXT=include
20388 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
20395 $as_echo_n "checking whether system header files limit the line length... " >&6; }
20396 if ${gl_cv_pragma_columns+:} false; then :
20397 $as_echo_n "(cached) " >&6
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20408 $EGREP "choke me" >/dev/null 2>&1; then :
20409 gl_cv_pragma_columns=yes
20411 gl_cv_pragma_columns=no
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
20418 $as_echo "$gl_cv_pragma_columns" >&6; }
20419 if test $gl_cv_pragma_columns = yes; then
20420 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
20429 $as_echo_n "checking for complete errno.h... " >&6; }
20430 if ${gl_cv_header_errno_h_complete+:} false; then :
20431 $as_echo_n "(cached) " >&6
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h. */
20438 #if !defined ETXTBSY
20441 #if !defined ENOMSG
20447 #if !defined ENOLINK
20450 #if !defined EPROTO
20453 #if !defined EMULTIHOP
20456 #if !defined EBADMSG
20459 #if !defined EOVERFLOW
20462 #if !defined ENOTSUP
20465 #if !defined ENETRESET
20468 #if !defined ECONNABORTED
20471 #if !defined ESTALE
20474 #if !defined EDQUOT
20477 #if !defined ECANCELED
20480 #if !defined EOWNERDEAD
20483 #if !defined ENOTRECOVERABLE
20486 #if !defined EILSEQ
20491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20492 $EGREP "booboo" >/dev/null 2>&1; then :
20493 gl_cv_header_errno_h_complete=no
20495 gl_cv_header_errno_h_complete=yes
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20502 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
20503 if test $gl_cv_header_errno_h_complete = yes; then
20514 if test $gl_cv_have_include_next = yes; then
20515 gl_cv_next_errno_h='<'errno.h'>'
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20518 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
20519 if ${gl_cv_next_errno_h+:} false; then :
20520 $as_echo_n "(cached) " >&6
20523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524 /* end confdefs.h. */
20529 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20530 *) gl_absname_cpp="$ac_cpp" ;;
20535 gl_dirsep_regex='[/\\]'
20538 gl_dirsep_regex='\/'
20541 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20543 gl_header_literal_regex=`echo 'errno.h' \
20544 | sed -e "$gl_make_literal_regex_sed"`
20545 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20546 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20551 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20552 sed -n "$gl_absolute_header_sed"`'"'
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20557 $as_echo "$gl_cv_next_errno_h" >&6; }
20559 NEXT_ERRNO_H=$gl_cv_next_errno_h
20561 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20563 gl_next_as_first_directive='<'errno.h'>'
20565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20566 gl_next_as_first_directive=$gl_cv_next_errno_h
20568 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20576 if test -n "$ERRNO_H"; then
20577 GL_GENERATE_ERRNO_H_TRUE=
20578 GL_GENERATE_ERRNO_H_FALSE='#'
20580 GL_GENERATE_ERRNO_H_TRUE='#'
20581 GL_GENERATE_ERRNO_H_FALSE=
20585 if test -n "$ERRNO_H"; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20587 $as_echo_n "checking for EMULTIHOP value... " >&6; }
20588 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
20589 $as_echo_n "(cached) " >&6
20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h. */
20601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602 $EGREP "yes" >/dev/null 2>&1; then :
20603 gl_cv_header_errno_h_EMULTIHOP=yes
20605 gl_cv_header_errno_h_EMULTIHOP=no
20609 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20613 #define _XOPEN_SOURCE_EXTENDED 1
20620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20621 $EGREP "yes" >/dev/null 2>&1; then :
20622 gl_cv_header_errno_h_EMULTIHOP=hidden
20626 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20627 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
20628 #define _XOPEN_SOURCE_EXTENDED 1
20630 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20632 #include <stdlib.h>
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20642 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20643 case $gl_cv_header_errno_h_EMULTIHOP in
20645 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20648 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20656 if test -n "$ERRNO_H"; then
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20658 $as_echo_n "checking for ENOLINK value... " >&6; }
20659 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
20660 $as_echo_n "(cached) " >&6
20663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20664 /* end confdefs.h. */
20672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20673 $EGREP "yes" >/dev/null 2>&1; then :
20674 gl_cv_header_errno_h_ENOLINK=yes
20676 gl_cv_header_errno_h_ENOLINK=no
20680 if test $gl_cv_header_errno_h_ENOLINK = no; then
20681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h. */
20684 #define _XOPEN_SOURCE_EXTENDED 1
20691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20692 $EGREP "yes" >/dev/null 2>&1; then :
20693 gl_cv_header_errno_h_ENOLINK=hidden
20697 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20698 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
20699 #define _XOPEN_SOURCE_EXTENDED 1
20701 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20703 #include <stdlib.h>
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20713 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20714 case $gl_cv_header_errno_h_ENOLINK in
20716 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20719 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20727 if test -n "$ERRNO_H"; then
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20729 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20730 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
20731 $as_echo_n "(cached) " >&6
20734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20735 /* end confdefs.h. */
20743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20744 $EGREP "yes" >/dev/null 2>&1; then :
20745 gl_cv_header_errno_h_EOVERFLOW=yes
20747 gl_cv_header_errno_h_EOVERFLOW=no
20751 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753 /* end confdefs.h. */
20755 #define _XOPEN_SOURCE_EXTENDED 1
20762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20763 $EGREP "yes" >/dev/null 2>&1; then :
20764 gl_cv_header_errno_h_EOVERFLOW=hidden
20768 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20769 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
20770 #define _XOPEN_SOURCE_EXTENDED 1
20772 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20774 #include <stdlib.h>
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20784 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20785 case $gl_cv_header_errno_h_EOVERFLOW in
20787 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20790 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20798 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
20799 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_DECL_STRERROR_R $ac_have_decl
20809 for ac_func in strerror_r
20811 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
20812 if test "x$ac_cv_func_strerror_r" = xyes; then :
20813 cat >>confdefs.h <<_ACEOF
20814 #define HAVE_STRERROR_R 1
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20821 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
20822 if ${ac_cv_func_strerror_r_char_p+:} false; then :
20823 $as_echo_n "(cached) " >&6
20826 ac_cv_func_strerror_r_char_p=no
20827 if test $ac_cv_have_decl_strerror_r = yes; then
20828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h. */
20830 $ac_includes_default
20836 char x = *strerror_r (0, buf, sizeof buf);
20837 char *p = strerror_r (0, buf, sizeof buf);
20844 if ac_fn_c_try_compile "$LINENO"; then :
20845 ac_cv_func_strerror_r_char_p=yes
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 # strerror_r is not declared. Choose between
20850 # systems that have relatively inaccessible declarations for the
20851 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
20852 # former has a strerror_r that returns char*, while the latter
20853 # has a strerror_r that returns `int'.
20854 # This test should segfault on the DEC system.
20855 if test "$cross_compiling" = yes; then :
20858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20860 $ac_includes_default
20861 extern char *strerror_r ();
20866 char x = *strerror_r (0, buf, sizeof buf);
20867 return ! isalpha (x);
20872 if ac_fn_c_try_run "$LINENO"; then :
20873 ac_cv_func_strerror_r_char_p=yes
20875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20876 conftest.$ac_objext conftest.beam conftest.$ac_ext
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20883 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
20884 if test $ac_cv_func_strerror_r_char_p = yes; then
20886 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20891 XGETTEXT_EXTRA_OPTIONS=
20908 if test $gl_cv_have_include_next = yes; then
20909 gl_cv_next_getopt_h='<'getopt.h'>'
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
20912 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
20913 if ${gl_cv_next_getopt_h+:} false; then :
20914 $as_echo_n "(cached) " >&6
20917 if test $ac_cv_header_getopt_h = yes; then
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922 #include <getopt.h>
20926 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20927 *) gl_absname_cpp="$ac_cpp" ;;
20932 gl_dirsep_regex='[/\\]'
20935 gl_dirsep_regex='\/'
20938 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20940 gl_header_literal_regex=`echo 'getopt.h' \
20941 | sed -e "$gl_make_literal_regex_sed"`
20942 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20943 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20948 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20949 sed -n "$gl_absolute_header_sed"`'"'
20951 gl_cv_next_getopt_h='<'getopt.h'>'
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
20957 $as_echo "$gl_cv_next_getopt_h" >&6; }
20959 NEXT_GETOPT_H=$gl_cv_next_getopt_h
20961 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20963 gl_next_as_first_directive='<'getopt.h'>'
20965 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20966 gl_next_as_first_directive=$gl_cv_next_getopt_h
20968 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
20973 if test $ac_cv_header_getopt_h = yes; then
20982 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
20983 for ac_header in getopt.h
20985 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
20986 if test "x$ac_cv_header_getopt_h" = xyes; then :
20987 cat >>confdefs.h <<_ACEOF
20988 #define HAVE_GETOPT_H 1
20992 gl_replace_getopt=yes
20999 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21000 for ac_func in getopt_long_only
21002 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21003 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
21004 cat >>confdefs.h <<_ACEOF
21005 #define HAVE_GETOPT_LONG_ONLY 1
21009 gl_replace_getopt=yes
21015 if test -z "$gl_replace_getopt"; then
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21017 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21018 if ${gl_cv_func_getopt_posix+:} false; then :
21019 $as_echo_n "(cached) " >&6
21022 if test $cross_compiling = no; then
21023 if test "$cross_compiling" = yes; then :
21024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21026 as_fn_error $? "cannot run test program while cross compiling
21027 See \`config.log' for more details" "$LINENO" 5; }
21029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h. */
21032 #include <unistd.h>
21033 #include <stdlib.h>
21034 #include <string.h>
21039 static char program[] = "program";
21040 static char a[] = "-a";
21041 static char foo[] = "foo";
21042 static char bar[] = "bar";
21043 char *argv[] = { program, a, foo, bar, NULL };
21046 c = getopt (4, argv, "ab");
21049 c = getopt (4, argv, "ab");
21052 if (!(optind == 2))
21058 if ac_fn_c_try_run "$LINENO"; then :
21059 gl_cv_func_getopt_posix=maybe
21061 gl_cv_func_getopt_posix=no
21063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21064 conftest.$ac_objext conftest.beam conftest.$ac_ext
21067 if test $gl_cv_func_getopt_posix = maybe; then
21068 if test "$cross_compiling" = yes; then :
21069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21071 as_fn_error $? "cannot run test program while cross compiling
21072 See \`config.log' for more details" "$LINENO" 5; }
21074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h. */
21077 #include <unistd.h>
21078 #include <stdlib.h>
21079 #include <string.h>
21084 static char program[] = "program";
21085 static char donald[] = "donald";
21086 static char p[] = "-p";
21087 static char billy[] = "billy";
21088 static char duck[] = "duck";
21089 static char a[] = "-a";
21090 static char bar[] = "bar";
21091 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
21094 c = getopt (7, argv, "+abp:q:");
21097 if (!(strcmp (argv[0], "program") == 0))
21099 if (!(strcmp (argv[1], "donald") == 0))
21101 if (!(strcmp (argv[2], "-p") == 0))
21103 if (!(strcmp (argv[3], "billy") == 0))
21105 if (!(strcmp (argv[4], "duck") == 0))
21107 if (!(strcmp (argv[5], "-a") == 0))
21109 if (!(strcmp (argv[6], "bar") == 0))
21111 if (!(optind == 1))
21117 if ac_fn_c_try_run "$LINENO"; then :
21118 gl_cv_func_getopt_posix=maybe
21120 gl_cv_func_getopt_posix=no
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21123 conftest.$ac_objext conftest.beam conftest.$ac_ext
21127 if test $gl_cv_func_getopt_posix = maybe; then
21128 if test "$cross_compiling" = yes; then :
21129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21131 as_fn_error $? "cannot run test program while cross compiling
21132 See \`config.log' for more details" "$LINENO" 5; }
21134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21135 /* end confdefs.h. */
21137 #include <unistd.h>
21138 #include <stdlib.h>
21139 #include <string.h>
21144 static char program[] = "program";
21145 static char ab[] = "-ab";
21146 char *argv[3] = { program, ab, NULL };
21147 if (getopt (2, argv, "ab:") != 'a')
21149 if (getopt (2, argv, "ab:") != '?')
21159 if ac_fn_c_try_run "$LINENO"; then :
21160 gl_cv_func_getopt_posix=yes
21162 gl_cv_func_getopt_posix=no
21164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21165 conftest.$ac_objext conftest.beam conftest.$ac_ext
21171 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
21172 *) gl_cv_func_getopt_posix="guessing yes";;
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21178 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21179 case "$gl_cv_func_getopt_posix" in
21180 *no) gl_replace_getopt=yes ;;
21184 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21186 $as_echo_n "checking for working GNU getopt function... " >&6; }
21187 if ${gl_cv_func_getopt_gnu+:} false; then :
21188 $as_echo_n "(cached) " >&6
21190 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21191 # optstring is necessary for programs like m4 that have POSIX-mandated
21192 # semantics for supporting options interspersed with files.
21193 # Also, since getopt_long is a GNU extension, we require optind=0.
21194 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
21195 # so take care to revert to the correct (non-)export state.
21196 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
21197 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
21198 xx) gl_had_POSIXLY_CORRECT=exported ;;
21199 x) gl_had_POSIXLY_CORRECT=yes ;;
21200 *) gl_had_POSIXLY_CORRECT= ;;
21203 export POSIXLY_CORRECT
21204 if test "$cross_compiling" = yes; then :
21205 gl_cv_func_getopt_gnu="guessing no"
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21210 #include <getopt.h>
21211 #include <stddef.h>
21212 #include <string.h>
21214 #include <stdlib.h>
21215 #if defined __MACH__ && defined __APPLE__
21216 /* Avoid a crash on Mac OS X. */
21217 #include <mach/mach.h>
21218 #include <mach/mach_error.h>
21219 #include <mach/thread_status.h>
21220 #include <mach/exception.h>
21221 #include <mach/task.h>
21222 #include <pthread.h>
21223 /* The exception port on which our thread listens. */
21224 static mach_port_t our_exception_port;
21225 /* The main function of the thread listening for exceptions of type
21228 mach_exception_thread (void *arg)
21230 /* Buffer for a message to be received. */
21232 mach_msg_header_t head;
21233 mach_msg_body_t msgh_body;
21236 mach_msg_return_t retval;
21237 /* Wait for a message on the exception port. */
21238 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21239 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21240 if (retval != MACH_MSG_SUCCESS)
21245 nocrash_init (void)
21247 mach_port_t self = mach_task_self ();
21248 /* Allocate a port on which the thread shall listen for exceptions. */
21249 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21251 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
21252 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21253 MACH_MSG_TYPE_MAKE_SEND)
21255 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
21257 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21258 /* Create the thread listening on the exception port. */
21259 pthread_attr_t attr;
21261 if (pthread_attr_init (&attr) == 0
21262 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21263 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21264 pthread_attr_destroy (&attr);
21265 /* Replace the exception port info for these exceptions with our own.
21266 Note that we replace the exception port for the entire task, not only
21267 for a particular thread. This has the effect that when our exception
21268 port gets the message, the thread specific exception port has already
21269 been asked, and we don't need to bother about it.
21270 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
21271 task_set_exception_ports (self, mask, our_exception_port,
21272 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21277 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
21278 /* Avoid a crash on native Windows. */
21279 #define WIN32_LEAN_AND_MEAN
21280 #include <windows.h>
21281 #include <winerror.h>
21283 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
21285 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
21287 case EXCEPTION_ACCESS_VIOLATION:
21288 case EXCEPTION_IN_PAGE_ERROR:
21289 case EXCEPTION_STACK_OVERFLOW:
21290 case EXCEPTION_GUARD_PAGE:
21291 case EXCEPTION_PRIV_INSTRUCTION:
21292 case EXCEPTION_ILLEGAL_INSTRUCTION:
21293 case EXCEPTION_DATATYPE_MISALIGNMENT:
21294 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
21295 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
21298 return EXCEPTION_CONTINUE_SEARCH;
21301 nocrash_init (void)
21303 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
21306 /* Avoid a crash on POSIX systems. */
21307 #include <signal.h>
21308 /* A POSIX signal handler. */
21310 exception_handler (int sig)
21315 nocrash_init (void)
21318 signal (SIGSEGV, exception_handler);
21321 signal (SIGBUS, exception_handler);
21335 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
21336 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
21337 OSF/1 5.1, Solaris 10. */
21339 static char conftest[] = "conftest";
21340 static char plus[] = "-+";
21341 char *argv[3] = { conftest, plus, NULL };
21343 if (getopt (2, argv, "+a") != '?')
21346 /* This code succeeds on glibc 2.8, mingw,
21347 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
21348 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
21350 static char program[] = "program";
21351 static char p[] = "-p";
21352 static char foo[] = "foo";
21353 static char bar[] = "bar";
21354 char *argv[] = { program, p, foo, bar, NULL };
21357 if (getopt (4, argv, "p::") != 'p')
21359 else if (optarg != NULL)
21361 else if (getopt (4, argv, "p::") != -1)
21363 else if (optind != 2)
21366 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
21368 static char program[] = "program";
21369 static char foo[] = "foo";
21370 static char p[] = "-p";
21371 char *argv[] = { program, foo, p, NULL };
21373 if (getopt (3, argv, "-p") != 1)
21375 else if (getopt (3, argv, "-p") != 'p')
21378 /* This code fails on glibc 2.11. */
21380 static char program[] = "program";
21381 static char b[] = "-b";
21382 static char a[] = "-a";
21383 char *argv[] = { program, b, a, NULL };
21384 optind = opterr = 0;
21385 if (getopt (3, argv, "+:a:b") != 'b')
21387 else if (getopt (3, argv, "+:a:b") != ':')
21390 /* This code dumps core on glibc 2.14. */
21392 static char program[] = "program";
21393 static char w[] = "-W";
21394 static char dummy[] = "dummy";
21395 char *argv[] = { program, w, dummy, NULL };
21396 optind = opterr = 1;
21397 if (getopt (3, argv, "W;") != 'W')
21406 if ac_fn_c_try_run "$LINENO"; then :
21407 gl_cv_func_getopt_gnu=yes
21409 gl_cv_func_getopt_gnu=no
21411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21412 conftest.$ac_objext conftest.beam conftest.$ac_ext
21415 case $gl_had_POSIXLY_CORRECT in
21417 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
21418 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
21423 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
21424 if test "$gl_cv_func_getopt_gnu" != yes; then
21425 gl_replace_getopt=yes
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
21428 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
21429 if ${gl_cv_func_getopt_long_gnu+:} false; then :
21430 $as_echo_n "(cached) " >&6
21432 if test "$cross_compiling" = yes; then :
21434 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
21435 *) gl_cv_func_getopt_long_gnu="guessing yes";;
21439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21441 #include <getopt.h>
21442 #include <stddef.h>
21443 #include <string.h>
21448 static const struct option long_options[] =
21450 { "xtremely-",no_argument, NULL, 1003 },
21451 { "xtra", no_argument, NULL, 1001 },
21452 { "xtreme", no_argument, NULL, 1002 },
21453 { "xtremely", no_argument, NULL, 1003 },
21454 { NULL, 0, NULL, 0 }
21456 /* This code fails on OpenBSD 5.0. */
21458 static char program[] = "program";
21459 static char xtremel[] = "--xtremel";
21460 char *argv[] = { program, xtremel, NULL };
21462 optind = 1; opterr = 0;
21463 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
21472 if ac_fn_c_try_run "$LINENO"; then :
21473 gl_cv_func_getopt_long_gnu=yes
21475 gl_cv_func_getopt_long_gnu=no
21477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21478 conftest.$ac_objext conftest.beam conftest.$ac_ext
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
21484 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
21485 case "$gl_cv_func_getopt_long_gnu" in
21487 *) gl_replace_getopt=yes ;;
21498 if test -n "$gl_replace_getopt"; then
21502 if test $REPLACE_GETOPT = 1; then
21506 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21512 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
21513 if test "x$ac_cv_have_decl_getenv" = xyes; then :
21519 cat >>confdefs.h <<_ACEOF
21520 #define HAVE_DECL_GETENV $ac_have_decl
21530 GNULIB_TOWCTRANS=0;
21534 REPLACE_ISWBLANK=0;
21545 if test $ac_cv_func_iswcntrl = yes; then
21553 if test $gt_cv_c_wint_t = yes; then
21569 if test $gl_cv_have_include_next = yes; then
21570 gl_cv_next_wctype_h='<'wctype.h'>'
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
21573 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
21574 if ${gl_cv_next_wctype_h+:} false; then :
21575 $as_echo_n "(cached) " >&6
21578 if test $ac_cv_header_wctype_h = yes; then
21581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h. */
21583 #include <wctype.h>
21587 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21588 *) gl_absname_cpp="$ac_cpp" ;;
21593 gl_dirsep_regex='[/\\]'
21596 gl_dirsep_regex='\/'
21599 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21601 gl_header_literal_regex=`echo 'wctype.h' \
21602 | sed -e "$gl_make_literal_regex_sed"`
21603 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21604 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21609 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21610 sed -n "$gl_absolute_header_sed"`'"'
21612 gl_cv_next_wctype_h='<'wctype.h'>'
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
21618 $as_echo "$gl_cv_next_wctype_h" >&6; }
21620 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
21622 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21624 gl_next_as_first_directive='<'wctype.h'>'
21626 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21627 gl_next_as_first_directive=$gl_cv_next_wctype_h
21629 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
21634 if test $ac_cv_header_wctype_h = yes; then
21635 if test $ac_cv_func_iswcntrl = yes; then
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
21637 $as_echo_n "checking whether iswcntrl works... " >&6; }
21638 if ${gl_cv_func_iswcntrl_works+:} false; then :
21639 $as_echo_n "(cached) " >&6
21642 if test "$cross_compiling" = yes; then :
21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h. */
21645 #include <stdlib.h>
21646 #if __GNU_LIBRARY__ == 1
21647 Linux libc5 i18n is broken.
21657 if ac_fn_c_try_compile "$LINENO"; then :
21658 gl_cv_func_iswcntrl_works="guessing yes"
21660 gl_cv_func_iswcntrl_works="guessing no"
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666 /* end confdefs.h. */
21668 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21669 included before <wchar.h>.
21670 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21671 must be included before <wchar.h>. */
21672 #include <stddef.h>
21676 #include <wctype.h>
21677 int main () { return iswprint ('x') == 0; }
21680 if ac_fn_c_try_run "$LINENO"; then :
21681 gl_cv_func_iswcntrl_works=yes
21683 gl_cv_func_iswcntrl_works=no
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21686 conftest.$ac_objext conftest.beam conftest.$ac_ext
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
21692 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
21700 case "$gl_cv_func_iswcntrl_works" in
21701 *yes) REPLACE_ISWCNTRL=0 ;;
21702 *) REPLACE_ISWCNTRL=1 ;;
21706 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
21710 if test $REPLACE_ISWCNTRL = 1; then
21713 for ac_func in towlower
21715 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
21716 if test "x$ac_cv_func_towlower" = xyes; then :
21717 cat >>confdefs.h <<_ACEOF
21718 #define HAVE_TOWLOWER 1
21724 if test $ac_cv_func_towlower = yes; then
21727 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21728 included before <wchar.h>.
21729 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21730 must be included before <wchar.h>. */
21731 #include <stddef.h>
21736 # include <wctype.h>
21740 if test "x$ac_cv_have_decl_towlower" = xyes; then :
21746 cat >>confdefs.h <<_ACEOF
21747 #define HAVE_DECL_TOWLOWER $ac_have_decl
21750 if test $ac_cv_have_decl_towlower = yes; then
21759 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
21764 $as_echo_n "checking for wctype_t... " >&6; }
21765 if ${gl_cv_type_wctype_t+:} false; then :
21766 $as_echo_n "(cached) " >&6
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21770 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21771 included before <wchar.h>.
21772 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21773 must be included before <wchar.h>. */
21774 #include <stddef.h>
21779 # include <wctype.h>
21791 if ac_fn_c_try_compile "$LINENO"; then :
21792 gl_cv_type_wctype_t=yes
21794 gl_cv_type_wctype_t=no
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
21800 $as_echo "$gl_cv_type_wctype_t" >&6; }
21801 if test $gl_cv_type_wctype_t = no; then
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
21806 $as_echo_n "checking for wctrans_t... " >&6; }
21807 if ${gl_cv_type_wctrans_t+:} false; then :
21808 $as_echo_n "(cached) " >&6
21810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h. */
21812 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21813 included before <wchar.h>.
21814 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21815 must be included before <wchar.h>. */
21816 #include <stddef.h>
21820 #include <wctype.h>
21831 if ac_fn_c_try_compile "$LINENO"; then :
21832 gl_cv_type_wctrans_t=yes
21834 gl_cv_type_wctrans_t=no
21836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
21840 $as_echo "$gl_cv_type_wctrans_t" >&6; }
21841 if test $gl_cv_type_wctrans_t = no; then
21846 for gl_func in wctype iswctype wctrans towctrans ; do
21847 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21849 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21850 if eval \${$as_gl_Symbol+:} false; then :
21851 $as_echo_n "(cached) " >&6
21853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854 /* end confdefs.h. */
21856 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21858 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21859 included before <wchar.h>. */
21860 #if !(defined __GLIBC__ && !defined __UCLIBC__)
21861 # include <stddef.h>
21862 # include <stdio.h>
21864 # include <wchar.h>
21866 #include <wctype.h>
21877 if ac_fn_c_try_compile "$LINENO"; then :
21878 eval "$as_gl_Symbol=yes"
21880 eval "$as_gl_Symbol=no"
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884 eval ac_res=\$$as_gl_Symbol
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21886 $as_echo "$ac_res" >&6; }
21887 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21888 cat >>confdefs.h <<_ACEOF
21889 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21892 eval ac_cv_have_decl_$gl_func=yes
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21904 $as_echo_n "checking for 64-bit off_t... " >&6; }
21905 if ${gl_cv_type_off_t_64+:} false; then :
21906 $as_echo_n "(cached) " >&6
21908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21909 /* end confdefs.h. */
21910 #include <sys/types.h>
21911 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21921 if ac_fn_c_try_compile "$LINENO"; then :
21922 gl_cv_type_off_t_64=yes
21924 gl_cv_type_off_t_64=no
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21930 $as_echo "$gl_cv_type_off_t_64" >&6; }
21931 if test $gl_cv_type_off_t_64 = no; then
21932 WINDOWS_64_BIT_OFF_T=1
21934 WINDOWS_64_BIT_OFF_T=0
21936 WINDOWS_64_BIT_ST_SIZE=1
21939 WINDOWS_64_BIT_OFF_T=0
21940 WINDOWS_64_BIT_ST_SIZE=0
21944 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
21945 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21956 GNULIB_LOCALECONV=0;
21957 GNULIB_SETLOCALE=0;
21958 GNULIB_DUPLOCALE=0;
21960 REPLACE_LOCALECONV=0;
21961 REPLACE_SETLOCALE=0;
21962 REPLACE_DUPLOCALE=0;
21963 REPLACE_STRUCT_LCONV=0;
21973 if test $gt_cv_c_wchar_t = no; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21978 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21979 if ${gl_cv_decl_null_works+:} false; then :
21980 $as_echo_n "(cached) " >&6
21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h. */
21984 #include <stddef.h>
21985 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21995 if ac_fn_c_try_compile "$LINENO"; then :
21996 gl_cv_decl_null_works=yes
21998 gl_cv_decl_null_works=no
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22003 $as_echo "$gl_cv_decl_null_works" >&6; }
22004 if test $gl_cv_decl_null_works = no; then
22009 if test -n "$STDDEF_H"; then
22010 GL_GENERATE_STDDEF_H_TRUE=
22011 GL_GENERATE_STDDEF_H_FALSE='#'
22013 GL_GENERATE_STDDEF_H_TRUE='#'
22014 GL_GENERATE_STDDEF_H_FALSE=
22017 if test -n "$STDDEF_H"; then
22026 if test $gl_cv_have_include_next = yes; then
22027 gl_cv_next_stddef_h='<'stddef.h'>'
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22030 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22031 if ${gl_cv_next_stddef_h+:} false; then :
22032 $as_echo_n "(cached) " >&6
22035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22036 /* end confdefs.h. */
22037 #include <stddef.h>
22041 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22042 *) gl_absname_cpp="$ac_cpp" ;;
22047 gl_dirsep_regex='[/\\]'
22050 gl_dirsep_regex='\/'
22053 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22055 gl_header_literal_regex=`echo 'stddef.h' \
22056 | sed -e "$gl_make_literal_regex_sed"`
22057 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22058 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22063 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22064 sed -n "$gl_absolute_header_sed"`'"'
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22069 $as_echo "$gl_cv_next_stddef_h" >&6; }
22071 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22073 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22075 gl_next_as_first_directive='<'stddef.h'>'
22077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22078 gl_next_as_first_directive=$gl_cv_next_stddef_h
22080 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22102 GNULIB_UTIMENSAT=0;
22116 REPLACE_FUTIMENS=0;
22122 REPLACE_UTIMENSAT=0;
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
22128 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
22129 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
22130 $as_echo_n "(cached) " >&6
22132 rm -f conftest.sym conftest.file
22133 echo >conftest.file
22134 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22135 if test "$cross_compiling" = yes; then :
22137 # Guess yes on glibc systems.
22138 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
22139 # If we don't know, assume the worst.
22140 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
22144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22145 /* end confdefs.h. */
22146 $ac_includes_default
22151 /* Linux will dereference the symlink and fail, as required by
22152 POSIX. That is better in the sense that it means we will not
22153 have to compile and use the lstat wrapper. */
22154 return lstat ("conftest.sym/", &sbuf) == 0;
22160 if ac_fn_c_try_run "$LINENO"; then :
22161 gl_cv_func_lstat_dereferences_slashed_symlink=yes
22163 gl_cv_func_lstat_dereferences_slashed_symlink=no
22165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22166 conftest.$ac_objext conftest.beam conftest.$ac_ext
22170 # If the 'ln -s' command failed, then we probably don't even
22171 # have an lstat function.
22172 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
22174 rm -f conftest.sym conftest.file
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
22178 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22179 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22182 cat >>confdefs.h <<_ACEOF
22183 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22190 for ac_header in stdlib.h
22192 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
22193 if test "x$ac_cv_header_stdlib_h" = xyes; then :
22194 cat >>confdefs.h <<_ACEOF
22195 #define HAVE_STDLIB_H 1
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
22203 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22204 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
22205 $as_echo_n "(cached) " >&6
22207 if test "$cross_compiling" = yes; then :
22208 ac_cv_func_malloc_0_nonnull=no
22210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22212 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22213 # include <stdlib.h>
22221 return ! malloc (0);
22226 if ac_fn_c_try_run "$LINENO"; then :
22227 ac_cv_func_malloc_0_nonnull=yes
22229 ac_cv_func_malloc_0_nonnull=no
22231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22232 conftest.$ac_objext conftest.beam conftest.$ac_ext
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
22237 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22238 if test $ac_cv_func_malloc_0_nonnull = yes; then :
22239 gl_cv_func_malloc_0_nonnull=1
22241 gl_cv_func_malloc_0_nonnull=0
22245 cat >>confdefs.h <<_ACEOF
22246 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22253 $as_echo_n "checking for mbstate_t... " >&6; }
22254 if ${ac_cv_type_mbstate_t+:} false; then :
22255 $as_echo_n "(cached) " >&6
22257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22258 /* end confdefs.h. */
22259 $ac_includes_default
22260 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22262 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22263 included before <wchar.h>. */
22264 #include <stddef.h>
22271 mbstate_t x; return sizeof x;
22276 if ac_fn_c_try_compile "$LINENO"; then :
22277 ac_cv_type_mbstate_t=yes
22279 ac_cv_type_mbstate_t=no
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22284 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22285 if test $ac_cv_type_mbstate_t = yes; then
22287 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22291 $as_echo "#define mbstate_t int" >>confdefs.h
22301 GNULIB_MBSRTOWCS=0;
22302 GNULIB_MBSNRTOWCS=0;
22304 GNULIB_WCSRTOMBS=0;
22305 GNULIB_WCSNRTOMBS=0;
22322 GNULIB_WCSCASECMP=0;
22323 GNULIB_WCSNCASECMP=0;
22360 HAVE_WCSNCASECMP=1;
22373 HAVE_DECL_WCWIDTH=1;
22374 REPLACE_MBSTATE_T=0;
22380 REPLACE_MBSRTOWCS=0;
22381 REPLACE_MBSNRTOWCS=0;
22383 REPLACE_WCSRTOMBS=0;
22384 REPLACE_WCSNRTOMBS=0;
22386 REPLACE_WCSWIDTH=0;
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
22396 $as_echo_n "checking for a traditional japanese locale... " >&6; }
22397 if ${gt_cv_locale_ja+:} false; then :
22398 $as_echo_n "(cached) " >&6
22401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22402 /* end confdefs.h. */
22404 #include <locale.h>
22406 #if HAVE_LANGINFO_CODESET
22407 # include <langinfo.h>
22409 #include <stdlib.h>
22410 #include <string.h>
22416 /* Check whether the given locale name is recognized by the system. */
22417 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
22418 /* On native Windows, setlocale(category, "") looks at the system settings,
22419 not at the environment variables. Also, when an encoding suffix such
22420 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22421 category of the locale to "C". */
22422 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22423 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22426 if (setlocale (LC_ALL, "") == NULL) return 1;
22428 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22429 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22430 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22431 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22432 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22433 some unit tests fail.
22434 On MirBSD 10, when an unsupported locale is specified, setlocale()
22435 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
22436 #if HAVE_LANGINFO_CODESET
22438 const char *cs = nl_langinfo (CODESET);
22439 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
22440 || strcmp (cs, "UTF-8") == 0)
22445 /* On Cygwin, avoid locale names without encoding suffix, because the
22446 locale_charset() function relies on the encoding suffix. Note that
22447 LC_ALL is set on the command line. */
22448 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22450 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
22451 on Cygwin 1.5.x. */
22452 if (MB_CUR_MAX == 1)
22454 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
22455 This excludes the UTF-8 encoding (except on MirBSD). */
22456 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22457 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
22458 for (p = buf; *p != '\0'; p++)
22459 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
22465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22466 (eval $ac_link) 2>&5
22468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22469 test $ac_status = 0; } && test -s conftest$ac_exeext; then
22471 # Handle native Windows specially, because there setlocale() interprets
22472 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22473 # "fr" or "fra" as "French" or "French_France.1252",
22474 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22475 # "ja" as "Japanese" or "Japanese_Japan.932",
22478 # Note that on native Windows, the Japanese locale is
22479 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
22480 # cannot use it here.
22481 gt_cv_locale_ja=none
22484 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22485 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22486 # configure script would override the LC_ALL setting. Likewise for
22487 # LC_CTYPE, which is also set at the beginning of the configure script.
22488 # Test for the AIX locale name.
22489 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22490 gt_cv_locale_ja=ja_JP
22492 # Test for the locale name with explicit encoding suffix.
22493 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22494 gt_cv_locale_ja=ja_JP.EUC-JP
22496 # Test for the HP-UX, OSF/1, NetBSD locale name.
22497 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22498 gt_cv_locale_ja=ja_JP.eucJP
22500 # Test for the IRIX, FreeBSD locale name.
22501 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22502 gt_cv_locale_ja=ja_JP.EUC
22504 # Test for the Solaris 7 locale name.
22505 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22508 # Special test for NetBSD 1.6.
22509 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
22510 gt_cv_locale_ja=ja_JP.eucJP
22513 gt_cv_locale_ja=none
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
22527 $as_echo "$gt_cv_locale_ja" >&6; }
22528 LOCALE_JA=$gt_cv_locale_ja
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
22535 $as_echo_n "checking for a transitional chinese locale... " >&6; }
22536 if ${gt_cv_locale_zh_CN+:} false; then :
22537 $as_echo_n "(cached) " >&6
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h. */
22543 #include <locale.h>
22544 #include <stdlib.h>
22546 #if HAVE_LANGINFO_CODESET
22547 # include <langinfo.h>
22549 #include <stdlib.h>
22550 #include <string.h>
22556 /* Check whether the given locale name is recognized by the system. */
22557 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
22558 /* On native Windows, setlocale(category, "") looks at the system settings,
22559 not at the environment variables. Also, when an encoding suffix such
22560 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22561 category of the locale to "C". */
22562 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22563 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22566 if (setlocale (LC_ALL, "") == NULL) return 1;
22568 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22569 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22570 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22571 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22572 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22573 some unit tests fail.
22574 On MirBSD 10, when an unsupported locale is specified, setlocale()
22575 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
22576 #if HAVE_LANGINFO_CODESET
22578 const char *cs = nl_langinfo (CODESET);
22579 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
22580 || strcmp (cs, "UTF-8") == 0)
22585 /* On Cygwin, avoid locale names without encoding suffix, because the
22586 locale_charset() function relies on the encoding suffix. Note that
22587 LC_ALL is set on the command line. */
22588 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22590 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
22591 This excludes the UTF-8 encoding (except on MirBSD). */
22592 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22593 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
22594 for (p = buf; *p != '\0'; p++)
22595 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
22597 /* Check whether a typical GB18030 multibyte sequence is recognized as a
22598 single wide character. This excludes the GB2312 and GBK encodings. */
22599 if (mblen ("\203\062\332\066", 5) != 4)
22605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22606 (eval $ac_link) 2>&5
22608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22609 test $ac_status = 0; } && test -s conftest$ac_exeext; then
22611 # Handle native Windows specially, because there setlocale() interprets
22612 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22613 # "fr" or "fra" as "French" or "French_France.1252",
22614 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22615 # "ja" as "Japanese" or "Japanese_Japan.932",
22618 # Test for the hypothetical native Windows locale name.
22619 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22620 gt_cv_locale_zh_CN=Chinese_China.54936
22623 gt_cv_locale_zh_CN=none
22627 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
22628 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
22629 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
22630 gt_cv_locale_zh_CN=none
22633 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22634 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22635 # configure script would override the LC_ALL setting. Likewise for
22636 # LC_CTYPE, which is also set at the beginning of the configure script.
22637 # Test for the locale name without encoding suffix.
22638 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22639 gt_cv_locale_zh_CN=zh_CN
22641 # Test for the locale name with explicit encoding suffix.
22642 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22643 gt_cv_locale_zh_CN=zh_CN.GB18030
22646 gt_cv_locale_zh_CN=none
22652 # If there was a link error, due to mblen(), the system is so old that
22653 # it certainly doesn't have a chinese locale.
22654 gt_cv_locale_zh_CN=none
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
22660 $as_echo "$gt_cv_locale_zh_CN" >&6; }
22661 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
22667 $as_echo_n "checking for a french Unicode locale... " >&6; }
22668 if ${gt_cv_locale_fr_utf8+:} false; then :
22669 $as_echo_n "(cached) " >&6
22672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22673 /* end confdefs.h. */
22675 #include <locale.h>
22677 #if HAVE_LANGINFO_CODESET
22678 # include <langinfo.h>
22680 #include <stdlib.h>
22681 #include <string.h>
22685 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
22686 imitates locale dependent behaviour by looking at the environment
22687 variables, and all locales use the UTF-8 encoding. */
22688 #if !(defined __BEOS__ || defined __HAIKU__)
22689 /* Check whether the given locale name is recognized by the system. */
22690 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
22691 /* On native Windows, setlocale(category, "") looks at the system settings,
22692 not at the environment variables. Also, when an encoding suffix such
22693 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22694 category of the locale to "C". */
22695 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22696 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22699 if (setlocale (LC_ALL, "") == NULL) return 1;
22701 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22702 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22703 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22704 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22705 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22706 some unit tests fail. */
22707 # if HAVE_LANGINFO_CODESET
22709 const char *cs = nl_langinfo (CODESET);
22710 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
22715 /* On Cygwin, avoid locale names without encoding suffix, because the
22716 locale_charset() function relies on the encoding suffix. Note that
22717 LC_ALL is set on the command line. */
22718 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22720 /* Check whether in the abbreviation of the second month, the second
22721 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
22722 two bytes long, with UTF-8 encoding. */
22723 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22724 if (strftime (buf, sizeof (buf), "%b", &t) < 4
22725 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
22728 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
22729 /* Check whether the decimal separator is a comma.
22730 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
22731 are nl_langinfo(RADIXCHAR) are both ".". */
22732 if (localeconv () ->decimal_point[0] != ',') return 1;
22738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22739 (eval $ac_link) 2>&5
22741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742 test $ac_status = 0; } && test -s conftest$ac_exeext; then
22744 # Handle native Windows specially, because there setlocale() interprets
22745 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22746 # "fr" or "fra" as "French" or "French_France.1252",
22747 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22748 # "ja" as "Japanese" or "Japanese_Japan.932",
22751 # Test for the hypothetical native Windows locale name.
22752 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22753 gt_cv_locale_fr_utf8=French_France.65001
22756 gt_cv_locale_fr_utf8=none
22760 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22761 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22762 # configure script would override the LC_ALL setting. Likewise for
22763 # LC_CTYPE, which is also set at the beginning of the configure script.
22764 # Test for the usual locale name.
22765 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22766 gt_cv_locale_fr_utf8=fr_FR
22768 # Test for the locale name with explicit encoding suffix.
22769 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22770 gt_cv_locale_fr_utf8=fr_FR.UTF-8
22772 # Test for the Solaris 7 locale name.
22773 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22774 gt_cv_locale_fr_utf8=fr.UTF-8
22777 gt_cv_locale_fr_utf8=none
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
22788 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
22789 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
22799 GNULIB_RAWMEMCHR=0;
22802 GNULIB_STRCHRNUL=0;
22810 GNULIB_STRCASESTR=0;
22817 GNULIB_MBSCASECMP=0;
22818 GNULIB_MBSNCASECMP=0;
22819 GNULIB_MBSPCASECMP=0;
22820 GNULIB_MBSCASESTR=0;
22827 GNULIB_STRERROR_R=0;
22828 GNULIB_STRSIGNAL=0;
22829 GNULIB_STRVERSCMP=0;
22834 HAVE_DECL_MEMMEM=1;
22836 HAVE_DECL_MEMRCHR=1;
22841 HAVE_DECL_STRDUP=1;
22842 HAVE_DECL_STRNDUP=1;
22843 HAVE_DECL_STRNLEN=1;
22847 HAVE_DECL_STRTOK_R=1;
22848 HAVE_DECL_STRERROR_R=1;
22849 HAVE_DECL_STRSIGNAL=1;
22856 REPLACE_STRCASESTR=0;
22857 REPLACE_STRCHRNUL=0;
22858 REPLACE_STRERROR=0;
22859 REPLACE_STRERROR_R=0;
22863 REPLACE_STRSIGNAL=0;
22864 REPLACE_STRTOK_R=0;
22865 UNDEFINE_STRTOK_R=0;
22877 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
22878 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
22879 # irrelevant for anonymous mappings.
22880 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22881 if test "x$ac_cv_func_mmap" = xyes; then :
22888 # Try to allow MAP_ANONYMOUS.
22889 gl_have_mmap_anonymous=no
22890 if test $gl_have_mmap = yes; then
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
22892 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
22893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22894 /* end confdefs.h. */
22896 #include <sys/mman.h>
22897 #ifdef MAP_ANONYMOUS
22898 I cannot identify this map
22902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
22904 gl_have_mmap_anonymous=yes
22908 if test $gl_have_mmap_anonymous != yes; then
22909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910 /* end confdefs.h. */
22912 #include <sys/mman.h>
22914 I cannot identify this map
22918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22919 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
22921 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
22923 gl_have_mmap_anonymous=yes
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
22929 $as_echo "$gl_have_mmap_anonymous" >&6; }
22930 if test $gl_have_mmap_anonymous = yes; then
22932 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
22942 if test $HAVE_MEMCHR = 1; then
22943 # Detect platform-specific bugs in some versions of glibc:
22944 # memchr should not dereference anything with length 0
22945 # http://bugzilla.redhat.com/499689
22946 # memchr should not dereference overestimated length after a match
22947 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
22948 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
22949 # Assume that memchr works on platforms that lack mprotect.
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
22951 $as_echo_n "checking whether memchr works... " >&6; }
22952 if ${gl_cv_func_memchr_works+:} false; then :
22953 $as_echo_n "(cached) " >&6
22955 if test "$cross_compiling" = yes; then :
22956 gl_cv_func_memchr_works="guessing no"
22958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h. */
22961 #include <string.h>
22962 #if HAVE_SYS_MMAN_H
22963 # include <fcntl.h>
22964 # include <unistd.h>
22965 # include <sys/types.h>
22966 # include <sys/mman.h>
22968 # define MAP_FILE 0
22977 char *fence = NULL;
22978 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
22979 # if HAVE_MAP_ANONYMOUS
22980 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
22982 # else /* !HAVE_MAP_ANONYMOUS */
22983 const int flags = MAP_FILE | MAP_PRIVATE;
22984 int fd = open ("/dev/zero", O_RDONLY, 0666);
22988 int pagesize = getpagesize ();
22990 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
22992 if (two_pages != (char *)(-1)
22993 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
22994 fence = two_pages + pagesize;
22999 if (memchr (fence, 0, 0))
23001 strcpy (fence - 9, "12345678");
23002 if (memchr (fence - 9, 0, 79) != fence - 1)
23004 if (memchr (fence - 1, 0, 3) != fence - 1)
23013 if ac_fn_c_try_run "$LINENO"; then :
23014 gl_cv_func_memchr_works=yes
23016 gl_cv_func_memchr_works=no
23018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23019 conftest.$ac_objext conftest.beam conftest.$ac_ext
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
23024 $as_echo "$gl_cv_func_memchr_works" >&6; }
23025 if test "$gl_cv_func_memchr_works" != yes; then
23033 gl_cv_c_multiarch=no
23034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23035 /* end confdefs.h. */
23036 #ifndef __APPLE_CC__
23037 not a universal capable compiler
23042 if ac_fn_c_try_compile "$LINENO"; then :
23046 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
23047 if test -n "$prev"; then
23049 i?86 | x86_64 | ppc | ppc64)
23050 if test -z "$arch" || test "$arch" = "$word"; then
23053 gl_cv_c_multiarch=yes
23059 if test "x$word" = "x-arch"; then
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 if test $gl_cv_c_multiarch = yes; then
23068 APPLE_UNIVERSAL_BUILD=1
23070 APPLE_UNIVERSAL_BUILD=0
23075 GNULIB_PTHREAD_SIGMASK=0;
23077 GNULIB_SIGNAL_H_SIGPIPE=0;
23078 GNULIB_SIGPROCMASK=0;
23079 GNULIB_SIGACTION=0;
23080 HAVE_POSIX_SIGNALBLOCKING=1;
23081 HAVE_PTHREAD_SIGMASK=1;
23086 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
23088 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
23090 HAVE_SIGHANDLER_T=1;
23091 REPLACE_PTHREAD_SIGMASK=0;
23095 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
23096 #include <signal.h>
23097 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
23098 #include <sys/types.h>
23101 if test "x$ac_cv_type_sigset_t" = xyes; then :
23103 cat >>confdefs.h <<_ACEOF
23104 #define HAVE_SIGSET_T 1
23107 gl_cv_type_sigset_t=yes
23109 gl_cv_type_sigset_t=no
23112 if test $gl_cv_type_sigset_t != yes; then
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
23119 $as_echo_n "checking for SIGPIPE... " >&6; }
23120 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
23121 $as_echo_n "(cached) " >&6
23124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125 /* end confdefs.h. */
23127 #include <signal.h>
23128 #if !defined SIGPIPE
23133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23134 $EGREP "booboo" >/dev/null 2>&1; then :
23135 gl_cv_header_signal_h_SIGPIPE=no
23137 gl_cv_header_signal_h_SIGPIPE=yes
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
23144 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
23148 $as_echo_n "checking for shared library path variable... " >&6; }
23149 if ${acl_cv_libpath+:} false; then :
23150 $as_echo_n "(cached) " >&6
23154 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
23156 rm -f ./conftest.sh
23157 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
23161 $as_echo "$acl_cv_libpath" >&6; }
23162 shlibpath_var="$acl_cv_shlibpath_var"
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
23166 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
23167 # Check whether --enable-relocatable was given.
23168 if test "${enable_relocatable+set}" = set; then :
23169 enableval=$enable_relocatable; if test "$enableval" != no; then
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
23181 $as_echo "$RELOCATABLE" >&6; }
23185 if test "X$prefix" = "XNONE"; then
23186 reloc_final_prefix="$ac_default_prefix"
23188 reloc_final_prefix="$prefix"
23191 cat >>confdefs.h <<_ACEOF
23192 #define INSTALLPREFIX "${reloc_final_prefix}"
23195 if test $RELOCATABLE = yes; then
23197 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
23207 use_elf_origin_trick=no
23209 if test $RELOCATABLE = yes; then
23210 # --enable-relocatable implies --disable-rpath
23212 for ac_header in mach-o/dyld.h
23214 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
23215 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
23216 cat >>confdefs.h <<_ACEOF
23217 #define HAVE_MACH_O_DYLD_H 1
23224 for ac_func in _NSGetExecutablePath
23226 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
23227 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
23228 cat >>confdefs.h <<_ACEOF
23229 #define HAVE__NSGETEXECUTABLEPATH 1
23236 mingw*) is_noop=yes ;;
23237 linux* | kfreebsd*) use_elf_origin_trick=yes ;;
23239 if test $is_noop = yes; then
23240 RELOCATABLE_LDFLAGS=:
23243 if test $use_elf_origin_trick = yes; then
23244 case "$ac_aux_dir" in
23245 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
23246 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
23248 RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
23252 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\""
23254 case "$ac_aux_dir" in
23255 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
23256 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
23261 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
23262 RELOCATABLE_VIA_LD_TRUE=
23263 RELOCATABLE_VIA_LD_FALSE='#'
23265 RELOCATABLE_VIA_LD_TRUE='#'
23266 RELOCATABLE_VIA_LD_FALSE=
23269 if test $use_wrapper = yes; then
23270 RELOCATABLE_VIA_WRAPPER_TRUE=
23271 RELOCATABLE_VIA_WRAPPER_FALSE='#'
23273 RELOCATABLE_VIA_WRAPPER_TRUE='#'
23274 RELOCATABLE_VIA_WRAPPER_FALSE=
23284 RELOCATABLE_STRIP=':'
23287 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
23288 if test "x$ac_cv_have_decl_setenv" = xyes; then :
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_DECL_SETENV $ac_have_decl
23300 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23301 if test "x$ac_cv_type_pid_t" = xyes; then :
23305 cat >>confdefs.h <<_ACEOF
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23312 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23313 if ${ac_cv_type_uid_t+:} false; then :
23314 $as_echo_n "(cached) " >&6
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h. */
23318 #include <sys/types.h>
23321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23322 $EGREP "uid_t" >/dev/null 2>&1; then :
23323 ac_cv_type_uid_t=yes
23325 ac_cv_type_uid_t=no
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23331 $as_echo "$ac_cv_type_uid_t" >&6; }
23332 if test $ac_cv_type_uid_t = no; then
23334 $as_echo "#define uid_t int" >>confdefs.h
23337 $as_echo "#define gid_t int" >>confdefs.h
23350 GNULIB_FPRINTF_POSIX=0;
23366 GNULIB_OBSTACK_PRINTF=0;
23367 GNULIB_OBSTACK_PRINTF_POSIX=0;
23372 GNULIB_PRINTF_POSIX=0;
23381 GNULIB_SPRINTF_POSIX=0;
23382 GNULIB_STDIO_H_NONBLOCKING=0;
23383 GNULIB_STDIO_H_SIGPIPE=0;
23385 GNULIB_VASPRINTF=0;
23390 GNULIB_VFPRINTF_POSIX=0;
23392 GNULIB_VPRINTF_POSIX=0;
23393 GNULIB_VSNPRINTF=0;
23394 GNULIB_VSPRINTF_POSIX=0;
23395 HAVE_DECL_FPURGE=1;
23396 HAVE_DECL_FSEEKO=1;
23397 HAVE_DECL_FTELLO=1;
23398 HAVE_DECL_GETDELIM=1;
23399 HAVE_DECL_GETLINE=1;
23400 HAVE_DECL_OBSTACK_PRINTF=1;
23401 HAVE_DECL_SNPRINTF=1;
23402 HAVE_DECL_VSNPRINTF=1;
23423 REPLACE_GETDELIM=0;
23425 REPLACE_OBSTACK_PRINTF=0;
23431 REPLACE_RENAMEAT=0;
23432 REPLACE_SNPRINTF=0;
23434 REPLACE_STDIO_READ_FUNCS=0;
23435 REPLACE_STDIO_WRITE_FUNCS=0;
23437 REPLACE_VASPRINTF=0;
23438 REPLACE_VDPRINTF=0;
23439 REPLACE_VFPRINTF=0;
23441 REPLACE_VSNPRINTF=0;
23442 REPLACE_VSPRINTF=0;
23445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23446 /* end confdefs.h. */
23453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23454 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
23456 gl_c_asm_opt='-c -Fa'
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
23469 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
23470 if ${gl_cv_prog_as_underscore+:} false; then :
23471 $as_echo_n "(cached) " >&6
23473 cat > conftest.c <<EOF
23475 extern "C" int foo (void);
23477 int foo(void) { return 0; }
23479 # Look for the assembly language name in the .s file.
23480 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
23481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23482 (eval $ac_try) 2>&5
23484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23485 test $ac_status = 0; }; } >/dev/null 2>&1
23486 if grep _foo conftest.$gl_asmext >/dev/null ; then
23487 gl_cv_prog_as_underscore=yes
23489 gl_cv_prog_as_underscore=no
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
23495 $as_echo "$gl_cv_prog_as_underscore" >&6; }
23496 if test $gl_cv_prog_as_underscore = yes; then
23497 USER_LABEL_PREFIX=_
23502 cat >>confdefs.h <<_ACEOF
23503 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
23506 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
23510 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
23511 if ${ac_cv_header_stdbool_h+:} false; then :
23512 $as_echo_n "(cached) " >&6
23514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515 /* end confdefs.h. */
23517 #include <stdbool.h>
23519 "error: bool is not defined"
23522 "error: false is not defined"
23525 "error: false is not 0"
23528 "error: true is not defined"
23531 "error: true is not 1"
23533 #ifndef __bool_true_false_are_defined
23534 "error: __bool_true_false_are_defined is not defined"
23537 struct s { _Bool s: 1; _Bool t; } s;
23539 char a[true == 1 ? 1 : -1];
23540 char b[false == 0 ? 1 : -1];
23541 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
23542 char d[(bool) 0.5 == true ? 1 : -1];
23543 /* See body of main program for 'e'. */
23544 char f[(_Bool) 0.0 == false ? 1 : -1];
23546 char h[sizeof (_Bool)];
23547 char i[sizeof s.t];
23548 enum { j = false, k = true, l = false * true, m = true * 256 };
23549 /* The following fails for
23550 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23552 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
23553 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
23554 /* Catch a bug in an HP-UX C compiler. See
23555 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23556 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
23568 /* Refer to every declared value, to avoid compiler optimizations. */
23569 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
23570 + !m + !n + !o + !p + !q + !pq);
23576 if ac_fn_c_try_compile "$LINENO"; then :
23577 ac_cv_header_stdbool_h=yes
23579 ac_cv_header_stdbool_h=no
23581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
23584 $as_echo "$ac_cv_header_stdbool_h" >&6; }
23585 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
23586 if test "x$ac_cv_type__Bool" = xyes; then :
23588 cat >>confdefs.h <<_ACEOF
23589 #define HAVE__BOOL 1
23603 if test $ac_cv_type_long_long_int = yes; then
23604 HAVE_LONG_LONG_INT=1
23606 HAVE_LONG_LONG_INT=0
23610 if test $ac_cv_type_unsigned_long_long_int = yes; then
23611 HAVE_UNSIGNED_LONG_LONG_INT=1
23613 HAVE_UNSIGNED_LONG_LONG_INT=0
23618 if test $ac_cv_header_wchar_h = yes; then
23625 if test $ac_cv_header_inttypes_h = yes; then
23632 if test $ac_cv_header_sys_types_h = yes; then
23648 if test $gl_cv_have_include_next = yes; then
23649 gl_cv_next_stdint_h='<'stdint.h'>'
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
23652 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
23653 if ${gl_cv_next_stdint_h+:} false; then :
23654 $as_echo_n "(cached) " >&6
23657 if test $ac_cv_header_stdint_h = yes; then
23660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23661 /* end confdefs.h. */
23662 #include <stdint.h>
23666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23667 *) gl_absname_cpp="$ac_cpp" ;;
23672 gl_dirsep_regex='[/\\]'
23675 gl_dirsep_regex='\/'
23678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23680 gl_header_literal_regex=`echo 'stdint.h' \
23681 | sed -e "$gl_make_literal_regex_sed"`
23682 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23683 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23688 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23689 sed -n "$gl_absolute_header_sed"`'"'
23691 gl_cv_next_stdint_h='<'stdint.h'>'
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
23697 $as_echo "$gl_cv_next_stdint_h" >&6; }
23699 NEXT_STDINT_H=$gl_cv_next_stdint_h
23701 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23702 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23703 gl_next_as_first_directive='<'stdint.h'>'
23705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23706 gl_next_as_first_directive=$gl_cv_next_stdint_h
23708 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
23713 if test $ac_cv_header_stdint_h = yes; then
23720 if test $ac_cv_header_stdint_h = yes; then
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
23722 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
23723 if ${gl_cv_header_working_stdint_h+:} false; then :
23724 $as_echo_n "(cached) " >&6
23726 gl_cv_header_working_stdint_h=no
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h. */
23731 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23732 #include <stdint.h>
23733 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
23734 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
23735 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
23739 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23740 included before <wchar.h>. */
23741 #include <stddef.h>
23742 #include <signal.h>
23744 # include <stdio.h>
23746 # include <wchar.h>
23751 int8_t a1 = INT8_MAX;
23752 int8_t a1min = INT8_MIN;
23755 int16_t a2 = INT16_MAX;
23756 int16_t a2min = INT16_MIN;
23759 int32_t a3 = INT32_MAX;
23760 int32_t a3min = INT32_MIN;
23763 int64_t a4 = INT64_MAX;
23764 int64_t a4min = INT64_MIN;
23767 uint8_t b1 = UINT8_MAX;
23769 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
23772 uint16_t b2 = UINT16_MAX;
23775 uint32_t b3 = UINT32_MAX;
23778 uint64_t b4 = UINT64_MAX;
23780 int_least8_t c1 = INT8_C (0x7f);
23781 int_least8_t c1max = INT_LEAST8_MAX;
23782 int_least8_t c1min = INT_LEAST8_MIN;
23783 int_least16_t c2 = INT16_C (0x7fff);
23784 int_least16_t c2max = INT_LEAST16_MAX;
23785 int_least16_t c2min = INT_LEAST16_MIN;
23786 int_least32_t c3 = INT32_C (0x7fffffff);
23787 int_least32_t c3max = INT_LEAST32_MAX;
23788 int_least32_t c3min = INT_LEAST32_MIN;
23789 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
23790 int_least64_t c4max = INT_LEAST64_MAX;
23791 int_least64_t c4min = INT_LEAST64_MIN;
23792 uint_least8_t d1 = UINT8_C (0xff);
23793 uint_least8_t d1max = UINT_LEAST8_MAX;
23794 uint_least16_t d2 = UINT16_C (0xffff);
23795 uint_least16_t d2max = UINT_LEAST16_MAX;
23796 uint_least32_t d3 = UINT32_C (0xffffffff);
23797 uint_least32_t d3max = UINT_LEAST32_MAX;
23798 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
23799 uint_least64_t d4max = UINT_LEAST64_MAX;
23800 int_fast8_t e1 = INT_FAST8_MAX;
23801 int_fast8_t e1min = INT_FAST8_MIN;
23802 int_fast16_t e2 = INT_FAST16_MAX;
23803 int_fast16_t e2min = INT_FAST16_MIN;
23804 int_fast32_t e3 = INT_FAST32_MAX;
23805 int_fast32_t e3min = INT_FAST32_MIN;
23806 int_fast64_t e4 = INT_FAST64_MAX;
23807 int_fast64_t e4min = INT_FAST64_MIN;
23808 uint_fast8_t f1 = UINT_FAST8_MAX;
23809 uint_fast16_t f2 = UINT_FAST16_MAX;
23810 uint_fast32_t f3 = UINT_FAST32_MAX;
23811 uint_fast64_t f4 = UINT_FAST64_MAX;
23813 intptr_t g = INTPTR_MAX;
23814 intptr_t gmin = INTPTR_MIN;
23817 uintptr_t h = UINTPTR_MAX;
23819 intmax_t i = INTMAX_MAX;
23820 uintmax_t j = UINTMAX_MAX;
23822 #include <limits.h> /* for CHAR_BIT */
23823 #define TYPE_MINIMUM(t) \
23824 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
23825 #define TYPE_MAXIMUM(t) \
23826 ((t) ((t) 0 < (t) -1 \
23828 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
23831 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
23832 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
23834 /* Detect bug in FreeBSD 6.0 / ia64. */
23835 int check_SIG_ATOMIC:
23836 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
23837 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
23839 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
23841 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
23842 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
23844 /* Detect bug in mingw. */
23846 WINT_MIN == TYPE_MINIMUM (wint_t)
23847 && WINT_MAX == TYPE_MAXIMUM (wint_t)
23850 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
23852 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
23853 int check_UINT16_C:
23854 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
23856 /* Detect bugs in OpenBSD 3.9 stdint.h. */
23858 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
23861 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
23864 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
23867 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
23869 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
23870 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
23871 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
23872 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
23873 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
23874 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
23875 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
23876 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
23877 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
23878 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
23879 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
23890 if ac_fn_c_try_compile "$LINENO"; then :
23891 if test "$cross_compiling" = yes; then :
23892 gl_cv_header_working_stdint_h=yes
23895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h. */
23899 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23900 #include <stdint.h>
23903 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23904 included before <wchar.h>. */
23905 #include <stddef.h>
23906 #include <signal.h>
23908 # include <stdio.h>
23910 # include <wchar.h>
23915 #include <string.h>
23916 #define MVAL(macro) MVAL1(macro)
23917 #define MVAL1(expression) #expression
23918 static const char *macro_values[] =
23952 for (mv = macro_values; *mv != NULL; mv++)
23954 const char *value = *mv;
23955 /* Test whether it looks like a cast expression. */
23956 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
23957 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
23958 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
23959 || strncmp (value, "((int)"/*)*/, 6) == 0
23960 || strncmp (value, "((signed short)"/*)*/, 15) == 0
23961 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
23962 return mv - macro_values + 1;
23970 if ac_fn_c_try_run "$LINENO"; then :
23971 gl_cv_header_working_stdint_h=yes
23973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23974 conftest.$ac_objext conftest.beam conftest.$ac_ext
23979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
23983 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
23985 if test "$gl_cv_header_working_stdint_h" = yes; then
23988 for ac_header in sys/inttypes.h sys/bitypes.h
23990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23993 cat >>confdefs.h <<_ACEOF
23994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24001 if test $ac_cv_header_sys_inttypes_h = yes; then
24002 HAVE_SYS_INTTYPES_H=1
24004 HAVE_SYS_INTTYPES_H=0
24007 if test $ac_cv_header_sys_bitypes_h = yes; then
24008 HAVE_SYS_BITYPES_H=1
24010 HAVE_SYS_BITYPES_H=0
24016 if test $APPLE_UNIVERSAL_BUILD = 0; then
24019 for gltype in ptrdiff_t size_t ; do
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24021 $as_echo_n "checking for bit size of $gltype... " >&6; }
24022 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
24023 $as_echo_n "(cached) " >&6
24025 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
24026 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24027 included before <wchar.h>. */
24028 #include <stddef.h>
24029 #include <signal.h>
24031 # include <stdio.h>
24033 # include <wchar.h>
24036 #include <limits.h>"; then :
24042 eval gl_cv_bitsizeof_${gltype}=\$result
24045 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24047 $as_echo "$ac_res" >&6; }
24048 eval result=\$gl_cv_bitsizeof_${gltype}
24049 if test $result = unknown; then
24052 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24053 cat >>confdefs.h <<_ACEOF
24054 #define BITSIZEOF_${GLTYPE} $result
24057 eval BITSIZEOF_${GLTYPE}=\$result
24064 for gltype in sig_atomic_t wchar_t wint_t ; do
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24066 $as_echo_n "checking for bit size of $gltype... " >&6; }
24067 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
24068 $as_echo_n "(cached) " >&6
24070 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
24071 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24072 included before <wchar.h>. */
24073 #include <stddef.h>
24074 #include <signal.h>
24076 # include <stdio.h>
24078 # include <wchar.h>
24081 #include <limits.h>"; then :
24087 eval gl_cv_bitsizeof_${gltype}=\$result
24090 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24092 $as_echo "$ac_res" >&6; }
24093 eval result=\$gl_cv_bitsizeof_${gltype}
24094 if test $result = unknown; then
24097 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24098 cat >>confdefs.h <<_ACEOF
24099 #define BITSIZEOF_${GLTYPE} $result
24102 eval BITSIZEOF_${GLTYPE}=\$result
24108 for gltype in sig_atomic_t wchar_t wint_t ; do
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
24110 $as_echo_n "checking whether $gltype is signed... " >&6; }
24111 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
24112 $as_echo_n "(cached) " >&6
24114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24115 /* end confdefs.h. */
24117 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24118 included before <wchar.h>. */
24119 #include <stddef.h>
24120 #include <signal.h>
24122 # include <stdio.h>
24124 # include <wchar.h>
24127 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
24136 if ac_fn_c_try_compile "$LINENO"; then :
24141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24142 eval gl_cv_type_${gltype}_signed=\$result
24145 eval ac_res=\$gl_cv_type_${gltype}_signed
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24147 $as_echo "$ac_res" >&6; }
24148 eval result=\$gl_cv_type_${gltype}_signed
24149 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24150 if test "$result" = yes; then
24151 cat >>confdefs.h <<_ACEOF
24152 #define HAVE_SIGNED_${GLTYPE} 1
24155 eval HAVE_SIGNED_${GLTYPE}=1
24157 eval HAVE_SIGNED_${GLTYPE}=0
24162 gl_cv_type_ptrdiff_t_signed=yes
24163 gl_cv_type_size_t_signed=no
24164 if test $APPLE_UNIVERSAL_BUILD = 0; then
24167 for gltype in ptrdiff_t size_t ; do
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24169 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24170 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
24171 $as_echo_n "(cached) " >&6
24173 eval gl_cv_type_${gltype}_suffix=no
24174 eval result=\$gl_cv_type_${gltype}_signed
24175 if test "$result" = yes; then
24180 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24182 '') gltype1='int';;
24183 l) gltype1='long int';;
24184 ll) gltype1='long long int';;
24185 i64) gltype1='__int64';;
24186 u) gltype1='unsigned int';;
24187 ul) gltype1='unsigned long int';;
24188 ull) gltype1='unsigned long long int';;
24189 ui64)gltype1='unsigned __int64';;
24191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24192 /* end confdefs.h. */
24194 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24195 included before <wchar.h>. */
24196 #include <stddef.h>
24197 #include <signal.h>
24199 # include <stdio.h>
24201 # include <wchar.h>
24204 extern $gltype foo;
24205 extern $gltype1 foo;
24214 if ac_fn_c_try_compile "$LINENO"; then :
24215 eval gl_cv_type_${gltype}_suffix=\$glsuf
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218 eval result=\$gl_cv_type_${gltype}_suffix
24219 test "$result" != no && break
24222 eval ac_res=\$gl_cv_type_${gltype}_suffix
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24224 $as_echo "$ac_res" >&6; }
24225 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24226 eval result=\$gl_cv_type_${gltype}_suffix
24227 test "$result" = no && result=
24228 eval ${GLTYPE}_SUFFIX=\$result
24229 cat >>confdefs.h <<_ACEOF
24230 #define ${GLTYPE}_SUFFIX $result
24239 for gltype in sig_atomic_t wchar_t wint_t ; do
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24241 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24242 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
24243 $as_echo_n "(cached) " >&6
24245 eval gl_cv_type_${gltype}_suffix=no
24246 eval result=\$gl_cv_type_${gltype}_signed
24247 if test "$result" = yes; then
24252 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24254 '') gltype1='int';;
24255 l) gltype1='long int';;
24256 ll) gltype1='long long int';;
24257 i64) gltype1='__int64';;
24258 u) gltype1='unsigned int';;
24259 ul) gltype1='unsigned long int';;
24260 ull) gltype1='unsigned long long int';;
24261 ui64)gltype1='unsigned __int64';;
24263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24264 /* end confdefs.h. */
24266 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24267 included before <wchar.h>. */
24268 #include <stddef.h>
24269 #include <signal.h>
24271 # include <stdio.h>
24273 # include <wchar.h>
24276 extern $gltype foo;
24277 extern $gltype1 foo;
24286 if ac_fn_c_try_compile "$LINENO"; then :
24287 eval gl_cv_type_${gltype}_suffix=\$glsuf
24289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 eval result=\$gl_cv_type_${gltype}_suffix
24291 test "$result" != no && break
24294 eval ac_res=\$gl_cv_type_${gltype}_suffix
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24296 $as_echo "$ac_res" >&6; }
24297 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24298 eval result=\$gl_cv_type_${gltype}_suffix
24299 test "$result" = no && result=
24300 eval ${GLTYPE}_SUFFIX=\$result
24301 cat >>confdefs.h <<_ACEOF
24302 #define ${GLTYPE}_SUFFIX $result
24309 if test $BITSIZEOF_WINT_T -lt 32; then
24310 BITSIZEOF_WINT_T=32
24316 if test -n "$STDINT_H"; then
24317 GL_GENERATE_STDINT_H_TRUE=
24318 GL_GENERATE_STDINT_H_FALSE='#'
24320 GL_GENERATE_STDINT_H_TRUE='#'
24321 GL_GENERATE_STDINT_H_FALSE=
24326 REPLACE_STRERROR_0=0
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
24328 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
24329 if ${gl_cv_func_strerror_0_works+:} false; then :
24330 $as_echo_n "(cached) " >&6
24332 if test "$cross_compiling" = yes; then :
24334 # Guess yes on glibc systems.
24335 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
24336 # If we don't know, assume the worst.
24337 *) gl_cv_func_strerror_0_works="guessing no" ;;
24341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24342 /* end confdefs.h. */
24343 #include <string.h>
24352 str = strerror (0);
24353 if (!*str) result |= 1;
24354 if (errno) result |= 2;
24355 if (strstr (str, "nknown") || strstr (str, "ndefined"))
24362 if ac_fn_c_try_run "$LINENO"; then :
24363 gl_cv_func_strerror_0_works=yes
24365 gl_cv_func_strerror_0_works=no
24367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24368 conftest.$ac_objext conftest.beam conftest.$ac_ext
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
24374 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
24375 case "$gl_cv_func_strerror_0_works" in
24378 REPLACE_STRERROR_0=1
24380 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24388 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24389 if ${ac_cv_c_restrict+:} false; then :
24390 $as_echo_n "(cached) " >&6
24392 ac_cv_c_restrict=no
24393 # The order here caters to the fact that C++ does not require restrict.
24394 for ac_kw in __restrict __restrict__ _Restrict restrict; do
24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h. */
24397 typedef int * int_ptr;
24398 int foo (int_ptr $ac_kw ip) {
24405 int * $ac_kw t = s;
24412 if ac_fn_c_try_compile "$LINENO"; then :
24413 ac_cv_c_restrict=$ac_kw
24415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416 test "$ac_cv_c_restrict" != no && break
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24421 $as_echo "$ac_cv_c_restrict" >&6; }
24423 case $ac_cv_c_restrict in
24425 no) $as_echo "#define restrict /**/" >>confdefs.h
24427 *) cat >>confdefs.h <<_ACEOF
24428 #define restrict $ac_cv_c_restrict
24444 if test $gl_cv_have_include_next = yes; then
24445 gl_cv_next_string_h='<'string.h'>'
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
24448 $as_echo_n "checking absolute name of <string.h>... " >&6; }
24449 if ${gl_cv_next_string_h+:} false; then :
24450 $as_echo_n "(cached) " >&6
24453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24454 /* end confdefs.h. */
24455 #include <string.h>
24459 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24460 *) gl_absname_cpp="$ac_cpp" ;;
24465 gl_dirsep_regex='[/\\]'
24468 gl_dirsep_regex='\/'
24471 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24473 gl_header_literal_regex=`echo 'string.h' \
24474 | sed -e "$gl_make_literal_regex_sed"`
24475 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24476 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24481 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24482 sed -n "$gl_absolute_header_sed"`'"'
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
24487 $as_echo "$gl_cv_next_string_h" >&6; }
24489 NEXT_STRING_H=$gl_cv_next_string_h
24491 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24492 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24493 gl_next_as_first_directive='<'string.h'>'
24495 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24496 gl_next_as_first_directive=$gl_cv_next_string_h
24498 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
24505 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
24506 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24508 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24509 if eval \${$as_gl_Symbol+:} false; then :
24510 $as_echo_n "(cached) " >&6
24512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24513 /* end confdefs.h. */
24514 #include <string.h>
24525 if ac_fn_c_try_compile "$LINENO"; then :
24526 eval "$as_gl_Symbol=yes"
24528 eval "$as_gl_Symbol=no"
24530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532 eval ac_res=\$$as_gl_Symbol
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24534 $as_echo "$ac_res" >&6; }
24535 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24536 cat >>confdefs.h <<_ACEOF
24537 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24540 eval ac_cv_have_decl_$gl_func=yes
24545 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
24546 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
24552 cat >>confdefs.h <<_ACEOF
24553 #define HAVE_DECL_STRNLEN $ac_have_decl
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
24557 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
24558 if ${ac_cv_header_stat_broken+:} false; then :
24559 $as_echo_n "(cached) " >&6
24561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562 /* end confdefs.h. */
24563 #include <sys/types.h>
24564 #include <sys/stat.h>
24566 #if defined S_ISBLK && defined S_IFDIR
24567 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
24570 #if defined S_ISBLK && defined S_IFCHR
24571 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
24574 #if defined S_ISLNK && defined S_IFREG
24575 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
24578 #if defined S_ISSOCK && defined S_IFREG
24579 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
24583 if ac_fn_c_try_compile "$LINENO"; then :
24584 ac_cv_header_stat_broken=no
24586 ac_cv_header_stat_broken=yes
24588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
24591 $as_echo "$ac_cv_header_stat_broken" >&6; }
24592 if test $ac_cv_header_stat_broken = yes; then
24594 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
24600 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24601 if test "x$ac_cv_type_mode_t" = xyes; then :
24605 cat >>confdefs.h <<_ACEOF
24629 if test $gl_cv_have_include_next = yes; then
24630 gl_cv_next_sys_types_h='<'sys/types.h'>'
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
24633 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
24634 if ${gl_cv_next_sys_types_h+:} false; then :
24635 $as_echo_n "(cached) " >&6
24638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24639 /* end confdefs.h. */
24640 #include <sys/types.h>
24644 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24645 *) gl_absname_cpp="$ac_cpp" ;;
24650 gl_dirsep_regex='[/\\]'
24653 gl_dirsep_regex='\/'
24656 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24658 gl_header_literal_regex=`echo 'sys/types.h' \
24659 | sed -e "$gl_make_literal_regex_sed"`
24660 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24661 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24666 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24667 sed -n "$gl_absolute_header_sed"`'"'
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
24672 $as_echo "$gl_cv_next_sys_types_h" >&6; }
24674 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
24676 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24677 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24678 gl_next_as_first_directive='<'sys/types.h'>'
24680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24681 gl_next_as_first_directive=$gl_cv_next_sys_types_h
24683 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
24697 GNULIB_NANOSLEEP=0;
24701 HAVE_DECL_LOCALTIME_R=1;
24705 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
24706 REPLACE_MKTIME=GNULIB_PORTCHECK;
24707 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
24708 REPLACE_TIMEGM=GNULIB_PORTCHECK;
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
24715 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
24716 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
24717 $as_echo_n "(cached) " >&6
24719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h. */
24726 static struct timespec x; x.tv_sec = x.tv_nsec;
24731 if ac_fn_c_try_compile "$LINENO"; then :
24732 gl_cv_sys_struct_timespec_in_time_h=yes
24734 gl_cv_sys_struct_timespec_in_time_h=no
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
24739 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
24741 TIME_H_DEFINES_STRUCT_TIMESPEC=0
24742 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
24743 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
24744 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
24745 TIME_H_DEFINES_STRUCT_TIMESPEC=1
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
24748 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
24749 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
24750 $as_echo_n "(cached) " >&6
24752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753 /* end confdefs.h. */
24754 #include <sys/time.h>
24759 static struct timespec x; x.tv_sec = x.tv_nsec;
24764 if ac_fn_c_try_compile "$LINENO"; then :
24765 gl_cv_sys_struct_timespec_in_sys_time_h=yes
24767 gl_cv_sys_struct_timespec_in_sys_time_h=no
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
24772 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
24773 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
24774 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
24777 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
24778 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
24779 $as_echo_n "(cached) " >&6
24781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782 /* end confdefs.h. */
24783 #include <pthread.h>
24788 static struct timespec x; x.tv_sec = x.tv_nsec;
24793 if ac_fn_c_try_compile "$LINENO"; then :
24794 gl_cv_sys_struct_timespec_in_pthread_h=yes
24796 gl_cv_sys_struct_timespec_in_pthread_h=no
24798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
24801 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
24802 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
24803 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
24822 if test $gl_cv_have_include_next = yes; then
24823 gl_cv_next_time_h='<'time.h'>'
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
24826 $as_echo_n "checking absolute name of <time.h>... " >&6; }
24827 if ${gl_cv_next_time_h+:} false; then :
24828 $as_echo_n "(cached) " >&6
24831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24832 /* end confdefs.h. */
24837 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24838 *) gl_absname_cpp="$ac_cpp" ;;
24843 gl_dirsep_regex='[/\\]'
24846 gl_dirsep_regex='\/'
24849 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24851 gl_header_literal_regex=`echo 'time.h' \
24852 | sed -e "$gl_make_literal_regex_sed"`
24853 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24854 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24859 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24860 sed -n "$gl_absolute_header_sed"`'"'
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
24865 $as_echo "$gl_cv_next_time_h" >&6; }
24867 NEXT_TIME_H=$gl_cv_next_time_h
24869 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24871 gl_next_as_first_directive='<'time.h'>'
24873 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24874 gl_next_as_first_directive=$gl_cv_next_time_h
24876 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
24889 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
24894 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
24899 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;}
24906 if test "$HAVE_LIBUNISTRING" = yes; then
24907 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
24908 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
24909 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
24912 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
24913 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
24919 cat >>confdefs.h <<_ACEOF
24920 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
24923 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
24924 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
24930 cat >>confdefs.h <<_ACEOF
24931 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
24934 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
24935 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
24941 cat >>confdefs.h <<_ACEOF
24942 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
24945 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
24946 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
24952 cat >>confdefs.h <<_ACEOF
24953 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
24956 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
24957 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
24963 cat >>confdefs.h <<_ACEOF
24964 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
24967 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
24968 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
24974 cat >>confdefs.h <<_ACEOF
24975 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
24978 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
24979 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
24985 cat >>confdefs.h <<_ACEOF
24986 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
24989 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
24990 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
24996 cat >>confdefs.h <<_ACEOF
24997 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
25000 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
25001 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
25007 cat >>confdefs.h <<_ACEOF
25008 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
25011 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
25012 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
25018 cat >>confdefs.h <<_ACEOF
25019 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
25022 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
25023 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
25029 cat >>confdefs.h <<_ACEOF
25030 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
25033 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
25034 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
25040 cat >>confdefs.h <<_ACEOF
25041 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
25046 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
25047 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
25048 $as_echo_n "(cached) " >&6
25050 gl_cv_header_wchar_h_correct_inline=yes
25051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052 /* end confdefs.h. */
25054 #define wcstod renamed_wcstod
25055 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25057 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25058 included before <wchar.h>. */
25059 #include <stddef.h>
25063 extern int zero (void);
25064 int main () { return zero(); }
25067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25068 (eval $ac_compile) 2>&5
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; then
25072 mv conftest.$ac_objext conftest1.$ac_objext
25073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h. */
25076 #define wcstod renamed_wcstod
25077 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25079 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25080 included before <wchar.h>. */
25081 #include <stddef.h>
25085 int zero (void) { return 0; }
25088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25089 (eval $ac_compile) 2>&5
25091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092 test $ac_status = 0; }; then
25093 mv conftest.$ac_objext conftest2.$ac_objext
25094 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
25097 gl_cv_header_wchar_h_correct_inline=no
25101 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
25105 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
25106 if test $gl_cv_header_wchar_h_correct_inline = no; then
25107 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
25108 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
25109 C99 mode. You have four options:
25110 - Add the flag -fgnu89-inline to CC and reconfigure, or
25111 - Fix your include files, using parts of
25112 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
25113 - Use a gcc version older than 4.3, or
25114 - Don't use the flags -std=c99 or -std=gnu99.
25115 Configuration aborted." "$LINENO" 5
25122 if test $ac_cv_header_features_h = yes; then
25133 GL_COND_LIBTOOL_TRUE=
25134 GL_COND_LIBTOOL_FALSE='#'
25136 GL_COND_LIBTOOL_TRUE='#'
25137 GL_COND_LIBTOOL_FALSE=
25140 gl_cond_libtool=false
25143 gl_m4_base='gnulib-m4'
25153 gl_source_base='gnulib-lib'
25159 if test $ac_cv_func_alloca_works = no; then
25166 # Define an additional variable used in the Makefile substitution.
25168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h. */
25171 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
25176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25177 $EGREP "Need own alloca" >/dev/null 2>&1; then :
25185 if test -n "$ALLOCA_H"; then
25186 GL_GENERATE_ALLOCA_H_TRUE=
25187 GL_GENERATE_ALLOCA_H_FALSE='#'
25189 GL_GENERATE_ALLOCA_H_TRUE='#'
25190 GL_GENERATE_ALLOCA_H_FALSE=
25197 if test "$CXX_CHOICE" = no; then
25200 if test -z "$CXX"; then
25201 if test -n "$CCC"; then
25204 if test -n "$ac_tool_prefix"; then
25205 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
25207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25210 $as_echo_n "checking for $ac_word... " >&6; }
25211 if ${ac_cv_prog_CXX+:} false; then :
25212 $as_echo_n "(cached) " >&6
25214 if test -n "$CXX"; then
25215 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25218 for as_dir in $PATH
25221 test -z "$as_dir" && as_dir=.
25222 for ac_exec_ext in '' $ac_executable_extensions; do
25223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25224 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25234 CXX=$ac_cv_prog_CXX
25235 if test -n "$CXX"; then
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25237 $as_echo "$CXX" >&6; }
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25240 $as_echo "no" >&6; }
25244 test -n "$CXX" && break
25247 if test -z "$CXX"; then
25249 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
25251 # Extract the first word of "$ac_prog", so it can be a program name with args.
25252 set dummy $ac_prog; ac_word=$2
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25254 $as_echo_n "checking for $ac_word... " >&6; }
25255 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25256 $as_echo_n "(cached) " >&6
25258 if test -n "$ac_ct_CXX"; then
25259 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25262 for as_dir in $PATH
25265 test -z "$as_dir" && as_dir=.
25266 for ac_exec_ext in '' $ac_executable_extensions; do
25267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25268 ac_cv_prog_ac_ct_CXX="$ac_prog"
25269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25278 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25279 if test -n "$ac_ct_CXX"; then
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25281 $as_echo "$ac_ct_CXX" >&6; }
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25284 $as_echo "no" >&6; }
25288 test -n "$ac_ct_CXX" && break
25291 if test "x$ac_ct_CXX" = x; then
25294 case $cross_compiling:$ac_tool_warned in
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25298 ac_tool_warned=yes ;;
25306 if test "$CXX" != no; then
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
25308 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
25310 ac_cpp='$CXXCPP $CPPFLAGS'
25311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25317 echo 'int main () { return 0; }' > conftest.$ac_ext
25318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25319 (eval $ac_link) 2>&5
25321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; } && test -s conftest$ac_exeext; then
25323 gl_cv_prog_ansicxx_works=yes
25324 if (./conftest; exit) 2>/dev/null; then
25325 gl_cv_prog_ansicxx_cross=no
25327 gl_cv_prog_ansicxx_cross=yes
25330 gl_cv_prog_ansicxx_works=no
25334 ac_cpp='$CPP $CPPFLAGS'
25335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
25340 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
25341 if test $gl_cv_prog_ansicxx_works = no; then
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
25345 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
25347 ac_cpp='$CXXCPP $CPPFLAGS'
25348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25352 cat <<EOF > conftest.$ac_ext
25353 #include <iostream>
25354 namespace test { using namespace std; }
25356 int main () { return 0; }
25358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25359 (eval $ac_link) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; } && test -s conftest$ac_exeext; then
25363 gl_cv_prog_ansicxx_namespaces=yes
25365 gl_cv_prog_ansicxx_namespaces=no
25369 ac_cpp='$CPP $CPPFLAGS'
25370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
25375 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
25376 if test $gl_cv_prog_ansicxx_namespaces = no; then
25384 if test "$CXX" != no; then
25393 if test "$CXX" != no; then
25395 depcc="$CXX" am_compiler_list=
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25398 $as_echo_n "checking dependency style of $depcc... " >&6; }
25399 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25400 $as_echo_n "(cached) " >&6
25402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25403 # We make a subdir and do the tests there. Otherwise we can end up
25404 # making bogus files that we don't know about and never remove. For
25405 # instance it was reported that on HP-UX the gcc test will end up
25406 # making a dummy file named 'D' -- because '-MD' means "put the output
25408 rm -rf conftest.dir
25410 # Copy depcomp to subdir because otherwise we won't find it if we're
25411 # using a relative directory.
25412 cp "$am_depcomp" conftest.dir
25414 # We will build objects and dependencies in a subdirectory because
25415 # it helps to detect inapplicable dependency modes. For instance
25416 # both Tru64's cc and ICC support -MD to output dependencies as a
25417 # side effect of compilation, but ICC will put the dependencies in
25418 # the current directory while Tru64 will put them in the object
25422 am_cv_CXX_dependencies_compiler_type=none
25423 if test "$am_compiler_list" = ""; then
25424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25426 am__universal=false
25427 case " $depcc " in #(
25428 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25431 for depmode in $am_compiler_list; do
25432 # Setup a source with many dependencies, because some compilers
25433 # like to wrap large dependency lists on column 80 (with \), and
25434 # we should not choose a depcomp mode which is confused by this.
25436 # We need to recreate these files for each test, as the compiler may
25437 # overwrite some of them when testing with obscure command lines.
25438 # This happens at least with the AIX C compiler.
25440 for i in 1 2 3 4 5 6; do
25441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25442 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25443 # Solaris 10 /bin/sh.
25444 echo '/* dummy */' > sub/conftst$i.h
25446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25448 # We check with '-c' and '-o' for the sake of the "dashmstdout"
25449 # mode. It turns out that the SunPro C++ compiler does not properly
25450 # handle '-M -o', and we need to detect this. Also, some Intel
25451 # versions had trouble with output in subdirs.
25452 am__obj=sub/conftest.${OBJEXT-o}
25453 am__minus_obj="-o $am__obj"
25456 # This depmode causes a compiler race in universal mode.
25457 test "$am__universal" = false || continue
25460 # After this tag, mechanisms are not by side-effect, so they'll
25461 # only be used when explicitly requested.
25462 if test "x$enable_dependency_tracking" = xyes; then
25468 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
25469 # This compiler won't grok '-c -o', but also, the minuso test has
25470 # not run yet. These depmodes are late enough in the game, and
25471 # so weak that their functioning should not be impacted.
25472 am__obj=conftest.${OBJEXT-o}
25477 if depmode=$depmode \
25478 source=sub/conftest.c object=$am__obj \
25479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25481 >/dev/null 2>conftest.err &&
25482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25486 # icc doesn't choke on unknown options, it will just issue warnings
25487 # or remarks (even with -Werror). So we grep stderr for any message
25488 # that says an option was ignored or not supported.
25489 # When given -MP, icc 7.0 and 7.1 complain thusly:
25490 # icc: Command line warning: ignoring option '-M'; no argument required
25491 # The diagnosis changed in icc 8.0:
25492 # icc: Command line remark: option '-MP' not supported
25493 if (grep 'ignoring option' conftest.err ||
25494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25495 am_cv_CXX_dependencies_compiler_type=$depmode
25502 rm -rf conftest.dir
25504 am_cv_CXX_dependencies_compiler_type=none
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25509 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25510 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25513 test "x$enable_dependency_tracking" != xno \
25514 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25515 am__fastdepCXX_TRUE=
25516 am__fastdepCXX_FALSE='#'
25518 am__fastdepCXX_TRUE='#'
25519 am__fastdepCXX_FALSE=
25525 am__fastdepCXX_TRUE=
25526 am__fastdepCXX_FALSE='#'
25528 am__fastdepCXX_TRUE='#'
25529 am__fastdepCXX_FALSE=
25535 for ac_func in atexit
25537 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
25538 if test "x$ac_cv_func_atexit" = xyes; then :
25539 cat >>confdefs.h <<_ACEOF
25540 #define HAVE_ATEXIT 1
25547 if test $ac_cv_func_atexit = no; then
25556 gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
25565 if test $ac_cv_func_canonicalize_file_name = no; then
25566 HAVE_CANONICALIZE_FILE_NAME=0
25567 if test $ac_cv_func_realpath = no; then
25570 case "$gl_cv_func_realpath_works" in
25572 *) REPLACE_REALPATH=1 ;;
25576 case "$gl_cv_func_realpath_works" in
25580 REPLACE_CANONICALIZE_FILE_NAME=1
25586 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
25595 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
25600 cat >>confdefs.h <<_ACEOF
25601 #define GNULIB_CANONICALIZE_LGPL 1
25610 GNULIB_CANONICALIZE_FILE_NAME=1
25616 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
25631 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
25637 if test "x$datarootdir" = x; then
25638 datarootdir='${datadir}'
25641 if test "x$docdir" = x; then
25642 docdir='${datarootdir}/doc/${PACKAGE}'
25645 if test "x$htmldir" = x; then
25646 htmldir='${docdir}'
25649 if test "x$dvidir" = x; then
25653 if test "x$pdfdir" = x; then
25657 if test "x$psdir" = x; then
25661 if test "x$lispdir" = x; then
25662 lispdir='${datarootdir}/emacs/site-lisp'
25665 if test "x$localedir" = x; then
25666 localedir='${datarootdir}/locale'
25670 pkglibexecdir='${libexecdir}/${PACKAGE}'
25674 ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
25679 $as_echo_n "checking whether // is distinct from /... " >&6; }
25680 if ${gl_cv_double_slash_root+:} false; then :
25681 $as_echo_n "(cached) " >&6
25683 if test x"$cross_compiling" = xyes ; then
25684 # When cross-compiling, there is no way to tell whether // is special
25685 # short of a list of hosts. However, the only known hosts to date
25686 # that have a distinct // are Apollo DomainOS (too old to port to),
25687 # Cygwin, and z/OS. If anyone knows of another system for which // has
25688 # special semantics and is distinct from /, please report it to
25689 # <bug-gnulib@gnu.org>.
25691 *-cygwin | i370-ibm-openedition)
25692 gl_cv_double_slash_root=yes ;;
25694 # Be optimistic and assume that / and // are the same when we
25696 gl_cv_double_slash_root='unknown, assuming no' ;;
25699 set x `ls -di / // 2>/dev/null`
25700 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
25701 gl_cv_double_slash_root=no
25703 gl_cv_double_slash_root=yes
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
25708 $as_echo "$gl_cv_double_slash_root" >&6; }
25709 if test "$gl_cv_double_slash_root" = yes; then
25711 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
25727 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
25734 $as_echo_n "checking for error_at_line... " >&6; }
25735 if ${ac_cv_lib_error_at_line+:} false; then :
25736 $as_echo_n "(cached) " >&6
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25744 error_at_line (0, 0, "", 0, "an error occurred");
25749 if ac_fn_c_try_link "$LINENO"; then :
25750 ac_cv_lib_error_at_line=yes
25752 ac_cv_lib_error_at_line=no
25754 rm -f core conftest.err conftest.$ac_objext \
25755 conftest$ac_exeext conftest.$ac_ext
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
25758 $as_echo "$ac_cv_lib_error_at_line" >&6; }
25760 if test $ac_cv_lib_error_at_line = no; then
25769 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
25778 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
25782 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
25787 cat >>confdefs.h <<_ACEOF
25788 #define GNULIB_FWRITEERROR 1
25797 if test $REPLACE_GETOPT = 1; then
25806 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
25816 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
25821 GNULIB_GL_UNISTD_H_GETOPT=1
25826 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
25835 if test -n "$gl_replace_getopt"; then
25839 if test $REPLACE_GETOPT = 1; then
25843 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
25849 if test $REPLACE_GETOPT = 1; then
25858 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
25868 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
25873 GNULIB_GL_UNISTD_H_GETOPT=1
25901 if test $gl_cv_have_include_next = yes; then
25902 gl_cv_next_iconv_h='<'iconv.h'>'
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
25905 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
25906 if ${gl_cv_next_iconv_h+:} false; then :
25907 $as_echo_n "(cached) " >&6
25910 if test $ac_cv_header_iconv_h = yes; then
25913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25914 /* 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'
25933 gl_header_literal_regex=`echo 'iconv.h' \
25934 | sed -e "$gl_make_literal_regex_sed"`
25935 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25936 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25941 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25942 sed -n "$gl_absolute_header_sed"`'"'
25944 gl_cv_next_iconv_h='<'iconv.h'>'
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
25950 $as_echo "$gl_cv_next_iconv_h" >&6; }
25952 NEXT_ICONV_H=$gl_cv_next_iconv_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='<'iconv.h'>'
25958 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25959 gl_next_as_first_directive=$gl_cv_next_iconv_h
25961 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
25971 if test "$am_cv_func_iconv" = yes; then
25975 if test -n "$ICONV_H"; then
25976 GL_GENERATE_ICONV_H_TRUE=
25977 GL_GENERATE_ICONV_H_FALSE='#'
25979 GL_GENERATE_ICONV_H_TRUE='#'
25980 GL_GENERATE_ICONV_H_FALSE=
25984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25985 /* end confdefs.h. */
25988 #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
25993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25994 $EGREP "gnu_iconv" >/dev/null 2>&1; then :
25995 gl_func_iconv_gnu=yes
25997 gl_func_iconv_gnu=no
26001 if test $gl_func_iconv_gnu = no; then
26004 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
26005 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
26006 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
26007 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
26008 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
26010 if test -n "$iconv_flavor"; then
26012 cat >>confdefs.h <<_ACEOF
26013 #define ICONV_FLAVOR $iconv_flavor
26020 if test -n "$ICONV_H"; then
26021 GL_GENERATE_ICONV_H_TRUE=
26022 GL_GENERATE_ICONV_H_FALSE='#'
26024 GL_GENERATE_ICONV_H_TRUE='#'
26025 GL_GENERATE_ICONV_H_FALSE=
26029 REPLACE_ICONV_OPEN=1
26036 if test $REPLACE_ICONV_OPEN = 1; then
26045 gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
26048 if test $REPLACE_ICONV = 1; then
26057 gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
26067 gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
26073 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
26074 if ${gl_cv_c_inline_effective+:} false; then :
26075 $as_echo_n "(cached) " >&6
26077 if test $ac_cv_c_inline = no; then
26078 gl_cv_c_inline_effective=no
26080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26081 /* end confdefs.h. */
26086 #ifdef __NO_INLINE__
26087 #error "inline is not effective"
26093 if ac_fn_c_try_compile "$LINENO"; then :
26094 gl_cv_c_inline_effective=yes
26096 gl_cv_c_inline_effective=no
26098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
26103 $as_echo "$gl_cv_c_inline_effective" >&6; }
26104 if test $gl_cv_c_inline_effective = yes; then
26106 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
26115 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
26116 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26118 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
26119 before <wchar.h>. */
26120 #include <stddef.h>
26124 #include <wctype.h>
26127 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
26133 cat >>confdefs.h <<_ACEOF
26134 #define HAVE_DECL_ISWBLANK $ac_have_decl
26137 if test $ac_cv_func_iswblank = no; then
26139 if test $ac_cv_have_decl_iswblank = yes; then
26143 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
26146 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
26152 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
26155 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
26164 gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
26179 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
26185 $as_echo_n "checking whether to use Java... " >&6; }
26186 # Check whether --enable-java was given.
26187 if test "${enable_java+set}" = set; then :
26188 enableval=$enable_java; JAVA_CHOICE="$enableval"
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
26194 $as_echo "$JAVA_CHOICE" >&6; }
26195 if test "$JAVA_CHOICE" = yes; then
26196 # Check whether --enable-native-java was given.
26197 if test "${enable_native_java+set}" = set; then :
26198 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
26204 # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
26205 ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
26216 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
26229 $as_echo "#define _LCONV_C99 1" >>confdefs.h
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
26235 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
26236 if ${gl_cv_header_locale_h_posix2001+:} false; then :
26237 $as_echo_n "(cached) " >&6
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h. */
26241 #include <locale.h>
26242 int x = LC_MESSAGES;
26243 int y = sizeof (((struct lconv *) 0)->decimal_point);
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253 gl_cv_header_locale_h_posix2001=yes
26255 gl_cv_header_locale_h_posix2001=no
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
26260 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
26263 if test $ac_cv_header_xlocale_h = yes; then
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
26266 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
26267 if ${gl_cv_header_locale_has_locale_t+:} false; then :
26268 $as_echo_n "(cached) " >&6
26270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h. */
26272 #include <locale.h>
26282 if ac_fn_c_try_compile "$LINENO"; then :
26283 gl_cv_header_locale_has_locale_t=yes
26285 gl_cv_header_locale_has_locale_t=no
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
26291 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
26292 if test $gl_cv_header_locale_has_locale_t = yes; then
26293 gl_cv_header_locale_h_needs_xlocale_h=no
26295 gl_cv_header_locale_h_needs_xlocale_h=yes
26299 gl_cv_header_locale_h_needs_xlocale_h=no
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
26304 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
26305 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
26306 $as_echo_n "(cached) " >&6
26308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26309 /* end confdefs.h. */
26310 #include <locale.h>
26312 int x = sizeof (l.decimal_point);
26313 int y = sizeof (l.int_p_cs_precedes);
26322 if ac_fn_c_try_compile "$LINENO"; then :
26323 gl_cv_sys_struct_lconv_ok=yes
26325 gl_cv_sys_struct_lconv_ok=no
26327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
26331 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
26332 if test $gl_cv_sys_struct_lconv_ok = no; then
26333 REPLACE_STRUCT_LCONV=1
26344 if test $gl_cv_have_include_next = yes; then
26345 gl_cv_next_locale_h='<'locale.h'>'
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
26348 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
26349 if ${gl_cv_next_locale_h+:} false; then :
26350 $as_echo_n "(cached) " >&6
26353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26354 /* end confdefs.h. */
26355 #include <locale.h>
26359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26360 *) gl_absname_cpp="$ac_cpp" ;;
26365 gl_dirsep_regex='[/\\]'
26368 gl_dirsep_regex='\/'
26371 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26373 gl_header_literal_regex=`echo 'locale.h' \
26374 | sed -e "$gl_make_literal_regex_sed"`
26375 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26376 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26381 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26382 sed -n "$gl_absolute_header_sed"`'"'
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
26387 $as_echo "$gl_cv_next_locale_h" >&6; }
26389 NEXT_LOCALE_H=$gl_cv_next_locale_h
26391 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26392 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26393 gl_next_as_first_directive='<'locale.h'>'
26395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26396 gl_next_as_first_directive=$gl_cv_next_locale_h
26398 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
26405 for gl_func in setlocale duplocale; do
26406 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26408 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26409 if eval \${$as_gl_Symbol+:} false; then :
26410 $as_echo_n "(cached) " >&6
26412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h. */
26414 #include <locale.h>
26415 /* Some systems provide declarations in a non-standard header. */
26417 # include <xlocale.h>
26429 if ac_fn_c_try_compile "$LINENO"; then :
26430 eval "$as_gl_Symbol=yes"
26432 eval "$as_gl_Symbol=no"
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436 eval ac_res=\$$as_gl_Symbol
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26438 $as_echo "$ac_res" >&6; }
26439 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26440 cat >>confdefs.h <<_ACEOF
26441 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26444 eval ac_cv_have_decl_$gl_func=yes
26452 for ac_func in setlocale uselocale
26454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26456 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26457 cat >>confdefs.h <<_ACEOF
26458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26467 if test "$gl_threads_api" = posix; then
26468 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
26469 # pthread_rwlock_* functions.
26470 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
26472 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
26474 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
26478 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
26479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h. */
26482 #include <pthread.h>
26487 #if __FreeBSD__ == 4
26488 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
26489 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
26490 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
26491 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
26493 int x = (int)PTHREAD_MUTEX_RECURSIVE;
26501 if ac_fn_c_try_compile "$LINENO"; then :
26503 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
26506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512 cat >>confdefs.h <<_ACEOF
26513 #define GNULIB_LOCK 1
26520 if test $ac_cv_func_lstat = yes; then
26522 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
26531 if test $REPLACE_LSTAT = 1; then
26540 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
26555 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
26580 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
26585 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
26586 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
26587 $as_echo_n "(cached) " >&6
26591 # Guess no on AIX and OSF/1.
26592 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
26593 # Guess yes otherwise.
26594 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
26596 if test $LOCALE_JA != none; then
26597 if test "$cross_compiling" = yes; then :
26600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26601 /* end confdefs.h. */
26603 #include <locale.h>
26604 #include <string.h>
26605 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26607 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26608 included before <wchar.h>. */
26609 #include <stddef.h>
26615 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26617 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26621 memset (&state, '\0', sizeof (mbstate_t));
26622 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26623 if (mbsinit (&state))
26629 if ac_fn_c_try_run "$LINENO"; then :
26630 gl_cv_func_mbrtowc_incomplete_state=yes
26632 gl_cv_func_mbrtowc_incomplete_state=no
26634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26635 conftest.$ac_objext conftest.beam conftest.$ac_ext
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
26642 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
26648 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
26649 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
26650 $as_echo_n "(cached) " >&6
26654 # Guess no on Solaris 8.
26655 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
26656 # Guess yes otherwise.
26657 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
26659 if test $LOCALE_ZH_CN != none; then
26660 if test "$cross_compiling" = yes; then :
26663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26664 /* end confdefs.h. */
26666 #include <locale.h>
26667 #include <stdlib.h>
26668 #include <string.h>
26669 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26671 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26672 included before <wchar.h>. */
26673 #include <stddef.h>
26679 /* This fails on Solaris 8:
26680 mbrtowc returns 2, and sets wc to 0x00F0.
26681 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
26682 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
26684 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
26688 memset (&state, '\0', sizeof (mbstate_t));
26689 if (mbrtowc (&wc, input + 3, 6, &state) != 4
26690 && mbtowc (&wc, input + 3, 6) == 4)
26696 if ac_fn_c_try_run "$LINENO"; then :
26697 gl_cv_func_mbrtowc_sanitycheck=yes
26699 gl_cv_func_mbrtowc_sanitycheck=no
26701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26702 conftest.$ac_objext conftest.beam conftest.$ac_ext
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
26709 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
26711 REPLACE_MBSTATE_T=0
26712 case "$gl_cv_func_mbrtowc_incomplete_state" in
26714 *) REPLACE_MBSTATE_T=1 ;;
26716 case "$gl_cv_func_mbrtowc_sanitycheck" in
26718 *) REPLACE_MBSTATE_T=1 ;;
26721 REPLACE_MBSTATE_T=1
26726 if test $ac_cv_func_mbrtowc = no; then
26728 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
26729 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26731 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26732 included before <wchar.h>. */
26733 #include <stddef.h>
26739 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
26745 cat >>confdefs.h <<_ACEOF
26746 #define HAVE_DECL_MBRTOWC $ac_have_decl
26749 if test $ac_cv_have_decl_mbrtowc = yes; then
26753 if test $REPLACE_MBSTATE_T = 1; then
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
26760 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
26761 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
26762 $as_echo_n "(cached) " >&6
26766 # Guess no on Solaris.
26767 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
26768 # Guess yes otherwise.
26769 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
26771 if test $LOCALE_FR_UTF8 != none; then
26772 if test "$cross_compiling" = yes; then :
26775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26776 /* end confdefs.h. */
26778 #include <locale.h>
26779 #include <stdlib.h>
26780 #include <string.h>
26781 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26783 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26784 included before <wchar.h>. */
26785 #include <stddef.h>
26793 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26795 char input[] = "\303\237er";
26800 memset (&state, '\0', sizeof (mbstate_t));
26801 wc = (wchar_t) 0xBADFACE;
26802 ret = mbrtowc (&wc, input, 5, &state);
26805 if (!mbsinit (&state))
26808 memset (&state, '\0', sizeof (mbstate_t));
26809 ret = mbrtowc (NULL, input, 5, &state);
26810 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
26812 if (!mbsinit (&state))
26818 if ac_fn_c_try_run "$LINENO"; then :
26819 gl_cv_func_mbrtowc_null_arg1=yes
26821 gl_cv_func_mbrtowc_null_arg1=no
26823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26824 conftest.$ac_objext conftest.beam conftest.$ac_ext
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
26831 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
26837 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
26838 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
26839 $as_echo_n "(cached) " >&6
26843 # Guess no on OSF/1.
26844 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
26845 # Guess yes otherwise.
26846 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
26848 if test $LOCALE_FR_UTF8 != none; then
26849 if test "$cross_compiling" = yes; then :
26852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853 /* end confdefs.h. */
26855 #include <locale.h>
26856 #include <string.h>
26857 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26859 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26860 included before <wchar.h>. */
26861 #include <stddef.h>
26867 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26873 memset (&state, '\0', sizeof (mbstate_t));
26874 wc = (wchar_t) 0xBADFACE;
26875 mbrtowc (&wc, NULL, 5, &state);
26876 /* Check that wc was not modified. */
26877 if (wc != (wchar_t) 0xBADFACE)
26883 if ac_fn_c_try_run "$LINENO"; then :
26884 gl_cv_func_mbrtowc_null_arg2=yes
26886 gl_cv_func_mbrtowc_null_arg2=no
26888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26889 conftest.$ac_objext conftest.beam conftest.$ac_ext
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
26896 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
26904 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
26905 if ${gl_cv_func_mbrtowc_retval+:} false; then :
26906 $as_echo_n "(cached) " >&6
26910 # Guess no on HP-UX, Solaris, native Windows.
26911 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
26912 # Guess yes otherwise.
26913 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
26915 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
26916 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
26917 if test "$cross_compiling" = yes; then :
26920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h. */
26923 #include <locale.h>
26924 #include <string.h>
26925 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26927 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26928 included before <wchar.h>. */
26929 #include <stddef.h>
26936 int found_some_locale = 0;
26937 /* This fails on Solaris. */
26938 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26940 char input[] = "B\303\274\303\237er"; /* "Büßer" */
26944 memset (&state, '\0', sizeof (mbstate_t));
26945 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26948 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
26951 found_some_locale = 1;
26953 /* This fails on HP-UX 11.11. */
26954 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26956 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26960 memset (&state, '\0', sizeof (mbstate_t));
26961 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26964 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
26967 found_some_locale = 1;
26969 /* This fails on native Windows. */
26970 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
26972 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
26976 memset (&state, '\0', sizeof (mbstate_t));
26977 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
26980 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
26983 found_some_locale = 1;
26985 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
26987 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
26991 memset (&state, '\0', sizeof (mbstate_t));
26992 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
26995 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
26998 found_some_locale = 1;
27000 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
27002 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
27006 memset (&state, '\0', sizeof (mbstate_t));
27007 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
27010 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
27013 found_some_locale = 1;
27015 return (found_some_locale ? result : 77);
27018 if ac_fn_c_try_run "$LINENO"; then :
27019 gl_cv_func_mbrtowc_retval=yes
27021 if test $? != 77; then
27022 gl_cv_func_mbrtowc_retval=no
27026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27027 conftest.$ac_objext conftest.beam conftest.$ac_ext
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
27034 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
27040 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
27041 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
27042 $as_echo_n "(cached) " >&6
27046 # Guess no on Solaris 8 and 9.
27047 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
27048 # Guess yes otherwise.
27049 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
27051 if test $LOCALE_ZH_CN != none; then
27052 if test "$cross_compiling" = yes; then :
27055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27056 /* end confdefs.h. */
27058 #include <locale.h>
27059 #include <string.h>
27060 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27062 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27063 included before <wchar.h>. */
27064 #include <stddef.h>
27070 /* This fails on Solaris 8 and 9. */
27071 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
27076 memset (&state, '\0', sizeof (mbstate_t));
27077 if (mbrtowc (&wc, "", 1, &state) != 0)
27083 if ac_fn_c_try_run "$LINENO"; then :
27084 gl_cv_func_mbrtowc_nul_retval=yes
27086 gl_cv_func_mbrtowc_nul_retval=no
27088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27089 conftest.$ac_objext conftest.beam conftest.$ac_ext
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
27096 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
27098 case "$gl_cv_func_mbrtowc_null_arg1" in
27101 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
27106 case "$gl_cv_func_mbrtowc_null_arg2" in
27109 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
27114 case "$gl_cv_func_mbrtowc_retval" in
27117 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
27122 case "$gl_cv_func_mbrtowc_nul_retval" in
27125 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
27133 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
27142 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
27159 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
27174 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
27179 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
27180 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
27181 $as_echo_n "(cached) " >&6
27185 # Guess no on AIX and OSF/1.
27186 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
27187 # Guess yes otherwise.
27188 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
27190 if test $LOCALE_JA != none; then
27191 if test "$cross_compiling" = yes; then :
27194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h. */
27197 #include <locale.h>
27198 #include <string.h>
27199 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27201 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27202 included before <wchar.h>. */
27203 #include <stddef.h>
27209 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
27211 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
27215 memset (&state, '\0', sizeof (mbstate_t));
27216 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
27217 if (mbsinit (&state))
27223 if ac_fn_c_try_run "$LINENO"; then :
27224 gl_cv_func_mbrtowc_incomplete_state=yes
27226 gl_cv_func_mbrtowc_incomplete_state=no
27228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27229 conftest.$ac_objext conftest.beam conftest.$ac_ext
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
27236 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
27242 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
27243 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
27244 $as_echo_n "(cached) " >&6
27248 # Guess no on Solaris 8.
27249 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
27250 # Guess yes otherwise.
27251 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
27253 if test $LOCALE_ZH_CN != none; then
27254 if test "$cross_compiling" = yes; then :
27257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27258 /* end confdefs.h. */
27260 #include <locale.h>
27261 #include <stdlib.h>
27262 #include <string.h>
27263 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27265 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27266 included before <wchar.h>. */
27267 #include <stddef.h>
27273 /* This fails on Solaris 8:
27274 mbrtowc returns 2, and sets wc to 0x00F0.
27275 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
27276 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
27278 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
27282 memset (&state, '\0', sizeof (mbstate_t));
27283 if (mbrtowc (&wc, input + 3, 6, &state) != 4
27284 && mbtowc (&wc, input + 3, 6) == 4)
27290 if ac_fn_c_try_run "$LINENO"; then :
27291 gl_cv_func_mbrtowc_sanitycheck=yes
27293 gl_cv_func_mbrtowc_sanitycheck=no
27295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27296 conftest.$ac_objext conftest.beam conftest.$ac_ext
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
27303 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
27305 REPLACE_MBSTATE_T=0
27306 case "$gl_cv_func_mbrtowc_incomplete_state" in
27308 *) REPLACE_MBSTATE_T=1 ;;
27310 case "$gl_cv_func_mbrtowc_sanitycheck" in
27312 *) REPLACE_MBSTATE_T=1 ;;
27315 REPLACE_MBSTATE_T=1
27320 if test $ac_cv_func_mbsinit = no; then
27322 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
27323 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27325 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27326 included before <wchar.h>. */
27327 #include <stddef.h>
27333 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
27339 cat >>confdefs.h <<_ACEOF
27340 #define HAVE_DECL_MBSINIT $ac_have_decl
27343 if test $ac_cv_have_decl_mbsinit = yes; then
27347 if test $REPLACE_MBSTATE_T = 1; then
27351 mingw*) REPLACE_MBSINIT=1 ;;
27356 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
27365 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
27382 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
27389 if test $ac_cv_func_mbslen = yes; then
27406 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
27421 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
27430 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
27439 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
27442 for ac_header in bp-sym.h
27444 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
27445 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
27446 cat >>confdefs.h <<_ACEOF
27447 #define HAVE_BP_SYM_H 1
27467 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
27472 for ac_func in memmove
27474 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
27475 if test "x$ac_cv_func_memmove" = xyes; then :
27476 cat >>confdefs.h <<_ACEOF
27477 #define HAVE_MEMMOVE 1
27484 if test $ac_cv_func_memmove = no; then
27493 gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
27501 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
27502 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
27504 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
27507 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
27511 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27520 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
27526 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27535 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
27542 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
27544 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
27550 cat >>confdefs.h <<_ACEOF
27551 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
27554 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
27556 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
27562 cat >>confdefs.h <<_ACEOF
27563 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
27568 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
27572 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
27578 for ac_func in raise
27580 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
27581 if test "x$ac_cv_func_raise" = xyes; then :
27582 cat >>confdefs.h <<_ACEOF
27583 #define HAVE_RAISE 1
27589 if test $ac_cv_func_raise = no; then
27592 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27599 if test $gl_cv_type_sigset_t = yes; then
27600 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
27601 if test "x$ac_cv_func_sigprocmask" = xyes; then :
27602 gl_cv_func_sigprocmask=1
27606 if test -z "$gl_cv_func_sigprocmask"; then
27607 HAVE_POSIX_SIGNALBLOCKING=0
27610 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
27615 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
27623 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
27632 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
27647 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
27654 if test $ac_cv_func_readlink = no; then
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
27658 $as_echo_n "checking whether readlink signature is correct... " >&6; }
27659 if ${gl_cv_decl_readlink_works+:} false; then :
27660 $as_echo_n "(cached) " >&6
27662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27663 /* end confdefs.h. */
27664 #include <unistd.h>
27665 /* Cause compilation failure if original declaration has wrong type. */
27666 ssize_t readlink (const char *, char *, size_t);
27675 if ac_fn_c_try_compile "$LINENO"; then :
27676 gl_cv_decl_readlink_works=yes
27678 gl_cv_decl_readlink_works=no
27680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
27683 $as_echo "$gl_cv_decl_readlink_works" >&6; }
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
27685 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
27686 if ${gl_cv_func_readlink_works+:} false; then :
27687 $as_echo_n "(cached) " >&6
27689 # We have readlink, so assume ln -s works.
27690 ln -s conftest.no-such conftest.link
27691 ln -s conftest.link conftest.lnk2
27692 if test "$cross_compiling" = yes; then :
27694 # Guess yes on glibc systems.
27695 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
27696 # If we don't know, assume the worst.
27697 *) gl_cv_func_readlink_works="guessing no" ;;
27701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27702 /* end confdefs.h. */
27703 #include <unistd.h>
27709 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
27714 if ac_fn_c_try_run "$LINENO"; then :
27715 gl_cv_func_readlink_works=yes
27717 gl_cv_func_readlink_works=no
27719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27720 conftest.$ac_objext conftest.beam conftest.$ac_ext
27723 rm -f conftest.link conftest.lnk2
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
27726 $as_echo "$gl_cv_func_readlink_works" >&6; }
27727 case "$gl_cv_func_readlink_works" in
27729 if test "$gl_cv_decl_readlink_works" != yes; then
27735 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
27742 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
27751 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
27768 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
27777 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
27778 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
27779 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
27781 if test $RELOCATABLE = yes; then
27790 gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
27800 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
27826 if test $ac_cv_have_decl_setenv = no; then
27834 for ac_header in search.h
27836 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
27837 if test "x$ac_cv_header_search_h" = xyes; then :
27838 cat >>confdefs.h <<_ACEOF
27839 #define HAVE_SEARCH_H 1
27846 for ac_func in tsearch
27848 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
27849 if test "x$ac_cv_func_tsearch" = xyes; then :
27850 cat >>confdefs.h <<_ACEOF
27851 #define HAVE_TSEARCH 1
27863 mingw*) REPLACE_SETLOCALE=1 ;;
27866 1.5.*) REPLACE_SETLOCALE=1 ;;
27871 if test $REPLACE_SETLOCALE = 1; then
27880 gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
27897 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
27912 if test $gl_cv_have_include_next = yes; then
27913 gl_cv_next_signal_h='<'signal.h'>'
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
27916 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
27917 if ${gl_cv_next_signal_h+:} false; then :
27918 $as_echo_n "(cached) " >&6
27921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27922 /* end confdefs.h. */
27923 #include <signal.h>
27927 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27928 *) gl_absname_cpp="$ac_cpp" ;;
27933 gl_dirsep_regex='[/\\]'
27936 gl_dirsep_regex='\/'
27939 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27941 gl_header_literal_regex=`echo 'signal.h' \
27942 | sed -e "$gl_make_literal_regex_sed"`
27943 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27944 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27949 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27950 sed -n "$gl_absolute_header_sed"`'"'
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
27955 $as_echo "$gl_cv_next_signal_h" >&6; }
27957 NEXT_SIGNAL_H=$gl_cv_next_signal_h
27959 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27960 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27961 gl_next_as_first_directive='<'signal.h'>'
27963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27964 gl_next_as_first_directive=$gl_cv_next_signal_h
27966 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
27972 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
27973 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
27974 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
27975 #include <signal.h>
27978 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
27981 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
27990 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
27991 #include <signal.h>
27994 if test "x$ac_cv_type_sighandler_t" = xyes; then :
27997 HAVE_SIGHANDLER_T=0
28002 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
28003 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28005 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28006 if eval \${$as_gl_Symbol+:} false; then :
28007 $as_echo_n "(cached) " >&6
28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h. */
28011 #include <signal.h>
28022 if ac_fn_c_try_compile "$LINENO"; then :
28023 eval "$as_gl_Symbol=yes"
28025 eval "$as_gl_Symbol=no"
28027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28029 eval ac_res=\$$as_gl_Symbol
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28031 $as_echo "$ac_res" >&6; }
28032 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28033 cat >>confdefs.h <<_ACEOF
28034 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28037 eval ac_cv_have_decl_$gl_func=yes
28047 cat >>confdefs.h <<_ACEOF
28048 #define GNULIB_SIGPIPE 1
28053 GNULIB_SIGNAL_H_SIGPIPE=1
28056 GNULIB_STDIO_H_SIGPIPE=1
28058 GNULIB_UNISTD_H_SIGPIPE=1
28062 if test $gl_cv_type_sigset_t = yes; then
28063 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
28064 if test "x$ac_cv_func_sigprocmask" = xyes; then :
28065 gl_cv_func_sigprocmask=1
28069 if test -z "$gl_cv_func_sigprocmask"; then
28070 HAVE_POSIX_SIGNALBLOCKING=0
28073 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
28082 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
28091 GNULIB_SIGPROCMASK=1
28097 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
28103 $as_echo_n "checking for ssize_t... " >&6; }
28104 if ${gt_cv_ssize_t+:} false; then :
28105 $as_echo_n "(cached) " >&6
28107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108 /* end confdefs.h. */
28109 #include <sys/types.h>
28113 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28119 if ac_fn_c_try_compile "$LINENO"; then :
28124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
28127 $as_echo "$gt_cv_ssize_t" >&6; }
28128 if test $gt_cv_ssize_t = no; then
28130 $as_echo "#define ssize_t int" >>confdefs.h
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28138 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28139 if ${gl_cv_func_stat_dir_slash+:} false; then :
28140 $as_echo_n "(cached) " >&6
28142 if test "$cross_compiling" = yes; then :
28144 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28145 *) gl_cv_func_stat_dir_slash="guessing yes";;
28148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28149 /* end confdefs.h. */
28150 #include <sys/stat.h>
28155 struct stat st; return stat (".", &st) != stat ("./", &st);
28160 if ac_fn_c_try_run "$LINENO"; then :
28161 gl_cv_func_stat_dir_slash=yes
28163 gl_cv_func_stat_dir_slash=no
28165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28166 conftest.$ac_objext conftest.beam conftest.$ac_ext
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28171 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28173 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28174 if ${gl_cv_func_stat_file_slash+:} false; then :
28175 $as_echo_n "(cached) " >&6
28178 # Assume that if we have lstat, we can also check symlinks.
28179 if test $ac_cv_func_lstat = yes; then
28180 ln -s conftest.tmp conftest.lnk
28182 if test "$cross_compiling" = yes; then :
28184 # Guess yes on glibc systems.
28185 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28186 # If we don't know, assume the worst.
28187 *) gl_cv_func_stat_file_slash="guessing no" ;;
28191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28192 /* end confdefs.h. */
28193 #include <sys/stat.h>
28200 if (!stat ("conftest.tmp/", &st))
28203 if (!stat ("conftest.lnk/", &st))
28212 if ac_fn_c_try_run "$LINENO"; then :
28213 gl_cv_func_stat_file_slash=yes
28215 gl_cv_func_stat_file_slash=no
28217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28218 conftest.$ac_objext conftest.beam conftest.$ac_ext
28221 rm -f conftest.tmp conftest.lnk
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28224 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28225 case $gl_cv_func_stat_dir_slash in
28226 *no) REPLACE_STAT=1
28228 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28231 case $gl_cv_func_stat_file_slash in
28232 *no) REPLACE_STAT=1
28234 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28238 if test $REPLACE_STAT = 1; then
28247 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28262 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
28269 # Define two additional variables used in the Makefile substitution.
28271 if test "$ac_cv_header_stdbool_h" = yes; then
28274 STDBOOL_H='stdbool.h'
28277 if test -n "$STDBOOL_H"; then
28278 GL_GENERATE_STDBOOL_H_TRUE=
28279 GL_GENERATE_STDBOOL_H_FALSE='#'
28281 GL_GENERATE_STDBOOL_H_TRUE='#'
28282 GL_GENERATE_STDBOOL_H_FALSE=
28286 if test "$ac_cv_type__Bool" = yes; then
28297 if test $gt_cv_c_wchar_t = no; then
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
28302 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28303 if ${gl_cv_decl_null_works+:} false; then :
28304 $as_echo_n "(cached) " >&6
28306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28307 /* end confdefs.h. */
28308 #include <stddef.h>
28309 int test[2 * (sizeof NULL == sizeof (void *)) -1];
28319 if ac_fn_c_try_compile "$LINENO"; then :
28320 gl_cv_decl_null_works=yes
28322 gl_cv_decl_null_works=no
28324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
28327 $as_echo "$gl_cv_decl_null_works" >&6; }
28328 if test $gl_cv_decl_null_works = no; then
28333 if test -n "$STDDEF_H"; then
28334 GL_GENERATE_STDDEF_H_TRUE=
28335 GL_GENERATE_STDDEF_H_FALSE='#'
28337 GL_GENERATE_STDDEF_H_TRUE='#'
28338 GL_GENERATE_STDDEF_H_FALSE=
28341 if test -n "$STDDEF_H"; then
28350 if test $gl_cv_have_include_next = yes; then
28351 gl_cv_next_stddef_h='<'stddef.h'>'
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
28354 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28355 if ${gl_cv_next_stddef_h+:} false; then :
28356 $as_echo_n "(cached) " >&6
28359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28360 /* end confdefs.h. */
28361 #include <stddef.h>
28365 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28366 *) gl_absname_cpp="$ac_cpp" ;;
28371 gl_dirsep_regex='[/\\]'
28374 gl_dirsep_regex='\/'
28377 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28379 gl_header_literal_regex=`echo 'stddef.h' \
28380 | sed -e "$gl_make_literal_regex_sed"`
28381 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28382 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28387 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28388 sed -n "$gl_absolute_header_sed"`'"'
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
28393 $as_echo "$gl_cv_next_stddef_h" >&6; }
28395 NEXT_STDDEF_H=$gl_cv_next_stddef_h
28397 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28399 gl_next_as_first_directive='<'stddef.h'>'
28401 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28402 gl_next_as_first_directive=$gl_cv_next_stddef_h
28404 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
28422 if test $gl_cv_have_include_next = yes; then
28423 gl_cv_next_stdio_h='<'stdio.h'>'
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
28426 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
28427 if ${gl_cv_next_stdio_h+:} false; then :
28428 $as_echo_n "(cached) " >&6
28431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28432 /* end confdefs.h. */
28437 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28438 *) gl_absname_cpp="$ac_cpp" ;;
28443 gl_dirsep_regex='[/\\]'
28446 gl_dirsep_regex='\/'
28449 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28451 gl_header_literal_regex=`echo 'stdio.h' \
28452 | sed -e "$gl_make_literal_regex_sed"`
28453 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28454 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28459 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28460 sed -n "$gl_absolute_header_sed"`'"'
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
28465 $as_echo "$gl_cv_next_stdio_h" >&6; }
28467 NEXT_STDIO_H=$gl_cv_next_stdio_h
28469 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28470 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28471 gl_next_as_first_directive='<'stdio.h'>'
28473 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28474 gl_next_as_first_directive=$gl_cv_next_stdio_h
28476 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
28485 cat >>confdefs.h <<_ACEOF
28486 #define GNULIB_FSCANF 1
28493 cat >>confdefs.h <<_ACEOF
28494 #define GNULIB_SCANF 1
28519 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
28520 REPLACE_STDIO_WRITE_FUNCS=1
28529 gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
28536 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
28537 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28539 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28540 if eval \${$as_gl_Symbol+:} false; then :
28541 $as_echo_n "(cached) " >&6
28543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544 /* end confdefs.h. */
28556 if ac_fn_c_try_compile "$LINENO"; then :
28557 eval "$as_gl_Symbol=yes"
28559 eval "$as_gl_Symbol=no"
28561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28563 eval ac_res=\$$as_gl_Symbol
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28565 $as_echo "$ac_res" >&6; }
28566 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28567 cat >>confdefs.h <<_ACEOF
28568 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28571 eval ac_cv_have_decl_$gl_func=yes
28586 if test $gl_cv_have_include_next = yes; then
28587 gl_cv_next_stdlib_h='<'stdlib.h'>'
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
28590 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
28591 if ${gl_cv_next_stdlib_h+:} false; then :
28592 $as_echo_n "(cached) " >&6
28595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28596 /* end confdefs.h. */
28597 #include <stdlib.h>
28601 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28602 *) gl_absname_cpp="$ac_cpp" ;;
28607 gl_dirsep_regex='[/\\]'
28610 gl_dirsep_regex='\/'
28613 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28615 gl_header_literal_regex=`echo 'stdlib.h' \
28616 | sed -e "$gl_make_literal_regex_sed"`
28617 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28618 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28623 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28624 sed -n "$gl_absolute_header_sed"`'"'
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
28629 $as_echo "$gl_cv_next_stdlib_h" >&6; }
28631 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
28633 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28635 gl_next_as_first_directive='<'stdlib.h'>'
28637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28638 gl_next_as_first_directive=$gl_cv_next_stdlib_h
28640 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
28647 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
28648 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28650 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28651 if eval \${$as_gl_Symbol+:} false; then :
28652 $as_echo_n "(cached) " >&6
28654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28655 /* end confdefs.h. */
28656 #include <stdlib.h>
28657 #if HAVE_SYS_LOADAVG_H
28658 # include <sys/loadavg.h>
28661 # include <random.h>
28673 if ac_fn_c_try_compile "$LINENO"; then :
28674 eval "$as_gl_Symbol=yes"
28676 eval "$as_gl_Symbol=no"
28678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28680 eval ac_res=\$$as_gl_Symbol
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28682 $as_echo "$ac_res" >&6; }
28683 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28684 cat >>confdefs.h <<_ACEOF
28685 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28688 eval ac_cv_have_decl_$gl_func=yes
28698 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
28700 $as_echo_n "checking for working strerror function... " >&6; }
28701 if ${gl_cv_func_working_strerror+:} false; then :
28702 $as_echo_n "(cached) " >&6
28704 if test "$cross_compiling" = yes; then :
28706 # Guess yes on glibc systems.
28707 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
28708 # If we don't know, assume the worst.
28709 *) gl_cv_func_working_strerror="guessing no" ;;
28713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28714 /* end confdefs.h. */
28715 #include <string.h>
28720 if (!*strerror (-2)) return 1;
28725 if ac_fn_c_try_run "$LINENO"; then :
28726 gl_cv_func_working_strerror=yes
28728 gl_cv_func_working_strerror=no
28730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28731 conftest.$ac_objext conftest.beam conftest.$ac_ext
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
28737 $as_echo "$gl_cv_func_working_strerror" >&6; }
28738 case "$gl_cv_func_working_strerror" in
28749 if test $REPLACE_STRERROR = 1; then
28758 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
28763 cat >>confdefs.h <<_ACEOF
28764 #define GNULIB_STRERROR 1
28779 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28785 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
28794 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
28800 if test $ac_cv_header_sys_socket_h != yes; then
28801 for ac_header in winsock2.h
28803 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28804 if test "x$ac_cv_header_winsock2_h" = xyes; then :
28805 cat >>confdefs.h <<_ACEOF
28806 #define HAVE_WINSOCK2_H 1
28814 if test "$ac_cv_header_winsock2_h" = yes; then
28816 UNISTD_H_HAVE_WINSOCK2_H=1
28817 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28824 if test $gl_cond_libtool = false; then
28825 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
28826 gl_libdeps="$gl_libdeps $LIBICONV"
28837 if test $ac_cv_have_decl_strnlen = no; then
28838 HAVE_DECL_STRNLEN=0
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28842 $as_echo_n "checking for working strnlen... " >&6; }
28843 if ${ac_cv_func_strnlen_working+:} false; then :
28844 $as_echo_n "(cached) " >&6
28846 if test "$cross_compiling" = yes; then :
28847 # Guess no on AIX systems, yes otherwise.
28849 aix*) ac_cv_func_strnlen_working=no;;
28850 *) ac_cv_func_strnlen_working=yes;;
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h. */
28855 $ac_includes_default
28861 #define S_LEN (sizeof S - 1)
28863 /* At least one implementation is buggy: that of AIX 4.3 would
28864 give strnlen (S, 1) == 3. */
28867 for (i = 0; i < S_LEN + 1; ++i)
28869 int expected = i <= S_LEN ? i : S_LEN;
28870 if (strnlen (S, i) != expected)
28879 if ac_fn_c_try_run "$LINENO"; then :
28880 ac_cv_func_strnlen_working=yes
28882 ac_cv_func_strnlen_working=no
28884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28885 conftest.$ac_objext conftest.beam conftest.$ac_ext
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28890 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28891 test $ac_cv_func_strnlen_working = no && :
28894 if test $ac_cv_func_strnlen_working = no; then
28899 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
28908 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
28923 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
28928 for ac_func in strtoul
28930 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
28931 if test "x$ac_cv_func_strtoul" = xyes; then :
28932 cat >>confdefs.h <<_ACEOF
28933 #define HAVE_STRTOUL 1
28940 if test $ac_cv_func_strtoul = no; then
28949 gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
28966 if test $gl_cv_have_include_next = yes; then
28967 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
28970 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
28971 if ${gl_cv_next_sys_stat_h+:} false; then :
28972 $as_echo_n "(cached) " >&6
28975 if test $ac_cv_header_sys_stat_h = yes; then
28978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28979 /* end confdefs.h. */
28980 #include <sys/stat.h>
28984 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28985 *) gl_absname_cpp="$ac_cpp" ;;
28990 gl_dirsep_regex='[/\\]'
28993 gl_dirsep_regex='\/'
28996 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28998 gl_header_literal_regex=`echo 'sys/stat.h' \
28999 | sed -e "$gl_make_literal_regex_sed"`
29000 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29001 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29006 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29007 sed -n "$gl_absolute_header_sed"`'"'
29009 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
29015 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
29017 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
29019 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29020 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29021 gl_next_as_first_directive='<'sys/stat.h'>'
29023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29024 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
29026 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
29038 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
29040 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
29044 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
29045 #include <sys/stat.h>
29047 if test "x$ac_cv_type_nlink_t" = xyes; then :
29051 $as_echo "#define nlink_t int" >>confdefs.h
29057 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
29058 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29060 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29061 if eval \${$as_gl_Symbol+:} false; then :
29062 $as_echo_n "(cached) " >&6
29064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29065 /* end confdefs.h. */
29066 #include <sys/stat.h>
29077 if ac_fn_c_try_compile "$LINENO"; then :
29078 eval "$as_gl_Symbol=yes"
29080 eval "$as_gl_Symbol=no"
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29084 eval ac_res=\$$as_gl_Symbol
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29086 $as_echo "$ac_res" >&6; }
29087 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29088 cat >>confdefs.h <<_ACEOF
29089 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29092 eval ac_cv_have_decl_$gl_func=yes
29119 if test $gl_cv_have_include_next = yes; then
29120 gl_cv_next_unistd_h='<'unistd.h'>'
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
29123 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
29124 if ${gl_cv_next_unistd_h+:} false; then :
29125 $as_echo_n "(cached) " >&6
29128 if test $ac_cv_header_unistd_h = yes; then
29131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29132 /* end confdefs.h. */
29133 #include <unistd.h>
29137 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29138 *) gl_absname_cpp="$ac_cpp" ;;
29143 gl_dirsep_regex='[/\\]'
29146 gl_dirsep_regex='\/'
29149 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29151 gl_header_literal_regex=`echo 'unistd.h' \
29152 | sed -e "$gl_make_literal_regex_sed"`
29153 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29154 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29159 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29160 sed -n "$gl_absolute_header_sed"`'"'
29162 gl_cv_next_unistd_h='<'unistd.h'>'
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29168 $as_echo "$gl_cv_next_unistd_h" >&6; }
29170 NEXT_UNISTD_H=$gl_cv_next_unistd_h
29172 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29174 gl_next_as_first_directive='<'unistd.h'>'
29176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29177 gl_next_as_first_directive=$gl_cv_next_unistd_h
29179 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
29184 if test $ac_cv_header_unistd_h = yes; then
29196 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
29197 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29199 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29200 if eval \${$as_gl_Symbol+:} false; then :
29201 $as_echo_n "(cached) " >&6
29203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29204 /* end confdefs.h. */
29207 # include <unistd.h>
29209 /* Some systems declare various items in the wrong headers. */
29210 #if !(defined __GLIBC__ && !defined __UCLIBC__)
29211 # include <fcntl.h>
29212 # include <stdio.h>
29213 # include <stdlib.h>
29214 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
29228 if ac_fn_c_try_compile "$LINENO"; then :
29229 eval "$as_gl_Symbol=yes"
29231 eval "$as_gl_Symbol=no"
29233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29235 eval ac_res=\$$as_gl_Symbol
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29237 $as_echo "$ac_res" >&6; }
29238 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29239 cat >>confdefs.h <<_ACEOF
29240 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29243 eval ac_cv_have_decl_$gl_func=yes
29250 if { test "$HAVE_LIBUNISTRING" != yes \
29255 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29256 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29257 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29258 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29259 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
29269 LIBUNISTRING_UNISTR_H='unistr.h'
29271 LIBUNISTRING_UNISTR_H=
29277 cat >>confdefs.h <<_ACEOF
29278 #define GNULIB_UNISTR_U8_MBTOUCR 1
29284 if { test "$HAVE_LIBUNISTRING" != yes \
29289 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29290 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29291 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29292 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29293 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29303 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
29304 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
29306 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
29307 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
29313 cat >>confdefs.h <<_ACEOF
29314 #define GNULIB_UNISTR_U8_UCTOMB 1
29320 if { test "$HAVE_LIBUNISTRING" != yes \
29325 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29326 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29327 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29328 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29329 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29339 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
29340 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
29342 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
29343 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
29349 if { test "$HAVE_LIBUNISTRING" != yes \
29354 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29355 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29356 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29357 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29358 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29368 LIBUNISTRING_UNITYPES_H='unitypes.h'
29370 LIBUNISTRING_UNITYPES_H=
29376 if { test "$HAVE_LIBUNISTRING" != yes \
29381 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29382 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29383 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29384 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29385 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29395 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
29397 LIBUNISTRING_UNIWIDTH_H=
29403 if { test "$HAVE_LIBUNISTRING" != yes \
29408 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29409 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29410 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29411 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29412 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
29422 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
29423 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
29425 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
29426 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
29432 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
29463 if test $gl_cv_have_include_next = yes; then
29464 gl_cv_next_wchar_h='<'wchar.h'>'
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29467 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
29468 if ${gl_cv_next_wchar_h+:} false; then :
29469 $as_echo_n "(cached) " >&6
29472 if test $ac_cv_header_wchar_h = yes; then
29475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29476 /* end confdefs.h. */
29481 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29482 *) gl_absname_cpp="$ac_cpp" ;;
29487 gl_dirsep_regex='[/\\]'
29490 gl_dirsep_regex='\/'
29493 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29495 gl_header_literal_regex=`echo 'wchar.h' \
29496 | sed -e "$gl_make_literal_regex_sed"`
29497 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29498 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29503 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29504 sed -n "$gl_absolute_header_sed"`'"'
29506 gl_cv_next_wchar_h='<'wchar.h'>'
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29512 $as_echo "$gl_cv_next_wchar_h" >&6; }
29514 NEXT_WCHAR_H=$gl_cv_next_wchar_h
29516 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29518 gl_next_as_first_directive='<'wchar.h'>'
29520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29521 gl_next_as_first_directive=$gl_cv_next_wchar_h
29523 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
29528 if test $ac_cv_header_wchar_h = yes; then
29538 if test $gt_cv_c_wint_t = yes; then
29546 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
29547 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29549 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29550 if eval \${$as_gl_Symbol+:} false; then :
29551 $as_echo_n "(cached) " >&6
29553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29554 /* end confdefs.h. */
29556 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29558 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29559 included before <wchar.h>. */
29560 #if !(defined __GLIBC__ && !defined __UCLIBC__)
29561 # include <stddef.h>
29562 # include <stdio.h>
29576 if ac_fn_c_try_compile "$LINENO"; then :
29577 eval "$as_gl_Symbol=yes"
29579 eval "$as_gl_Symbol=no"
29581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29583 eval ac_res=\$$as_gl_Symbol
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29585 $as_echo "$ac_res" >&6; }
29586 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29587 cat >>confdefs.h <<_ACEOF
29588 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29591 eval ac_cv_have_decl_$gl_func=yes
29601 if test $ac_cv_func_iswcntrl = yes; then
29609 if test $gt_cv_c_wint_t = yes; then
29625 if test $gl_cv_have_include_next = yes; then
29626 gl_cv_next_wctype_h='<'wctype.h'>'
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
29629 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
29630 if ${gl_cv_next_wctype_h+:} false; then :
29631 $as_echo_n "(cached) " >&6
29634 if test $ac_cv_header_wctype_h = yes; then
29637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29638 /* end confdefs.h. */
29639 #include <wctype.h>
29643 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29644 *) gl_absname_cpp="$ac_cpp" ;;
29649 gl_dirsep_regex='[/\\]'
29652 gl_dirsep_regex='\/'
29655 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29657 gl_header_literal_regex=`echo 'wctype.h' \
29658 | sed -e "$gl_make_literal_regex_sed"`
29659 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29660 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29665 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29666 sed -n "$gl_absolute_header_sed"`'"'
29668 gl_cv_next_wctype_h='<'wctype.h'>'
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
29674 $as_echo "$gl_cv_next_wctype_h" >&6; }
29676 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
29678 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29680 gl_next_as_first_directive='<'wctype.h'>'
29682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29683 gl_next_as_first_directive=$gl_cv_next_wctype_h
29685 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
29690 if test $ac_cv_header_wctype_h = yes; then
29691 if test $ac_cv_func_iswcntrl = yes; then
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
29693 $as_echo_n "checking whether iswcntrl works... " >&6; }
29694 if ${gl_cv_func_iswcntrl_works+:} false; then :
29695 $as_echo_n "(cached) " >&6
29698 if test "$cross_compiling" = yes; then :
29699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29700 /* end confdefs.h. */
29701 #include <stdlib.h>
29702 #if __GNU_LIBRARY__ == 1
29703 Linux libc5 i18n is broken.
29713 if ac_fn_c_try_compile "$LINENO"; then :
29714 gl_cv_func_iswcntrl_works="guessing yes"
29716 gl_cv_func_iswcntrl_works="guessing no"
29718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29722 /* end confdefs.h. */
29724 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29725 included before <wchar.h>.
29726 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29727 must be included before <wchar.h>. */
29728 #include <stddef.h>
29732 #include <wctype.h>
29733 int main () { return iswprint ('x') == 0; }
29736 if ac_fn_c_try_run "$LINENO"; then :
29737 gl_cv_func_iswcntrl_works=yes
29739 gl_cv_func_iswcntrl_works=no
29741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29742 conftest.$ac_objext conftest.beam conftest.$ac_ext
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
29748 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
29756 case "$gl_cv_func_iswcntrl_works" in
29757 *yes) REPLACE_ISWCNTRL=0 ;;
29758 *) REPLACE_ISWCNTRL=1 ;;
29762 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
29766 if test $REPLACE_ISWCNTRL = 1; then
29769 for ac_func in towlower
29771 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
29772 if test "x$ac_cv_func_towlower" = xyes; then :
29773 cat >>confdefs.h <<_ACEOF
29774 #define HAVE_TOWLOWER 1
29780 if test $ac_cv_func_towlower = yes; then
29783 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29784 included before <wchar.h>.
29785 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29786 must be included before <wchar.h>. */
29787 #include <stddef.h>
29792 # include <wctype.h>
29796 if test "x$ac_cv_have_decl_towlower" = xyes; then :
29802 cat >>confdefs.h <<_ACEOF
29803 #define HAVE_DECL_TOWLOWER $ac_have_decl
29806 if test $ac_cv_have_decl_towlower = yes; then
29815 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
29820 $as_echo_n "checking for wctype_t... " >&6; }
29821 if ${gl_cv_type_wctype_t+:} false; then :
29822 $as_echo_n "(cached) " >&6
29824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29825 /* end confdefs.h. */
29826 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29827 included before <wchar.h>.
29828 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29829 must be included before <wchar.h>. */
29830 #include <stddef.h>
29835 # include <wctype.h>
29847 if ac_fn_c_try_compile "$LINENO"; then :
29848 gl_cv_type_wctype_t=yes
29850 gl_cv_type_wctype_t=no
29852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
29856 $as_echo "$gl_cv_type_wctype_t" >&6; }
29857 if test $gl_cv_type_wctype_t = no; then
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
29862 $as_echo_n "checking for wctrans_t... " >&6; }
29863 if ${gl_cv_type_wctrans_t+:} false; then :
29864 $as_echo_n "(cached) " >&6
29866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29867 /* end confdefs.h. */
29868 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29869 included before <wchar.h>.
29870 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29871 must be included before <wchar.h>. */
29872 #include <stddef.h>
29876 #include <wctype.h>
29887 if ac_fn_c_try_compile "$LINENO"; then :
29888 gl_cv_type_wctrans_t=yes
29890 gl_cv_type_wctrans_t=no
29892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
29896 $as_echo "$gl_cv_type_wctrans_t" >&6; }
29897 if test $gl_cv_type_wctrans_t = no; then
29902 for gl_func in wctype iswctype wctrans towctrans ; do
29903 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29905 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29906 if eval \${$as_gl_Symbol+:} false; then :
29907 $as_echo_n "(cached) " >&6
29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910 /* end confdefs.h. */
29912 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29914 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29915 included before <wchar.h>. */
29916 #if !(defined __GLIBC__ && !defined __UCLIBC__)
29917 # include <stddef.h>
29918 # include <stdio.h>
29920 # include <wchar.h>
29922 #include <wctype.h>
29933 if ac_fn_c_try_compile "$LINENO"; then :
29934 eval "$as_gl_Symbol=yes"
29936 eval "$as_gl_Symbol=no"
29938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29940 eval ac_res=\$$as_gl_Symbol
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29942 $as_echo "$ac_res" >&6; }
29943 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29944 cat >>confdefs.h <<_ACEOF
29945 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29948 eval ac_cv_have_decl_$gl_func=yes
29964 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
29965 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29966 #include <string.h>
29967 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29969 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
29970 before <wchar.h>. */
29971 #include <stddef.h>
29977 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
29983 cat >>confdefs.h <<_ACEOF
29984 #define HAVE_DECL_WCWIDTH $ac_have_decl
29987 if test $ac_cv_have_decl_wcwidth != yes; then
29988 HAVE_DECL_WCWIDTH=0
29991 if test $ac_cv_func_wcwidth = yes; then
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
29994 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
29995 if ${gl_cv_func_wcwidth_works+:} false; then :
29996 $as_echo_n "(cached) " >&6
29999 if test "$cross_compiling" = yes; then :
30002 # Guess yes on glibc and AIX 7 systems.
30003 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
30004 *) gl_cv_func_wcwidth_works="guessing no";;
30008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30009 /* end confdefs.h. */
30011 #include <locale.h>
30012 /* AIX 3.2.5 declares wcwidth in <string.h>. */
30013 #include <string.h>
30014 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
30016 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
30017 before <wchar.h>. */
30018 #include <stddef.h>
30022 #if !HAVE_DECL_WCWIDTH
30024 # ifdef __cplusplus
30032 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
30034 if (wcwidth (0x0301) > 0)
30036 if (wcwidth (0x05B0) > 0)
30038 if (wcwidth (0x200B) > 0)
30044 if ac_fn_c_try_run "$LINENO"; then :
30045 gl_cv_func_wcwidth_works=yes
30047 gl_cv_func_wcwidth_works=no
30049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30050 conftest.$ac_objext conftest.beam conftest.$ac_ext
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
30056 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
30057 case "$gl_cv_func_wcwidth_works" in
30059 *no) REPLACE_WCWIDTH=1 ;;
30065 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
30074 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
30088 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
30092 # End of code from modules
30113 gl_source_base='tests'
30114 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
30116 gl_module_indicator_condition=$gltests_WITNESS
30126 LIBGRT_LIBDEPS="$gl_libdeps"
30128 LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
30131 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
30132 if test "x$ac_cv_type_size_t" = xyes; then :
30136 cat >>confdefs.h <<_ACEOF
30137 #define size_t unsigned int
30142 for ac_func in setlocale
30144 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
30145 if test "x$ac_cv_func_setlocale" = xyes; then :
30146 cat >>confdefs.h <<_ACEOF
30147 #define HAVE_SETLOCALE 1
30156 if test "$enable_shared" = yes; then
30158 mingw* | cygwin*) is_woe32dll=yes ;;
30159 *) is_woe32dll=no ;;
30164 if test $is_woe32dll = yes; then
30172 if test $is_woe32dll = yes; then
30174 $as_echo "#define WOE32DLL 1" >>confdefs.h
30178 INTL_EXPORTS_FLAGS=
30179 if test "$USER_LABEL_PREFIX" = _; then
30180 INTL_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $INTL_EXPORTS_FLAGS"
30184 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
30185 # Extract the first word of "perl", so it can be a program name with args.
30186 set dummy perl; ac_word=$2
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30188 $as_echo_n "checking for $ac_word... " >&6; }
30189 if ${ac_cv_path_PERL+:} false; then :
30190 $as_echo_n "(cached) " >&6
30194 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30198 for as_dir in $PATH
30201 test -z "$as_dir" && as_dir=.
30202 for ac_exec_ext in '' $ac_executable_extensions; do
30203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30204 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30212 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
30216 PERL=$ac_cv_path_PERL
30217 if test -n "$PERL"; then
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30219 $as_echo "$PERL" >&6; }
30221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30222 $as_echo "no" >&6; }
30227 CROSS_COMPILING=$cross_compiling
30233 if test "$CXX_CHOICE" = no; then
30236 if test -z "$CXX"; then
30237 if test -n "$CCC"; then
30240 if test -n "$ac_tool_prefix"; then
30241 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
30243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30246 $as_echo_n "checking for $ac_word... " >&6; }
30247 if ${ac_cv_prog_CXX+:} false; then :
30248 $as_echo_n "(cached) " >&6
30250 if test -n "$CXX"; then
30251 ac_cv_prog_CXX="$CXX" # Let the user override the test.
30253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30254 for as_dir in $PATH
30257 test -z "$as_dir" && as_dir=.
30258 for ac_exec_ext in '' $ac_executable_extensions; do
30259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30260 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30270 CXX=$ac_cv_prog_CXX
30271 if test -n "$CXX"; then
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
30273 $as_echo "$CXX" >&6; }
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30276 $as_echo "no" >&6; }
30280 test -n "$CXX" && break
30283 if test -z "$CXX"; then
30285 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
30287 # Extract the first word of "$ac_prog", so it can be a program name with args.
30288 set dummy $ac_prog; ac_word=$2
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30290 $as_echo_n "checking for $ac_word... " >&6; }
30291 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
30292 $as_echo_n "(cached) " >&6
30294 if test -n "$ac_ct_CXX"; then
30295 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
30297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30298 for as_dir in $PATH
30301 test -z "$as_dir" && as_dir=.
30302 for ac_exec_ext in '' $ac_executable_extensions; do
30303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30304 ac_cv_prog_ac_ct_CXX="$ac_prog"
30305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30314 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
30315 if test -n "$ac_ct_CXX"; then
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
30317 $as_echo "$ac_ct_CXX" >&6; }
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30320 $as_echo "no" >&6; }
30324 test -n "$ac_ct_CXX" && break
30327 if test "x$ac_ct_CXX" = x; then
30330 case $cross_compiling:$ac_tool_warned in
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30334 ac_tool_warned=yes ;;
30342 if test "$CXX" != no; then
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
30344 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
30346 ac_cpp='$CXXCPP $CPPFLAGS'
30347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30353 echo 'int main () { return 0; }' > conftest.$ac_ext
30354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30355 (eval $ac_link) 2>&5
30357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30358 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30359 gl_cv_prog_ansicxx_works=yes
30360 if (./conftest; exit) 2>/dev/null; then
30361 gl_cv_prog_ansicxx_cross=no
30363 gl_cv_prog_ansicxx_cross=yes
30366 gl_cv_prog_ansicxx_works=no
30370 ac_cpp='$CPP $CPPFLAGS'
30371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
30376 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
30377 if test $gl_cv_prog_ansicxx_works = no; then
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
30381 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
30383 ac_cpp='$CXXCPP $CPPFLAGS'
30384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30388 cat <<EOF > conftest.$ac_ext
30389 #include <iostream>
30390 namespace test { using namespace std; }
30392 int main () { return 0; }
30394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30395 (eval $ac_link) 2>&5
30397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30398 test $ac_status = 0; } && test -s conftest$ac_exeext; then
30399 gl_cv_prog_ansicxx_namespaces=yes
30401 gl_cv_prog_ansicxx_namespaces=no
30405 ac_cpp='$CPP $CPPFLAGS'
30406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
30411 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
30412 if test $gl_cv_prog_ansicxx_namespaces = no; then
30420 if test "$CXX" != no; then
30429 if test "$CXX" != no; then
30431 depcc="$CXX" am_compiler_list=
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30434 $as_echo_n "checking dependency style of $depcc... " >&6; }
30435 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
30436 $as_echo_n "(cached) " >&6
30438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30439 # We make a subdir and do the tests there. Otherwise we can end up
30440 # making bogus files that we don't know about and never remove. For
30441 # instance it was reported that on HP-UX the gcc test will end up
30442 # making a dummy file named 'D' -- because '-MD' means "put the output
30444 rm -rf conftest.dir
30446 # Copy depcomp to subdir because otherwise we won't find it if we're
30447 # using a relative directory.
30448 cp "$am_depcomp" conftest.dir
30450 # We will build objects and dependencies in a subdirectory because
30451 # it helps to detect inapplicable dependency modes. For instance
30452 # both Tru64's cc and ICC support -MD to output dependencies as a
30453 # side effect of compilation, but ICC will put the dependencies in
30454 # the current directory while Tru64 will put them in the object
30458 am_cv_CXX_dependencies_compiler_type=none
30459 if test "$am_compiler_list" = ""; then
30460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30462 am__universal=false
30463 case " $depcc " in #(
30464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
30467 for depmode in $am_compiler_list; do
30468 # Setup a source with many dependencies, because some compilers
30469 # like to wrap large dependency lists on column 80 (with \), and
30470 # we should not choose a depcomp mode which is confused by this.
30472 # We need to recreate these files for each test, as the compiler may
30473 # overwrite some of them when testing with obscure command lines.
30474 # This happens at least with the AIX C compiler.
30476 for i in 1 2 3 4 5 6; do
30477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
30478 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
30479 # Solaris 10 /bin/sh.
30480 echo '/* dummy */' > sub/conftst$i.h
30482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30484 # We check with '-c' and '-o' for the sake of the "dashmstdout"
30485 # mode. It turns out that the SunPro C++ compiler does not properly
30486 # handle '-M -o', and we need to detect this. Also, some Intel
30487 # versions had trouble with output in subdirs.
30488 am__obj=sub/conftest.${OBJEXT-o}
30489 am__minus_obj="-o $am__obj"
30492 # This depmode causes a compiler race in universal mode.
30493 test "$am__universal" = false || continue
30496 # After this tag, mechanisms are not by side-effect, so they'll
30497 # only be used when explicitly requested.
30498 if test "x$enable_dependency_tracking" = xyes; then
30504 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
30505 # This compiler won't grok '-c -o', but also, the minuso test has
30506 # not run yet. These depmodes are late enough in the game, and
30507 # so weak that their functioning should not be impacted.
30508 am__obj=conftest.${OBJEXT-o}
30513 if depmode=$depmode \
30514 source=sub/conftest.c object=$am__obj \
30515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
30516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
30517 >/dev/null 2>conftest.err &&
30518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
30519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
30520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
30521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
30522 # icc doesn't choke on unknown options, it will just issue warnings
30523 # or remarks (even with -Werror). So we grep stderr for any message
30524 # that says an option was ignored or not supported.
30525 # When given -MP, icc 7.0 and 7.1 complain thusly:
30526 # icc: Command line warning: ignoring option '-M'; no argument required
30527 # The diagnosis changed in icc 8.0:
30528 # icc: Command line remark: option '-MP' not supported
30529 if (grep 'ignoring option' conftest.err ||
30530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
30531 am_cv_CXX_dependencies_compiler_type=$depmode
30538 rm -rf conftest.dir
30540 am_cv_CXX_dependencies_compiler_type=none
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
30545 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
30546 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
30549 test "x$enable_dependency_tracking" != xno \
30550 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
30551 am__fastdepCXX_TRUE=
30552 am__fastdepCXX_FALSE='#'
30554 am__fastdepCXX_TRUE='#'
30555 am__fastdepCXX_FALSE=
30561 am__fastdepCXX_TRUE=
30562 am__fastdepCXX_FALSE='#'
30564 am__fastdepCXX_TRUE='#'
30565 am__fastdepCXX_FALSE=
30572 if test $gl_threads_api = posix; then
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
30574 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
30575 if ${ac_cv_lib_rt_sched_yield+:} false; then :
30576 $as_echo_n "(cached) " >&6
30578 ac_check_lib_save_LIBS=$LIBS
30580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30581 /* end confdefs.h. */
30583 /* Override any GCC internal prototype to avoid an error.
30584 Use char because int might match the return type of a GCC
30585 builtin and then its argument prototype would still apply. */
30589 char sched_yield ();
30593 return sched_yield ();
30598 if ac_fn_c_try_link "$LINENO"; then :
30599 ac_cv_lib_rt_sched_yield=yes
30601 ac_cv_lib_rt_sched_yield=no
30603 rm -f core conftest.err conftest.$ac_objext \
30604 conftest$ac_exeext conftest.$ac_ext
30605 LIBS=$ac_check_lib_save_LIBS
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
30608 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
30609 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
30613 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
30614 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
30615 $as_echo_n "(cached) " >&6
30617 ac_check_lib_save_LIBS=$LIBS
30618 LIBS="-lposix4 $LIBS"
30619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620 /* end confdefs.h. */
30622 /* Override any GCC internal prototype to avoid an error.
30623 Use char because int might match the return type of a GCC
30624 builtin and then its argument prototype would still apply. */
30628 char sched_yield ();
30632 return sched_yield ();
30637 if ac_fn_c_try_link "$LINENO"; then :
30638 ac_cv_lib_posix4_sched_yield=yes
30640 ac_cv_lib_posix4_sched_yield=no
30642 rm -f core conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
30647 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
30648 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
30657 # Check whether --enable-libasprintf was given.
30658 if test "${enable_libasprintf+set}" = set; then :
30659 enableval=$enable_libasprintf; if test "$enableval" != no; then
30660 SUBDIR_libasprintf=libasprintf
30662 SUBDIR_libasprintf=
30666 SUBDIR_libasprintf=libasprintf
30669 if test "$CXX" = ":"; then
30670 SUBDIR_libasprintf=
30672 if test -n "$SUBDIR_libasprintf"; then
30673 ENABLE_LIBASPRINTF_TRUE=
30674 ENABLE_LIBASPRINTF_FALSE='#'
30676 ENABLE_LIBASPRINTF_TRUE='#'
30677 ENABLE_LIBASPRINTF_FALSE=
30683 subdirs="$subdirs libasprintf"
30686 ac_config_files="$ac_config_files Makefile"
30689 ac_config_files="$ac_config_files doc/Makefile"
30692 ac_config_files="$ac_config_files intl/Makefile"
30695 ac_config_files="$ac_config_files intl-java/Makefile"
30698 ac_config_files="$ac_config_files intl-csharp/Makefile"
30701 ac_config_files="$ac_config_files gnulib-lib/Makefile"
30704 ac_config_files="$ac_config_files src/Makefile"
30706 ac_config_files="$ac_config_files src/gettext.sh"
30709 ac_config_files="$ac_config_files po/Makefile.in"
30712 ac_config_files="$ac_config_files man/Makefile"
30714 ac_config_files="$ac_config_files man/x-to-1"
30717 ac_config_files="$ac_config_files m4/Makefile"
30720 ac_config_files="$ac_config_files tests/Makefile"
30723 cat >confcache <<\_ACEOF
30724 # This file is a shell script that caches the results of configure
30725 # tests run on this system so they can be shared between configure
30726 # scripts and configure runs, see configure's option --config-cache.
30727 # It is not useful on other systems. If it contains results you don't
30728 # want to keep, you may remove or edit it.
30730 # config.status only pays attention to the cache file if you give it
30731 # the --recheck option to rerun configure.
30733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30735 # following values.
30739 # The following way of writing the cache mishandles newlines in values,
30740 # but we know of no workaround that is simple, portable, and efficient.
30741 # So, we kill variables containing newlines.
30742 # Ultrix sh set writes to stderr and can't be redirected directly,
30743 # and sets the high bit in the cache file unless we assign to the vars.
30745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30746 eval ac_val=\$$ac_var
30750 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30754 _ | IFS | as_nl) ;; #(
30755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30756 *) { eval $ac_var=; unset $ac_var;} ;;
30762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30763 *${as_nl}ac_space=\ *)
30764 # `set' does not quote correctly, so add quotes: double-quote
30765 # substitution turns \\\\ into \\, and sed turns \\ into \.
30768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30771 # `set' quotes correctly as required by POSIX, so do not add quotes.
30772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30786 if test -w "$cache_file"; then
30787 if test "x$cache_file" != "x/dev/null"; then
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30789 $as_echo "$as_me: updating cache $cache_file" >&6;}
30790 if test ! -f "$cache_file" || test -h "$cache_file"; then
30791 cat confcache >"$cache_file"
30793 case $cache_file in #(
30795 mv -f confcache "$cache_file"$$ &&
30796 mv -f "$cache_file"$$ "$cache_file" ;; #(
30798 mv -f confcache "$cache_file" ;;
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30804 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30810 # Let make expand exec_prefix.
30811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30813 DEFS=-DHAVE_CONFIG_H
30818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30819 # 1. Remove the extension, and $U if already installed.
30820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30821 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30823 # will be set to the directory where LIBOBJS objects are built.
30824 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30825 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30827 LIBOBJS=$ac_libobjs
30829 LTLIBOBJS=$ac_ltlibobjs
30832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30833 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30834 if test -n "$am_sleep_pid"; then
30835 # Hide warnings about reused PIDs.
30836 wait $am_sleep_pid 2>/dev/null
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30839 $as_echo "done" >&6; }
30840 if test -n "$EXEEXT"; then
30842 am__EXEEXT_FALSE='#'
30844 am__EXEEXT_TRUE='#'
30848 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30849 as_fn_error $? "conditional \"AMDEP\" was never defined.
30850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30853 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30856 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
30857 as_fn_error $? "conditional \"WOE32\" was never defined.
30858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30860 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
30861 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
30862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30864 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
30865 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
30866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30868 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
30869 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
30870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30872 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
30873 as_fn_error $? "conditional \"ANSICXX\" was never defined.
30874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30876 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30877 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30880 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30881 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30884 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
30885 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
30886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30888 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
30889 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
30890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30892 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
30893 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
30894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30896 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30897 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30900 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
30901 as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
30902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30904 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
30905 as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
30906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30908 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
30909 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
30910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30912 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30913 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30916 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
30917 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
30918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30920 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
30921 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
30922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30924 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
30925 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
30926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30928 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
30929 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
30930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30935 if test -n "$gl_LIBOBJS"; then
30936 # Remove the extension.
30937 sed_drop_objext='s/\.o$//;s/\.obj$//'
30938 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30939 gl_libobjs="$gl_libobjs $i.$ac_objext"
30940 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
30943 gl_LIBOBJS=$gl_libobjs
30945 gl_LTLIBOBJS=$gl_ltlibobjs
30951 if test -n "$gltests_LIBOBJS"; then
30952 # Remove the extension.
30953 sed_drop_objext='s/\.o$//;s/\.obj$//'
30954 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30955 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
30956 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
30959 gltests_LIBOBJS=$gltests_libobjs
30961 gltests_LTLIBOBJS=$gltests_ltlibobjs
30964 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
30965 as_fn_error $? "conditional \"WOE32DLL\" was never defined.
30966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30968 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
30969 as_fn_error $? "conditional \"ANSICXX\" was never defined.
30970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30972 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30973 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30976 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30977 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30980 if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then
30981 as_fn_error $? "conditional \"ENABLE_LIBASPRINTF\" was never defined.
30982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30985 : "${CONFIG_STATUS=./config.status}"
30987 ac_clean_files_save=$ac_clean_files
30988 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30990 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30992 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30994 # Generated by $as_me.
30995 # Run this file to recreate the current configuration.
30996 # Compiler output produced by configure, useful for debugging
30997 # configure, is in config.log if it exists.
31000 ac_cs_recheck=false
31003 SHELL=\${CONFIG_SHELL-$SHELL}
31006 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31007 ## -------------------- ##
31008 ## M4sh Initialization. ##
31009 ## -------------------- ##
31011 # Be more Bourne compatible
31012 DUALCASE=1; export DUALCASE # for MKS sh
31013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31017 # is contrary to our usage. Disable this feature.
31018 alias -g '${1+"$@"}'='"$@"'
31019 setopt NO_GLOB_SUBST
31021 case `(set -o) 2>/dev/null` in #(
31033 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31034 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31037 # Prefer a ksh shell builtin over an external printf program on Solaris,
31038 # but without wasting forks for bash or zsh.
31039 if test -z "$BASH_VERSION$ZSH_VERSION" \
31040 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31041 as_echo='print -r --'
31042 as_echo_n='print -rn --'
31043 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31044 as_echo='printf %s\n'
31045 as_echo_n='printf %s'
31047 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31048 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31049 as_echo_n='/usr/ucb/echo -n'
31051 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31052 as_echo_n_body='eval
31056 expr "X$arg" : "X\\(.*\\)$as_nl";
31057 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31059 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31061 export as_echo_n_body
31062 as_echo_n='sh -c $as_echo_n_body as_echo'
31064 export as_echo_body
31065 as_echo='sh -c $as_echo_body as_echo'
31068 # The user is always right.
31069 if test "${PATH_SEPARATOR+set}" != set; then
31071 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31072 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31079 # We need space, tab and new line, in precisely that order. Quoting is
31080 # there to prevent editors from complaining about space-tab.
31081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31082 # splitting by setting IFS to empty value.)
31085 # Find who we are. Look in the path if we contain no directory separator.
31088 *[\\/]* ) as_myself=$0 ;;
31089 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31090 for as_dir in $PATH
31093 test -z "$as_dir" && as_dir=.
31094 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31100 # We did not find ourselves, most probably we were run as `sh COMMAND'
31101 # in which case we are not to be found in the path.
31102 if test "x$as_myself" = x; then
31105 if test ! -f "$as_myself"; then
31106 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31110 # Unset variables that we do not need and which cause bugs (e.g. in
31111 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31112 # suppresses any "Segmentation fault" message there. '((' could
31113 # trigger a bug in pdksh 5.2.14.
31114 for as_var in BASH_ENV ENV MAIL MAILPATH
31115 do eval test x\${$as_var+set} = xset \
31116 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31129 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31132 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31133 # ----------------------------------------
31134 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31135 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31136 # script with STATUS, using 1 if that was 0.
31139 as_status=$1; test $as_status -eq 0 && as_status=1
31141 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31142 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31144 $as_echo "$as_me: error: $2" >&2
31145 as_fn_exit $as_status
31149 # as_fn_set_status STATUS
31150 # -----------------------
31151 # Set $? to STATUS, without forking.
31152 as_fn_set_status ()
31155 } # as_fn_set_status
31157 # as_fn_exit STATUS
31158 # -----------------
31159 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31163 as_fn_set_status $1
31169 # Portably unset VAR.
31172 { eval $1=; unset $1;}
31174 as_unset=as_fn_unset
31175 # as_fn_append VAR VALUE
31176 # ----------------------
31177 # Append the text in VALUE to the end of the definition contained in VAR. Take
31178 # advantage of any shell optimizations that allow amortized linear growth over
31179 # repeated appends, instead of the typical quadratic growth present in naive
31181 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31182 eval 'as_fn_append ()
31193 # as_fn_arith ARG...
31194 # ------------------
31195 # Perform arithmetic evaluation on the ARGs, and store the result in the
31196 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31197 # must be portable across $(()) and expr.
31198 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31199 eval 'as_fn_arith ()
31206 as_val=`expr "$@" || test $? -eq 1`
31211 if expr a : '\(a\)' >/dev/null 2>&1 &&
31212 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31218 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31219 as_basename=basename
31224 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31230 as_me=`$as_basename -- "$0" ||
31231 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31232 X"$0" : 'X\(//\)$' \| \
31233 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31235 sed '/^.*\/\([^/][^/]*\)\/*$/{
31249 # Avoid depending upon Character Ranges.
31250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31253 as_cr_digits='0123456789'
31254 as_cr_alnum=$as_cr_Letters$as_cr_digits
31256 ECHO_C= ECHO_N= ECHO_T=
31257 case `echo -n x` in #(((((
31259 case `echo 'xy\c'` in
31260 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31262 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31269 rm -f conf$$ conf$$.exe conf$$.file
31270 if test -d conf$$.dir; then
31271 rm -f conf$$.dir/conf$$.file
31274 mkdir conf$$.dir 2>/dev/null
31276 if (echo >conf$$.file) 2>/dev/null; then
31277 if ln -s conf$$.file conf$$ 2>/dev/null; then
31279 # ... but there are two gotchas:
31280 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31281 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31282 # In both cases, we have to default to `cp -pR'.
31283 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31285 elif ln conf$$.file conf$$ 2>/dev/null; then
31293 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31294 rmdir conf$$.dir 2>/dev/null
31299 # Create "$as_dir" as a directory, including parents if necessary.
31304 -*) as_dir=./$as_dir;;
31306 test -d "$as_dir" || eval $as_mkdir_p || {
31310 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31311 *) as_qdir=$as_dir;;
31313 as_dirs="'$as_qdir' $as_dirs"
31314 as_dir=`$as_dirname -- "$as_dir" ||
31315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31316 X"$as_dir" : 'X\(//\)[^/]' \| \
31317 X"$as_dir" : 'X\(//\)$' \| \
31318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31319 $as_echo X"$as_dir" |
31320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31324 /^X\(\/\/\)[^/].*/{
31337 test -d "$as_dir" && break
31339 test -z "$as_dirs" || eval "mkdir $as_dirs"
31340 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31344 if mkdir -p . 2>/dev/null; then
31345 as_mkdir_p='mkdir -p "$as_dir"'
31347 test -d ./-p && rmdir ./-p
31352 # as_fn_executable_p FILE
31353 # -----------------------
31354 # Test if FILE is an executable regular file.
31355 as_fn_executable_p ()
31357 test -f "$1" && test -x "$1"
31358 } # as_fn_executable_p
31359 as_test_x='test -x'
31360 as_executable_p=as_fn_executable_p
31362 # Sed expression to map a string onto a valid CPP name.
31363 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31365 # Sed expression to map a string onto a valid variable name.
31366 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31370 ## ----------------------------------- ##
31371 ## Main body of $CONFIG_STATUS script. ##
31372 ## ----------------------------------- ##
31374 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31377 # Save the log message, to keep $0 and so on meaningful, and to
31378 # report actual input values of CONFIG_FILES etc. instead of their
31379 # values after options handling.
31381 This file was extended by gettext-runtime $as_me, which was
31382 generated by GNU Autoconf 2.69. Invocation command line was
31384 CONFIG_FILES = $CONFIG_FILES
31385 CONFIG_HEADERS = $CONFIG_HEADERS
31386 CONFIG_LINKS = $CONFIG_LINKS
31387 CONFIG_COMMANDS = $CONFIG_COMMANDS
31390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31395 case $ac_config_files in *"
31396 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31399 case $ac_config_headers in *"
31400 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31405 # Files that config.status was made for.
31406 config_files="$ac_config_files"
31407 config_headers="$ac_config_headers"
31408 config_commands="$ac_config_commands"
31412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31414 \`$as_me' instantiates files and other configuration actions
31415 from templates according to the current configuration. Unless the files
31416 and actions are specified as TAGs, all are instantiated by default.
31418 Usage: $0 [OPTION]... [TAG]...
31420 -h, --help print this help, then exit
31421 -V, --version print version number and configuration settings, then exit
31422 --config print configuration, then exit
31423 -q, --quiet, --silent
31424 do not print progress messages
31425 -d, --debug don't remove temporary files
31426 --recheck update $as_me by reconfiguring in the same conditions
31427 --file=FILE[:TEMPLATE]
31428 instantiate the configuration file FILE
31429 --header=FILE[:TEMPLATE]
31430 instantiate the configuration header FILE
31432 Configuration files:
31435 Configuration headers:
31438 Configuration commands:
31441 Report bugs to the package provider."
31444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31445 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31447 gettext-runtime config.status
31448 configured by $0, generated by GNU Autoconf 2.69,
31449 with options \\"\$ac_cs_config\\"
31451 Copyright (C) 2012 Free Software Foundation, Inc.
31452 This config.status script is free software; the Free Software Foundation
31453 gives unlimited permission to copy, distribute and modify it."
31460 test -n "\$AWK" || AWK=awk
31463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31464 # The default lists apply if the user does not specify any file.
31470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31471 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31487 # Handling of the options.
31488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31491 $as_echo "$ac_cs_version"; exit ;;
31492 --config | --confi | --conf | --con | --co | --c )
31493 $as_echo "$ac_cs_config"; exit ;;
31494 --debug | --debu | --deb | --de | --d | -d )
31496 --file | --fil | --fi | --f )
31499 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31500 '') as_fn_error $? "missing file argument" ;;
31502 as_fn_append CONFIG_FILES " '$ac_optarg'"
31503 ac_need_defaults=false;;
31504 --header | --heade | --head | --hea )
31507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31509 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31510 ac_need_defaults=false;;
31512 # Conflict between --help and --header
31513 as_fn_error $? "ambiguous option: \`$1'
31514 Try \`$0 --help' for more information.";;
31515 --help | --hel | -h )
31516 $as_echo "$ac_cs_usage"; exit ;;
31517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31518 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31521 # This is an error.
31522 -*) as_fn_error $? "unrecognized option: \`$1'
31523 Try \`$0 --help' for more information." ;;
31525 *) as_fn_append ac_config_targets " $1"
31526 ac_need_defaults=false ;;
31532 ac_configure_extra_args=
31534 if $ac_cs_silent; then
31536 ac_configure_extra_args="$ac_configure_extra_args --silent"
31540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31541 if \$ac_cs_recheck; then
31542 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31544 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31545 CONFIG_SHELL='$SHELL'
31546 export CONFIG_SHELL
31551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31556 ## Running $as_me. ##
31562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31566 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31569 # The HP-UX ksh and POSIX shell print the target directory to stdout
31570 # if CDPATH is set.
31571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31573 sed_quote_subst='$sed_quote_subst'
31574 double_quote_subst='$double_quote_subst'
31575 delay_variable_subst='$delay_variable_subst'
31576 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31577 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31578 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
31579 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31580 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31581 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31582 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31583 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31584 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31585 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31586 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31587 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31588 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31589 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31590 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31591 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31592 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31593 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31594 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31595 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31596 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31597 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31598 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31599 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31600 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31601 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31602 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31603 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31604 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31605 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31606 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31607 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31608 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31609 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31610 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31611 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31612 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31613 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31614 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31615 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31616 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31617 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31618 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31619 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31620 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31621 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31622 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31623 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31624 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31625 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31626 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31627 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31628 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31629 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31630 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31631 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31632 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31633 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"`'
31634 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31635 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31636 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31637 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31638 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31639 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31640 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31641 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31642 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31643 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31644 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31645 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31646 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31647 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31648 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31649 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31650 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31651 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31652 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31653 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31654 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31655 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31656 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31657 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31658 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31659 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31660 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31661 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31662 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31663 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31664 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31665 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31666 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31667 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31668 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31669 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31670 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31671 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31672 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31673 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31674 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31675 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31676 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31677 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31678 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31679 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31680 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31681 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31682 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31683 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31684 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31685 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31686 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31687 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31688 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31689 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31690 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31691 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31692 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31693 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31694 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31695 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31696 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31697 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31698 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31699 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31700 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31701 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31702 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31703 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31704 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31705 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31706 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31707 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
31708 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
31709 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
31710 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
31711 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
31712 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
31713 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
31714 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
31715 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
31716 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
31717 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
31718 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
31719 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
31720 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
31721 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
31722 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
31723 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
31724 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
31725 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
31726 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
31727 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
31728 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
31729 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
31730 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
31731 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
31732 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
31733 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
31734 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
31735 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
31736 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
31737 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
31738 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
31739 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
31740 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
31741 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
31742 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
31743 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
31744 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
31745 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
31746 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
31747 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
31748 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
31751 LTCFLAGS='$LTCFLAGS'
31752 compiler='$compiler_DEFAULT'
31754 # A function that is used when there is no print builtin or printf.
31755 func_fallback_echo ()
31757 eval 'cat <<_LTECHO_EOF
31762 # Quote evaled strings.
31779 deplibs_check_method \
31783 sharedlib_from_linklib_cmd \
31786 archiver_list_spec \
31792 lt_cv_sys_global_symbol_pipe \
31793 lt_cv_sys_global_symbol_to_cdecl \
31794 lt_cv_sys_global_symbol_to_c_name_address \
31795 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31796 nm_file_list_spec \
31797 lt_prog_compiler_no_builtin_flag \
31798 lt_prog_compiler_pic \
31799 lt_prog_compiler_wl \
31800 lt_prog_compiler_static \
31801 lt_cv_prog_compiler_c_o \
31810 export_dynamic_flag_spec \
31811 whole_archive_flag_spec \
31812 compiler_needs_object \
31814 allow_undefined_flag \
31815 no_undefined_flag \
31816 hardcode_libdir_flag_spec \
31817 hardcode_libdir_separator \
31821 variables_saved_for_relink \
31823 library_names_spec \
31825 install_override_mode \
31832 lt_prog_compiler_no_builtin_flag_RC \
31833 lt_prog_compiler_pic_RC \
31834 lt_prog_compiler_wl_RC \
31835 lt_prog_compiler_static_RC \
31836 lt_cv_prog_compiler_c_o_RC \
31837 export_dynamic_flag_spec_RC \
31838 whole_archive_flag_spec_RC \
31839 compiler_needs_object_RC \
31841 allow_undefined_flag_RC \
31842 no_undefined_flag_RC \
31843 hardcode_libdir_flag_spec_RC \
31844 hardcode_libdir_separator_RC \
31845 exclude_expsyms_RC \
31846 include_expsyms_RC \
31847 file_list_spec_RC; do
31848 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31849 *[\\\\\\\`\\"\\\$]*)
31850 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31853 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31858 # Double-quote double-evaled strings.
31859 for var in reload_cmds \
31860 old_postinstall_cmds \
31861 old_postuninstall_cmds \
31863 extract_expsyms_cmds \
31864 old_archive_from_new_cmds \
31865 old_archive_from_expsyms_cmds \
31867 archive_expsym_cmds \
31869 module_expsym_cmds \
31870 export_symbols_cmds \
31874 postuninstall_cmds \
31876 sys_lib_search_path_spec \
31877 sys_lib_dlsearch_path_spec \
31879 old_archive_cmds_RC \
31880 old_archive_from_new_cmds_RC \
31881 old_archive_from_expsyms_cmds_RC \
31883 archive_expsym_cmds_RC \
31885 module_expsym_cmds_RC \
31886 export_symbols_cmds_RC \
31888 postlink_cmds_RC; do
31889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31890 *[\\\\\\\`\\"\\\$]*)
31891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31899 ac_aux_dir='$ac_aux_dir'
31900 xsi_shell='$xsi_shell'
31901 lt_shell_append='$lt_shell_append'
31903 # See if we are running on zsh, and set the options which allow our
31904 # commands through without removal of \ escapes INIT.
31905 if test -n "\${ZSH_VERSION+set}" ; then
31906 setopt NO_GLOB_SUBST
31912 TIMESTAMP='$TIMESTAMP'
31920 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31921 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31922 # from automake < 1.5.
31923 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31924 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31925 LINGUAS="${LINGUAS-%UNSET%}"
31930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31932 # Handling of arguments.
31933 for ac_config_target in $ac_config_targets
31935 case $ac_config_target in
31936 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31937 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31938 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31939 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
31940 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
31941 "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
31942 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31943 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31944 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
31945 "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
31946 "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
31947 "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
31948 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31949 "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;;
31950 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31951 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
31952 "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
31953 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
31954 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31956 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31961 # If the user did not use the arguments to specify the items to instantiate,
31962 # then the envvar interface is used. Set only those that are not.
31963 # We use the long form for the default assignment because of an extremely
31964 # bizarre bug on SunOS 4.1.3.
31965 if $ac_need_defaults; then
31966 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31967 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31971 # Have a temporary directory for convenience. Make it in the build tree
31972 # simply because there is no reason against having it here, and in addition,
31973 # creating and moving files from /tmp can sometimes cause problems.
31974 # Hook for its removal unless debugging.
31975 # Note that there is a small window in which the directory will not be cleaned:
31976 # after its creation but before its name has been assigned to `$tmp'.
31980 trap 'exit_status=$?
31981 : "${ac_tmp:=$tmp}"
31982 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31984 trap 'as_fn_exit 1' 1 2 13 15
31986 # Create a (secure) tmp directory for tmp files.
31989 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31993 tmp=./conf$$-$RANDOM
31994 (umask 077 && mkdir "$tmp")
31995 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31998 # Set up the scripts for CONFIG_FILES section.
31999 # No need to generate them if there are no CONFIG_FILES.
32000 # This happens for instance with `./config.status config.h'.
32001 if test -n "$CONFIG_FILES"; then
32004 ac_cr=`echo X | tr X '\015'`
32005 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32006 # But we know of no other shell where ac_cr would be empty at this
32007 # point, so we can use a bashism as a fallback.
32008 if test "x$ac_cr" = x; then
32009 eval ac_cr=\$\'\\r\'
32011 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32012 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32015 ac_cs_awk_cr=$ac_cr
32018 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32023 echo "cat >conf$$subs.awk <<_ACEOF" &&
32024 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32026 } >conf$$subs.sh ||
32027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32030 for ac_last_try in false false false false false :; do
32031 . ./conf$$subs.sh ||
32032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32034 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32035 if test $ac_delim_n = $ac_delim_num; then
32037 elif $ac_last_try; then
32038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32043 rm -f conf$$subs.sh
32045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32046 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32050 s/^/S["/; s/!.*/"]=/
32060 s/\(.\{148\}\)..*/\1/
32062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32074 s/\(.\{148\}\)..*/\1/
32076 s/["\\]/\\&/g; s/^/"/; s/$/"/
32080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32085 ' <conf$$subs.awk | sed '
32090 ' >>$CONFIG_STATUS || ac_write_fail=1
32091 rm -f conf$$subs.awk
32092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32094 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32095 for (key in S) S_is_set[key] = 1
32101 nfields = split(line, field, "@")
32103 len = length(field[1])
32104 for (i = 2; i < nfields; i++) {
32106 keylen = length(key)
32107 if (S_is_set[key]) {
32109 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32110 len += length(value) + length(field[++i])
32121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32122 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32123 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32126 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32127 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32130 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32131 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32132 # trailing colons and then remove the whole line if VPATH becomes empty
32133 # (actually we leave an empty line to preserve line numbers).
32134 if test "x$srcdir" = x.; then
32135 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32154 fi # test -n "$CONFIG_FILES"
32156 # Set up the scripts for CONFIG_HEADERS section.
32157 # No need to generate them if there are no CONFIG_HEADERS.
32158 # This happens for instance with `./config.status Makefile'.
32159 if test -n "$CONFIG_HEADERS"; then
32160 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32164 # Transform confdefs.h into an awk script `defines.awk', embedded as
32165 # here-document in config.status, that substitutes the proper values into
32166 # config.h.in to produce config.h.
32168 # Create a delimiter string that does not exist in confdefs.h, to ease
32169 # handling of long lines.
32171 for ac_last_try in false false :; do
32172 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32173 if test -z "$ac_tt"; then
32175 elif $ac_last_try; then
32176 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32182 # For the awk script, D is an array of macro values keyed by name,
32183 # likewise P contains macro parameters if any. Preserve backslash
32184 # newline sequences.
32186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32188 s/.\{148\}/&'"$ac_delim"'/g
32191 s/^[ ]*#[ ]*define[ ][ ]*/ /
32198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32205 D["\1"]=" \3\\\\\\n"\\/p
32207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32212 s/.\{148\}/&'"$ac_delim"'/g
32217 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32220 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32222 ' <confdefs.h | sed '
32223 s/'"$ac_delim"'/"\\\
32224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32227 for (key in D) D_is_set[key] = 1
32230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32232 split(line, arg, " ")
32233 if (arg[1] == "#") {
32237 defundef = substr(arg[1], 2)
32240 split(mac1, mac2, "(") #)
32242 prefix = substr(line, 1, index(line, defundef) - 1)
32243 if (D_is_set[macro]) {
32244 # Preserve the white space surrounding the "#".
32245 print prefix "define", macro P[macro] D[macro]
32248 # Replace #undef with comments. This is necessary, for example,
32249 # in the case of _POSIX_SOURCE, which is predefined and required
32250 # on some systems where configure will not decide to define it.
32251 if (defundef == "undef") {
32252 print "/*", prefix defundef, macro, "*/"
32260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32261 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32262 fi # test -n "$CONFIG_HEADERS"
32265 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32270 :[FHLC]) ac_mode=$ac_tag; continue;;
32272 case $ac_mode$ac_tag in
32274 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32275 :[FH]-) ac_tag=-:-;;
32276 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32293 -) ac_f="$ac_tmp/stdin";;
32294 *) # Look for the file first in the build tree, then in the source tree
32295 # (if the path is not absolute). The absolute path cannot be DOS-style,
32296 # because $ac_f cannot contain `:'.
32300 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32302 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32304 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32305 as_fn_append ac_file_inputs " '$ac_f'"
32308 # Let's still pretend it is `configure' which instantiates (i.e., don't
32309 # use $as_me), people would be surprised to read:
32310 # /* config.h. Generated by config.status. */
32311 configure_input='Generated from '`
32312 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32314 if test x"$ac_file" != x-; then
32315 configure_input="$ac_file. $configure_input"
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32317 $as_echo "$as_me: creating $ac_file" >&6;}
32319 # Neutralize special characters interpreted by sed in replacement strings.
32320 case $configure_input in #(
32321 *\&* | *\|* | *\\* )
32322 ac_sed_conf_input=`$as_echo "$configure_input" |
32323 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32324 *) ac_sed_conf_input=$configure_input;;
32328 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32334 ac_dir=`$as_dirname -- "$ac_file" ||
32335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32336 X"$ac_file" : 'X\(//\)[^/]' \| \
32337 X"$ac_file" : 'X\(//\)$' \| \
32338 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32339 $as_echo X"$ac_file" |
32340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32344 /^X\(\/\/\)[^/].*/{
32357 as_dir="$ac_dir"; as_fn_mkdir_p
32361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32363 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32364 # A ".." for each directory in $ac_dir_suffix.
32365 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32366 case $ac_top_builddir_sub in
32367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32371 ac_abs_top_builddir=$ac_pwd
32372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32373 # for backward compatibility:
32374 ac_top_builddir=$ac_top_build_prefix
32377 .) # We are building in place.
32379 ac_top_srcdir=$ac_top_builddir_sub
32380 ac_abs_top_srcdir=$ac_pwd ;;
32381 [\\/]* | ?:[\\/]* ) # Absolute name.
32382 ac_srcdir=$srcdir$ac_dir_suffix;
32383 ac_top_srcdir=$srcdir
32384 ac_abs_top_srcdir=$srcdir ;;
32385 *) # Relative name.
32386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32387 ac_top_srcdir=$ac_top_build_prefix$srcdir
32388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32401 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32403 ac_MKDIR_P=$MKDIR_P
32405 [\\/$]* | ?:[\\/]* ) ;;
32406 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32411 # If the template does not know about datarootdir, expand it.
32412 # FIXME: This hack should be removed a few years after 2.60.
32413 ac_datarootdir_hack=; ac_datarootdir_seen=
32424 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32425 *datarootdir*) ac_datarootdir_seen=yes;;
32426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32428 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32431 ac_datarootdir_hack='
32432 s&@datadir@&$datadir&g
32433 s&@docdir@&$docdir&g
32434 s&@infodir@&$infodir&g
32435 s&@localedir@&$localedir&g
32436 s&@mandir@&$mandir&g
32437 s&\\\${datarootdir}&$datarootdir&g' ;;
32441 # Neutralize VPATH when `$srcdir' = `.'.
32442 # Shell code in configure.ac might set extrasub.
32443 # FIXME: do we really want to maintain this feature?
32444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32445 ac_sed_extra="$ac_vpsub
32448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32451 s|@configure_input@|$ac_sed_conf_input|;t t
32452 s&@top_builddir@&$ac_top_builddir_sub&;t t
32453 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32454 s&@srcdir@&$ac_srcdir&;t t
32455 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32456 s&@top_srcdir@&$ac_top_srcdir&;t t
32457 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32458 s&@builddir@&$ac_builddir&;t t
32459 s&@abs_builddir@&$ac_abs_builddir&;t t
32460 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32461 s&@INSTALL@&$ac_INSTALL&;t t
32462 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32463 $ac_datarootdir_hack
32465 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32466 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32469 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32470 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32471 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32473 which seems to be undefined. Please make sure it is defined" >&5
32474 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32475 which seems to be undefined. Please make sure it is defined" >&2;}
32477 rm -f "$ac_tmp/stdin"
32479 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32480 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32488 if test x"$ac_file" != x-; then
32490 $as_echo "/* $configure_input */" \
32491 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32492 } >"$ac_tmp/config.h" \
32493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32494 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32496 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32499 mv "$ac_tmp/config.h" "$ac_file" \
32500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32503 $as_echo "/* $configure_input */" \
32504 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32505 || as_fn_error $? "could not create -" "$LINENO" 5
32507 # Compute "$ac_file"'s index in $config_headers.
32510 for _am_header in $config_headers :; do
32511 case $_am_header in
32512 $_am_arg | $_am_arg:* )
32515 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32518 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32519 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32520 X"$_am_arg" : 'X\(//\)[^/]' \| \
32521 X"$_am_arg" : 'X\(//\)$' \| \
32522 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32523 $as_echo X"$_am_arg" |
32524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32528 /^X\(\/\/\)[^/].*/{
32540 s/.*/./; q'`/stamp-h$_am_stamp_count
32543 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32544 $as_echo "$as_me: executing $ac_file commands" >&6;}
32549 case $ac_file$ac_mode in
32550 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32551 # Older Autoconf quotes --file arguments for eval, but not when files
32552 # are listed without --file. Let's play safe and only enable the eval
32553 # if we detect the quoting.
32554 case $CONFIG_FILES in
32555 *\'*) eval set x "$CONFIG_FILES" ;;
32556 *) set x $CONFIG_FILES ;;
32561 # Strip MF so we end up with the name of the file.
32562 mf=`echo "$mf" | sed -e 's/:.*$//'`
32563 # Check whether this is an Automake generated Makefile or not.
32564 # We used to match only the files named 'Makefile.in', but
32565 # some people rename them; so instead we look at the file content.
32566 # Grep'ing the first line is not enough: some people post-process
32567 # each Makefile.in and add a new line on top of each file to say so.
32568 # Grep'ing the whole file is not good either: AIX grep has a line
32569 # limit of 2048, but all sed's we know have understand at least 4000.
32570 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32571 dirpart=`$as_dirname -- "$mf" ||
32572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32573 X"$mf" : 'X\(//\)[^/]' \| \
32574 X"$mf" : 'X\(//\)$' \| \
32575 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32581 /^X\(\/\/\)[^/].*/{
32597 # Extract the definition of DEPDIR, am__include, and am__quote
32598 # from the Makefile without running 'make'.
32599 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32600 test -z "$DEPDIR" && continue
32601 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32602 test -z "$am__include" && continue
32603 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32604 # Find all dependency output files, they are included files with
32605 # $(DEPDIR) in their names. We invoke sed twice because it is the
32606 # simplest approach to changing $(DEPDIR) to its actual value in the
32608 for file in `sed -n "
32609 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32610 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32611 # Make sure the directory exists.
32612 test -f "$dirpart/$file" && continue
32613 fdir=`$as_dirname -- "$file" ||
32614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32615 X"$file" : 'X\(//\)[^/]' \| \
32616 X"$file" : 'X\(//\)$' \| \
32617 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32618 $as_echo X"$file" |
32619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32623 /^X\(\/\/\)[^/].*/{
32636 as_dir=$dirpart/$fdir; as_fn_mkdir_p
32637 # echo "creating $dirpart/$file"
32638 echo '# dummy' > "$dirpart/$file"
32645 # See if we are running on zsh, and set the options which allow our
32646 # commands through without removal of \ escapes.
32647 if test -n "${ZSH_VERSION+set}" ; then
32648 setopt NO_GLOB_SUBST
32651 cfgfile="${ofile}T"
32652 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32655 cat <<_LT_EOF >> "$cfgfile"
32658 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32659 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32661 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32663 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32664 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32666 # Written by Gordon Matzigkeit, 1996
32668 # This file is part of GNU Libtool.
32670 # GNU Libtool is free software; you can redistribute it and/or
32671 # modify it under the terms of the GNU General Public License as
32672 # published by the Free Software Foundation; either version 2 of
32673 # the License, or (at your option) any later version.
32675 # As a special exception to the GNU General Public License,
32676 # if you distribute this file as part of a program or library that
32677 # is built using GNU Libtool, you may include this file under the
32678 # same distribution terms that you use for the rest of that program.
32680 # GNU Libtool is distributed in the hope that it will be useful,
32681 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32683 # GNU General Public License for more details.
32685 # You should have received a copy of the GNU General Public License
32686 # along with GNU Libtool; see the file COPYING. If not, a copy
32687 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32688 # obtained by writing to the Free Software Foundation, Inc.,
32689 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32692 # The names of the tagged configurations supported by this script.
32693 available_tags="RC "
32695 # ### BEGIN LIBTOOL CONFIG
32697 # Which release of libtool.m4 was used?
32698 macro_version=$macro_version
32699 macro_revision=$macro_revision
32701 # Assembler program.
32704 # DLL creation program.
32705 DLLTOOL=$lt_DLLTOOL
32707 # Object dumper program.
32708 OBJDUMP=$lt_OBJDUMP
32710 # Whether or not to build shared libraries.
32711 build_libtool_libs=$enable_shared
32713 # Whether or not to build static libraries.
32714 build_old_libs=$enable_static
32716 # What type of objects to build.
32719 # Whether or not to optimize for fast installation.
32720 fast_install=$enable_fast_install
32722 # Shell to use when invoking shell scripts.
32725 # An echo program that protects backslashes.
32728 # The PATH separator for the build system.
32729 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32732 host_alias=$host_alias
32736 # The build system.
32737 build_alias=$build_alias
32741 # A sed program that does not truncate output.
32744 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32745 Xsed="\$SED -e 1s/^X//"
32747 # A grep program that handles long lines.
32753 # A literal string matcher.
32756 # A BSD- or MS-compatible name lister.
32759 # Whether we need soft or hard links.
32762 # What is the maximum length of a command?
32763 max_cmd_len=$max_cmd_len
32765 # Object file suffix (normally "o").
32768 # Executable file suffix (normally "").
32771 # whether the shell understands "unset".
32774 # turn spaces into newlines.
32777 # turn newlines into spaces.
32780 # convert \$build file names to \$host format.
32781 to_host_file_cmd=$lt_cv_to_host_file_cmd
32783 # convert \$build files to toolchain format.
32784 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32786 # Method to check whether dependent libraries are shared objects.
32787 deplibs_check_method=$lt_deplibs_check_method
32789 # Command to use when deplibs_check_method = "file_magic".
32790 file_magic_cmd=$lt_file_magic_cmd
32792 # How to find potential files when deplibs_check_method = "file_magic".
32793 file_magic_glob=$lt_file_magic_glob
32795 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32796 want_nocaseglob=$lt_want_nocaseglob
32798 # Command to associate shared and link libraries.
32799 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32804 # Flags to create an archive.
32805 AR_FLAGS=$lt_AR_FLAGS
32807 # How to feed a file listing to the archiver.
32808 archiver_list_spec=$lt_archiver_list_spec
32810 # A symbol stripping program.
32813 # Commands used to install an old-style archive.
32815 old_postinstall_cmds=$lt_old_postinstall_cmds
32816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32818 # Whether to use a lock for old archive extraction.
32819 lock_old_archive_extraction=$lock_old_archive_extraction
32824 # LTCC compiler flags.
32825 LTCFLAGS=$lt_CFLAGS
32827 # Take the output of nm and produce a listing of raw symbols and C names.
32828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32830 # Transform the output of nm in a proper C declaration.
32831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32833 # Transform the output of nm in a C name address pair.
32834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32836 # Transform the output of nm in a C name address pair when lib prefix is needed.
32837 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32839 # Specify filename containing input files for \$NM.
32840 nm_file_list_spec=$lt_nm_file_list_spec
32842 # The root where to search for dependent libraries,and in which our libraries should be installed.
32843 lt_sysroot=$lt_sysroot
32845 # The name of the directory that contains temporary libtool files.
32848 # Used to examine libraries when file_magic_cmd begins with "file".
32849 MAGIC_CMD=$MAGIC_CMD
32851 # Must we lock files when doing compilation?
32852 need_locks=$lt_need_locks
32855 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32857 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32858 DSYMUTIL=$lt_DSYMUTIL
32860 # Tool to change global to local symbols on Mac OS X.
32863 # Tool to manipulate fat objects and archives on Mac OS X.
32866 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32869 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32870 OTOOL64=$lt_OTOOL64
32872 # Old archive suffix (normally "a").
32875 # Shared library suffix (normally ".so").
32876 shrext_cmds=$lt_shrext_cmds
32878 # The commands to extract the exported symbol list from a shared archive.
32879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32881 # Variables whose values should be saved in libtool wrapper scripts and
32882 # restored at link time.
32883 variables_saved_for_relink=$lt_variables_saved_for_relink
32885 # Do we need the "lib" prefix for modules?
32886 need_lib_prefix=$need_lib_prefix
32888 # Do we need a version for libraries?
32889 need_version=$need_version
32891 # Library versioning type.
32892 version_type=$version_type
32894 # Shared library runtime path variable.
32895 runpath_var=$runpath_var
32897 # Shared library path variable.
32898 shlibpath_var=$shlibpath_var
32900 # Is shlibpath searched before the hard-coded library search path?
32901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32903 # Format of library name prefix.
32904 libname_spec=$lt_libname_spec
32906 # List of archive names. First name is the real one, the rest are links.
32907 # The last name is the one that the linker finds with -lNAME
32908 library_names_spec=$lt_library_names_spec
32910 # The coded name of the library, if different from the real name.
32911 soname_spec=$lt_soname_spec
32913 # Permission mode override for installation of shared libraries.
32914 install_override_mode=$lt_install_override_mode
32916 # Command to use after installation of a shared archive.
32917 postinstall_cmds=$lt_postinstall_cmds
32919 # Command to use after uninstallation of a shared archive.
32920 postuninstall_cmds=$lt_postuninstall_cmds
32922 # Commands used to finish a libtool library installation in a directory.
32923 finish_cmds=$lt_finish_cmds
32925 # As "finish_cmds", except a single script fragment to be evaled but
32927 finish_eval=$lt_finish_eval
32929 # Whether we should hardcode library paths into libraries.
32930 hardcode_into_libs=$hardcode_into_libs
32932 # Compile-time system search path for libraries.
32933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32935 # Run-time system search path for libraries.
32936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32938 # Whether dlopen is supported.
32939 dlopen_support=$enable_dlopen
32941 # Whether dlopen of programs is supported.
32942 dlopen_self=$enable_dlopen_self
32944 # Whether dlopen of statically linked programs is supported.
32945 dlopen_self_static=$enable_dlopen_self_static
32947 # Commands to strip libraries.
32948 old_striplib=$lt_old_striplib
32949 striplib=$lt_striplib
32952 # The linker used to build libraries.
32955 # How to create reloadable object files.
32956 reload_flag=$lt_reload_flag
32957 reload_cmds=$lt_reload_cmds
32959 # Commands used to build an old-style archive.
32960 old_archive_cmds=$lt_old_archive_cmds
32962 # A language specific compiler.
32965 # Is the compiler the GNU compiler?
32968 # Compiler flag to turn off builtin functions.
32969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32971 # Additional compiler flags for building library objects.
32972 pic_flag=$lt_lt_prog_compiler_pic
32974 # How to pass a linker flag through the compiler.
32975 wl=$lt_lt_prog_compiler_wl
32977 # Compiler flag to prevent dynamic linking.
32978 link_static_flag=$lt_lt_prog_compiler_static
32980 # Does compiler simultaneously support -c and -o options?
32981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32983 # Whether or not to add -lc for building shared libraries.
32984 build_libtool_need_lc=$archive_cmds_need_lc
32986 # Whether or not to disallow shared libs when runtime libs are static.
32987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32989 # Compiler flag to allow reflexive dlopens.
32990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32992 # Compiler flag to generate shared objects directly from archives.
32993 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32995 # Whether the compiler copes with passing no objects directly.
32996 compiler_needs_object=$lt_compiler_needs_object
32998 # Create an old-style archive from a shared archive.
32999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33001 # Create a temporary old-style archive to link instead of a shared archive.
33002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33004 # Commands used to build a shared archive.
33005 archive_cmds=$lt_archive_cmds
33006 archive_expsym_cmds=$lt_archive_expsym_cmds
33008 # Commands used to build a loadable module if different from building
33009 # a shared archive.
33010 module_cmds=$lt_module_cmds
33011 module_expsym_cmds=$lt_module_expsym_cmds
33013 # Whether we are building with GNU ld or not.
33014 with_gnu_ld=$lt_with_gnu_ld
33016 # Flag that allows shared libraries with undefined symbols to be built.
33017 allow_undefined_flag=$lt_allow_undefined_flag
33019 # Flag that enforces no undefined symbols.
33020 no_undefined_flag=$lt_no_undefined_flag
33022 # Flag to hardcode \$libdir into a binary during linking.
33023 # This must work even if \$libdir does not exist
33024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33026 # Whether we need a single "-rpath" flag with a separated argument.
33027 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33029 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33030 # DIR into the resulting binary.
33031 hardcode_direct=$hardcode_direct
33033 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33034 # DIR into the resulting binary and the resulting library dependency is
33035 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33036 # library is relocated.
33037 hardcode_direct_absolute=$hardcode_direct_absolute
33039 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33040 # into the resulting binary.
33041 hardcode_minus_L=$hardcode_minus_L
33043 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33044 # into the resulting binary.
33045 hardcode_shlibpath_var=$hardcode_shlibpath_var
33047 # Set to "yes" if building a shared library automatically hardcodes DIR
33048 # into the library and all subsequent libraries and executables linked
33050 hardcode_automatic=$hardcode_automatic
33052 # Set to yes if linker adds runtime paths of dependent libraries
33053 # to runtime path list.
33054 inherit_rpath=$inherit_rpath
33056 # Whether libtool must link a program against all its dependency libraries.
33057 link_all_deplibs=$link_all_deplibs
33059 # Set to "yes" if exported symbols are required.
33060 always_export_symbols=$always_export_symbols
33062 # The commands to list exported symbols.
33063 export_symbols_cmds=$lt_export_symbols_cmds
33065 # Symbols that should not be listed in the preloaded symbols.
33066 exclude_expsyms=$lt_exclude_expsyms
33068 # Symbols that must always be exported.
33069 include_expsyms=$lt_include_expsyms
33071 # Commands necessary for linking programs (against libraries) with templates.
33072 prelink_cmds=$lt_prelink_cmds
33074 # Commands necessary for finishing linking programs.
33075 postlink_cmds=$lt_postlink_cmds
33077 # Specify filename containing input files.
33078 file_list_spec=$lt_file_list_spec
33080 # How to hardcode a shared library path into an executable.
33081 hardcode_action=$hardcode_action
33083 # ### END LIBTOOL CONFIG
33089 cat <<\_LT_EOF >> "$cfgfile"
33090 # AIX sometimes has problems with the GCC collect2 program. For some
33091 # reason, if we set the COLLECT_NAMES environment variable, the problems
33092 # vanish in a puff of smoke.
33093 if test "X${COLLECT_NAMES+set}" != Xset; then
33095 export COLLECT_NAMES
33102 ltmain="$ac_aux_dir/ltmain.sh"
33105 # We use sed instead of cat because bash on DJGPP gets confused if
33106 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33107 # text mode, it properly converts lines to CR/LF. This bash problem
33108 # is reportedly fixed, but why not run on old versions too?
33109 sed '$q' "$ltmain" >> "$cfgfile" \
33110 || (rm -f "$cfgfile"; exit 1)
33112 if test x"$xsi_shell" = xyes; then
33113 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33117 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33118 \ * ) func_dirname_result="${3}" ;;\
33120 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33121 && mv -f "$cfgfile.tmp" "$cfgfile" \
33122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33123 test 0 -eq $? || _lt_function_replace_fail=:
33126 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33129 \ func_basename_result="${1##*/}"\
33130 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33131 && mv -f "$cfgfile.tmp" "$cfgfile" \
33132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33133 test 0 -eq $? || _lt_function_replace_fail=:
33136 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33137 func_dirname_and_basename ()\
33140 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33141 \ * ) func_dirname_result="${3}" ;;\
33143 \ func_basename_result="${1##*/}"\
33144 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33145 && mv -f "$cfgfile.tmp" "$cfgfile" \
33146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33147 test 0 -eq $? || _lt_function_replace_fail=:
33150 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33153 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33154 \ # positional parameters, so assign one to ordinary parameter first.\
33155 \ func_stripname_result=${3}\
33156 \ func_stripname_result=${func_stripname_result#"${1}"}\
33157 \ func_stripname_result=${func_stripname_result%"${2}"}\
33158 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33159 && mv -f "$cfgfile.tmp" "$cfgfile" \
33160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33161 test 0 -eq $? || _lt_function_replace_fail=:
33164 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33165 func_split_long_opt ()\
33167 \ func_split_long_opt_name=${1%%=*}\
33168 \ func_split_long_opt_arg=${1#*=}\
33169 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33170 && mv -f "$cfgfile.tmp" "$cfgfile" \
33171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33172 test 0 -eq $? || _lt_function_replace_fail=:
33175 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33176 func_split_short_opt ()\
33178 \ func_split_short_opt_arg=${1#??}\
33179 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33180 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33181 && mv -f "$cfgfile.tmp" "$cfgfile" \
33182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33183 test 0 -eq $? || _lt_function_replace_fail=:
33186 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33190 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33191 \ *) func_lo2o_result=${1} ;;\
33193 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33194 && mv -f "$cfgfile.tmp" "$cfgfile" \
33195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33196 test 0 -eq $? || _lt_function_replace_fail=:
33199 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33202 func_xform_result=${1%.*}.lo\
33203 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33204 && mv -f "$cfgfile.tmp" "$cfgfile" \
33205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33206 test 0 -eq $? || _lt_function_replace_fail=:
33209 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33212 func_arith_result=$(( $* ))\
33213 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33214 && mv -f "$cfgfile.tmp" "$cfgfile" \
33215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33216 test 0 -eq $? || _lt_function_replace_fail=:
33219 sed -e '/^func_len ()$/,/^} # func_len /c\
33222 func_len_result=${#1}\
33223 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33224 && mv -f "$cfgfile.tmp" "$cfgfile" \
33225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33226 test 0 -eq $? || _lt_function_replace_fail=:
33230 if test x"$lt_shell_append" = xyes; then
33231 sed -e '/^func_append ()$/,/^} # func_append /c\
33234 eval "${1}+=\\${2}"\
33235 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33236 && mv -f "$cfgfile.tmp" "$cfgfile" \
33237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33238 test 0 -eq $? || _lt_function_replace_fail=:
33241 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33242 func_append_quoted ()\
33244 \ func_quote_for_eval "${2}"\
33245 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33246 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33247 && mv -f "$cfgfile.tmp" "$cfgfile" \
33248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33249 test 0 -eq $? || _lt_function_replace_fail=:
33252 # Save a `func_append' function call where possible by direct use of '+='
33253 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33254 && mv -f "$cfgfile.tmp" "$cfgfile" \
33255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33256 test 0 -eq $? || _lt_function_replace_fail=:
33258 # Save a `func_append' function call even when '+=' is not available
33259 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33260 && mv -f "$cfgfile.tmp" "$cfgfile" \
33261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33262 test 0 -eq $? || _lt_function_replace_fail=:
33265 if test x"$_lt_function_replace_fail" = x":"; then
33266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33267 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33271 mv -f "$cfgfile" "$ofile" ||
33272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33276 cat <<_LT_EOF >> "$ofile"
33278 # ### BEGIN LIBTOOL TAG CONFIG: RC
33280 # The linker used to build libraries.
33283 # How to create reloadable object files.
33284 reload_flag=$lt_reload_flag_RC
33285 reload_cmds=$lt_reload_cmds_RC
33287 # Commands used to build an old-style archive.
33288 old_archive_cmds=$lt_old_archive_cmds_RC
33290 # A language specific compiler.
33293 # Is the compiler the GNU compiler?
33296 # Compiler flag to turn off builtin functions.
33297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
33299 # Additional compiler flags for building library objects.
33300 pic_flag=$lt_lt_prog_compiler_pic_RC
33302 # How to pass a linker flag through the compiler.
33303 wl=$lt_lt_prog_compiler_wl_RC
33305 # Compiler flag to prevent dynamic linking.
33306 link_static_flag=$lt_lt_prog_compiler_static_RC
33308 # Does compiler simultaneously support -c and -o options?
33309 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
33311 # Whether or not to add -lc for building shared libraries.
33312 build_libtool_need_lc=$archive_cmds_need_lc_RC
33314 # Whether or not to disallow shared libs when runtime libs are static.
33315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
33317 # Compiler flag to allow reflexive dlopens.
33318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
33320 # Compiler flag to generate shared objects directly from archives.
33321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
33323 # Whether the compiler copes with passing no objects directly.
33324 compiler_needs_object=$lt_compiler_needs_object_RC
33326 # Create an old-style archive from a shared archive.
33327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
33329 # Create a temporary old-style archive to link instead of a shared archive.
33330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
33332 # Commands used to build a shared archive.
33333 archive_cmds=$lt_archive_cmds_RC
33334 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
33336 # Commands used to build a loadable module if different from building
33337 # a shared archive.
33338 module_cmds=$lt_module_cmds_RC
33339 module_expsym_cmds=$lt_module_expsym_cmds_RC
33341 # Whether we are building with GNU ld or not.
33342 with_gnu_ld=$lt_with_gnu_ld_RC
33344 # Flag that allows shared libraries with undefined symbols to be built.
33345 allow_undefined_flag=$lt_allow_undefined_flag_RC
33347 # Flag that enforces no undefined symbols.
33348 no_undefined_flag=$lt_no_undefined_flag_RC
33350 # Flag to hardcode \$libdir into a binary during linking.
33351 # This must work even if \$libdir does not exist
33352 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
33354 # Whether we need a single "-rpath" flag with a separated argument.
33355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
33357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33358 # DIR into the resulting binary.
33359 hardcode_direct=$hardcode_direct_RC
33361 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33362 # DIR into the resulting binary and the resulting library dependency is
33363 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33364 # library is relocated.
33365 hardcode_direct_absolute=$hardcode_direct_absolute_RC
33367 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33368 # into the resulting binary.
33369 hardcode_minus_L=$hardcode_minus_L_RC
33371 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33372 # into the resulting binary.
33373 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
33375 # Set to "yes" if building a shared library automatically hardcodes DIR
33376 # into the library and all subsequent libraries and executables linked
33378 hardcode_automatic=$hardcode_automatic_RC
33380 # Set to yes if linker adds runtime paths of dependent libraries
33381 # to runtime path list.
33382 inherit_rpath=$inherit_rpath_RC
33384 # Whether libtool must link a program against all its dependency libraries.
33385 link_all_deplibs=$link_all_deplibs_RC
33387 # Set to "yes" if exported symbols are required.
33388 always_export_symbols=$always_export_symbols_RC
33390 # The commands to list exported symbols.
33391 export_symbols_cmds=$lt_export_symbols_cmds_RC
33393 # Symbols that should not be listed in the preloaded symbols.
33394 exclude_expsyms=$lt_exclude_expsyms_RC
33396 # Symbols that must always be exported.
33397 include_expsyms=$lt_include_expsyms_RC
33399 # Commands necessary for linking programs (against libraries) with templates.
33400 prelink_cmds=$lt_prelink_cmds_RC
33402 # Commands necessary for finishing linking programs.
33403 postlink_cmds=$lt_postlink_cmds_RC
33405 # Specify filename containing input files.
33406 file_list_spec=$lt_file_list_spec_RC
33408 # How to hardcode a shared library path into an executable.
33409 hardcode_action=$hardcode_action_RC
33411 # ### END LIBTOOL TAG CONFIG: RC
33415 "po-directories":C)
33416 for ac_file in $CONFIG_FILES; do
33417 # Support "outfile[:infile[:infile...]]"
33419 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33421 # PO directories have a Makefile.in generated from Makefile.in.in.
33422 case "$ac_file" in */Makefile.in)
33423 # Adjust a relative srcdir.
33424 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33425 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
33426 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33427 # In autoconf-2.13 it is called $ac_given_srcdir.
33428 # In autoconf-2.50 it is called $srcdir.
33429 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33430 case "$ac_given_srcdir" in
33431 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33432 /*) top_srcdir="$ac_given_srcdir" ;;
33433 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33435 # Treat a directory as a PO directory if and only if it has a
33436 # POTFILES.in file. This allows packages to have multiple PO
33437 # directories under different names or in different locations.
33438 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33439 rm -f "$ac_dir/POTFILES"
33440 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33441 gt_tab=`printf '\t'`
33442 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"
33443 POMAKEFILEDEPS="POTFILES.in"
33444 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33445 # on $ac_dir but don't depend on user-specified configuration
33447 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33448 # The LINGUAS file contains the set of available languages.
33449 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33450 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33452 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33453 # Hide the ALL_LINGUAS assignment from automake < 1.5.
33454 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33455 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33457 # The set of available languages was given in configure.in.
33458 # Hide the ALL_LINGUAS assignment from automake < 1.5.
33459 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33462 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33463 # Compute UPDATEPOFILES
33464 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33465 # Compute DUMMYPOFILES
33466 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33468 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33469 case "$ac_given_srcdir" in
33471 *) srcdirpre='$(srcdir)/' ;;
33477 for lang in $ALL_LINGUAS; do
33478 POFILES="$POFILES $srcdirpre$lang.po"
33479 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33480 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33481 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33483 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33484 # environment variable.
33486 if test -n "$ALL_LINGUAS"; then
33487 for presentlang in $ALL_LINGUAS; do
33489 if test "%UNSET%" != "$LINGUAS"; then
33490 desiredlanguages="$LINGUAS"
33492 desiredlanguages="$ALL_LINGUAS"
33494 for desiredlang in $desiredlanguages; do
33495 # Use the presentlang catalog if desiredlang is
33496 # a. equal to presentlang, or
33497 # b. a variant of presentlang (because in this case,
33498 # presentlang can be used as a fallback for messages
33499 # which are not translated in the desiredlang catalog).
33500 case "$desiredlang" in
33501 "$presentlang"*) useit=yes;;
33504 if test $useit = yes; then
33505 INST_LINGUAS="$INST_LINGUAS $presentlang"
33510 if test -n "$INST_LINGUAS"; then
33511 for lang in $INST_LINGUAS; do
33512 CATALOGS="$CATALOGS $lang.gmo"
33515 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33516 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"
33517 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33518 if test -f "$f"; then
33520 *.orig | *.bak | *~) ;;
33521 *) cat "$f" >> "$ac_dir/Makefile" ;;
33529 "src/gettext.sh":F) chmod a+x src/gettext.sh ;;
33531 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
33532 mv $ac_file.tmp $ac_file
33541 ac_clean_files=$ac_clean_files_save
33543 test $ac_write_fail = 0 ||
33544 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33547 # configure is writing to config.log, and then calls config.status.
33548 # config.status does its own redirection, appending to config.log.
33549 # Unfortunately, on DOS this fails, as config.log is still kept open
33550 # by configure, so config.status won't be able to write to it; its
33551 # output is simply discarded. So we exec the FD to /dev/null,
33552 # effectively closing config.log, so it can be properly (re)opened and
33553 # appended to by config.status. When coming back to configure, we
33554 # need to make the FD available again.
33555 if test "$no_create" != yes; then
33557 ac_config_status_args=
33558 test "$silent" = yes &&
33559 ac_config_status_args="$ac_config_status_args --quiet"
33561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33564 # would make configure fail if this is the last instruction.
33565 $ac_cs_success || as_fn_exit 1
33569 # CONFIG_SUBDIRS section.
33571 if test "$no_recursion" != yes; then
33573 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33574 # so they do not pile up.
33575 ac_sub_configure_args=
33577 eval "set x $ac_configure_args"
33581 if test -n "$ac_prev"; then
33586 -cache-file | --cache-file | --cache-fil | --cache-fi \
33587 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33588 ac_prev=cache_file ;;
33589 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33590 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33593 --config-cache | -C)
33595 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33597 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33599 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33601 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33603 --disable-option-checking)
33607 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33609 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33613 # Always prepend --prefix to ensure using the same prefix
33614 # in subdir configurations.
33615 ac_arg="--prefix=$prefix"
33617 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33619 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33622 if test "$silent" = yes; then
33623 ac_sub_configure_args="--silent $ac_sub_configure_args"
33626 # Always prepend --disable-option-checking to silence warnings, since
33627 # different subdirs can have different --enable and --with options.
33628 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33631 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33633 # Do not complain, so a configure script can configure whichever
33634 # parts of a large source tree are present.
33635 test -d "$srcdir/$ac_dir" || continue
33637 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33638 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33639 $as_echo "$ac_msg" >&6
33640 as_dir="$ac_dir"; as_fn_mkdir_p
33644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33647 # A ".." for each directory in $ac_dir_suffix.
33648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33649 case $ac_top_builddir_sub in
33650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33654 ac_abs_top_builddir=$ac_pwd
33655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33656 # for backward compatibility:
33657 ac_top_builddir=$ac_top_build_prefix
33660 .) # We are building in place.
33662 ac_top_srcdir=$ac_top_builddir_sub
33663 ac_abs_top_srcdir=$ac_pwd ;;
33664 [\\/]* | ?:[\\/]* ) # Absolute name.
33665 ac_srcdir=$srcdir$ac_dir_suffix;
33666 ac_top_srcdir=$srcdir
33667 ac_abs_top_srcdir=$srcdir ;;
33668 *) # Relative name.
33669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33670 ac_top_srcdir=$ac_top_build_prefix$srcdir
33671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33678 # Check for guested configure; otherwise get Cygnus style configure.
33679 if test -f "$ac_srcdir/configure.gnu"; then
33680 ac_sub_configure=$ac_srcdir/configure.gnu
33681 elif test -f "$ac_srcdir/configure"; then
33682 ac_sub_configure=$ac_srcdir/configure
33683 elif test -f "$ac_srcdir/configure.in"; then
33684 # This should be Cygnus configure.
33685 ac_sub_configure=$ac_aux_dir/configure
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33692 # The recursion is here.
33693 if test -n "$ac_sub_configure"; then
33694 # Make the cache file name correct relative to the subdirectory.
33695 case $cache_file in
33696 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33697 *) # Relative name.
33698 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33701 { $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
33702 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33703 # The eval makes quoting arguments work.
33704 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33705 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33706 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}