2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for GNU Libidn 1.15.
5 # Report bugs to <bug-libidn@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
16 # Copyright (c) 2002-2008 Simon Josefsson <simon@josefsson.org>.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
31 case `(set -o) 2>/dev/null` in #(
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72 as_echo_n='sh -c $as_echo_n_body as_echo'
75 as_echo='sh -c $as_echo_body as_echo'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
95 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 if test x$as_have_required = xno; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x${ZSH_VERSION+set} = xset ; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-libidn@gnu.org
236 $0: about your system, including any error possibly output
237 $0: before this message. Then install a modern shell, or
238 $0: manually run the script under such a shell if you do
245 SHELL=${CONFIG_SHELL-/bin/sh}
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
256 # Portably unset VAR.
259 { eval $1=; unset $1;}
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
283 # Create "$as_dir" as a directory, including parents if necessary.
288 -*) as_dir=./$as_dir;;
290 test -d "$as_dir" || eval $as_mkdir_p || {
294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297 as_dirs="'$as_qdir' $as_dirs"
298 as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321 test -d "$as_dir" && break
323 test -z "$as_dirs" || eval "mkdir $as_dirs"
324 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335 eval 'as_fn_append ()
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 as_val=`expr "$@" || test $? -eq 1`
364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
365 # ----------------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with STATUS, using 1 if that was 0.
371 as_status=$1; test $as_status -eq 0 && as_status=1
373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376 $as_echo "$as_me: error: $2" >&2
377 as_fn_exit $as_status
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
426 as_lineno_1=$LINENO as_lineno_1a=$LINENO
427 as_lineno_2=$LINENO as_lineno_2a=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 chmod +x "$as_me.lineno" ||
447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
451 # original and so on. Autoconf is especially sensitive to this).
453 # Exit status is that of the last command.
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
460 case `echo 'xy\c'` in
461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472 rm -f conf$$.dir/conf$$.file
475 mkdir conf$$.dir 2>/dev/null
477 if (echo >conf$$.file) 2>/dev/null; then
478 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 elif ln conf$$.file conf$$ 2>/dev/null; then
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
497 if mkdir -p . 2>/dev/null; then
498 as_mkdir_p='mkdir -p "$as_dir"'
500 test -d ./-p && rmdir ./-p
504 if test -x / >/dev/null 2>&1; then
507 if ls -dL / >/dev/null 2>&1; then
514 if test -d "$1"; then
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
525 as_executable_p=$as_test_x
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 # Check that we are running under the correct shell.
536 SHELL=${CONFIG_SHELL-/bin/sh}
540 # Remove one level of quotation (which was required for Make).
541 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 if test "X$1" = X--no-reexec; then
547 # Discard the --no-reexec flag, and continue.
549 elif test "X$1" = X--fallback-echo; then
550 # Avoid inline document here, it may be left over
552 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
553 # Yippee, $ECHO works!
556 # Restart under the correct shell.
557 exec $SHELL "$0" --no-reexec ${1+"$@"}
560 if test "X$1" = X--fallback-echo; then
561 # used as fallback echo
569 # The HP-UX ksh and POSIX shell print the target directory to stdout
571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
573 if test -z "$lt_ECHO"; then
574 if test "X${echo_test_string+set}" != Xset; then
575 # find a string as large as possible, as long as the shell can cope with it
576 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
577 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
578 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
579 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
587 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
588 test "X$echo_testing_string" = "X$echo_test_string"; then
591 # The Solaris, AIX, and Digital Unix default echo programs unquote
592 # backslashes. This makes it impossible to quote backslashes using
593 # echo "$something" | sed 's/\\/\\\\/g'
595 # So, first we look for a working echo in the user's PATH.
597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
598 for dir in $PATH /usr/ucb; do
600 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
601 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
602 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
603 test "X$echo_testing_string" = "X$echo_test_string"; then
610 if test "X$ECHO" = Xecho; then
611 # We didn't find a better echo, so look for alternatives.
612 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
613 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
614 test "X$echo_testing_string" = "X$echo_test_string"; then
615 # This shell has a builtin print -r that does the trick.
617 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
618 test "X$CONFIG_SHELL" != X/bin/ksh; then
619 # If we have ksh, try running configure again with it.
620 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
621 export ORIGINAL_CONFIG_SHELL
622 CONFIG_SHELL=/bin/ksh
624 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
634 test "X$echo_testing_string" = 'X\t' &&
635 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
639 SHELL="$CONFIG_SHELL"
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643 test "X$echo_testing_string" = 'X\t' &&
644 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$CONFIG_SHELL $0 --fallback-echo"
648 # maybe with a smaller string...
651 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
652 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659 if test "$prev" != 'sed 50q "$0"'; then
660 echo_test_string=`eval $prev`
661 export echo_test_string
662 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
664 # Oops. We lost completely, so just stick with echo.
673 # Copy echo and quote the copy suitably for passing to libtool from
674 # the Makefile, instead of quoting the original, which is used later.
676 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
677 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 test -n "$DJDIR" || exec 7<&0 </dev/null
687 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
688 # so uname gets run too.
689 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
694 ac_default_prefix=/usr/local
696 ac_config_libobj_dir=.
703 # Identity of this package.
704 PACKAGE_NAME='GNU Libidn'
705 PACKAGE_TARNAME='libidn'
706 PACKAGE_VERSION='1.15'
707 PACKAGE_STRING='GNU Libidn 1.15'
708 PACKAGE_BUGREPORT='bug-libidn@gnu.org'
709 PACKAGE_URL='http://www.gnu.org/software/libidn/'
711 # Factoring default headers for most tests.
712 ac_includes_default="\
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
724 # ifdef HAVE_STDLIB_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
749 ac_subst_vars='lgltests_LTLIBOBJS
776 GTK_DOC_USE_REBASE_FALSE
777 GTK_DOC_USE_REBASE_TRUE
778 GTK_DOC_USE_LIBTOOL_FALSE
779 GTK_DOC_USE_LIBTOOL_TRUE
780 GTK_DOC_BUILD_PDF_FALSE
781 GTK_DOC_BUILD_PDF_TRUE
782 GTK_DOC_BUILD_HTML_FALSE
783 GTK_DOC_BUILD_HTML_TRUE
796 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
843 HAVE_SIGNED_SIG_ATOMIC_T
846 BITSIZEOF_SIG_ATOMIC_T
852 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
856 HAVE_UNSIGNED_LONG_LONG_INT
860 APPLE_UNIVERSAL_BUILD
863 HAVE_LD_VERSION_SCRIPT_FALSE
864 HAVE_LD_VERSION_SCRIPT_TRUE
865 HAVE_LD_OUTPUT_DEF_FALSE
866 HAVE_LD_OUTPUT_DEF_TRUE
867 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
876 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
878 UNISTD_H_HAVE_WINSOCK2_H
904 GNULIB_UNISTD_H_SIGPIPE
925 NEXT_AS_FIRST_DIRECTIVE_STRING_H
983 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
995 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
998 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1008 GL_COND_LIBTOOL_FALSE
1009 GL_COND_LIBTOOL_TRUE
1020 XGETTEXT_EXTRA_OPTIONS
1028 GETTEXT_MACRO_VERSION
1086 INSTALL_STRIP_PROGRAM
1132 program_transform_name
1145 enable_option_checking
1146 enable_dependency_tracking
1155 with_libiconv_prefix
1160 with_packager_version
1161 with_packager_bug_reports
1162 enable_ld_version_script
1169 enable_valgrind_tests
1172 ac_precious_vars='build_alias
1186 # Initialize some variables set by options.
1188 ac_init_version=false
1189 ac_unrecognized_opts=
1190 ac_unrecognized_sep=
1191 # The variables have the same names as the options, with
1192 # dashes changed to underlines.
1193 cache_file=/dev/null
1200 program_transform_name=s,x,x,
1208 # Installation directory options.
1209 # These are left unexpanded so users can "make install exec_prefix=/foo"
1210 # and all the variables that are supposed to be based on exec_prefix
1211 # by default will actually change.
1212 # Use braces instead of parens because sh, perl, etc. also accept them.
1213 # (The list follows the same order as the GNU Coding Standards.)
1214 bindir='${exec_prefix}/bin'
1215 sbindir='${exec_prefix}/sbin'
1216 libexecdir='${exec_prefix}/libexec'
1217 datarootdir='${prefix}/share'
1218 datadir='${datarootdir}'
1219 sysconfdir='${prefix}/etc'
1220 sharedstatedir='${prefix}/com'
1221 localstatedir='${prefix}/var'
1222 includedir='${prefix}/include'
1223 oldincludedir='/usr/include'
1224 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1225 infodir='${datarootdir}/info'
1230 libdir='${exec_prefix}/lib'
1231 localedir='${datarootdir}/locale'
1232 mandir='${datarootdir}/man'
1238 # If the previous option needs an argument, assign it.
1239 if test -n "$ac_prev"; then
1240 eval $ac_prev=\$ac_option
1246 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1251 # Accept the important Cygnus configure options, so we can diagnose typos.
1253 case $ac_dashdash$ac_option in
1257 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1259 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1260 bindir=$ac_optarg ;;
1262 -build | --build | --buil | --bui | --bu)
1263 ac_prev=build_alias ;;
1264 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1265 build_alias=$ac_optarg ;;
1267 -cache-file | --cache-file | --cache-fil | --cache-fi \
1268 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1269 ac_prev=cache_file ;;
1270 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1271 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1272 cache_file=$ac_optarg ;;
1274 --config-cache | -C)
1275 cache_file=config.cache ;;
1277 -datadir | --datadir | --datadi | --datad)
1279 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1280 datadir=$ac_optarg ;;
1282 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1283 | --dataroo | --dataro | --datar)
1284 ac_prev=datarootdir ;;
1285 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1286 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1287 datarootdir=$ac_optarg ;;
1289 -disable-* | --disable-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid feature name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "enable_$ac_useropt"
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1303 eval enable_$ac_useropt=no ;;
1305 -docdir | --docdir | --docdi | --doc | --do)
1307 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1308 docdir=$ac_optarg ;;
1310 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1312 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1313 dvidir=$ac_optarg ;;
1315 -enable-* | --enable-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error $? "invalid feature name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1324 "enable_$ac_useropt"
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1329 eval enable_$ac_useropt=\$ac_optarg ;;
1331 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1332 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1333 | --exec | --exe | --ex)
1334 ac_prev=exec_prefix ;;
1335 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1336 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1337 | --exec=* | --exe=* | --ex=*)
1338 exec_prefix=$ac_optarg ;;
1340 -gas | --gas | --ga | --g)
1341 # Obsolete; use --with-gas.
1344 -help | --help | --hel | --he | -h)
1345 ac_init_help=long ;;
1346 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1347 ac_init_help=recursive ;;
1348 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1349 ac_init_help=short ;;
1351 -host | --host | --hos | --ho)
1352 ac_prev=host_alias ;;
1353 -host=* | --host=* | --hos=* | --ho=*)
1354 host_alias=$ac_optarg ;;
1356 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1358 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1360 htmldir=$ac_optarg ;;
1362 -includedir | --includedir | --includedi | --included | --include \
1363 | --includ | --inclu | --incl | --inc)
1364 ac_prev=includedir ;;
1365 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1366 | --includ=* | --inclu=* | --incl=* | --inc=*)
1367 includedir=$ac_optarg ;;
1369 -infodir | --infodir | --infodi | --infod | --info | --inf)
1371 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1372 infodir=$ac_optarg ;;
1374 -libdir | --libdir | --libdi | --libd)
1376 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1377 libdir=$ac_optarg ;;
1379 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1380 | --libexe | --libex | --libe)
1381 ac_prev=libexecdir ;;
1382 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1383 | --libexe=* | --libex=* | --libe=*)
1384 libexecdir=$ac_optarg ;;
1386 -localedir | --localedir | --localedi | --localed | --locale)
1387 ac_prev=localedir ;;
1388 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1389 localedir=$ac_optarg ;;
1391 -localstatedir | --localstatedir | --localstatedi | --localstated \
1392 | --localstate | --localstat | --localsta | --localst | --locals)
1393 ac_prev=localstatedir ;;
1394 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1395 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1396 localstatedir=$ac_optarg ;;
1398 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1400 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1401 mandir=$ac_optarg ;;
1403 -nfp | --nfp | --nf)
1404 # Obsolete; use --without-fp.
1407 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1408 | --no-cr | --no-c | -n)
1411 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1412 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1415 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1416 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1417 | --oldin | --oldi | --old | --ol | --o)
1418 ac_prev=oldincludedir ;;
1419 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1420 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1421 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1422 oldincludedir=$ac_optarg ;;
1424 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1426 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1427 prefix=$ac_optarg ;;
1429 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1430 | --program-pre | --program-pr | --program-p)
1431 ac_prev=program_prefix ;;
1432 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1433 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1434 program_prefix=$ac_optarg ;;
1436 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1437 | --program-suf | --program-su | --program-s)
1438 ac_prev=program_suffix ;;
1439 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1440 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1441 program_suffix=$ac_optarg ;;
1443 -program-transform-name | --program-transform-name \
1444 | --program-transform-nam | --program-transform-na \
1445 | --program-transform-n | --program-transform- \
1446 | --program-transform | --program-transfor \
1447 | --program-transfo | --program-transf \
1448 | --program-trans | --program-tran \
1449 | --progr-tra | --program-tr | --program-t)
1450 ac_prev=program_transform_name ;;
1451 -program-transform-name=* | --program-transform-name=* \
1452 | --program-transform-nam=* | --program-transform-na=* \
1453 | --program-transform-n=* | --program-transform-=* \
1454 | --program-transform=* | --program-transfor=* \
1455 | --program-transfo=* | --program-transf=* \
1456 | --program-trans=* | --program-tran=* \
1457 | --progr-tra=* | --program-tr=* | --program-t=*)
1458 program_transform_name=$ac_optarg ;;
1460 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1462 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1463 pdfdir=$ac_optarg ;;
1465 -psdir | --psdir | --psdi | --psd | --ps)
1467 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471 | -silent | --silent | --silen | --sile | --sil)
1474 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1476 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1478 sbindir=$ac_optarg ;;
1480 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1481 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1482 | --sharedst | --shareds | --shared | --share | --shar \
1484 ac_prev=sharedstatedir ;;
1485 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1486 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1487 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1489 sharedstatedir=$ac_optarg ;;
1491 -site | --site | --sit)
1493 -site=* | --site=* | --sit=*)
1496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1499 srcdir=$ac_optarg ;;
1501 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1502 | --syscon | --sysco | --sysc | --sys | --sy)
1503 ac_prev=sysconfdir ;;
1504 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1505 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1506 sysconfdir=$ac_optarg ;;
1508 -target | --target | --targe | --targ | --tar | --ta | --t)
1509 ac_prev=target_alias ;;
1510 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1511 target_alias=$ac_optarg ;;
1513 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1516 -version | --version | --versio | --versi | --vers | -V)
1517 ac_init_version=: ;;
1520 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1521 # Reject names that are not valid shell variable names.
1522 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523 as_fn_error $? "invalid package name: $ac_useropt"
1524 ac_useropt_orig=$ac_useropt
1525 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526 case $ac_user_opts in
1530 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1531 ac_unrecognized_sep=', ';;
1533 eval with_$ac_useropt=\$ac_optarg ;;
1535 -without-* | --without-*)
1536 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1537 # Reject names that are not valid shell variable names.
1538 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1539 as_fn_error $? "invalid package name: $ac_useropt"
1540 ac_useropt_orig=$ac_useropt
1541 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1542 case $ac_user_opts in
1546 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1547 ac_unrecognized_sep=', ';;
1549 eval with_$ac_useropt=no ;;
1552 # Obsolete; use --with-x.
1555 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1556 | --x-incl | --x-inc | --x-in | --x-i)
1557 ac_prev=x_includes ;;
1558 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1559 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1560 x_includes=$ac_optarg ;;
1562 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1563 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1564 ac_prev=x_libraries ;;
1565 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1566 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1567 x_libraries=$ac_optarg ;;
1569 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1570 Try \`$0 --help' for more information"
1574 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1575 # Reject names that are not valid shell variable names.
1576 case $ac_envvar in #(
1577 '' | [0-9]* | *[!_$as_cr_alnum]* )
1578 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1580 eval $ac_envvar=\$ac_optarg
1581 export $ac_envvar ;;
1584 # FIXME: should be removed in autoconf 3.0.
1585 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1586 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1587 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1588 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1594 if test -n "$ac_prev"; then
1595 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1596 as_fn_error $? "missing argument to $ac_option"
1599 if test -n "$ac_unrecognized_opts"; then
1600 case $enable_option_checking in
1602 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1603 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1607 # Check all directory arguments for consistency.
1608 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1609 datadir sysconfdir sharedstatedir localstatedir includedir \
1610 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1611 libdir localedir mandir
1613 eval ac_val=\$$ac_var
1614 # Remove trailing slashes.
1617 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1618 eval $ac_var=\$ac_val;;
1620 # Be sure to have absolute directory names.
1622 [\\/$]* | ?:[\\/]* ) continue;;
1623 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1625 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1628 # There might be people who depend on the old broken behavior: `$host'
1629 # used to hold the argument of --host etc.
1630 # FIXME: To remove some day.
1633 target=$target_alias
1635 # FIXME: To remove some day.
1636 if test "x$host_alias" != x; then
1637 if test "x$build_alias" = x; then
1638 cross_compiling=maybe
1639 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1640 If a cross compiler is detected then cross compile mode will be used" >&2
1641 elif test "x$build_alias" != "x$host_alias"; then
1647 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1649 test "$silent" = yes && exec 6>/dev/null
1652 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1653 ac_ls_di=`ls -di .` &&
1654 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1655 as_fn_error $? "working directory cannot be determined"
1656 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1657 as_fn_error $? "pwd does not report name of working directory"
1660 # Find the source files, if location was not specified.
1661 if test -z "$srcdir"; then
1662 ac_srcdir_defaulted=yes
1663 # Try the directory containing this script, then the parent directory.
1664 ac_confdir=`$as_dirname -- "$as_myself" ||
1665 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1666 X"$as_myself" : 'X\(//\)[^/]' \| \
1667 X"$as_myself" : 'X\(//\)$' \| \
1668 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1669 $as_echo X"$as_myself" |
1670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1688 if test ! -r "$srcdir/$ac_unique_file"; then
1692 ac_srcdir_defaulted=no
1694 if test ! -r "$srcdir/$ac_unique_file"; then
1695 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1696 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1698 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1700 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1702 # When building in place, set srcdir=.
1703 if test "$ac_abs_confdir" = "$ac_pwd"; then
1706 # Remove unnecessary trailing slashes from srcdir.
1707 # Double slashes in file names in object file debugging info
1708 # mess up M-x gdb in Emacs.
1710 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1712 for ac_var in $ac_precious_vars; do
1713 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1714 eval ac_env_${ac_var}_value=\$${ac_var}
1715 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1716 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1720 # Report the --help message.
1722 if test "$ac_init_help" = "long"; then
1723 # Omit some internal or obsolete options to make the list less imposing.
1724 # This message is too long to be a string in the A/UX 3.1 sh.
1726 \`configure' configures GNU Libidn 1.15 to adapt to many kinds of systems.
1728 Usage: $0 [OPTION]... [VAR=VALUE]...
1730 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1731 VAR=VALUE. See below for descriptions of some of the useful variables.
1733 Defaults for the options are specified in brackets.
1736 -h, --help display this help and exit
1737 --help=short display options specific to this package
1738 --help=recursive display the short help of all the included packages
1739 -V, --version display version information and exit
1740 -q, --quiet, --silent do not print \`checking ...' messages
1741 --cache-file=FILE cache test results in FILE [disabled]
1742 -C, --config-cache alias for \`--cache-file=config.cache'
1743 -n, --no-create do not create output files
1744 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1746 Installation directories:
1747 --prefix=PREFIX install architecture-independent files in PREFIX
1748 [$ac_default_prefix]
1749 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1752 By default, \`make install' will install all the files in
1753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1755 for instance \`--prefix=\$HOME'.
1757 For better control, use the options below.
1759 Fine tuning of the installation directories:
1760 --bindir=DIR user executables [EPREFIX/bin]
1761 --sbindir=DIR system admin executables [EPREFIX/sbin]
1762 --libexecdir=DIR program executables [EPREFIX/libexec]
1763 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1764 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1765 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1766 --libdir=DIR object code libraries [EPREFIX/lib]
1767 --includedir=DIR C header files [PREFIX/include]
1768 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1769 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1770 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1771 --infodir=DIR info documentation [DATAROOTDIR/info]
1772 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1773 --mandir=DIR man documentation [DATAROOTDIR/man]
1774 --docdir=DIR documentation root [DATAROOTDIR/doc/libidn]
1775 --htmldir=DIR html documentation [DOCDIR]
1776 --dvidir=DIR dvi documentation [DOCDIR]
1777 --pdfdir=DIR pdf documentation [DOCDIR]
1778 --psdir=DIR ps documentation [DOCDIR]
1784 --program-prefix=PREFIX prepend PREFIX to installed program names
1785 --program-suffix=SUFFIX append SUFFIX to installed program names
1786 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1789 --build=BUILD configure for building on BUILD [guessed]
1790 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1794 if test -n "$ac_init_help"; then
1795 case $ac_init_help in
1796 short | recursive ) echo "Configuration of GNU Libidn 1.15:";;
1801 --disable-option-checking ignore unrecognized --enable/--with options
1802 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1803 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
1806 --enable-shared[=PKGS] build shared libraries [default=yes]
1807 --enable-static[=PKGS] build static libraries [default=yes]
1808 --enable-fast-install[=PKGS]
1809 optimize for fast installation [default=yes]
1810 --disable-libtool-lock avoid locking (might break parallel builds)
1811 --disable-nls do not use Native Language Support
1812 --disable-rpath do not hardcode runtime library paths
1813 --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono)
1814 --enable-ld-version-script
1815 enable linker version script (default is enabled
1817 --disable-tld disable TLD code
1818 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1819 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1820 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1821 --enable-java enable Java API
1822 --enable-valgrind-tests run self tests under valgrind
1823 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
1826 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1827 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1828 --with-pic try to use only PIC/non-PIC objects [default=use
1830 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1831 --with-gnu-ld assume the C compiler uses GNU ld default=no
1832 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1833 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1834 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1835 --without-libintl-prefix don't search for libintl in includedir and libdir
1836 --with-lispdir override the default lisp directory
1837 --with-packager String identifying the packager of this software
1838 --with-packager-version Packager-specific version information
1839 --with-packager-bug-reports
1840 Packager info for bug reports (URL/e-mail/...)
1841 --with-html-dir=PATH path to installed docs
1843 Some influential environment variables:
1844 CC C compiler command
1845 CFLAGS C compiler flags
1846 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1847 nonstandard directory <lib dir>
1848 LIBS libraries to pass to the linker, e.g. -l<library>
1849 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1850 you have headers in a nonstandard directory <include dir>
1852 EMACS the Emacs editor command
1854 the Emacs library search path
1855 PKG_CONFIG path to pkg-config utility
1857 Use these variables to override the choices made by `configure' or to help
1858 it to find libraries and programs with nonstandard names/locations.
1860 Report bugs to <bug-libidn@gnu.org>.
1861 GNU Libidn home page: <http://www.gnu.org/software/libidn/>.
1862 General help using GNU software: <http://www.gnu.org/gethelp/>.
1867 if test "$ac_init_help" = "recursive"; then
1868 # If there are subdirs, report their specific --help.
1869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1870 test -d "$ac_dir" ||
1871 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1876 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1878 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1879 # A ".." for each directory in $ac_dir_suffix.
1880 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1881 case $ac_top_builddir_sub in
1882 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1883 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1886 ac_abs_top_builddir=$ac_pwd
1887 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1888 # for backward compatibility:
1889 ac_top_builddir=$ac_top_build_prefix
1892 .) # We are building in place.
1894 ac_top_srcdir=$ac_top_builddir_sub
1895 ac_abs_top_srcdir=$ac_pwd ;;
1896 [\\/]* | ?:[\\/]* ) # Absolute name.
1897 ac_srcdir=$srcdir$ac_dir_suffix;
1898 ac_top_srcdir=$srcdir
1899 ac_abs_top_srcdir=$srcdir ;;
1901 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1902 ac_top_srcdir=$ac_top_build_prefix$srcdir
1903 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1905 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1907 cd "$ac_dir" || { ac_status=$?; continue; }
1908 # Check for guested configure.
1909 if test -f "$ac_srcdir/configure.gnu"; then
1911 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1912 elif test -f "$ac_srcdir/configure"; then
1914 $SHELL "$ac_srcdir/configure" --help=recursive
1916 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1918 cd "$ac_pwd" || { ac_status=$?; break; }
1922 test -n "$ac_init_help" && exit $ac_status
1923 if $ac_init_version; then
1925 GNU Libidn configure 1.15
1926 generated by GNU Autoconf 2.67
1928 Copyright (C) 2010 Free Software Foundation, Inc.
1929 This configure script is free software; the Free Software Foundation
1930 gives unlimited permission to copy, distribute and modify it.
1932 Copyright (c) 2002-2008 Simon Josefsson <simon@josefsson.org>.
1937 ## ------------------------ ##
1938 ## Autoconf initialization. ##
1939 ## ------------------------ ##
1941 # ac_fn_c_try_compile LINENO
1942 # --------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_compile ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext
1948 if { { ac_try="$ac_compile"
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_compile") 2>conftest.err
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest.$ac_objext; then :
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_compile
1979 # ac_fn_c_try_cpp LINENO
1980 # ----------------------
1981 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_cpp conftest.$ac_ext"
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } > conftest.i && {
2001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2002 test ! -s conftest.err
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 as_fn_set_status $ac_retval
2016 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019 # the include files in INCLUDES and setting the cache variable VAR
2021 ac_fn_c_check_header_mongrel ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if eval "test \"\${$3+set}\"" = set; then :
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval "test \"\${$3+set}\"" = set; then :
2028 $as_echo_n "(cached) " >&6
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2034 # Is the header compilable?
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036 $as_echo_n "checking $2 usability... " >&6; }
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_header_compiler=yes
2045 ac_header_compiler=no
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049 $as_echo "$ac_header_compiler" >&6; }
2051 # Is the header present?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053 $as_echo_n "checking $2 presence... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 if ac_fn_c_try_cpp "$LINENO"; then :
2059 ac_header_preproc=yes
2061 ac_header_preproc=no
2063 rm -f conftest.err conftest.i conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065 $as_echo "$ac_header_preproc" >&6; }
2067 # So? What about this header?
2068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2079 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2083 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ( $as_echo "## --------------------------------- ##
2087 ## Report this to bug-libidn@gnu.org ##
2088 ## --------------------------------- ##"
2089 ) | sed "s/^/$as_me: WARNING: /" >&2
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval "test \"\${$3+set}\"" = set; then :
2095 $as_echo_n "(cached) " >&6
2097 eval "$3=\$ac_header_compiler"
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 } # ac_fn_c_check_header_mongrel
2107 # ac_fn_c_try_run LINENO
2108 # ----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110 # that executables *can* be run.
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if { { ac_try="$ac_link"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_link") 2>&5
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125 { { case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_try") 2>&5
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; }; }; then :
2137 $as_echo "$as_me: program exited with status $ac_status" >&5
2138 $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2141 ac_retval=$ac_status
2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 as_fn_set_status $ac_retval
2149 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists and can be compiled using the include files in
2152 # INCLUDES, setting the cache variable VAR accordingly.
2153 ac_fn_c_check_header_compile ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval "test \"\${$3+set}\"" = set; then :
2159 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_c_try_compile "$LINENO"; then :
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 } # ac_fn_c_check_header_compile
2180 # ac_fn_c_try_link LINENO
2181 # -----------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded.
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 rm -f conftest.$ac_objext conftest$ac_exeext
2187 if { { ac_try="$ac_link"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_link") 2>conftest.err
2196 if test -s conftest.err; then
2197 grep -v '^ *+' conftest.err >conftest.er1
2198 cat conftest.er1 >&5
2199 mv -f conftest.er1 conftest.err
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; } && {
2203 test -z "$ac_c_werror_flag" ||
2204 test ! -s conftest.err
2205 } && test -s conftest$ac_exeext && {
2206 test "$cross_compiling" = yes ||
2207 $as_test_x conftest$ac_exeext
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2216 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2217 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2218 # interfere with the next link command; also delete a directory that is
2219 # left behind by Apple's compiler. We do this before executing the actions.
2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222 as_fn_set_status $ac_retval
2224 } # ac_fn_c_try_link
2226 # ac_fn_c_check_func LINENO FUNC VAR
2227 # ----------------------------------
2228 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2229 ac_fn_c_check_func ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval "test \"\${$3+set}\"" = set; then :
2235 $as_echo_n "(cached) " >&6
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2241 #define $2 innocuous_$2
2243 /* System header to define __stub macros and hopefully few prototypes,
2244 which can conflict with char $2 (); below.
2245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2246 <limits.h> exists even on freestanding compilers. */
2249 # include <limits.h>
2251 # include <assert.h>
2256 /* Override any GCC internal prototype to avoid an error.
2257 Use char because int might match the return type of a GCC
2258 builtin and then its argument prototype would still apply. */
2263 /* The GNU C library defines this for functions which it implements
2264 to always fail with ENOSYS. Some functions are actually named
2265 something starting with __ and the normal name is an alias. */
2266 #if defined __stub_$2 || defined __stub___$2
2278 if ac_fn_c_try_link "$LINENO"; then :
2283 rm -f core conftest.err conftest.$ac_objext \
2284 conftest$ac_exeext conftest.$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291 } # ac_fn_c_check_func
2293 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2294 # --------------------------------------------
2295 # Tries to find the compile-time value of EXPR in a program that includes
2296 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2298 ac_fn_c_compute_int ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 if test "$cross_compiling" = yes; then
2302 # Depending upon the size, compute the lo and hi bounds.
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 static int test_array [1 - 2 * !(($2) >= 0)];
2316 if ac_fn_c_try_compile "$LINENO"; then :
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2325 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 ac_hi=$ac_mid; break
2335 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336 if test $ac_lo -le $ac_mid; then
2340 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2351 static int test_array [1 - 2 * !(($2) < 0)];
2358 if ac_fn_c_try_compile "$LINENO"; then :
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2367 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2374 if ac_fn_c_try_compile "$LINENO"; then :
2375 ac_lo=$ac_mid; break
2377 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2378 if test $ac_mid -le $ac_hi; then
2382 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 # Binary search between lo and hi bounds.
2393 while test "x$ac_lo" != "x$ac_hi"; do
2394 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2401 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2408 if ac_fn_c_try_compile "$LINENO"; then :
2411 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2423 static long int longval () { return $2; }
2424 static unsigned long int ulongval () { return $2; }
2431 FILE *f = fopen ("conftest.val", "w");
2436 long int i = longval ();
2439 fprintf (f, "%ld", i);
2443 unsigned long int i = ulongval ();
2446 fprintf (f, "%lu", i);
2448 /* Do not output a trailing newline, as this causes \r\n confusion
2449 on some platforms. */
2450 return ferror (f) || fclose (f) != 0;
2456 if ac_fn_c_try_run "$LINENO"; then :
2457 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2462 conftest.$ac_objext conftest.beam conftest.$ac_ext
2466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 as_fn_set_status $ac_retval
2469 } # ac_fn_c_compute_int
2471 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2472 # ---------------------------------------------
2473 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2475 ac_fn_c_check_decl ()
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 as_decl_name=`echo $2|sed 's/ *(.*//'`
2479 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2481 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2482 if eval "test \"\${$3+set}\"" = set; then :
2483 $as_echo_n "(cached) " >&6
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2491 #ifndef $as_decl_name
2493 (void) $as_decl_use;
2495 (void) $as_decl_name;
2503 if ac_fn_c_try_compile "$LINENO"; then :
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515 } # ac_fn_c_check_decl
2517 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2518 # -------------------------------------------
2519 # Tests whether TYPE exists after having included INCLUDES, setting cache
2520 # variable VAR accordingly.
2521 ac_fn_c_check_type ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if eval "test \"\${$3+set}\"" = set; then :
2527 $as_echo_n "(cached) " >&6
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2555 if ac_fn_c_try_compile "$LINENO"; then :
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_type
2570 cat >config.log <<_ACEOF
2571 This file contains any messages produced by compilers while
2572 running configure, to aid debugging if configure makes a mistake.
2574 It was created by GNU Libidn $as_me 1.15, which was
2575 generated by GNU Autoconf 2.67. Invocation command line was
2587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 $as_echo "PATH: $as_dir"
2627 # Keep a trace of the command line.
2628 # Strip out --no-create and --no-recursion so they do not pile up.
2629 # Strip out --silent because we don't want to record it for future runs.
2630 # Also quote any args containing shell meta-characters.
2631 # Make two passes to allow for proper duplicate-argument suppression.
2635 ac_must_keep_next=false
2641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2643 | -silent | --silent | --silen | --sile | --sil)
2646 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2651 as_fn_append ac_configure_args1 " '$ac_arg'"
2652 if test $ac_must_keep_next = true; then
2653 ac_must_keep_next=false # Got value, back to normal.
2656 *=* | --config-cache | -C | -disable-* | --disable-* \
2657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2659 | -with-* | --with-* | -without-* | --without-* | --x)
2660 case "$ac_configure_args0 " in
2661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2664 -* ) ac_must_keep_next=true ;;
2667 as_fn_append ac_configure_args " '$ac_arg'"
2672 { ac_configure_args0=; unset ac_configure_args0;}
2673 { ac_configure_args1=; unset ac_configure_args1;}
2675 # When interrupted or exit'd, cleanup temporary files, and complete
2676 # config.log. We remove comments because anyway the quotes in there
2677 # would cause problems or look ugly.
2678 # WARNING: Use '\'' to represent an apostrophe within the trap.
2679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2680 trap 'exit_status=$?
2681 # Save into config.log some information that might help in debugging.
2685 $as_echo "## ---------------- ##
2686 ## Cache variables. ##
2687 ## ---------------- ##"
2689 # The following way of writing the cache mishandles newlines in values,
2691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2692 eval ac_val=\$$ac_var
2696 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2697 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2700 _ | IFS | as_nl) ;; #(
2701 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2702 *) { eval $ac_var=; unset $ac_var;} ;;
2707 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2708 *${as_nl}ac_space=\ *)
2710 "s/'\''/'\''\\\\'\'''\''/g;
2711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2721 $as_echo "## ----------------- ##
2722 ## Output variables. ##
2723 ## ----------------- ##"
2725 for ac_var in $ac_subst_vars
2727 eval ac_val=\$$ac_var
2729 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2731 $as_echo "$ac_var='\''$ac_val'\''"
2735 if test -n "$ac_subst_files"; then
2736 $as_echo "## ------------------- ##
2737 ## File substitutions. ##
2738 ## ------------------- ##"
2740 for ac_var in $ac_subst_files
2742 eval ac_val=\$$ac_var
2744 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2746 $as_echo "$ac_var='\''$ac_val'\''"
2751 if test -s confdefs.h; then
2752 $as_echo "## ----------- ##
2759 test "$ac_signal" != 0 &&
2760 $as_echo "$as_me: caught signal $ac_signal"
2761 $as_echo "$as_me: exit $exit_status"
2763 rm -f core *.core core.conftest.* &&
2764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2767 for ac_signal in 1 2 13 15; do
2768 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2773 rm -f -r conftest* confdefs.h
2775 $as_echo "/* confdefs.h */" > confdefs.h
2777 # Predefined preprocessor variables.
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_NAME "$PACKAGE_NAME"
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2791 cat >>confdefs.h <<_ACEOF
2792 #define PACKAGE_STRING "$PACKAGE_STRING"
2795 cat >>confdefs.h <<_ACEOF
2796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE_URL "$PACKAGE_URL"
2804 # Let the site file select an alternate cache file if it wants to.
2805 # Prefer an explicitly selected file to automatically selected ones.
2808 if test -n "$CONFIG_SITE"; then
2809 # We do not want a PATH search for config.site.
2810 case $CONFIG_SITE in #((
2811 -*) ac_site_file1=./$CONFIG_SITE;;
2812 */*) ac_site_file1=$CONFIG_SITE;;
2813 *) ac_site_file1=./$CONFIG_SITE;;
2815 elif test "x$prefix" != xNONE; then
2816 ac_site_file1=$prefix/share/config.site
2817 ac_site_file2=$prefix/etc/config.site
2819 ac_site_file1=$ac_default_prefix/share/config.site
2820 ac_site_file2=$ac_default_prefix/etc/config.site
2822 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2824 test "x$ac_site_file" = xNONE && continue
2825 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2827 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2828 sed 's/^/| /' "$ac_site_file" >&5
2830 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error $? "failed to load site script $ac_site_file
2833 See \`config.log' for more details" "$LINENO" 5 ; }
2837 if test -r "$cache_file"; then
2838 # Some versions of bash will fail to source /dev/null (special files
2839 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2840 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2842 $as_echo "$as_me: loading cache $cache_file" >&6;}
2844 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2845 *) . "./$cache_file";;
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2850 $as_echo "$as_me: creating cache $cache_file" >&6;}
2854 gt_needs="$gt_needs "
2855 as_fn_append ac_header_list " errno.h"
2856 as_fn_append ac_header_list " stdarg.h"
2857 as_fn_append ac_header_list " sys/socket.h"
2858 as_fn_append ac_header_list " string.h"
2859 as_fn_append ac_header_list " unistd.h"
2860 as_fn_append ac_header_list " iconv.h"
2861 as_fn_append ac_header_list " stdint.h"
2862 as_fn_append ac_header_list " wchar.h"
2863 # Check that the precious variables saved in the cache have kept the same
2865 ac_cache_corrupted=false
2866 for ac_var in $ac_precious_vars; do
2867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2868 eval ac_new_set=\$ac_env_${ac_var}_set
2869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2870 eval ac_new_val=\$ac_env_${ac_var}_value
2871 case $ac_old_set,$ac_new_set in
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2874 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2875 ac_cache_corrupted=: ;;
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2878 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2879 ac_cache_corrupted=: ;;
2882 if test "x$ac_old_val" != "x$ac_new_val"; then
2883 # differences in whitespace do not lead to failure.
2884 ac_old_val_w=`echo x $ac_old_val`
2885 ac_new_val_w=`echo x $ac_new_val`
2886 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2888 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2889 ac_cache_corrupted=:
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2892 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2893 eval $ac_var=\$ac_old_val
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2896 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2898 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2901 # Pass precious variables to config.status.
2902 if test "$ac_new_set" = set; then
2904 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2905 *) ac_arg=$ac_var=$ac_new_val ;;
2907 case " $ac_configure_args " in
2908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2909 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2913 if $ac_cache_corrupted; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2917 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2918 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2920 ## -------------------- ##
2921 ## Main body of script. ##
2922 ## -------------------- ##
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 # Library code modified: REVISION++
2934 # Interfaces changed/added/removed: CURRENT++ REVISION=0
2935 # Interfaces added: AGE++
2936 # Interfaces removed: AGE=0
2945 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
2949 for ac_dir in build-aux "$srcdir"/build-aux; do
2950 if test -f "$ac_dir/install-sh"; then
2952 ac_install_sh="$ac_aux_dir/install-sh -c"
2954 elif test -f "$ac_dir/install.sh"; then
2956 ac_install_sh="$ac_aux_dir/install.sh -c"
2958 elif test -f "$ac_dir/shtool"; then
2960 ac_install_sh="$ac_aux_dir/shtool install -c"
2964 if test -z "$ac_aux_dir"; then
2965 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2968 # These three variables are undocumented and unsupported,
2969 # and are intended to be withdrawn in a future Autoconf release.
2970 # They can cause serious problems if a builder's source tree is in a directory
2971 # whose full name contains unusual characters.
2972 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2973 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2974 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2978 am__api_version='1.11'
2980 # Find a good install program. We prefer a C program (faster),
2981 # so one script is as good as another. But avoid the broken or
2982 # incompatible versions:
2983 # SysV /etc/install, /usr/sbin/install
2984 # SunOS /usr/etc/install
2985 # IRIX /sbin/install
2987 # AmigaOS /C/install, which installs bootblocks on floppy discs
2988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2991 # OS/2's system install, which has a completely different semantic
2992 # ./install, which can be erroneously created by make from ./install.sh.
2993 # Reject install programs that cannot install multiple files.
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2995 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2996 if test -z "$INSTALL"; then
2997 if test "${ac_cv_path_install+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 # Account for people who put trailing slashes in PATH elements.
3006 case $as_dir/ in #((
3007 ./ | .// | /[cC]/* | \
3008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3009 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3012 # OSF1 and SCO ODT 3.0 have their own names for install.
3013 # Don't use installbsd from OSF since it installs stuff as root
3015 for ac_prog in ginstall scoinst install; do
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3018 if test $ac_prog = install &&
3019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020 # AIX install. It has an incompatible calling convention.
3022 elif test $ac_prog = install &&
3023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024 # program-specific install script used by HP pwplus--don't use.
3027 rm -rf conftest.one conftest.two conftest.dir
3028 echo one > conftest.one
3029 echo two > conftest.two
3031 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3032 test -s conftest.one && test -s conftest.two &&
3033 test -s conftest.dir/conftest.one &&
3034 test -s conftest.dir/conftest.two
3036 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3049 rm -rf conftest.one conftest.two conftest.dir
3052 if test "${ac_cv_path_install+set}" = set; then
3053 INSTALL=$ac_cv_path_install
3055 # As a last resort, use the slow shell script. Don't cache a
3056 # value for INSTALL within a source directory, because that will
3057 # break other packages using the cache if that directory is
3058 # removed, or if the value is a relative name.
3059 INSTALL=$ac_install_sh
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3063 $as_echo "$INSTALL" >&6; }
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3074 $as_echo_n "checking whether build environment is sane... " >&6; }
3077 echo timestamp > conftest.file
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name. Accept space and tab only in the latter.
3083 *[\\\"\#\$\&\'\`$am_lf]*)
3084 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3087 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3088 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3091 # Do `set' in a subshell so we don't clobber the current shell's
3092 # arguments. Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3097 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3098 if test "$*" = "X"; then
3100 set X `ls -t "$srcdir/configure" conftest.file`
3103 if test "$*" != "X $srcdir/configure conftest.file" \
3104 && test "$*" != "X conftest.file $srcdir/configure"; then
3106 # If neither matched, then we have a broken ls. This can happen
3107 # if, for instance, CONFIG_SHELL is bash and it inherits a
3108 # broken ls alias from the environment. This has actually
3109 # happened. Such a system could not be considered "sane".
3110 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3111 alias in your environment" "$LINENO" 5
3114 test "$2" = conftest.file
3120 as_fn_error $? "newly created file is older than distributed files!
3121 Check your system clock" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124 $as_echo "yes" >&6; }
3125 test "$program_prefix" != NONE &&
3126 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3127 # Use a double $ so make ignores it.
3128 test "$program_suffix" != NONE &&
3129 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3130 # Double any \ or $.
3131 # By default was `s,x,x', remove it if useless.
3132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3135 # expand $ac_aux_dir to an absolute path
3136 am_aux_dir=`cd $ac_aux_dir && pwd`
3138 if test x"${MISSING+set}" != xset; then
3141 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3143 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --run true"; then
3148 am_missing_run="$MISSING --run "
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3152 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3155 if test x"${install_sh}" != xset; then
3158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3160 install_sh="\${SHELL} $am_aux_dir/install-sh"
3164 # Installed binaries are usually stripped using `strip' when the user
3165 # run `make install-strip'. However `strip' might not be the right
3166 # tool to use in cross-compilation environments, therefore Automake
3167 # will honor the `STRIP' environment variable to overrule this program.
3168 if test "$cross_compiling" != no; then
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_STRIP+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$STRIP"; then
3178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 STRIP=$ac_cv_prog_STRIP
3198 if test -n "$STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3200 $as_echo "$STRIP" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$ac_cv_prog_STRIP"; then
3210 # Extract the first word of "strip", so it can be a program name with args.
3211 set dummy strip; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3217 if test -n "$ac_ct_STRIP"; then
3218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_STRIP="strip"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3238 if test -n "$ac_ct_STRIP"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3240 $as_echo "$ac_ct_STRIP" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_ct_STRIP" = x; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3258 STRIP="$ac_cv_prog_STRIP"
3262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3266 if test -z "$MKDIR_P"; then
3267 if test "${ac_cv_path_mkdir+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3274 test -z "$as_dir" && as_dir=.
3275 for ac_prog in mkdir gmkdir; do
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3279 'mkdir (GNU coreutils) '* | \
3280 'mkdir (coreutils) '* | \
3281 'mkdir (fileutils) '4.1*)
3282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3292 test -d ./--version && rmdir ./--version
3293 if test "${ac_cv_path_mkdir+set}" = set; then
3294 MKDIR_P="$ac_cv_path_mkdir -p"
3296 # As a last resort, use the slow shell script. Don't cache a
3297 # value for MKDIR_P within a source directory, because that will
3298 # break other packages using the cache if that directory is
3299 # removed, or if the value is a relative name.
3300 MKDIR_P="$ac_install_sh -d"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3304 $as_echo "$MKDIR_P" >&6; }
3308 [\\/$]* | ?:[\\/]*) ;;
3309 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3312 for ac_prog in gawk mawk nawk awk
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_prog_AWK+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$AWK"; then
3322 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_AWK="$ac_prog"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 if test -n "$AWK"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3344 $as_echo "$AWK" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3351 test -n "$AWK" && break
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3355 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3357 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3358 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3359 $as_echo_n "(cached) " >&6
3361 cat >conftest.make <<\_ACEOF
3364 @echo '@@@%%%=$(MAKE)=@@@%%%'
3366 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3369 eval ac_cv_prog_make_${ac_make}_set=yes;;
3371 eval ac_cv_prog_make_${ac_make}_set=no;;
3375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 SET_MAKE="MAKE=${MAKE-make}"
3385 rm -rf .tst 2>/dev/null
3386 mkdir .tst 2>/dev/null
3387 if test -d .tst; then
3392 rmdir .tst 2>/dev/null
3394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3396 # is not polluted with repeated "-I."
3397 am__isrc=' -I$(srcdir)'
3398 # test to see if srcdir already configured
3399 if test -f $srcdir/config.status; then
3400 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3404 # test whether we have cygpath
3405 if test -z "$CYGPATH_W"; then
3406 if (cygpath --version) >/dev/null 2>/dev/null; then
3407 CYGPATH_W='cygpath -w'
3414 # Define the identity of the package.
3419 cat >>confdefs.h <<_ACEOF
3420 #define PACKAGE "$PACKAGE"
3424 cat >>confdefs.h <<_ACEOF
3425 #define VERSION "$VERSION"
3428 # Some tools Automake needs.
3430 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3433 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3436 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3442 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3444 # We need awk for the "check" target. The system "awk" is bad on
3446 # Always define AMTAR for backward compatibility.
3448 AMTAR=${AMTAR-"${am_missing_run}tar"}
3450 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3456 ac_config_headers="$ac_config_headers config.h"
3459 # Checks for programs.
3460 # Make sure we can run config.sub.
3461 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3462 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3465 $as_echo_n "checking build system type... " >&6; }
3466 if test "${ac_cv_build+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3469 ac_build_alias=$build_alias
3470 test "x$ac_build_alias" = x &&
3471 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3472 test "x$ac_build_alias" = x &&
3473 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3474 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3479 $as_echo "$ac_cv_build" >&6; }
3480 case $ac_cv_build in
3482 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3485 ac_save_IFS=$IFS; IFS='-'
3491 # Remember, the first character of IFS is used to create $*,
3492 # except with old shells:
3495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3499 $as_echo_n "checking host system type... " >&6; }
3500 if test "${ac_cv_host+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 if test "x$host_alias" = x; then
3504 ac_cv_host=$ac_cv_build
3506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3507 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3512 $as_echo "$ac_cv_host" >&6; }
3515 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3518 ac_save_IFS=$IFS; IFS='-'
3524 # Remember, the first character of IFS is used to create $*,
3525 # except with old shells:
3528 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3531 enable_win32_dll=yes
3534 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}as; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_AS+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$AS"; then
3544 ac_cv_prog_AS="$AS" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_AS="${ac_tool_prefix}as"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 if test -n "$AS"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3566 $as_echo "$AS" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3574 if test -z "$ac_cv_prog_AS"; then
3576 # Extract the first word of "as", so it can be a program name with args.
3577 set dummy as; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$ac_ct_AS"; then
3584 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_ac_ct_AS="as"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3604 if test -n "$ac_ct_AS"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3606 $as_echo "$ac_ct_AS" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3612 if test "x$ac_ct_AS" = x; then
3615 case $cross_compiling:$ac_tool_warned in
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$DLLTOOL"; then
3636 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 DLLTOOL=$ac_cv_prog_DLLTOOL
3656 if test -n "$DLLTOOL"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3658 $as_echo "$DLLTOOL" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3666 if test -z "$ac_cv_prog_DLLTOOL"; then
3667 ac_ct_DLLTOOL=$DLLTOOL
3668 # Extract the first word of "dlltool", so it can be a program name with args.
3669 set dummy dlltool; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$ac_ct_DLLTOOL"; then
3676 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3696 if test -n "$ac_ct_DLLTOOL"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3698 $as_echo "$ac_ct_DLLTOOL" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3704 if test "x$ac_ct_DLLTOOL" = x; then
3707 case $cross_compiling:$ac_tool_warned in
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3713 DLLTOOL=$ac_ct_DLLTOOL
3716 DLLTOOL="$ac_cv_prog_DLLTOOL"
3719 if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 if test -n "$OBJDUMP"; then
3728 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 OBJDUMP=$ac_cv_prog_OBJDUMP
3748 if test -n "$OBJDUMP"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3750 $as_echo "$OBJDUMP" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3758 if test -z "$ac_cv_prog_OBJDUMP"; then
3759 ac_ct_OBJDUMP=$OBJDUMP
3760 # Extract the first word of "objdump", so it can be a program name with args.
3761 set dummy objdump; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3767 if test -n "$ac_ct_OBJDUMP"; then
3768 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3788 if test -n "$ac_ct_OBJDUMP"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3790 $as_echo "$ac_ct_OBJDUMP" >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3796 if test "x$ac_ct_OBJDUMP" = x; then
3799 case $cross_compiling:$ac_tool_warned in
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803 ac_tool_warned=yes ;;
3805 OBJDUMP=$ac_ct_OBJDUMP
3808 OBJDUMP="$ac_cv_prog_OBJDUMP"
3814 test -z "$AS" && AS=as
3820 test -z "$DLLTOOL" && DLLTOOL=dlltool
3826 test -z "$OBJDUMP" && OBJDUMP=objdump
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3878 if test -z "$ac_cv_prog_CC"; then
3880 # Extract the first word of "gcc", so it can be a program name with args.
3881 set dummy gcc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3887 if test -n "$ac_ct_CC"; then
3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_ac_ct_CC="gcc"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908 if test -n "$ac_ct_CC"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910 $as_echo "$ac_ct_CC" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3916 if test "x$ac_ct_CC" = x; then
3919 case $cross_compiling:$ac_tool_warned in
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3923 ac_tool_warned=yes ;;
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}cc; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_prog_CC+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_CC="${ac_tool_prefix}cc"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 if test -n "$CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963 $as_echo "$CC" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3972 if test -z "$CC"; then
3973 # Extract the first word of "cc", so it can be a program name with args.
3974 set dummy cc; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_prog_CC+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3980 if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3992 ac_prog_rejected=yes
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 if test $ac_prog_rejected = yes; then
4004 # We found a bogon in the path, so make sure we never use it.
4005 set dummy $ac_cv_prog_CC
4007 if test $# != 0; then
4008 # We chose a different compiler from the bogus one.
4009 # However, it has the same basename, so the bogon will be chosen
4010 # first if we set CC to just the basename; use the full file name.
4012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4018 if test -n "$CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4028 if test -z "$CC"; then
4029 if test -n "$ac_tool_prefix"; then
4030 for ac_prog in cl.exe
4032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_CC+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 if test -n "$CC"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4062 $as_echo "$CC" >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4069 test -n "$CC" && break
4072 if test -z "$CC"; then
4074 for ac_prog in cl.exe
4076 # Extract the first word of "$ac_prog", so it can be a program name with args.
4077 set dummy $ac_prog; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_ac_ct_CC="$ac_prog"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104 if test -n "$ac_ct_CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106 $as_echo "$ac_ct_CC" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 test -n "$ac_ct_CC" && break
4116 if test "x$ac_ct_CC" = x; then
4119 case $cross_compiling:$ac_tool_warned in
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4123 ac_tool_warned=yes ;;
4132 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4134 as_fn_error $? "no acceptable C compiler found in \$PATH
4135 See \`config.log' for more details" "$LINENO" 5 ; }
4137 # Provide some information about the compiler.
4138 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4141 for ac_option in --version -v -V -qversion; do
4142 { { ac_try="$ac_compiler $ac_option >&5"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4151 if test -s conftest.err; then
4153 ... rest of stderr output deleted ...
4154 10q' conftest.err >conftest.er1
4155 cat conftest.er1 >&5
4157 rm -f conftest.er1 conftest.err
4158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4173 ac_clean_files_save=$ac_clean_files
4174 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4175 # Try to create an executable without -o first, disregard a.out.
4176 # It will help us diagnose broken compilers, and finding out an intuition
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4179 $as_echo_n "checking whether the C compiler works... " >&6; }
4180 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4182 # The possible output files:
4183 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4186 for ac_file in $ac_files
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4195 if { { ac_try="$ac_link_default"
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202 (eval "$ac_link_default") 2>&5
4204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }; then :
4206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4209 # so that the user can short-circuit this test for compilers unknown to
4211 for ac_file in $ac_files ''
4213 test -f "$ac_file" || continue
4215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4218 # We found the default executable, but exeext='' is most
4222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4226 # We set ac_cv_exeext here because the later test for it is not
4227 # safe: cross compilers may not add the suffix if given an `-o'
4228 # argument, so we may need to know it at that point already.
4229 # Even if this section looks crufty: it has the advantage of
4236 test "$ac_cv_exeext" = no && ac_cv_exeext=
4241 if test -z "$ac_file"; then :
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 $as_echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249 as_fn_error 77 "C compiler cannot create executables
4250 See \`config.log' for more details" "$LINENO" 5 ; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4253 $as_echo "yes" >&6; }
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4256 $as_echo_n "checking for C compiler default output file name... " >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4258 $as_echo "$ac_file" >&6; }
4259 ac_exeext=$ac_cv_exeext
4261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4262 ac_clean_files=$ac_clean_files_save
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4264 $as_echo_n "checking for suffix of executables... " >&6; }
4265 if { { ac_try="$ac_link"
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$ac_link") 2>&5
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }; then :
4276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4278 # work properly (i.e., refer to `conftest.exe'), while it won't with
4280 for ac_file in conftest.exe conftest conftest.*; do
4281 test -f "$ac_file" || continue
4283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4293 See \`config.log' for more details" "$LINENO" 5 ; }
4295 rm -f conftest conftest$ac_cv_exeext
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4297 $as_echo "$ac_cv_exeext" >&6; }
4299 rm -f conftest.$ac_ext
4300 EXEEXT=$ac_cv_exeext
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4308 FILE *f = fopen ("conftest.out", "w");
4309 return ferror (f) || fclose (f) != 0;
4315 ac_clean_files="$ac_clean_files conftest.out"
4316 # Check that the compiler produces executables we can run. If not, either
4317 # the compiler is broken, or we cross compile.
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4319 $as_echo_n "checking whether we are cross compiling... " >&6; }
4320 if test "$cross_compiling" != yes; then
4321 { { ac_try="$ac_link"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_link") 2>&5
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }
4332 if { ac_try='./conftest$ac_cv_exeext'
4333 { { case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 $as_echo "$ac_try_echo"; } >&5
4339 (eval "$ac_try") 2>&5
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }; }; then
4345 if test "$cross_compiling" = maybe; then
4348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4350 as_fn_error $? "cannot run C compiled programs.
4351 If you meant to cross compile, use \`--host'.
4352 See \`config.log' for more details" "$LINENO" 5 ; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4357 $as_echo "$cross_compiling" >&6; }
4359 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4360 ac_clean_files=$ac_clean_files_save
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4362 $as_echo_n "checking for suffix of object files... " >&6; }
4363 if test "${ac_cv_objext+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4377 rm -f conftest.o conftest.obj
4378 if { { ac_try="$ac_compile"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_compile") 2>&5
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }; then :
4389 for ac_file in conftest.o conftest.obj conftest.*; do
4390 test -f "$ac_file" || continue;
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4398 $as_echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "cannot compute suffix of object files: cannot compile
4404 See \`config.log' for more details" "$LINENO" 5 ; }
4406 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4409 $as_echo "$ac_cv_objext" >&6; }
4410 OBJEXT=$ac_cv_objext
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4413 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4414 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4431 if ac_fn_c_try_compile "$LINENO"; then :
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4441 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4442 if test $ac_compiler_gnu = yes; then
4447 ac_test_CFLAGS=${CFLAGS+set}
4448 ac_save_CFLAGS=$CFLAGS
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4450 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4451 if test "${ac_cv_prog_cc_g+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 ac_save_c_werror_flag=$ac_c_werror_flag
4455 ac_c_werror_flag=yes
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4469 if ac_fn_c_try_compile "$LINENO"; then :
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4484 if ac_fn_c_try_compile "$LINENO"; then :
4487 ac_c_werror_flag=$ac_save_c_werror_flag
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4500 if ac_fn_c_try_compile "$LINENO"; then :
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 ac_c_werror_flag=$ac_save_c_werror_flag
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4511 $as_echo "$ac_cv_prog_cc_g" >&6; }
4512 if test "$ac_test_CFLAGS" = set; then
4513 CFLAGS=$ac_save_CFLAGS
4514 elif test $ac_cv_prog_cc_g = yes; then
4515 if test "$GCC" = yes; then
4521 if test "$GCC" = yes; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4528 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4529 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 ac_cv_prog_cc_c89=no
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4538 #include <sys/types.h>
4539 #include <sys/stat.h>
4540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4541 struct buf { int x; };
4542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4543 static char *e (p, i)
4549 static char *f (char * (*g) (char **, int), char **p, ...)
4554 s = g (p, va_arg (v,int));
4559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4560 function prototypes and stuff, but not '\xHH' hex character constants.
4561 These don't provoke an error unfortunately, instead are silently treated
4562 as 'x'. The following induces an error, until -std is added to get
4563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4564 array size at least. It's necessary to write '\x00'==0 to get something
4565 that's true only with -std. */
4566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4568 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4569 inside strings and character constants. */
4571 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4573 int test (int i, double x);
4574 struct s1 {int (*f) (int a);};
4575 struct s2 {int (*f) (double a);};
4576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4587 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4590 CC="$ac_save_CC $ac_arg"
4591 if ac_fn_c_try_compile "$LINENO"; then :
4592 ac_cv_prog_cc_c89=$ac_arg
4594 rm -f core conftest.err conftest.$ac_objext
4595 test "x$ac_cv_prog_cc_c89" != "xno" && break
4597 rm -f conftest.$ac_ext
4602 case "x$ac_cv_prog_cc_c89" in
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4605 $as_echo "none needed" >&6; } ;;
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4608 $as_echo "unsupported" >&6; } ;;
4610 CC="$CC $ac_cv_prog_cc_c89"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4612 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4614 if test "x$ac_cv_prog_cc_c89" != xno; then :
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623 DEPDIR="${am__leading_dot}deps"
4625 ac_config_commands="$ac_config_commands depfiles"
4628 am_make=${MAKE-make}
4629 cat > confinc << 'END'
4631 @echo this is the am__doit target
4634 # If we don't find an include directive, just comment out the code.
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4636 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4640 # First try GNU make style include.
4641 echo "include confinc" > confmf
4642 # Ignore all kinds of additional output from `make'.
4643 case `$am_make -s -f confmf 2> /dev/null` in #(
4644 *the\ am__doit\ target*)
4650 # Now try BSD make style include.
4651 if test "$am__include" = "#"; then
4652 echo '.include "confinc"' > confmf
4653 case `$am_make -s -f confmf 2> /dev/null` in #(
4654 *the\ am__doit\ target*)
4655 am__include=.include
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4664 $as_echo "$_am_result" >&6; }
4665 rm -f confinc confmf
4667 # Check whether --enable-dependency-tracking was given.
4668 if test "${enable_dependency_tracking+set}" = set; then :
4669 enableval=$enable_dependency_tracking;
4672 if test "x$enable_dependency_tracking" != xno; then
4673 am_depcomp="$ac_aux_dir/depcomp"
4676 if test "x$enable_dependency_tracking" != xno; then
4686 depcc="$CC" am_compiler_list=
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4689 $as_echo_n "checking dependency style of $depcc... " >&6; }
4690 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4694 # We make a subdir and do the tests there. Otherwise we can end up
4695 # making bogus files that we don't know about and never remove. For
4696 # instance it was reported that on HP-UX the gcc test will end up
4697 # making a dummy file named `D' -- because `-MD' means `put the output
4700 # Copy depcomp to subdir because otherwise we won't find it if we're
4701 # using a relative directory.
4702 cp "$am_depcomp" conftest.dir
4704 # We will build objects and dependencies in a subdirectory because
4705 # it helps to detect inapplicable dependency modes. For instance
4706 # both Tru64's cc and ICC support -MD to output dependencies as a
4707 # side effect of compilation, but ICC will put the dependencies in
4708 # the current directory while Tru64 will put them in the object
4712 am_cv_CC_dependencies_compiler_type=none
4713 if test "$am_compiler_list" = ""; then
4714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4717 case " $depcc " in #(
4718 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4721 for depmode in $am_compiler_list; do
4722 # Setup a source with many dependencies, because some compilers
4723 # like to wrap large dependency lists on column 80 (with \), and
4724 # we should not choose a depcomp mode which is confused by this.
4726 # We need to recreate these files for each test, as the compiler may
4727 # overwrite some of them when testing with obscure command lines.
4728 # This happens at least with the AIX C compiler.
4730 for i in 1 2 3 4 5 6; do
4731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4733 # Solaris 8's {/usr,}/bin/sh.
4734 touch sub/conftst$i.h
4736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4738 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4739 # mode. It turns out that the SunPro C++ compiler does not properly
4740 # handle `-M -o', and we need to detect this. Also, some Intel
4741 # versions had trouble with output in subdirs
4742 am__obj=sub/conftest.${OBJEXT-o}
4743 am__minus_obj="-o $am__obj"
4746 # This depmode causes a compiler race in universal mode.
4747 test "$am__universal" = false || continue
4750 # after this tag, mechanisms are not by side-effect, so they'll
4751 # only be used when explicitly requested
4752 if test "x$enable_dependency_tracking" = xyes; then
4758 msvisualcpp | msvcmsys)
4759 # This compiler won't grok `-c -o', but also, the minuso test has
4760 # not run yet. These depmodes are late enough in the game, and
4761 # so weak that their functioning should not be impacted.
4762 am__obj=conftest.${OBJEXT-o}
4767 if depmode=$depmode \
4768 source=sub/conftest.c object=$am__obj \
4769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4770 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4771 >/dev/null 2>conftest.err &&
4772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4774 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4776 # icc doesn't choke on unknown options, it will just issue warnings
4777 # or remarks (even with -Werror). So we grep stderr for any message
4778 # that says an option was ignored or not supported.
4779 # When given -MP, icc 7.0 and 7.1 complain thusly:
4780 # icc: Command line warning: ignoring option '-M'; no argument required
4781 # The diagnosis changed in icc 8.0:
4782 # icc: Command line remark: option '-MP' not supported
4783 if (grep 'ignoring option' conftest.err ||
4784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4785 am_cv_CC_dependencies_compiler_type=$depmode
4794 am_cv_CC_dependencies_compiler_type=none
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4799 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4803 test "x$enable_dependency_tracking" != xno \
4804 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4806 am__fastdepCC_FALSE='#'
4808 am__fastdepCC_TRUE='#'
4809 am__fastdepCC_FALSE=
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$RANLIB"; then
4822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 RANLIB=$ac_cv_prog_RANLIB
4842 if test -n "$RANLIB"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4844 $as_echo "$RANLIB" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4852 if test -z "$ac_cv_prog_RANLIB"; then
4853 ac_ct_RANLIB=$RANLIB
4854 # Extract the first word of "ranlib", so it can be a program name with args.
4855 set dummy ranlib; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$ac_ct_RANLIB"; then
4862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_RANLIB="ranlib"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4882 if test -n "$ac_ct_RANLIB"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4884 $as_echo "$ac_ct_RANLIB" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4890 if test "x$ac_ct_RANLIB" = x; then
4893 case $cross_compiling:$ac_tool_warned in
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4899 RANLIB=$ac_ct_RANLIB
4902 RANLIB="$ac_cv_prog_RANLIB"
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4913 # On Suns, sometimes $CPP names a directory.
4914 if test -n "$CPP" && test -d "$CPP"; then
4917 if test -z "$CPP"; then
4918 if test "${ac_cv_prog_CPP+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 # Double quotes because CPP needs to be expanded
4922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4925 for ac_c_preproc_warn_flag in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4936 # include <limits.h>
4938 # include <assert.h>
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4945 # Broken: fails on valid input.
4948 rm -f conftest.err conftest.i conftest.$ac_ext
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4960 # Passes both tests.
4964 rm -f conftest.err conftest.i conftest.$ac_ext
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.i conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4982 $as_echo "$CPP" >&6; }
4984 for ac_c_preproc_warn_flag in '' yes
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4995 # include <limits.h>
4997 # include <assert.h>
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5004 # Broken: fails on valid input.
5007 rm -f conftest.err conftest.i conftest.$ac_ext
5009 # OK, works on sane cases. Now check whether nonexistent headers
5010 # can be detected and how.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <ac_nonexistent.h>
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: success on invalid input.
5019 # Passes both tests.
5023 rm -f conftest.err conftest.i conftest.$ac_ext
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.i conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then :
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details" "$LINENO" 5 ; }
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5046 if test "${ac_cv_path_GREP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -z "$GREP"; then
5050 ac_path_GREP_found=false
5051 # Loop through the user's path and test for each of PROGNAME-LIST
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5056 test -z "$as_dir" && as_dir=.
5057 for ac_prog in grep ggrep; do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5061 # Check for GNU ac_path_GREP and select it if it is found.
5062 # Check for GNU $ac_path_GREP
5063 case `"$ac_path_GREP" --version 2>&1` in
5065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5068 $as_echo_n 0123456789 >"conftest.in"
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 $as_echo 'GREP' >> "conftest.nl"
5075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val
5078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_GREP="$ac_path_GREP"
5081 ac_path_GREP_max=$ac_count
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5089 $ac_path_GREP_found && break 3
5094 if test -z "$ac_cv_path_GREP"; then
5095 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5098 ac_cv_path_GREP=$GREP
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5103 $as_echo "$ac_cv_path_GREP" >&6; }
5104 GREP="$ac_cv_path_GREP"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5108 $as_echo_n "checking for egrep... " >&6; }
5109 if test "${ac_cv_path_EGREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113 then ac_cv_path_EGREP="$GREP -E"
5115 if test -z "$EGREP"; then
5116 ac_path_EGREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in egrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5127 # Check for GNU ac_path_EGREP and select it if it is found.
5128 # Check for GNU $ac_path_EGREP
5129 case `"$ac_path_EGREP" --version 2>&1` in
5131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5134 $as_echo_n 0123456789 >"conftest.in"
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo 'EGREP' >> "conftest.nl"
5141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_EGREP="$ac_path_EGREP"
5147 ac_path_EGREP_max=$ac_count
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155 $ac_path_EGREP_found && break 3
5160 if test -z "$ac_cv_path_EGREP"; then
5161 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5164 ac_cv_path_EGREP=$EGREP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5170 $as_echo "$ac_cv_path_EGREP" >&6; }
5171 EGREP="$ac_cv_path_EGREP"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5175 $as_echo_n "checking for ANSI C header files... " >&6; }
5176 if test "${ac_cv_header_stdc+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 ac_cv_header_stdc=yes
5197 ac_cv_header_stdc=no
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 if test $ac_cv_header_stdc = yes; then
5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "memchr" >/dev/null 2>&1; then :
5212 ac_cv_header_stdc=no
5218 if test $ac_cv_header_stdc = yes; then
5219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "free" >/dev/null 2>&1; then :
5229 ac_cv_header_stdc=no
5235 if test $ac_cv_header_stdc = yes; then
5236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5237 if test "$cross_compiling" = yes; then :
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5244 #if ((' ' & 0x0FF) == 0x020)
5245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5248 # define ISLOWER(c) \
5249 (('a' <= (c) && (c) <= 'i') \
5250 || ('j' <= (c) && (c) <= 'r') \
5251 || ('s' <= (c) && (c) <= 'z'))
5252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5260 for (i = 0; i < 256; i++)
5261 if (XOR (islower (i), ISLOWER (i))
5262 || toupper (i) != TOUPPER (i))
5267 if ac_fn_c_try_run "$LINENO"; then :
5270 ac_cv_header_stdc=no
5272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273 conftest.$ac_objext conftest.beam conftest.$ac_ext
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279 $as_echo "$ac_cv_header_stdc" >&6; }
5280 if test $ac_cv_header_stdc = yes; then
5282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288 inttypes.h stdint.h unistd.h
5290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5294 cat >>confdefs.h <<_ACEOF
5295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5306 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5307 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5314 if test "$MINIX" = yes; then
5316 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5319 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5322 $as_echo "#define _MINIX 1" >>confdefs.h
5329 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5336 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5337 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5343 # define __EXTENSIONS__ 1
5344 $ac_includes_default
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_safe_to_define___extensions__=yes
5356 ac_cv_safe_to_define___extensions__=no
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5361 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5362 test $ac_cv_safe_to_define___extensions__ = yes &&
5363 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5365 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5367 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5369 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5371 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5384 case $ac_cv_prog_cc_stdc in #(
5386 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5389 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5390 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5393 ac_cv_prog_cc_c99=no
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5398 #include <stdbool.h>
5403 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5404 #define debug(...) fprintf (stderr, __VA_ARGS__)
5405 #define showlist(...) puts (#__VA_ARGS__)
5406 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5408 test_varargs_macros (void)
5413 debug ("X = %d\n", x);
5414 showlist (The first, second, and third items.);
5415 report (x>y, "x is %d but y is %d", x, y);
5418 // Check long long types.
5419 #define BIG64 18446744073709551615ull
5420 #define BIG32 4294967295ul
5421 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5423 your preprocessor is broken;
5427 your preprocessor is broken;
5429 static long long int bignum = -9223372036854775807LL;
5430 static unsigned long long int ubignum = BIG64;
5432 struct incomplete_array
5440 const wchar_t *name;
5444 typedef const char *ccp;
5447 test_restrict (ccp restrict text)
5449 // See if C++-style comments work.
5450 // Iterate through items via the restricted pointer.
5451 // Also check for declarations in for loops.
5452 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5457 // Check varargs and va_copy.
5459 test_varargs (const char *format, ...)
5462 va_start (args, format);
5464 va_copy (args_copy, args);
5475 str = va_arg (args_copy, const char *);
5478 number = va_arg (args_copy, int);
5481 fnumber = va_arg (args_copy, double);
5496 _Bool success = false;
5499 if (test_restrict ("String literal") == 0)
5501 char *restrict newvar = "Another string";
5504 test_varargs ("s, d' f .", "string", 65, 34.234);
5505 test_varargs_macros ();
5507 // Check flexible array members.
5508 struct incomplete_array *ia =
5509 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5511 for (int i = 0; i < ia->datasize; ++i)
5512 ia->data[i] = i * 1.234;
5514 // Check named initializers.
5515 struct named_init ni = {
5517 .name = L"Test wide string",
5518 .average = 543.34343,
5523 int dynamic_array[ni.number];
5524 dynamic_array[ni.number - 1] = 543;
5526 // work around unused variable warnings
5527 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5528 || dynamic_array[ni.number - 1] != 543);
5534 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5536 CC="$ac_save_CC $ac_arg"
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 ac_cv_prog_cc_c99=$ac_arg
5540 rm -f core conftest.err conftest.$ac_objext
5541 test "x$ac_cv_prog_cc_c99" != "xno" && break
5543 rm -f conftest.$ac_ext
5548 case "x$ac_cv_prog_cc_c99" in
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5551 $as_echo "none needed" >&6; } ;;
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5554 $as_echo "unsupported" >&6; } ;;
5556 CC="$CC $ac_cv_prog_cc_c99"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5558 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5560 if test "x$ac_cv_prog_cc_c99" != xno; then :
5561 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5564 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5565 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5568 ac_cv_prog_cc_c89=no
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5574 #include <sys/types.h>
5575 #include <sys/stat.h>
5576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5577 struct buf { int x; };
5578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5579 static char *e (p, i)
5585 static char *f (char * (*g) (char **, int), char **p, ...)
5590 s = g (p, va_arg (v,int));
5595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5596 function prototypes and stuff, but not '\xHH' hex character constants.
5597 These don't provoke an error unfortunately, instead are silently treated
5598 as 'x'. The following induces an error, until -std is added to get
5599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5600 array size at least. It's necessary to write '\x00'==0 to get something
5601 that's true only with -std. */
5602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5605 inside strings and character constants. */
5607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5609 int test (int i, double x);
5610 struct s1 {int (*f) (int a);};
5611 struct s2 {int (*f) (double a);};
5612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5626 CC="$ac_save_CC $ac_arg"
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628 ac_cv_prog_cc_c89=$ac_arg
5630 rm -f core conftest.err conftest.$ac_objext
5631 test "x$ac_cv_prog_cc_c89" != "xno" && break
5633 rm -f conftest.$ac_ext
5638 case "x$ac_cv_prog_cc_c89" in
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5641 $as_echo "none needed" >&6; } ;;
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5644 $as_echo "unsupported" >&6; } ;;
5646 CC="$CC $ac_cv_prog_cc_c89"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5650 if test "x$ac_cv_prog_cc_c89" != xno; then :
5651 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5653 ac_cv_prog_cc_stdc=no
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5660 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5661 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5665 case $ac_cv_prog_cc_stdc in #(
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5668 $as_echo "unsupported" >&6; } ;; #(
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5671 $as_echo "none needed" >&6; } ;; #(
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5674 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5683 if test -z "$AB_PACKAGE"; then
5684 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
5687 $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
5689 if test -z "$AB_VERSION"; then
5690 AB_VERSION=${PACKAGE_VERSION:-$VERSION}
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
5693 $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
5696 if test "$hostname"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
5698 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
5703 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
5704 if test "$?" != 0; then
5707 if test "$date"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
5709 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5718 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5723 macro_version='2.2.6'
5724 macro_revision='1.3012'
5738 ltmain="$ac_aux_dir/ltmain.sh"
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5741 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5742 if test "${ac_cv_path_SED+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5746 for ac_i in 1 2 3 4 5 6 7; do
5747 ac_script="$ac_script$as_nl$ac_script"
5749 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5750 { ac_script=; unset ac_script;}
5751 if test -z "$SED"; then
5752 ac_path_SED_found=false
5753 # Loop through the user's path and test for each of PROGNAME-LIST
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 test -z "$as_dir" && as_dir=.
5759 for ac_prog in sed gsed; do
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5762 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5763 # Check for GNU ac_path_SED and select it if it is found.
5764 # Check for GNU $ac_path_SED
5765 case `"$ac_path_SED" --version 2>&1` in
5767 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5770 $as_echo_n 0123456789 >"conftest.in"
5773 cat "conftest.in" "conftest.in" >"conftest.tmp"
5774 mv "conftest.tmp" "conftest.in"
5775 cp "conftest.in" "conftest.nl"
5776 $as_echo '' >> "conftest.nl"
5777 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5779 as_fn_arith $ac_count + 1 && ac_count=$as_val
5780 if test $ac_count -gt ${ac_path_SED_max-0}; then
5781 # Best one so far, save it but keep looking for a better one
5782 ac_cv_path_SED="$ac_path_SED"
5783 ac_path_SED_max=$ac_count
5785 # 10*(2^10) chars as input seems more than enough
5786 test $ac_count -gt 10 && break
5788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791 $ac_path_SED_found && break 3
5796 if test -z "$ac_cv_path_SED"; then
5797 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5805 $as_echo "$ac_cv_path_SED" >&6; }
5806 SED="$ac_cv_path_SED"
5809 test -z "$SED" && SED=sed
5810 Xsed="$SED -e 1s/^X//"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5823 $as_echo_n "checking for fgrep... " >&6; }
5824 if test "${ac_cv_path_FGREP+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5827 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5828 then ac_cv_path_FGREP="$GREP -F"
5830 if test -z "$FGREP"; then
5831 ac_path_FGREP_found=false
5832 # Loop through the user's path and test for each of PROGNAME-LIST
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5837 test -z "$as_dir" && as_dir=.
5838 for ac_prog in fgrep; do
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5841 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5842 # Check for GNU ac_path_FGREP and select it if it is found.
5843 # Check for GNU $ac_path_FGREP
5844 case `"$ac_path_FGREP" --version 2>&1` in
5846 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5849 $as_echo_n 0123456789 >"conftest.in"
5852 cat "conftest.in" "conftest.in" >"conftest.tmp"
5853 mv "conftest.tmp" "conftest.in"
5854 cp "conftest.in" "conftest.nl"
5855 $as_echo 'FGREP' >> "conftest.nl"
5856 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5858 as_fn_arith $ac_count + 1 && ac_count=$as_val
5859 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5860 # Best one so far, save it but keep looking for a better one
5861 ac_cv_path_FGREP="$ac_path_FGREP"
5862 ac_path_FGREP_max=$ac_count
5864 # 10*(2^10) chars as input seems more than enough
5865 test $ac_count -gt 10 && break
5867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5870 $ac_path_FGREP_found && break 3
5875 if test -z "$ac_cv_path_FGREP"; then
5876 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5879 ac_cv_path_FGREP=$FGREP
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5885 $as_echo "$ac_cv_path_FGREP" >&6; }
5886 FGREP="$ac_cv_path_FGREP"
5889 test -z "$GREP" && GREP=grep
5909 # Check whether --with-gnu-ld was given.
5910 if test "${with_gnu_ld+set}" = set; then :
5911 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5917 if test "$GCC" = yes; then
5918 # Check if gcc -print-prog-name=ld gives a path.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5920 $as_echo_n "checking for ld used by $CC... " >&6; }
5923 # gcc leaves a trailing carriage return which upsets mingw
5924 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5926 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5929 # Accept absolute paths.
5931 re_direlt='/[^/][^/]*/\.\./'
5932 # Canonicalize the pathname of ld
5933 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5934 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5935 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5937 test -z "$LD" && LD="$ac_prog"
5940 # If it fails, then pretend we aren't using GCC.
5944 # If it is relative, then search for the first ld in PATH.
5948 elif test "$with_gnu_ld" = yes; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5950 $as_echo_n "checking for GNU ld... " >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5953 $as_echo_n "checking for non-GNU ld... " >&6; }
5955 if test "${lt_cv_path_LD+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5958 if test -z "$LD"; then
5959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5960 for ac_dir in $PATH; do
5962 test -z "$ac_dir" && ac_dir=.
5963 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5964 lt_cv_path_LD="$ac_dir/$ac_prog"
5965 # Check to see if the program is GNU ld. I'd rather use --version,
5966 # but apparently some variants of GNU ld only accept -v.
5967 # Break only if it was the GNU/non-GNU ld that we prefer.
5968 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5969 *GNU* | *'with BFD'*)
5970 test "$with_gnu_ld" != no && break
5973 test "$with_gnu_ld" != yes && break
5980 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5985 if test -n "$LD"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5987 $as_echo "$LD" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5992 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5994 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5995 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5999 case `$LD -v 2>&1 </dev/null` in
6000 *GNU* | *'with BFD'*)
6001 lt_cv_prog_gnu_ld=yes
6004 lt_cv_prog_gnu_ld=no
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6009 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6010 with_gnu_ld=$lt_cv_prog_gnu_ld
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6021 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6022 if test "${lt_cv_path_NM+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6025 if test -n "$NM"; then
6026 # Let the user override the test.
6029 lt_nm_to_check="${ac_tool_prefix}nm"
6030 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6031 lt_nm_to_check="$lt_nm_to_check nm"
6033 for lt_tmp_nm in $lt_nm_to_check; do
6034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6037 test -z "$ac_dir" && ac_dir=.
6038 tmp_nm="$ac_dir/$lt_tmp_nm"
6039 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6040 # Check to see if the nm accepts a BSD-compat flag.
6041 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6042 # nm: unknown option "B" ignored
6043 # Tru64's nm complains that /dev/null is an invalid object file
6044 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6045 */dev/null* | *'Invalid file or object type'*)
6046 lt_cv_path_NM="$tmp_nm -B"
6050 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6052 lt_cv_path_NM="$tmp_nm -p"
6056 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6057 continue # so that we can try to find one that supports BSD flags
6066 : ${lt_cv_path_NM=no}
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6070 $as_echo "$lt_cv_path_NM" >&6; }
6071 if test "$lt_cv_path_NM" != "no"; then
6074 # Didn't find any BSD compatible name lister, look for dumpbin.
6075 if test -n "$ac_tool_prefix"; then
6076 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$DUMPBIN"; then
6086 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 DUMPBIN=$ac_cv_prog_DUMPBIN
6106 if test -n "$DUMPBIN"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6108 $as_echo "$DUMPBIN" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6115 test -n "$DUMPBIN" && break
6118 if test -z "$DUMPBIN"; then
6119 ac_ct_DUMPBIN=$DUMPBIN
6120 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6122 # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6129 if test -n "$ac_ct_DUMPBIN"; then
6130 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6150 if test -n "$ac_ct_DUMPBIN"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6152 $as_echo "$ac_ct_DUMPBIN" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6159 test -n "$ac_ct_DUMPBIN" && break
6162 if test "x$ac_ct_DUMPBIN" = x; then
6165 case $cross_compiling:$ac_tool_warned in
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6171 DUMPBIN=$ac_ct_DUMPBIN
6176 if test "$DUMPBIN" != ":"; then
6180 test -z "$NM" && NM=nm
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6188 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6189 if test "${lt_cv_nm_interface+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6192 lt_cv_nm_interface="BSD nm"
6193 echo "int some_variable = 0;" > conftest.$ac_ext
6194 (eval echo "\"\$as_me:6194: $ac_compile\"" >&5)
6195 (eval "$ac_compile" 2>conftest.err)
6196 cat conftest.err >&5
6197 (eval echo "\"\$as_me:6197: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6198 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6199 cat conftest.err >&5
6200 (eval echo "\"\$as_me:6200: output\"" >&5)
6201 cat conftest.out >&5
6202 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6203 lt_cv_nm_interface="MS dumpbin"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6208 $as_echo "$lt_cv_nm_interface" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6211 $as_echo_n "checking whether ln -s works... " >&6; }
6213 if test "$LN_S" = "ln -s"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6215 $as_echo "yes" >&6; }
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6218 $as_echo "no, using $LN_S" >&6; }
6221 # find the maximum length of command line arguments
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6223 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6224 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6232 # On DJGPP, this test can blow up pretty badly due to problems in libc
6233 # (any single argument exceeding 2000 bytes causes a buffer overrun
6234 # during glob expansion). Even if it were fixed, the result of this
6235 # check would be larger than it should be.
6236 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6240 # Under GNU Hurd, this test is not required because there is
6241 # no limit to the length of command line arguments.
6242 # Libtool will interpret -1 as no limit whatsoever
6243 lt_cv_sys_max_cmd_len=-1;
6246 cygwin* | mingw* | cegcc*)
6247 # On Win9x/ME, this test blows up -- it succeeds, but takes
6248 # about 5 minutes as the teststring grows exponentially.
6249 # Worse, since 9x/ME are not pre-emptively multitasking,
6250 # you end up with a "frozen" computer, even though with patience
6251 # the test eventually succeeds (with a max line length of 256k).
6252 # Instead, let's just punt: use the minimum linelength reported by
6253 # all of the supported platforms: 8192 (on NT/2K/XP).
6254 lt_cv_sys_max_cmd_len=8192;
6258 # On AmigaOS with pdksh, this test takes hours, literally.
6259 # So we just punt and use a minimum line length of 8192.
6260 lt_cv_sys_max_cmd_len=8192;
6263 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6264 # This has been around since 386BSD, at least. Likely further.
6265 if test -x /sbin/sysctl; then
6266 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6267 elif test -x /usr/sbin/sysctl; then
6268 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6270 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6272 # And add a safety zone
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6278 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6279 lt_cv_sys_max_cmd_len=196608
6283 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6284 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6285 # nice to cause kernel panics so lets avoid the loop below.
6286 # First set a reasonable default.
6287 lt_cv_sys_max_cmd_len=16384
6289 if test -x /sbin/sysconfig; then
6290 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6291 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6296 lt_cv_sys_max_cmd_len=102400
6298 sysv5* | sco5v6* | sysv4.2uw2*)
6299 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6300 if test -n "$kargmax"; then
6301 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6303 lt_cv_sys_max_cmd_len=32768
6307 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6308 if test -n "$lt_cv_sys_max_cmd_len"; then
6309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6312 # Make teststring a little bigger before we do anything with it.
6313 # a 1K string should be a reasonable start.
6314 for i in 1 2 3 4 5 6 7 8 ; do
6315 teststring=$teststring$teststring
6317 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6318 # If test is not a shell built-in, we'll probably end up computing a
6319 # maximum length that is only half of the actual maximum length, but
6321 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6322 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6323 test $i != 17 # 1/2 MB should be enough
6326 teststring=$teststring$teststring
6328 # Only check the string length outside the loop.
6329 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6331 # Add a significant safety factor because C++ compilers can tack on
6332 # massive amounts of additional arguments before passing them to the
6333 # linker. It appears as though 1/2 is a usable value.
6334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6341 if test -n $lt_cv_sys_max_cmd_len ; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6343 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6346 $as_echo "none" >&6; }
6348 max_cmd_len=$lt_cv_sys_max_cmd_len
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6360 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6361 # Try some XSI features
6364 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6366 && eval 'test $(( 1 + 1 )) -eq 2 \
6367 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6370 $as_echo "$xsi_shell" >&6; }
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6374 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6376 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6378 && lt_shell_append=yes
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6380 $as_echo "$lt_shell_append" >&6; }
6383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6393 # test EBCDIC or ASCII
6394 case `echo X|tr X '\101'` in
6395 A) # ASCII based system
6396 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6397 lt_SP2NL='tr \040 \012'
6398 lt_NL2SP='tr \015\012 \040\040'
6400 *) # EBCDIC based system
6401 lt_SP2NL='tr \100 \n'
6402 lt_NL2SP='tr \r\n \100\100'
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6415 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6416 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6419 lt_cv_ld_reload_flag='-r'
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6422 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6423 reload_flag=$lt_cv_ld_reload_flag
6424 case $reload_flag in
6426 *) reload_flag=" $reload_flag" ;;
6428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6431 if test "$GCC" = yes; then
6432 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6455 if test -n "$OBJDUMP"; then
6456 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 OBJDUMP=$ac_cv_prog_OBJDUMP
6476 if test -n "$OBJDUMP"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6478 $as_echo "$OBJDUMP" >&6; }
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6486 if test -z "$ac_cv_prog_OBJDUMP"; then
6487 ac_ct_OBJDUMP=$OBJDUMP
6488 # Extract the first word of "objdump", so it can be a program name with args.
6489 set dummy objdump; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6495 if test -n "$ac_ct_OBJDUMP"; then
6496 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6516 if test -n "$ac_ct_OBJDUMP"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6518 $as_echo "$ac_ct_OBJDUMP" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6524 if test "x$ac_ct_OBJDUMP" = x; then
6527 case $cross_compiling:$ac_tool_warned in
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6533 OBJDUMP=$ac_ct_OBJDUMP
6536 OBJDUMP="$ac_cv_prog_OBJDUMP"
6539 test -z "$OBJDUMP" && OBJDUMP=objdump
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6547 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6548 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6551 lt_cv_file_magic_cmd='$MAGIC_CMD'
6552 lt_cv_file_magic_test_file=
6553 lt_cv_deplibs_check_method='unknown'
6554 # Need to set the preceding variable on all platforms that support
6555 # interlibrary dependencies.
6556 # 'none' -- dependencies not supported.
6557 # `unknown' -- same as none, but documents that we really don't know.
6558 # 'pass_all' -- all dependencies passed with no checks.
6559 # 'test_compile' -- check by making test program.
6560 # 'file_magic [[regex]]' -- check by looking for files in library path
6561 # which responds to the $file_magic_cmd with a given extended regex.
6562 # If you have `file' or equivalent on your system and you're not sure
6563 # whether `pass_all' will *always* work, you probably want this one.
6567 lt_cv_deplibs_check_method=pass_all
6571 lt_cv_deplibs_check_method=pass_all
6575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6576 lt_cv_file_magic_cmd='/usr/bin/file -L'
6577 lt_cv_file_magic_test_file=/shlib/libc.so
6581 # func_win32_libid is a shell function defined in ltmain.sh
6582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6583 lt_cv_file_magic_cmd='func_win32_libid'
6587 # Base MSYS/MinGW do not provide the 'file' command needed by
6588 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6589 # unless we find 'file', for example because we are cross-compiling.
6590 if ( file / ) >/dev/null 2>&1; then
6591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6592 lt_cv_file_magic_cmd='func_win32_libid'
6594 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6595 lt_cv_file_magic_cmd='$OBJDUMP -f'
6600 # use the weaker test based on 'objdump'. See mingw*.
6601 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6602 lt_cv_file_magic_cmd='$OBJDUMP -f'
6605 darwin* | rhapsody*)
6606 lt_cv_deplibs_check_method=pass_all
6609 freebsd* | dragonfly*)
6610 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6613 # Not sure whether the presence of OpenBSD here was a mistake.
6614 # Let's accept both of them until this is cleared up.
6615 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6616 lt_cv_file_magic_cmd=/usr/bin/file
6617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6621 lt_cv_deplibs_check_method=pass_all
6626 lt_cv_deplibs_check_method=pass_all
6629 hpux10.20* | hpux11*)
6630 lt_cv_file_magic_cmd=/usr/bin/file
6633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6634 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6638 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6642 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6648 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6652 irix5* | irix6* | nonstopux*)
6654 *-32|*"-32 ") libmagic=32-bit;;
6655 *-n32|*"-n32 ") libmagic=N32;;
6656 *-64|*"-64 ") libmagic=64-bit;;
6657 *) libmagic=never-match;;
6659 lt_cv_deplibs_check_method=pass_all
6662 # This must be Linux ELF.
6663 linux* | k*bsd*-gnu)
6664 lt_cv_deplibs_check_method=pass_all
6668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6677 lt_cv_file_magic_cmd=/usr/bin/file
6678 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6682 lt_cv_deplibs_check_method=pass_all
6686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6693 osf3* | osf4* | osf5*)
6694 lt_cv_deplibs_check_method=pass_all
6698 lt_cv_deplibs_check_method=pass_all
6702 lt_cv_deplibs_check_method=pass_all
6705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6706 lt_cv_deplibs_check_method=pass_all
6710 case $host_vendor in
6712 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]'
6713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6716 lt_cv_deplibs_check_method=pass_all
6719 lt_cv_file_magic_cmd='/bin/file'
6720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6723 lt_cv_file_magic_cmd='/bin/file'
6724 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6725 lt_cv_file_magic_test_file=/lib/libc.so
6728 lt_cv_deplibs_check_method=pass_all
6731 lt_cv_deplibs_check_method=pass_all
6737 lt_cv_deplibs_check_method=pass_all
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6743 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6744 file_magic_cmd=$lt_cv_file_magic_cmd
6745 deplibs_check_method=$lt_cv_deplibs_check_method
6746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}ar; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_AR+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6767 if test -n "$AR"; then
6768 ac_cv_prog_AR="$AR" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_AR="${ac_tool_prefix}ar"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 if test -n "$AR"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6790 $as_echo "$AR" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6798 if test -z "$ac_cv_prog_AR"; then
6800 # Extract the first word of "ar", so it can be a program name with args.
6801 set dummy ar; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6807 if test -n "$ac_ct_AR"; then
6808 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_AR="ar"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6828 if test -n "$ac_ct_AR"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6830 $as_echo "$ac_ct_AR" >&6; }
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6836 if test "x$ac_ct_AR" = x; then
6839 case $cross_compiling:$ac_tool_warned in
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6851 test -z "$AR" && AR=ar
6852 test -z "$AR_FLAGS" && AR_FLAGS=cru
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}strip; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if test "${ac_cv_prog_STRIP+set}" = set; then :
6870 $as_echo_n "(cached) " >&6
6872 if test -n "$STRIP"; then
6873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 STRIP=$ac_cv_prog_STRIP
6893 if test -n "$STRIP"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6895 $as_echo "$STRIP" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6903 if test -z "$ac_cv_prog_STRIP"; then
6905 # Extract the first word of "strip", so it can be a program name with args.
6906 set dummy strip; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6912 if test -n "$ac_ct_STRIP"; then
6913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_ac_ct_STRIP="strip"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6933 if test -n "$ac_ct_STRIP"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6935 $as_echo "$ac_ct_STRIP" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6941 if test "x$ac_ct_STRIP" = x; then
6944 case $cross_compiling:$ac_tool_warned in
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6953 STRIP="$ac_cv_prog_STRIP"
6956 test -z "$STRIP" && STRIP=:
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6971 if test -n "$RANLIB"; then
6972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 RANLIB=$ac_cv_prog_RANLIB
6992 if test -n "$RANLIB"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6994 $as_echo "$RANLIB" >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7002 if test -z "$ac_cv_prog_RANLIB"; then
7003 ac_ct_RANLIB=$RANLIB
7004 # Extract the first word of "ranlib", so it can be a program name with args.
7005 set dummy ranlib; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7011 if test -n "$ac_ct_RANLIB"; then
7012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_ac_ct_RANLIB="ranlib"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7032 if test -n "$ac_ct_RANLIB"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7034 $as_echo "$ac_ct_RANLIB" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7040 if test "x$ac_ct_RANLIB" = x; then
7043 case $cross_compiling:$ac_tool_warned in
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7049 RANLIB=$ac_ct_RANLIB
7052 RANLIB="$ac_cv_prog_RANLIB"
7055 test -z "$RANLIB" && RANLIB=:
7062 # Determine commands to create old-style static archives.
7063 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7064 old_postinstall_cmds='chmod 644 $oldlib'
7065 old_postuninstall_cmds=
7067 if test -n "$RANLIB"; then
7070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7076 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7112 # If no C compiler was specified, use CC.
7115 # If no C compiler flags were specified, use CFLAGS.
7116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7118 # Allow CC to be a program name with arguments.
7122 # Check for command to grab the raw symbol name followed by C symbol from nm.
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7124 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7125 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7129 # These are sane defaults that work on at least a few old systems.
7130 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7132 # Character class describing NM global symbol codes.
7133 symcode='[BCDEGRST]'
7135 # Regexp to match symbols that can be accessed directly from C.
7136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7138 # Define system-specific variables.
7143 cygwin* | mingw* | pw32* | cegcc*)
7144 symcode='[ABCDGISTW]'
7147 if test "$host_cpu" = ia64; then
7148 symcode='[ABCDEGRST]'
7152 symcode='[BCDEGRST]'
7155 symcode='[BCDEGQRST]'
7166 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7174 # If we're using GNU nm, then use its standard symbol codes.
7175 case `$NM -V 2>&1` in
7176 *GNU* | *'with BFD'*)
7177 symcode='[ABCDGIRSTW]' ;;
7180 # Transform an extracted symbol line into a proper C declaration.
7181 # Some systems (esp. on ia64) link data and code symbols differently,
7182 # so use this general approach.
7183 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7185 # Transform an extracted symbol line into symbol name and symbol address
7186 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7187 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'"
7189 # Handle CRLF in mingw tool chain
7193 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7197 # Try without a prefix underscore, then with it.
7198 for ac_symprfx in "" "_"; do
7200 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7201 symxfrm="\\1 $ac_symprfx\\2 \\2"
7203 # Write the raw and C identifiers.
7204 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7205 # Fake it for dumpbin and say T for any non-static function
7206 # and D for any global variable.
7207 # Also find C++ and __fastcall symbols from MSVC++,
7208 # which start with @ or ?.
7209 lt_cv_sys_global_symbol_pipe="$AWK '"\
7210 " {last_section=section; section=\$ 3};"\
7211 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7212 " \$ 0!~/External *\|/{next};"\
7213 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7214 " {if(hide[section]) next};"\
7215 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7216 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7217 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7218 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7219 " ' prfx=^$ac_symprfx"
7221 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7224 # Check to see that the pipe works correctly.
7228 cat > conftest.$ac_ext <<_LT_EOF
7233 void nm_test_func(void);
7234 void nm_test_func(void){}
7238 int main(){nm_test_var='a';nm_test_func();return(0);}
7241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7242 (eval $ac_compile) 2>&5
7244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245 test $ac_status = 0; }; then
7246 # Now try to grab the symbols.
7248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7249 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7252 test $ac_status = 0; } && test -s "$nlist"; then
7253 # Try sorting and uniquifying the output.
7254 if sort "$nlist" | uniq > "$nlist"T; then
7255 mv -f "$nlist"T "$nlist"
7260 # Make sure that we snagged all the symbols we need.
7261 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7262 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7263 cat <<_LT_EOF > conftest.$ac_ext
7269 # Now generate the symbol file.
7270 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7272 cat <<_LT_EOF >> conftest.$ac_ext
7274 /* The mapping between symbol names and symbols. */
7279 lt__PROGRAM__LTX_preloaded_symbols[] =
7281 { "@PROGRAM@", (void *) 0 },
7283 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7284 cat <<\_LT_EOF >> conftest.$ac_ext
7288 /* This works around a problem in FreeBSD linker */
7289 #ifdef FREEBSD_WORKAROUND
7290 static const void *lt_preloaded_setup() {
7291 return lt__PROGRAM__LTX_preloaded_symbols;
7299 # Now try linking the two files.
7300 mv conftest.$ac_objext conftstm.$ac_objext
7301 lt_save_LIBS="$LIBS"
7302 lt_save_CFLAGS="$CFLAGS"
7303 LIBS="conftstm.$ac_objext"
7304 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7306 (eval $ac_link) 2>&5
7308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7309 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7312 LIBS="$lt_save_LIBS"
7313 CFLAGS="$lt_save_CFLAGS"
7315 echo "cannot find nm_test_func in $nlist" >&5
7318 echo "cannot find nm_test_var in $nlist" >&5
7321 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7324 echo "$progname: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7327 rm -rf conftest* conftst*
7329 # Do not use the global_symbol_pipe unless it works.
7330 if test "$pipe_works" = yes; then
7333 lt_cv_sys_global_symbol_pipe=
7339 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7340 lt_cv_sys_global_symbol_to_cdecl=
7342 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7344 $as_echo "failed" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7347 $as_echo "ok" >&6; }
7371 # Check whether --enable-libtool-lock was given.
7372 if test "${enable_libtool_lock+set}" = set; then :
7373 enableval=$enable_libtool_lock;
7376 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7378 # Some flags need to be propagated to the compiler or linker for good
7382 # Find out which ABI we are using.
7383 echo 'int i;' > conftest.$ac_ext
7384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385 (eval $ac_compile) 2>&5
7387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388 test $ac_status = 0; }; then
7389 case `/usr/bin/file conftest.$ac_objext` in
7401 # Find out which ABI we are using.
7402 echo '#line 7402 "configure"' > conftest.$ac_ext
7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404 (eval $ac_compile) 2>&5
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 if test "$lt_cv_prog_gnu_ld" = yes; then
7409 case `/usr/bin/file conftest.$ac_objext` in
7411 LD="${LD-ld} -melf32bsmip"
7414 LD="${LD-ld} -melf32bmipn32"
7417 LD="${LD-ld} -melf64bmip"
7421 case `/usr/bin/file conftest.$ac_objext` in
7437 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7438 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7439 # Find out which ABI we are using.
7440 echo 'int i;' > conftest.$ac_ext
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442 (eval $ac_compile) 2>&5
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
7446 case `/usr/bin/file conftest.o` in
7449 x86_64-*kfreebsd*-gnu)
7450 LD="${LD-ld} -m elf_i386_fbsd"
7453 LD="${LD-ld} -m elf_i386"
7455 ppc64-*linux*|powerpc64-*linux*)
7456 LD="${LD-ld} -m elf32ppclinux"
7459 LD="${LD-ld} -m elf_s390"
7462 LD="${LD-ld} -m elf32_sparc"
7468 x86_64-*kfreebsd*-gnu)
7469 LD="${LD-ld} -m elf_x86_64_fbsd"
7472 LD="${LD-ld} -m elf_x86_64"
7474 ppc*-*linux*|powerpc*-*linux*)
7475 LD="${LD-ld} -m elf64ppc"
7477 s390*-*linux*|s390*-*tpf*)
7478 LD="${LD-ld} -m elf64_s390"
7481 LD="${LD-ld} -m elf64_sparc"
7491 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7492 SAVE_CFLAGS="$CFLAGS"
7493 CFLAGS="$CFLAGS -belf"
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7495 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7496 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7500 ac_cpp='$CPP $CPPFLAGS'
7501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7516 if ac_fn_c_try_link "$LINENO"; then :
7517 lt_cv_cc_needs_belf=yes
7519 lt_cv_cc_needs_belf=no
7521 rm -f core conftest.err conftest.$ac_objext \
7522 conftest$ac_exeext conftest.$ac_ext
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7531 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7532 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7533 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7534 CFLAGS="$SAVE_CFLAGS"
7538 # Find out which ABI we are using.
7539 echo 'int i;' > conftest.$ac_ext
7540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7541 (eval $ac_compile) 2>&5
7543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; }; then
7545 case `/usr/bin/file conftest.o` in
7547 case $lt_cv_prog_gnu_ld in
7548 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7550 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7562 need_locks="$enable_libtool_lock"
7566 rhapsody* | darwin*)
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7575 if test -n "$DSYMUTIL"; then
7576 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7596 if test -n "$DSYMUTIL"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7598 $as_echo "$DSYMUTIL" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7606 if test -z "$ac_cv_prog_DSYMUTIL"; then
7607 ac_ct_DSYMUTIL=$DSYMUTIL
7608 # Extract the first word of "dsymutil", so it can be a program name with args.
7609 set dummy dsymutil; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7613 $as_echo_n "(cached) " >&6
7615 if test -n "$ac_ct_DSYMUTIL"; then
7616 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7636 if test -n "$ac_ct_DSYMUTIL"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7638 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7644 if test "x$ac_ct_DSYMUTIL" = x; then
7647 case $cross_compiling:$ac_tool_warned in
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7653 DSYMUTIL=$ac_ct_DSYMUTIL
7656 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7667 if test -n "$NMEDIT"; then
7668 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7677 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 NMEDIT=$ac_cv_prog_NMEDIT
7688 if test -n "$NMEDIT"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7690 $as_echo "$NMEDIT" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7698 if test -z "$ac_cv_prog_NMEDIT"; then
7699 ac_ct_NMEDIT=$NMEDIT
7700 # Extract the first word of "nmedit", so it can be a program name with args.
7701 set dummy nmedit; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7707 if test -n "$ac_ct_NMEDIT"; then
7708 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7728 if test -n "$ac_ct_NMEDIT"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7730 $as_echo "$ac_ct_NMEDIT" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7736 if test "x$ac_ct_NMEDIT" = x; then
7739 case $cross_compiling:$ac_tool_warned in
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7745 NMEDIT=$ac_ct_NMEDIT
7748 NMEDIT="$ac_cv_prog_NMEDIT"
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_LIPO+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$LIPO"; then
7760 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 LIPO=$ac_cv_prog_LIPO
7780 if test -n "$LIPO"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7782 $as_echo "$LIPO" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7790 if test -z "$ac_cv_prog_LIPO"; then
7792 # Extract the first word of "lipo", so it can be a program name with args.
7793 set dummy lipo; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7799 if test -n "$ac_ct_LIPO"; then
7800 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_ac_ct_LIPO="lipo"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7820 if test -n "$ac_ct_LIPO"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7822 $as_echo "$ac_ct_LIPO" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7828 if test "x$ac_ct_LIPO" = x; then
7831 case $cross_compiling:$ac_tool_warned in
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7840 LIPO="$ac_cv_prog_LIPO"
7843 if test -n "$ac_tool_prefix"; then
7844 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}otool; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$OTOOL"; then
7852 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 OTOOL=$ac_cv_prog_OTOOL
7872 if test -n "$OTOOL"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7874 $as_echo "$OTOOL" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7882 if test -z "$ac_cv_prog_OTOOL"; then
7884 # Extract the first word of "otool", so it can be a program name with args.
7885 set dummy otool; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7891 if test -n "$ac_ct_OTOOL"; then
7892 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_prog_ac_ct_OTOOL="otool"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7912 if test -n "$ac_ct_OTOOL"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7914 $as_echo "$ac_ct_OTOOL" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7920 if test "x$ac_ct_OTOOL" = x; then
7923 case $cross_compiling:$ac_tool_warned in
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7932 OTOOL="$ac_cv_prog_OTOOL"
7935 if test -n "$ac_tool_prefix"; then
7936 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7943 if test -n "$OTOOL64"; then
7944 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 OTOOL64=$ac_cv_prog_OTOOL64
7964 if test -n "$OTOOL64"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7966 $as_echo "$OTOOL64" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7974 if test -z "$ac_cv_prog_OTOOL64"; then
7975 ac_ct_OTOOL64=$OTOOL64
7976 # Extract the first word of "otool64", so it can be a program name with args.
7977 set dummy otool64; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7983 if test -n "$ac_ct_OTOOL64"; then
7984 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_prog_ac_ct_OTOOL64="otool64"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8004 if test -n "$ac_ct_OTOOL64"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8006 $as_echo "$ac_ct_OTOOL64" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8012 if test "x$ac_ct_OTOOL64" = x; then
8015 case $cross_compiling:$ac_tool_warned in
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019 ac_tool_warned=yes ;;
8021 OTOOL64=$ac_ct_OTOOL64
8024 OTOOL64="$ac_cv_prog_OTOOL64"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8054 $as_echo_n "checking for -single_module linker flag... " >&6; }
8055 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8058 lt_cv_apple_cc_single_mod=no
8059 if test -z "${LT_MULTI_MODULE}"; then
8060 # By default we will add the -single_module flag. You can override
8061 # by either setting the environment variable LT_MULTI_MODULE
8062 # non-empty at configure time, or by adding -multi_module to the
8064 rm -rf libconftest.dylib*
8065 echo "int foo(void){return 1;}" > conftest.c
8066 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8067 -dynamiclib -Wl,-single_module conftest.c" >&5
8068 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8071 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8072 lt_cv_apple_cc_single_mod=yes
8074 cat conftest.err >&5
8076 rm -rf libconftest.dylib*
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8081 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8083 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8084 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8087 lt_cv_ld_exported_symbols_list=no
8088 save_LDFLAGS=$LDFLAGS
8089 echo "_main" > conftest.sym
8090 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8102 if ac_fn_c_try_link "$LINENO"; then :
8103 lt_cv_ld_exported_symbols_list=yes
8105 lt_cv_ld_exported_symbols_list=no
8107 rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LDFLAGS="$save_LDFLAGS"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8113 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8115 rhapsody* | darwin1.[012])
8116 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8118 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8119 darwin*) # darwin 5.x on
8120 # if running on 10.5 or later, the deployment target defaults
8121 # to the OS version, if on x86, and 10.4, the deployment
8122 # target defaults to 10.4. Don't you love it?
8123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8124 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8125 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8127 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8129 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8134 _lt_dar_single_mod='$single_module'
8136 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8137 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8141 if test "$DSYMUTIL" != ":"; then
8142 _lt_dsymutil='~$DSYMUTIL $lib || :'
8149 for ac_header in dlfcn.h
8151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8153 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8154 cat >>confdefs.h <<_ACEOF
8155 #define HAVE_DLFCN_H 1
8172 # Check whether --enable-shared was given.
8173 if test "${enable_shared+set}" = set; then :
8174 enableval=$enable_shared; p=${PACKAGE-default}
8176 yes) enable_shared=yes ;;
8177 no) enable_shared=no ;;
8180 # Look at the argument we got. We use all the common list separators.
8181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182 for pkg in $enableval; do
8184 if test "X$pkg" = "X$p"; then
8203 # Check whether --enable-static was given.
8204 if test "${enable_static+set}" = set; then :
8205 enableval=$enable_static; p=${PACKAGE-default}
8207 yes) enable_static=yes ;;
8208 no) enable_static=no ;;
8211 # Look at the argument we got. We use all the common list separators.
8212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213 for pkg in $enableval; do
8215 if test "X$pkg" = "X$p"; then
8235 # Check whether --with-pic was given.
8236 if test "${with_pic+set}" = set; then :
8237 withval=$with_pic; pic_mode="$withval"
8243 test -z "$pic_mode" && pic_mode=default
8251 # Check whether --enable-fast-install was given.
8252 if test "${enable_fast_install+set}" = set; then :
8253 enableval=$enable_fast_install; p=${PACKAGE-default}
8255 yes) enable_fast_install=yes ;;
8256 no) enable_fast_install=no ;;
8258 enable_fast_install=no
8259 # Look at the argument we got. We use all the common list separators.
8260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8261 for pkg in $enableval; do
8263 if test "X$pkg" = "X$p"; then
8264 enable_fast_install=yes
8271 enable_fast_install=yes
8284 # This can be used to rebuild libtool when needed
8285 LIBTOOL_DEPS="$ltmain"
8287 # Always use our own libtool.
8288 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8314 test -z "$LN_S" && LN_S="ln -s"
8329 if test -n "${ZSH_VERSION+set}" ; then
8330 setopt NO_GLOB_SUBST
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8334 $as_echo_n "checking for objdir... " >&6; }
8335 if test "${lt_cv_objdir+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8338 rm -f .libs 2>/dev/null
8339 mkdir .libs 2>/dev/null
8340 if test -d .libs; then
8343 # MS-DOS does not allow filenames that begin with a dot.
8346 rmdir .libs 2>/dev/null
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8349 $as_echo "$lt_cv_objdir" >&6; }
8350 objdir=$lt_cv_objdir
8356 cat >>confdefs.h <<_ACEOF
8357 #define LT_OBJDIR "$lt_cv_objdir/"
8378 # AIX sometimes has problems with the GCC collect2 program. For some
8379 # reason, if we set the COLLECT_NAMES environment variable, the problems
8380 # vanish in a puff of smoke.
8381 if test "X${COLLECT_NAMES+set}" != Xset; then
8383 export COLLECT_NAMES
8388 # Sed substitution that helps us do robust quoting. It backslashifies
8389 # metacharacters that are still active within double-quoted strings.
8390 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8392 # Same as above, but do not quote variable references.
8393 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8395 # Sed substitution to delay expansion of an escaped shell variable in a
8396 # double_quote_subst'ed string.
8397 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8399 # Sed substitution to delay expansion of an escaped single quote.
8400 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8402 # Sed substitution to avoid accidental globbing in evaled expressions
8403 no_glob_subst='s/\*/\\\*/g'
8407 can_build_shared=yes
8409 # All known linkers require a `.a' archive for static linking (except MSVC,
8410 # which needs '.lib').
8413 with_gnu_ld="$lt_cv_prog_gnu_ld"
8416 old_CFLAGS="$CFLAGS"
8418 # Set sane defaults for various variables
8419 test -z "$CC" && CC=cc
8420 test -z "$LTCC" && LTCC=$CC
8421 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8422 test -z "$LD" && LD=ld
8423 test -z "$ac_objext" && ac_objext=o
8425 for cc_temp in $compiler""; do
8427 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8428 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8433 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8436 # Only perform the check for file, if the check method requires it
8437 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8438 case $deplibs_check_method in
8440 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8442 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8443 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8448 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8451 lt_save_MAGIC_CMD="$MAGIC_CMD"
8452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8453 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8454 for ac_dir in $ac_dummy; do
8456 test -z "$ac_dir" && ac_dir=.
8457 if test -f $ac_dir/${ac_tool_prefix}file; then
8458 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8459 if test -n "$file_magic_test_file"; then
8460 case $deplibs_check_method in
8462 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8465 $EGREP "$file_magic_regex" > /dev/null; then
8470 *** Warning: the command libtool uses to detect shared libraries,
8471 *** $file_magic_cmd, produces output that libtool cannot recognize.
8472 *** The result is that libtool may fail to recognize shared libraries
8473 *** as such. This will affect the creation of libtool libraries that
8474 *** depend on shared libraries, but programs linked with such libtool
8475 *** libraries will work regardless of this problem. Nevertheless, you
8476 *** may want to report the problem to your system manager and/or to
8477 *** bug-libtool@gnu.org
8487 MAGIC_CMD="$lt_save_MAGIC_CMD"
8492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493 if test -n "$MAGIC_CMD"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8495 $as_echo "$MAGIC_CMD" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8505 if test -z "$lt_cv_path_MAGIC_CMD"; then
8506 if test -n "$ac_tool_prefix"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8508 $as_echo_n "checking for file... " >&6; }
8509 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8517 lt_save_MAGIC_CMD="$MAGIC_CMD"
8518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8519 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8520 for ac_dir in $ac_dummy; do
8522 test -z "$ac_dir" && ac_dir=.
8523 if test -f $ac_dir/file; then
8524 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8525 if test -n "$file_magic_test_file"; then
8526 case $deplibs_check_method in
8528 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8531 $EGREP "$file_magic_regex" > /dev/null; then
8536 *** Warning: the command libtool uses to detect shared libraries,
8537 *** $file_magic_cmd, produces output that libtool cannot recognize.
8538 *** The result is that libtool may fail to recognize shared libraries
8539 *** as such. This will affect the creation of libtool libraries that
8540 *** depend on shared libraries, but programs linked with such libtool
8541 *** libraries will work regardless of this problem. Nevertheless, you
8542 *** may want to report the problem to your system manager and/or to
8543 *** bug-libtool@gnu.org
8553 MAGIC_CMD="$lt_save_MAGIC_CMD"
8558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8559 if test -n "$MAGIC_CMD"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8561 $as_echo "$MAGIC_CMD" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8577 # Use C for the default configuration in the libtool script
8581 ac_cpp='$CPP $CPPFLAGS'
8582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587 # Source file extension for C test sources.
8590 # Object file extension for compiled C test sources.
8594 # Code to be used in simple compile tests
8595 lt_simple_compile_test_code="int some_variable = 0;"
8597 # Code to be used in simple link tests
8598 lt_simple_link_test_code='int main(){return(0);}'
8606 # If no C compiler was specified, use CC.
8609 # If no C compiler flags were specified, use CFLAGS.
8610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8612 # Allow CC to be a program name with arguments.
8615 # Save the default compiler, since it gets overwritten when the other
8616 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8617 compiler_DEFAULT=$CC
8619 # save warnings/boilerplate of simple test code
8620 ac_outfile=conftest.$ac_objext
8621 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8623 _lt_compiler_boilerplate=`cat conftest.err`
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_linker_boilerplate=`cat conftest.err`
8634 ## There is no encapsulation within the following macros, do not change
8635 ## the running order or otherwise move them around unless you know exactly
8636 ## what you are doing...
8637 if test -n "$compiler"; then
8639 lt_prog_compiler_no_builtin_flag=
8641 if test "$GCC" = yes; then
8642 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8645 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8646 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8649 lt_cv_prog_compiler_rtti_exceptions=no
8650 ac_outfile=conftest.$ac_objext
8651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8652 lt_compiler_flag="-fno-rtti -fno-exceptions"
8653 # Insert the option either (1) after the last *FLAGS variable, or
8654 # (2) before a word containing "conftest.", or (3) at the end.
8655 # Note that $ac_compile itself does not contain backslashes and begins
8656 # with a dollar sign (not a hyphen), so the echo should work correctly.
8657 # The option is referenced via a variable to avoid confusing sed.
8658 lt_compile=`echo "$ac_compile" | $SED \
8659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661 -e 's:$: $lt_compiler_flag:'`
8662 (eval echo "\"\$as_me:8662: $lt_compile\"" >&5)
8663 (eval "$lt_compile" 2>conftest.err)
8665 cat conftest.err >&5
8666 echo "$as_me:8666: \$? = $ac_status" >&5
8667 if (exit $ac_status) && test -s "$ac_outfile"; then
8668 # The compiler can only warn and ignore the option if not recognized
8669 # So say no if there are warnings other than the usual output.
8670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8673 lt_cv_prog_compiler_rtti_exceptions=yes
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8680 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8683 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8695 lt_prog_compiler_wl=
8696 lt_prog_compiler_pic=
8697 lt_prog_compiler_static=
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8702 if test "$GCC" = yes; then
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_static='-static'
8708 # All AIX code is PIC.
8709 if test "$host_cpu" = ia64; then
8710 # AIX 5 now supports IA64 processor
8711 lt_prog_compiler_static='-Bstatic'
8718 # see comment about AmigaOS4 .so support
8719 lt_prog_compiler_pic='-fPIC'
8722 # FIXME: we need at least 68020 code to build shared libraries, but
8723 # adding the `-m68020' flag to GCC prevents building anything better,
8725 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8730 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8731 # PIC is the default for these OSes.
8734 mingw* | cygwin* | pw32* | os2* | cegcc*)
8735 # This hack is so that the source file can tell whether it is being
8736 # built for inclusion in a dll (and should export symbols for example).
8737 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8738 # (--disable-auto-import) libraries
8739 lt_prog_compiler_pic='-DDLL_EXPORT'
8742 darwin* | rhapsody*)
8743 # PIC is the default on this platform
8744 # Common symbols not allowed in MH_DYLIB files
8745 lt_prog_compiler_pic='-fno-common'
8749 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8750 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8751 # sets the default TLS model and affects inlining.
8757 lt_prog_compiler_pic='-fPIC'
8763 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8764 # Instead, we relocate shared libraries at runtime.
8768 # Just because we use GCC doesn't mean we suddenly get shared libraries
8769 # on systems that don't support them.
8770 lt_prog_compiler_can_build_shared=no
8775 # QNX uses GNU C++, but need to define -shared option too, otherwise
8777 lt_prog_compiler_pic='-fPIC -shared'
8781 if test -d /usr/nec; then
8782 lt_prog_compiler_pic=-Kconform_pic
8787 lt_prog_compiler_pic='-fPIC'
8791 # PORTME Check for flag to pass linker flags through the system compiler.
8794 lt_prog_compiler_wl='-Wl,'
8795 if test "$host_cpu" = ia64; then
8796 # AIX 5 now supports IA64 processor
8797 lt_prog_compiler_static='-Bstatic'
8799 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8803 mingw* | cygwin* | pw32* | os2* | cegcc*)
8804 # This hack is so that the source file can tell whether it is being
8805 # built for inclusion in a dll (and should export symbols for example).
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8809 hpux9* | hpux10* | hpux11*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8818 lt_prog_compiler_pic='+Z'
8821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8822 lt_prog_compiler_static='${wl}-a ${wl}archive'
8825 irix5* | irix6* | nonstopux*)
8826 lt_prog_compiler_wl='-Wl,'
8827 # PIC (with -KPIC) is the default.
8828 lt_prog_compiler_static='-non_shared'
8831 linux* | k*bsd*-gnu)
8832 case $cc_basename in
8833 # old Intel for x86_64 which still supported -KPIC.
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='-KPIC'
8837 lt_prog_compiler_static='-static'
8839 # icc used to be incompatible with GCC.
8840 # ICC 10 doesn't accept -KPIC any more.
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fPIC'
8844 lt_prog_compiler_static='-static'
8846 # Lahey Fortran 8.1.
8848 lt_prog_compiler_wl='-Wl,'
8849 lt_prog_compiler_pic='--shared'
8850 lt_prog_compiler_static='--static'
8852 pgcc* | pgf77* | pgf90* | pgf95*)
8853 # Portland Group compilers (*not* the Pentium gcc compiler,
8854 # which looks to be a dead project)
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_pic='-fpic'
8857 lt_prog_compiler_static='-Bstatic'
8860 lt_prog_compiler_wl='-Wl,'
8861 # All Alpha code is PIC.
8862 lt_prog_compiler_static='-non_shared'
8865 # IBM XL C 8.0/Fortran 10.1 on PPC
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='-qpic'
8868 lt_prog_compiler_static='-qstaticlink'
8871 case `$CC -V 2>&1 | sed 5q` in
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Wl,'
8879 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8882 lt_prog_compiler_wl=''
8890 lt_prog_compiler_pic='-KPIC'
8891 lt_prog_compiler_static='-Bstatic'
8895 # QNX uses GNU C++, but need to define -shared option too, otherwise
8897 lt_prog_compiler_pic='-fPIC -shared'
8900 osf3* | osf4* | osf5*)
8901 lt_prog_compiler_wl='-Wl,'
8902 # All OSF/1 code is PIC.
8903 lt_prog_compiler_static='-non_shared'
8907 lt_prog_compiler_static='-non_shared'
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 case $cc_basename in
8915 lt_prog_compiler_wl='-Qoption ld ';;
8917 lt_prog_compiler_wl='-Wl,';;
8922 lt_prog_compiler_wl='-Qoption ld '
8923 lt_prog_compiler_pic='-PIC'
8924 lt_prog_compiler_static='-Bstatic'
8927 sysv4 | sysv4.2uw2* | sysv4.3*)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8934 if test -d /usr/nec ;then
8935 lt_prog_compiler_pic='-Kconform_pic'
8936 lt_prog_compiler_static='-Bstatic'
8940 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8941 lt_prog_compiler_wl='-Wl,'
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-Bstatic'
8947 lt_prog_compiler_wl='-Wl,'
8948 lt_prog_compiler_can_build_shared=no
8952 lt_prog_compiler_pic='-pic'
8953 lt_prog_compiler_static='-Bstatic'
8957 lt_prog_compiler_can_build_shared=no
8963 # For platforms which do not support PIC, -DPIC is meaningless:
8965 lt_prog_compiler_pic=
8968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8972 $as_echo "$lt_prog_compiler_pic" >&6; }
8980 # Check to make sure the PIC flag actually works.
8982 if test -n "$lt_prog_compiler_pic"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8984 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8985 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
8988 lt_cv_prog_compiler_pic_works=no
8989 ac_outfile=conftest.$ac_objext
8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8992 # Insert the option either (1) after the last *FLAGS variable, or
8993 # (2) before a word containing "conftest.", or (3) at the end.
8994 # Note that $ac_compile itself does not contain backslashes and begins
8995 # with a dollar sign (not a hyphen), so the echo should work correctly.
8996 # The option is referenced via a variable to avoid confusing sed.
8997 lt_compile=`echo "$ac_compile" | $SED \
8998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000 -e 's:$: $lt_compiler_flag:'`
9001 (eval echo "\"\$as_me:9001: $lt_compile\"" >&5)
9002 (eval "$lt_compile" 2>conftest.err)
9004 cat conftest.err >&5
9005 echo "$as_me:9005: \$? = $ac_status" >&5
9006 if (exit $ac_status) && test -s "$ac_outfile"; then
9007 # The compiler can only warn and ignore the option if not recognized
9008 # So say no if there are warnings other than the usual output.
9009 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9012 lt_cv_prog_compiler_pic_works=yes
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9019 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9021 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9022 case $lt_prog_compiler_pic in
9024 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9027 lt_prog_compiler_pic=
9028 lt_prog_compiler_can_build_shared=no
9039 # Check to make sure the static flag actually works.
9041 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9043 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9044 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9047 lt_cv_prog_compiler_static_works=no
9048 save_LDFLAGS="$LDFLAGS"
9049 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9050 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9051 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9052 # The linker can only warn and ignore the option if not recognized
9053 # So say no if there are warnings
9054 if test -s conftest.err; then
9055 # Append any errors to the config.log.
9056 cat conftest.err 1>&5
9057 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9059 if diff conftest.exp conftest.er2 >/dev/null; then
9060 lt_cv_prog_compiler_static_works=yes
9063 lt_cv_prog_compiler_static_works=yes
9067 LDFLAGS="$save_LDFLAGS"
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9071 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9073 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9076 lt_prog_compiler_static=
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9087 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9090 lt_cv_prog_compiler_c_o=no
9091 $RM -r conftest 2>/dev/null
9095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097 lt_compiler_flag="-o out/conftest2.$ac_objext"
9098 # Insert the option either (1) after the last *FLAGS variable, or
9099 # (2) before a word containing "conftest.", or (3) at the end.
9100 # Note that $ac_compile itself does not contain backslashes and begins
9101 # with a dollar sign (not a hyphen), so the echo should work correctly.
9102 lt_compile=`echo "$ac_compile" | $SED \
9103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105 -e 's:$: $lt_compiler_flag:'`
9106 (eval echo "\"\$as_me:9106: $lt_compile\"" >&5)
9107 (eval "$lt_compile" 2>out/conftest.err)
9109 cat out/conftest.err >&5
9110 echo "$as_me:9110: \$? = $ac_status" >&5
9111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9113 # The compiler can only warn and ignore the option if not recognized
9114 # So say no if there are warnings
9115 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9118 lt_cv_prog_compiler_c_o=yes
9123 # SGI C++ compiler will create directory out/ii_files/ for
9124 # template instantiation
9125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9126 $RM out/* && rmdir out
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9141 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9142 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
9145 lt_cv_prog_compiler_c_o=no
9146 $RM -r conftest 2>/dev/null
9150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152 lt_compiler_flag="-o out/conftest2.$ac_objext"
9153 # Insert the option either (1) after the last *FLAGS variable, or
9154 # (2) before a word containing "conftest.", or (3) at the end.
9155 # Note that $ac_compile itself does not contain backslashes and begins
9156 # with a dollar sign (not a hyphen), so the echo should work correctly.
9157 lt_compile=`echo "$ac_compile" | $SED \
9158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160 -e 's:$: $lt_compiler_flag:'`
9161 (eval echo "\"\$as_me:9161: $lt_compile\"" >&5)
9162 (eval "$lt_compile" 2>out/conftest.err)
9164 cat out/conftest.err >&5
9165 echo "$as_me:9165: \$? = $ac_status" >&5
9166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9168 # The compiler can only warn and ignore the option if not recognized
9169 # So say no if there are warnings
9170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9173 lt_cv_prog_compiler_c_o=yes
9178 # SGI C++ compiler will create directory out/ii_files/ for
9179 # template instantiation
9180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9181 $RM out/* && rmdir out
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9188 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9193 hard_links="nottested"
9194 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9195 # do not overwrite the value of need_locks provided by the user
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9197 $as_echo_n "checking if we can lock with hard links... " >&6; }
9200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9202 ln conftest.a conftest.b 2>&5 || hard_links=no
9203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9205 $as_echo "$hard_links" >&6; }
9206 if test "$hard_links" = no; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9208 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9224 allow_undefined_flag=
9225 always_export_symbols=no
9227 archive_expsym_cmds=
9228 compiler_needs_object=no
9229 enable_shared_with_static_runtimes=no
9230 export_dynamic_flag_spec=
9231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9232 hardcode_automatic=no
9234 hardcode_direct_absolute=no
9235 hardcode_libdir_flag_spec=
9236 hardcode_libdir_flag_spec_ld=
9237 hardcode_libdir_separator=
9239 hardcode_shlibpath_var=unsupported
9241 link_all_deplibs=unknown
9244 old_archive_from_new_cmds=
9245 old_archive_from_expsyms_cmds=
9246 thread_safe_flag_spec=
9247 whole_archive_flag_spec=
9248 # include_expsyms should be a list of space-separated symbols to be *always*
9249 # included in the symbol list
9251 # exclude_expsyms can be an extended regexp of symbols to exclude
9252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9254 # as well as any symbol that contains `d'.
9255 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9257 # platforms (ab)use it in PIC code, but their linkers get confused if
9258 # the symbol is explicitly referenced. Since portable code cannot
9259 # rely on this symbol name, it's probably fine to never include it in
9260 # preloaded symbol tables.
9261 # Exclude shared library initialization/finalization symbols.
9262 extract_expsyms_cmds=
9265 cygwin* | mingw* | pw32* | cegcc*)
9266 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9267 # When not using gcc, we currently assume that we are using
9268 # Microsoft Visual C++.
9269 if test "$GCC" != yes; then
9274 # we just hope/assume this is gcc and not c89 (= MSVC++)
9283 if test "$with_gnu_ld" = yes; then
9284 # If archive_cmds runs LD, not CC, wlarc should be empty
9287 # Set some defaults for GNU ld with shared library support. These
9288 # are reset later if shared libraries are not supported. Putting them
9289 # here allows them to be overridden if necessary.
9290 runpath_var=LD_RUN_PATH
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 export_dynamic_flag_spec='${wl}--export-dynamic'
9293 # ancient GNU ld didn't support --whole-archive et. al.
9294 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9295 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9297 whole_archive_flag_spec=
9299 supports_anon_versioning=no
9300 case `$LD -v 2>&1` in
9301 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9302 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9303 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9304 *\ 2.11.*) ;; # other 2.11 versions
9305 *) supports_anon_versioning=yes ;;
9308 # See if GNU ld supports shared libraries.
9311 # On AIX/PPC, the GNU linker is very broken
9312 if test "$host_cpu" != ia64; then
9316 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9317 *** to be unable to reliably create shared libraries on AIX.
9318 *** Therefore, libtool is disabling shared libraries support. If you
9319 *** really care for shared libraries, you may want to modify your PATH
9320 *** so that a non-GNU linker is found, and then restart.
9329 # see comment about AmigaOS4 .so support
9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 archive_expsym_cmds=''
9334 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)'
9335 hardcode_libdir_flag_spec='-L$libdir'
9336 hardcode_minus_L=yes
9342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343 allow_undefined_flag=unsupported
9344 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9345 # support --undefined. This deserves some investigation. FIXME
9346 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 cygwin* | mingw* | pw32* | cegcc*)
9353 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9354 # as there is no search path for DLLs.
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 allow_undefined_flag=unsupported
9357 always_export_symbols=no
9358 enable_shared_with_static_runtimes=yes
9359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9361 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9363 # If the export-symbols file already is a .def file (1st line
9364 # is EXPORTS), use it as is; otherwise, prepend...
9365 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9366 cp $export_symbols $output_objdir/$soname.def;
9368 echo EXPORTS > $output_objdir/$soname.def;
9369 cat $export_symbols >> $output_objdir/$soname.def;
9371 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9379 hardcode_shlibpath_var=no
9380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9381 export_dynamic_flag_spec='${wl}-E'
9382 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9383 # Instead, shared libraries are loaded at an image base (0x10000000 by
9384 # default) and relocated if they conflict, which is a slow very memory
9385 # consuming and fragmenting process. To avoid this, we pick a random,
9386 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9387 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9389 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'
9392 gnu* | linux* | tpf* | k*bsd*-gnu)
9394 if test "$host_os" = linux-dietlibc; then
9395 case $cc_basename in
9396 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9399 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9400 && test "$tmp_diet" = no
9403 tmp_sharedflag='-shared'
9404 case $cc_basename,$host_cpu in
9405 pgcc*) # Portland Group C compiler
9406 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9407 tmp_addflag=' $pic_flag'
9409 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9410 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9411 tmp_addflag=' $pic_flag -Mnomain' ;;
9412 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9413 tmp_addflag=' -i_dynamic' ;;
9414 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9415 tmp_addflag=' -i_dynamic -nofor_main' ;;
9416 ifc* | ifort*) # Intel Fortran compiler
9417 tmp_addflag=' -nofor_main' ;;
9418 lf95*) # Lahey Fortran 8.1
9419 whole_archive_flag_spec=
9420 tmp_sharedflag='--shared' ;;
9421 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9422 tmp_sharedflag='-qmkshrobj'
9425 case `$CC -V 2>&1 | sed 5q` in
9426 *Sun\ C*) # Sun C 5.9
9427 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9428 compiler_needs_object=yes
9429 tmp_sharedflag='-G' ;;
9430 *Sun\ F*) # Sun Fortran 8.3
9431 tmp_sharedflag='-G' ;;
9433 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 if test "x$supports_anon_versioning" = xyes; then
9436 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9438 echo "local: *; };" >> $output_objdir/$libname.ver~
9439 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9442 case $cc_basename in
9444 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9445 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9446 hardcode_libdir_flag_spec=
9447 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9448 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9449 if test "x$supports_anon_versioning" = xyes; then
9450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9452 echo "local: *; };" >> $output_objdir/$libname.ver~
9453 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9464 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9473 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9477 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9478 *** create shared libraries on Solaris systems. Therefore, libtool
9479 *** is disabling shared libraries support. We urge you to upgrade GNU
9480 *** binutils to release 2.9.1 or newer. Another option is to modify
9481 *** your PATH or compiler configuration so that the native linker is
9482 *** used, and then restart.
9485 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9494 case `$LD -v 2>&1` in
9495 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9499 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9500 *** reliably create shared libraries on SCO systems. Therefore, libtool
9501 *** is disabling shared libraries support. We urge you to upgrade GNU
9502 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9503 *** your PATH or compiler configuration so that the native linker is
9504 *** used, and then restart.
9509 # For security reasons, it is highly recommended that you always
9510 # use absolute paths for naming shared libraries, and exclude the
9511 # DT_RUNPATH tag from executables and libraries. But doing so
9512 # requires that you compile everything twice, which is a pain.
9513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9525 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_shlibpath_var=no
9532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9541 if test "$ld_shlibs" = no; then
9543 hardcode_libdir_flag_spec=
9544 export_dynamic_flag_spec=
9545 whole_archive_flag_spec=
9548 # PORTME fill in a description of your system's linker (not GNU ld)
9551 allow_undefined_flag=unsupported
9552 always_export_symbols=yes
9553 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'
9554 # Note: this linker hardcodes the directories in LIBPATH if there
9555 # are no directories specified by -L.
9556 hardcode_minus_L=yes
9557 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9558 # Neither direct hardcoding nor static linking is supported with a
9560 hardcode_direct=unsupported
9565 if test "$host_cpu" = ia64; then
9566 # On IA64, the linker does run time linking by default, so we don't
9567 # have to do anything special.
9568 aix_use_runtimelinking=no
9569 exp_sym_flag='-Bexport'
9572 # If we're using GNU nm, then we don't want the "-C" option.
9573 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9575 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9577 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'
9579 aix_use_runtimelinking=no
9581 # Test if we are trying to use run time linking or normal
9582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9583 # need to do runtime linking.
9584 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9585 for ld_flag in $LDFLAGS; do
9586 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9587 aix_use_runtimelinking=yes
9594 exp_sym_flag='-bexport'
9595 no_entry_flag='-bnoentry'
9598 # When large executables or shared objects are built, AIX ld can
9599 # have problems creating the table of contents. If linking a library
9600 # or program results in "error TOC overflow" add -mminimal-toc to
9601 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9602 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9606 hardcode_direct_absolute=yes
9607 hardcode_libdir_separator=':'
9608 link_all_deplibs=yes
9609 file_list_spec='${wl}-f,'
9611 if test "$GCC" = yes; then
9612 case $host_os in aix4.[012]|aix4.[012].*)
9613 # We only want to do this on AIX 4.2 and lower, the check
9614 # below for broken collect2 doesn't work under 4.3+
9615 collect2name=`${CC} -print-prog-name=collect2`
9616 if test -f "$collect2name" &&
9617 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9619 # We have reworked collect2
9622 # We have old collect2
9623 hardcode_direct=unsupported
9624 # It fails to find uninstalled libraries when the uninstalled
9625 # path is not listed in the libpath. Setting hardcode_minus_L
9626 # to unsupported forces relinking
9627 hardcode_minus_L=yes
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 hardcode_libdir_separator=
9633 shared_flag='-shared'
9634 if test "$aix_use_runtimelinking" = yes; then
9635 shared_flag="$shared_flag "'${wl}-G'
9639 if test "$host_cpu" = ia64; then
9640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9641 # chokes on -Wl,-G. The following line is correct:
9644 if test "$aix_use_runtimelinking" = yes; then
9645 shared_flag='${wl}-G'
9647 shared_flag='${wl}-bM:SRE'
9652 export_dynamic_flag_spec='${wl}-bexpall'
9653 # It seems that -bexpall does not export symbols beginning with
9654 # underscore (_), so it is better to generate a list of symbols to export.
9655 always_export_symbols=yes
9656 if test "$aix_use_runtimelinking" = yes; then
9657 # Warning - without using the other runtime loading flags (-brtl),
9658 # -berok will link without error, but may produce a broken library.
9659 allow_undefined_flag='-berok'
9660 # Determine the default libpath from the value encoded in an
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9673 if ac_fn_c_try_link "$LINENO"; then :
9675 lt_aix_libpath_sed='
9676 /Import File Strings/,/^$/ {
9682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9683 # Check for a 64-bit object if we didn't find anything.
9684 if test -z "$aix_libpath"; then
9685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688 rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9692 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9693 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9695 if test "$host_cpu" = ia64; then
9696 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9697 allow_undefined_flag="-z nodefs"
9698 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"
9700 # Determine the default libpath from the value encoded in an
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9713 if ac_fn_c_try_link "$LINENO"; then :
9715 lt_aix_libpath_sed='
9716 /Import File Strings/,/^$/ {
9722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723 # Check for a 64-bit object if we didn't find anything.
9724 if test -z "$aix_libpath"; then
9725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9733 # Warning - without using the other run time loading flags,
9734 # -berok will link without error, but may produce a broken library.
9735 no_undefined_flag=' ${wl}-bernotok'
9736 allow_undefined_flag=' ${wl}-berok'
9737 # Exported symbols can be pulled into shared objects from archives
9738 whole_archive_flag_spec='$convenience'
9739 archive_cmds_need_lc=yes
9740 # This is similar to how AIX traditionally builds its shared libraries.
9741 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'
9749 # see comment about AmigaOS4 .so support
9750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 archive_expsym_cmds=''
9754 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)'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_minus_L=yes
9762 export_dynamic_flag_spec=-rdynamic
9765 cygwin* | mingw* | pw32* | cegcc*)
9766 # When not using gcc, we currently assume that we are using
9767 # Microsoft Visual C++.
9768 # hardcode_libdir_flag_spec is actually meaningless, as there is
9769 # no search path for DLLs.
9770 hardcode_libdir_flag_spec=' '
9771 allow_undefined_flag=unsupported
9772 # Tell ltmain to make .lib files, not .a files.
9774 # Tell ltmain to make .dll files, not .so files.
9776 # FIXME: Setting linknames here is a bad hack.
9777 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9778 # The linker will automatically build a .lib file if we build a DLL.
9779 old_archive_from_new_cmds='true'
9780 # FIXME: Should let the user specify the lib program.
9781 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9782 fix_srcfile_path='`cygpath -w "$srcfile"`'
9783 enable_shared_with_static_runtimes=yes
9786 darwin* | rhapsody*)
9789 archive_cmds_need_lc=no
9791 hardcode_automatic=yes
9792 hardcode_shlibpath_var=unsupported
9793 whole_archive_flag_spec=''
9794 link_all_deplibs=yes
9795 allow_undefined_flag="$_lt_dar_allow_undefined"
9796 case $cc_basename in
9797 ifort*) _lt_dar_can_shared=yes ;;
9798 *) _lt_dar_can_shared=$GCC ;;
9800 if test "$_lt_dar_can_shared" = "yes"; then
9801 output_verbose_link_cmd=echo
9802 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9803 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9804 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}"
9805 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}"
9814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815 hardcode_libdir_flag_spec='-L$libdir'
9816 hardcode_shlibpath_var=no
9823 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9824 # support. Future versions do this automatically, but an explicit c++rt0.o
9825 # does not break anything, and helps significantly (at the cost of a little
9828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9829 hardcode_libdir_flag_spec='-R$libdir'
9831 hardcode_shlibpath_var=no
9834 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_minus_L=yes
9839 hardcode_shlibpath_var=no
9842 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9843 freebsd* | dragonfly*)
9844 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9845 hardcode_libdir_flag_spec='-R$libdir'
9847 hardcode_shlibpath_var=no
9851 if test "$GCC" = yes; then
9852 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9854 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'
9856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9857 hardcode_libdir_separator=:
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L=yes
9863 export_dynamic_flag_spec='${wl}-E'
9867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9872 if test "$with_gnu_ld" = no; then
9873 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9874 hardcode_libdir_flag_spec_ld='+b $libdir'
9875 hardcode_libdir_separator=:
9877 hardcode_direct_absolute=yes
9878 export_dynamic_flag_spec='${wl}-E'
9879 # hardcode_minus_L: Not really in the search PATH,
9880 # but as the default location of the library.
9881 hardcode_minus_L=yes
9886 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9889 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9895 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9901 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9907 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9911 if test "$with_gnu_ld" = no; then
9912 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator=:
9918 hardcode_shlibpath_var=no
9922 hardcode_direct_absolute=yes
9923 export_dynamic_flag_spec='${wl}-E'
9925 # hardcode_minus_L: Not really in the search PATH,
9926 # but as the default location of the library.
9927 hardcode_minus_L=yes
9933 irix5* | irix6* | nonstopux*)
9934 if test "$GCC" = yes; then
9935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9936 # Try to use the -exported_symbol ld option, if it does not
9937 # work, assume that -exports_file does not work either and
9938 # implicitly export all symbols.
9939 save_LDFLAGS="$LDFLAGS"
9940 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9945 if ac_fn_c_try_link "$LINENO"; then :
9946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LDFLAGS="$save_LDFLAGS"
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9956 archive_cmds_need_lc='no'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9960 link_all_deplibs=yes
9964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9967 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9969 hardcode_libdir_flag_spec='-R$libdir'
9971 hardcode_shlibpath_var=no
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978 hardcode_libdir_separator=:
9979 hardcode_shlibpath_var=no
9986 if test -f /usr/libexec/ld.so; then
9988 hardcode_shlibpath_var=no
9989 hardcode_direct_absolute=yes
9990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9994 export_dynamic_flag_spec='${wl}-E'
9997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_libdir_flag_spec='-R$libdir'
10002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10013 hardcode_libdir_flag_spec='-L$libdir'
10014 hardcode_minus_L=yes
10015 allow_undefined_flag=unsupported
10016 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'
10017 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10021 if test "$GCC" = yes; then
10022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10023 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10025 allow_undefined_flag=' -expect_unresolved \*'
10026 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10028 archive_cmds_need_lc='no'
10029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030 hardcode_libdir_separator=:
10033 osf4* | osf5*) # as osf3* with the addition of -msym flag
10034 if test "$GCC" = yes; then
10035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039 allow_undefined_flag=' -expect_unresolved \*'
10040 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10041 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~
10042 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10044 # Both c and cxx compiler support -rpath directly
10045 hardcode_libdir_flag_spec='-rpath $libdir'
10047 archive_cmds_need_lc='no'
10048 hardcode_libdir_separator=:
10052 no_undefined_flag=' -z defs'
10053 if test "$GCC" = yes; then
10055 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10059 case `$CC -V 2>&1` in
10062 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10068 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10074 hardcode_libdir_flag_spec='-R$libdir'
10075 hardcode_shlibpath_var=no
10077 solaris2.[0-5] | solaris2.[0-5].*) ;;
10079 # The compiler driver will combine and reorder linker options,
10080 # but understands `-z linker_flag'. GCC discards it without `$wl',
10081 # but is careful enough not to reorder.
10082 # Supported since Solaris 2.6 (maybe 2.5.1?)
10083 if test "$GCC" = yes; then
10084 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10086 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10090 link_all_deplibs=yes
10094 if test "x$host_vendor" = xsequent; then
10095 # Use $CC to link under sequent, because it throws in some extra .o
10096 # files that make .init and .fini sections work.
10097 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_libdir_flag_spec='-L$libdir'
10102 hardcode_direct=yes
10103 hardcode_minus_L=yes
10104 hardcode_shlibpath_var=no
10108 case $host_vendor in
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes # is this really true???
10114 ## LD is ld it makes a PLAMLIB
10115 ## CC just makes a GrossModule.
10116 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10117 reload_cmds='$CC -r -o $output$reload_objs'
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10125 runpath_var='LD_RUN_PATH'
10126 hardcode_shlibpath_var=no
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_shlibpath_var=no
10132 export_dynamic_flag_spec='-Bexport'
10136 if test -d /usr/nec; then
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var=no
10139 runpath_var=LD_RUN_PATH
10140 hardcode_runpath_var=yes
10145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10146 no_undefined_flag='${wl}-z,text'
10147 archive_cmds_need_lc=no
10148 hardcode_shlibpath_var=no
10149 runpath_var='LD_RUN_PATH'
10151 if test "$GCC" = yes; then
10152 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 sysv5* | sco3.2v5* | sco5v6*)
10161 # Note: We can NOT use -z defs as we might desire, because we do not
10162 # link with -lc, and that would cause any symbols used from libc to
10163 # always be unresolved, which means just about no library would
10164 # ever link correctly. If we're not using GNU ld we use -z text
10165 # though, which does catch some bad symbols but isn't as heavy-handed
10167 no_undefined_flag='${wl}-z,text'
10168 allow_undefined_flag='${wl}-z,nodefs'
10169 archive_cmds_need_lc=no
10170 hardcode_shlibpath_var=no
10171 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10172 hardcode_libdir_separator=':'
10173 link_all_deplibs=yes
10174 export_dynamic_flag_spec='${wl}-Bexport'
10175 runpath_var='LD_RUN_PATH'
10177 if test "$GCC" = yes; then
10178 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_shlibpath_var=no
10197 if test x$host_vendor = xsni; then
10199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10200 export_dynamic_flag_spec='${wl}-Blargedynsym'
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10207 $as_echo "$ld_shlibs" >&6; }
10208 test "$ld_shlibs" = no && can_build_shared=no
10210 with_gnu_ld=$with_gnu_ld
10227 # Do we need to explicitly link libc?
10229 case "x$archive_cmds_need_lc" in
10231 # Assume -lc should be added
10232 archive_cmds_need_lc=yes
10234 if test "$enable_shared" = yes && test "$GCC" = yes; then
10235 case $archive_cmds in
10237 # FIXME: we may have to deal with multi-command sequences.
10240 # Test whether the compiler implicitly links with -lc since on some
10241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10242 # to ld, don't add -lc before -lgcc.
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10249 (eval $ac_compile) 2>&5
10251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10252 test $ac_status = 0; } 2>conftest.err; then
10255 libobjs=conftest.$ac_objext
10257 wl=$lt_prog_compiler_wl
10258 pic_flag=$lt_prog_compiler_pic
10264 lt_save_allow_undefined_flag=$allow_undefined_flag
10265 allow_undefined_flag=
10266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10267 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270 test $ac_status = 0; }
10272 archive_cmds_need_lc=no
10274 archive_cmds_need_lc=yes
10276 allow_undefined_flag=$lt_save_allow_undefined_flag
10278 cat conftest.err 1>&5
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10282 $as_echo "$archive_cmds_need_lc" >&6; }
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10448 if test "$GCC" = yes; then
10450 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10451 *) lt_awk_arg="/^libraries:/" ;;
10453 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10454 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10455 # if the path contains ";" then we assume it to be the separator
10456 # otherwise default to the standard path separator (i.e. ":") - it is
10457 # assumed that no part of a normal pathname contains ";" but that should
10458 # okay in the real world where ";" in dirpaths is itself problematic.
10459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10461 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10463 # Ok, now we have the path, separated by spaces, we can step through it
10464 # and add multilib dir if necessary.
10465 lt_tmp_lt_search_path_spec=
10466 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10467 for lt_sys_path in $lt_search_path_spec; do
10468 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10469 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10471 test -d "$lt_sys_path" && \
10472 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10475 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10476 BEGIN {RS=" "; FS="/|\n";} {
10479 for (lt_i = NF; lt_i > 0; lt_i--) {
10480 if ($lt_i != "" && $lt_i != ".") {
10481 if ($lt_i == "..") {
10484 if (lt_count == 0) {
10485 lt_foo="/" $lt_i lt_foo;
10492 if (lt_foo != "") { lt_freq[lt_foo]++; }
10493 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10495 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10499 library_names_spec=
10500 libname_spec='lib$name'
10504 postuninstall_cmds=
10508 shlibpath_overrides_runpath=unknown
10510 dynamic_linker="$host_os ld.so"
10511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10512 need_lib_prefix=unknown
10513 hardcode_into_libs=no
10515 # when you set need_version to no, make sure it does not cause -set_version
10516 # flags to be left without arguments
10517 need_version=unknown
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10523 shlibpath_var=LIBPATH
10525 # AIX 3 has no versioning support, so we append a major version to the name.
10526 soname_spec='${libname}${release}${shared_ext}$major'
10533 hardcode_into_libs=yes
10534 if test "$host_cpu" = ia64; then
10535 # AIX 5 supports IA64
10536 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10537 shlibpath_var=LD_LIBRARY_PATH
10539 # With GCC up to 2.95.x, collect2 would create an import file
10540 # for dependence libraries. The import file would start with
10541 # the line `#! .'. This would cause the generated library to
10542 # depend on `.', always an invalid library. This was fixed in
10543 # development snapshots of GCC prior to 3.0.
10545 aix4 | aix4.[01] | aix4.[01].*)
10546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10548 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10551 can_build_shared=no
10555 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10556 # soname into executable. Probably we can add versioning support to
10557 # collect2, so additional links can be useful in future.
10558 if test "$aix_use_runtimelinking" = yes; then
10559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10560 # instead of lib<name>.a to let people know that these are not
10561 # typical AIX shared libraries.
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 # We preserve .a as extension for shared libraries through AIX4.2
10565 # and later when we are not doing run time linking.
10566 library_names_spec='${libname}${release}.a $libname.a'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10569 shlibpath_var=LIBPATH
10576 # Since July 2007 AmigaOS4 officially supports .so libraries.
10577 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 library_names_spec='$libname.ixlibrary $libname.a'
10582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10583 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10589 library_names_spec='${libname}${shared_ext}'
10590 dynamic_linker="$host_os ld.so"
10591 shlibpath_var=LIBRARY_PATH
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10603 # the default ld.so.conf also contains /usr/contrib/lib and
10604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10605 # libtool to hard-code these into programs
10608 cygwin* | mingw* | pw32* | cegcc*)
10609 version_type=windows
10614 case $GCC,$host_os in
10615 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10616 library_names_spec='$libname.dll.a'
10617 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10618 postinstall_cmds='base_file=`basename \${file}`~
10619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10620 dldir=$destdir/`dirname \$dlpath`~
10621 test -d \$dldir || mkdir -p \$dldir~
10622 $install_prog $dir/$dlname \$dldir/$dlname~
10623 chmod a+x \$dldir/$dlname~
10624 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10625 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10628 dlpath=$dir/\$dldll~
10630 shlibpath_overrides_runpath=yes
10634 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10635 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10636 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10639 # MinGW DLLs use traditional 'lib' prefix
10640 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10641 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10642 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10643 # It is most probably a Windows format PATH printed by
10644 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10645 # path with ; separators, and with drive letters. We can handle the
10646 # drive letters (cygwin fileutils understands them), so leave them,
10647 # especially as we might pass files found there to a mingw objdump,
10648 # which wouldn't understand a cygwinified path. Ahh.
10649 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10655 # pw32 DLLs use 'pw' prefix rather than 'lib'
10656 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10665 dynamic_linker='Win32 ld.exe'
10666 # FIXME: first we should search . and the directory the executable is in
10670 darwin* | rhapsody*)
10671 dynamic_linker="$host_os dyld"
10672 version_type=darwin
10675 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10676 soname_spec='${libname}${release}${major}$shared_ext'
10677 shlibpath_overrides_runpath=yes
10678 shlibpath_var=DYLD_LIBRARY_PATH
10679 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10698 freebsd* | dragonfly*)
10699 # DragonFly does not have aout. When/if they implement a new
10700 # versioning mechanism, adjust this.
10701 if test -x /usr/bin/objformat; then
10702 objformat=`/usr/bin/objformat`
10705 freebsd[123]*) objformat=aout ;;
10706 *) objformat=elf ;;
10709 version_type=freebsd-$objformat
10710 case $version_type in
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10721 shlibpath_var=LD_LIBRARY_PATH
10724 shlibpath_overrides_runpath=yes
10726 freebsd3.[01]* | freebsdelf3.[01]*)
10727 shlibpath_overrides_runpath=yes
10728 hardcode_into_libs=yes
10730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10732 shlibpath_overrides_runpath=no
10733 hardcode_into_libs=yes
10735 *) # from 4.6 on, and DragonFly
10736 shlibpath_overrides_runpath=yes
10737 hardcode_into_libs=yes
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 hardcode_into_libs=yes
10752 hpux9* | hpux10* | hpux11*)
10753 # Give a soname corresponding to the major version so that dld.sl refuses to
10754 # link against other versions.
10761 hardcode_into_libs=yes
10762 dynamic_linker="$host_os dld.so"
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 if test "X$HPUX_IA64_MODE" = X32; then
10768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10776 hardcode_into_libs=yes
10777 dynamic_linker="$host_os dld.sl"
10778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10787 dynamic_linker="$host_os dld.sl"
10788 shlibpath_var=SHLIB_PATH
10789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10795 postinstall_cmds='chmod 555 $lib'
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 shlibpath_overrides_runpath=no
10807 hardcode_into_libs=yes
10810 irix5* | irix6* | nonstopux*)
10812 nonstopux*) version_type=nonstopux ;;
10814 if test "$lt_cv_prog_gnu_ld" = yes; then
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10825 irix5* | nonstopux*)
10826 libsuff= shlibsuff=
10829 case $LD in # libtool.m4 will add one of these switches to LD
10830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10831 libsuff= shlibsuff= libmagic=32-bit;;
10832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10833 libsuff=32 shlibsuff=N32 libmagic=N32;;
10834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10836 *) libsuff= shlibsuff= libmagic=never-match;;
10840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10841 shlibpath_overrides_runpath=no
10842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10844 hardcode_into_libs=yes
10847 # No shared lib support for Linux oldld, aout, or coff.
10848 linux*oldld* | linux*aout* | linux*coff*)
10852 # This must be Linux ELF.
10853 linux* | k*bsd*-gnu)
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=no
10862 # Some binutils ld are patched to set DT_RUNPATH
10863 save_LDFLAGS=$LDFLAGS
10864 save_libdir=$libdir
10865 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10866 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10878 if ac_fn_c_try_link "$LINENO"; then :
10879 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10880 shlibpath_overrides_runpath=yes
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885 LDFLAGS=$save_LDFLAGS
10886 libdir=$save_libdir
10888 # This implies no fast_install, which is unacceptable.
10889 # Some rework will be needed to allow for fast_install
10890 # before this can be enabled.
10891 hardcode_into_libs=yes
10893 # Append ld.so.conf contents to the search path
10894 if test -f /etc/ld.so.conf; then
10895 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10899 # We used to test for /lib/ld.so.1 and disable shared libraries on
10900 # powerpc, because MkLinux only supported shared libraries with the
10901 # GNU dynamic linker. Since this was broken with cross compilers,
10902 # most powerpc-linux boxes support dynamic linking these days and
10903 # people can always --disable-shared, the test was removed, and we
10904 # assume the GNU/Linux dynamic linker is in use.
10905 dynamic_linker='GNU/Linux ld.so'
10912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10915 dynamic_linker='NetBSD (a.out) ld.so'
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 dynamic_linker='NetBSD ld.elf_so'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 hardcode_into_libs=yes
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=no
10941 hardcode_into_libs=yes
10942 dynamic_linker='ldqnx.so'
10947 sys_lib_dlsearch_path_spec="/usr/lib"
10949 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10951 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10952 *) need_version=no ;;
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10959 openbsd2.[89] | openbsd2.[89].*)
10960 shlibpath_overrides_runpath=no
10963 shlibpath_overrides_runpath=yes
10967 shlibpath_overrides_runpath=yes
10972 libname_spec='$name'
10975 library_names_spec='$libname${shared_ext} $libname.a'
10976 dynamic_linker='OS/2 ld.exe'
10977 shlibpath_var=LIBPATH
10980 osf3* | osf4* | osf5*)
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10988 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 shlibpath_overrides_runpath=yes
11003 hardcode_into_libs=yes
11004 # ldd complains unless libraries are executable
11005 postinstall_cmds='chmod +x $lib'
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11011 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes
11014 if test "$with_gnu_ld" = yes; then
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 case $host_vendor in
11027 shlibpath_overrides_runpath=no
11029 runpath_var=LD_RUN_PATH
11037 shlibpath_overrides_runpath=no
11038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11044 if test -d /usr/nec ;then
11046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11047 soname_spec='$libname${shared_ext}.$major'
11048 shlibpath_var=LD_LIBRARY_PATH
11052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11053 version_type=freebsd-elf
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11061 if test "$with_gnu_ld" = yes; then
11062 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11064 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11071 sys_lib_dlsearch_path_spec='/usr/lib'
11075 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=no
11082 hardcode_into_libs=yes
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11097 $as_echo "$dynamic_linker" >&6; }
11098 test "$dynamic_linker" = no && can_build_shared=no
11100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11101 if test "$GCC" = yes; then
11102 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11105 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11106 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11108 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11109 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11199 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11201 if test -n "$hardcode_libdir_flag_spec" ||
11202 test -n "$runpath_var" ||
11203 test "X$hardcode_automatic" = "Xyes" ; then
11205 # We can hardcode non-existent directories.
11206 if test "$hardcode_direct" != no &&
11207 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11208 # have to relink, otherwise we might link with an installed library
11209 # when we should be linking with a yet-to-be-installed one
11210 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11211 test "$hardcode_minus_L" != no; then
11212 # Linking always hardcodes the temporary library directory.
11213 hardcode_action=relink
11215 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11216 hardcode_action=immediate
11219 # We cannot hardcode anything, or else we can only hardcode existing
11221 hardcode_action=unsupported
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11224 $as_echo "$hardcode_action" >&6; }
11226 if test "$hardcode_action" = relink ||
11227 test "$inherit_rpath" = yes; then
11228 # Fast installation is not supported
11229 enable_fast_install=no
11230 elif test "$shlibpath_overrides_runpath" = yes ||
11231 test "$enable_shared" = no; then
11232 # Fast installation is not necessary
11233 enable_fast_install=needless
11241 if test "x$enable_dlopen" != xyes; then
11242 enable_dlopen=unknown
11243 enable_dlopen_self=unknown
11244 enable_dlopen_self_static=unknown
11251 lt_cv_dlopen="load_add_on"
11253 lt_cv_dlopen_self=yes
11256 mingw* | pw32* | cegcc*)
11257 lt_cv_dlopen="LoadLibrary"
11262 lt_cv_dlopen="dlopen"
11267 # if libdl is installed we need to link against it
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11269 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11273 ac_check_lib_save_LIBS=$LIBS
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 ac_cv_lib_dl_dlopen=yes
11296 ac_cv_lib_dl_dlopen=no
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11303 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11304 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11308 lt_cv_dlopen="dyld"
11310 lt_cv_dlopen_self=yes
11317 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11318 if test "x$ac_cv_func_shl_load" = x""yes; then :
11319 lt_cv_dlopen="shl_load"
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11322 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11323 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11326 ac_check_lib_save_LIBS=$LIBS
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11341 return shl_load ();
11346 if ac_fn_c_try_link "$LINENO"; then :
11347 ac_cv_lib_dld_shl_load=yes
11349 ac_cv_lib_dld_shl_load=no
11351 rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11356 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11357 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11358 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11360 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11361 if test "x$ac_cv_func_dlopen" = x""yes; then :
11362 lt_cv_dlopen="dlopen"
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11365 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
11369 ac_check_lib_save_LIBS=$LIBS
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 ac_cv_lib_dl_dlopen=yes
11392 ac_cv_lib_dl_dlopen=no
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11396 LIBS=$ac_check_lib_save_LIBS
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11399 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11400 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11401 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11404 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11405 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11408 ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-lsvld $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_svld_dlopen=yes
11431 ac_cv_lib_svld_dlopen=no
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11438 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11439 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11440 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11443 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11444 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
11447 ac_check_lib_save_LIBS=$LIBS
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11462 return dld_link ();
11467 if ac_fn_c_try_link "$LINENO"; then :
11468 ac_cv_lib_dld_dld_link=yes
11470 ac_cv_lib_dld_dld_link=no
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11477 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11478 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11479 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11500 if test "x$lt_cv_dlopen" != xno; then
11506 case $lt_cv_dlopen in
11508 save_CPPFLAGS="$CPPFLAGS"
11509 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11511 save_LDFLAGS="$LDFLAGS"
11512 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11515 LIBS="$lt_cv_dlopen_libs $LIBS"
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11518 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11519 if test "${lt_cv_dlopen_self+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11522 if test "$cross_compiling" = yes; then :
11523 lt_cv_dlopen_self=cross
11525 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11526 lt_status=$lt_dlunknown
11527 cat > conftest.$ac_ext <<_LT_EOF
11528 #line 11528 "configure"
11529 #include "confdefs.h"
11538 # define LT_DLGLOBAL RTLD_GLOBAL
11541 # define LT_DLGLOBAL DL_GLOBAL
11543 # define LT_DLGLOBAL 0
11547 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11548 find out it does not work in some platform. */
11549 #ifndef LT_DLLAZY_OR_NOW
11551 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11554 # define LT_DLLAZY_OR_NOW DL_LAZY
11557 # define LT_DLLAZY_OR_NOW RTLD_NOW
11560 # define LT_DLLAZY_OR_NOW DL_NOW
11562 # define LT_DLLAZY_OR_NOW 0
11569 void fnord() { int i=42;}
11572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11573 int status = $lt_dlunknown;
11577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11578 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11579 /* dlclose (self); */
11587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11588 (eval $ac_link) 2>&5
11590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11591 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11592 (./conftest; exit; ) >&5 2>/dev/null
11594 case x$lt_status in
11595 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11596 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11597 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11600 # compilation failed
11601 lt_cv_dlopen_self=no
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11609 $as_echo "$lt_cv_dlopen_self" >&6; }
11611 if test "x$lt_cv_dlopen_self" = xyes; then
11612 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11614 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11615 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
11618 if test "$cross_compiling" = yes; then :
11619 lt_cv_dlopen_self_static=cross
11621 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11622 lt_status=$lt_dlunknown
11623 cat > conftest.$ac_ext <<_LT_EOF
11624 #line 11624 "configure"
11625 #include "confdefs.h"
11634 # define LT_DLGLOBAL RTLD_GLOBAL
11637 # define LT_DLGLOBAL DL_GLOBAL
11639 # define LT_DLGLOBAL 0
11643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11644 find out it does not work in some platform. */
11645 #ifndef LT_DLLAZY_OR_NOW
11647 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11650 # define LT_DLLAZY_OR_NOW DL_LAZY
11653 # define LT_DLLAZY_OR_NOW RTLD_NOW
11656 # define LT_DLLAZY_OR_NOW DL_NOW
11658 # define LT_DLLAZY_OR_NOW 0
11665 void fnord() { int i=42;}
11668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11669 int status = $lt_dlunknown;
11673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11674 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11675 /* dlclose (self); */
11683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11684 (eval $ac_link) 2>&5
11686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11688 (./conftest; exit; ) >&5 2>/dev/null
11690 case x$lt_status in
11691 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11692 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11693 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11696 # compilation failed
11697 lt_cv_dlopen_self_static=no
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11705 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11708 CPPFLAGS="$save_CPPFLAGS"
11709 LDFLAGS="$save_LDFLAGS"
11714 case $lt_cv_dlopen_self in
11715 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11716 *) enable_dlopen_self=unknown ;;
11719 case $lt_cv_dlopen_self_static in
11720 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11721 *) enable_dlopen_self_static=unknown ;;
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11744 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11745 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11746 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11747 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749 $as_echo "yes" >&6; }
11751 # FIXME - insert some real tests, host_os isn't really good enough
11754 if test -n "$STRIP" ; then
11755 striplib="$STRIP -x"
11756 old_striplib="$STRIP -S"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11782 # Report which library types will actually be built
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11786 $as_echo "$can_build_shared" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11789 $as_echo_n "checking whether to build shared libraries... " >&6; }
11790 test "$can_build_shared" = "no" && enable_shared=no
11792 # On AIX, shared libraries and static libraries use the same namespace, and
11793 # are all built from PIC.
11796 test "$enable_shared" = yes && enable_static=no
11797 if test -n "$RANLIB"; then
11798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11799 postinstall_cmds='$RANLIB $lib'
11804 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11805 test "$enable_shared" = yes && enable_static=no
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11810 $as_echo "$enable_shared" >&6; }
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11813 $as_echo_n "checking whether to build static libraries... " >&6; }
11814 # Make sure either enable_shared or enable_static is yes.
11815 test "$enable_shared" = yes || enable_static=yes
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11817 $as_echo "$enable_static" >&6; }
11824 ac_cpp='$CPP $CPPFLAGS'
11825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11843 ac_config_commands="$ac_config_commands libtool"
11848 # Only expand once:
11852 PERL=${PERL-"${am_missing_run}perl"}
11855 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11859 $as_echo_n "checking whether NLS is requested... " >&6; }
11860 # Check whether --enable-nls was given.
11861 if test "${enable_nls+set}" = set; then :
11862 enableval=$enable_nls; USE_NLS=$enableval
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11868 $as_echo "$USE_NLS" >&6; }
11873 GETTEXT_MACRO_VERSION=0.17
11878 # Prepare PATH_SEPARATOR.
11879 # The user is always right.
11880 if test "${PATH_SEPARATOR+set}" != set; then
11881 echo "#! /bin/sh" >conf$$.sh
11882 echo "exit 0" >>conf$$.sh
11884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11892 # Find out how to test for executable files. Don't use a zero-byte file,
11893 # as systems may use methods other than mode bits to determine executability.
11894 cat >conf$$.file <<_ASEOF
11898 chmod +x conf$$.file
11899 if test -x conf$$.file >/dev/null 2>&1; then
11900 ac_executable_p="test -x"
11902 ac_executable_p="test -f"
11906 # Extract the first word of "msgfmt", so it can be a program name with args.
11907 set dummy msgfmt; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11915 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11918 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11919 for ac_dir in $PATH; do
11921 test -z "$ac_dir" && ac_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11924 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11925 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11926 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11927 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11934 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11938 MSGFMT="$ac_cv_path_MSGFMT"
11939 if test "$MSGFMT" != ":"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11941 $as_echo "$MSGFMT" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11947 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11948 set dummy gmsgfmt; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11956 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11966 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11978 GMSGFMT=$ac_cv_path_GMSGFMT
11979 if test -n "$GMSGFMT"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11981 $as_echo "$GMSGFMT" >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11989 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11990 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11991 *) MSGFMT_015=$MSGFMT ;;
11994 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11995 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11996 *) GMSGFMT_015=$GMSGFMT ;;
12001 # Prepare PATH_SEPARATOR.
12002 # The user is always right.
12003 if test "${PATH_SEPARATOR+set}" != set; then
12004 echo "#! /bin/sh" >conf$$.sh
12005 echo "exit 0" >>conf$$.sh
12007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12015 # Find out how to test for executable files. Don't use a zero-byte file,
12016 # as systems may use methods other than mode bits to determine executability.
12017 cat >conf$$.file <<_ASEOF
12021 chmod +x conf$$.file
12022 if test -x conf$$.file >/dev/null 2>&1; then
12023 ac_executable_p="test -x"
12025 ac_executable_p="test -f"
12029 # Extract the first word of "xgettext", so it can be a program name with args.
12030 set dummy xgettext; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12036 case "$XGETTEXT" in
12038 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12041 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12042 for ac_dir in $PATH; do
12044 test -z "$ac_dir" && ac_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12047 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12048 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12049 (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
12050 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12057 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12061 XGETTEXT="$ac_cv_path_XGETTEXT"
12062 if test "$XGETTEXT" != ":"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12064 $as_echo "$XGETTEXT" >&6; }
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12072 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12073 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12074 *) XGETTEXT_015=$XGETTEXT ;;
12079 # Prepare PATH_SEPARATOR.
12080 # The user is always right.
12081 if test "${PATH_SEPARATOR+set}" != set; then
12082 echo "#! /bin/sh" >conf$$.sh
12083 echo "exit 0" >>conf$$.sh
12085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12093 # Find out how to test for executable files. Don't use a zero-byte file,
12094 # as systems may use methods other than mode bits to determine executability.
12095 cat >conf$$.file <<_ASEOF
12099 chmod +x conf$$.file
12100 if test -x conf$$.file >/dev/null 2>&1; then
12101 ac_executable_p="test -x"
12103 ac_executable_p="test -f"
12107 # Extract the first word of "msgmerge", so it can be a program name with args.
12108 set dummy msgmerge; ac_word=$2
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110 $as_echo_n "checking for $ac_word... " >&6; }
12111 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
12114 case "$MSGMERGE" in
12116 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12119 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12120 for ac_dir in $PATH; do
12122 test -z "$ac_dir" && ac_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12125 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12126 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12127 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12134 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12138 MSGMERGE="$ac_cv_path_MSGMERGE"
12139 if test "$MSGMERGE" != ":"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12141 $as_echo "$MSGMERGE" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12148 test -n "$localedir" || localedir='${datadir}/locale'
12151 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12154 ac_config_commands="$ac_config_commands po-directories"
12158 if test "X$prefix" = "XNONE"; then
12159 acl_final_prefix="$ac_default_prefix"
12161 acl_final_prefix="$prefix"
12163 if test "X$exec_prefix" = "XNONE"; then
12164 acl_final_exec_prefix='${prefix}'
12166 acl_final_exec_prefix="$exec_prefix"
12168 acl_save_prefix="$prefix"
12169 prefix="$acl_final_prefix"
12170 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12171 prefix="$acl_save_prefix"
12174 # Check whether --with-gnu-ld was given.
12175 if test "${with_gnu_ld+set}" = set; then :
12176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12181 # Prepare PATH_SEPARATOR.
12182 # The user is always right.
12183 if test "${PATH_SEPARATOR+set}" != set; then
12184 echo "#! /bin/sh" >conf$$.sh
12185 echo "exit 0" >>conf$$.sh
12187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12195 if test "$GCC" = yes; then
12196 # Check if gcc -print-prog-name=ld gives a path.
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12198 $as_echo_n "checking for ld used by GCC... " >&6; }
12201 # gcc leaves a trailing carriage return which upsets mingw
12202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12207 # Accept absolute paths.
12208 [\\/]* | [A-Za-z]:[\\/]*)
12209 re_direlt='/[^/][^/]*/\.\./'
12210 # Canonicalize the path of ld
12211 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12212 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12213 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12215 test -z "$LD" && LD="$ac_prog"
12218 # If it fails, then pretend we aren't using GCC.
12222 # If it is relative, then search for the first ld in PATH.
12223 with_gnu_ld=unknown
12226 elif test "$with_gnu_ld" = yes; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12228 $as_echo_n "checking for GNU ld... " >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12231 $as_echo_n "checking for non-GNU ld... " >&6; }
12233 if test "${acl_cv_path_LD+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12236 if test -z "$LD"; then
12237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12238 for ac_dir in $PATH; do
12239 test -z "$ac_dir" && ac_dir=.
12240 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12241 acl_cv_path_LD="$ac_dir/$ac_prog"
12242 # Check to see if the program is GNU ld. I'd rather use --version,
12243 # but apparently some GNU ld's only accept -v.
12244 # Break only if it was the GNU/non-GNU ld that we prefer.
12245 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12246 *GNU* | *'with BFD'*)
12247 test "$with_gnu_ld" != no && break ;;
12249 test "$with_gnu_ld" != yes && break ;;
12255 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12259 LD="$acl_cv_path_LD"
12260 if test -n "$LD"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12262 $as_echo "$LD" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12267 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12269 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12270 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12273 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12274 case `$LD -v 2>&1 </dev/null` in
12275 *GNU* | *'with BFD'*)
12276 acl_cv_prog_gnu_ld=yes ;;
12278 acl_cv_prog_gnu_ld=no ;;
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12282 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12283 with_gnu_ld=$acl_cv_prog_gnu_ld
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12289 $as_echo_n "checking for shared library run path origin... " >&6; }
12290 if test "${acl_cv_rpath+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12294 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12295 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12297 rm -f ./conftest.sh
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12302 $as_echo "$acl_cv_rpath" >&6; }
12304 acl_libext="$acl_cv_libext"
12305 acl_shlibext="$acl_cv_shlibext"
12306 acl_libname_spec="$acl_cv_libname_spec"
12307 acl_library_names_spec="$acl_cv_library_names_spec"
12308 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12309 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12310 acl_hardcode_direct="$acl_cv_hardcode_direct"
12311 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12312 # Check whether --enable-rpath was given.
12313 if test "${enable_rpath+set}" = set; then :
12314 enableval=$enable_rpath; :
12322 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12323 if test -n "$searchpath"; then
12324 acl_save_IFS="${IFS= }"; IFS=":"
12325 for searchdir in $searchpath; do
12326 if test -d "$searchdir"; then
12327 case "$searchdir" in
12328 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12329 *) searchdir=`cd "$searchdir" && pwd`
12330 case "$searchdir" in
12331 */lib64 ) acl_libdirstem=lib64 ;;
12336 IFS="$acl_save_IFS"
12349 acl_save_prefix="$prefix"
12350 prefix="$acl_final_prefix"
12351 acl_save_exec_prefix="$exec_prefix"
12352 exec_prefix="$acl_final_exec_prefix"
12354 eval additional_includedir=\"$includedir\"
12355 eval additional_libdir=\"$libdir\"
12357 exec_prefix="$acl_save_exec_prefix"
12358 prefix="$acl_save_prefix"
12361 # Check whether --with-libiconv-prefix was given.
12362 if test "${with_libiconv_prefix+set}" = set; then :
12363 withval=$with_libiconv_prefix;
12364 if test "X$withval" = "Xno"; then
12367 if test "X$withval" = "X"; then
12369 acl_save_prefix="$prefix"
12370 prefix="$acl_final_prefix"
12371 acl_save_exec_prefix="$exec_prefix"
12372 exec_prefix="$acl_final_exec_prefix"
12374 eval additional_includedir=\"$includedir\"
12375 eval additional_libdir=\"$libdir\"
12377 exec_prefix="$acl_save_exec_prefix"
12378 prefix="$acl_save_prefix"
12381 additional_includedir="$withval/include"
12382 additional_libdir="$withval/$acl_libdirstem"
12394 names_already_handled=
12395 names_next_round='iconv '
12396 while test -n "$names_next_round"; do
12397 names_this_round="$names_next_round"
12399 for name in $names_this_round; do
12401 for n in $names_already_handled; do
12402 if test "$n" = "$name"; then
12403 already_handled=yes
12407 if test -z "$already_handled"; then
12408 names_already_handled="$names_already_handled $name"
12409 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12410 eval value=\"\$HAVE_LIB$uppername\"
12411 if test -n "$value"; then
12412 if test "$value" = yes; then
12413 eval value=\"\$LIB$uppername\"
12414 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12415 eval value=\"\$LTLIB$uppername\"
12416 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12425 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12426 if test -n "$acl_shlibext"; then
12427 shrext=".$acl_shlibext" # typically: shrext=.so
12431 if test $use_additional = yes; then
12432 dir="$additional_libdir"
12433 if test -n "$acl_shlibext"; then
12434 if test -f "$dir/$libname$shrext"; then
12436 found_so="$dir/$libname$shrext"
12438 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12439 ver=`(cd "$dir" && \
12440 for f in "$libname$shrext".*; do echo "$f"; done \
12441 | sed -e "s,^$libname$shrext\\\\.,," \
12442 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12443 | sed 1q ) 2>/dev/null`
12444 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12446 found_so="$dir/$libname$shrext.$ver"
12449 eval library_names=\"$acl_library_names_spec\"
12450 for f in $library_names; do
12451 if test -f "$dir/$f"; then
12460 if test "X$found_dir" = "X"; then
12461 if test -f "$dir/$libname.$acl_libext"; then
12463 found_a="$dir/$libname.$acl_libext"
12466 if test "X$found_dir" != "X"; then
12467 if test -f "$dir/$libname.la"; then
12468 found_la="$dir/$libname.la"
12472 if test "X$found_dir" = "X"; then
12473 for x in $LDFLAGS $LTLIBICONV; do
12475 acl_save_prefix="$prefix"
12476 prefix="$acl_final_prefix"
12477 acl_save_exec_prefix="$exec_prefix"
12478 exec_prefix="$acl_final_exec_prefix"
12480 exec_prefix="$acl_save_exec_prefix"
12481 prefix="$acl_save_prefix"
12485 dir=`echo "X$x" | sed -e 's/^X-L//'`
12486 if test -n "$acl_shlibext"; then
12487 if test -f "$dir/$libname$shrext"; then
12489 found_so="$dir/$libname$shrext"
12491 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12492 ver=`(cd "$dir" && \
12493 for f in "$libname$shrext".*; do echo "$f"; done \
12494 | sed -e "s,^$libname$shrext\\\\.,," \
12495 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12496 | sed 1q ) 2>/dev/null`
12497 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12499 found_so="$dir/$libname$shrext.$ver"
12502 eval library_names=\"$acl_library_names_spec\"
12503 for f in $library_names; do
12504 if test -f "$dir/$f"; then
12513 if test "X$found_dir" = "X"; then
12514 if test -f "$dir/$libname.$acl_libext"; then
12516 found_a="$dir/$libname.$acl_libext"
12519 if test "X$found_dir" != "X"; then
12520 if test -f "$dir/$libname.la"; then
12521 found_la="$dir/$libname.la"
12526 if test "X$found_dir" != "X"; then
12531 if test "X$found_dir" != "X"; then
12532 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12533 if test "X$found_so" != "X"; then
12534 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12535 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12538 for x in $ltrpathdirs; do
12539 if test "X$x" = "X$found_dir"; then
12544 if test -z "$haveit"; then
12545 ltrpathdirs="$ltrpathdirs $found_dir"
12547 if test "$acl_hardcode_direct" = yes; then
12548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12550 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12551 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12553 for x in $rpathdirs; do
12554 if test "X$x" = "X$found_dir"; then
12559 if test -z "$haveit"; then
12560 rpathdirs="$rpathdirs $found_dir"
12564 for x in $LDFLAGS $LIBICONV; do
12566 acl_save_prefix="$prefix"
12567 prefix="$acl_final_prefix"
12568 acl_save_exec_prefix="$exec_prefix"
12569 exec_prefix="$acl_final_exec_prefix"
12571 exec_prefix="$acl_save_exec_prefix"
12572 prefix="$acl_save_prefix"
12574 if test "X$x" = "X-L$found_dir"; then
12579 if test -z "$haveit"; then
12580 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12582 if test "$acl_hardcode_minus_L" != no; then
12583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12585 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12591 if test "X$found_a" != "X"; then
12592 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12594 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12597 additional_includedir=
12598 case "$found_dir" in
12599 */$acl_libdirstem | */$acl_libdirstem/)
12600 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12601 LIBICONV_PREFIX="$basedir"
12602 additional_includedir="$basedir/include"
12605 if test "X$additional_includedir" != "X"; then
12606 if test "X$additional_includedir" != "X/usr/include"; then
12608 if test "X$additional_includedir" = "X/usr/local/include"; then
12609 if test -n "$GCC"; then
12611 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12615 if test -z "$haveit"; then
12616 for x in $CPPFLAGS $INCICONV; do
12618 acl_save_prefix="$prefix"
12619 prefix="$acl_final_prefix"
12620 acl_save_exec_prefix="$exec_prefix"
12621 exec_prefix="$acl_final_exec_prefix"
12623 exec_prefix="$acl_save_exec_prefix"
12624 prefix="$acl_save_prefix"
12626 if test "X$x" = "X-I$additional_includedir"; then
12631 if test -z "$haveit"; then
12632 if test -d "$additional_includedir"; then
12633 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12639 if test -n "$found_la"; then
12640 save_libdir="$libdir"
12641 case "$found_la" in
12642 */* | *\\*) . "$found_la" ;;
12643 *) . "./$found_la" ;;
12645 libdir="$save_libdir"
12646 for dep in $dependency_libs; do
12649 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12650 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12652 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12653 if test -n "$GCC"; then
12655 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12659 if test -z "$haveit"; then
12661 for x in $LDFLAGS $LIBICONV; do
12663 acl_save_prefix="$prefix"
12664 prefix="$acl_final_prefix"
12665 acl_save_exec_prefix="$exec_prefix"
12666 exec_prefix="$acl_final_exec_prefix"
12668 exec_prefix="$acl_save_exec_prefix"
12669 prefix="$acl_save_prefix"
12671 if test "X$x" = "X-L$additional_libdir"; then
12676 if test -z "$haveit"; then
12677 if test -d "$additional_libdir"; then
12678 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12682 for x in $LDFLAGS $LTLIBICONV; do
12684 acl_save_prefix="$prefix"
12685 prefix="$acl_final_prefix"
12686 acl_save_exec_prefix="$exec_prefix"
12687 exec_prefix="$acl_final_exec_prefix"
12689 exec_prefix="$acl_save_exec_prefix"
12690 prefix="$acl_save_prefix"
12692 if test "X$x" = "X-L$additional_libdir"; then
12697 if test -z "$haveit"; then
12698 if test -d "$additional_libdir"; then
12699 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12706 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12707 if test "$enable_rpath" != no; then
12709 for x in $rpathdirs; do
12710 if test "X$x" = "X$dir"; then
12715 if test -z "$haveit"; then
12716 rpathdirs="$rpathdirs $dir"
12719 for x in $ltrpathdirs; do
12720 if test "X$x" = "X$dir"; then
12725 if test -z "$haveit"; then
12726 ltrpathdirs="$ltrpathdirs $dir"
12731 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12737 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12744 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12745 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12751 if test "X$rpathdirs" != "X"; then
12752 if test -n "$acl_hardcode_libdir_separator"; then
12754 for found_dir in $rpathdirs; do
12755 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12757 acl_save_libdir="$libdir"
12759 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12760 libdir="$acl_save_libdir"
12761 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12763 for found_dir in $rpathdirs; do
12764 acl_save_libdir="$libdir"
12765 libdir="$found_dir"
12766 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12767 libdir="$acl_save_libdir"
12768 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12772 if test "X$ltrpathdirs" != "X"; then
12773 for found_dir in $ltrpathdirs; do
12774 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12803 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12804 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 gt_save_LIBS="$LIBS"
12808 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 #include <CoreFoundation/CFPreferences.h>
12815 CFPreferencesCopyAppValue(NULL, NULL)
12820 if ac_fn_c_try_link "$LINENO"; then :
12821 gt_cv_func_CFPreferencesCopyAppValue=yes
12823 gt_cv_func_CFPreferencesCopyAppValue=no
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 LIBS="$gt_save_LIBS"
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12830 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12831 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12833 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12837 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12838 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12841 gt_save_LIBS="$LIBS"
12842 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845 #include <CoreFoundation/CFLocale.h>
12849 CFLocaleCopyCurrent();
12854 if ac_fn_c_try_link "$LINENO"; then :
12855 gt_cv_func_CFLocaleCopyCurrent=yes
12857 gt_cv_func_CFLocaleCopyCurrent=no
12859 rm -f core conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 LIBS="$gt_save_LIBS"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12864 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12865 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12867 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12871 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12872 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12884 case " $gt_needs " in
12885 *" need-formatstring-macros "*) gt_api_version=3 ;;
12886 *" need-ngettext "*) gt_api_version=2 ;;
12887 *) gt_api_version=1 ;;
12889 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12890 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12892 if test "$USE_NLS" = "yes"; then
12893 gt_use_preinstalled_gnugettext=no
12896 if test $gt_api_version -ge 3; then
12897 gt_revision_test_code='
12898 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12899 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12901 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12904 gt_revision_test_code=
12906 if test $gt_api_version -ge 2; then
12907 gt_expression_test_code=' + * ngettext ("", "", 0)'
12909 gt_expression_test_code=
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12913 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12914 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
12915 $as_echo_n "(cached) " >&6
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919 #include <libintl.h>
12920 $gt_revision_test_code
12921 extern int _nl_msg_cat_cntr;
12922 extern int *_nl_domain_bindings;
12926 bindtextdomain ("", "");
12927 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12932 if ac_fn_c_try_link "$LINENO"; then :
12933 eval "$gt_func_gnugettext_libc=yes"
12935 eval "$gt_func_gnugettext_libc=no"
12937 rm -f core conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12940 eval ac_res=\$$gt_func_gnugettext_libc
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12942 $as_echo "$ac_res" >&6; }
12944 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12950 am_save_CPPFLAGS="$CPPFLAGS"
12952 for element in $INCICONV; do
12954 for x in $CPPFLAGS; do
12956 acl_save_prefix="$prefix"
12957 prefix="$acl_final_prefix"
12958 acl_save_exec_prefix="$exec_prefix"
12959 exec_prefix="$acl_final_exec_prefix"
12961 exec_prefix="$acl_save_exec_prefix"
12962 prefix="$acl_save_prefix"
12964 if test "X$x" = "X$element"; then
12969 if test -z "$haveit"; then
12970 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12976 $as_echo_n "checking for iconv... " >&6; }
12977 if test "${am_cv_func_iconv+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12981 am_cv_func_iconv="no, consider installing GNU libiconv"
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985 #include <stdlib.h>
12990 iconv_t cd = iconv_open("","");
12991 iconv(cd,NULL,NULL,NULL,NULL);
12997 if ac_fn_c_try_link "$LINENO"; then :
12998 am_cv_func_iconv=yes
13000 rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 if test "$am_cv_func_iconv" != yes; then
13003 am_save_LIBS="$LIBS"
13004 LIBS="$LIBS $LIBICONV"
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007 #include <stdlib.h>
13012 iconv_t cd = iconv_open("","");
13013 iconv(cd,NULL,NULL,NULL,NULL);
13019 if ac_fn_c_try_link "$LINENO"; then :
13020 am_cv_lib_iconv=yes
13021 am_cv_func_iconv=yes
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LIBS="$am_save_LIBS"
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13030 $as_echo "$am_cv_func_iconv" >&6; }
13031 if test "$am_cv_func_iconv" = yes; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13033 $as_echo_n "checking for working iconv... " >&6; }
13034 if test "${am_cv_func_iconv_works+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13038 am_save_LIBS="$LIBS"
13039 if test $am_cv_lib_iconv = yes; then
13040 LIBS="$LIBS $LIBICONV"
13042 if test "$cross_compiling" = yes; then :
13044 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13045 *) am_cv_func_iconv_works="guessing yes" ;;
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13052 #include <string.h>
13055 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13058 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13059 if (cd_utf8_to_88591 != (iconv_t)(-1))
13061 static const char input[] = "\342\202\254"; /* EURO SIGN */
13063 const char *inptr = input;
13064 size_t inbytesleft = strlen (input);
13065 char *outptr = buf;
13066 size_t outbytesleft = sizeof (buf);
13067 size_t res = iconv (cd_utf8_to_88591,
13068 (char **) &inptr, &inbytesleft,
13069 &outptr, &outbytesleft);
13074 #if 0 /* This bug could be worked around by the caller. */
13075 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13077 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13078 if (cd_88591_to_utf8 != (iconv_t)(-1))
13080 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13082 const char *inptr = input;
13083 size_t inbytesleft = strlen (input);
13084 char *outptr = buf;
13085 size_t outbytesleft = sizeof (buf);
13086 size_t res = iconv (cd_88591_to_utf8,
13087 (char **) &inptr, &inbytesleft,
13088 &outptr, &outbytesleft);
13094 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13096 if (/* Try standardized names. */
13097 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13098 /* Try IRIX, OSF/1 names. */
13099 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13100 /* Try AIX names. */
13101 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13102 /* Try HP-UX names. */
13103 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13108 if ac_fn_c_try_run "$LINENO"; then :
13109 am_cv_func_iconv_works=yes
13111 am_cv_func_iconv_works=no
13113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13114 conftest.$ac_objext conftest.beam conftest.$ac_ext
13117 LIBS="$am_save_LIBS"
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13121 $as_echo "$am_cv_func_iconv_works" >&6; }
13122 case "$am_cv_func_iconv_works" in
13123 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13124 *) am_func_iconv=yes ;;
13127 am_func_iconv=no am_cv_lib_iconv=no
13129 if test "$am_func_iconv" = yes; then
13131 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13134 if test "$am_cv_lib_iconv" = yes; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13136 $as_echo_n "checking how to link with libiconv... " >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13138 $as_echo "$LIBICONV" >&6; }
13140 CPPFLAGS="$am_save_CPPFLAGS"
13154 acl_save_prefix="$prefix"
13155 prefix="$acl_final_prefix"
13156 acl_save_exec_prefix="$exec_prefix"
13157 exec_prefix="$acl_final_exec_prefix"
13159 eval additional_includedir=\"$includedir\"
13160 eval additional_libdir=\"$libdir\"
13162 exec_prefix="$acl_save_exec_prefix"
13163 prefix="$acl_save_prefix"
13166 # Check whether --with-libintl-prefix was given.
13167 if test "${with_libintl_prefix+set}" = set; then :
13168 withval=$with_libintl_prefix;
13169 if test "X$withval" = "Xno"; then
13172 if test "X$withval" = "X"; then
13174 acl_save_prefix="$prefix"
13175 prefix="$acl_final_prefix"
13176 acl_save_exec_prefix="$exec_prefix"
13177 exec_prefix="$acl_final_exec_prefix"
13179 eval additional_includedir=\"$includedir\"
13180 eval additional_libdir=\"$libdir\"
13182 exec_prefix="$acl_save_exec_prefix"
13183 prefix="$acl_save_prefix"
13186 additional_includedir="$withval/include"
13187 additional_libdir="$withval/$acl_libdirstem"
13199 names_already_handled=
13200 names_next_round='intl '
13201 while test -n "$names_next_round"; do
13202 names_this_round="$names_next_round"
13204 for name in $names_this_round; do
13206 for n in $names_already_handled; do
13207 if test "$n" = "$name"; then
13208 already_handled=yes
13212 if test -z "$already_handled"; then
13213 names_already_handled="$names_already_handled $name"
13214 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13215 eval value=\"\$HAVE_LIB$uppername\"
13216 if test -n "$value"; then
13217 if test "$value" = yes; then
13218 eval value=\"\$LIB$uppername\"
13219 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13220 eval value=\"\$LTLIB$uppername\"
13221 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13230 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13231 if test -n "$acl_shlibext"; then
13232 shrext=".$acl_shlibext" # typically: shrext=.so
13236 if test $use_additional = yes; then
13237 dir="$additional_libdir"
13238 if test -n "$acl_shlibext"; then
13239 if test -f "$dir/$libname$shrext"; then
13241 found_so="$dir/$libname$shrext"
13243 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13244 ver=`(cd "$dir" && \
13245 for f in "$libname$shrext".*; do echo "$f"; done \
13246 | sed -e "s,^$libname$shrext\\\\.,," \
13247 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13248 | sed 1q ) 2>/dev/null`
13249 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13251 found_so="$dir/$libname$shrext.$ver"
13254 eval library_names=\"$acl_library_names_spec\"
13255 for f in $library_names; do
13256 if test -f "$dir/$f"; then
13265 if test "X$found_dir" = "X"; then
13266 if test -f "$dir/$libname.$acl_libext"; then
13268 found_a="$dir/$libname.$acl_libext"
13271 if test "X$found_dir" != "X"; then
13272 if test -f "$dir/$libname.la"; then
13273 found_la="$dir/$libname.la"
13277 if test "X$found_dir" = "X"; then
13278 for x in $LDFLAGS $LTLIBINTL; do
13280 acl_save_prefix="$prefix"
13281 prefix="$acl_final_prefix"
13282 acl_save_exec_prefix="$exec_prefix"
13283 exec_prefix="$acl_final_exec_prefix"
13285 exec_prefix="$acl_save_exec_prefix"
13286 prefix="$acl_save_prefix"
13290 dir=`echo "X$x" | sed -e 's/^X-L//'`
13291 if test -n "$acl_shlibext"; then
13292 if test -f "$dir/$libname$shrext"; then
13294 found_so="$dir/$libname$shrext"
13296 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13297 ver=`(cd "$dir" && \
13298 for f in "$libname$shrext".*; do echo "$f"; done \
13299 | sed -e "s,^$libname$shrext\\\\.,," \
13300 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13301 | sed 1q ) 2>/dev/null`
13302 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13304 found_so="$dir/$libname$shrext.$ver"
13307 eval library_names=\"$acl_library_names_spec\"
13308 for f in $library_names; do
13309 if test -f "$dir/$f"; then
13318 if test "X$found_dir" = "X"; then
13319 if test -f "$dir/$libname.$acl_libext"; then
13321 found_a="$dir/$libname.$acl_libext"
13324 if test "X$found_dir" != "X"; then
13325 if test -f "$dir/$libname.la"; then
13326 found_la="$dir/$libname.la"
13331 if test "X$found_dir" != "X"; then
13336 if test "X$found_dir" != "X"; then
13337 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13338 if test "X$found_so" != "X"; then
13339 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13340 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13343 for x in $ltrpathdirs; do
13344 if test "X$x" = "X$found_dir"; then
13349 if test -z "$haveit"; then
13350 ltrpathdirs="$ltrpathdirs $found_dir"
13352 if test "$acl_hardcode_direct" = yes; then
13353 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13355 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13356 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13358 for x in $rpathdirs; do
13359 if test "X$x" = "X$found_dir"; then
13364 if test -z "$haveit"; then
13365 rpathdirs="$rpathdirs $found_dir"
13369 for x in $LDFLAGS $LIBINTL; do
13371 acl_save_prefix="$prefix"
13372 prefix="$acl_final_prefix"
13373 acl_save_exec_prefix="$exec_prefix"
13374 exec_prefix="$acl_final_exec_prefix"
13376 exec_prefix="$acl_save_exec_prefix"
13377 prefix="$acl_save_prefix"
13379 if test "X$x" = "X-L$found_dir"; then
13384 if test -z "$haveit"; then
13385 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13387 if test "$acl_hardcode_minus_L" != no; then
13388 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13390 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13396 if test "X$found_a" != "X"; then
13397 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13399 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13402 additional_includedir=
13403 case "$found_dir" in
13404 */$acl_libdirstem | */$acl_libdirstem/)
13405 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13406 LIBINTL_PREFIX="$basedir"
13407 additional_includedir="$basedir/include"
13410 if test "X$additional_includedir" != "X"; then
13411 if test "X$additional_includedir" != "X/usr/include"; then
13413 if test "X$additional_includedir" = "X/usr/local/include"; then
13414 if test -n "$GCC"; then
13416 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13420 if test -z "$haveit"; then
13421 for x in $CPPFLAGS $INCINTL; do
13423 acl_save_prefix="$prefix"
13424 prefix="$acl_final_prefix"
13425 acl_save_exec_prefix="$exec_prefix"
13426 exec_prefix="$acl_final_exec_prefix"
13428 exec_prefix="$acl_save_exec_prefix"
13429 prefix="$acl_save_prefix"
13431 if test "X$x" = "X-I$additional_includedir"; then
13436 if test -z "$haveit"; then
13437 if test -d "$additional_includedir"; then
13438 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13444 if test -n "$found_la"; then
13445 save_libdir="$libdir"
13446 case "$found_la" in
13447 */* | *\\*) . "$found_la" ;;
13448 *) . "./$found_la" ;;
13450 libdir="$save_libdir"
13451 for dep in $dependency_libs; do
13454 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13455 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13457 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13458 if test -n "$GCC"; then
13460 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13464 if test -z "$haveit"; then
13466 for x in $LDFLAGS $LIBINTL; do
13468 acl_save_prefix="$prefix"
13469 prefix="$acl_final_prefix"
13470 acl_save_exec_prefix="$exec_prefix"
13471 exec_prefix="$acl_final_exec_prefix"
13473 exec_prefix="$acl_save_exec_prefix"
13474 prefix="$acl_save_prefix"
13476 if test "X$x" = "X-L$additional_libdir"; then
13481 if test -z "$haveit"; then
13482 if test -d "$additional_libdir"; then
13483 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13487 for x in $LDFLAGS $LTLIBINTL; do
13489 acl_save_prefix="$prefix"
13490 prefix="$acl_final_prefix"
13491 acl_save_exec_prefix="$exec_prefix"
13492 exec_prefix="$acl_final_exec_prefix"
13494 exec_prefix="$acl_save_exec_prefix"
13495 prefix="$acl_save_prefix"
13497 if test "X$x" = "X-L$additional_libdir"; then
13502 if test -z "$haveit"; then
13503 if test -d "$additional_libdir"; then
13504 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13511 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13512 if test "$enable_rpath" != no; then
13514 for x in $rpathdirs; do
13515 if test "X$x" = "X$dir"; then
13520 if test -z "$haveit"; then
13521 rpathdirs="$rpathdirs $dir"
13524 for x in $ltrpathdirs; do
13525 if test "X$x" = "X$dir"; then
13530 if test -z "$haveit"; then
13531 ltrpathdirs="$ltrpathdirs $dir"
13536 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13539 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13542 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13549 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13550 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13556 if test "X$rpathdirs" != "X"; then
13557 if test -n "$acl_hardcode_libdir_separator"; then
13559 for found_dir in $rpathdirs; do
13560 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13562 acl_save_libdir="$libdir"
13564 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13565 libdir="$acl_save_libdir"
13566 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13568 for found_dir in $rpathdirs; do
13569 acl_save_libdir="$libdir"
13570 libdir="$found_dir"
13571 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13572 libdir="$acl_save_libdir"
13573 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13577 if test "X$ltrpathdirs" != "X"; then
13578 for found_dir in $ltrpathdirs; do
13579 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13584 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13585 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
13586 $as_echo_n "(cached) " >&6
13588 gt_save_CPPFLAGS="$CPPFLAGS"
13589 CPPFLAGS="$CPPFLAGS $INCINTL"
13590 gt_save_LIBS="$LIBS"
13591 LIBS="$LIBS $LIBINTL"
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 #include <libintl.h>
13595 $gt_revision_test_code
13596 extern int _nl_msg_cat_cntr;
13601 const char *_nl_expand_alias (const char *);
13605 bindtextdomain ("", "");
13606 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 eval "$gt_func_gnugettext_libintl=yes"
13614 eval "$gt_func_gnugettext_libintl=no"
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13619 LIBS="$LIBS $LIBICONV"
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #include <libintl.h>
13623 $gt_revision_test_code
13624 extern int _nl_msg_cat_cntr;
13629 const char *_nl_expand_alias (const char *);
13633 bindtextdomain ("", "");
13634 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 LIBINTL="$LIBINTL $LIBICONV"
13641 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13642 eval "$gt_func_gnugettext_libintl=yes"
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13648 CPPFLAGS="$gt_save_CPPFLAGS"
13649 LIBS="$gt_save_LIBS"
13651 eval ac_res=\$$gt_func_gnugettext_libintl
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13653 $as_echo "$ac_res" >&6; }
13656 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13657 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13658 && test "$PACKAGE" != gettext-runtime \
13659 && test "$PACKAGE" != gettext-tools; }; then
13660 gt_use_preinstalled_gnugettext=yes
13669 if test -n "$INTL_MACOSX_LIBS"; then
13670 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13671 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13672 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13673 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13677 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13678 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13680 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13688 $as_echo_n "checking whether to use NLS... " >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13690 $as_echo "$USE_NLS" >&6; }
13691 if test "$USE_NLS" = "yes"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13693 $as_echo_n "checking where the gettext function comes from... " >&6; }
13694 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13695 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13696 gt_source="external libintl"
13701 gt_source="included intl directory"
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13704 $as_echo "$gt_source" >&6; }
13707 if test "$USE_NLS" = "yes"; then
13709 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13710 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13712 $as_echo_n "checking how to link with libintl... " >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13714 $as_echo "$LIBINTL" >&6; }
13716 for element in $INCINTL; do
13718 for x in $CPPFLAGS; do
13720 acl_save_prefix="$prefix"
13721 prefix="$acl_final_prefix"
13722 acl_save_exec_prefix="$exec_prefix"
13723 exec_prefix="$acl_final_exec_prefix"
13725 exec_prefix="$acl_save_exec_prefix"
13726 prefix="$acl_save_prefix"
13728 if test "X$x" = "X$element"; then
13733 if test -z "$haveit"; then
13734 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13741 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13744 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13753 INTLLIBS="$LIBINTL"
13766 am_save_CPPFLAGS="$CPPFLAGS"
13768 for element in $INCICONV; do
13770 for x in $CPPFLAGS; do
13772 acl_save_prefix="$prefix"
13773 prefix="$acl_final_prefix"
13774 acl_save_exec_prefix="$exec_prefix"
13775 exec_prefix="$acl_final_exec_prefix"
13777 exec_prefix="$acl_save_exec_prefix"
13778 prefix="$acl_save_prefix"
13780 if test "X$x" = "X$element"; then
13785 if test -z "$haveit"; then
13786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13792 $as_echo_n "checking for iconv... " >&6; }
13793 if test "${am_cv_func_iconv+set}" = set; then :
13794 $as_echo_n "(cached) " >&6
13797 am_cv_func_iconv="no, consider installing GNU libiconv"
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13801 #include <stdlib.h>
13806 iconv_t cd = iconv_open("","");
13807 iconv(cd,NULL,NULL,NULL,NULL);
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 am_cv_func_iconv=yes
13816 rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 if test "$am_cv_func_iconv" != yes; then
13819 am_save_LIBS="$LIBS"
13820 LIBS="$LIBS $LIBICONV"
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <stdlib.h>
13828 iconv_t cd = iconv_open("","");
13829 iconv(cd,NULL,NULL,NULL,NULL);
13835 if ac_fn_c_try_link "$LINENO"; then :
13836 am_cv_lib_iconv=yes
13837 am_cv_func_iconv=yes
13839 rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 LIBS="$am_save_LIBS"
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13846 $as_echo "$am_cv_func_iconv" >&6; }
13847 if test "$am_cv_func_iconv" = yes; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13849 $as_echo_n "checking for working iconv... " >&6; }
13850 if test "${am_cv_func_iconv_works+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13854 am_save_LIBS="$LIBS"
13855 if test $am_cv_lib_iconv = yes; then
13856 LIBS="$LIBS $LIBICONV"
13858 if test "$cross_compiling" = yes; then :
13860 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13861 *) am_cv_func_iconv_works="guessing yes" ;;
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13868 #include <string.h>
13871 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13874 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13875 if (cd_utf8_to_88591 != (iconv_t)(-1))
13877 static const char input[] = "\342\202\254"; /* EURO SIGN */
13879 const char *inptr = input;
13880 size_t inbytesleft = strlen (input);
13881 char *outptr = buf;
13882 size_t outbytesleft = sizeof (buf);
13883 size_t res = iconv (cd_utf8_to_88591,
13884 (char **) &inptr, &inbytesleft,
13885 &outptr, &outbytesleft);
13890 #if 0 /* This bug could be worked around by the caller. */
13891 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13893 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13894 if (cd_88591_to_utf8 != (iconv_t)(-1))
13896 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13898 const char *inptr = input;
13899 size_t inbytesleft = strlen (input);
13900 char *outptr = buf;
13901 size_t outbytesleft = sizeof (buf);
13902 size_t res = iconv (cd_88591_to_utf8,
13903 (char **) &inptr, &inbytesleft,
13904 &outptr, &outbytesleft);
13910 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13912 if (/* Try standardized names. */
13913 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13914 /* Try IRIX, OSF/1 names. */
13915 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13916 /* Try AIX names. */
13917 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13918 /* Try HP-UX names. */
13919 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13924 if ac_fn_c_try_run "$LINENO"; then :
13925 am_cv_func_iconv_works=yes
13927 am_cv_func_iconv_works=no
13929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13930 conftest.$ac_objext conftest.beam conftest.$ac_ext
13933 LIBS="$am_save_LIBS"
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13937 $as_echo "$am_cv_func_iconv_works" >&6; }
13938 case "$am_cv_func_iconv_works" in
13939 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13940 *) am_func_iconv=yes ;;
13943 am_func_iconv=no am_cv_lib_iconv=no
13945 if test "$am_func_iconv" = yes; then
13947 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13950 if test "$am_cv_lib_iconv" = yes; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13952 $as_echo_n "checking how to link with libiconv... " >&6; }
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13954 $as_echo "$LIBICONV" >&6; }
13956 CPPFLAGS="$am_save_CPPFLAGS"
13963 if test "$am_cv_func_iconv" = yes; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13965 $as_echo_n "checking for iconv declaration... " >&6; }
13966 if test "${am_cv_proto_iconv+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13973 #include <stdlib.h>
13979 #if defined(__STDC__) || defined(__cplusplus)
13980 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994 am_cv_proto_iconv_arg1=""
13996 am_cv_proto_iconv_arg1="const"
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 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);"
14002 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14004 }$am_cv_proto_iconv" >&5
14006 }$am_cv_proto_iconv" >&6; }
14008 cat >>confdefs.h <<_ACEOF
14009 #define ICONV_CONST $am_cv_proto_iconv_arg1
14014 # If set to t, that means we are running in a shell under Emacs.
14015 # If you have an Emacs named "t", then use the full path.
14016 test x"$EMACS" = xt && EMACS=
14017 for ac_prog in emacs xemacs
14019 # Extract the first word of "$ac_prog", so it can be a program name with args.
14020 set dummy $ac_prog; ac_word=$2
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14022 $as_echo_n "checking for $ac_word... " >&6; }
14023 if test "${ac_cv_prog_EMACS+set}" = set; then :
14024 $as_echo_n "(cached) " >&6
14026 if test -n "$EMACS"; then
14027 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14036 ac_cv_prog_EMACS="$ac_prog"
14037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14046 EMACS=$ac_cv_prog_EMACS
14047 if test -n "$EMACS"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
14049 $as_echo "$EMACS" >&6; }
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052 $as_echo "no" >&6; }
14056 test -n "$EMACS" && break
14058 test -n "$EMACS" || EMACS="no"
14063 # Check whether --with-lispdir was given.
14064 if test "${with_lispdir+set}" = set; then :
14065 withval=$with_lispdir; lispdir="$withval"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
14067 $as_echo_n "checking where .elc files should go... " >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
14069 $as_echo "$lispdir" >&6; }
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
14073 $as_echo_n "checking where .elc files should go... " >&6; }
14074 if test "${am_cv_lispdir+set}" = set; then :
14075 $as_echo_n "(cached) " >&6
14078 if test $EMACS != "no"; then
14079 if test x${lispdir+set} != xset; then
14080 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
14081 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
14082 # which is non-obvious for non-emacs users.
14083 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
14084 # emacsen earlier and avoid running this altogether.
14085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
14086 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
14088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14089 test $ac_status = 0; }
14090 am_cv_lispdir=`sed -n \
14092 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
14093 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
14098 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
14102 $as_echo "$am_cv_lispdir" >&6; }
14103 lispdir="$am_cv_lispdir"
14110 if test "$am_cv_func_iconv" != "yes"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}:
14114 Your system does not have iconv(). The iconv() function is not
14115 strictly required by the source code. However, that may change in
14116 the future, unless you report that this may be a problem for you.
14118 Please report this to $PACKAGE_BUGREPORT.
14124 Your system does not have iconv(). The iconv() function is not
14125 strictly required by the source code. However, that may change in
14126 the future, unless you report that this may be a problem for you.
14128 Please report this to $PACKAGE_BUGREPORT.
14133 # Checks for header files.
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14135 $as_echo_n "checking for ANSI C header files... " >&6; }
14136 if test "${ac_cv_header_stdc+set}" = set; then :
14137 $as_echo_n "(cached) " >&6
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 #include <stdlib.h>
14142 #include <stdarg.h>
14143 #include <string.h>
14154 if ac_fn_c_try_compile "$LINENO"; then :
14155 ac_cv_header_stdc=yes
14157 ac_cv_header_stdc=no
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 if test $ac_cv_header_stdc = yes; then
14162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165 #include <string.h>
14168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14169 $EGREP "memchr" >/dev/null 2>&1; then :
14172 ac_cv_header_stdc=no
14178 if test $ac_cv_header_stdc = yes; then
14179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 #include <stdlib.h>
14185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14186 $EGREP "free" >/dev/null 2>&1; then :
14189 ac_cv_header_stdc=no
14195 if test $ac_cv_header_stdc = yes; then
14196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14197 if test "$cross_compiling" = yes; then :
14200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14203 #include <stdlib.h>
14204 #if ((' ' & 0x0FF) == 0x020)
14205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14208 # define ISLOWER(c) \
14209 (('a' <= (c) && (c) <= 'i') \
14210 || ('j' <= (c) && (c) <= 'r') \
14211 || ('s' <= (c) && (c) <= 'z'))
14212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14220 for (i = 0; i < 256; i++)
14221 if (XOR (islower (i), ISLOWER (i))
14222 || toupper (i) != TOUPPER (i))
14227 if ac_fn_c_try_run "$LINENO"; then :
14230 ac_cv_header_stdc=no
14232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14233 conftest.$ac_objext conftest.beam conftest.$ac_ext
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14239 $as_echo "$ac_cv_header_stdc" >&6; }
14240 if test $ac_cv_header_stdc = yes; then
14242 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14247 # For gnulib stuff in gl/.
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
14255 $as_echo_n "checking for preferred C# implementation... " >&6; }
14256 # Check whether --enable-csharp was given.
14257 if test "${enable_csharp+set}" = set; then :
14258 enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
14265 $as_echo "$CSHARP_CHOICE" >&6; }
14266 case "$CSHARP_CHOICE" in
14269 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
14274 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
14282 $as_echo_n "checking for C# compiler... " >&6; }
14284 # Extract the first word of "cscc", so it can be a program name with args.
14285 set dummy cscc; ac_word=$2
14287 if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14290 if test -n "$HAVE_CSCC_IN_PATH"; then
14291 ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300 ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14310 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
14311 if test -n "$HAVE_CSCC_IN_PATH"; then
14318 # Extract the first word of "mcs", so it can be a program name with args.
14319 set dummy mcs; ac_word=$2
14321 if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then :
14322 $as_echo_n "(cached) " >&6
14324 if test -n "$HAVE_MCS_IN_PATH"; then
14325 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14331 test -z "$as_dir" && as_dir=.
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14334 ac_cv_prog_HAVE_MCS_IN_PATH="yes"
14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
14345 if test -n "$HAVE_MCS_IN_PATH"; then
14352 # Extract the first word of "csc", so it can be a program name with args.
14353 set dummy csc; ac_word=$2
14355 if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14358 if test -n "$HAVE_CSC_IN_PATH"; then
14359 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14365 test -z "$as_dir" && as_dir=.
14366 for ac_exec_ext in '' $ac_executable_extensions; do
14367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14368 ac_cv_prog_HAVE_CSC_IN_PATH="yes"
14369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
14379 if test -n "$HAVE_CSC_IN_PATH"; then
14386 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
14389 if test -n "$HAVE_CSCC_IN_PATH" \
14390 && cscc --version >/dev/null 2>/dev/null \
14392 # See if pnetlib is well installed.
14393 echo 'class ConfTest { static void Main() { } }' > conftest.cs
14394 cscc -o conftest.exe conftest.cs 2>/dev/null
14396 rm -f conftest.cs conftest.exe
14405 if test -n "$HAVE_MCS_IN_PATH" \
14406 && mcs --version >/dev/null 2>/dev/null \
14407 && mcs --version 2>/dev/null | grep Mono >/dev/null; then
14414 if test -n "$HAVE_CSC_IN_PATH" \
14415 && csc -help >/dev/null 2>/dev/null \
14416 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
14430 $as_echo "$ac_result" >&6; }
14434 if test -z "${CSHARPCOMPFLAGS+set}"; then
14435 CSHARPCOMPFLAGS="-O -g"
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14442 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14443 if test "${gl_cv_have_include_next+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14446 rm -rf conftestd1a conftestd1b conftestd2
14447 mkdir conftestd1a conftestd1b conftestd2
14448 cat <<EOF > conftestd1a/conftest.h
14449 #define DEFINED_IN_CONFTESTD1
14450 #include_next <conftest.h>
14451 #ifdef DEFINED_IN_CONFTESTD2
14454 #error "include_next doesn't work"
14457 cat <<EOF > conftestd1b/conftest.h
14458 #define DEFINED_IN_CONFTESTD1
14460 #include_next <conftest.h>
14461 #ifdef DEFINED_IN_CONFTESTD2
14464 #error "include_next doesn't work"
14467 cat <<EOF > conftestd2/conftest.h
14468 #ifndef DEFINED_IN_CONFTESTD1
14469 #error "include_next test doesn't work"
14471 #define DEFINED_IN_CONFTESTD2
14473 gl_save_CPPFLAGS="$CPPFLAGS"
14474 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14477 #include <conftest.h>
14479 if ac_fn_c_try_compile "$LINENO"; then :
14480 gl_cv_have_include_next=yes
14482 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <conftest.h>
14487 if ac_fn_c_try_compile "$LINENO"; then :
14488 gl_cv_have_include_next=buggy
14490 gl_cv_have_include_next=no
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 CPPFLAGS="$gl_save_CPPFLAGS"
14497 rm -rf conftestd1a conftestd1b conftestd2
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14501 $as_echo "$gl_cv_have_include_next" >&6; }
14502 PRAGMA_SYSTEM_HEADER=
14503 if test $gl_cv_have_include_next = yes; then
14504 INCLUDE_NEXT=include_next
14505 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14506 if test -n "$GCC"; then
14507 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14510 if test $gl_cv_have_include_next = buggy; then
14511 INCLUDE_NEXT=include
14512 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14514 INCLUDE_NEXT=include
14515 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14525 for ac_header in $ac_header_list
14527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14531 cat >>confdefs.h <<_ACEOF
14532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
14544 $as_echo_n "checking for complete errno.h... " >&6; }
14545 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14553 #if !defined ENOMSG
14559 #if !defined ENOLINK
14562 #if !defined EPROTO
14565 #if !defined EMULTIHOP
14568 #if !defined EBADMSG
14571 #if !defined EOVERFLOW
14574 #if !defined ENOTSUP
14577 #if !defined ECANCELED
14582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14583 $EGREP "booboo" >/dev/null 2>&1; then :
14584 gl_cv_header_errno_h_complete=no
14586 gl_cv_header_errno_h_complete=yes
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
14593 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
14594 if test $gl_cv_header_errno_h_complete = yes; then
14603 if test $gl_cv_have_include_next = yes; then
14604 gl_cv_next_errno_h='<'errno.h'>'
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
14607 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
14608 if test "${gl_cv_next_errno_h+set}" = set; then :
14609 $as_echo_n "(cached) " >&6
14612 if test $ac_cv_header_errno_h = yes; then
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14619 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14620 *) gl_absname_cpp="$ac_cpp" ;;
14622 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14623 sed -n '\#/errno.h#{
14624 s#.*"\(.*/errno.h\)".*#\1#
14630 gl_cv_next_errno_h='<'errno.h'>'
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
14635 $as_echo "$gl_cv_next_errno_h" >&6; }
14637 NEXT_ERRNO_H=$gl_cv_next_errno_h
14639 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14641 gl_next_as_first_directive='<'errno.h'>'
14643 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14644 gl_next_as_first_directive=$gl_cv_next_errno_h
14646 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
14654 if test -n "$ERRNO_H"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
14656 $as_echo_n "checking for EMULTIHOP value... " >&6; }
14657 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
14658 $as_echo_n "(cached) " >&6
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14671 $EGREP "yes" >/dev/null 2>&1; then :
14672 gl_cv_header_errno_h_EMULTIHOP=yes
14674 gl_cv_header_errno_h_EMULTIHOP=no
14678 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14682 #define _XOPEN_SOURCE_EXTENDED 1
14689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14690 $EGREP "yes" >/dev/null 2>&1; then :
14691 gl_cv_header_errno_h_EMULTIHOP=hidden
14695 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
14696 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
14697 #define _XOPEN_SOURCE_EXTENDED 1
14699 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14701 #include <stdlib.h>
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
14711 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
14712 case $gl_cv_header_errno_h_EMULTIHOP in
14714 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
14717 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
14725 if test -n "$ERRNO_H"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
14727 $as_echo_n "checking for ENOLINK value... " >&6; }
14728 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
14729 $as_echo_n "(cached) " >&6
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14742 $EGREP "yes" >/dev/null 2>&1; then :
14743 gl_cv_header_errno_h_ENOLINK=yes
14745 gl_cv_header_errno_h_ENOLINK=no
14749 if test $gl_cv_header_errno_h_ENOLINK = no; then
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14753 #define _XOPEN_SOURCE_EXTENDED 1
14760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14761 $EGREP "yes" >/dev/null 2>&1; then :
14762 gl_cv_header_errno_h_ENOLINK=hidden
14766 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
14767 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
14768 #define _XOPEN_SOURCE_EXTENDED 1
14770 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14772 #include <stdlib.h>
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
14782 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
14783 case $gl_cv_header_errno_h_ENOLINK in
14785 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
14788 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
14796 if test -n "$ERRNO_H"; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
14798 $as_echo_n "checking for EOVERFLOW value... " >&6; }
14799 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
14800 $as_echo_n "(cached) " >&6
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813 $EGREP "yes" >/dev/null 2>&1; then :
14814 gl_cv_header_errno_h_EOVERFLOW=yes
14816 gl_cv_header_errno_h_EOVERFLOW=no
14820 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14824 #define _XOPEN_SOURCE_EXTENDED 1
14831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14832 $EGREP "yes" >/dev/null 2>&1; then :
14833 gl_cv_header_errno_h_EOVERFLOW=hidden
14837 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
14838 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
14839 #define _XOPEN_SOURCE_EXTENDED 1
14841 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14843 #include <stdlib.h>
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14853 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14854 case $gl_cv_header_errno_h_EOVERFLOW in
14856 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
14859 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
14867 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
14868 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
14874 cat >>confdefs.h <<_ACEOF
14875 #define HAVE_DECL_STRERROR_R $ac_have_decl
14878 for ac_func in strerror_r
14880 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14881 if test "x$ac_cv_func_strerror_r" = x""yes; then :
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_STRERROR_R 1
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
14890 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
14891 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
14892 $as_echo_n "(cached) " >&6
14895 ac_cv_func_strerror_r_char_p=no
14896 if test $ac_cv_have_decl_strerror_r = yes; then
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 $ac_includes_default
14905 char x = *strerror_r (0, buf, sizeof buf);
14906 char *p = strerror_r (0, buf, sizeof buf);
14913 if ac_fn_c_try_compile "$LINENO"; then :
14914 ac_cv_func_strerror_r_char_p=yes
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 # strerror_r is not declared. Choose between
14919 # systems that have relatively inaccessible declarations for the
14920 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14921 # former has a strerror_r that returns char*, while the latter
14922 # has a strerror_r that returns `int'.
14923 # This test should segfault on the DEC system.
14924 if test "$cross_compiling" = yes; then :
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929 $ac_includes_default
14930 extern char *strerror_r ();
14935 char x = *strerror_r (0, buf, sizeof buf);
14936 return ! isalpha (x);
14941 if ac_fn_c_try_run "$LINENO"; then :
14942 ac_cv_func_strerror_r_char_p=yes
14944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14945 conftest.$ac_objext conftest.beam conftest.$ac_ext
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
14952 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14953 if test $ac_cv_func_strerror_r_char_p = yes; then
14955 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
14960 XGETTEXT_EXTRA_OPTIONS=
14963 if test -z "$GETOPT_H"; then
14964 for ac_header in getopt.h
14966 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14967 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14968 cat >>confdefs.h <<_ACEOF
14969 #define HAVE_GETOPT_H 1
14980 if test -z "$GETOPT_H"; then
14981 for ac_func in getopt_long_only
14983 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14984 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14985 cat >>confdefs.h <<_ACEOF
14986 #define HAVE_GETOPT_LONG_ONLY 1
14996 if test -z "$GETOPT_H"; then
14997 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
14999 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
15005 if test -z "$GETOPT_H"; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
15007 $as_echo_n "checking for working GNU getopt function... " >&6; }
15008 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
15009 $as_echo_n "(cached) " >&6
15011 if test "$cross_compiling" = yes; then :
15012 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
15014 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
15015 gl_cv_func_gnu_getopt=no
15017 gl_cv_func_gnu_getopt=yes
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <getopt.h>
15029 myargv[0] = "conftest";
15032 return getopt (2, myargv, "+a") != '?';
15038 if ac_fn_c_try_run "$LINENO"; then :
15039 gl_cv_func_gnu_getopt=yes
15041 gl_cv_func_gnu_getopt=no
15043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15044 conftest.$ac_objext conftest.beam conftest.$ac_ext
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
15049 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
15050 if test "$gl_cv_func_gnu_getopt" = "no"; then
15055 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
15056 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
15062 cat >>confdefs.h <<_ACEOF
15063 #define HAVE_DECL_GETENV $ac_have_decl
15072 GNULIB_RAWMEMCHR=0;
15075 GNULIB_STRCHRNUL=0;
15082 GNULIB_STRCASESTR=0;
15089 GNULIB_MBSCASECMP=0;
15090 GNULIB_MBSNCASECMP=0;
15091 GNULIB_MBSPCASECMP=0;
15092 GNULIB_MBSCASESTR=0;
15099 GNULIB_STRSIGNAL=0;
15100 GNULIB_STRVERSCMP=0;
15101 HAVE_DECL_MEMMEM=1;
15103 HAVE_DECL_MEMRCHR=1;
15108 HAVE_DECL_STRDUP=1;
15110 HAVE_DECL_STRNDUP=1;
15111 HAVE_DECL_STRNLEN=1;
15115 HAVE_DECL_STRTOK_R=1;
15116 HAVE_DECL_STRERROR=1;
15117 HAVE_DECL_STRSIGNAL=1;
15122 REPLACE_STRCASESTR=0;
15123 REPLACE_STRERROR=0;
15124 REPLACE_STRSIGNAL=0;
15131 if test -z "$ERRNO_H"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
15133 $as_echo_n "checking for working strerror function... " >&6; }
15134 if test "${gl_cv_func_working_strerror+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15137 if test "$cross_compiling" = yes; then :
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <string.h>
15145 return !*strerror (-2);
15150 if ac_fn_c_try_compile "$LINENO"; then :
15151 gl_cv_func_working_strerror=yes
15153 gl_cv_func_working_strerror=no
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #include <string.h>
15165 return !*strerror (-2);
15170 if ac_fn_c_try_run "$LINENO"; then :
15171 gl_cv_func_working_strerror=yes
15173 gl_cv_func_working_strerror=no
15175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15176 conftest.$ac_objext conftest.beam conftest.$ac_ext
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
15182 $as_echo "$gl_cv_func_working_strerror" >&6; }
15183 if test $gl_cv_func_working_strerror = no; then
15189 if test $REPLACE_STRERROR = 1; then
15191 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
15192 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_DECL_STRERROR $ac_have_decl
15203 if test $ac_cv_header_sys_socket_h != yes; then
15204 for ac_header in winsock2.h
15206 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15207 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
15208 cat >>confdefs.h <<_ACEOF
15209 #define HAVE_WINSOCK2_H 1
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15221 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15222 if test "${ac_cv_c_restrict+set}" = set; then :
15223 $as_echo_n "(cached) " >&6
15225 ac_cv_c_restrict=no
15226 # The order here caters to the fact that C++ does not require restrict.
15227 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 typedef int * int_ptr;
15231 int foo (int_ptr $ac_kw ip) {
15238 int * $ac_kw t = s;
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246 ac_cv_c_restrict=$ac_kw
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 test "$ac_cv_c_restrict" != no && break
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15254 $as_echo "$ac_cv_c_restrict" >&6; }
15256 case $ac_cv_c_restrict in
15258 no) $as_echo "#define restrict /**/" >>confdefs.h
15260 *) cat >>confdefs.h <<_ACEOF
15261 #define restrict $ac_cv_c_restrict
15277 if test $gl_cv_have_include_next = yes; then
15278 gl_cv_next_string_h='<'string.h'>'
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15281 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15282 if test "${gl_cv_next_string_h+set}" = set; then :
15283 $as_echo_n "(cached) " >&6
15286 if test $ac_cv_header_string_h = yes; then
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15289 #include <string.h>
15293 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15294 *) gl_absname_cpp="$ac_cpp" ;;
15296 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15297 sed -n '\#/string.h#{
15298 s#.*"\(.*/string.h\)".*#\1#
15304 gl_cv_next_string_h='<'string.h'>'
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15309 $as_echo "$gl_cv_next_string_h" >&6; }
15311 NEXT_STRING_H=$gl_cv_next_string_h
15313 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15315 gl_next_as_first_directive='<'string.h'>'
15317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15318 gl_next_as_first_directive=$gl_cv_next_string_h
15320 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
15330 GNULIB_EUIDACCESS=0;
15333 GNULIB_FTRUNCATE=0;
15335 GNULIB_GETDOMAINNAME=0;
15336 GNULIB_GETDTABLESIZE=0;
15337 GNULIB_GETHOSTNAME=0;
15338 GNULIB_GETLOGIN_R=0;
15339 GNULIB_GETPAGESIZE=0;
15340 GNULIB_GETUSERSHELL=0;
15346 GNULIB_UNISTD_H_SIGPIPE=0;
15352 HAVE_GETDOMAINNAME=1;
15353 HAVE_GETDTABLESIZE=1;
15354 HAVE_GETHOSTNAME=1;
15355 HAVE_GETPAGESIZE=1;
15356 HAVE_GETUSERSHELL=1;
15360 HAVE_DECL_ENVIRON=1;
15361 HAVE_DECL_GETLOGIN_R=1;
15363 HAVE_SYS_PARAM_H=0;
15368 REPLACE_GETPAGESIZE=0;
15372 UNISTD_H_HAVE_WINSOCK2_H=0;
15378 GL_COND_LIBTOOL_TRUE=
15379 GL_COND_LIBTOOL_FALSE='#'
15381 GL_COND_LIBTOOL_TRUE='#'
15382 GL_COND_LIBTOOL_FALSE=
15385 gl_cond_libtool=true
15395 gl_source_base='gl'
15397 ac_config_files="$ac_config_files csharpcomp.sh:build-aux/csharpcomp.sh.in"
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15414 $as_echo_n "checking for error_at_line... " >&6; }
15415 if test "${ac_cv_lib_error_at_line+set}" = set; then :
15416 $as_echo_n "(cached) " >&6
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15424 error_at_line (0, 0, "", 0, "an error occurred");
15429 if ac_fn_c_try_link "$LINENO"; then :
15430 ac_cv_lib_error_at_line=yes
15432 ac_cv_lib_error_at_line=no
15434 rm -f core conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15438 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15439 if test $ac_cv_lib_error_at_line = no; then
15448 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
15459 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
15463 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
15467 if test -n "$GETOPT_H"; then :
15477 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15487 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15492 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15504 # Autoconf 2.61a.99 and earlier don't support linking a file only
15505 # in VPATH builds. But since GNUmakefile is for maintainer use
15506 # only, it does not matter if we skip the link with older autoconf.
15507 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
15508 # builds, so use a shell variable to bypass this.
15509 GNUmakefile=GNUmakefile
15510 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
15514 # Extract the first word of "pmccabe", so it can be a program name with args.
15515 set dummy pmccabe; ac_word=$2
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15517 $as_echo_n "checking for $ac_word... " >&6; }
15518 if test "${ac_cv_path_PMCCABE+set}" = set; then :
15519 $as_echo_n "(cached) " >&6
15523 ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
15526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15527 for as_dir in $PATH
15530 test -z "$as_dir" && as_dir=.
15531 for ac_exec_ext in '' $ac_executable_extensions; do
15532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15533 ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
15534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15541 test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
15545 PMCCABE=$ac_cv_path_PMCCABE
15546 if test -n "$PMCCABE"; then
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
15548 $as_echo "$PMCCABE" >&6; }
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15551 $as_echo "no" >&6; }
15558 NEXT_STDARG_H='<stdarg.h>';
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
15560 $as_echo_n "checking for va_copy... " >&6; }
15561 if test "${gl_cv_func_va_copy+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15567 #include <stdarg.h>
15573 void (*func) (va_list, va_list) = va_copy;
15580 if ac_fn_c_try_compile "$LINENO"; then :
15581 gl_cv_func_va_copy=yes
15583 gl_cv_func_va_copy=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
15589 $as_echo "$gl_cv_func_va_copy" >&6; }
15590 if test $gl_cv_func_va_copy = no; then
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593 #if defined _AIX && !defined __GNUC__
15598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 $EGREP "vaccine" >/dev/null 2>&1; then :
15606 if test $gl_aixcc = yes; then
15614 if test $gl_cv_have_include_next = yes; then
15615 gl_cv_next_stdarg_h='<'stdarg.h'>'
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
15618 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
15619 if test "${gl_cv_next_stdarg_h+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15623 if test $ac_cv_header_stdarg_h = yes; then
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #include <stdarg.h>
15630 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15631 *) gl_absname_cpp="$ac_cpp" ;;
15633 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15634 sed -n '\#/stdarg.h#{
15635 s#.*"\(.*/stdarg.h\)".*#\1#
15641 gl_cv_next_stdarg_h='<'stdarg.h'>'
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
15646 $as_echo "$gl_cv_next_stdarg_h" >&6; }
15648 NEXT_STDARG_H=$gl_cv_next_stdarg_h
15650 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15651 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15652 gl_next_as_first_directive='<'stdarg.h'>'
15654 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15655 gl_next_as_first_directive=$gl_cv_next_stdarg_h
15657 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
15661 if test "$gl_cv_next_stdarg_h" = '""'; then
15662 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
15663 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
15667 saved_as_echo_n="$as_echo_n"
15669 if test "${gl_cv_func___va_copy+set}" = set; then :
15670 $as_echo_n "(cached) " >&6
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 #include <stdarg.h>
15688 if ac_fn_c_try_compile "$LINENO"; then :
15689 gl_cv_func___va_copy=yes
15691 gl_cv_func___va_copy=no
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 as_echo_n="$saved_as_echo_n"
15698 if test $gl_cv_func___va_copy = yes; then
15700 $as_echo "#define va_copy __va_copy" >>confdefs.h
15705 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
15713 if test $REPLACE_STRERROR = 1; then
15722 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
15725 cat >>confdefs.h <<_ACEOF
15726 #define REPLACE_STRERROR $REPLACE_STRERROR
15747 if test $gl_cv_have_include_next = yes; then
15748 gl_cv_next_unistd_h='<'unistd.h'>'
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15751 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15752 if test "${gl_cv_next_unistd_h+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15756 if test $ac_cv_header_unistd_h = yes; then
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 #include <unistd.h>
15763 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15764 *) gl_absname_cpp="$ac_cpp" ;;
15766 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15767 sed -n '\#/unistd.h#{
15768 s#.*"\(.*/unistd.h\)".*#\1#
15774 gl_cv_next_unistd_h='<'unistd.h'>'
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15779 $as_echo "$gl_cv_next_unistd_h" >&6; }
15781 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15783 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15785 gl_next_as_first_directive='<'unistd.h'>'
15787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15788 gl_next_as_first_directive=$gl_cv_next_unistd_h
15790 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15796 if test $ac_cv_header_unistd_h = yes; then
15804 # Check whether --with-packager was given.
15805 if test "${with_packager+set}" = set; then :
15806 withval=$with_packager; case $withval in
15809 cat >>confdefs.h <<_ACEOF
15810 #define PACKAGE_PACKAGER "$withval"
15819 # Check whether --with-packager-version was given.
15820 if test "${with_packager_version+set}" = set; then :
15821 withval=$with_packager_version; case $withval in
15824 cat >>confdefs.h <<_ACEOF
15825 #define PACKAGE_PACKAGER_VERSION "$withval"
15834 # Check whether --with-packager-bug-reports was given.
15835 if test "${with_packager_bug_reports+set}" = set; then :
15836 withval=$with_packager_bug_reports; case $withval in
15839 cat >>confdefs.h <<_ACEOF
15840 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
15848 if test "X$with_packager" = "X" && \
15849 test "X$with_packager_version$with_packager_bug_reports" != "X"
15851 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
15875 gl_source_base='gltests'
15876 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
15888 REPLACE_ICONV_OPEN=0;
15889 REPLACE_ICONV_UTF=0;
15895 gl_cv_c_multiarch=no
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 #ifndef __APPLE_CC__
15899 not a universal capable compiler
15904 if ac_fn_c_try_compile "$LINENO"; then :
15908 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15909 if test -n "$prev"; then
15911 i?86 | x86_64 | ppc | ppc64)
15912 if test -z "$arch" || test "$arch" = "$word"; then
15915 gl_cv_c_multiarch=yes
15921 if test "x$word" = "x-arch"; then
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 if test $gl_cv_c_multiarch = yes; then
15931 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15933 APPLE_UNIVERSAL_BUILD=1
15935 APPLE_UNIVERSAL_BUILD=0
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15940 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15941 if test "${ac_cv_header_stdbool_h+set}" = set; then :
15942 $as_echo_n "(cached) " >&6
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15947 #include <stdbool.h>
15949 "error: bool is not defined"
15952 "error: false is not defined"
15955 "error: false is not 0"
15958 "error: true is not defined"
15961 "error: true is not 1"
15963 #ifndef __bool_true_false_are_defined
15964 "error: __bool_true_false_are_defined is not defined"
15967 struct s { _Bool s: 1; _Bool t; } s;
15969 char a[true == 1 ? 1 : -1];
15970 char b[false == 0 ? 1 : -1];
15971 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15972 char d[(bool) 0.5 == true ? 1 : -1];
15974 char f[(_Bool) 0.0 == false ? 1 : -1];
15976 char h[sizeof (_Bool)];
15977 char i[sizeof s.t];
15978 enum { j = false, k = true, l = false * true, m = true * 256 };
15980 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15981 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15982 #if defined __xlc__ || defined __GNUC__
15983 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15984 reported by James Lemley on 2005-10-05; see
15985 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15986 This test is not quite right, since xlc is allowed to
15987 reject this program, as the initializer for xlcbug is
15988 not one of the forms that C requires support for.
15989 However, doing the test right would require a run-time
15990 test, and that would make cross-compilation harder.
15991 Let us hope that IBM fixes the xlc bug, and also adds
15992 support for this kind of constant expression. In the
15993 meantime, this test will reject xlc, which is OK, since
15994 our stdbool.h substitute should suffice. We also test
15995 this with GCC, where it should work, to detect more
15996 quickly whether someone messes up the test in the
15998 char digs[] = "0123456789";
15999 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16001 /* Catch a bug in an HP-UX C compiler. See
16002 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16003 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16014 /* Refer to every declared value, to avoid compiler optimizations. */
16015 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16016 + !m + !n + !o + !p + !q + !pq);
16022 if ac_fn_c_try_compile "$LINENO"; then :
16023 ac_cv_header_stdbool_h=yes
16025 ac_cv_header_stdbool_h=no
16027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16030 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16031 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16032 if test "x$ac_cv_type__Bool" = x""yes; then :
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE__BOOL 1
16041 if test $ac_cv_header_stdbool_h = yes; then
16043 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16048 $as_echo_n "checking for long long int... " >&6; }
16049 if test "${ac_cv_type_long_long_int+set}" = set; then :
16050 $as_echo_n "(cached) " >&6
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16055 /* Test preprocessor. */
16056 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16057 error in preprocessor;
16059 #if ! (18446744073709551615ULL <= -1ull)
16060 error in preprocessor;
16062 /* Test literals. */
16063 long long int ll = 9223372036854775807ll;
16064 long long int nll = -9223372036854775807LL;
16065 unsigned long long int ull = 18446744073709551615ULL;
16066 /* Test constant expressions. */
16067 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16069 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16075 /* Test availability of runtime routines for shift and division. */
16076 long long int llmax = 9223372036854775807ll;
16077 unsigned long long int ullmax = 18446744073709551615ull;
16078 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16079 | (llmax / ll) | (llmax % ll)
16080 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16081 | (ullmax / ull) | (ullmax % ull));
16087 if ac_fn_c_try_link "$LINENO"; then :
16088 if test "$cross_compiling" = yes; then :
16089 ac_cv_type_long_long_int=yes
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 #include <limits.h>
16096 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16097 # define LLONG_MAX (HALF - 1 + HALF)
16102 long long int n = 1;
16106 long long int m = n << i;
16109 if (LLONG_MAX / 2 < m)
16117 if ac_fn_c_try_run "$LINENO"; then :
16118 ac_cv_type_long_long_int=yes
16120 ac_cv_type_long_long_int=no
16122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16123 conftest.$ac_objext conftest.beam conftest.$ac_ext
16127 ac_cv_type_long_long_int=no
16129 rm -f core conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16133 $as_echo "$ac_cv_type_long_long_int" >&6; }
16134 if test $ac_cv_type_long_long_int = yes; then
16136 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16142 $as_echo_n "checking for unsigned long long int... " >&6; }
16143 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16144 $as_echo_n "(cached) " >&6
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16149 /* Test preprocessor. */
16150 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16151 error in preprocessor;
16153 #if ! (18446744073709551615ULL <= -1ull)
16154 error in preprocessor;
16156 /* Test literals. */
16157 long long int ll = 9223372036854775807ll;
16158 long long int nll = -9223372036854775807LL;
16159 unsigned long long int ull = 18446744073709551615ULL;
16160 /* Test constant expressions. */
16161 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16163 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16169 /* Test availability of runtime routines for shift and division. */
16170 long long int llmax = 9223372036854775807ll;
16171 unsigned long long int ullmax = 18446744073709551615ull;
16172 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16173 | (llmax / ll) | (llmax % ll)
16174 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16175 | (ullmax / ull) | (ullmax % ull));
16181 if ac_fn_c_try_link "$LINENO"; then :
16182 ac_cv_type_unsigned_long_long_int=yes
16184 ac_cv_type_unsigned_long_long_int=no
16186 rm -f core conftest.err conftest.$ac_objext \
16187 conftest$ac_exeext conftest.$ac_ext
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16190 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16191 if test $ac_cv_type_unsigned_long_long_int = yes; then
16193 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16207 GNULIB_MBSRTOWCS=0;
16208 GNULIB_MBSNRTOWCS=0;
16210 GNULIB_WCSRTOMBS=0;
16211 GNULIB_WCSNRTOMBS=0;
16223 HAVE_DECL_WCWIDTH=1;
16224 REPLACE_MBSTATE_T=0;
16230 REPLACE_MBSRTOWCS=0;
16231 REPLACE_MBSNRTOWCS=0;
16233 REPLACE_WCSRTOMBS=0;
16234 REPLACE_WCSNRTOMBS=0;
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16240 $as_echo_n "checking for wint_t... " >&6; }
16241 if test "${gt_cv_c_wint_t+set}" = set; then :
16242 $as_echo_n "(cached) " >&6
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16247 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16249 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16250 before <wchar.h>. */
16251 #include <stddef.h>
16255 wint_t foo = (wchar_t)'\0';
16264 if ac_fn_c_try_compile "$LINENO"; then :
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16272 $as_echo "$gt_cv_c_wint_t" >&6; }
16273 if test $gt_cv_c_wint_t = yes; then
16275 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16281 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16282 if test "${am_cv_langinfo_codeset+set}" = set; then :
16283 $as_echo_n "(cached) " >&6
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 #include <langinfo.h>
16291 char* cs = nl_langinfo(CODESET); return !cs;
16296 if ac_fn_c_try_link "$LINENO"; then :
16297 am_cv_langinfo_codeset=yes
16299 am_cv_langinfo_codeset=no
16301 rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
16306 $as_echo "$am_cv_langinfo_codeset" >&6; }
16307 if test $am_cv_langinfo_codeset = yes; then
16309 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16315 GL_COND_LIBTOOL_TRUE=
16316 GL_COND_LIBTOOL_FALSE='#'
16318 GL_COND_LIBTOOL_TRUE='#'
16319 GL_COND_LIBTOOL_FALSE=
16322 gl_cond_libtool=true
16332 gl_source_base='lib/gl'
16340 am_save_CPPFLAGS="$CPPFLAGS"
16342 for element in $INCICONV; do
16344 for x in $CPPFLAGS; do
16346 acl_save_prefix="$prefix"
16347 prefix="$acl_final_prefix"
16348 acl_save_exec_prefix="$exec_prefix"
16349 exec_prefix="$acl_final_exec_prefix"
16351 exec_prefix="$acl_save_exec_prefix"
16352 prefix="$acl_save_prefix"
16354 if test "X$x" = "X$element"; then
16359 if test -z "$haveit"; then
16360 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16366 $as_echo_n "checking for iconv... " >&6; }
16367 if test "${am_cv_func_iconv+set}" = set; then :
16368 $as_echo_n "(cached) " >&6
16371 am_cv_func_iconv="no, consider installing GNU libiconv"
16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h. */
16375 #include <stdlib.h>
16380 iconv_t cd = iconv_open("","");
16381 iconv(cd,NULL,NULL,NULL,NULL);
16387 if ac_fn_c_try_link "$LINENO"; then :
16388 am_cv_func_iconv=yes
16390 rm -f core conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16392 if test "$am_cv_func_iconv" != yes; then
16393 am_save_LIBS="$LIBS"
16394 LIBS="$LIBS $LIBICONV"
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16397 #include <stdlib.h>
16402 iconv_t cd = iconv_open("","");
16403 iconv(cd,NULL,NULL,NULL,NULL);
16409 if ac_fn_c_try_link "$LINENO"; then :
16410 am_cv_lib_iconv=yes
16411 am_cv_func_iconv=yes
16413 rm -f core conftest.err conftest.$ac_objext \
16414 conftest$ac_exeext conftest.$ac_ext
16415 LIBS="$am_save_LIBS"
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16420 $as_echo "$am_cv_func_iconv" >&6; }
16421 if test "$am_cv_func_iconv" = yes; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16423 $as_echo_n "checking for working iconv... " >&6; }
16424 if test "${am_cv_func_iconv_works+set}" = set; then :
16425 $as_echo_n "(cached) " >&6
16428 am_save_LIBS="$LIBS"
16429 if test $am_cv_lib_iconv = yes; then
16430 LIBS="$LIBS $LIBICONV"
16432 if test "$cross_compiling" = yes; then :
16434 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16435 *) am_cv_func_iconv_works="guessing yes" ;;
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16442 #include <string.h>
16445 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16448 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16449 if (cd_utf8_to_88591 != (iconv_t)(-1))
16451 static const char input[] = "\342\202\254"; /* EURO SIGN */
16453 const char *inptr = input;
16454 size_t inbytesleft = strlen (input);
16455 char *outptr = buf;
16456 size_t outbytesleft = sizeof (buf);
16457 size_t res = iconv (cd_utf8_to_88591,
16458 (char **) &inptr, &inbytesleft,
16459 &outptr, &outbytesleft);
16464 #if 0 /* This bug could be worked around by the caller. */
16465 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16467 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16468 if (cd_88591_to_utf8 != (iconv_t)(-1))
16470 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16472 const char *inptr = input;
16473 size_t inbytesleft = strlen (input);
16474 char *outptr = buf;
16475 size_t outbytesleft = sizeof (buf);
16476 size_t res = iconv (cd_88591_to_utf8,
16477 (char **) &inptr, &inbytesleft,
16478 &outptr, &outbytesleft);
16484 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16486 if (/* Try standardized names. */
16487 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16488 /* Try IRIX, OSF/1 names. */
16489 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16490 /* Try AIX names. */
16491 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16492 /* Try HP-UX names. */
16493 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16498 if ac_fn_c_try_run "$LINENO"; then :
16499 am_cv_func_iconv_works=yes
16501 am_cv_func_iconv_works=no
16503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16504 conftest.$ac_objext conftest.beam conftest.$ac_ext
16507 LIBS="$am_save_LIBS"
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16511 $as_echo "$am_cv_func_iconv_works" >&6; }
16512 case "$am_cv_func_iconv_works" in
16513 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16514 *) am_func_iconv=yes ;;
16517 am_func_iconv=no am_cv_lib_iconv=no
16519 if test "$am_func_iconv" = yes; then
16521 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16524 if test "$am_cv_lib_iconv" = yes; then
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16526 $as_echo_n "checking how to link with libiconv... " >&6; }
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16528 $as_echo "$LIBICONV" >&6; }
16530 CPPFLAGS="$am_save_CPPFLAGS"
16537 if test "$am_cv_func_iconv" = yes; then
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16539 $as_echo_n "checking for iconv declaration... " >&6; }
16540 if test "${am_cv_proto_iconv+set}" = set; then :
16541 $as_echo_n "(cached) " >&6
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16547 #include <stdlib.h>
16553 #if defined(__STDC__) || defined(__cplusplus)
16554 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16567 if ac_fn_c_try_compile "$LINENO"; then :
16568 am_cv_proto_iconv_arg1=""
16570 am_cv_proto_iconv_arg1="const"
16572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16573 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);"
16576 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
16578 }$am_cv_proto_iconv" >&5
16580 }$am_cv_proto_iconv" >&6; }
16582 cat >>confdefs.h <<_ACEOF
16583 #define ICONV_CONST $am_cv_proto_iconv_arg1
16596 if test $gl_cv_have_include_next = yes; then
16597 gl_cv_next_iconv_h='<'iconv.h'>'
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
16600 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
16601 if test "${gl_cv_next_iconv_h+set}" = set; then :
16602 $as_echo_n "(cached) " >&6
16605 if test $ac_cv_header_iconv_h = yes; then
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16612 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16613 *) gl_absname_cpp="$ac_cpp" ;;
16615 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16616 sed -n '\#/iconv.h#{
16617 s#.*"\(.*/iconv.h\)".*#\1#
16623 gl_cv_next_iconv_h='<'iconv.h'>'
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
16628 $as_echo "$gl_cv_next_iconv_h" >&6; }
16630 NEXT_ICONV_H=$gl_cv_next_iconv_h
16632 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16633 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16634 gl_next_as_first_directive='<'iconv.h'>'
16636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16637 gl_next_as_first_directive=$gl_cv_next_iconv_h
16639 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
16648 if test "$am_cv_func_iconv" = yes; then
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16653 #if defined _LIBICONV_VERSION || defined __GLIBC__
16658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16659 $EGREP "gnu_iconv" >/dev/null 2>&1; then :
16660 gl_func_iconv_gnu=yes
16662 gl_func_iconv_gnu=no
16666 if test $gl_func_iconv_gnu = no; then
16669 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
16670 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
16671 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
16672 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
16674 if test -n "$iconv_flavor"; then
16676 cat >>confdefs.h <<_ACEOF
16677 #define ICONV_FLAVOR $iconv_flavor
16685 REPLACE_ICONV_OPEN=1
16694 lgl_LIBOBJS="$lgl_LIBOBJS iconv_open.$ac_objext"
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
16703 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
16704 if test "${gl_cv_ld_output_def+set}" = set; then :
16705 $as_echo_n "(cached) " >&6
16707 if test "$enable_shared" = no; then
16708 gl_cv_ld_output_def="not needed, shared libraries are disabled"
16710 gl_ldflags_save=$LDFLAGS
16711 LDFLAGS="-Wl,--output-def,conftest.def"
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16723 if ac_fn_c_try_link "$LINENO"; then :
16724 gl_cv_ld_output_def=yes
16726 gl_cv_ld_output_def=no
16728 rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16731 LDFLAGS="$gl_ldflags_save"
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
16735 $as_echo "$gl_cv_ld_output_def" >&6; }
16736 if test "x$gl_cv_ld_output_def" = "xyes"; then
16737 HAVE_LD_OUTPUT_DEF_TRUE=
16738 HAVE_LD_OUTPUT_DEF_FALSE='#'
16740 HAVE_LD_OUTPUT_DEF_TRUE='#'
16741 HAVE_LD_OUTPUT_DEF_FALSE=
16746 # Check whether --enable-ld-version-script was given.
16747 if test "${enable_ld_version_script+set}" = set; then :
16748 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
16751 if test -z "$have_ld_version_script"; then
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
16753 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
16754 save_LDFLAGS="$LDFLAGS"
16755 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
16756 cat > conftest.map <<EOF
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16776 if ac_fn_c_try_link "$LINENO"; then :
16777 have_ld_version_script=yes
16779 have_ld_version_script=no
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16784 LDFLAGS="$save_LDFLAGS"
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
16786 $as_echo "$have_ld_version_script" >&6; }
16788 if test "$have_ld_version_script" = "yes"; then
16789 HAVE_LD_VERSION_SCRIPT_TRUE=
16790 HAVE_LD_VERSION_SCRIPT_FALSE='#'
16792 HAVE_LD_VERSION_SCRIPT_TRUE='#'
16793 HAVE_LD_VERSION_SCRIPT_FALSE=
16801 if test -n "$GCC"; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
16803 $as_echo_n "checking for simple visibility declarations... " >&6; }
16804 if test "${gl_cv_cc_visibility+set}" = set; then :
16805 $as_echo_n "(cached) " >&6
16808 gl_save_CFLAGS="$CFLAGS"
16809 CFLAGS="$CFLAGS -fvisibility=hidden"
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
16813 extern __attribute__((__visibility__("default"))) int exportedvar;
16814 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
16815 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
16824 if ac_fn_c_try_compile "$LINENO"; then :
16825 gl_cv_cc_visibility=yes
16827 gl_cv_cc_visibility=no
16829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830 CFLAGS="$gl_save_CFLAGS"
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
16834 $as_echo "$gl_cv_cc_visibility" >&6; }
16835 if test $gl_cv_cc_visibility = yes; then
16836 CFLAG_VISIBILITY="-fvisibility=hidden"
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_VISIBILITY $HAVE_VISIBILITY
16852 # Define two additional variables used in the Makefile substitution.
16854 if test "$ac_cv_header_stdbool_h" = yes; then
16857 STDBOOL_H='stdbool.h'
16861 if test "$ac_cv_type__Bool" = yes; then
16871 if test $ac_cv_type_long_long_int = yes; then
16872 HAVE_LONG_LONG_INT=1
16874 HAVE_LONG_LONG_INT=0
16878 if test $ac_cv_type_unsigned_long_long_int = yes; then
16879 HAVE_UNSIGNED_LONG_LONG_INT=1
16881 HAVE_UNSIGNED_LONG_LONG_INT=0
16885 if test $ac_cv_header_inttypes_h = yes; then
16892 if test $ac_cv_header_sys_types_h = yes; then
16905 if test $gl_cv_have_include_next = yes; then
16906 gl_cv_next_stdint_h='<'stdint.h'>'
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16909 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16910 if test "${gl_cv_next_stdint_h+set}" = set; then :
16911 $as_echo_n "(cached) " >&6
16914 if test $ac_cv_header_stdint_h = yes; then
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917 #include <stdint.h>
16921 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16922 *) gl_absname_cpp="$ac_cpp" ;;
16924 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16925 sed -n '\#/stdint.h#{
16926 s#.*"\(.*/stdint.h\)".*#\1#
16932 gl_cv_next_stdint_h='<'stdint.h'>'
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16937 $as_echo "$gl_cv_next_stdint_h" >&6; }
16939 NEXT_STDINT_H=$gl_cv_next_stdint_h
16941 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16943 gl_next_as_first_directive='<'stdint.h'>'
16945 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16946 gl_next_as_first_directive=$gl_cv_next_stdint_h
16948 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16952 if test $ac_cv_header_stdint_h = yes; then
16959 if test $ac_cv_header_stdint_h = yes; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16961 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16962 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16963 $as_echo_n "(cached) " >&6
16965 gl_cv_header_working_stdint_h=no
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16970 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16971 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16972 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16973 #include <stdint.h>
16974 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16975 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16976 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16980 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16981 included before <wchar.h>. */
16982 #include <stddef.h>
16983 #include <signal.h>
16985 # include <stdio.h>
16987 # include <wchar.h>
16992 int8_t a1 = INT8_MAX;
16993 int8_t a1min = INT8_MIN;
16996 int16_t a2 = INT16_MAX;
16997 int16_t a2min = INT16_MIN;
17000 int32_t a3 = INT32_MAX;
17001 int32_t a3min = INT32_MIN;
17004 int64_t a4 = INT64_MAX;
17005 int64_t a4min = INT64_MIN;
17008 uint8_t b1 = UINT8_MAX;
17010 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17013 uint16_t b2 = UINT16_MAX;
17016 uint32_t b3 = UINT32_MAX;
17019 uint64_t b4 = UINT64_MAX;
17021 int_least8_t c1 = INT8_C (0x7f);
17022 int_least8_t c1max = INT_LEAST8_MAX;
17023 int_least8_t c1min = INT_LEAST8_MIN;
17024 int_least16_t c2 = INT16_C (0x7fff);
17025 int_least16_t c2max = INT_LEAST16_MAX;
17026 int_least16_t c2min = INT_LEAST16_MIN;
17027 int_least32_t c3 = INT32_C (0x7fffffff);
17028 int_least32_t c3max = INT_LEAST32_MAX;
17029 int_least32_t c3min = INT_LEAST32_MIN;
17030 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17031 int_least64_t c4max = INT_LEAST64_MAX;
17032 int_least64_t c4min = INT_LEAST64_MIN;
17033 uint_least8_t d1 = UINT8_C (0xff);
17034 uint_least8_t d1max = UINT_LEAST8_MAX;
17035 uint_least16_t d2 = UINT16_C (0xffff);
17036 uint_least16_t d2max = UINT_LEAST16_MAX;
17037 uint_least32_t d3 = UINT32_C (0xffffffff);
17038 uint_least32_t d3max = UINT_LEAST32_MAX;
17039 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17040 uint_least64_t d4max = UINT_LEAST64_MAX;
17041 int_fast8_t e1 = INT_FAST8_MAX;
17042 int_fast8_t e1min = INT_FAST8_MIN;
17043 int_fast16_t e2 = INT_FAST16_MAX;
17044 int_fast16_t e2min = INT_FAST16_MIN;
17045 int_fast32_t e3 = INT_FAST32_MAX;
17046 int_fast32_t e3min = INT_FAST32_MIN;
17047 int_fast64_t e4 = INT_FAST64_MAX;
17048 int_fast64_t e4min = INT_FAST64_MIN;
17049 uint_fast8_t f1 = UINT_FAST8_MAX;
17050 uint_fast16_t f2 = UINT_FAST16_MAX;
17051 uint_fast32_t f3 = UINT_FAST32_MAX;
17052 uint_fast64_t f4 = UINT_FAST64_MAX;
17054 intptr_t g = INTPTR_MAX;
17055 intptr_t gmin = INTPTR_MIN;
17058 uintptr_t h = UINTPTR_MAX;
17060 intmax_t i = INTMAX_MAX;
17061 uintmax_t j = UINTMAX_MAX;
17063 #include <limits.h> /* for CHAR_BIT */
17064 #define TYPE_MINIMUM(t) \
17065 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17066 #define TYPE_MAXIMUM(t) \
17067 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17070 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17071 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17073 /* Detect bug in FreeBSD 6.0 / ia64. */
17074 int check_SIG_ATOMIC:
17075 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17076 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17078 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17080 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17081 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17083 /* Detect bug in mingw. */
17085 WINT_MIN == TYPE_MINIMUM (wint_t)
17086 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17089 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17091 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17092 int check_UINT16_C:
17093 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17095 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17097 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17100 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17103 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17106 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17108 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17109 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17110 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17111 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17112 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17113 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17114 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17115 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17116 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17117 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17118 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17129 if ac_fn_c_try_compile "$LINENO"; then :
17130 if test "$cross_compiling" = yes; then :
17131 gl_cv_header_working_stdint_h=yes
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17138 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17139 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17140 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17141 #include <stdint.h>
17144 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17145 included before <wchar.h>. */
17146 #include <stddef.h>
17147 #include <signal.h>
17149 # include <stdio.h>
17151 # include <wchar.h>
17156 #include <string.h>
17157 #define MVAL(macro) MVAL1(macro)
17158 #define MVAL1(expression) #expression
17159 static const char *macro_values[] =
17193 for (mv = macro_values; *mv != NULL; mv++)
17195 const char *value = *mv;
17196 /* Test whether it looks like a cast expression. */
17197 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17198 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17199 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17200 || strncmp (value, "((int)"/*)*/, 6) == 0
17201 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17202 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17211 if ac_fn_c_try_run "$LINENO"; then :
17212 gl_cv_header_working_stdint_h=yes
17214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17215 conftest.$ac_objext conftest.beam conftest.$ac_ext
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17224 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17226 if test "$gl_cv_header_working_stdint_h" = yes; then
17229 for ac_header in sys/inttypes.h sys/bitypes.h
17231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17234 cat >>confdefs.h <<_ACEOF
17235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17242 if test $ac_cv_header_sys_inttypes_h = yes; then
17243 HAVE_SYS_INTTYPES_H=1
17245 HAVE_SYS_INTTYPES_H=0
17248 if test $ac_cv_header_sys_bitypes_h = yes; then
17249 HAVE_SYS_BITYPES_H=1
17251 HAVE_SYS_BITYPES_H=0
17259 if test $APPLE_UNIVERSAL_BUILD = 0; then
17262 for gltype in ptrdiff_t size_t ; do
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17264 $as_echo_n "checking for bit size of $gltype... " >&6; }
17265 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17266 $as_echo_n "(cached) " >&6
17268 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17269 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17270 included before <wchar.h>. */
17271 #include <stddef.h>
17272 #include <signal.h>
17274 # include <stdio.h>
17276 # include <wchar.h>
17279 #include <limits.h>"; then :
17285 eval gl_cv_bitsizeof_${gltype}=\$result
17288 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17290 $as_echo "$ac_res" >&6; }
17291 eval result=\$gl_cv_bitsizeof_${gltype}
17292 if test $result = unknown; then
17295 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17296 cat >>confdefs.h <<_ACEOF
17297 #define BITSIZEOF_${GLTYPE} $result
17300 eval BITSIZEOF_${GLTYPE}=\$result
17307 for gltype in sig_atomic_t wchar_t wint_t ; do
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17309 $as_echo_n "checking for bit size of $gltype... " >&6; }
17310 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17311 $as_echo_n "(cached) " >&6
17313 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17314 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17315 included before <wchar.h>. */
17316 #include <stddef.h>
17317 #include <signal.h>
17319 # include <stdio.h>
17321 # include <wchar.h>
17324 #include <limits.h>"; then :
17330 eval gl_cv_bitsizeof_${gltype}=\$result
17333 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17335 $as_echo "$ac_res" >&6; }
17336 eval result=\$gl_cv_bitsizeof_${gltype}
17337 if test $result = unknown; then
17340 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17341 cat >>confdefs.h <<_ACEOF
17342 #define BITSIZEOF_${GLTYPE} $result
17345 eval BITSIZEOF_${GLTYPE}=\$result
17351 for gltype in sig_atomic_t wchar_t wint_t ; do
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17353 $as_echo_n "checking whether $gltype is signed... " >&6; }
17354 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
17355 $as_echo_n "(cached) " >&6
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h. */
17360 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17361 included before <wchar.h>. */
17362 #include <stddef.h>
17363 #include <signal.h>
17365 # include <stdio.h>
17367 # include <wchar.h>
17370 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17379 if ac_fn_c_try_compile "$LINENO"; then :
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385 eval gl_cv_type_${gltype}_signed=\$result
17388 eval ac_res=\$gl_cv_type_${gltype}_signed
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17390 $as_echo "$ac_res" >&6; }
17391 eval result=\$gl_cv_type_${gltype}_signed
17392 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17393 if test "$result" = yes; then
17394 cat >>confdefs.h <<_ACEOF
17395 #define HAVE_SIGNED_${GLTYPE} 1
17398 eval HAVE_SIGNED_${GLTYPE}=1
17400 eval HAVE_SIGNED_${GLTYPE}=0
17405 gl_cv_type_ptrdiff_t_signed=yes
17406 gl_cv_type_size_t_signed=no
17407 if test $APPLE_UNIVERSAL_BUILD = 0; then
17410 for gltype in ptrdiff_t size_t ; do
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17412 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17413 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17414 $as_echo_n "(cached) " >&6
17416 eval gl_cv_type_${gltype}_suffix=no
17417 eval result=\$gl_cv_type_${gltype}_signed
17418 if test "$result" = yes; then
17423 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17425 '') gltype1='int';;
17426 l) gltype1='long int';;
17427 ll) gltype1='long long int';;
17428 i64) gltype1='__int64';;
17429 u) gltype1='unsigned int';;
17430 ul) gltype1='unsigned long int';;
17431 ull) gltype1='unsigned long long int';;
17432 ui64)gltype1='unsigned __int64';;
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17437 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17438 included before <wchar.h>. */
17439 #include <stddef.h>
17440 #include <signal.h>
17442 # include <stdio.h>
17444 # include <wchar.h>
17447 extern $gltype foo;
17448 extern $gltype1 foo;
17457 if ac_fn_c_try_compile "$LINENO"; then :
17458 eval gl_cv_type_${gltype}_suffix=\$glsuf
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 eval result=\$gl_cv_type_${gltype}_suffix
17462 test "$result" != no && break
17465 eval ac_res=\$gl_cv_type_${gltype}_suffix
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17467 $as_echo "$ac_res" >&6; }
17468 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17469 eval result=\$gl_cv_type_${gltype}_suffix
17470 test "$result" = no && result=
17471 eval ${GLTYPE}_SUFFIX=\$result
17472 cat >>confdefs.h <<_ACEOF
17473 #define ${GLTYPE}_SUFFIX $result
17482 for gltype in sig_atomic_t wchar_t wint_t ; do
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17484 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17485 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17486 $as_echo_n "(cached) " >&6
17488 eval gl_cv_type_${gltype}_suffix=no
17489 eval result=\$gl_cv_type_${gltype}_signed
17490 if test "$result" = yes; then
17495 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17497 '') gltype1='int';;
17498 l) gltype1='long int';;
17499 ll) gltype1='long long int';;
17500 i64) gltype1='__int64';;
17501 u) gltype1='unsigned int';;
17502 ul) gltype1='unsigned long int';;
17503 ull) gltype1='unsigned long long int';;
17504 ui64)gltype1='unsigned __int64';;
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17509 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17510 included before <wchar.h>. */
17511 #include <stddef.h>
17512 #include <signal.h>
17514 # include <stdio.h>
17516 # include <wchar.h>
17519 extern $gltype foo;
17520 extern $gltype1 foo;
17529 if ac_fn_c_try_compile "$LINENO"; then :
17530 eval gl_cv_type_${gltype}_suffix=\$glsuf
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 eval result=\$gl_cv_type_${gltype}_suffix
17534 test "$result" != no && break
17537 eval ac_res=\$gl_cv_type_${gltype}_suffix
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17539 $as_echo "$ac_res" >&6; }
17540 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17541 eval result=\$gl_cv_type_${gltype}_suffix
17542 test "$result" = no && result=
17543 eval ${GLTYPE}_SUFFIX=\$result
17544 cat >>confdefs.h <<_ACEOF
17545 #define ${GLTYPE}_SUFFIX $result
17556 if test $gl_cond_libtool = false; then
17557 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
17558 gl_libdeps="$gl_libdeps $LIBICONV"
17575 for ac_func in strverscmp
17577 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
17578 if test "x$ac_cv_func_strverscmp" = x""yes; then :
17579 cat >>confdefs.h <<_ACEOF
17580 #define HAVE_STRVERSCMP 1
17585 lgl_LIBOBJS="$lgl_LIBOBJS $ac_func.$ac_objext"
17591 if test $ac_cv_func_strverscmp = no; then
17600 GNULIB_STRVERSCMP=1
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
17605 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
17606 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h. */
17614 if ac_fn_c_try_compile "$LINENO"; then :
17615 gl_cv_header_wchar_h_standalone=yes
17617 gl_cv_header_wchar_h_standalone=no
17619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
17622 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
17625 if test $gt_cv_c_wint_t = yes; then
17632 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
17637 if test $ac_cv_header_wchar_h = yes; then
17649 if test $gl_cv_have_include_next = yes; then
17650 gl_cv_next_wchar_h='<'wchar.h'>'
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17653 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17654 if test "${gl_cv_next_wchar_h+set}" = set; then :
17655 $as_echo_n "(cached) " >&6
17658 if test $ac_cv_header_wchar_h = yes; then
17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h. */
17665 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17666 *) gl_absname_cpp="$ac_cpp" ;;
17668 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17669 sed -n '\#/wchar.h#{
17670 s#.*"\(.*/wchar.h\)".*#\1#
17676 gl_cv_next_wchar_h='<'wchar.h'>'
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17681 $as_echo "$gl_cv_next_wchar_h" >&6; }
17683 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17685 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17687 gl_next_as_first_directive='<'wchar.h'>'
17689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17690 gl_next_as_first_directive=$gl_cv_next_wchar_h
17692 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17717 gl_source_base='lib/gltests'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
17722 $as_echo_n "checking for a traditional french locale... " >&6; }
17723 if test "${gt_cv_locale_fr+set}" = set; then :
17724 $as_echo_n "(cached) " >&6
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17730 #include <locale.h>
17732 #if HAVE_LANGINFO_CODESET
17733 # include <langinfo.h>
17735 #include <stdlib.h>
17736 #include <string.h>
17740 /* Check whether the given locale name is recognized by the system. */
17741 if (setlocale (LC_ALL, "") == NULL) return 1;
17742 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
17743 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
17744 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
17745 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
17746 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
17747 some unit tests fail. */
17748 #if HAVE_LANGINFO_CODESET
17750 const char *cs = nl_langinfo (CODESET);
17751 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
17756 /* On Cygwin, avoid locale names without encoding suffix, because the
17757 locale_charset() function relies on the encoding suffix. Note that
17758 LC_ALL is set on the command line. */
17759 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
17761 /* Check whether in the abbreviation of the second month, the second
17762 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
17763 one byte long. This excludes the UTF-8 encoding. */
17764 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
17765 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
17766 /* Check whether the decimal separator is a comma.
17767 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
17768 are nl_langinfo(RADIXCHAR) are both ".". */
17769 if (localeconv () ->decimal_point[0] != ',') return 1;
17774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17775 (eval $ac_link) 2>&5
17777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17778 test $ac_status = 0; } && test -s conftest$ac_exeext; then
17779 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
17780 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
17781 # configure script would override the LC_ALL setting. Likewise for
17782 # LC_CTYPE, which is also set at the beginning of the configure script.
17783 # Test for the usual locale name.
17784 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17785 gt_cv_locale_fr=fr_FR
17787 # Test for the locale name with explicit encoding suffix.
17788 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17789 gt_cv_locale_fr=fr_FR.ISO-8859-1
17791 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
17792 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17793 gt_cv_locale_fr=fr_FR.ISO8859-1
17795 # Test for the HP-UX locale name.
17796 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17797 gt_cv_locale_fr=fr_FR.iso88591
17799 # Test for the Solaris 7 locale name.
17800 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17804 gt_cv_locale_fr=none
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
17815 $as_echo "$gt_cv_locale_fr" >&6; }
17816 LOCALE_FR=$gt_cv_locale_fr
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
17822 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
17823 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
17824 $as_echo_n "(cached) " >&6
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17830 #include <locale.h>
17832 #if HAVE_LANGINFO_CODESET
17833 # include <langinfo.h>
17835 #include <stdlib.h>
17836 #include <string.h>
17840 /* On BeOS, locales are not implemented in libc. Rather, libintl
17841 imitates locale dependent behaviour by looking at the environment
17842 variables, and all locales use the UTF-8 encoding. But BeOS does not
17843 implement the Turkish upper-/lowercase mappings. Therefore, let this
17844 program return 1 on BeOS. */
17845 /* Check whether the given locale name is recognized by the system. */
17846 if (setlocale (LC_ALL, "") == NULL) return 1;
17847 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
17848 On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
17849 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
17850 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
17851 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
17852 some unit tests fail. */
17853 #if HAVE_LANGINFO_CODESET
17855 const char *cs = nl_langinfo (CODESET);
17856 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
17861 /* On Cygwin, avoid locale names without encoding suffix, because the
17862 locale_charset() function relies on the encoding suffix. Note that
17863 LC_ALL is set on the command line. */
17864 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
17866 /* Check whether in the abbreviation of the eighth month, the second
17867 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
17868 two bytes long, with UTF-8 encoding. */
17869 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
17870 if (strftime (buf, sizeof (buf), "%b", &t) < 4
17871 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
17873 /* Check whether the upper-/lowercase mappings are as expected for
17875 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
17876 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
17882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17883 (eval $ac_link) 2>&5
17885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17886 test $ac_status = 0; } && test -s conftest$ac_exeext; then
17887 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
17888 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
17889 # configure script would override the LC_ALL setting. Likewise for
17890 # LC_CTYPE, which is also set at the beginning of the configure script.
17891 # Test for the usual locale name.
17892 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17893 gt_cv_locale_tr_utf8=tr_TR
17895 # Test for the locale name with explicit encoding suffix.
17896 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17897 gt_cv_locale_tr_utf8=tr_TR.UTF-8
17899 # Test for the Solaris 7 locale name.
17900 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17901 gt_cv_locale_tr_utf8=tr.UTF-8
17904 gt_cv_locale_tr_utf8=none
17909 gt_cv_locale_tr_utf8=none
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
17915 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
17916 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17921 $as_echo_n "checking for wchar_t... " >&6; }
17922 if test "${gt_cv_c_wchar_t+set}" = set; then :
17923 $as_echo_n "(cached) " >&6
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17927 #include <stddef.h>
17928 wchar_t foo = (wchar_t)'\0';
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938 gt_cv_c_wchar_t=yes
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17945 $as_echo "$gt_cv_c_wchar_t" >&6; }
17946 if test $gt_cv_c_wchar_t = yes; then
17948 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17954 $as_echo_n "checking for wint_t... " >&6; }
17955 if test "${gt_cv_c_wint_t+set}" = set; then :
17956 $as_echo_n "(cached) " >&6
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17963 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17964 before <wchar.h>. */
17965 #include <stddef.h>
17969 wint_t foo = (wchar_t)'\0';
17978 if ac_fn_c_try_compile "$LINENO"; then :
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17986 $as_echo "$gt_cv_c_wint_t" >&6; }
17987 if test $gt_cv_c_wint_t = yes; then
17989 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18000 LIBTESTS_LIBDEPS="$gltests_libdeps"
18004 # Check if locale stuff works
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18007 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18008 if test "${am_cv_langinfo_codeset+set}" = set; then :
18009 $as_echo_n "(cached) " >&6
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013 #include <langinfo.h>
18017 char* cs = nl_langinfo(CODESET); return !cs;
18022 if ac_fn_c_try_link "$LINENO"; then :
18023 am_cv_langinfo_codeset=yes
18025 am_cv_langinfo_codeset=no
18027 rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
18032 $as_echo "$am_cv_langinfo_codeset" >&6; }
18033 if test $am_cv_langinfo_codeset = yes; then
18035 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18040 # Make it possible to disable TLD code.
18041 # Check whether --enable-tld was given.
18042 if test "${enable_tld+set}" = set; then :
18043 enableval=$enable_tld; enable_tld=$enableval
18048 if test "$enable_tld" != "no"; then
18056 if test "$enable_tld" != "no"; then
18058 $as_echo "#define WITH_TLD 1" >>confdefs.h
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TLD API for specific TLD rules should be built" >&5
18062 $as_echo_n "checking if TLD API for specific TLD rules should be built... " >&6; }
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tld" >&5
18064 $as_echo "$enable_tld" >&6; }
18066 # Check for gtk-doc.
18069 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18070 if test -n "$ac_tool_prefix"; then
18071 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18072 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18074 $as_echo_n "checking for $ac_word... " >&6; }
18075 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18076 $as_echo_n "(cached) " >&6
18078 case $PKG_CONFIG in
18080 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $PATH
18087 test -z "$as_dir" && as_dir=.
18088 for ac_exec_ext in '' $ac_executable_extensions; do
18089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18090 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18101 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18102 if test -n "$PKG_CONFIG"; then
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18104 $as_echo "$PKG_CONFIG" >&6; }
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18112 if test -z "$ac_cv_path_PKG_CONFIG"; then
18113 ac_pt_PKG_CONFIG=$PKG_CONFIG
18114 # Extract the first word of "pkg-config", so it can be a program name with args.
18115 set dummy pkg-config; ac_word=$2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 $as_echo_n "checking for $ac_word... " >&6; }
18118 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18119 $as_echo_n "(cached) " >&6
18121 case $ac_pt_PKG_CONFIG in
18123 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127 for as_dir in $PATH
18130 test -z "$as_dir" && as_dir=.
18131 for ac_exec_ext in '' $ac_executable_extensions; do
18132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18133 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18144 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18145 if test -n "$ac_pt_PKG_CONFIG"; then
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18147 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18153 if test "x$ac_pt_PKG_CONFIG" = x; then
18156 case $cross_compiling:$ac_tool_warned in
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18160 ac_tool_warned=yes ;;
18162 PKG_CONFIG=$ac_pt_PKG_CONFIG
18165 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18169 if test -n "$PKG_CONFIG"; then
18170 _pkg_min_version=0.9.0
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18172 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18173 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18175 $as_echo "yes" >&6; }
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 $as_echo "no" >&6; }
18185 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18186 set dummy gtkdoc-check; ac_word=$2
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18188 $as_echo_n "checking for $ac_word... " >&6; }
18189 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
18190 $as_echo_n "(cached) " >&6
18192 case $GTKDOC_CHECK in
18194 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
18197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18198 for as_dir in $PATH
18201 test -z "$as_dir" && as_dir=.
18202 for ac_exec_ext in '' $ac_executable_extensions; do
18203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18204 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
18205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18215 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
18216 if test -n "$GTKDOC_CHECK"; then
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18218 $as_echo "$GTKDOC_CHECK" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18225 for ac_prog in gtkdoc-rebase
18227 # Extract the first word of "$ac_prog", so it can be a program name with args.
18228 set dummy $ac_prog; ac_word=$2
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230 $as_echo_n "checking for $ac_word... " >&6; }
18231 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18234 case $GTKDOC_REBASE in
18236 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240 for as_dir in $PATH
18243 test -z "$as_dir" && as_dir=.
18244 for ac_exec_ext in '' $ac_executable_extensions; do
18245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18246 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18257 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18258 if test -n "$GTKDOC_REBASE"; then
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18260 $as_echo "$GTKDOC_REBASE" >&6; }
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263 $as_echo "no" >&6; }
18267 test -n "$GTKDOC_REBASE" && break
18269 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18271 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18272 set dummy gtkdoc-mkpdf; ac_word=$2
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18274 $as_echo_n "checking for $ac_word... " >&6; }
18275 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
18276 $as_echo_n "(cached) " >&6
18278 case $GTKDOC_MKPDF in
18280 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18284 for as_dir in $PATH
18287 test -z "$as_dir" && as_dir=.
18288 for ac_exec_ext in '' $ac_executable_extensions; do
18289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18290 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18301 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18302 if test -n "$GTKDOC_MKPDF"; then
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18304 $as_echo "$GTKDOC_MKPDF" >&6; }
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18313 # Check whether --with-html-dir was given.
18314 if test "${with_html_dir+set}" = set; then :
18315 withval=$with_html_dir;
18317 with_html_dir='${datadir}/gtk-doc/html'
18320 HTML_DIR="$with_html_dir"
18323 # Check whether --enable-gtk-doc was given.
18324 if test "${enable_gtk_doc+set}" = set; then :
18325 enableval=$enable_gtk_doc;
18331 if test x$enable_gtk_doc = xyes; then
18332 if test -n "$PKG_CONFIG" && \
18333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
18334 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
18336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18337 test $ac_status = 0; }; then
18340 as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18345 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18347 $as_echo "$enable_gtk_doc" >&6; }
18349 # Check whether --enable-gtk-doc-html was given.
18350 if test "${enable_gtk_doc_html+set}" = set; then :
18351 enableval=$enable_gtk_doc_html;
18353 enable_gtk_doc_html=yes
18356 # Check whether --enable-gtk-doc-pdf was given.
18357 if test "${enable_gtk_doc_pdf+set}" = set; then :
18358 enableval=$enable_gtk_doc_pdf;
18360 enable_gtk_doc_pdf=no
18364 if test -n "$GTKDOC_MKPDF"; then
18365 enable_gtk_doc_pdf=no
18369 if test x$enable_gtk_doc = xyes; then
18370 ENABLE_GTK_DOC_TRUE=
18371 ENABLE_GTK_DOC_FALSE='#'
18373 ENABLE_GTK_DOC_TRUE='#'
18374 ENABLE_GTK_DOC_FALSE=
18377 if test x$enable_gtk_doc_html = xyes; then
18378 GTK_DOC_BUILD_HTML_TRUE=
18379 GTK_DOC_BUILD_HTML_FALSE='#'
18381 GTK_DOC_BUILD_HTML_TRUE='#'
18382 GTK_DOC_BUILD_HTML_FALSE=
18385 if test x$enable_gtk_doc_pdf = xyes; then
18386 GTK_DOC_BUILD_PDF_TRUE=
18387 GTK_DOC_BUILD_PDF_FALSE='#'
18389 GTK_DOC_BUILD_PDF_TRUE='#'
18390 GTK_DOC_BUILD_PDF_FALSE=
18393 if test -n "$LIBTOOL"; then
18394 GTK_DOC_USE_LIBTOOL_TRUE=
18395 GTK_DOC_USE_LIBTOOL_FALSE='#'
18397 GTK_DOC_USE_LIBTOOL_TRUE='#'
18398 GTK_DOC_USE_LIBTOOL_FALSE=
18401 if test -n "$GTKDOC_REBASE"; then
18402 GTK_DOC_USE_REBASE_TRUE=
18403 GTK_DOC_USE_REBASE_FALSE='#'
18405 GTK_DOC_USE_REBASE_TRUE='#'
18406 GTK_DOC_USE_REBASE_FALSE=
18412 # Check whether --enable-java was given.
18413 if test "${enable_java+set}" = set; then :
18414 enableval=$enable_java;
18420 if test -n "$ac_tool_prefix"; then
18423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426 $as_echo_n "checking for $ac_word... " >&6; }
18427 if test "${ac_cv_prog_GCJ+set}" = set; then :
18428 $as_echo_n "(cached) " >&6
18430 if test -n "$GCJ"; then
18431 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434 for as_dir in $PATH
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18440 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18450 GCJ=$ac_cv_prog_GCJ
18451 if test -n "$GCJ"; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
18453 $as_echo "$GCJ" >&6; }
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456 $as_echo "no" >&6; }
18460 test -n "$GCJ" && break
18463 if test -z "$GCJ"; then
18467 # Extract the first word of "$ac_prog", so it can be a program name with args.
18468 set dummy $ac_prog; ac_word=$2
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18470 $as_echo_n "checking for $ac_word... " >&6; }
18471 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
18472 $as_echo_n "(cached) " >&6
18474 if test -n "$ac_ct_GCJ"; then
18475 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18481 test -z "$as_dir" && as_dir=.
18482 for ac_exec_ext in '' $ac_executable_extensions; do
18483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18484 ac_cv_prog_ac_ct_GCJ="$ac_prog"
18485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18494 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
18495 if test -n "$ac_ct_GCJ"; then
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
18497 $as_echo "$ac_ct_GCJ" >&6; }
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 $as_echo "no" >&6; }
18504 test -n "$ac_ct_GCJ" && break
18507 if test "x$ac_ct_GCJ" = x; then
18510 case $cross_compiling:$ac_tool_warned in
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18514 ac_tool_warned=yes ;;
18520 test -z "$GCJ" && as_fn_error $? "no acceptable gcj found in \$PATH" "$LINENO" 5
18521 if test "x${GCJFLAGS-unset}" = xunset; then
18526 depcc="$GCJ" am_compiler_list='gcc3 gcc'
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18529 $as_echo_n "checking dependency style of $depcc... " >&6; }
18530 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
18531 $as_echo_n "(cached) " >&6
18533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18534 # We make a subdir and do the tests there. Otherwise we can end up
18535 # making bogus files that we don't know about and never remove. For
18536 # instance it was reported that on HP-UX the gcc test will end up
18537 # making a dummy file named `D' -- because `-MD' means `put the output
18540 # Copy depcomp to subdir because otherwise we won't find it if we're
18541 # using a relative directory.
18542 cp "$am_depcomp" conftest.dir
18544 # We will build objects and dependencies in a subdirectory because
18545 # it helps to detect inapplicable dependency modes. For instance
18546 # both Tru64's cc and ICC support -MD to output dependencies as a
18547 # side effect of compilation, but ICC will put the dependencies in
18548 # the current directory while Tru64 will put them in the object
18552 am_cv_GCJ_dependencies_compiler_type=none
18553 if test "$am_compiler_list" = ""; then
18554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18556 am__universal=false
18559 for depmode in $am_compiler_list; do
18560 # Setup a source with many dependencies, because some compilers
18561 # like to wrap large dependency lists on column 80 (with \), and
18562 # we should not choose a depcomp mode which is confused by this.
18564 # We need to recreate these files for each test, as the compiler may
18565 # overwrite some of them when testing with obscure command lines.
18566 # This happens at least with the AIX C compiler.
18568 for i in 1 2 3 4 5 6; do
18569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18571 # Solaris 8's {/usr,}/bin/sh.
18572 touch sub/conftst$i.h
18574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18577 # mode. It turns out that the SunPro C++ compiler does not properly
18578 # handle `-M -o', and we need to detect this. Also, some Intel
18579 # versions had trouble with output in subdirs
18580 am__obj=sub/conftest.${OBJEXT-o}
18581 am__minus_obj="-o $am__obj"
18584 # This depmode causes a compiler race in universal mode.
18585 test "$am__universal" = false || continue
18588 # after this tag, mechanisms are not by side-effect, so they'll
18589 # only be used when explicitly requested
18590 if test "x$enable_dependency_tracking" = xyes; then
18596 msvisualcpp | msvcmsys)
18597 # This compiler won't grok `-c -o', but also, the minuso test has
18598 # not run yet. These depmodes are late enough in the game, and
18599 # so weak that their functioning should not be impacted.
18600 am__obj=conftest.${OBJEXT-o}
18605 if depmode=$depmode \
18606 source=sub/conftest.c object=$am__obj \
18607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18609 >/dev/null 2>conftest.err &&
18610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18614 # icc doesn't choke on unknown options, it will just issue warnings
18615 # or remarks (even with -Werror). So we grep stderr for any message
18616 # that says an option was ignored or not supported.
18617 # When given -MP, icc 7.0 and 7.1 complain thusly:
18618 # icc: Command line warning: ignoring option '-M'; no argument required
18619 # The diagnosis changed in icc 8.0:
18620 # icc: Command line remark: option '-MP' not supported
18621 if (grep 'ignoring option' conftest.err ||
18622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18623 am_cv_GCJ_dependencies_compiler_type=$depmode
18630 rm -rf conftest.dir
18632 am_cv_GCJ_dependencies_compiler_type=none
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
18637 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
18638 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
18641 test "x$enable_dependency_tracking" != xno \
18642 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
18643 am__fastdepGCJ_TRUE=
18644 am__fastdepGCJ_FALSE='#'
18646 am__fastdepGCJ_TRUE='#'
18647 am__fastdepGCJ_FALSE=
18652 if test -n "$ac_tool_prefix"; then
18655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18658 $as_echo_n "checking for $ac_word... " >&6; }
18659 if test "${ac_cv_prog_GCJ+set}" = set; then :
18660 $as_echo_n "(cached) " >&6
18662 if test -n "$GCJ"; then
18663 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
18665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18669 test -z "$as_dir" && as_dir=.
18670 for ac_exec_ext in '' $ac_executable_extensions; do
18671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18672 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
18673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18682 GCJ=$ac_cv_prog_GCJ
18683 if test -n "$GCJ"; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
18685 $as_echo "$GCJ" >&6; }
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18692 test -n "$GCJ" && break
18695 if test -z "$GCJ"; then
18699 # Extract the first word of "$ac_prog", so it can be a program name with args.
18700 set dummy $ac_prog; ac_word=$2
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18702 $as_echo_n "checking for $ac_word... " >&6; }
18703 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
18704 $as_echo_n "(cached) " >&6
18706 if test -n "$ac_ct_GCJ"; then
18707 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
18709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18710 for as_dir in $PATH
18713 test -z "$as_dir" && as_dir=.
18714 for ac_exec_ext in '' $ac_executable_extensions; do
18715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18716 ac_cv_prog_ac_ct_GCJ="$ac_prog"
18717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18726 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
18727 if test -n "$ac_ct_GCJ"; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
18729 $as_echo "$ac_ct_GCJ" >&6; }
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18736 test -n "$ac_ct_GCJ" && break
18739 if test "x$ac_ct_GCJ" = x; then
18742 case $cross_compiling:$ac_tool_warned in
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18746 ac_tool_warned=yes ;;
18752 test -z "$GCJ" && as_fn_error $? "no acceptable gcj found in \$PATH" "$LINENO" 5
18753 if test "x${GCJFLAGS-unset}" = xunset; then
18758 depcc="$GCJ" am_compiler_list='gcc3 gcc'
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18761 $as_echo_n "checking dependency style of $depcc... " >&6; }
18762 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
18763 $as_echo_n "(cached) " >&6
18765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18766 # We make a subdir and do the tests there. Otherwise we can end up
18767 # making bogus files that we don't know about and never remove. For
18768 # instance it was reported that on HP-UX the gcc test will end up
18769 # making a dummy file named `D' -- because `-MD' means `put the output
18772 # Copy depcomp to subdir because otherwise we won't find it if we're
18773 # using a relative directory.
18774 cp "$am_depcomp" conftest.dir
18776 # We will build objects and dependencies in a subdirectory because
18777 # it helps to detect inapplicable dependency modes. For instance
18778 # both Tru64's cc and ICC support -MD to output dependencies as a
18779 # side effect of compilation, but ICC will put the dependencies in
18780 # the current directory while Tru64 will put them in the object
18784 am_cv_GCJ_dependencies_compiler_type=none
18785 if test "$am_compiler_list" = ""; then
18786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18788 am__universal=false
18791 for depmode in $am_compiler_list; do
18792 # Setup a source with many dependencies, because some compilers
18793 # like to wrap large dependency lists on column 80 (with \), and
18794 # we should not choose a depcomp mode which is confused by this.
18796 # We need to recreate these files for each test, as the compiler may
18797 # overwrite some of them when testing with obscure command lines.
18798 # This happens at least with the AIX C compiler.
18800 for i in 1 2 3 4 5 6; do
18801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18803 # Solaris 8's {/usr,}/bin/sh.
18804 touch sub/conftst$i.h
18806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18809 # mode. It turns out that the SunPro C++ compiler does not properly
18810 # handle `-M -o', and we need to detect this. Also, some Intel
18811 # versions had trouble with output in subdirs
18812 am__obj=sub/conftest.${OBJEXT-o}
18813 am__minus_obj="-o $am__obj"
18816 # This depmode causes a compiler race in universal mode.
18817 test "$am__universal" = false || continue
18820 # after this tag, mechanisms are not by side-effect, so they'll
18821 # only be used when explicitly requested
18822 if test "x$enable_dependency_tracking" = xyes; then
18828 msvisualcpp | msvcmsys)
18829 # This compiler won't grok `-c -o', but also, the minuso test has
18830 # not run yet. These depmodes are late enough in the game, and
18831 # so weak that their functioning should not be impacted.
18832 am__obj=conftest.${OBJEXT-o}
18837 if depmode=$depmode \
18838 source=sub/conftest.c object=$am__obj \
18839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18841 >/dev/null 2>conftest.err &&
18842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18846 # icc doesn't choke on unknown options, it will just issue warnings
18847 # or remarks (even with -Werror). So we grep stderr for any message
18848 # that says an option was ignored or not supported.
18849 # When given -MP, icc 7.0 and 7.1 complain thusly:
18850 # icc: Command line warning: ignoring option '-M'; no argument required
18851 # The diagnosis changed in icc 8.0:
18852 # icc: Command line remark: option '-MP' not supported
18853 if (grep 'ignoring option' conftest.err ||
18854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18855 am_cv_GCJ_dependencies_compiler_type=$depmode
18862 rm -rf conftest.dir
18864 am_cv_GCJ_dependencies_compiler_type=none
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
18869 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
18870 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
18873 test "x$enable_dependency_tracking" != xno \
18874 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
18875 am__fastdepGCJ_TRUE=
18876 am__fastdepGCJ_FALSE='#'
18878 am__fastdepGCJ_TRUE='#'
18879 am__fastdepGCJ_FALSE=
18886 # Source file extension for Java test sources.
18889 # Object file extension for compiled Java test sources.
18893 # Code to be used in simple compile tests
18894 lt_simple_compile_test_code="class foo {}"
18896 # Code to be used in simple link tests
18897 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18906 # If no C compiler was specified, use CC.
18909 # If no C compiler flags were specified, use CFLAGS.
18910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18912 # Allow CC to be a program name with arguments.
18916 # save warnings/boilerplate of simple test code
18917 ac_outfile=conftest.$ac_objext
18918 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18920 _lt_compiler_boilerplate=`cat conftest.err`
18923 ac_outfile=conftest.$ac_objext
18924 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18926 _lt_linker_boilerplate=`cat conftest.err`
18930 # Allow CC to be a program name with arguments.
18938 for cc_temp in $compiler""; do
18940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18946 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18949 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18950 archive_cmds_need_lc_GCJ=no
18952 old_archive_cmds_GCJ=$old_archive_cmds
18955 ## There is no encapsulation within the following macros, do not change
18956 ## the running order or otherwise move them around unless you know exactly
18957 ## what you are doing...
18958 if test -n "$compiler"; then
18960 lt_prog_compiler_no_builtin_flag_GCJ=
18962 if test "$GCC" = yes; then
18963 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18966 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
18968 $as_echo_n "(cached) " >&6
18970 lt_cv_prog_compiler_rtti_exceptions=no
18971 ac_outfile=conftest.$ac_objext
18972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18973 lt_compiler_flag="-fno-rtti -fno-exceptions"
18974 # Insert the option either (1) after the last *FLAGS variable, or
18975 # (2) before a word containing "conftest.", or (3) at the end.
18976 # Note that $ac_compile itself does not contain backslashes and begins
18977 # with a dollar sign (not a hyphen), so the echo should work correctly.
18978 # The option is referenced via a variable to avoid confusing sed.
18979 lt_compile=`echo "$ac_compile" | $SED \
18980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18982 -e 's:$: $lt_compiler_flag:'`
18983 (eval echo "\"\$as_me:18983: $lt_compile\"" >&5)
18984 (eval "$lt_compile" 2>conftest.err)
18986 cat conftest.err >&5
18987 echo "$as_me:18987: \$? = $ac_status" >&5
18988 if (exit $ac_status) && test -s "$ac_outfile"; then
18989 # The compiler can only warn and ignore the option if not recognized
18990 # So say no if there are warnings other than the usual output.
18991 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18994 lt_cv_prog_compiler_rtti_exceptions=yes
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19001 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19004 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19013 lt_prog_compiler_wl_GCJ=
19014 lt_prog_compiler_pic_GCJ=
19015 lt_prog_compiler_static_GCJ=
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19018 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19020 if test "$GCC" = yes; then
19021 lt_prog_compiler_wl_GCJ='-Wl,'
19022 lt_prog_compiler_static_GCJ='-static'
19026 # All AIX code is PIC.
19027 if test "$host_cpu" = ia64; then
19028 # AIX 5 now supports IA64 processor
19029 lt_prog_compiler_static_GCJ='-Bstatic'
19036 # see comment about AmigaOS4 .so support
19037 lt_prog_compiler_pic_GCJ='-fPIC'
19040 # FIXME: we need at least 68020 code to build shared libraries, but
19041 # adding the `-m68020' flag to GCC prevents building anything better,
19043 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19048 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19049 # PIC is the default for these OSes.
19052 mingw* | cygwin* | pw32* | os2* | cegcc*)
19053 # This hack is so that the source file can tell whether it is being
19054 # built for inclusion in a dll (and should export symbols for example).
19055 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19056 # (--disable-auto-import) libraries
19060 darwin* | rhapsody*)
19061 # PIC is the default on this platform
19062 # Common symbols not allowed in MH_DYLIB files
19063 lt_prog_compiler_pic_GCJ='-fno-common'
19067 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19068 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19069 # sets the default TLS model and affects inlining.
19075 lt_prog_compiler_pic_GCJ='-fPIC'
19081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19082 # Instead, we relocate shared libraries at runtime.
19086 # Just because we use GCC doesn't mean we suddenly get shared libraries
19087 # on systems that don't support them.
19088 lt_prog_compiler_can_build_shared_GCJ=no
19093 # QNX uses GNU C++, but need to define -shared option too, otherwise
19094 # it will coredump.
19095 lt_prog_compiler_pic_GCJ='-fPIC -shared'
19099 if test -d /usr/nec; then
19100 lt_prog_compiler_pic_GCJ=-Kconform_pic
19105 lt_prog_compiler_pic_GCJ='-fPIC'
19109 # PORTME Check for flag to pass linker flags through the system compiler.
19112 lt_prog_compiler_wl_GCJ='-Wl,'
19113 if test "$host_cpu" = ia64; then
19114 # AIX 5 now supports IA64 processor
19115 lt_prog_compiler_static_GCJ='-Bstatic'
19117 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19121 mingw* | cygwin* | pw32* | os2* | cegcc*)
19122 # This hack is so that the source file can tell whether it is being
19123 # built for inclusion in a dll (and should export symbols for example).
19127 hpux9* | hpux10* | hpux11*)
19128 lt_prog_compiler_wl_GCJ='-Wl,'
19129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19130 # not for PA HP-UX.
19136 lt_prog_compiler_pic_GCJ='+Z'
19139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19140 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19143 irix5* | irix6* | nonstopux*)
19144 lt_prog_compiler_wl_GCJ='-Wl,'
19145 # PIC (with -KPIC) is the default.
19146 lt_prog_compiler_static_GCJ='-non_shared'
19149 linux* | k*bsd*-gnu)
19150 case $cc_basename in
19151 # old Intel for x86_64 which still supported -KPIC.
19153 lt_prog_compiler_wl_GCJ='-Wl,'
19154 lt_prog_compiler_pic_GCJ='-KPIC'
19155 lt_prog_compiler_static_GCJ='-static'
19157 # icc used to be incompatible with GCC.
19158 # ICC 10 doesn't accept -KPIC any more.
19160 lt_prog_compiler_wl_GCJ='-Wl,'
19161 lt_prog_compiler_pic_GCJ='-fPIC'
19162 lt_prog_compiler_static_GCJ='-static'
19164 # Lahey Fortran 8.1.
19166 lt_prog_compiler_wl_GCJ='-Wl,'
19167 lt_prog_compiler_pic_GCJ='--shared'
19168 lt_prog_compiler_static_GCJ='--static'
19170 pgcc* | pgf77* | pgf90* | pgf95*)
19171 # Portland Group compilers (*not* the Pentium gcc compiler,
19172 # which looks to be a dead project)
19173 lt_prog_compiler_wl_GCJ='-Wl,'
19174 lt_prog_compiler_pic_GCJ='-fpic'
19175 lt_prog_compiler_static_GCJ='-Bstatic'
19178 lt_prog_compiler_wl_GCJ='-Wl,'
19179 # All Alpha code is PIC.
19180 lt_prog_compiler_static_GCJ='-non_shared'
19183 # IBM XL C 8.0/Fortran 10.1 on PPC
19184 lt_prog_compiler_wl_GCJ='-Wl,'
19185 lt_prog_compiler_pic_GCJ='-qpic'
19186 lt_prog_compiler_static_GCJ='-qstaticlink'
19189 case `$CC -V 2>&1 | sed 5q` in
19192 lt_prog_compiler_pic_GCJ='-KPIC'
19193 lt_prog_compiler_static_GCJ='-Bstatic'
19194 lt_prog_compiler_wl_GCJ='-Wl,'
19197 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19198 lt_prog_compiler_pic_GCJ='-KPIC'
19199 lt_prog_compiler_static_GCJ='-Bstatic'
19200 lt_prog_compiler_wl_GCJ=''
19208 lt_prog_compiler_pic_GCJ='-KPIC'
19209 lt_prog_compiler_static_GCJ='-Bstatic'
19213 # QNX uses GNU C++, but need to define -shared option too, otherwise
19214 # it will coredump.
19215 lt_prog_compiler_pic_GCJ='-fPIC -shared'
19218 osf3* | osf4* | osf5*)
19219 lt_prog_compiler_wl_GCJ='-Wl,'
19220 # All OSF/1 code is PIC.
19221 lt_prog_compiler_static_GCJ='-non_shared'
19225 lt_prog_compiler_static_GCJ='-non_shared'
19229 lt_prog_compiler_pic_GCJ='-KPIC'
19230 lt_prog_compiler_static_GCJ='-Bstatic'
19231 case $cc_basename in
19232 f77* | f90* | f95*)
19233 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19235 lt_prog_compiler_wl_GCJ='-Wl,';;
19240 lt_prog_compiler_wl_GCJ='-Qoption ld '
19241 lt_prog_compiler_pic_GCJ='-PIC'
19242 lt_prog_compiler_static_GCJ='-Bstatic'
19245 sysv4 | sysv4.2uw2* | sysv4.3*)
19246 lt_prog_compiler_wl_GCJ='-Wl,'
19247 lt_prog_compiler_pic_GCJ='-KPIC'
19248 lt_prog_compiler_static_GCJ='-Bstatic'
19252 if test -d /usr/nec ;then
19253 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19254 lt_prog_compiler_static_GCJ='-Bstatic'
19258 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19259 lt_prog_compiler_wl_GCJ='-Wl,'
19260 lt_prog_compiler_pic_GCJ='-KPIC'
19261 lt_prog_compiler_static_GCJ='-Bstatic'
19265 lt_prog_compiler_wl_GCJ='-Wl,'
19266 lt_prog_compiler_can_build_shared_GCJ=no
19270 lt_prog_compiler_pic_GCJ='-pic'
19271 lt_prog_compiler_static_GCJ='-Bstatic'
19275 lt_prog_compiler_can_build_shared_GCJ=no
19281 # For platforms which do not support PIC, -DPIC is meaningless:
19283 lt_prog_compiler_pic_GCJ=
19286 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
19290 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19295 # Check to make sure the PIC flag actually works.
19297 if test -n "$lt_prog_compiler_pic_GCJ"; then
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19300 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
19301 $as_echo_n "(cached) " >&6
19303 lt_cv_prog_compiler_pic_works_GCJ=no
19304 ac_outfile=conftest.$ac_objext
19305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19306 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19307 # Insert the option either (1) after the last *FLAGS variable, or
19308 # (2) before a word containing "conftest.", or (3) at the end.
19309 # Note that $ac_compile itself does not contain backslashes and begins
19310 # with a dollar sign (not a hyphen), so the echo should work correctly.
19311 # The option is referenced via a variable to avoid confusing sed.
19312 lt_compile=`echo "$ac_compile" | $SED \
19313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19315 -e 's:$: $lt_compiler_flag:'`
19316 (eval echo "\"\$as_me:19316: $lt_compile\"" >&5)
19317 (eval "$lt_compile" 2>conftest.err)
19319 cat conftest.err >&5
19320 echo "$as_me:19320: \$? = $ac_status" >&5
19321 if (exit $ac_status) && test -s "$ac_outfile"; then
19322 # The compiler can only warn and ignore the option if not recognized
19323 # So say no if there are warnings other than the usual output.
19324 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19327 lt_cv_prog_compiler_pic_works_GCJ=yes
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19334 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19336 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19337 case $lt_prog_compiler_pic_GCJ in
19339 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19342 lt_prog_compiler_pic_GCJ=
19343 lt_prog_compiler_can_build_shared_GCJ=no
19351 # Check to make sure the static flag actually works.
19353 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19355 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19356 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
19357 $as_echo_n "(cached) " >&6
19359 lt_cv_prog_compiler_static_works_GCJ=no
19360 save_LDFLAGS="$LDFLAGS"
19361 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19362 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19363 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19364 # The linker can only warn and ignore the option if not recognized
19365 # So say no if there are warnings
19366 if test -s conftest.err; then
19367 # Append any errors to the config.log.
19368 cat conftest.err 1>&5
19369 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19371 if diff conftest.exp conftest.er2 >/dev/null; then
19372 lt_cv_prog_compiler_static_works_GCJ=yes
19375 lt_cv_prog_compiler_static_works_GCJ=yes
19379 LDFLAGS="$save_LDFLAGS"
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19383 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19385 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19388 lt_prog_compiler_static_GCJ=
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19395 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19396 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
19397 $as_echo_n "(cached) " >&6
19399 lt_cv_prog_compiler_c_o_GCJ=no
19400 $RM -r conftest 2>/dev/null
19404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19406 lt_compiler_flag="-o out/conftest2.$ac_objext"
19407 # Insert the option either (1) after the last *FLAGS variable, or
19408 # (2) before a word containing "conftest.", or (3) at the end.
19409 # Note that $ac_compile itself does not contain backslashes and begins
19410 # with a dollar sign (not a hyphen), so the echo should work correctly.
19411 lt_compile=`echo "$ac_compile" | $SED \
19412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19414 -e 's:$: $lt_compiler_flag:'`
19415 (eval echo "\"\$as_me:19415: $lt_compile\"" >&5)
19416 (eval "$lt_compile" 2>out/conftest.err)
19418 cat out/conftest.err >&5
19419 echo "$as_me:19419: \$? = $ac_status" >&5
19420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19422 # The compiler can only warn and ignore the option if not recognized
19423 # So say no if there are warnings
19424 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19427 lt_cv_prog_compiler_c_o_GCJ=yes
19432 # SGI C++ compiler will create directory out/ii_files/ for
19433 # template instantiation
19434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19435 $RM out/* && rmdir out
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19442 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19448 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
19449 $as_echo_n "(cached) " >&6
19451 lt_cv_prog_compiler_c_o_GCJ=no
19452 $RM -r conftest 2>/dev/null
19456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19458 lt_compiler_flag="-o out/conftest2.$ac_objext"
19459 # Insert the option either (1) after the last *FLAGS variable, or
19460 # (2) before a word containing "conftest.", or (3) at the end.
19461 # Note that $ac_compile itself does not contain backslashes and begins
19462 # with a dollar sign (not a hyphen), so the echo should work correctly.
19463 lt_compile=`echo "$ac_compile" | $SED \
19464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19466 -e 's:$: $lt_compiler_flag:'`
19467 (eval echo "\"\$as_me:19467: $lt_compile\"" >&5)
19468 (eval "$lt_compile" 2>out/conftest.err)
19470 cat out/conftest.err >&5
19471 echo "$as_me:19471: \$? = $ac_status" >&5
19472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19474 # The compiler can only warn and ignore the option if not recognized
19475 # So say no if there are warnings
19476 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19479 lt_cv_prog_compiler_c_o_GCJ=yes
19484 # SGI C++ compiler will create directory out/ii_files/ for
19485 # template instantiation
19486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19487 $RM out/* && rmdir out
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19494 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19499 hard_links="nottested"
19500 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19501 # do not overwrite the value of need_locks provided by the user
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19503 $as_echo_n "checking if we can lock with hard links... " >&6; }
19506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19508 ln conftest.a conftest.b 2>&5 || hard_links=no
19509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19511 $as_echo "$hard_links" >&6; }
19512 if test "$hard_links" = no; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19514 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19524 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19527 allow_undefined_flag_GCJ=
19528 always_export_symbols_GCJ=no
19530 archive_expsym_cmds_GCJ=
19531 compiler_needs_object_GCJ=no
19532 enable_shared_with_static_runtimes_GCJ=no
19533 export_dynamic_flag_spec_GCJ=
19534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19535 hardcode_automatic_GCJ=no
19536 hardcode_direct_GCJ=no
19537 hardcode_direct_absolute_GCJ=no
19538 hardcode_libdir_flag_spec_GCJ=
19539 hardcode_libdir_flag_spec_ld_GCJ=
19540 hardcode_libdir_separator_GCJ=
19541 hardcode_minus_L_GCJ=no
19542 hardcode_shlibpath_var_GCJ=unsupported
19543 inherit_rpath_GCJ=no
19544 link_all_deplibs_GCJ=unknown
19546 module_expsym_cmds_GCJ=
19547 old_archive_from_new_cmds_GCJ=
19548 old_archive_from_expsyms_cmds_GCJ=
19549 thread_safe_flag_spec_GCJ=
19550 whole_archive_flag_spec_GCJ=
19551 # include_expsyms should be a list of space-separated symbols to be *always*
19552 # included in the symbol list
19553 include_expsyms_GCJ=
19554 # exclude_expsyms can be an extended regexp of symbols to exclude
19555 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19556 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19557 # as well as any symbol that contains `d'.
19558 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19559 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19560 # platforms (ab)use it in PIC code, but their linkers get confused if
19561 # the symbol is explicitly referenced. Since portable code cannot
19562 # rely on this symbol name, it's probably fine to never include it in
19563 # preloaded symbol tables.
19564 # Exclude shared library initialization/finalization symbols.
19565 extract_expsyms_cmds=
19568 cygwin* | mingw* | pw32* | cegcc*)
19569 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19570 # When not using gcc, we currently assume that we are using
19571 # Microsoft Visual C++.
19572 if test "$GCC" != yes; then
19577 # we just hope/assume this is gcc and not c89 (= MSVC++)
19586 if test "$with_gnu_ld" = yes; then
19587 # If archive_cmds runs LD, not CC, wlarc should be empty
19590 # Set some defaults for GNU ld with shared library support. These
19591 # are reset later if shared libraries are not supported. Putting them
19592 # here allows them to be overridden if necessary.
19593 runpath_var=LD_RUN_PATH
19594 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19595 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19596 # ancient GNU ld didn't support --whole-archive et. al.
19597 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19598 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19600 whole_archive_flag_spec_GCJ=
19602 supports_anon_versioning=no
19603 case `$LD -v 2>&1` in
19604 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19605 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19606 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19607 *\ 2.11.*) ;; # other 2.11 versions
19608 *) supports_anon_versioning=yes ;;
19611 # See if GNU ld supports shared libraries.
19614 # On AIX/PPC, the GNU linker is very broken
19615 if test "$host_cpu" != ia64; then
19619 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19620 *** to be unable to reliably create shared libraries on AIX.
19621 *** Therefore, libtool is disabling shared libraries support. If you
19622 *** really care for shared libraries, you may want to modify your PATH
19623 *** so that a non-GNU linker is found, and then restart.
19632 # see comment about AmigaOS4 .so support
19633 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19634 archive_expsym_cmds_GCJ=''
19637 archive_cmds_GCJ='$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)'
19638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19639 hardcode_minus_L_GCJ=yes
19645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19646 allow_undefined_flag_GCJ=unsupported
19647 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19648 # support --undefined. This deserves some investigation. FIXME
19649 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19655 cygwin* | mingw* | pw32* | cegcc*)
19656 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19657 # as there is no search path for DLLs.
19658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19659 allow_undefined_flag_GCJ=unsupported
19660 always_export_symbols_GCJ=no
19661 enable_shared_with_static_runtimes_GCJ=yes
19662 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19664 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19665 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19666 # If the export-symbols file already is a .def file (1st line
19667 # is EXPORTS), use it as is; otherwise, prepend...
19668 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19669 cp $export_symbols $output_objdir/$soname.def;
19671 echo EXPORTS > $output_objdir/$soname.def;
19672 cat $export_symbols >> $output_objdir/$soname.def;
19674 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19681 hardcode_direct_GCJ=no
19682 hardcode_shlibpath_var_GCJ=no
19683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19684 export_dynamic_flag_spec_GCJ='${wl}-E'
19685 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19686 # Instead, shared libraries are loaded at an image base (0x10000000 by
19687 # default) and relocated if they conflict, which is a slow very memory
19688 # consuming and fragmenting process. To avoid this, we pick a random,
19689 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19690 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19691 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19692 archive_expsym_cmds_GCJ='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'
19695 gnu* | linux* | tpf* | k*bsd*-gnu)
19697 if test "$host_os" = linux-dietlibc; then
19698 case $cc_basename in
19699 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19702 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19703 && test "$tmp_diet" = no
19706 tmp_sharedflag='-shared'
19707 case $cc_basename,$host_cpu in
19708 pgcc*) # Portland Group C compiler
19709 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19710 tmp_addflag=' $pic_flag'
19712 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19713 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19714 tmp_addflag=' $pic_flag -Mnomain' ;;
19715 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19716 tmp_addflag=' -i_dynamic' ;;
19717 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19718 tmp_addflag=' -i_dynamic -nofor_main' ;;
19719 ifc* | ifort*) # Intel Fortran compiler
19720 tmp_addflag=' -nofor_main' ;;
19721 lf95*) # Lahey Fortran 8.1
19722 whole_archive_flag_spec_GCJ=
19723 tmp_sharedflag='--shared' ;;
19724 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19725 tmp_sharedflag='-qmkshrobj'
19728 case `$CC -V 2>&1 | sed 5q` in
19729 *Sun\ C*) # Sun C 5.9
19730 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19731 compiler_needs_object_GCJ=yes
19732 tmp_sharedflag='-G' ;;
19733 *Sun\ F*) # Sun Fortran 8.3
19734 tmp_sharedflag='-G' ;;
19736 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19738 if test "x$supports_anon_versioning" = xyes; then
19739 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
19740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19741 echo "local: *; };" >> $output_objdir/$libname.ver~
19742 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19745 case $cc_basename in
19747 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19748 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
19749 hardcode_libdir_flag_spec_GCJ=
19750 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19751 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19752 if test "x$supports_anon_versioning" = xyes; then
19753 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
19754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19755 echo "local: *; };" >> $output_objdir/$libname.ver~
19756 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19767 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19770 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19771 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19776 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19781 *** create shared libraries on Solaris systems. Therefore, libtool
19782 *** is disabling shared libraries support. We urge you to upgrade GNU
19783 *** binutils to release 2.9.1 or newer. Another option is to modify
19784 *** your PATH or compiler configuration so that the native linker is
19785 *** used, and then restart.
19788 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19789 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19790 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19797 case `$LD -v 2>&1` in
19798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19803 *** reliably create shared libraries on SCO systems. Therefore, libtool
19804 *** is disabling shared libraries support. We urge you to upgrade GNU
19805 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19806 *** your PATH or compiler configuration so that the native linker is
19807 *** used, and then restart.
19812 # For security reasons, it is highly recommended that you always
19813 # use absolute paths for naming shared libraries, and exclude the
19814 # DT_RUNPATH tag from executables and libraries. But doing so
19815 # requires that you compile everything twice, which is a pain.
19816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19817 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19818 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19819 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19828 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19830 hardcode_direct_GCJ=yes
19831 hardcode_shlibpath_var_GCJ=no
19835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19844 if test "$ld_shlibs_GCJ" = no; then
19846 hardcode_libdir_flag_spec_GCJ=
19847 export_dynamic_flag_spec_GCJ=
19848 whole_archive_flag_spec_GCJ=
19851 # PORTME fill in a description of your system's linker (not GNU ld)
19854 allow_undefined_flag_GCJ=unsupported
19855 always_export_symbols_GCJ=yes
19856 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19857 # Note: this linker hardcodes the directories in LIBPATH if there
19858 # are no directories specified by -L.
19859 hardcode_minus_L_GCJ=yes
19860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19861 # Neither direct hardcoding nor static linking is supported with a
19863 hardcode_direct_GCJ=unsupported
19868 if test "$host_cpu" = ia64; then
19869 # On IA64, the linker does run time linking by default, so we don't
19870 # have to do anything special.
19871 aix_use_runtimelinking=no
19872 exp_sym_flag='-Bexport'
19875 # If we're using GNU nm, then we don't want the "-C" option.
19876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19877 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19878 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19880 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19882 aix_use_runtimelinking=no
19884 # Test if we are trying to use run time linking or normal
19885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19886 # need to do runtime linking.
19887 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19888 for ld_flag in $LDFLAGS; do
19889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19890 aix_use_runtimelinking=yes
19897 exp_sym_flag='-bexport'
19898 no_entry_flag='-bnoentry'
19901 # When large executables or shared objects are built, AIX ld can
19902 # have problems creating the table of contents. If linking a library
19903 # or program results in "error TOC overflow" add -mminimal-toc to
19904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19907 archive_cmds_GCJ=''
19908 hardcode_direct_GCJ=yes
19909 hardcode_direct_absolute_GCJ=yes
19910 hardcode_libdir_separator_GCJ=':'
19911 link_all_deplibs_GCJ=yes
19912 file_list_spec_GCJ='${wl}-f,'
19914 if test "$GCC" = yes; then
19915 case $host_os in aix4.[012]|aix4.[012].*)
19916 # We only want to do this on AIX 4.2 and lower, the check
19917 # below for broken collect2 doesn't work under 4.3+
19918 collect2name=`${CC} -print-prog-name=collect2`
19919 if test -f "$collect2name" &&
19920 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19922 # We have reworked collect2
19925 # We have old collect2
19926 hardcode_direct_GCJ=unsupported
19927 # It fails to find uninstalled libraries when the uninstalled
19928 # path is not listed in the libpath. Setting hardcode_minus_L
19929 # to unsupported forces relinking
19930 hardcode_minus_L_GCJ=yes
19931 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19932 hardcode_libdir_separator_GCJ=
19936 shared_flag='-shared'
19937 if test "$aix_use_runtimelinking" = yes; then
19938 shared_flag="$shared_flag "'${wl}-G'
19942 if test "$host_cpu" = ia64; then
19943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19944 # chokes on -Wl,-G. The following line is correct:
19947 if test "$aix_use_runtimelinking" = yes; then
19948 shared_flag='${wl}-G'
19950 shared_flag='${wl}-bM:SRE'
19955 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
19956 # It seems that -bexpall does not export symbols beginning with
19957 # underscore (_), so it is better to generate a list of symbols to export.
19958 always_export_symbols_GCJ=yes
19959 if test "$aix_use_runtimelinking" = yes; then
19960 # Warning - without using the other runtime loading flags (-brtl),
19961 # -berok will link without error, but may produce a broken library.
19962 allow_undefined_flag_GCJ='-berok'
19963 # Determine the default libpath from the value encoded in an
19964 # empty executable.
19965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966 /* end confdefs.h. */
19976 if ac_fn_c_try_link "$LINENO"; then :
19978 lt_aix_libpath_sed='
19979 /Import File Strings/,/^$/ {
19985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19986 # Check for a 64-bit object if we didn't find anything.
19987 if test -z "$aix_libpath"; then
19988 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19991 rm -f core conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19995 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19996 archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19998 if test "$host_cpu" = ia64; then
19999 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20000 allow_undefined_flag_GCJ="-z nodefs"
20001 archive_expsym_cmds_GCJ="\$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"
20003 # Determine the default libpath from the value encoded in an
20004 # empty executable.
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20016 if ac_fn_c_try_link "$LINENO"; then :
20018 lt_aix_libpath_sed='
20019 /Import File Strings/,/^$/ {
20025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20026 # Check for a 64-bit object if we didn't find anything.
20027 if test -z "$aix_libpath"; then
20028 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20031 rm -f core conftest.err conftest.$ac_objext \
20032 conftest$ac_exeext conftest.$ac_ext
20033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20035 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20036 # Warning - without using the other run time loading flags,
20037 # -berok will link without error, but may produce a broken library.
20038 no_undefined_flag_GCJ=' ${wl}-bernotok'
20039 allow_undefined_flag_GCJ=' ${wl}-berok'
20040 # Exported symbols can be pulled into shared objects from archives
20041 whole_archive_flag_spec_GCJ='$convenience'
20042 archive_cmds_need_lc_GCJ=yes
20043 # This is similar to how AIX traditionally builds its shared libraries.
20044 archive_expsym_cmds_GCJ="\$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'
20052 # see comment about AmigaOS4 .so support
20053 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20054 archive_expsym_cmds_GCJ=''
20057 archive_cmds_GCJ='$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)'
20058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20059 hardcode_minus_L_GCJ=yes
20065 export_dynamic_flag_spec_GCJ=-rdynamic
20068 cygwin* | mingw* | pw32* | cegcc*)
20069 # When not using gcc, we currently assume that we are using
20070 # Microsoft Visual C++.
20071 # hardcode_libdir_flag_spec is actually meaningless, as there is
20072 # no search path for DLLs.
20073 hardcode_libdir_flag_spec_GCJ=' '
20074 allow_undefined_flag_GCJ=unsupported
20075 # Tell ltmain to make .lib files, not .a files.
20077 # Tell ltmain to make .dll files, not .so files.
20079 # FIXME: Setting linknames here is a bad hack.
20080 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
20081 # The linker will automatically build a .lib file if we build a DLL.
20082 old_archive_from_new_cmds_GCJ='true'
20083 # FIXME: Should let the user specify the lib program.
20084 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20085 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20086 enable_shared_with_static_runtimes_GCJ=yes
20089 darwin* | rhapsody*)
20092 archive_cmds_need_lc_GCJ=no
20093 hardcode_direct_GCJ=no
20094 hardcode_automatic_GCJ=yes
20095 hardcode_shlibpath_var_GCJ=unsupported
20096 whole_archive_flag_spec_GCJ=''
20097 link_all_deplibs_GCJ=yes
20098 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
20099 case $cc_basename in
20100 ifort*) _lt_dar_can_shared=yes ;;
20101 *) _lt_dar_can_shared=$GCC ;;
20103 if test "$_lt_dar_can_shared" = "yes"; then
20104 output_verbose_link_cmd=echo
20105 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20106 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20107 archive_expsym_cmds_GCJ="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}"
20108 module_expsym_cmds_GCJ="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}"
20117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20119 hardcode_shlibpath_var_GCJ=no
20126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20127 # support. Future versions do this automatically, but an explicit c++rt0.o
20128 # does not break anything, and helps significantly (at the cost of a little
20131 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20132 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20133 hardcode_direct_GCJ=yes
20134 hardcode_shlibpath_var_GCJ=no
20137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20139 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20140 hardcode_direct_GCJ=yes
20141 hardcode_minus_L_GCJ=yes
20142 hardcode_shlibpath_var_GCJ=no
20145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20146 freebsd* | dragonfly*)
20147 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20148 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20149 hardcode_direct_GCJ=yes
20150 hardcode_shlibpath_var_GCJ=no
20154 if test "$GCC" = yes; then
20155 archive_cmds_GCJ='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20157 archive_cmds_GCJ='$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'
20159 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20160 hardcode_libdir_separator_GCJ=:
20161 hardcode_direct_GCJ=yes
20163 # hardcode_minus_L: Not really in the search PATH,
20164 # but as the default location of the library.
20165 hardcode_minus_L_GCJ=yes
20166 export_dynamic_flag_spec_GCJ='${wl}-E'
20170 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20171 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20173 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20175 if test "$with_gnu_ld" = no; then
20176 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20177 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20178 hardcode_libdir_separator_GCJ=:
20179 hardcode_direct_GCJ=yes
20180 hardcode_direct_absolute_GCJ=yes
20181 export_dynamic_flag_spec_GCJ='${wl}-E'
20182 # hardcode_minus_L: Not really in the search PATH,
20183 # but as the default location of the library.
20184 hardcode_minus_L_GCJ=yes
20189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20192 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20195 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20198 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20204 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20207 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20210 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20214 if test "$with_gnu_ld" = no; then
20215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20216 hardcode_libdir_separator_GCJ=:
20220 hardcode_direct_GCJ=no
20221 hardcode_shlibpath_var_GCJ=no
20224 hardcode_direct_GCJ=yes
20225 hardcode_direct_absolute_GCJ=yes
20226 export_dynamic_flag_spec_GCJ='${wl}-E'
20228 # hardcode_minus_L: Not really in the search PATH,
20229 # but as the default location of the library.
20230 hardcode_minus_L_GCJ=yes
20236 irix5* | irix6* | nonstopux*)
20237 if test "$GCC" = yes; then
20238 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20239 # Try to use the -exported_symbol ld option, if it does not
20240 # work, assume that -exports_file does not work either and
20241 # implicitly export all symbols.
20242 save_LDFLAGS="$LDFLAGS"
20243 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h. */
20248 if ac_fn_c_try_link "$LINENO"; then :
20249 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
20252 rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20254 LDFLAGS="$save_LDFLAGS"
20256 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
20257 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
20259 archive_cmds_need_lc_GCJ='no'
20260 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20261 hardcode_libdir_separator_GCJ=:
20262 inherit_rpath_GCJ=yes
20263 link_all_deplibs_GCJ=yes
20267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20270 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20273 hardcode_direct_GCJ=yes
20274 hardcode_shlibpath_var_GCJ=no
20278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20279 hardcode_direct_GCJ=yes
20280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20281 hardcode_libdir_separator_GCJ=:
20282 hardcode_shlibpath_var_GCJ=no
20289 if test -f /usr/libexec/ld.so; then
20290 hardcode_direct_GCJ=yes
20291 hardcode_shlibpath_var_GCJ=no
20292 hardcode_direct_absolute_GCJ=yes
20293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20294 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20295 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20296 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20297 export_dynamic_flag_spec_GCJ='${wl}-E'
20300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20301 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20302 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20305 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20317 hardcode_minus_L_GCJ=yes
20318 allow_undefined_flag_GCJ=unsupported
20319 archive_cmds_GCJ='$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'
20320 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20324 if test "$GCC" = yes; then
20325 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20326 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20328 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20329 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
20331 archive_cmds_need_lc_GCJ='no'
20332 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20333 hardcode_libdir_separator_GCJ=:
20336 osf4* | osf5*) # as osf3* with the addition of -msym flag
20337 if test "$GCC" = yes; then
20338 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20339 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20342 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20343 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
20344 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
20345 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
20347 # Both c and cxx compiler support -rpath directly
20348 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20350 archive_cmds_need_lc_GCJ='no'
20351 hardcode_libdir_separator_GCJ=:
20355 no_undefined_flag_GCJ=' -z defs'
20356 if test "$GCC" = yes; then
20358 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20359 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20360 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20362 case `$CC -V 2>&1` in
20365 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20366 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20371 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20372 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20373 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20377 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20378 hardcode_shlibpath_var_GCJ=no
20380 solaris2.[0-5] | solaris2.[0-5].*) ;;
20382 # The compiler driver will combine and reorder linker options,
20383 # but understands `-z linker_flag'. GCC discards it without `$wl',
20384 # but is careful enough not to reorder.
20385 # Supported since Solaris 2.6 (maybe 2.5.1?)
20386 if test "$GCC" = yes; then
20387 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20389 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20393 link_all_deplibs_GCJ=yes
20397 if test "x$host_vendor" = xsequent; then
20398 # Use $CC to link under sequent, because it throws in some extra .o
20399 # files that make .init and .fini sections work.
20400 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20402 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20404 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20405 hardcode_direct_GCJ=yes
20406 hardcode_minus_L_GCJ=yes
20407 hardcode_shlibpath_var_GCJ=no
20411 case $host_vendor in
20413 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20414 hardcode_direct_GCJ=yes # is this really true???
20417 ## LD is ld it makes a PLAMLIB
20418 ## CC just makes a GrossModule.
20419 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20420 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20421 hardcode_direct_GCJ=no
20424 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20425 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20428 runpath_var='LD_RUN_PATH'
20429 hardcode_shlibpath_var_GCJ=no
20433 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20434 hardcode_shlibpath_var_GCJ=no
20435 export_dynamic_flag_spec_GCJ='-Bexport'
20439 if test -d /usr/nec; then
20440 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20441 hardcode_shlibpath_var_GCJ=no
20442 runpath_var=LD_RUN_PATH
20443 hardcode_runpath_var=yes
20448 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20449 no_undefined_flag_GCJ='${wl}-z,text'
20450 archive_cmds_need_lc_GCJ=no
20451 hardcode_shlibpath_var_GCJ=no
20452 runpath_var='LD_RUN_PATH'
20454 if test "$GCC" = yes; then
20455 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20456 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20458 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20459 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20463 sysv5* | sco3.2v5* | sco5v6*)
20464 # Note: We can NOT use -z defs as we might desire, because we do not
20465 # link with -lc, and that would cause any symbols used from libc to
20466 # always be unresolved, which means just about no library would
20467 # ever link correctly. If we're not using GNU ld we use -z text
20468 # though, which does catch some bad symbols but isn't as heavy-handed
20470 no_undefined_flag_GCJ='${wl}-z,text'
20471 allow_undefined_flag_GCJ='${wl}-z,nodefs'
20472 archive_cmds_need_lc_GCJ=no
20473 hardcode_shlibpath_var_GCJ=no
20474 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
20475 hardcode_libdir_separator_GCJ=':'
20476 link_all_deplibs_GCJ=yes
20477 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20478 runpath_var='LD_RUN_PATH'
20480 if test "$GCC" = yes; then
20481 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20482 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20484 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20485 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20492 hardcode_shlibpath_var_GCJ=no
20500 if test x$host_vendor = xsni; then
20502 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20503 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
20510 $as_echo "$ld_shlibs_GCJ" >&6; }
20511 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20513 with_gnu_ld_GCJ=$with_gnu_ld
20521 # Do we need to explicitly link libc?
20523 case "x$archive_cmds_need_lc_GCJ" in
20525 # Assume -lc should be added
20526 archive_cmds_need_lc_GCJ=yes
20528 if test "$enable_shared" = yes && test "$GCC" = yes; then
20529 case $archive_cmds_GCJ in
20531 # FIXME: we may have to deal with multi-command sequences.
20534 # Test whether the compiler implicitly links with -lc since on some
20535 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20536 # to ld, don't add -lc before -lgcc.
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20538 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20543 (eval $ac_compile) 2>&5
20545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20546 test $ac_status = 0; } 2>conftest.err; then
20549 libobjs=conftest.$ac_objext
20551 wl=$lt_prog_compiler_wl_GCJ
20552 pic_flag=$lt_prog_compiler_pic_GCJ
20558 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20559 allow_undefined_flag_GCJ=
20560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20561 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20564 test $ac_status = 0; }
20566 archive_cmds_need_lc_GCJ=no
20568 archive_cmds_need_lc_GCJ=yes
20570 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20572 cat conftest.err 1>&5
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
20576 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20648 hardcode_action_GCJ=
20649 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
20650 test -n "$runpath_var_GCJ" ||
20651 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20653 # We can hardcode non-existent directories.
20654 if test "$hardcode_direct_GCJ" != no &&
20655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20656 # have to relink, otherwise we might link with an installed library
20657 # when we should be linking with a yet-to-be-installed one
20658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20659 test "$hardcode_minus_L_GCJ" != no; then
20660 # Linking always hardcodes the temporary library directory.
20661 hardcode_action_GCJ=relink
20663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20664 hardcode_action_GCJ=immediate
20667 # We cannot hardcode anything, or else we can only hardcode existing
20669 hardcode_action_GCJ=unsupported
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
20672 $as_echo "$hardcode_action_GCJ" >&6; }
20674 if test "$hardcode_action_GCJ" = relink ||
20675 test "$inherit_rpath_GCJ" = yes; then
20676 # Fast installation is not supported
20677 enable_fast_install=no
20678 elif test "$shlibpath_overrides_runpath" = yes ||
20679 test "$enable_shared" = no; then
20680 # Fast installation is not necessary
20681 enable_fast_install=needless
20693 ac_cpp='$CPP $CPPFLAGS'
20694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20705 if test "$enable_java" != "no"; then
20708 if test "x$JAVAPREFIX" = x; then
20709 test "x$JAR" = x && for ac_prog in jar$EXEEXT
20711 # Extract the first word of "$ac_prog", so it can be a program name with args.
20712 set dummy $ac_prog; ac_word=$2
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20714 $as_echo_n "checking for $ac_word... " >&6; }
20715 if test "${ac_cv_prog_JAR+set}" = set; then :
20716 $as_echo_n "(cached) " >&6
20718 if test -n "$JAR"; then
20719 ac_cv_prog_JAR="$JAR" # Let the user override the test.
20721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20722 for as_dir in $PATH
20725 test -z "$as_dir" && as_dir=.
20726 for ac_exec_ext in '' $ac_executable_extensions; do
20727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20728 ac_cv_prog_JAR="$ac_prog"
20729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20738 JAR=$ac_cv_prog_JAR
20739 if test -n "$JAR"; then
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
20741 $as_echo "$JAR" >&6; }
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20744 $as_echo "no" >&6; }
20748 test -n "$JAR" && break
20752 test "x$JAR" = x && for ac_prog in jar
20754 # Extract the first word of "$ac_prog", so it can be a program name with args.
20755 set dummy $ac_prog; ac_word=$2
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20757 $as_echo_n "checking for $ac_word... " >&6; }
20758 if test "${ac_cv_prog_JAR+set}" = set; then :
20759 $as_echo_n "(cached) " >&6
20761 if test -n "$JAR"; then
20762 ac_cv_prog_JAR="$JAR" # Let the user override the test.
20764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20765 for as_dir in $PATH
20768 test -z "$as_dir" && as_dir=.
20769 for ac_exec_ext in '' $ac_executable_extensions; do
20770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20771 ac_cv_prog_JAR="$ac_prog"
20772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20781 JAR=$ac_cv_prog_JAR
20782 if test -n "$JAR"; then
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
20784 $as_echo "$JAR" >&6; }
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20787 $as_echo "no" >&6; }
20791 test -n "$JAR" && break
20793 test -n "$JAR" || JAR="$JAVAPREFIX"
20796 test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5
20799 GJDOC=${GJDOC-"${am_missing_run}gjdoc"}
20802 if test "$enable_java" != "no"; then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in Java should be built" >&5
20811 $as_echo_n "checking if implementation in Java should be built... " >&6; }
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_java" >&5
20813 $as_echo "$enable_java" >&6; }
20816 if test -n "$HAVE_CSHARPCOMP"; then
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in C# should be built" >&5
20825 $as_echo_n "checking if implementation in C# should be built... " >&6; }
20826 if test -n "$HAVE_CSHARPCOMP"; then
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_csharp" >&5
20832 $as_echo "$enable_csharp" >&6; }
20835 # Run self-tests under valgrind?
20836 if test "$cross_compiling" = no; then
20837 for ac_prog in valgrind
20839 # Extract the first word of "$ac_prog", so it can be a program name with args.
20840 set dummy $ac_prog; ac_word=$2
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20842 $as_echo_n "checking for $ac_word... " >&6; }
20843 if test "${ac_cv_prog_VALGRIND+set}" = set; then :
20844 $as_echo_n "(cached) " >&6
20846 if test -n "$VALGRIND"; then
20847 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
20849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20850 for as_dir in $PATH
20853 test -z "$as_dir" && as_dir=.
20854 for ac_exec_ext in '' $ac_executable_extensions; do
20855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20856 ac_cv_prog_VALGRIND="$ac_prog"
20857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20866 VALGRIND=$ac_cv_prog_VALGRIND
20867 if test -n "$VALGRIND"; then
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
20869 $as_echo "$VALGRIND" >&6; }
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20872 $as_echo "no" >&6; }
20876 test -n "$VALGRIND" && break
20880 if test -n "$VALGRIND" && $VALGRIND true > /dev/null 2>&1; then
20881 opt_valgrind_tests=yes
20883 opt_valgrind_tests=no
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
20887 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
20888 # Check whether --enable-valgrind-tests was given.
20889 if test "${enable_valgrind_tests+set}" = set; then :
20890 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
20894 $as_echo "$opt_valgrind_tests" >&6; }
20897 # Update version number in lib/libtasn1.h.
20898 if ! sed 's/_VERSION ".*"/_VERSION "'$PACKAGE_VERSION'"/' $srcdir/lib/stringprep.h > fixhdr.tmp; then
20899 as_fn_error $? "*** Failed to update version number in $srcdir/lib/stringprep.h..." "$LINENO" 5
20901 if cmp -s $srcdir/lib/stringprep.h fixhdr.tmp 2>/dev/null; then
20903 elif ! mv fixhdr.tmp $srcdir/lib/stringprep.h; then
20904 as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/lib/stringprep.h..." "$LINENO" 5
20908 # Check whether --enable-gcc-warnings was given.
20909 if test "${enable_gcc_warnings+set}" = set; then :
20910 enableval=$enable_gcc_warnings; case $enableval in
20912 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
20914 gl_gcc_warnings=$enableval
20921 if test "$gl_gcc_warnings" = yes; then
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror" >&5
20923 $as_echo_n "checking whether compiler handles -Werror... " >&6; }
20924 if test "${gl_cv_warn__Werror+set}" = set; then :
20925 $as_echo_n "(cached) " >&6
20928 save_CPPFLAGS="$CPPFLAGS"
20929 CPPFLAGS="${CPPFLAGS} -Werror"
20930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931 /* end confdefs.h. */
20941 if ac_fn_c_try_cpp "$LINENO"; then :
20942 gl_cv_warn__Werror=yes
20944 gl_cv_warn__Werror=no
20946 rm -f conftest.err conftest.i conftest.$ac_ext
20947 CPPFLAGS="$save_CPPFLAGS"
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Werror" >&5
20951 $as_echo "$gl_cv_warn__Werror" >&6; }
20952 if test "x$gl_cv_warn__Werror" = x""yes; then :
20953 as_fn_append WERROR_CFLAGS " -Werror"
20956 as_gl_Warn=`$as_echo "gl_cv_warn_-Wframe-larger-than=80" | $as_tr_sh`
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wframe-larger-than=80" >&5
20958 $as_echo_n "checking whether compiler handles -Wframe-larger-than=80... " >&6; }
20959 if eval "test \"\${$as_gl_Warn+set}\"" = set; then :
20960 $as_echo_n "(cached) " >&6
20963 save_CPPFLAGS="$CPPFLAGS"
20964 CPPFLAGS="${CPPFLAGS} -Wframe-larger-than=80"
20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h. */
20976 if ac_fn_c_try_cpp "$LINENO"; then :
20977 eval "$as_gl_Warn=yes"
20979 eval "$as_gl_Warn=no"
20981 rm -f conftest.err conftest.i conftest.$ac_ext
20982 CPPFLAGS="$save_CPPFLAGS"
20985 eval ac_res=\$$as_gl_Warn
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20987 $as_echo "$ac_res" >&6; }
20988 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
20989 as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=80"
20993 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
20994 nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers
20995 nw="$nw -Woverlength-strings" # Some of our strings are too large
20996 nw="$nw -Wsign-conversion" # Too many warnings for now
20997 nw="$nw -Wconversion" # Too many warnings for now
20998 nw="$nw -Wtraditional" # Warns on #elif which we use often
20999 nw="$nw -Wtraditional-conversion" # Too many warnings for now
21000 nw="$nw -Wmissing-noreturn" # Too many warnings for now
21001 nw="$nw -Wunreachable-code" # Too many false positives
21002 nw="$nw -Wlogical-op" # Too many false positives
21006 for gl_manywarn_item in \
21010 -Wformat-nonliteral \
21011 -Wformat-security \
21013 -Wmissing-include-dirs \
21017 -Wunknown-pragmas \
21018 -Wstrict-aliasing \
21019 -Wstrict-overflow \
21023 -Wtraditional-conversion \
21024 -Wdeclaration-after-statement \
21027 -Wunsafe-loop-optimizations \
21029 -Wbad-function-cast \
21035 -Wsign-conversion \
21037 -Waggregate-return \
21038 -Wstrict-prototypes \
21039 -Wold-style-definition \
21040 -Wmissing-prototypes \
21041 -Wmissing-declarations \
21042 -Wmissing-noreturn \
21043 -Wmissing-format-attribute \
21046 -Wredundant-decls \
21048 -Wunreachable-code \
21053 -Wvolatile-register-var \
21054 -Wdisabled-optimization \
21055 -Wstack-protector \
21056 -Woverlength-strings \
21057 -Wbuiltin-macro-redefined \
21059 -Wpacked-bitfield-compat \
21062 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
21064 # The following are not documented in the manual but are included in
21065 # output from gcc --help=warnings.
21066 for gl_manywarn_item in \
21068 -Wcoverage-mismatch \
21072 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
21074 ws=$gl_manywarn_set
21082 *" $gl_warn_item "*)
21085 gl_warn_set="$gl_warn_set $gl_warn_item"
21092 as_gl_Warn=`$as_echo "gl_cv_warn_$w" | $as_tr_sh`
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles $w" >&5
21094 $as_echo_n "checking whether compiler handles $w... " >&6; }
21095 if eval "test \"\${$as_gl_Warn+set}\"" = set; then :
21096 $as_echo_n "(cached) " >&6
21099 save_CPPFLAGS="$CPPFLAGS"
21100 CPPFLAGS="${CPPFLAGS} $w"
21101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21102 /* end confdefs.h. */
21112 if ac_fn_c_try_cpp "$LINENO"; then :
21113 eval "$as_gl_Warn=yes"
21115 eval "$as_gl_Warn=no"
21117 rm -f conftest.err conftest.i conftest.$ac_ext
21118 CPPFLAGS="$save_CPPFLAGS"
21121 eval ac_res=\$$as_gl_Warn
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21123 $as_echo "$ac_res" >&6; }
21124 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
21125 as_fn_append WARN_CFLAGS " $w"
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-missing-field-initializers" >&5
21131 $as_echo_n "checking whether compiler handles -Wno-missing-field-initializers... " >&6; }
21132 if test "${gl_cv_warn__Wno_missing_field_initializers+set}" = set; then :
21133 $as_echo_n "(cached) " >&6
21136 save_CPPFLAGS="$CPPFLAGS"
21137 CPPFLAGS="${CPPFLAGS} -Wno-missing-field-initializers"
21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h. */
21149 if ac_fn_c_try_cpp "$LINENO"; then :
21150 gl_cv_warn__Wno_missing_field_initializers=yes
21152 gl_cv_warn__Wno_missing_field_initializers=no
21154 rm -f conftest.err conftest.i conftest.$ac_ext
21155 CPPFLAGS="$save_CPPFLAGS"
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_missing_field_initializers" >&5
21159 $as_echo "$gl_cv_warn__Wno_missing_field_initializers" >&6; }
21160 if test "x$gl_cv_warn__Wno_missing_field_initializers" = x""yes; then :
21161 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fdiagnostics-show-option" >&5
21165 $as_echo_n "checking whether compiler handles -fdiagnostics-show-option... " >&6; }
21166 if test "${gl_cv_warn__fdiagnostics_show_option+set}" = set; then :
21167 $as_echo_n "(cached) " >&6
21170 save_CPPFLAGS="$CPPFLAGS"
21171 CPPFLAGS="${CPPFLAGS} -fdiagnostics-show-option"
21172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21173 /* end confdefs.h. */
21183 if ac_fn_c_try_cpp "$LINENO"; then :
21184 gl_cv_warn__fdiagnostics_show_option=yes
21186 gl_cv_warn__fdiagnostics_show_option=no
21188 rm -f conftest.err conftest.i conftest.$ac_ext
21189 CPPFLAGS="$save_CPPFLAGS"
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fdiagnostics_show_option" >&5
21193 $as_echo "$gl_cv_warn__fdiagnostics_show_option" >&6; }
21194 if test "x$gl_cv_warn__fdiagnostics_show_option" = x""yes; then :
21195 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
21200 ac_config_files="$ac_config_files Makefile libidn.pc csharp/Makefile contrib/doxygen/Doxyfile doc/Makefile doc/cyclo/Makefile doc/java/Makefile doc/reference/Makefile doc/specifications/Makefile doc/tld/Makefile examples/Makefile gl/Makefile gltests/Makefile java/Makefile java/gnu/Makefile java/gnu/inet/Makefile java/gnu/inet/encoding/Makefile java/misc/Makefile lib/Makefile lib/gl/Makefile lib/gltests/Makefile po/Makefile.in src/Makefile tests/Makefile"
21202 cat >confcache <<\_ACEOF
21203 # This file is a shell script that caches the results of configure
21204 # tests run on this system so they can be shared between configure
21205 # scripts and configure runs, see configure's option --config-cache.
21206 # It is not useful on other systems. If it contains results you don't
21207 # want to keep, you may remove or edit it.
21209 # config.status only pays attention to the cache file if you give it
21210 # the --recheck option to rerun configure.
21212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21214 # following values.
21218 # The following way of writing the cache mishandles newlines in values,
21219 # but we know of no workaround that is simple, portable, and efficient.
21220 # So, we kill variables containing newlines.
21221 # Ultrix sh set writes to stderr and can't be redirected directly,
21222 # and sets the high bit in the cache file unless we assign to the vars.
21224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21225 eval ac_val=\$$ac_var
21229 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21230 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21233 _ | IFS | as_nl) ;; #(
21234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21235 *) { eval $ac_var=; unset $ac_var;} ;;
21241 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21242 *${as_nl}ac_space=\ *)
21243 # `set' does not quote correctly, so add quotes: double-quote
21244 # substitution turns \\\\ into \\, and sed turns \\ into \.
21247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21250 # `set' quotes correctly as required by POSIX, so do not add quotes.
21251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21262 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21264 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21265 if test -w "$cache_file"; then
21266 test "x$cache_file" != "x/dev/null" &&
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21268 $as_echo "$as_me: updating cache $cache_file" >&6;}
21269 cat confcache >$cache_file
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21272 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21278 # Let make expand exec_prefix.
21279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21281 DEFS=-DHAVE_CONFIG_H
21286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21287 # 1. Remove the extension, and $U if already installed.
21288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21291 # will be set to the directory where LIBOBJS objects are built.
21292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21295 LIBOBJS=$ac_libobjs
21297 LTLIBOBJS=$ac_ltlibobjs
21300 if test -n "$EXEEXT"; then
21302 am__EXEEXT_FALSE='#'
21304 am__EXEEXT_TRUE='#'
21308 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21309 as_fn_error $? "conditional \"AMDEP\" was never defined.
21310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21312 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21313 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21316 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21317 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
21318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21323 if test -n "$gl_LIBOBJS"; then
21324 # Remove the extension.
21325 sed_drop_objext='s/\.o$//;s/\.obj$//'
21326 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21327 gl_libobjs="$gl_libobjs $i.$ac_objext"
21328 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21331 gl_LIBOBJS=$gl_libobjs
21333 gl_LTLIBOBJS=$gl_ltlibobjs
21339 if test -n "$gltests_LIBOBJS"; then
21340 # Remove the extension.
21341 sed_drop_objext='s/\.o$//;s/\.obj$//'
21342 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21343 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21344 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21347 gltests_LIBOBJS=$gltests_libobjs
21349 gltests_LTLIBOBJS=$gltests_ltlibobjs
21352 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21353 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
21354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21356 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
21357 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
21358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21360 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
21361 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21367 if test -n "$lgl_LIBOBJS"; then
21368 # Remove the extension.
21369 sed_drop_objext='s/\.o$//;s/\.obj$//'
21370 for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21371 lgl_libobjs="$lgl_libobjs $i.$ac_objext"
21372 lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
21375 lgl_LIBOBJS=$lgl_libobjs
21377 lgl_LTLIBOBJS=$lgl_ltlibobjs
21382 lgltests_ltlibobjs=
21383 if test -n "$lgltests_LIBOBJS"; then
21384 # Remove the extension.
21385 sed_drop_objext='s/\.o$//;s/\.obj$//'
21386 for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21387 lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
21388 lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
21391 lgltests_LIBOBJS=$lgltests_libobjs
21393 lgltests_LTLIBOBJS=$lgltests_ltlibobjs
21396 if test -z "${TLD_TRUE}" && test -z "${TLD_FALSE}"; then
21397 as_fn_error $? "conditional \"TLD\" was never defined.
21398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21400 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21401 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21404 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21405 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21408 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21409 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21412 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21413 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21416 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21417 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21420 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
21421 as_fn_error $? "conditional \"am__fastdepGCJ\" was never defined.
21422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21424 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
21425 as_fn_error $? "conditional \"am__fastdepGCJ\" was never defined.
21426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21428 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
21429 as_fn_error $? "conditional \"JAVA\" was never defined.
21430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21432 if test -z "${CSHARP_TRUE}" && test -z "${CSHARP_FALSE}"; then
21433 as_fn_error $? "conditional \"CSHARP\" was never defined.
21434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21437 : ${CONFIG_STATUS=./config.status}
21439 ac_clean_files_save=$ac_clean_files
21440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21444 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21446 # Generated by $as_me.
21447 # Run this file to recreate the current configuration.
21448 # Compiler output produced by configure, useful for debugging
21449 # configure, is in config.log if it exists.
21452 ac_cs_recheck=false
21455 SHELL=\${CONFIG_SHELL-$SHELL}
21458 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21459 ## -------------------- ##
21460 ## M4sh Initialization. ##
21461 ## -------------------- ##
21463 # Be more Bourne compatible
21464 DUALCASE=1; export DUALCASE # for MKS sh
21465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21469 # is contrary to our usage. Disable this feature.
21470 alias -g '${1+"$@"}'='"$@"'
21471 setopt NO_GLOB_SUBST
21473 case `(set -o) 2>/dev/null` in #(
21485 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21486 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21489 # Prefer a ksh shell builtin over an external printf program on Solaris,
21490 # but without wasting forks for bash or zsh.
21491 if test -z "$BASH_VERSION$ZSH_VERSION" \
21492 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21493 as_echo='print -r --'
21494 as_echo_n='print -rn --'
21495 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21496 as_echo='printf %s\n'
21497 as_echo_n='printf %s'
21499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21500 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21501 as_echo_n='/usr/ucb/echo -n'
21503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21504 as_echo_n_body='eval
21508 expr "X$arg" : "X\\(.*\\)$as_nl";
21509 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21511 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21513 export as_echo_n_body
21514 as_echo_n='sh -c $as_echo_n_body as_echo'
21516 export as_echo_body
21517 as_echo='sh -c $as_echo_body as_echo'
21520 # The user is always right.
21521 if test "${PATH_SEPARATOR+set}" != set; then
21523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21531 # We need space, tab and new line, in precisely that order. Quoting is
21532 # there to prevent editors from complaining about space-tab.
21533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21534 # splitting by setting IFS to empty value.)
21537 # Find who we are. Look in the path if we contain no directory separator.
21539 *[\\/]* ) as_myself=$0 ;;
21540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21541 for as_dir in $PATH
21544 test -z "$as_dir" && as_dir=.
21545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21551 # We did not find ourselves, most probably we were run as `sh COMMAND'
21552 # in which case we are not to be found in the path.
21553 if test "x$as_myself" = x; then
21556 if test ! -f "$as_myself"; then
21557 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21561 # Unset variables that we do not need and which cause bugs (e.g. in
21562 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21563 # suppresses any "Segmentation fault" message there. '((' could
21564 # trigger a bug in pdksh 5.2.14.
21565 for as_var in BASH_ENV ENV MAIL MAILPATH
21566 do eval test x\${$as_var+set} = xset \
21567 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21583 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21584 # ----------------------------------------
21585 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21586 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21587 # script with STATUS, using 1 if that was 0.
21590 as_status=$1; test $as_status -eq 0 && as_status=1
21592 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21593 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21595 $as_echo "$as_me: error: $2" >&2
21596 as_fn_exit $as_status
21600 # as_fn_set_status STATUS
21601 # -----------------------
21602 # Set $? to STATUS, without forking.
21603 as_fn_set_status ()
21606 } # as_fn_set_status
21608 # as_fn_exit STATUS
21609 # -----------------
21610 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21614 as_fn_set_status $1
21620 # Portably unset VAR.
21623 { eval $1=; unset $1;}
21625 as_unset=as_fn_unset
21626 # as_fn_append VAR VALUE
21627 # ----------------------
21628 # Append the text in VALUE to the end of the definition contained in VAR. Take
21629 # advantage of any shell optimizations that allow amortized linear growth over
21630 # repeated appends, instead of the typical quadratic growth present in naive
21632 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21633 eval 'as_fn_append ()
21644 # as_fn_arith ARG...
21645 # ------------------
21646 # Perform arithmetic evaluation on the ARGs, and store the result in the
21647 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21648 # must be portable across $(()) and expr.
21649 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21650 eval 'as_fn_arith ()
21657 as_val=`expr "$@" || test $? -eq 1`
21662 if expr a : '\(a\)' >/dev/null 2>&1 &&
21663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21670 as_basename=basename
21675 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21681 as_me=`$as_basename -- "$0" ||
21682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21683 X"$0" : 'X\(//\)$' \| \
21684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21686 sed '/^.*\/\([^/][^/]*\)\/*$/{
21700 # Avoid depending upon Character Ranges.
21701 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21702 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21703 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21704 as_cr_digits='0123456789'
21705 as_cr_alnum=$as_cr_Letters$as_cr_digits
21707 ECHO_C= ECHO_N= ECHO_T=
21708 case `echo -n x` in #(((((
21710 case `echo 'xy\c'` in
21711 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21713 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21720 rm -f conf$$ conf$$.exe conf$$.file
21721 if test -d conf$$.dir; then
21722 rm -f conf$$.dir/conf$$.file
21725 mkdir conf$$.dir 2>/dev/null
21727 if (echo >conf$$.file) 2>/dev/null; then
21728 if ln -s conf$$.file conf$$ 2>/dev/null; then
21730 # ... but there are two gotchas:
21731 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21732 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21733 # In both cases, we have to default to `cp -p'.
21734 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21736 elif ln conf$$.file conf$$ 2>/dev/null; then
21744 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21745 rmdir conf$$.dir 2>/dev/null
21750 # Create "$as_dir" as a directory, including parents if necessary.
21755 -*) as_dir=./$as_dir;;
21757 test -d "$as_dir" || eval $as_mkdir_p || {
21761 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21762 *) as_qdir=$as_dir;;
21764 as_dirs="'$as_qdir' $as_dirs"
21765 as_dir=`$as_dirname -- "$as_dir" ||
21766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21767 X"$as_dir" : 'X\(//\)[^/]' \| \
21768 X"$as_dir" : 'X\(//\)$' \| \
21769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21770 $as_echo X"$as_dir" |
21771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21775 /^X\(\/\/\)[^/].*/{
21788 test -d "$as_dir" && break
21790 test -z "$as_dirs" || eval "mkdir $as_dirs"
21791 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21795 if mkdir -p . 2>/dev/null; then
21796 as_mkdir_p='mkdir -p "$as_dir"'
21798 test -d ./-p && rmdir ./-p
21802 if test -x / >/dev/null 2>&1; then
21803 as_test_x='test -x'
21805 if ls -dL / >/dev/null 2>&1; then
21812 if test -d "$1"; then
21818 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21819 ???[sx]*):;;*)false;;esac;fi
21823 as_executable_p=$as_test_x
21825 # Sed expression to map a string onto a valid CPP name.
21826 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21828 # Sed expression to map a string onto a valid variable name.
21829 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21833 ## ----------------------------------- ##
21834 ## Main body of $CONFIG_STATUS script. ##
21835 ## ----------------------------------- ##
21837 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21840 # Save the log message, to keep $0 and so on meaningful, and to
21841 # report actual input values of CONFIG_FILES etc. instead of their
21842 # values after options handling.
21844 This file was extended by GNU Libidn $as_me 1.15, which was
21845 generated by GNU Autoconf 2.67. Invocation command line was
21847 CONFIG_FILES = $CONFIG_FILES
21848 CONFIG_HEADERS = $CONFIG_HEADERS
21849 CONFIG_LINKS = $CONFIG_LINKS
21850 CONFIG_COMMANDS = $CONFIG_COMMANDS
21853 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21858 case $ac_config_files in *"
21859 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21862 case $ac_config_headers in *"
21863 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21868 # Files that config.status was made for.
21869 config_files="$ac_config_files"
21870 config_headers="$ac_config_headers"
21871 config_links="$ac_config_links"
21872 config_commands="$ac_config_commands"
21876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21878 \`$as_me' instantiates files and other configuration actions
21879 from templates according to the current configuration. Unless the files
21880 and actions are specified as TAGs, all are instantiated by default.
21882 Usage: $0 [OPTION]... [TAG]...
21884 -h, --help print this help, then exit
21885 -V, --version print version number and configuration settings, then exit
21886 --config print configuration, then exit
21887 -q, --quiet, --silent
21888 do not print progress messages
21889 -d, --debug don't remove temporary files
21890 --recheck update $as_me by reconfiguring in the same conditions
21891 --file=FILE[:TEMPLATE]
21892 instantiate the configuration file FILE
21893 --header=FILE[:TEMPLATE]
21894 instantiate the configuration header FILE
21896 Configuration files:
21899 Configuration headers:
21902 Configuration links:
21905 Configuration commands:
21908 Report bugs to <bug-libidn@gnu.org>.
21909 GNU Libidn home page: <http://www.gnu.org/software/libidn/>.
21910 General help using GNU software: <http://www.gnu.org/gethelp/>."
21913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21914 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21916 GNU Libidn config.status 1.15
21917 configured by $0, generated by GNU Autoconf 2.67,
21918 with options \\"\$ac_cs_config\\"
21920 Copyright (C) 2010 Free Software Foundation, Inc.
21921 This config.status script is free software; the Free Software Foundation
21922 gives unlimited permission to copy, distribute and modify it."
21929 test -n "\$AWK" || AWK=awk
21932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21933 # The default lists apply if the user does not specify any file.
21939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21940 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21956 # Handling of the options.
21957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21959 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21960 $as_echo "$ac_cs_version"; exit ;;
21961 --config | --confi | --conf | --con | --co | --c )
21962 $as_echo "$ac_cs_config"; exit ;;
21963 --debug | --debu | --deb | --de | --d | -d )
21965 --file | --fil | --fi | --f )
21968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21969 '') as_fn_error $? "missing file argument" ;;
21971 as_fn_append CONFIG_FILES " '$ac_optarg'"
21972 ac_need_defaults=false;;
21973 --header | --heade | --head | --hea )
21976 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21978 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21979 ac_need_defaults=false;;
21981 # Conflict between --help and --header
21982 as_fn_error $? "ambiguous option: \`$1'
21983 Try \`$0 --help' for more information.";;
21984 --help | --hel | -h )
21985 $as_echo "$ac_cs_usage"; exit ;;
21986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21987 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21990 # This is an error.
21991 -*) as_fn_error $? "unrecognized option: \`$1'
21992 Try \`$0 --help' for more information." ;;
21994 *) as_fn_append ac_config_targets " $1"
21995 ac_need_defaults=false ;;
22001 ac_configure_extra_args=
22003 if $ac_cs_silent; then
22005 ac_configure_extra_args="$ac_configure_extra_args --silent"
22009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22010 if \$ac_cs_recheck; then
22011 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22013 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22014 CONFIG_SHELL='$SHELL'
22015 export CONFIG_SHELL
22020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22025 ## Running $as_me. ##
22031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22035 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22038 # The HP-UX ksh and POSIX shell print the target directory to stdout
22039 # if CDPATH is set.
22040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22042 sed_quote_subst='$sed_quote_subst'
22043 double_quote_subst='$double_quote_subst'
22044 delay_variable_subst='$delay_variable_subst'
22045 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
22046 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22047 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22048 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22049 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22050 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22051 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22052 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22053 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22054 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22055 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22056 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22057 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22058 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22059 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22060 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22061 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22062 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22063 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22064 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22065 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22066 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22067 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22068 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22069 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22070 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22071 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22072 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22073 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22074 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22075 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22076 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22077 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22078 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22079 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22080 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22081 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22082 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22083 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22084 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22085 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22086 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22087 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22088 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22089 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22090 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22091 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
22092 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22093 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22094 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22095 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22096 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22097 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22098 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22099 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22100 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22101 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22102 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22103 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22104 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22105 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22106 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22107 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22108 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22109 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22110 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22111 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22112 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22113 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22114 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22115 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22116 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22117 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22118 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22119 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22120 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22121 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22122 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22123 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22124 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22125 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22126 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22127 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22128 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22129 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22130 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22131 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22132 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22133 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22134 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22135 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22136 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22137 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22138 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22139 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22140 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22141 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22142 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22143 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22144 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22145 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22146 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22147 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22148 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22149 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22150 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22151 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22152 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22153 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22154 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22155 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22156 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22157 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22158 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22159 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22160 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22161 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22162 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22163 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22164 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22165 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22166 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22167 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22168 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22169 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22170 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22171 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22172 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22173 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22174 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22175 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22176 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22177 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22178 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22179 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22180 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22181 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22182 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22183 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22184 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22185 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22186 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22187 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22188 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22189 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22190 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22191 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22192 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22193 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22194 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22195 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22196 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22197 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22198 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22199 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22200 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22201 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22202 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22203 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22204 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22205 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22208 LTCFLAGS='$LTCFLAGS'
22209 compiler='$compiler_DEFAULT'
22211 # Quote evaled strings.
22222 deplibs_check_method \
22231 lt_cv_sys_global_symbol_pipe \
22232 lt_cv_sys_global_symbol_to_cdecl \
22233 lt_cv_sys_global_symbol_to_c_name_address \
22234 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22237 lt_prog_compiler_no_builtin_flag \
22238 lt_prog_compiler_wl \
22239 lt_prog_compiler_pic \
22240 lt_prog_compiler_static \
22241 lt_cv_prog_compiler_c_o \
22249 export_dynamic_flag_spec \
22250 whole_archive_flag_spec \
22251 compiler_needs_object \
22253 allow_undefined_flag \
22254 no_undefined_flag \
22255 hardcode_libdir_flag_spec \
22256 hardcode_libdir_flag_spec_ld \
22257 hardcode_libdir_separator \
22262 variables_saved_for_relink \
22264 library_names_spec \
22271 lt_prog_compiler_no_builtin_flag_GCJ \
22272 lt_prog_compiler_wl_GCJ \
22273 lt_prog_compiler_pic_GCJ \
22274 lt_prog_compiler_static_GCJ \
22275 lt_cv_prog_compiler_c_o_GCJ \
22276 export_dynamic_flag_spec_GCJ \
22277 whole_archive_flag_spec_GCJ \
22278 compiler_needs_object_GCJ \
22280 allow_undefined_flag_GCJ \
22281 no_undefined_flag_GCJ \
22282 hardcode_libdir_flag_spec_GCJ \
22283 hardcode_libdir_flag_spec_ld_GCJ \
22284 hardcode_libdir_separator_GCJ \
22285 fix_srcfile_path_GCJ \
22286 exclude_expsyms_GCJ \
22287 include_expsyms_GCJ \
22288 file_list_spec_GCJ; do
22289 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22290 *[\\\\\\\`\\"\\\$]*)
22291 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22294 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22299 # Double-quote double-evaled strings.
22300 for var in reload_cmds \
22301 old_postinstall_cmds \
22302 old_postuninstall_cmds \
22304 extract_expsyms_cmds \
22305 old_archive_from_new_cmds \
22306 old_archive_from_expsyms_cmds \
22308 archive_expsym_cmds \
22310 module_expsym_cmds \
22311 export_symbols_cmds \
22314 postuninstall_cmds \
22316 sys_lib_search_path_spec \
22317 sys_lib_dlsearch_path_spec \
22318 old_archive_cmds_GCJ \
22319 old_archive_from_new_cmds_GCJ \
22320 old_archive_from_expsyms_cmds_GCJ \
22322 archive_expsym_cmds_GCJ \
22324 module_expsym_cmds_GCJ \
22325 export_symbols_cmds_GCJ \
22326 prelink_cmds_GCJ; do
22327 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22328 *[\\\\\\\`\\"\\\$]*)
22329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22337 # Fix-up fallback echo if it was mangled by the above quoting rules.
22339 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22343 ac_aux_dir='$ac_aux_dir'
22344 xsi_shell='$xsi_shell'
22345 lt_shell_append='$lt_shell_append'
22347 # See if we are running on zsh, and set the options which allow our
22348 # commands through without removal of \ escapes INIT.
22349 if test -n "\${ZSH_VERSION+set}" ; then
22350 setopt NO_GLOB_SUBST
22356 TIMESTAMP='$TIMESTAMP'
22364 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22365 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22366 # from automake < 1.5.
22367 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22368 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22369 LINGUAS="${LINGUAS-%UNSET%}"
22371 GNUmakefile=$GNUmakefile
22375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22377 # Handling of arguments.
22378 for ac_config_target in $ac_config_targets
22380 case $ac_config_target in
22381 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22382 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22383 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22384 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22385 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:build-aux/csharpcomp.sh.in" ;;
22386 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
22387 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22388 "libidn.pc") CONFIG_FILES="$CONFIG_FILES libidn.pc" ;;
22389 "csharp/Makefile") CONFIG_FILES="$CONFIG_FILES csharp/Makefile" ;;
22390 "contrib/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES contrib/doxygen/Doxyfile" ;;
22391 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22392 "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
22393 "doc/java/Makefile") CONFIG_FILES="$CONFIG_FILES doc/java/Makefile" ;;
22394 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
22395 "doc/specifications/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specifications/Makefile" ;;
22396 "doc/tld/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tld/Makefile" ;;
22397 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22398 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
22399 "gltests/Makefile") CONFIG_FILES="$CONFIG_FILES gltests/Makefile" ;;
22400 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
22401 "java/gnu/Makefile") CONFIG_FILES="$CONFIG_FILES java/gnu/Makefile" ;;
22402 "java/gnu/inet/Makefile") CONFIG_FILES="$CONFIG_FILES java/gnu/inet/Makefile" ;;
22403 "java/gnu/inet/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES java/gnu/inet/encoding/Makefile" ;;
22404 "java/misc/Makefile") CONFIG_FILES="$CONFIG_FILES java/misc/Makefile" ;;
22405 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22406 "lib/gl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gl/Makefile" ;;
22407 "lib/gltests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gltests/Makefile" ;;
22408 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22409 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22410 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22412 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
22417 # If the user did not use the arguments to specify the items to instantiate,
22418 # then the envvar interface is used. Set only those that are not.
22419 # We use the long form for the default assignment because of an extremely
22420 # bizarre bug on SunOS 4.1.3.
22421 if $ac_need_defaults; then
22422 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22423 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22424 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22428 # Have a temporary directory for convenience. Make it in the build tree
22429 # simply because there is no reason against having it here, and in addition,
22430 # creating and moving files from /tmp can sometimes cause problems.
22431 # Hook for its removal unless debugging.
22432 # Note that there is a small window in which the directory will not be cleaned:
22433 # after its creation but before its name has been assigned to `$tmp'.
22437 trap 'exit_status=$?
22438 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22440 trap 'as_fn_exit 1' 1 2 13 15
22442 # Create a (secure) tmp directory for tmp files.
22445 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22446 test -n "$tmp" && test -d "$tmp"
22449 tmp=./conf$$-$RANDOM
22450 (umask 077 && mkdir "$tmp")
22451 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22453 # Set up the scripts for CONFIG_FILES section.
22454 # No need to generate them if there are no CONFIG_FILES.
22455 # This happens for instance with `./config.status config.h'.
22456 if test -n "$CONFIG_FILES"; then
22459 ac_cr=`echo X | tr X '\015'`
22460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22461 # But we know of no other shell where ac_cr would be empty at this
22462 # point, so we can use a bashism as a fallback.
22463 if test "x$ac_cr" = x; then
22464 eval ac_cr=\$\'\\r\'
22466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22470 ac_cs_awk_cr=$ac_cr
22473 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22478 echo "cat >conf$$subs.awk <<_ACEOF" &&
22479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22481 } >conf$$subs.sh ||
22482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22485 for ac_last_try in false false false false false :; do
22486 . ./conf$$subs.sh ||
22487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22490 if test $ac_delim_n = $ac_delim_num; then
22492 elif $ac_last_try; then
22493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22498 rm -f conf$$subs.sh
22500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22501 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22505 s/^/S["/; s/!.*/"]=/
22515 s/\(.\{148\}\)..*/\1/
22517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22529 s/\(.\{148\}\)..*/\1/
22531 s/["\\]/\\&/g; s/^/"/; s/$/"/
22535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22540 ' <conf$$subs.awk | sed '
22545 ' >>$CONFIG_STATUS || ac_write_fail=1
22546 rm -f conf$$subs.awk
22547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22549 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22550 for (key in S) S_is_set[key] = 1
22556 nfields = split(line, field, "@")
22558 len = length(field[1])
22559 for (i = 2; i < nfields; i++) {
22561 keylen = length(key)
22562 if (S_is_set[key]) {
22564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22565 len += length(value) + length(field[++i])
22576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22581 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22587 # trailing colons and then remove the whole line if VPATH becomes empty
22588 # (actually we leave an empty line to preserve line numbers).
22589 if test "x$srcdir" = x.; then
22590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22609 fi # test -n "$CONFIG_FILES"
22611 # Set up the scripts for CONFIG_HEADERS section.
22612 # No need to generate them if there are no CONFIG_HEADERS.
22613 # This happens for instance with `./config.status Makefile'.
22614 if test -n "$CONFIG_HEADERS"; then
22615 cat >"$tmp/defines.awk" <<\_ACAWK ||
22619 # Transform confdefs.h into an awk script `defines.awk', embedded as
22620 # here-document in config.status, that substitutes the proper values into
22621 # config.h.in to produce config.h.
22623 # Create a delimiter string that does not exist in confdefs.h, to ease
22624 # handling of long lines.
22626 for ac_last_try in false false :; do
22627 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22628 if test -z "$ac_t"; then
22630 elif $ac_last_try; then
22631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22637 # For the awk script, D is an array of macro values keyed by name,
22638 # likewise P contains macro parameters if any. Preserve backslash
22639 # newline sequences.
22641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22643 s/.\{148\}/&'"$ac_delim"'/g
22646 s/^[ ]*#[ ]*define[ ][ ]*/ /
22653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22660 D["\1"]=" \3\\\\\\n"\\/p
22662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22667 s/.\{148\}/&'"$ac_delim"'/g
22672 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22677 ' <confdefs.h | sed '
22678 s/'"$ac_delim"'/"\\\
22679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22682 for (key in D) D_is_set[key] = 1
22685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22687 split(line, arg, " ")
22688 if (arg[1] == "#") {
22692 defundef = substr(arg[1], 2)
22695 split(mac1, mac2, "(") #)
22697 prefix = substr(line, 1, index(line, defundef) - 1)
22698 if (D_is_set[macro]) {
22699 # Preserve the white space surrounding the "#".
22700 print prefix "define", macro P[macro] D[macro]
22703 # Replace #undef with comments. This is necessary, for example,
22704 # in the case of _POSIX_SOURCE, which is predefined and required
22705 # on some systems where configure will not decide to define it.
22706 if (defundef == "undef") {
22707 print "/*", prefix defundef, macro, "*/"
22715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22717 fi # test -n "$CONFIG_HEADERS"
22720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
22725 :[FHLC]) ac_mode=$ac_tag; continue;;
22727 case $ac_mode$ac_tag in
22729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
22730 :[FH]-) ac_tag=-:-;;
22731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22748 -) ac_f="$tmp/stdin";;
22749 *) # Look for the file first in the build tree, then in the source tree
22750 # (if the path is not absolute). The absolute path cannot be DOS-style,
22751 # because $ac_f cannot contain `:'.
22755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
22759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22760 as_fn_append ac_file_inputs " '$ac_f'"
22763 # Let's still pretend it is `configure' which instantiates (i.e., don't
22764 # use $as_me), people would be surprised to read:
22765 # /* config.h. Generated by config.status. */
22766 configure_input='Generated from '`
22767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22769 if test x"$ac_file" != x-; then
22770 configure_input="$ac_file. $configure_input"
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22772 $as_echo "$as_me: creating $ac_file" >&6;}
22774 # Neutralize special characters interpreted by sed in replacement strings.
22775 case $configure_input in #(
22776 *\&* | *\|* | *\\* )
22777 ac_sed_conf_input=`$as_echo "$configure_input" |
22778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22779 *) ac_sed_conf_input=$configure_input;;
22783 *:-:* | *:-) cat >"$tmp/stdin" \
22784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22789 ac_dir=`$as_dirname -- "$ac_file" ||
22790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791 X"$ac_file" : 'X\(//\)[^/]' \| \
22792 X"$ac_file" : 'X\(//\)$' \| \
22793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22794 $as_echo X"$ac_file" |
22795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22799 /^X\(\/\/\)[^/].*/{
22812 as_dir="$ac_dir"; as_fn_mkdir_p
22816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22819 # A ".." for each directory in $ac_dir_suffix.
22820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22821 case $ac_top_builddir_sub in
22822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22826 ac_abs_top_builddir=$ac_pwd
22827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22828 # for backward compatibility:
22829 ac_top_builddir=$ac_top_build_prefix
22832 .) # We are building in place.
22834 ac_top_srcdir=$ac_top_builddir_sub
22835 ac_abs_top_srcdir=$ac_pwd ;;
22836 [\\/]* | ?:[\\/]* ) # Absolute name.
22837 ac_srcdir=$srcdir$ac_dir_suffix;
22838 ac_top_srcdir=$srcdir
22839 ac_abs_top_srcdir=$srcdir ;;
22840 *) # Relative name.
22841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22842 ac_top_srcdir=$ac_top_build_prefix$srcdir
22843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22858 ac_MKDIR_P=$MKDIR_P
22860 [\\/$]* | ?:[\\/]* ) ;;
22861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22866 # If the template does not know about datarootdir, expand it.
22867 # FIXME: This hack should be removed a few years after 2.60.
22868 ac_datarootdir_hack=; ac_datarootdir_seen=
22879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22880 *datarootdir*) ac_datarootdir_seen=yes;;
22881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22886 ac_datarootdir_hack='
22887 s&@datadir@&$datadir&g
22888 s&@docdir@&$docdir&g
22889 s&@infodir@&$infodir&g
22890 s&@localedir@&$localedir&g
22891 s&@mandir@&$mandir&g
22892 s&\\\${datarootdir}&$datarootdir&g' ;;
22896 # Neutralize VPATH when `$srcdir' = `.'.
22897 # Shell code in configure.ac might set extrasub.
22898 # FIXME: do we really want to maintain this feature?
22899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22900 ac_sed_extra="$ac_vpsub
22903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22906 s|@configure_input@|$ac_sed_conf_input|;t t
22907 s&@top_builddir@&$ac_top_builddir_sub&;t t
22908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22909 s&@srcdir@&$ac_srcdir&;t t
22910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22911 s&@top_srcdir@&$ac_top_srcdir&;t t
22912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22913 s&@builddir@&$ac_builddir&;t t
22914 s&@abs_builddir@&$ac_abs_builddir&;t t
22915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22916 s&@INSTALL@&$ac_INSTALL&;t t
22917 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22918 $ac_datarootdir_hack
22920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22924 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22927 which seems to be undefined. Please make sure it is defined" >&5
22928 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22929 which seems to be undefined. Please make sure it is defined" >&2;}
22933 -) cat "$tmp/out" && rm -f "$tmp/out";;
22934 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22942 if test x"$ac_file" != x-; then
22944 $as_echo "/* $configure_input */" \
22945 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22946 } >"$tmp/config.h" \
22947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22948 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22953 mv "$tmp/config.h" "$ac_file" \
22954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22957 $as_echo "/* $configure_input */" \
22958 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22959 || as_fn_error $? "could not create -" "$LINENO" 5
22961 # Compute "$ac_file"'s index in $config_headers.
22964 for _am_header in $config_headers :; do
22965 case $_am_header in
22966 $_am_arg | $_am_arg:* )
22969 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22972 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22973 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22974 X"$_am_arg" : 'X\(//\)[^/]' \| \
22975 X"$_am_arg" : 'X\(//\)$' \| \
22976 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22977 $as_echo X"$_am_arg" |
22978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22982 /^X\(\/\/\)[^/].*/{
22994 s/.*/./; q'`/stamp-h$_am_stamp_count
23001 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
23004 # Prefer the file from the source tree if names are identical.
23005 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
23006 ac_source=$srcdir/$ac_source
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
23010 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
23012 if test ! -r "$ac_source"; then
23013 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
23017 # Try a relative symlink, then a hard link, then a copy.
23019 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
23020 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
23022 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
23023 ln "$ac_source" "$ac_file" 2>/dev/null ||
23024 cp -p "$ac_source" "$ac_file" ||
23025 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
23028 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23029 $as_echo "$as_me: executing $ac_file commands" >&6;}
23034 case $ac_file$ac_mode in
23035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23036 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23037 # are listed without --file. Let's play safe and only enable the eval
23038 # if we detect the quoting.
23039 case $CONFIG_FILES in
23040 *\'*) eval set x "$CONFIG_FILES" ;;
23041 *) set x $CONFIG_FILES ;;
23046 # Strip MF so we end up with the name of the file.
23047 mf=`echo "$mf" | sed -e 's/:.*$//'`
23048 # Check whether this is an Automake generated Makefile or not.
23049 # We used to match only the files named `Makefile.in', but
23050 # some people rename them; so instead we look at the file content.
23051 # Grep'ing the first line is not enough: some people post-process
23052 # each Makefile.in and add a new line on top of each file to say so.
23053 # Grep'ing the whole file is not good either: AIX grep has a line
23054 # limit of 2048, but all sed's we know have understand at least 4000.
23055 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23056 dirpart=`$as_dirname -- "$mf" ||
23057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058 X"$mf" : 'X\(//\)[^/]' \| \
23059 X"$mf" : 'X\(//\)$' \| \
23060 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23066 /^X\(\/\/\)[^/].*/{
23082 # Extract the definition of DEPDIR, am__include, and am__quote
23083 # from the Makefile without running `make'.
23084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23085 test -z "$DEPDIR" && continue
23086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23087 test -z "am__include" && continue
23088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23089 # When using ansi2knr, U may be empty or an underscore; expand it
23090 U=`sed -n 's/^U = //p' < "$mf"`
23091 # Find all dependency output files, they are included files with
23092 # $(DEPDIR) in their names. We invoke sed twice because it is the
23093 # simplest approach to changing $(DEPDIR) to its actual value in the
23095 for file in `sed -n "
23096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23098 # Make sure the directory exists.
23099 test -f "$dirpart/$file" && continue
23100 fdir=`$as_dirname -- "$file" ||
23101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23102 X"$file" : 'X\(//\)[^/]' \| \
23103 X"$file" : 'X\(//\)$' \| \
23104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23105 $as_echo X"$file" |
23106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23110 /^X\(\/\/\)[^/].*/{
23123 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23124 # echo "creating $dirpart/$file"
23125 echo '# dummy' > "$dirpart/$file"
23132 # See if we are running on zsh, and set the options which allow our
23133 # commands through without removal of \ escapes.
23134 if test -n "${ZSH_VERSION+set}" ; then
23135 setopt NO_GLOB_SUBST
23138 cfgfile="${ofile}T"
23139 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23142 cat <<_LT_EOF >> "$cfgfile"
23145 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23146 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23148 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23150 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23151 # 2006, 2007, 2008 Free Software Foundation, Inc.
23152 # Written by Gordon Matzigkeit, 1996
23154 # This file is part of GNU Libtool.
23156 # GNU Libtool is free software; you can redistribute it and/or
23157 # modify it under the terms of the GNU General Public License as
23158 # published by the Free Software Foundation; either version 2 of
23159 # the License, or (at your option) any later version.
23161 # As a special exception to the GNU General Public License,
23162 # if you distribute this file as part of a program or library that
23163 # is built using GNU Libtool, you may include this file under the
23164 # same distribution terms that you use for the rest of that program.
23166 # GNU Libtool is distributed in the hope that it will be useful,
23167 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23169 # GNU General Public License for more details.
23171 # You should have received a copy of the GNU General Public License
23172 # along with GNU Libtool; see the file COPYING. If not, a copy
23173 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23174 # obtained by writing to the Free Software Foundation, Inc.,
23175 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23178 # The names of the tagged configurations supported by this script.
23179 available_tags="GCJ "
23181 # ### BEGIN LIBTOOL CONFIG
23183 # Assembler program.
23186 # DLL creation program.
23189 # Object dumper program.
23192 # Which release of libtool.m4 was used?
23193 macro_version=$macro_version
23194 macro_revision=$macro_revision
23196 # Whether or not to build shared libraries.
23197 build_libtool_libs=$enable_shared
23199 # Whether or not to build static libraries.
23200 build_old_libs=$enable_static
23202 # What type of objects to build.
23205 # Whether or not to optimize for fast installation.
23206 fast_install=$enable_fast_install
23209 host_alias=$host_alias
23213 # The build system.
23214 build_alias=$build_alias
23218 # A sed program that does not truncate output.
23221 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23222 Xsed="\$SED -e 1s/^X//"
23224 # A grep program that handles long lines.
23230 # A literal string matcher.
23233 # A BSD- or MS-compatible name lister.
23236 # Whether we need soft or hard links.
23239 # What is the maximum length of a command?
23240 max_cmd_len=$max_cmd_len
23242 # Object file suffix (normally "o").
23245 # Executable file suffix (normally "").
23248 # whether the shell understands "unset".
23251 # turn spaces into newlines.
23254 # turn newlines into spaces.
23257 # How to create reloadable object files.
23258 reload_flag=$lt_reload_flag
23259 reload_cmds=$lt_reload_cmds
23261 # Method to check whether dependent libraries are shared objects.
23262 deplibs_check_method=$lt_deplibs_check_method
23264 # Command to use when deplibs_check_method == "file_magic".
23265 file_magic_cmd=$lt_file_magic_cmd
23269 AR_FLAGS=$lt_AR_FLAGS
23271 # A symbol stripping program.
23274 # Commands used to install an old-style archive.
23276 old_postinstall_cmds=$lt_old_postinstall_cmds
23277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23282 # LTCC compiler flags.
23283 LTCFLAGS=$lt_CFLAGS
23285 # Take the output of nm and produce a listing of raw symbols and C names.
23286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23288 # Transform the output of nm in a proper C declaration.
23289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23291 # Transform the output of nm in a C name address pair.
23292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23294 # Transform the output of nm in a C name address pair when lib prefix is needed.
23295 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23297 # The name of the directory that contains temporary libtool files.
23300 # Shell to use when invoking shell scripts.
23303 # An echo program that does not interpret backslashes.
23306 # Used to examine libraries when file_magic_cmd begins with "file".
23307 MAGIC_CMD=$MAGIC_CMD
23309 # Must we lock files when doing compilation?
23310 need_locks=$lt_need_locks
23312 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23313 DSYMUTIL=$lt_DSYMUTIL
23315 # Tool to change global to local symbols on Mac OS X.
23318 # Tool to manipulate fat objects and archives on Mac OS X.
23321 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23324 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23325 OTOOL64=$lt_OTOOL64
23327 # Old archive suffix (normally "a").
23330 # Shared library suffix (normally ".so").
23331 shrext_cmds=$lt_shrext_cmds
23333 # The commands to extract the exported symbol list from a shared archive.
23334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23336 # Variables whose values should be saved in libtool wrapper scripts and
23337 # restored at link time.
23338 variables_saved_for_relink=$lt_variables_saved_for_relink
23340 # Do we need the "lib" prefix for modules?
23341 need_lib_prefix=$need_lib_prefix
23343 # Do we need a version for libraries?
23344 need_version=$need_version
23346 # Library versioning type.
23347 version_type=$version_type
23349 # Shared library runtime path variable.
23350 runpath_var=$runpath_var
23352 # Shared library path variable.
23353 shlibpath_var=$shlibpath_var
23355 # Is shlibpath searched before the hard-coded library search path?
23356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23358 # Format of library name prefix.
23359 libname_spec=$lt_libname_spec
23361 # List of archive names. First name is the real one, the rest are links.
23362 # The last name is the one that the linker finds with -lNAME
23363 library_names_spec=$lt_library_names_spec
23365 # The coded name of the library, if different from the real name.
23366 soname_spec=$lt_soname_spec
23368 # Command to use after installation of a shared archive.
23369 postinstall_cmds=$lt_postinstall_cmds
23371 # Command to use after uninstallation of a shared archive.
23372 postuninstall_cmds=$lt_postuninstall_cmds
23374 # Commands used to finish a libtool library installation in a directory.
23375 finish_cmds=$lt_finish_cmds
23377 # As "finish_cmds", except a single script fragment to be evaled but
23379 finish_eval=$lt_finish_eval
23381 # Whether we should hardcode library paths into libraries.
23382 hardcode_into_libs=$hardcode_into_libs
23384 # Compile-time system search path for libraries.
23385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23387 # Run-time system search path for libraries.
23388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23390 # Whether dlopen is supported.
23391 dlopen_support=$enable_dlopen
23393 # Whether dlopen of programs is supported.
23394 dlopen_self=$enable_dlopen_self
23396 # Whether dlopen of statically linked programs is supported.
23397 dlopen_self_static=$enable_dlopen_self_static
23399 # Commands to strip libraries.
23400 old_striplib=$lt_old_striplib
23401 striplib=$lt_striplib
23404 # The linker used to build libraries.
23407 # Commands used to build an old-style archive.
23408 old_archive_cmds=$lt_old_archive_cmds
23410 # A language specific compiler.
23413 # Is the compiler the GNU compiler?
23416 # Compiler flag to turn off builtin functions.
23417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23419 # How to pass a linker flag through the compiler.
23420 wl=$lt_lt_prog_compiler_wl
23422 # Additional compiler flags for building library objects.
23423 pic_flag=$lt_lt_prog_compiler_pic
23425 # Compiler flag to prevent dynamic linking.
23426 link_static_flag=$lt_lt_prog_compiler_static
23428 # Does compiler simultaneously support -c and -o options?
23429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23431 # Whether or not to add -lc for building shared libraries.
23432 build_libtool_need_lc=$archive_cmds_need_lc
23434 # Whether or not to disallow shared libs when runtime libs are static.
23435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23437 # Compiler flag to allow reflexive dlopens.
23438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23440 # Compiler flag to generate shared objects directly from archives.
23441 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23443 # Whether the compiler copes with passing no objects directly.
23444 compiler_needs_object=$lt_compiler_needs_object
23446 # Create an old-style archive from a shared archive.
23447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23449 # Create a temporary old-style archive to link instead of a shared archive.
23450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23452 # Commands used to build a shared archive.
23453 archive_cmds=$lt_archive_cmds
23454 archive_expsym_cmds=$lt_archive_expsym_cmds
23456 # Commands used to build a loadable module if different from building
23457 # a shared archive.
23458 module_cmds=$lt_module_cmds
23459 module_expsym_cmds=$lt_module_expsym_cmds
23461 # Whether we are building with GNU ld or not.
23462 with_gnu_ld=$lt_with_gnu_ld
23464 # Flag that allows shared libraries with undefined symbols to be built.
23465 allow_undefined_flag=$lt_allow_undefined_flag
23467 # Flag that enforces no undefined symbols.
23468 no_undefined_flag=$lt_no_undefined_flag
23470 # Flag to hardcode \$libdir into a binary during linking.
23471 # This must work even if \$libdir does not exist
23472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23474 # If ld is used when linking, flag to hardcode \$libdir into a binary
23475 # during linking. This must work even if \$libdir does not exist.
23476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23478 # Whether we need a single "-rpath" flag with a separated argument.
23479 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23481 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23482 # DIR into the resulting binary.
23483 hardcode_direct=$hardcode_direct
23485 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23486 # DIR into the resulting binary and the resulting library dependency is
23487 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23488 # library is relocated.
23489 hardcode_direct_absolute=$hardcode_direct_absolute
23491 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23492 # into the resulting binary.
23493 hardcode_minus_L=$hardcode_minus_L
23495 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23496 # into the resulting binary.
23497 hardcode_shlibpath_var=$hardcode_shlibpath_var
23499 # Set to "yes" if building a shared library automatically hardcodes DIR
23500 # into the library and all subsequent libraries and executables linked
23502 hardcode_automatic=$hardcode_automatic
23504 # Set to yes if linker adds runtime paths of dependent libraries
23505 # to runtime path list.
23506 inherit_rpath=$inherit_rpath
23508 # Whether libtool must link a program against all its dependency libraries.
23509 link_all_deplibs=$link_all_deplibs
23511 # Fix the shell variable \$srcfile for the compiler.
23512 fix_srcfile_path=$lt_fix_srcfile_path
23514 # Set to "yes" if exported symbols are required.
23515 always_export_symbols=$always_export_symbols
23517 # The commands to list exported symbols.
23518 export_symbols_cmds=$lt_export_symbols_cmds
23520 # Symbols that should not be listed in the preloaded symbols.
23521 exclude_expsyms=$lt_exclude_expsyms
23523 # Symbols that must always be exported.
23524 include_expsyms=$lt_include_expsyms
23526 # Commands necessary for linking programs (against libraries) with templates.
23527 prelink_cmds=$lt_prelink_cmds
23529 # Specify filename containing input files.
23530 file_list_spec=$lt_file_list_spec
23532 # How to hardcode a shared library path into an executable.
23533 hardcode_action=$hardcode_action
23535 # ### END LIBTOOL CONFIG
23541 cat <<\_LT_EOF >> "$cfgfile"
23542 # AIX sometimes has problems with the GCC collect2 program. For some
23543 # reason, if we set the COLLECT_NAMES environment variable, the problems
23544 # vanish in a puff of smoke.
23545 if test "X${COLLECT_NAMES+set}" != Xset; then
23547 export COLLECT_NAMES
23554 ltmain="$ac_aux_dir/ltmain.sh"
23557 # We use sed instead of cat because bash on DJGPP gets confused if
23558 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23559 # text mode, it properly converts lines to CR/LF. This bash problem
23560 # is reportedly fixed, but why not run on old versions too?
23561 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23562 || (rm -f "$cfgfile"; exit 1)
23566 cat << \_LT_EOF >> "$cfgfile"
23568 # func_dirname file append nondir_replacement
23569 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23570 # otherwise set result to NONDIR_REPLACEMENT.
23574 */*) func_dirname_result="${1%/*}${2}" ;;
23575 * ) func_dirname_result="${3}" ;;
23579 # func_basename file
23582 func_basename_result="${1##*/}"
23585 # func_dirname_and_basename file append nondir_replacement
23586 # perform func_basename and func_dirname in a single function
23588 # dirname: Compute the dirname of FILE. If nonempty,
23589 # add APPEND to the result, otherwise set result
23590 # to NONDIR_REPLACEMENT.
23591 # value returned in "$func_dirname_result"
23592 # basename: Compute filename of FILE.
23593 # value retuned in "$func_basename_result"
23594 # Implementation must be kept synchronized with func_dirname
23595 # and func_basename. For efficiency, we do not delegate to
23596 # those functions but instead duplicate the functionality here.
23597 func_dirname_and_basename ()
23600 */*) func_dirname_result="${1%/*}${2}" ;;
23601 * ) func_dirname_result="${3}" ;;
23603 func_basename_result="${1##*/}"
23606 # func_stripname prefix suffix name
23607 # strip PREFIX and SUFFIX off of NAME.
23608 # PREFIX and SUFFIX must not contain globbing or regex special
23609 # characters, hashes, percent signs, but SUFFIX may contain a leading
23610 # dot (in which case that matches only a dot).
23613 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23614 # positional parameters, so assign one to ordinary parameter first.
23615 func_stripname_result=${3}
23616 func_stripname_result=${func_stripname_result#"${1}"}
23617 func_stripname_result=${func_stripname_result%"${2}"}
23623 func_opt_split_opt=${1%%=*}
23624 func_opt_split_arg=${1#*=}
23631 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23632 *) func_lo2o_result=${1} ;;
23636 # func_xform libobj-or-source
23639 func_xform_result=${1%.*}.lo
23642 # func_arith arithmetic-term...
23645 func_arith_result=$(( $* ))
23649 # STRING may not start with a hyphen.
23652 func_len_result=${#1}
23657 *) # Bourne compatible functions.
23658 cat << \_LT_EOF >> "$cfgfile"
23660 # func_dirname file append nondir_replacement
23661 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23662 # otherwise set result to NONDIR_REPLACEMENT.
23665 # Extract subdirectory from the argument.
23666 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23667 if test "X$func_dirname_result" = "X${1}"; then
23668 func_dirname_result="${3}"
23670 func_dirname_result="$func_dirname_result${2}"
23674 # func_basename file
23677 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23681 # func_stripname prefix suffix name
23682 # strip PREFIX and SUFFIX off of NAME.
23683 # PREFIX and SUFFIX must not contain globbing or regex special
23684 # characters, hashes, percent signs, but SUFFIX may contain a leading
23685 # dot (in which case that matches only a dot).
23686 # func_strip_suffix prefix name
23690 .*) func_stripname_result=`$ECHO "X${3}" \
23691 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23692 *) func_stripname_result=`$ECHO "X${3}" \
23693 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23698 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23699 my_sed_long_arg='1s/^-[^=]*=//'
23704 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23705 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23711 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23714 # func_xform libobj-or-source
23717 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23720 # func_arith arithmetic-term...
23723 func_arith_result=`expr "$@"`
23727 # STRING may not start with a hyphen.
23730 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23736 case $lt_shell_append in
23738 cat << \_LT_EOF >> "$cfgfile"
23740 # func_append var value
23741 # Append VALUE to the end of shell variable VAR.
23749 cat << \_LT_EOF >> "$cfgfile"
23751 # func_append var value
23752 # Append VALUE to the end of shell variable VAR.
23763 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23764 || (rm -f "$cfgfile"; exit 1)
23766 mv -f "$cfgfile" "$ofile" ||
23767 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23771 cat <<_LT_EOF >> "$ofile"
23773 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
23775 # The linker used to build libraries.
23778 # Commands used to build an old-style archive.
23779 old_archive_cmds=$lt_old_archive_cmds_GCJ
23781 # A language specific compiler.
23782 CC=$lt_compiler_GCJ
23784 # Is the compiler the GNU compiler?
23787 # Compiler flag to turn off builtin functions.
23788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23790 # How to pass a linker flag through the compiler.
23791 wl=$lt_lt_prog_compiler_wl_GCJ
23793 # Additional compiler flags for building library objects.
23794 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23796 # Compiler flag to prevent dynamic linking.
23797 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23799 # Does compiler simultaneously support -c and -o options?
23800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23802 # Whether or not to add -lc for building shared libraries.
23803 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23805 # Whether or not to disallow shared libs when runtime libs are static.
23806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23808 # Compiler flag to allow reflexive dlopens.
23809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23811 # Compiler flag to generate shared objects directly from archives.
23812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23814 # Whether the compiler copes with passing no objects directly.
23815 compiler_needs_object=$lt_compiler_needs_object_GCJ
23817 # Create an old-style archive from a shared archive.
23818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23820 # Create a temporary old-style archive to link instead of a shared archive.
23821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23823 # Commands used to build a shared archive.
23824 archive_cmds=$lt_archive_cmds_GCJ
23825 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23827 # Commands used to build a loadable module if different from building
23828 # a shared archive.
23829 module_cmds=$lt_module_cmds_GCJ
23830 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23832 # Whether we are building with GNU ld or not.
23833 with_gnu_ld=$lt_with_gnu_ld_GCJ
23835 # Flag that allows shared libraries with undefined symbols to be built.
23836 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23838 # Flag that enforces no undefined symbols.
23839 no_undefined_flag=$lt_no_undefined_flag_GCJ
23841 # Flag to hardcode \$libdir into a binary during linking.
23842 # This must work even if \$libdir does not exist
23843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23845 # If ld is used when linking, flag to hardcode \$libdir into a binary
23846 # during linking. This must work even if \$libdir does not exist.
23847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23849 # Whether we need a single "-rpath" flag with a separated argument.
23850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23853 # DIR into the resulting binary.
23854 hardcode_direct=$hardcode_direct_GCJ
23856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23857 # DIR into the resulting binary and the resulting library dependency is
23858 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23859 # library is relocated.
23860 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
23862 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23863 # into the resulting binary.
23864 hardcode_minus_L=$hardcode_minus_L_GCJ
23866 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23867 # into the resulting binary.
23868 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23870 # Set to "yes" if building a shared library automatically hardcodes DIR
23871 # into the library and all subsequent libraries and executables linked
23873 hardcode_automatic=$hardcode_automatic_GCJ
23875 # Set to yes if linker adds runtime paths of dependent libraries
23876 # to runtime path list.
23877 inherit_rpath=$inherit_rpath_GCJ
23879 # Whether libtool must link a program against all its dependency libraries.
23880 link_all_deplibs=$link_all_deplibs_GCJ
23882 # Fix the shell variable \$srcfile for the compiler.
23883 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
23885 # Set to "yes" if exported symbols are required.
23886 always_export_symbols=$always_export_symbols_GCJ
23888 # The commands to list exported symbols.
23889 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23891 # Symbols that should not be listed in the preloaded symbols.
23892 exclude_expsyms=$lt_exclude_expsyms_GCJ
23894 # Symbols that must always be exported.
23895 include_expsyms=$lt_include_expsyms_GCJ
23897 # Commands necessary for linking programs (against libraries) with templates.
23898 prelink_cmds=$lt_prelink_cmds_GCJ
23900 # Specify filename containing input files.
23901 file_list_spec=$lt_file_list_spec_GCJ
23903 # How to hardcode a shared library path into an executable.
23904 hardcode_action=$hardcode_action_GCJ
23906 # ### END LIBTOOL TAG CONFIG: GCJ
23910 "po-directories":C)
23911 for ac_file in $CONFIG_FILES; do
23912 # Support "outfile[:infile[:infile...]]"
23914 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23916 # PO directories have a Makefile.in generated from Makefile.in.in.
23917 case "$ac_file" in */Makefile.in)
23918 # Adjust a relative srcdir.
23919 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23920 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23921 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23922 # In autoconf-2.13 it is called $ac_given_srcdir.
23923 # In autoconf-2.50 it is called $srcdir.
23924 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23925 case "$ac_given_srcdir" in
23926 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23927 /*) top_srcdir="$ac_given_srcdir" ;;
23928 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23930 # Treat a directory as a PO directory if and only if it has a
23931 # POTFILES.in file. This allows packages to have multiple PO
23932 # directories under different names or in different locations.
23933 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23934 rm -f "$ac_dir/POTFILES"
23935 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23936 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23937 POMAKEFILEDEPS="POTFILES.in"
23938 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23939 # on $ac_dir but don't depend on user-specified configuration
23941 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23942 # The LINGUAS file contains the set of available languages.
23943 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23944 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23946 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23947 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23948 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23949 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23951 # The set of available languages was given in configure.in.
23952 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23953 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23956 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23957 # Compute UPDATEPOFILES
23958 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23959 # Compute DUMMYPOFILES
23960 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23962 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23963 case "$ac_given_srcdir" in
23965 *) srcdirpre='$(srcdir)/' ;;
23971 for lang in $ALL_LINGUAS; do
23972 POFILES="$POFILES $srcdirpre$lang.po"
23973 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23974 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23975 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23977 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23978 # environment variable.
23980 if test -n "$ALL_LINGUAS"; then
23981 for presentlang in $ALL_LINGUAS; do
23983 if test "%UNSET%" != "$LINGUAS"; then
23984 desiredlanguages="$LINGUAS"
23986 desiredlanguages="$ALL_LINGUAS"
23988 for desiredlang in $desiredlanguages; do
23989 # Use the presentlang catalog if desiredlang is
23990 # a. equal to presentlang, or
23991 # b. a variant of presentlang (because in this case,
23992 # presentlang can be used as a fallback for messages
23993 # which are not translated in the desiredlang catalog).
23994 case "$desiredlang" in
23995 "$presentlang"*) useit=yes;;
23998 if test $useit = yes; then
23999 INST_LINGUAS="$INST_LINGUAS $presentlang"
24004 if test -n "$INST_LINGUAS"; then
24005 for lang in $INST_LINGUAS; do
24006 CATALOGS="$CATALOGS $lang.gmo"
24009 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24010 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"
24011 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24012 if test -f "$f"; then
24014 *.orig | *.bak | *~) ;;
24015 *) cat "$f" >> "$ac_dir/Makefile" ;;
24030 ac_clean_files=$ac_clean_files_save
24032 test $ac_write_fail = 0 ||
24033 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24036 # configure is writing to config.log, and then calls config.status.
24037 # config.status does its own redirection, appending to config.log.
24038 # Unfortunately, on DOS this fails, as config.log is still kept open
24039 # by configure, so config.status won't be able to write to it; its
24040 # output is simply discarded. So we exec the FD to /dev/null,
24041 # effectively closing config.log, so it can be properly (re)opened and
24042 # appended to by config.status. When coming back to configure, we
24043 # need to make the FD available again.
24044 if test "$no_create" != yes; then
24046 ac_config_status_args=
24047 test "$silent" = yes &&
24048 ac_config_status_args="$ac_config_status_args --quiet"
24050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24053 # would make configure fail if this is the last instruction.
24054 $ac_cs_success || as_fn_exit 1
24056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24058 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
24064 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
24066 Install prefix: ${prefix}
24068 Warning flags: ${WARN_CFLAGS}
24069 Library types: Shared=${enable_shared}, Static=${enable_static}
24070 Valgrind: ${VALGRIND}
24071 Version script: $have_ld_version_script
24072 TLD code: $enable_tld
24073 Build Java port: $enable_java
24074 Build C# port: $enable_csharp
24076 $as_echo "$as_me: summary of build options:
24078 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
24080 Install prefix: ${prefix}
24082 Warning flags: ${WARN_CFLAGS}
24083 Library types: Shared=${enable_shared}, Static=${enable_static}
24084 Valgrind: ${VALGRIND}
24085 Version script: $have_ld_version_script
24086 TLD code: $enable_tld
24087 Build Java port: $enable_java
24088 Build C# port: $enable_csharp